yangliu2209

Create a dynamic legend?

Discussion created by yangliu2209 on Nov 6, 2013
Latest reply on Nov 7, 2013 by geohaskett
Hi,

I am kind of new on Javascript. I am trying to create a dynamic legend, which can show new adds also can show only symbology of   the current extent view. For example, if people zoom in to one feature, on the legend, there is only the one feature. When people zoom out to full extent, all features are shown on the legend. Another example is that if I add a new feature into map, the legend automatically include the new feature symbology. How can I generate the dynamic legend using Javascript? Any thought? Thanks!

-YL

Outcomes