MapView
The MapView can be manipulated only after the OnMapReadyCallback triggers the onMapReady method.
Parameters
the context used for the MapView.
used to define the gestures status (enabled or disabled). By default, all gestures are enabled if nothing is passed for this optional argument.
used to be notified about gestures performed on the MapView (optional).
the OnMapReadyCallback to be notified when the map is ready to be manipulated, or if the map initialization encountered an error.
Constructors
Properties
the default size in meters for a POI when zoomLevel corresponds to maxZoomLevel (used for calculating the dynamic search radius. See getDynamicSearchRadius)
defines the scale of the zoom when MapView is double tapped.
defines the speed of the zoom animation when the map is double tapped. If you want to reduce the speed of the animation, specify a lower value. If you want to increase the speed of the animation, specify a higher value. (default value is 0.1)
Returns the y screen coordinate of the horizon (in pixel).
defines the state of the map's center regarding user's location. This state can be used to handle the re-center button's behavior in an application. (default value is MapCenterState.NOT_CENTERED, its value has to be changed by the application).
Public members
defines if the double tap action should use the map's center instead of the tapped point when zooming
Returns the height of the view (in pixels).
Functions
Callbacks of the Mapping Module
Callbacks of the Mapping Module
Attach a group of dynamic layer(s) to this Map View. All geometric objects/layers will be rendered according to the current MapStyle
Remove the current attached group of dynamic layer(s) from this MapView.
Disables inertia process
Performs a sequence of zoom actions (animation) on the center of the MapView Override this method to change the map behavior when a double tap event happens
Enables inertia process while moving the map.
Returns the euclidian distance (in meters) between screen points.
Returns the current attached MapStyle
Callbacks of the Core Module
Gets motion events to handle pan and save rotation/tilt state
Called when the opengl thread destroyed the surface and before destroying the native objects. Use it to save the view state.
Called when the opengl thread created a new surface and after the creation of the native view. Use it to restore the view state.
Adds an observer to be notified when the map view is destroyed.
Adds an observer to be notified when the map view is ready.
Remove a POI cluster
Assigns a preferential language code for labels rendering.
Setup the listener to receive the Address of the map clicked location.
Changes the current style of the MapView with the new one
Set a new value for the maximum number of texts to be displayed simultaneously
Set a new value for the minimum distance, in pixels, between the insertion points of two identical texts (default is 150) For example, a road can have its name displayed multiple times on the road.
Updates the view type of the MapView Can only be used after the OnMapReadyCallback.onMapReady is triggered
Show or hide display of the road restrictions.
Performs a zoom operation inside the specified real rectangular double precision area.