@Beta(2020, 12) interface Style
An interface that represents map style.
abstract fun addImage(image: Image): Unit
Adds an image to the style. |
|
abstract fun addLayer(layer: Layer): Unit
Adds a layer to the style. The layer is added above all existing layers. |
|
abstract fun addSource(source: Source): Unit
Adds a source to the style. |
|
abstract fun findImageById(id: String!): Optional<Image!>
Provides access to the image with the provided id if such an image is present in the style. |
|
abstract fun findLayerById(id: String): Optional<Layer!>
Provides access to the layer with a provided id if such a layer is present in the style. |
|
abstract fun findLayersById(regex: String): MutableList<Layer!>
Provides access to all layers whose id matches the provided Regex. |
|
abstract fun findLayersBySourceLayerId(regex: String): MutableList<Layer!>
Provides access to all layers whose source layers have an id matching the provided Regex. |
|
abstract fun findSourceById(id: String): Optional<Source!>
Provides access to the source with the provided id if such a source is present in the style. |
|
abstract fun getLayers(): MutableList<Layer!>
Provides access to all layers in the style. |
|
abstract fun moveLayerBehind(id: String, referenceLayerId: String): Unit
Moves the layer behind the reference layer. |
|
abstract fun removeImage(id: String): Unit
Removes an image with a provided id from the style. |
|
abstract fun removeLayer(id: String): Unit
Removes the layer with a provided id from the style. |
|
abstract fun removeSource(id: String): Unit
Removes the source with the provided id from the style. |
interface StyleSettings : Style, UIMapSettings
Advanced settings for style manipulation. To obtain this interface, call |