How to turn on\off of layers contained in a cached service?

361
2
01-15-2020 11:10 PM
lubnajarara_ah
New Contributor III

How to turn on\off of layers contained in a cached service?

Dears,

For example, in the screenshot below, an mxd file that contains 3 layers (in turned on mode) is published and cached. I observed that these layers contained in its cached service can’t be turned off.

 

Is this by design and concept of caching?

Best,

Lubna

2 Replies
FC_Basson
MVP Regular Contributor

See What is map caching?—Documentation | ArcGIS Enterprise 

When caching your Map Service, a permanent snapshot (tiles) of the visible data is created at every scale, i.e. a picture of what you can see, and that is what will be returned to the client.  You cannot switch layers on and off as with dynamic Map Services, but only toggle the visibility of the cached representation/picture.

JamalNUMAN
Esteemed Contributor

It appears that there is no solution for turning the layers on\off contained in a cached service, which requires publishing each layer in a separate service as per the document below:

 

https://enterprise.arcgis.com/en/server/latest/publish-services/windows/planning-a-map-cache.htm

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine