Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


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

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

Your Answer


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.