MapControllable

MapControllable interface is the gateway for public API to talk to the internal map controller.

Functions

Link copied to clipboard
abstract fun addRendererSetupErrorListener(rendererSetupErrorListener: RendererSetupErrorListener)

Add an instance of RendererSetupErrorListener.

Link copied to clipboard
abstract fun addWidget(widget: Widget)

Add Widget to the map.

Link copied to clipboard
abstract fun onDestroy()
Link copied to clipboard

Called when a motion event has occurred.

Link copied to clipboard
abstract fun onLowMemory()
Link copied to clipboard
abstract fun onSizeChanged(w: Int, h: Int)

Called when the size has changed.

Link copied to clipboard
abstract fun onStart()
Link copied to clipboard
abstract fun onStop()
Link copied to clipboard
abstract fun onTouchEvent(event: MotionEvent): Boolean

Called when a touch event has occurred.

Link copied to clipboard
abstract fun queueEvent(event: Runnable, needRender: Boolean = true)

Queue a runnable to be executed on the map renderer thread.

Link copied to clipboard
abstract fun removeRendererSetupErrorListener(rendererSetupErrorListener: RendererSetupErrorListener)

Remove an instance of RendererSetupErrorListener.

Link copied to clipboard

Remove Widget from the map.

Link copied to clipboard
abstract fun setMaximumFps(fps: Int)

Called to limit the maximum fps

Link copied to clipboard

Set OnFpsChangedListener to get map rendering FPS.

Link copied to clipboard
abstract fun snapshot(): Bitmap?

Called to capture a snapshot synchronously.

abstract fun snapshot(listener: MapView.OnSnapshotReady)

Called to capture a snapshot asynchronously.

Properties

Link copied to clipboard
abstract val mapboxMap: MapboxMap

A MapboxMap object that can be used to interact with the map.

Inheritors

Link copied to clipboard
Link copied to clipboard