But to manage each sub layer individually under a map service layer, I should be serving up a non cached layer, am I right ?
If your map service is cached, you can't change the visibility of the sublayers. The reason being that the image are pregenerated at the server side with the visibilities defined by the service.The workaround might be either to create a non cached service or to create one cached service by layer (or by group of layers you want to manage together).Though, both solutions have performance impacts.
Ok , done that. But Now I want to turn on / off several sublayers within a Map service layers from the TOC. I can check/uncheck the button, but it does not change the visibility of the layer.
Setting IsHitTestVisible to false prevents any input from the mouse or the keyboard.Set it to true or keep the default value instead.
The Checkbox on the TOC module is not working <CheckBox Content="{Binding Label}" IsChecked="{Binding IsEnable, Mode=TwoWay}" IsEnabled="{Binding IsInScaleRange,Mode=TwoWay}" IsHitTestVisible="False" VerticalAlignment="Center"/>
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.