StyleLayerInfo class final
A layer in the map's style.
See mln_style_layer_info in the
C API reference.
Constructors
- StyleLayerInfo({String id = '', String type = '', String sourceId = '', String sourceLayer = '', double minZoom = 0, double maxZoom = 0, StyleLayerVisibility visibility = const StyleLayerVisibility.fromRawValue(0)})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- maxZoom → double
-
The zoom level where the layer stops showing, or infinity when the layer
doesn't set one.
final
- minZoom → double
-
The zoom level where the layer starts to show, or negative infinity when
the layer doesn't set one.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceId → String
-
final
- sourceLayer → String
-
final
- type → String
-
The layer's
[type](https://maplibre.org/maplibre-style-spec/layers/#type), such as
fill.final - visibility → StyleLayerVisibility
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited