<Grid x:Name="LayoutRoot"> <esri:Map x:Name="MyMap" Extent="-13631774.161,4551117.011,-13629848.904,4552046.199" ExtentChanged="MyMap_ExtentChanged"> <esri:ArcGISTiledMapServiceLayer ID="TopoLayer" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/> </esri:Map> <Grid HorizontalAlignment="Right" VerticalAlignment="Top" Width="300" Height="200" Canvas.ZIndex="100" > <Border CornerRadius="0,0,0,10" Background="#BB919191"> <esri:OverviewMap x:Name="MyOverviewMap" Margin="8,0,0,8" Map="{Binding ElementName=MyMap_Ov}"> <esri:OverviewMap.Layer> <esri:ArcGISTiledMapServiceLayer ID="StreetLayer" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/> </esri:OverviewMap.Layer> </esri:OverviewMap> </Border> </Grid> <esri:Map x:Name="MyMap_Ov"> <esri:ArcGISTiledMapServiceLayer ID="TopoLayer1" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/> </esri:Map> </Grid>
private void MyMap_ExtentChanged(object sender, ESRI.ArcGIS.Client.ExtentEventArgs e) { MyMap_Ov.Visibility = System.Windows.Visibility.Collapsed; MyMap_Ov.Extent = MyMap.Extent.Expand(4); }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.