HiI have set scale ranges on my dynamic service and the legend is behaving as expected (legend removes symbology for data not available at that scale range)Is there anyway to make it just display the symbology all the time and not turn on/off depending on scale?I have followed this samplehttp://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htmthanks
var legend = new esri.dijit.Legend({ map:map, respectCurrentMapScale: false },"legendDiv");
Heming,
It worked in my tile layer service too, thanks.
Will this work on, ArcGISTiledMapservice too? because I am having the same issue, I have a tiled map service, with a group layer that has three sublayers , when I add the URL for the map service, in my application, it shows up fine and the legend that comes up is for the layer that is visible, but as I zoom in and out it does not update to show the legend for visible layer.
Thanks,
Saloni.
Try this:var legend = new esri.dijit.Legend({ map:map, respectCurrentMapScale: false },"legendDiv");
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.