BackgroundLayer class Null safety

The background color or pattern of the map.

Inheritance

Constructors

BackgroundLayer({required dynamic id, dynamic visibility, dynamic minZoom, dynamic maxZoom, int? backgroundColor, double? backgroundOpacity, String? backgroundPattern})

Properties

backgroundColor int?
The color with which the background will be drawn.
read / write
backgroundOpacity double?
The opacity at which the background will be drawn.
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
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
visibility Visibility?
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 non-existent 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