MapView

constructor(context: Context, mapOptions: MapOptions)

Creates a MapView with a default Android environment.

Parameters

context

The context to use for initializing the environment.

mapOptions

The map options to use for initializing the map.


constructor(context: Context, attrs: AttributeSet)

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

Parameters

context

The context to use for initializing the environment.

attrs

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