1

For some of our JavaScript mapping applications, we load a Tiled Map Service as a ArcGISDynamicMapServiceLayer. When we use the PrintTask and want to print a map at a scale in between the tiled map scales, this works great.

For a map Table of Contents widget, however, I need a way to determine if an ArcGISDynamicMapServiceLayer has been loaded from a tiled or dynamic map service. Any recommendations?

I'm using ArcGIS JavaScript API v.3.6.

1 Answer 1

4

You could try sending a JSON request to the map service URL of the layer and checking the singleFusedMapCache property of the JSON object that's returned - a value of true would indicate it's coming from a tiled service and false would indicate it's a dynamic service.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.