I am using the eSearch Widget (v3.1.4) and the Dynamic Legend v3.1. The viewer opens with a URL selection made in the eSearch Widget, and the Legend shows all the operational layers. If I clear the initial selection and choose a layer to search from the dropdown menu in the eSearch Widget and then make a new selection, the Dynamic Legend redraws the symbology. *see attached images*
Attachment 20818 Attachment 20819 Attachment 20820
The first image is how the Legend should look, the second is after a new selection is made with eSearch, the third after yet another new selection is made. If I continue to make new selections without refreshing the map, the legend will continue to add the symbology of the layer searched, over and over. What I need is for the Legend to not keep adding the same layer, if it's already there, to the Legend if a search is performed in the eSearch Widget. I can use the "out of the box" legend, but I much prefer the dynamic legend, as it's been much easier to customize the look of.
Help?
(I'm working with the uncompiled code for both widgets.)
Attachment 20818 Attachment 20819 Attachment 20820
The first image is how the Legend should look, the second is after a new selection is made with eSearch, the third after yet another new selection is made. If I continue to make new selections without refreshing the map, the legend will continue to add the symbology of the layer searched, over and over. What I need is for the Legend to not keep adding the same layer, if it's already there, to the Legend if a search is performed in the eSearch Widget. I can use the "out of the box" legend, but I much prefer the dynamic legend, as it's been much easier to customize the look of.
Help?
(I'm working with the uncompiled code for both widgets.)