MapControl (Java Android) Class
This element is not available using the selected API.
This element is not available using the selected API.
In this article
This element is not available using the selected API.
In this article
Represents a Java UI control for Android that displays a View.
Members of this class should only be accessed from the GUI thread. Exceptions to this rule are noted on the documentation page for each individual member.
The Thread Access Verifier will enforce this rule when it is active.
More details about thread safety and the main thread of the application can be found in Threading model, GUI.
public class MapControl extends android.view.SurfaceView implements
IMapControl
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 Java on Android, and inherits from android.view.SurfaceView, see SurfaceView class for more information.
The default behavior of the MapControl (Java 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.
android.view.SurfaceView
MapControl (Java Android)
Android
The MapControl (Java Android) type has the following members.
Name | Description |
---|---|
MapControl | Initializes a new instance of the Java MapControl (Java Android) class on Android. |
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 (Java 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 (Java Android) implementation. Inherited from IMapControl |
IMapControl.toolTimerInterval | The interval used by the MapControl (Java Android) implementation to update tools. Inherited from IMapControl |
IMapControl.touchTool | Gets or sets the ITouchTool that is used by the MapControl (Java 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 (Java 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 |
Name | Description |
---|---|
IMapControl.updateView | Overloaded. Updates the map presentation. Inherited from IMapControl |
In this article
This element is not available using the selected API.
In this article