Quantcast
Channel: Forums - ArcGIS Viewer for Flex
Viewing all articles
Browse latest Browse all 2097

eSearch widget and Dynamic Legend issue

$
0
0
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.)
Attached Thumbnails
Click image for larger version

Name:	1-17-2013 3-42-48 PM.png‎
Views:	N/A
Size:	9.2 KB
ID:	20818   Click image for larger version

Name:	1-17-2013 3-43-13 PM.png‎
Views:	N/A
Size:	11.0 KB
ID:	20819   Click image for larger version

Name:	1-17-2013 4-05-52 PM.png‎
Views:	N/A
Size:	8.8 KB
ID:	20820  

Viewing all articles
Browse latest Browse all 2097

Trending Articles