MapView
constructor(context: Context, attrs: AttributeSet? = null, gestureOptions: GestureOptions = GestureOptions(), onGestureListener: OnGestureListener? = null, onStateChanged: suspend (newState: MapState) -> Unit = {}, callback: OnMapReadyCallback? = null)
Parameters
context
the context used for the MapView.
gestureOptions
used to define the gestures status (enabled or disabled). By default, all gestures are enabled if nothing is passed for this optional argument.
onGestureListener
used to be notified about gestures performed on the MapView (optional).
callback
the OnMapReadyCallback to be notified when the map is ready to be manipulated, or if the map initialization encountered an error.