Switching Map, Minmum/Maximum Resolution Issue

1172
1
10-22-2011 03:32 AM
JamilNawaz
New Contributor II
Hi Guys,

I am facing a problem regarding map min/max resolution. Here is my scenario.

I have map created in xaml and there is no layer at that time. Lator on based on some user's selection in the application, we load map (cached/dynamic) based on user's selection. We are showing one map at a time, that is, map will have either dynamic layer or tiled layer.

Now problem is, let's say at first time, user load's dynamic map, there is no min/max resolution set so zoom slider does not appear and that is fine. After that user loads cached map, that is tiled map service layer so in the documentation layer it is mentioned that, when map have tiled map service layer, it will initialize the min/max resolution of the map automatically. So zoom slider appears and work's perfectly. But when user loads dynamic map, those values (min/max resolution) donot reset and zoom slider bound the dynamic map to zoom in/out at the specific level. So in other words, it keeps the min/max resolution values of tile map service layer which was added previously.

After reading some post, I found that we might have to reset the min/max resolution manually. So what I did, in case of dynamic map, I set
map.MinimumResolution = System.Double.Epsilon;
map.MaximumResolution = System.Double.MaxValue;


but I am not sure how to set min/max resolution in case of tiled map service layer. I notice the layer have propertys MinimumResolution and MaximumResolution but those values like 0 and Infinity.

Please help.

Regards,
JAMIL
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
ArcGISTiledMapServiceLayer.TileInfo.Lods have resolution property: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Lod_member.... This LOD match the cached map service Level of Detail (i.e. http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer)
0 Kudos