Layer class abstract base

Base class for all style layers.

Implementers

Constructors

Layer({required String id, Visibility? visibility, List<Object>? visibilityExpression, List<Object>? filter, double? maxZoom, double? minZoom, String? slot})

Properties

filter ↔ List<Object>?
Expression specifying conditions on source features. Only features that match the filter are displayed.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String
The ID of the Layer.
getter/setter pair
maxZoom ↔ double?
Maximum zoom level. At zoom levels equal to or greater than this, the layer is hidden. Range: 0 to 24.
getter/setter pair
minZoom ↔ double?
Minimum zoom level. At zoom levels less than this, the layer is hidden. Range: 0 to 24.
getter/setter pair
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, the layer is placed at that slot's position in the layer order.
getter/setter pair
visibility ↔ Visibility?
The visibility of the layer.
getter/setter pair
visibilityExpression ↔ List<Object>?
The visibility of the layer, expressed as a style expression.
getter/setter pair

Methods

getType() → String
Returns the layer's type as a String (e.g. "fill", "line").
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