MapView

fun MapView(context: Context, mapOptions: MapOptions)

Creates a MapView with a default Android environment.

Parameters

context

The context to use for initialising the environment.

mapOptions

The map options to use for initializing map.


fun MapView(context: Context, attrs: AttributeSet)

Creates a MapView with a default Android environment, used when inflating from XML.

Parameters

context

The context to use for initialising the environment.

attrs

The attributes to use when the view is inflated from a layout file.