<?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 Changing spatial reference of the OverviewMap control in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-spatial-reference-of-the-overviewmap/m-p/648924#M16641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently, the OverviewMap control has a few constraints on it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;It must have same spatial reference as the map control it's associated with&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Spatial reference is set based on first layer that is added&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Spatial reference cannot be changed&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;These constraints make the OverviewMap control difficult to use when it is associated with a map control whose spatial reference can change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could the OverviewMap control be enhanced so that it can support changing spatial reference?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, altering the MaximumExtent property so that it works in a similar manner to the Extent property on the Map control - allowing the spatial reference to be changed if there is no Layer set on the OverviewMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Neil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Sep 2010 14:07:40 GMT</pubDate>
    <dc:creator>NeilDuxbury</dc:creator>
    <dc:date>2010-09-28T14:07:40Z</dc:date>
    <item>
      <title>Changing spatial reference of the OverviewMap control</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-spatial-reference-of-the-overviewmap/m-p/648924#M16641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently, the OverviewMap control has a few constraints on it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;It must have same spatial reference as the map control it's associated with&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Spatial reference is set based on first layer that is added&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Spatial reference cannot be changed&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;These constraints make the OverviewMap control difficult to use when it is associated with a map control whose spatial reference can change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could the OverviewMap control be enhanced so that it can support changing spatial reference?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, altering the MaximumExtent property so that it works in a similar manner to the Extent property on the Map control - allowing the spatial reference to be changed if there is no Layer set on the OverviewMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Neil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 14:07:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-spatial-reference-of-the-overviewmap/m-p/648924#M16641</guid>
      <dc:creator>NeilDuxbury</dc:creator>
      <dc:date>2010-09-28T14:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Changing spatial reference of the OverviewMap control</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-spatial-reference-of-the-overviewmap/m-p/648925#M16642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Basically no. The overviewmap needs to be able to set its extent based on the map's extent, and therefore the same spatial reference limitation is required.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 18:20:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-spatial-reference-of-the-overviewmap/m-p/648925#M16642</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-09-28T18:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Changing spatial reference of the OverviewMap control</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-spatial-reference-of-the-overviewmap/m-p/648926#M16643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Morten,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand the constraint that the spatial reference of the overview map needs to be the same as the spatial reference of the map control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, at the 2.0 version of the API, the map control now has the ability to change it's spatial reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this situation, there does not appear to be a way for the associated overview map control to be updated so that it also has this new spatial reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can the overview map control be enhanced so that when the map control's spatial reference changes there is some mechanism to update the overview map control's spatial reference?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Neil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 18:41:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-spatial-reference-of-the-overviewmap/m-p/648926#M16643</guid>
      <dc:creator>NeilDuxbury</dc:creator>
      <dc:date>2010-09-28T18:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Changing spatial reference of the OverviewMap control</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-spatial-reference-of-the-overviewmap/m-p/648927#M16644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The overviewmap is just another map control, so you would have to also clear its layers before clearing out /resetting the extent of the main map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 21:20:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-spatial-reference-of-the-overviewmap/m-p/648927#M16644</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-09-28T21:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Changing spatial reference of the OverviewMap control</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-spatial-reference-of-the-overviewmap/m-p/648928#M16645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes. You can do this by setting the Layer property of the overview map control to null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To handle this situation, we've had to download the toolkit and modify the OverviewMap control so that the MaximumExtent dependency property has the following property changed callback.&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; private static void OnMaximumExtentPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
&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; OverviewMap ovmap = (OverviewMap)d;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Envelope maxExtent = (Envelope)e.NewValue;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ovmap.OVMapImage != null &amp;amp;&amp;amp; ovmap.OVMapImage.Layers.Count == 0 &amp;amp;&amp;amp; maxExtent != null &amp;amp;&amp;amp; maxExtent.SpatialReference != null)
&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; ovmap.OVMapImage.Extent = maxExtent;
&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; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This allows us to change the spatial reference of the overview map with a method like the following:&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; private void ChangeOverviewMapSpatialReference(OverviewMap overviewMap, Layer overviewLayer, Envelope maximumExtent)
&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; // Clear the existing overview layer so that spatial reference can be changed
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; overviewMap.Layer = null;
&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; // Set maximum extent to set the spatial reference
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; overviewMap.MaximumExtent = maximumExtent;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Set the new overview layer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; overviewMap.Layer = overviewLayer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can the ability to change the spatial reference of the overview map control be added to the release version of the toolkit or will we need to maintain this change ourselves?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Neil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:30:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/changing-spatial-reference-of-the-overviewmap/m-p/648928#M16645</guid>
      <dc:creator>NeilDuxbury</dc:creator>
      <dc:date>2021-12-12T03:30:28Z</dc:date>
    </item>
  </channel>
</rss>

