Select to view content in your preferred language

Link two services

718
6
10-21-2011 08:16 AM
RandellMcGlynn
Emerging Contributor
Hi, I was wondering if there was a way to link two services together in ArcGIS View For Flex. What I mean is I want the layers to toggle together. So if service 1 and service 2 are linked, if I turned off (or on) service 1, service 2 would also turn off (or on) or Vice Versa.

Thanks.
Tags (2)
0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus
Randell,

   This works for base maps by just giving them the same label in the main config.xml file.
0 Kudos
RandellMcGlynn
Emerging Contributor
Randell,

   This works for base maps by just giving them the same label in the main config.xml file.


Thank you for the reply, but I need this to work with the Operational Layers. Is this possible?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Randell,

   Don't know for sure... Give it a try.
0 Kudos
RandellMcGlynn
Emerging Contributor
Nope. It does not work.
0 Kudos
DaleEdgar
Deactivated User
Did you ever figure this out?  I have the same need.
0 Kudos
BenKane
Regular Contributor
Not sure if this will work for you but...if you put the layers you need within the basemaps tags and give them the same name they will show up as extra buttons in your map switcher widget and will draw together.  I have grouped multiple layers under the basemaps tags and it works great.  It will not work in the operational layers tags.

Ben
0 Kudos