Class MapViewController
Helper class for controlling a MapView instance in an MVVM pattern, while allowing operations on the view from ViewModel.
Namespace: Esri.ArcGISRuntime.Toolkit.Maui
Assembly: Esri.ArcGISRuntime.Toolkit.Maui.dll
Syntax
public class MapViewController : GeoViewController
Fields
Name | Description |
---|---|
MapViewControllerProperty | Identifies the MapViewController attached property for MAUI. |
Properties
Name | Description |
---|---|
ConnectedView | Gets a reference to the MapView this controller is currently connected to. |
Methods
Name | Description |
---|---|
GetMapViewController(BindableObject) | Gets the value of the MapViewController attached property from the specified MapView. |
IdentifyGeometryEditorAsync(Point, double) | Identifies all the elements in the GeometryEditor, at the given screen point. |
LocationToScreen(MapPoint) | Converts a location in map coordinates to a screen coordinate relative to the upper-left corner of the map. |
ScreenToLocation(Point) | Converts screen coordinates relative to the upper-left corner of the map view to a location in map coordinates. |
SetMapViewController(BindableObject, MapViewController?) | Sets the value of the MapViewController attached property on the specified MapView. |
SetViewpointAsync(Viewpoint, TimeSpan, AnimationCurve) | Animates the display to the new viewpoint using the provided animation curve. The AnimationCurve defines the animation easing function. |
SetViewpointCenterAsync(MapPoint) | Centers the map view at the provided center point. |
SetViewpointCenterAsync(MapPoint, double) | Centers the map view at the provided center point and zooms to the given scale. |
SetViewpointCenterAsync(double, double) | Centers the view on the provided point. |
SetViewpointCenterAsync(double, double, double) | Centers the view on the provided point and zooms to the provided scale. |
SetViewpointGeometryAsync(Geometry) | Zooms and pans the map view to the extent of the provided geometry. |
SetViewpointGeometryAsync(Geometry, double) | Zooms and pans the map view to the extent of the provided geometry with additional padding. |
SetViewpointRotationAsync(double) | Sets the rotatation of the map view to the provided angle. |
SetViewpointScaleAsync(double) | Zooms the map view to the provided scale around its current center point. |