<?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 Re: Reseting extent in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reseting-extent/m-p/207750#M5158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;There shouldn't be any difference based on the size of the map.however a smaller map needs to zoom out more to a different scale to fit the same extent. Could it be you have some max/min zoom limitations (either explicitly or caused by a cached layers levels), SnapToLevels etc enabled?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Morten, I found this in my XAML map definition:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;i:Interaction.Behaviors&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:MaintainExtentBehavior /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/i:Interaction.Behaviors&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if I understand the documentation well, that works only when re-sizing the map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 10:16:13 GMT</pubDate>
    <dc:creator>LuisGarcia2</dc:creator>
    <dc:date>2021-12-11T10:16:13Z</dc:date>
    <item>
      <title>Reseting extent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reseting-extent/m-p/207745#M5153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a map with a specific layer that I want my users to be able to reset the extent to. So I basically added a little button that on the click event has this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; GraphicsLayer l = (GraphicsLayer)this.map1.Layers["MY_LAYER_ID"];&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.map1.Extent = l.FullExtent; &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That works fine as long as the window is Maximized. If the window that holds the map is in any other size then it only shows whatever part of the viewing area is shown at that moment. What I'd like to happen is that the map resets to the extent the layer has but that the layer in question if shown entirely in the current viewing area. Is there an example of that somewhere? How can I accomplish this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 17:17:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reseting-extent/m-p/207745#M5153</guid>
      <dc:creator>LuisGarcia2</dc:creator>
      <dc:date>2013-04-29T17:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reseting extent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reseting-extent/m-p/207746#M5154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A picture says more than 1K words. So, I am attaching some pics now :). Screen shot "reset_extent_maximized.JPG" shows the full extent when the window is Maximized. Screen shot "reset_extent_not_maximized.JPG" shows the same thing when the window containing the map is NOT maximized. I basically want my clients to see the same thing all the time like in the "maximized" window example. It is like a zoom setting??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 19:19:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reseting-extent/m-p/207746#M5154</guid>
      <dc:creator>LuisGarcia2</dc:creator>
      <dc:date>2013-04-29T19:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reseting extent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reseting-extent/m-p/207747#M5155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
this.map1.ZoomTo(l.FullExtent);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And get the same result. there has to be a way to take into consideration the viewing area at the specific moment...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:16:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reseting-extent/m-p/207747#M5155</guid>
      <dc:creator>LuisGarcia2</dc:creator>
      <dc:date>2021-12-11T10:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reseting extent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reseting-extent/m-p/207748#M5156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There shouldn't be any difference based on the size of the map.however a smaller map needs to zoom out more to a different scale to fit the same extent. Could it be you have some max/min zoom limitations (either explicitly or caused by a cached layers levels), SnapToLevels etc enabled?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 13:14:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reseting-extent/m-p/207748#M5156</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2013-04-30T13:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reseting extent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reseting-extent/m-p/207749#M5157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Morten thanks for your reply. I need to check those. I have no idea at this point.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 15:21:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reseting-extent/m-p/207749#M5157</guid>
      <dc:creator>LuisGarcia2</dc:creator>
      <dc:date>2013-05-01T15:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reseting extent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reseting-extent/m-p/207750#M5158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;There shouldn't be any difference based on the size of the map.however a smaller map needs to zoom out more to a different scale to fit the same extent. Could it be you have some max/min zoom limitations (either explicitly or caused by a cached layers levels), SnapToLevels etc enabled?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Morten, I found this in my XAML map definition:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;i:Interaction.Behaviors&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:MaintainExtentBehavior /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/i:Interaction.Behaviors&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if I understand the documentation well, that works only when re-sizing the map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:16:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reseting-extent/m-p/207750#M5158</guid>
      <dc:creator>LuisGarcia2</dc:creator>
      <dc:date>2021-12-11T10:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reseting extent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reseting-extent/m-p/207751#M5159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That could definitely cause issues, since this'll take over handling the map extent in certain scenarios. I assume it works if you take it out?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 15:39:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reseting-extent/m-p/207751#M5159</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2013-05-03T15:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reseting extent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reseting-extent/m-p/207752#M5160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The solution for this, in case someone is interested, has been to increase the extent by a small percentage of its Maximum and Minimums. That opens the zoom enough for it to show at the right place. It still cuts some markers from view; but in general it handles real well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps someone else.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 18:28:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reseting-extent/m-p/207752#M5160</guid>
      <dc:creator>LuisGarcia2</dc:creator>
      <dc:date>2013-06-14T18:28:06Z</dc:date>
    </item>
  </channel>
</rss>

