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
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.