Select to view content in your preferred language

Layer List Widget - Visibility On / Off

2232
3
02-12-2014 06:52 AM
TimHohn
Deactivated User
I recently published a service to my map that includes all feature labels as a separate layer, allowing the user to toggle the individual labels On or Off at their choosing. 

The problem I'm having is that when a user wants to turn the actual geographic feature's visibility off, the labels still remain visible because they are a separately published service.  Is there a way to customize the Layer Visibility List to specify, "When the feature sewer manholes is turned off, also turn off the sewer manholes labels"?
Tags (2)
0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
Tim,

   If you add then individually (like it sounds like you did) then all you have to do is give then the same exact label in the main config.xml and they will act like they are one layer.
0 Kudos
TimHohn
Deactivated User
I think I know what you mean by altering the label names to match their respective features in the main config.xml.  I'm not sure this will work however, as the Label Service I published includes labels from more than one unique service (water layers, sewer layers, and base layers included). 

Here's a screen shot of my Layer List with the Labels On / Off service at the top:

[ATTACH=CONFIG]31363[/ATTACH]
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Tim,

  OK, in that case it will not work then. You would have to have a layer in your main config.xml for each label layer.
0 Kudos