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



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


  • Good work rscheitlin. Keep it up. – Omega Cancer May 3 '12 at 3:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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