<?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 linking map extents for multiple maps in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/linking-map-extents-for-multiple-maps/m-p/110912#M2759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi all, I have multiple maps in my application and I'd like to link their map extents together so that as one pans or zooms in/out on one map, the other(s) will change to that same new extent.&amp;nbsp; So I've been trying to use the ExtentChanged event in the map tags, from previous threads this appears to be the way to do this.&amp;nbsp; But my application isn't loading, i.e. just hangs upon initial loading and never displays the map application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not certain but I suspect there's an issue with the MapExtent event being fired upon loading before the layers are initialized.&amp;nbsp; I tried a workaround using the LayersInitialized event that was suggested in a previous thread but no luck. So if that is the issue, I'm obviously not coding that properly.&amp;nbsp; Basic code below, thanks much for any assistance..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;XAML:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;esri:Map x:Name="SeaLevelRiseMapHighest" Background="White" RenderTransformOrigin="-2.037,-2.183" IsLogoVisible="False" Extent="-8511763,4442106,-8481883,4450940" TimeExtent="{Binding ElementName=MyTimeSlider, Path=Value, Mode=OneWay}" Loaded="SeaLevelRiseMapHighest_Loaded" Style="{StaticResource MyMapStyle}" ExtentChanged="SeaLevelRiseMapHighest_ExtentChanged" &amp;gt; 

&amp;lt;esri:Map x:Name="SeaLevelRiseMapHigh" Background="White" RenderTransformOrigin="-2.037,-2.183" IsLogoVisible="False" Extent="-8511763,4442106,-8481883,4450940" TimeExtent="{Binding ElementName=MyTimeSlider, Path=Value, Mode=OneWay}"&amp;nbsp; Loaded="SeaLevelRiseMapHigh_Loaded" Style="{StaticResource MyMapStyle}" ExtentChanged="SeaLevelRiseMapHigh_ExtentChanged" &amp;gt;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code-behind:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
private void SeaLevelRiseMapHighest_ExtentChanged(object sender, System.Windows.RoutedEventArgs e)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESRI.ArcGIS.Client.Geometry.Envelope mapExtent = SeaLevelRiseMapHighest.Extent;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SeaLevelRiseMapHigh.ZoomTo(mapExtent);
}


private void SeaLevelRiseMapHigh_ExtentChanged(object sender, System.Windows.RoutedEventArgs e)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESRI.ArcGIS.Client.Geometry.Envelope mapExtent = SeaLevelRiseMapHigh.Extent;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SeaLevelRiseMapHighest.ZoomTo(mapExtent);
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Aug 2013 13:26:16 GMT</pubDate>
    <dc:creator>DanielSchatt</dc:creator>
    <dc:date>2013-08-23T13:26:16Z</dc:date>
    <item>
      <title>linking map extents for multiple maps</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/linking-map-extents-for-multiple-maps/m-p/110912#M2759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi all, I have multiple maps in my application and I'd like to link their map extents together so that as one pans or zooms in/out on one map, the other(s) will change to that same new extent.&amp;nbsp; So I've been trying to use the ExtentChanged event in the map tags, from previous threads this appears to be the way to do this.&amp;nbsp; But my application isn't loading, i.e. just hangs upon initial loading and never displays the map application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not certain but I suspect there's an issue with the MapExtent event being fired upon loading before the layers are initialized.&amp;nbsp; I tried a workaround using the LayersInitialized event that was suggested in a previous thread but no luck. So if that is the issue, I'm obviously not coding that properly.&amp;nbsp; Basic code below, thanks much for any assistance..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;XAML:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;esri:Map x:Name="SeaLevelRiseMapHighest" Background="White" RenderTransformOrigin="-2.037,-2.183" IsLogoVisible="False" Extent="-8511763,4442106,-8481883,4450940" TimeExtent="{Binding ElementName=MyTimeSlider, Path=Value, Mode=OneWay}" Loaded="SeaLevelRiseMapHighest_Loaded" Style="{StaticResource MyMapStyle}" ExtentChanged="SeaLevelRiseMapHighest_ExtentChanged" &amp;gt; 

&amp;lt;esri:Map x:Name="SeaLevelRiseMapHigh" Background="White" RenderTransformOrigin="-2.037,-2.183" IsLogoVisible="False" Extent="-8511763,4442106,-8481883,4450940" TimeExtent="{Binding ElementName=MyTimeSlider, Path=Value, Mode=OneWay}"&amp;nbsp; Loaded="SeaLevelRiseMapHigh_Loaded" Style="{StaticResource MyMapStyle}" ExtentChanged="SeaLevelRiseMapHigh_ExtentChanged" &amp;gt;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code-behind:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
private void SeaLevelRiseMapHighest_ExtentChanged(object sender, System.Windows.RoutedEventArgs e)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESRI.ArcGIS.Client.Geometry.Envelope mapExtent = SeaLevelRiseMapHighest.Extent;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SeaLevelRiseMapHigh.ZoomTo(mapExtent);
}


private void SeaLevelRiseMapHigh_ExtentChanged(object sender, System.Windows.RoutedEventArgs e)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESRI.ArcGIS.Client.Geometry.Envelope mapExtent = SeaLevelRiseMapHigh.Extent;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SeaLevelRiseMapHighest.ZoomTo(mapExtent);
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 13:26:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/linking-map-extents-for-multiple-maps/m-p/110912#M2759</guid>
      <dc:creator>DanielSchatt</dc:creator>
      <dc:date>2013-08-23T13:26:16Z</dc:date>
    </item>
  </channel>
</rss>

