<?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 Reset Map Extent in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reset-map-extent/m-p/157567#M3931</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to completely reset the extent of a map.&amp;nbsp; I have tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MyMap.Extent = new Envelope();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This does not work.&amp;nbsp; It keeps the original extents even after I have deleted all the layers in the map.&amp;nbsp; Any recommendations?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically I'm refreshing the map with all new added layers and need a new extent.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2012 18:44:21 GMT</pubDate>
    <dc:creator>EricElder</dc:creator>
    <dc:date>2012-07-11T18:44:21Z</dc:date>
    <item>
      <title>Reset Map Extent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reset-map-extent/m-p/157567#M3931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to completely reset the extent of a map.&amp;nbsp; I have tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MyMap.Extent = new Envelope();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This does not work.&amp;nbsp; It keeps the original extents even after I have deleted all the layers in the map.&amp;nbsp; Any recommendations?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically I'm refreshing the map with all new added layers and need a new extent.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 18:44:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reset-map-extent/m-p/157567#M3931</guid>
      <dc:creator>EricElder</dc:creator>
      <dc:date>2012-07-11T18:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Map Extent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reset-map-extent/m-p/157568#M3932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I solved it...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;MyMap.Layers.Clear();
MyMap.Extent = new Envelope();&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then add new layers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:20:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reset-map-extent/m-p/157568#M3932</guid>
      <dc:creator>EricElder</dc:creator>
      <dc:date>2021-12-11T08:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Map Extent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reset-map-extent/m-p/157569#M3933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After all layers are removed and new layers are added you would need to reset the map's extent to extent of all layers. Try this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MyMap.Extent=MyMap.Layers.GetFullExtent();&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 23:10:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reset-map-extent/m-p/157569#M3933</guid>
      <dc:creator>PreetiMaske</dc:creator>
      <dc:date>2012-07-12T23:10:40Z</dc:date>
    </item>
  </channel>
</rss>

