Select to view content in your preferred language

How to know map is cached map or dynamic map

504
1
10-11-2011 09:36 AM
JamilNawaz
Emerging Contributor
Hi,

I am in the process of learning GIS and building an application using ESRI Silverlight API. I have a scenario, where map url is in our database. When user selects the map to load that in map viewer, I have to load that map. Currently I have two types of maps (Cached maps and Dynamic maps). I read in the documentation that  ArcGISTileMapServiceLayer class is used for cached maps, and ArcGISDynamicMapServiceLayer is used for dynamic maps. Now problem is, I don't have any identification in my database, about type of map.

Customer says, in the map json presentation there is a variable "Single Fused Map Cache" which is true incase of Cached map and false in case of Dynamic Map. Now problem is, I don't see any property in these classes that automatically load that variable. So I have to read json manually by requesting to server to get json and convert that into my own class object and then, i can identify. I am wondering, Is there any building way to identify that?

Thanks!
JAMIL
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor

I am wondering, Is there any building way to identify that?


There is no obvious build in way to get the info. One may be to try create an ArcGISTileMapServiceLayer and switch to ArcGISDynamicMapServiceLayer in case of error.

Else, as you said, you have to deserialize the service json and check if there is a 'tileInfo' property.
0 Kudos