backgroundPattern

open override fun backgroundPattern(backgroundPattern: String): BackgroundLayer

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.

Use static method BackgroundLayer.defaultBackgroundPattern to set the default property.

Parameters

backgroundPattern

value of backgroundPattern


open override fun backgroundPattern(backgroundPattern: Expression): BackgroundLayer

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.

Use static method BackgroundLayer.defaultBackgroundPatternAsExpression to set the default property.

Parameters

backgroundPattern

value of backgroundPattern as Expression


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.