Style
The general class to interact with Styles in the Modular Mapbox Maps SDK for Android. It exposes the entry point for all methods related to the Style. You cannot instantiate Style object directly, rather, you must obtain one from the getStyleAsync() method on MapboxMap.
<p> Note: Similar to a View object, a [Style] should only be read and modified from the main thread. </p>
Types
Functions
addImage
Link copied to clipboard
addStyleCustomGeometrySource
Link copied to clipboard
open override fun addStyleCustomGeometrySource(sourceId: String, options: CustomGeometrySourceOptions): Expected<Void, String>
Content copied to clipboard
addStyleCustomLayer
Link copied to clipboard
open override fun addStyleCustomLayer(layerId: String, layerHost: CustomLayerHost, layerPosition: LayerPosition?): Expected<Void, String>
Content copied to clipboard
addStyleImage
Link copied to clipboard
addStyleLayer
Link copied to clipboard
open override fun addStyleLayer(parameters: Value, position: LayerPosition?): Expected<Void, String>
Content copied to clipboard
addStyleSource
Link copied to clipboard
open override fun addStyleSource(sourceId: String, properties: Value): Expected<Void, String>
Content copied to clipboard
equals
Link copied to clipboard
getStyleDefaultCamera
Link copied to clipboard
getStyleGeoJSONSourceClusterChildren
Link copied to clipboard
open override fun getStyleGeoJSONSourceClusterChildren(sourceId: String, clusterId: Int): Expected<MutableList<Feature>, String>
Content copied to clipboard
getStyleGeoJSONSourceClusterExpansionZoom
Link copied to clipboard
open override fun getStyleGeoJSONSourceClusterExpansionZoom(sourceId: String, clusterId: Int): Expected<Byte, String>
Content copied to clipboard
getStyleGeoJSONSourceClusterLeaves
Link copied to clipboard
open override fun getStyleGeoJSONSourceClusterLeaves(sourceId: String, clusterId: Int, limit: Int, offset: Int): Expected<MutableList<Feature>, String>
Content copied to clipboard
getStyleImage
Link copied to clipboard
getStyleJSON
Link copied to clipboard
getStyleLayerProperties
Link copied to clipboard
open override fun getStyleLayerProperties(layerId: String): Expected<Value, String>
Content copied to clipboard
getStyleLayerProperty
Link copied to clipboard
open override fun getStyleLayerProperty(layerId: String, property: String): StylePropertyValue
Content copied to clipboard
getStyleLayers
Link copied to clipboard
getStyleLightProperty
Link copied to clipboard
open override fun getStyleLightProperty(property: String): StylePropertyValue
Content copied to clipboard
getStyleSourceProperties
Link copied to clipboard
open override fun getStyleSourceProperties(sourceId: String): Expected<Value, String>
Content copied to clipboard
getStyleSourceProperty
Link copied to clipboard
open override fun getStyleSourceProperty(sourceId: String, property: String): StylePropertyValue
Content copied to clipboard
getStyleSources
Link copied to clipboard
getStyleSourcesAttribution
Link copied to clipboard
getStyleTerrainProperty
Link copied to clipboard
open override fun getStyleTerrainProperty(property: String): StylePropertyValue
Content copied to clipboard
getStyleTransition
Link copied to clipboard
getStyleURI
Link copied to clipboard
invalidateStyleCustomGeometrySourceRegion
Link copied to clipboard
open override fun invalidateStyleCustomGeometrySourceRegion(sourceId: String, coordinateBounds: CoordinateBounds): Expected<Void, String>
Content copied to clipboard
invalidateStyleCustomGeometrySourceTile
Link copied to clipboard
open override fun invalidateStyleCustomGeometrySourceTile(sourceId: String, tileId: CanonicalTileID): Expected<Void, String>
Content copied to clipboard
isFullyLoaded
Link copied to clipboard
removeStyleImage
Link copied to clipboard
open override fun removeStyleImage(imageId: String): Expected<Void, String>
Content copied to clipboard
removeStyleLayer
Link copied to clipboard
open override fun removeStyleLayer(layerId: String): Expected<Void, String>
Content copied to clipboard
removeStyleSource
Link copied to clipboard
open override fun removeStyleSource(sourceId: String): Expected<Void, String>
Content copied to clipboard
setStyleCustomGeometrySourceTileData
Link copied to clipboard
open override fun setStyleCustomGeometrySourceTileData(sourceId: String, tileId: CanonicalTileID, featureCollection: MutableList<Feature>): Expected<Void, String>
Content copied to clipboard
setStyleJSON
Link copied to clipboard
setStyleLayerProperties
Link copied to clipboard
open override fun setStyleLayerProperties(layerId: String, properties: Value): Expected<Void, String>
Content copied to clipboard
setStyleLayerProperty
Link copied to clipboard
open override fun setStyleLayerProperty(layerId: String, property: String, value: Value): Expected<Void, String>
Content copied to clipboard
setStyleLight
Link copied to clipboard
open override fun setStyleLight(parameters: Value): Expected<Void, String>
Content copied to clipboard
setStyleLightProperty
Link copied to clipboard
open override fun setStyleLightProperty(id: String, light: Value): Expected<Void, String>
Content copied to clipboard
setStyleSourceProperties
Link copied to clipboard
open override fun setStyleSourceProperties(sourceId: String, properties: Value): Expected<Void?, String?>
Content copied to clipboard
setStyleSourceProperty
Link copied to clipboard
open override fun setStyleSourceProperty(sourceId: String, property: String, value: Value): Expected<Void, String>
Content copied to clipboard
setStyleTerrain
Link copied to clipboard
open override fun setStyleTerrain(properties: Value): Expected<Void, String>
Content copied to clipboard
setStyleTerrainProperty
Link copied to clipboard
open override fun setStyleTerrainProperty(property: String, value: Value): Expected<Void, String>
Content copied to clipboard
setStyleTransition
Link copied to clipboard
open override fun setStyleTransition(transitionOptions: TransitionOptions)
Content copied to clipboard
setStyleURI
Link copied to clipboard
styleLayerExists
Link copied to clipboard
styleSourceExists
Link copied to clipboard
subscribe
Link copied to clipboard
open override fun subscribe(observer: Observer, events: MutableList<String>)
Content copied to clipboard
unsubscribe
Link copied to clipboard
open override fun unsubscribe(observer: Observer, events: MutableList<String>)
Content copied to clipboard
updateStyleImageSourceImage
Link copied to clipboard
open override fun updateStyleImageSourceImage(sourceId: String, image: Image): Expected<Void, String>
Content copied to clipboard
Properties
fullyLoaded
Link copied to clipboard
true is style is fully loaded, false if a new style is being loaded