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".
read / write
backgroundColorExpression List<Object>?
The color with which the background will be drawn. Default value: "#000000".
read / write
backgroundEmissiveStrength double?
Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0.
read / write
backgroundEmissiveStrengthExpression List<Object>?
Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0.
read / write
backgroundOpacity double?
The opacity at which the background will be drawn. Default value: 1. Value range: 0, 1
read / write
backgroundOpacityExpression List<Object>?
The opacity at which the background will be drawn. Default value: 1. Value range: 0, 1
read / write
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.
read / write
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.
read / write
filter List<Object>?
An expression specifying conditions on source features. Only features that match the filter are displayed.
read / writeinherited
hashCode int
The hash code for this object.
read-onlyinherited
id String
The ID of the Layer.
read / writeinherited
maxZoom double?
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
read / writeinherited
minZoom double?
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
read / writeinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
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.
read / writeinherited
visibility Visibility?
The visibility of the layer.
read / writeinherited
visibilityExpression List<Object>?
The visibility of the layer.
read / writeinherited

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