BackgroundLayer class

The background color or pattern of the map.

Inheritance

Constructors

BackgroundLayer({required String id, Visibility? visibility, List<Object>? visibilityExpression, List<Object>? filter, double? minZoom, double? maxZoom, String? slot, int? backgroundColor, List<Object>? backgroundColorExpression, double? backgroundEmissiveStrength, List<Object>? backgroundEmissiveStrengthExpression, double? backgroundOpacity, List<Object>? backgroundOpacityExpression, String? backgroundPattern, List<Object>? backgroundPatternExpression})

Properties

backgroundColor int?
The color with which the background will be drawn. Default value: "#000000".
getter/setter pair
backgroundColorExpression List<Object>?
The color with which the background will be drawn. Default value: "#000000".
getter/setter pair
backgroundEmissiveStrength double?
Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0.
getter/setter pair
backgroundEmissiveStrengthExpression List<Object>?
Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0.
getter/setter pair
backgroundOpacity double?
The opacity at which the background will be drawn. Default value: 1. Value range: 0, 1
getter/setter pair
backgroundOpacityExpression List<Object>?
The opacity at which the background will be drawn. Default value: 1. Value range: 0, 1
getter/setter pair
backgroundPattern String?
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.
getter/setter pair
backgroundPatternExpression List<Object>?
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.
getter/setter pair
filter List<Object>?
An expression specifying conditions on source features. Only features that match the filter are displayed.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id String
The ID of the Layer.
getter/setter pairinherited
maxZoom double?
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
getter/setter pairinherited
minZoom double?
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slot String?
The slot this layer is assigned to. If specified, and a slot with that name exists, it will be placed at that position in the layer order.
getter/setter pairinherited
visibility Visibility?
The visibility of the layer.
getter/setter pairinherited
visibilityExpression List<Object>?
The visibility of the layer.
getter/setter pairinherited

Methods

getType() String
Get the type of current layer as a String.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

decode(String properties) BackgroundLayer