Select to view content in your preferred language

Using the Flexviewer 2.4 I want to toggle layers from one service on/off

2372
1
11-23-2011 12:31 PM
by Anonymous User
Not applicable
Original User: RedmondGIS

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.

http://forums.arcgis.com/threads/32104-URL-Parameters-and-Layer-Visibility?highlight=visibility+para...
http://forums.arcgis.com/threads/23066-Layer-On-Off?highlight=Layer+visibility
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Paul,

   Look at this post it is very similar to what you are attempting to do.

http://forums.arcgis.com/threads/25083-Using-radio-buttons-in-the-legend?p=133040&viewfull=1#post133...
0 Kudos