MapView (MAUI) Class
Represents a MAUI UI control that displays a View.
NuGet/Assembly: Carmenta.Engine.5.17.0.nupkg (in the CEMaui assembly)
Syntax
public class MapView : Microsoft.Maui.Controls.View,
IMapControl
Remarks
A Carmenta Engine MapControl is used to integrate a map view into the UI of an application. Carmenta Engine provides several different MapControl classes, for different API:s and UI platforms; this page describes the Microsoft MAUI variant. For a complete list of MapControl classes, see IMapControl.
The MAUI MapControl inherits from Microsoft.Maui.Controls.View, see Control class for more information.
The default behavior of the MapView (MAUI) is to re-throw exceptions that occur when it calls into the Carmenta Engine kernel. You can provide a handler for the IMapControl.Error event if you want to suppress this behavior, for example if you want to send the errors to an application log or display a custom error dialog.
Inheritance Hierarchy
Microsoft.Maui.Controls.View
MapView (MAUI)
Platforms
Windows, Linux, Android
MapView (MAUI) Members
The MapView (MAUI) type has the following members.
Constructors
Name | Description |
---|---|
MapView | Initializes a new instance of the MapView (MAUI) class. |
Properties
Name | Description |
---|---|
IMapControl.GuiDelayMinimum | The minimum amount of time in milliseconds that needs to pass between an update ending and another one starting. Inherited from IMapControl |
IMapControl.GuiDelayPercentage | The percentage of the previous update time used to delay the next update. Inherited from IMapControl |
IMapControl.IsConnected | Gets a value that tells whether the MapView (MAUI) implementation is connected to a View. Inherited from IMapControl |
Gets a value that tells whether the current platform supports touch input. | |
IMapControl.Tool | Gets or sets the ITool that is used by the MapView (MAUI) implementation. Inherited from IMapControl |
IMapControl.ToolTimerInterval | The interval used by the MapView (MAUI) implementation to update tools. Inherited from IMapControl |
IMapControl.TouchTool | Gets or sets the ITouchTool that is used by the MapView (MAUI) implementation. Inherited from IMapControl |
IMapControl.UpdateInterval | The update interval used by the MapControl implementation. Inherited from IMapControl |
IMapControl.UpdateMode | Gets or sets the update mode used by the MapView (MAUI) implementation. Inherited from IMapControl |
IMapControl.View | Gets or sets the View that is displayed by the MapControl implementation. Inherited from IMapControl |
IMapControl.ViewOwnership | Gets or sets a value that determines whether the MapControl instance or application owns the View. Inherited from IMapControl |
Methods
Name | Description |
---|---|
SetCustomCursor | Replaces one of the predefined mouse cursors with a custom cursor. |
IMapControl.UpdateView | Overloaded. Updates the map presentation. Inherited from IMapControl |