Include an overview or inset map as an additional map view to show the wider context of the primary view.
An overview map provides a useful, smaller-scale overview of the current map view's location. For example, when you need to inspect a layer with many features while remaining aware of the wider context of the view, use an overview map to help show the extent of the main map view.
Pan or zoom across the map view to browse through the tourist attractions feature layer and notice the viewpoint and scale of the linked overview map update automatically. When running the sample on a desktop, you can also navigate by panning and zooming on the overview map. However, interactivity of the overview map is disabled on mobile devices.
- Create a
Map
with theArcGISTopographic
basemap style and add it to theMapView
. - Instantiate a
FeatureLayer
from aServiceFeatureTable
and append it to theMap
's operational layers. - In the user-interface, declare an
OverviewMap
object from the ArcGIS Maps SDK for .NET Toolkit. - Assign the
MapView
to theMyOverviewMap.GeoView
property of theOverviewMap
to connect theMapView
with theOverviewMap
. - Set the scale factor of the
OverviewMap
with theMyOverviewMap.ScaleFactor
.
- MapView
- OverviewMap
The data used in this sample is the OpenStreetMap Tourist Attractions for North America feature layer, which is scale-dependent and displays at scales larger than 1:160,000.
This sample uses the overview map toolkit component which can be accessed using the Esri.ArcGISRuntime.Toolkit nuget package. The toolkit can also be cloned and set up locally. For information about setting up the toolkit, visit the repository.
context, inset, map, minimap, overview, preview, small scale, toolkit, view