Map Init Options
data class MapInitOptions @JvmOverloads() constructor(context: Context, resourceOptions: ResourceOptions, mapOptions: MapOptions, plugins: List<Plugin>, cameraOptions: CameraOptions?, textureView: Boolean, styleUri: String?, attrs: AttributeSet?, antialiasingSampleCount: Int)
Content copied to clipboard
Defines configuration MapInitOptions for a MapboxMap. These options can be used when adding a map to your application programmatically (as opposed to via XML). If you are using a MapFragment, you can pass these options in using the static factory method newInstance(MapboxMapOptions). If you are using a MapView, you can pass these options in using the constructor MapView(Context, MapboxMapOptions). If you add a map using XML, then you can apply these options using custom XML tags.
Constructors
MapInitOptions
Link copied to clipboard
@JvmOverloads()
Content copied to clipboard
Types
Functions
component1
Link copied to clipboard
component2
Link copied to clipboard
component3
Link copied to clipboard
component4
Link copied to clipboard
component5
Link copied to clipboard
component6
Link copied to clipboard
component7
Link copied to clipboard
component8
Link copied to clipboard
component9
Link copied to clipboard
copy
Link copied to clipboard
fun copy(context: Context, resourceOptions: ResourceOptions = getDefaultResourceOptions(context), mapOptions: MapOptions = getDefaultMapOptions(context), plugins: List<Plugin> = defaultPluginList, cameraOptions: CameraOptions? = null, textureView: Boolean = false, styleUri: String? = Style.MAPBOX_STREETS, attrs: AttributeSet? = null, antialiasingSampleCount: Int = DEFAULT_ANTIALIASING_SAMPLE_COUNT): MapInitOptions
Content copied to clipboard
Properties
antialiasingSampleCount
Link copied to clipboard
sample count to control multisample anti-aliasing (MSAA) option for rendering.
attrs
Link copied to clipboard
The AttributeSet object that init the MapView.
cameraOptions
Link copied to clipboard
The Initial Camera options when creating a MapView.
mapOptions
Link copied to clipboard
Describes the map options value when using a MapView.
resourceOptions
Link copied to clipboard
Resource options when using a MapView.
textureView
Link copied to clipboard
Flag indicating to use a TextureView as render surface for the MapView.