Toggle visibility of individual layers in tiled map service.

3066
3
11-15-2010 12:18 AM
SanajyJadhav
Occasional Contributor II
Hi,

I have been looking at the API documentation and cannot find a way to turn on/off the visibility of the individual layers in the cached map service. On the other hand, there is a way to do so for dynamic map service.

I was wondering if any body has done this before? This is going to be the critical issues of our application. I would really appreciate if anybody can help me out.

Thanks and regards,
Sanjay.
0 Kudos
3 Replies
JenniferNery
Esri Regular Contributor
0 Kudos
SanajyJadhav
Occasional Contributor II
Thanks for the reply from ESRI. I really appreciate it.

That means we would have to keep only one layer in cached map service so that we can turn off the visibility of the entire map service.

Sanjay-
0 Kudos
DaveTimmins
Occasional Contributor II
Hi,

there is a Visible property on the layer so you can toggle any layer type's visibility using that. If you want to control the sublayer visibility then yes you can just have one sub layer for a cached service but it makes more sense to just work directly against the client side layer type.
0 Kudos