MapControl (.NET Android) Class
Represents a .NET UI control for Android that displays a View.
NuGet/Assembly: Carmenta.Engine.5.17.0.nupkg (in the CEAndroid assembly)
Syntax
public class MapControl : Android.Views.SurfaceView,
IMapControl
Remarks
A Carmenta Engine MapControl is used to integrate a map view into the GUI of an application. Carmenta Engine provides several different MapControl classes, for different API:s and GUI platforms; for a complete list see MapControl classes in Carmenta Engine.
This control uses .NET on Android, and inherits from Android.View.SurfaceView, see SurfaceView class for more information.
The default behavior of the MapControl (.NET Android) 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
Android.Views.SurfaceView
MapControl (.NET Android)
Platforms
Android
MapControl (.NET Android) Members
The MapControl (.NET Android) type has the following members.
Constructors
Name | Description |
---|---|
MapControl | Initializes a new instance of the Java MapControl (.NET Android) class on Android. |
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 MapControl (.NET Android) 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 MapControl (.NET Android) implementation. Inherited from IMapControl |
IMapControl.ToolTimerInterval | The interval used by the MapControl (.NET Android) implementation to update tools. Inherited from IMapControl |
IMapControl.TouchTool | Gets or sets the ITouchTool that is used by the MapControl (.NET Android) 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 MapControl (.NET Android) 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 |
---|---|
IMapControl.UpdateView | Overloaded. Updates the map presentation. Inherited from IMapControl |