BackgroundPattern

data class BackgroundPattern(val value: Value, val styleImage: StyleImage? = null)

Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.

Parameters

value

the property wrapped in Value to be used with native renderer.

styleImage

the optional style image that will be added to the style if available.

Constructors

Link copied to clipboard
fun BackgroundPattern(styleImage: StyleImage)

Construct the BackgroundPattern with StyleImage.

Link copied to clipboard

Construct the BackgroundPattern with String.

Link copied to clipboard
fun BackgroundPattern(expression: Expression)

Construct the BackgroundPattern with Mapbox Expression.

Link copied to clipboard
fun BackgroundPattern(value: Value, styleImage: StyleImage? = null)

Types

Link copied to clipboard
object Companion

Public companion object.

Properties

Link copied to clipboard
val styleImage: StyleImage? = null
Link copied to clipboard