Solved! Go to Solution.
Hi
I 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 sample
http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm
thanks
var legend = new esri.dijit.Legend({ map:map, respectCurrentMapScale: false },"legendDiv");
Hi
I 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 sample
http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm
thanks
var legend = new esri.dijit.Legend({ map:map, respectCurrentMapScale: false },"legendDiv");
Heming,
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.
Heming,
It worked in my tile layer service too, thanks.
Try this:var legend = new esri.dijit.Legend({ map:map, respectCurrentMapScale: false },"legendDiv");