MapLibreMapOptions

Defines configuration MapLibreMapOptions for a MapLibreMap. 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(MapLibreMapOptions). If you are using a MapView, you can pass these options in using the constructor MapView(Context, MapLibreMapOptions). If you add a map using XML, then you can apply these options using custom XML tags.

Constructors

Link copied to clipboard
constructor()
Creates a new MapLibreMapOptions object.

Properties

Link copied to clipboard
open val apiBaseUri: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val logoGravity: Int
Link copied to clipboard
open val logoMargins: Array<Int>
Link copied to clipboard
open val pixelRatio: Float
Link copied to clipboard
Link copied to clipboard
@get:IntRange(from = 0)
@set:NonNull
open var prefetchZoomDelta: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Specifies the URI used for API endpoint.
Link copied to clipboard
Specifies the URL used for API endpoint.
Link copied to clipboard
Specifies the visibility state of a attribution for a map view.
Link copied to clipboard
Specifies the gravity state of attribution for a map view.
Link copied to clipboard
Specifies the margin state of attribution for a map view
Link copied to clipboard
Specifies the tint color of the attribution for a map view
Link copied to clipboard
open fun camera(cameraPosition: CameraPosition): MapLibreMapOptions
Specifies a the initial camera position for the map view.
Link copied to clipboard
Specifies the visibility state of a maplibre_compass_icon for a map view.
Link copied to clipboard
open fun compassFadesWhenFacingNorth(compassFadeWhenFacingNorth: Boolean): MapLibreMapOptions
Specifies if the maplibre_compass_icon fades to invisible when facing north.
Link copied to clipboard
Specifies the gravity state of maplibre_compass_icon for a map view.
Link copied to clipboard
Specifies the image of the CompassView.
Link copied to clipboard
Specifies the margin state of maplibre_compass_icon for a map view
Link copied to clipboard
Creates a default MapLibreMapsOptions from a given context.
Creates a MapLibreMapsOptions from the attribute set.
Link copied to clipboard
open fun crossSourceCollisions(crossSourceCollisions: Boolean): MapLibreMapOptions
Enable cross-source symbol collision detection, defaults to true.
Link copied to clipboard
Specifies the used debug type for a map view.
Link copied to clipboard
open fun describeContents(): Int
Link copied to clipboard
Specifies if the double tap gesture is enabled for a map view.
Link copied to clipboard
open fun equals(@Nullable o: Any): Boolean
Link copied to clipboard
Set the MapView foreground color that is used when the map surface is being created.
Link copied to clipboard
open fun getApiBaseUrl(): String
Get the current configured API endpoint base URL.
Link copied to clipboard
Get the current configured initial camera position for a map view.
Link copied to clipboard
Get the current configured state for fading the maplibre_compass_icon when facing north.
Link copied to clipboard
Get the current configured maximum pitch for a map view.
Link copied to clipboard
Get the current configured maximum zoom for a map view.
Link copied to clipboard
Get the current configured min pitch for a map view.
Link copied to clipboard
Get the current configured min zoom for a map view.
Link copied to clipboard
Get the flag to render the map surface on top of another surface.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
Specifies if the horizontal scroll gesture is enabled for a map view.
Link copied to clipboard
Returns true if local ideograph font family is enabled, defaults to true.
Link copied to clipboard
Set the font family for generating glyphs locally for ideographs in the 'CJK Unified Ideographs' and 'Hangul Syllables' ranges.
Set a font family from range of font families for generating glyphs locally for ideographs in the 'CJK Unified Ideographs' and 'Hangul Syllables' ranges.
Link copied to clipboard
Enable local ideograph font family, defaults to true.
Link copied to clipboard
Specifies the visibility state of a logo for a map view.
Link copied to clipboard
Specifies the gravity state of logo for a map view.
Link copied to clipboard
Specifies the margin state of logo for a map view
Link copied to clipboard
Specifies the used maximum pitch for a map view.
Link copied to clipboard
Specifies the used maximum zoom level for a map view.
Link copied to clipboard
Specifies the used minimum pitch for a map view.
Link copied to clipboard
Specifies the used minimum zoom level for a map view.
Link copied to clipboard
Set the custom pixel ratio configuration to override the default value from resources.
Link copied to clipboard
Specifies whether the user may zoom the map by tapping twice, holding and moving the pointer up and down.
Link copied to clipboard
open fun renderSurfaceOnTop(renderOnTop: Boolean)
Set the flag to render the map surface on top of another surface.
Link copied to clipboard
Specifies if the rotate gesture is enabled for a map view.
Link copied to clipboard
Specifies if the scroll gesture is enabled for a map view.
Link copied to clipboard
Enable android.view.TextureView as rendered surface.
Link copied to clipboard
Specifies if the tilt gesture is enabled for a map view.
Link copied to clipboard
open fun translucentTextureSurface(translucentTextureSurface: Boolean): MapLibreMapOptions
Link copied to clipboard
open fun writeToParcel(@NonNull dest: Parcel, flags: Int)
Link copied to clipboard
Specifies if the zoom gesture is enabled for a map view.