Map View
MapView provides an embeddable map interface.
You use this class to display map information and to manipulate the map contents from your application. You can center the map on a given coordinate, specify the size of the area you want to display, and style the features of the map to fit your application's use case.
Functions
Activate the user's location component on the MapView.
Add an action to be called if the Map fail to load.
Add an action to be called when the map finish loading.
Add an action to be called when the map finish loading its style.
Add an action to be called on a Map Click event.
Add an action to be called on a Map Long Click event.
Gradually move the camera by a specified duration in milliseconds. Only properties specified within CameraUpdate will change. A callback can be used to be notified when the camera stops.
Fly the camera (out then in) to a new position within a specified duration in milliseconds. Only properties specified within CameraUpdate will change. A callback can be used to be notified when the camera stops.
Repositions the camera according to the instructions defined in the update. The move is instantaneous. Only properties specified within CameraUpdate will change.
You must call this method from the parent's Activity.onLowMemory
or Fragment.onLowMemory
.
You must call this method from the parent's Activity.onSaveInstanceState
or Fragment.onSaveInstanceState
.
Remove a marker from this WoosmapView.
Remove an action called if the Map fail to load.
Remove an action called when the map finish loading.
Remove an action called when the map finish loading its style.
Remove an action called on a Map Click event.
Remove an action called on a Map Long Click event.
Set UiSettings for your map.
Repositions the camera to a different zoom level. Short-hand method for moveCamera(CameraUpdate(zoom = z))
.