<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Switching Map, Minmum/Maximum Resolution Issue in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/switching-map-minmum-maximum-resolution-issue/m-p/161680#M4027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am facing a problem regarding map min/max resolution. Here is my scenario.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
map.MinimumResolution = System.Double.Epsilon;
map.MaximumResolution = System.Double.MaxValue;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JAMIL&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Oct 2011 10:32:09 GMT</pubDate>
    <dc:creator>JamilNawaz</dc:creator>
    <dc:date>2011-10-22T10:32:09Z</dc:date>
    <item>
      <title>Switching Map, Minmum/Maximum Resolution Issue</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/switching-map-minmum-maximum-resolution-issue/m-p/161680#M4027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am facing a problem regarding map min/max resolution. Here is my scenario.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
map.MinimumResolution = System.Double.Epsilon;
map.MaximumResolution = System.Double.MaxValue;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JAMIL&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Oct 2011 10:32:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/switching-map-minmum-maximum-resolution-issue/m-p/161680#M4027</guid>
      <dc:creator>JamilNawaz</dc:creator>
      <dc:date>2011-10-22T10:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Switching Map, Minmum/Maximum Resolution Issue</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/switching-map-minmum-maximum-resolution-issue/m-p/161681#M4028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ArcGISTiledMapServiceLayer.TileInfo.Lods have resolution property: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Lod_members.html"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Lod_members.html&lt;/A&gt;&lt;SPAN&gt;. This LOD match the cached map service Level of Detail (i.e. &lt;/SPAN&gt;&lt;A href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Oct 2011 22:39:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/switching-map-minmum-maximum-resolution-issue/m-p/161681#M4028</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-10-23T22:39:30Z</dc:date>
    </item>
  </channel>
</rss>

