Class MapView
A user interface control that displays two-dimensional (2D) geographic content defined by a Map.
Namespace: Esri.ArcGISRuntime.Maui
Assembly: Esri.ArcGISRuntime.Maui.dll
Syntax
public class MapView : GeoView, IMapView, IGeoView
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.
To display a Map, add a Map
User interactions such as pan, zoom, rotate, and identify or selection are supported in the Map
The visible area of the Map
You can programmatically set the visible area by specifying a viewpoint. For example, Set
To determine the current visible area or the center point and scale of a Map
In an MVC architecture, this class represents the View tier. The Model tier is represented by the Map
object which provides a collection of operational layers and a Basemap. A Layer provides a visual
representation of geographic information and comes in many forms. The types of layers that are displayed in a
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 bindable property. |
Wrap |
Identifies the Wrap |
Properties
Name | Description |
---|---|
Background |
Gets or sets the background grid rendered behind the map data. |
Geometry |
Gets or sets a Geometry |
Interaction |
Gets or sets a set of properties that control user interaction with the MapView. |
Location |
Gets or sets the LocationDisplay. |
Map | Gets or sets the map the view is rendering. |
Map |
Gets the current rotational heading of the map |
Map |
Gets the current scale of the map |
Units |
Gets the current size of each device independent pixel 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 |
---|---|
Location |
Converts a location in map coordinates to a screen coordinate relative to the upper-left corner of the map. |
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 | 200.0 - 200.6 |
.NET Windows | 200.0 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |