Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have 2 layers in one service. If the user clicks one on, I want the other one to turn off, and vice versa.

I am using the default flexviewer LayerListWidget.mxml and assume this is the place where I would want to put the code to handle the toggle on/off event.

I have seen these posts, but I am not sure it's the right code. Can someone provide me with the right code to use? Thanks in advance.

esri forum 1

esri forum2

share|improve this question
add comment

1 Answer

pdog,

Here is a thread where I answered that in the ESRI Flex Viewer forum:

http://forums.arcgis.com/threads/48126-Layer-List-Widget-is-it-possible-to-only-allow-one-selected-layer-at-a-time

share|improve this answer
    
Good work rscheitlin. Keep it up. –  Omega Cancer May 3 '12 at 3:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.