Select to view content in your preferred language

How to Display an OverviewMap

734
2
04-24-2018 08:33 AM
MarvinKalani
Emerging Contributor

In the Samples of Version 10.2.7 it was possible to display an overview map. (arcgis-runtime-samples-dotnet-master\src\Desktop\ArcGISRuntimeSamplesDesktop\Samples\Mapping\OverviewMap.xaml)

How can I accomplish this with the 100.2.1 Version?

The system tells me "the object already owned" when I try to use the map again.

Tags (1)
0 Kudos
2 Replies
NathanCastle1
Esri Contributor

I'm sorry to hear you're running into problems. 

There is a sample for 100.2.1 that has something similar to an overview map: arcgis-runtime-samples-dotnet/src/WPF/ArcGISRuntime.WPF.Viewer/Samples/GraphicsOverlay/Animate3DGrap... 

You will need to use a separate map; this isn't called out specifically in the sample above because it uses a scene.

Let me know if you run into any other issues. 

0 Kudos
MarvinKalani
Emerging Contributor

The solution is to use a cloned layer:

var clonedLayer = layer.Clone();

mapView.Map = new Map {Basemap = new Basemap(clonedLayer)};

0 Kudos