FillLayer class Null safety
A filled polygon with an optional stroked border.
Constructors
-
FillLayer({required dynamic id, dynamic visibility, dynamic minZoom, dynamic maxZoom, required String sourceId, String? sourceLayer, double? fillSortKey, bool? fillAntialias, int? fillColor, double? fillOpacity, int? fillOutlineColor, String? fillPattern, List<
double?> ? fillTranslate, FillTranslateAnchor? fillTranslateAnchor})
Properties
- fillAntialias ↔ bool?
-
Whether or not the fill should be antialiased.
read / write
- fillColor ↔ int?
-
The color of the filled part of this layer. This color can be specified as
rgbawith an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.read / write - fillOpacity ↔ double?
-
The opacity of the entire fill layer. In contrast to the
fill-color, this value will also affect the 1px stroke around the fill, if the stroke is used.read / write - fillOutlineColor ↔ int?
-
The outline color of the fill. Matches the value of
fill-colorif unspecified.read / write - fillPattern ↔ String?
-
Name of image in sprite to use for drawing image fills. 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
- fillSortKey ↔ double?
-
Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
read / write
-
fillTranslate
↔ List<
double?> ? -
The geometry's offset. Values are
x, ywhere negatives indicate left and up, respectively.read / write - fillTranslateAnchor ↔ FillTranslateAnchor?
-
Controls the frame of reference for
fill-translate.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
- sourceId ↔ String
-
The id of the source.
read / write
- sourceLayer ↔ String?
-
A source layer is an individual layer of data within a vector source. A vector source can have multiple source layers.
read / write
- 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