layers2.push(new esri.layers.FeatureLayer(****************)); dojo.connect(layers2[0], "onLoad", function (lay) { var symbols2 = dojo.map(lay.renderer.infos, function (info) { return { label: info.label, symbol: info.symbol }; }); var wdg3= new esri.dijit.editing.TemplatePicker({ //featureLayers: lay, items: symbols2, rows: 2, columns: 2, showTooltip: true, style: "height: 100px !important; width: 300px !important;" }, "testLegend2"); wdg3.startup();
Can you post some code?
See if this helps!http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/legend.htm
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.