Map Surface
A MapSurface 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.
Use of MapSurface requires a Mapbox API access token. Obtain an access token on the Mapbox account page.
Warning: Please note that you are responsible for getting permission to use the map data, and for ensuring your use adheres to the relevant terms of use.
Parameters
the application context to init the default MapInitOptions
the surface that will display map
the init options to for map
Constructors
Functions
Add an instance of RendererSetupErrorListener.
Returns a MapboxMap object that can be used to interact with the map.
Called when a motion event has occurred.
Called to reduce memory use
Called when the size has changed.
Called when a touch event has occurred.
Queue a runnable to be executed on the map renderer thread. Consecutive events will be called in the order they were queued.
Remove an instance of RendererSetupErrorListener.
Remove Widget from the map.
Called to limit the maximum fps
Set OnFpsChangedListener to get map rendering FPS.
Called to capture a snapshot synchronously.
Called to capture a snapshot asynchronously. Consecutive requests will return snapshots in the order they were added.
Called when the surface dimensions have changed.
Called when the surface has been created.
Called when the surface