Hello, I am writing a web application using ArcGIS JavaScript API (>=3.13) and I need the legend to stay on all the time even if the layer is off because other elements on the page use the same symbols. Is that possible?
If I read it right the documentation only describes how to override sensitivity to map scale.
What do you think would be other options for doing that?
Filip.
Filip,
did you try looking into this? http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109
Tim
Another option would be to add a jpeg of the legend and add that to the map. That is what I did here:
Hi, thanks for your responses.
Tim, the legend widget is really impressive and I did find it before I posted the question. I was looking for a more lightweight and out-of-the-box solutions and I just overlooked the autoUpdate parameter of the esri legend dijit. That should do the trick for me, although setting it to true means the legend is not sensitive to map scale any more so one would somehow need to refresh the legend in map.on("extent-change", ...) using map.getLayersVisibleAtScale().
Filip.