Class MapView
A user interface control that displays two-dimensional (2D) geographic content defined by a Map.
Implements
Namespace: Esri.ArcGISRuntime.UI.Controls
Assembly: Esri.ArcGISRuntime.WinUI.dll
Syntax
public class MapView : GeoView, INotifyPropertyChanged
Remarks
The MapView is a container that holds a Map. A Map holds a collection of operational layers and Basemap. Layers are visual representations of geographic information and come in many forms. The types of layers that are displayed in a MapView are two dimensional in nature; meaning they are displayed in X/Y (a.k.a. Latitude/Longitude) coordinate space.
There is only one Map per MapView and it is set by the Map Property. Multiple Map objects can be created and swapped out dynamically as the application is running in the MapView.
It controls the area (extent) of the Map that is visible and supports user interactions such as pan and zoom. A map view also provides access to the underlying layer data in a map.
To display a Map, add a MapView control to your app and assign the map to it. This loads the map and its content, such as a Basemap and collection of operational layers, and displays this content on screen.
User interactions such as pan, zoom, rotate, and identify or selection are supported in the Map
The visible area (Viewpoint) of the Map
You can programmatically set the visible area by specifying a viewpoint. For example, Set
In an MVC architecture, the Map
Constructors
Fields
Name | Description |
---|---|
Background |
Identifies the Background |
Geometry |
Identifies the Geometry |
Interaction |
Identifies the Interaction |
Location |
Identifies the Location |
Map |
Identifies the Map dependency property |
Properties
Name | Description |
---|---|
Background |
Gets or sets the background grid that a Map is displayed on top of. |
Geometry |
Gets or sets the editor that allows users to interactively create and edit geometries by interacting with the view. |
Interaction |
Gets or sets a set of properties that control user interaction with the MapView. |
Location |
Gets the location display that manages and renders the device's current location on a Map |
Map | Gets or sets the map that the Map |
Map |
Gets the rotation angle of the Map in degrees from its north-south direction. |
Map |
Gets the scale of the Map |
Units |
Gets the size of each device-independent pixel (DIP) in map units. |
Visible |
Gets the view's visible area. |
Wrap |
Gets or sets whether continuous panning across the international date line is enabled. |
Methods
Name | Description |
---|---|
Cancel |
Cancels any pending or currently running SetViewpointAsync operations. |
Location |
Converts a location in map coordinates to a screen coordinate relative to the upper-left corner of the map. |
On |
|
On |
|
Screen |
Converts screen coordinates relative to the upper-left corner of the map view to a location in map coordinates. |
Set |
Animates the display to the new viewpoint using the provided animation curve. The Animation |
Set |
Centers the map view at the provided center point. |
Set |
Centers the map view at the provided center point and zooms to the given scale. |
Set |
Centers the view on the provided point. |
Set |
Centers the view on the provided point and zooms to the provided scale. |
Set |
Zooms and pans the map view to the extent of the provided geometry. |
Set |
Zooms and pans the map view to the extent of the provided geometry with additional padding. |
Set |
Sets the rotatation of the map view to the provided angle. |
Set |
Zooms the map view to the provided scale around its current center point. |
Applies to
Target | Versions |
---|---|
.NET Windows | 100.13 - 200.6 |