Background Layer
@UiThread()
Content copied to clipboard
The background color or pattern of the map.
See also
Parameters
layerId
the ID of the layer
Constructors
BackgroundLayer
Link copied to clipboard
the ID of the layer
Types
Functions
backgroundColor
Link copied to clipboard
open override fun backgroundColor(backgroundColor: Expression): BackgroundLayer
Content copied to clipboard
open override fun backgroundColor(@ColorInt() backgroundColor: Int): BackgroundLayer
Content copied to clipboard
open override fun backgroundColor(backgroundColor: String): BackgroundLayer
Content copied to clipboard
backgroundColorTransition
Link copied to clipboard
open override fun backgroundColorTransition(options: StyleTransition): BackgroundLayer
Content copied to clipboard
open override fun backgroundColorTransition(block: StyleTransition.Builder.() -> Unit): BackgroundLayer
Content copied to clipboard
DSL for backgroundColorTransition.
backgroundOpacity
Link copied to clipboard
open override fun backgroundOpacity(backgroundOpacity: Expression): BackgroundLayer
Content copied to clipboard
open override fun backgroundOpacity(backgroundOpacity: Double): BackgroundLayer
Content copied to clipboard
backgroundOpacityTransition
Link copied to clipboard
open override fun backgroundOpacityTransition(options: StyleTransition): BackgroundLayer
Content copied to clipboard
open override fun backgroundOpacityTransition(block: StyleTransition.Builder.() -> Unit): BackgroundLayer
Content copied to clipboard
DSL for backgroundOpacityTransition.
backgroundPattern
Link copied to clipboard
open override fun backgroundPattern(backgroundPattern: Expression): BackgroundLayer
Content copied to clipboard
open override fun backgroundPattern(backgroundPattern: String): BackgroundLayer
Content copied to clipboard
backgroundPatternTransition
Link copied to clipboard
open override fun backgroundPatternTransition(options: StyleTransition): BackgroundLayer
Content copied to clipboard
open override fun backgroundPatternTransition(block: StyleTransition.Builder.() -> Unit): BackgroundLayer
Content copied to clipboard
DSL for backgroundPatternTransition.
bindTo
Link copied to clipboard
open override fun bindTo(delegate: StyleInterface, position: LayerPosition?)
Content copied to clipboard
maxZoom
Link copied to clipboard
minZoom
Link copied to clipboard
visibility
Link copied to clipboard
Properties
backgroundColor
Link copied to clipboard
The color with which the background will be drawn.
backgroundColorAsColorInt
Link copied to clipboard
The color with which the background will be drawn.
backgroundColorAsExpression
Link copied to clipboard
This is an Expression representation of "background-color".
backgroundColorTransition
Link copied to clipboard
Transition options for BackgroundColor.
backgroundOpacity
Link copied to clipboard
The opacity at which the background will be drawn.
backgroundOpacityAsExpression
Link copied to clipboard
This is an Expression representation of "background-opacity".
backgroundOpacityTransition
Link copied to clipboard
Transition options for BackgroundOpacity.
backgroundPattern
Link copied to clipboard
Name of image in sprite to use for drawing an image background.
backgroundPatternAsExpression
Link copied to clipboard
This is an Expression representation of "background-pattern".
backgroundPatternTransition
Link copied to clipboard
Transition options for BackgroundPattern.
visibility
Link copied to clipboard
Visibility of the layer.