FillLayer class

A filled polygon with an optional stroked border.

Inheritance

Constructors

FillLayer({required String id, Visibility? visibility, List<Object>? visibilityExpression, List<Object>? filter, double? minZoom, double? maxZoom, String? slot, required String sourceId, String? sourceLayer, bool? fillConstructBridgeGuardRail, List<Object>? fillConstructBridgeGuardRailExpression, FillElevationReference? fillElevationReference, List<Object>? fillElevationReferenceExpression, double? fillSortKey, List<Object>? fillSortKeyExpression, bool? fillAntialias, List<Object>? fillAntialiasExpression, int? fillBridgeGuardRailColor, List<Object>? fillBridgeGuardRailColorExpression, int? fillColor, List<Object>? fillColorExpression, double? fillEmissiveStrength, List<Object>? fillEmissiveStrengthExpression, double? fillOpacity, List<Object>? fillOpacityExpression, int? fillOutlineColor, List<Object>? fillOutlineColorExpression, String? fillPattern, List<Object>? fillPatternExpression, double? fillPatternCrossFade, List<Object>? fillPatternCrossFadeExpression, List<double?>? fillTranslate, List<Object>? fillTranslateExpression, FillTranslateAnchor? fillTranslateAnchor, List<Object>? fillTranslateAnchorExpression, int? fillTunnelStructureColor, List<Object>? fillTunnelStructureColorExpression, double? fillZOffset, List<Object>? fillZOffsetExpression})

Properties

fillAntialias ↔ bool?
Whether or not the fill should be antialiased. Default value: true.
getter/setter pair
fillAntialiasExpression ↔ List<Object>?
Whether or not the fill should be antialiased. Default value: true.
getter/setter pair
fillBridgeGuardRailColor ↔ int?
The color of bridge guard rail. Default value: "rgba(241, 236, 225, 255)".
getter/setter pair
fillBridgeGuardRailColorExpression ↔ List<Object>?
The color of bridge guard rail. Default value: "rgba(241, 236, 225, 255)".
getter/setter pair
fillColor ↔ int?
The color of the filled part of this layer. This color can be specified as rgba with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used. Default value: "#000000".
getter/setter pair
fillColorExpression ↔ List<Object>?
The color of the filled part of this layer. This color can be specified as rgba with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used. Default value: "#000000".
getter/setter pair
fillConstructBridgeGuardRail ↔ bool?
Determines whether bridge guard rails are added for elevated roads. Default value: "true".
getter/setter pair
fillConstructBridgeGuardRailExpression ↔ List<Object>?
Determines whether bridge guard rails are added for elevated roads. Default value: "true".
getter/setter pair
fillElevationReference ↔ FillElevationReference?
Selects the base of fill-elevation. Some modes might require precomputed elevation data in the tileset. Default value: "none".
getter/setter pair
fillElevationReferenceExpression ↔ List<Object>?
Selects the base of fill-elevation. Some modes might require precomputed elevation data in the tileset. Default value: "none".
getter/setter pair
fillEmissiveStrength ↔ double?
Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0. The unit of fillEmissiveStrength is in intensity.
getter/setter pair
fillEmissiveStrengthExpression ↔ List<Object>?
Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0. The unit of fillEmissiveStrength is in intensity.
getter/setter pair
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. Default value: 1. Value range: 0, 1
getter/setter pair
fillOpacityExpression ↔ List<Object>?
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. Default value: 1. Value range: 0, 1
getter/setter pair
fillOutlineColor ↔ int?
The outline color of the fill. Matches the value of fill-color if unspecified.
getter/setter pair
fillOutlineColorExpression ↔ List<Object>?
The outline color of the fill. Matches the value of fill-color if unspecified.
getter/setter pair
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.
getter/setter pair
fillPatternCrossFade ↔ double?
Controls the transition progress between the image variants of fill-pattern. Zero means the first variant is used, one is the second, and in between they are blended together. Both images should be the same size and have the same type (either raster or vector). Default value: 0. Value range: 0, 1
getter/setter pair
fillPatternCrossFadeExpression ↔ List<Object>?
Controls the transition progress between the image variants of fill-pattern. Zero means the first variant is used, one is the second, and in between they are blended together. Both images should be the same size and have the same type (either raster or vector). Default value: 0. Value range: 0, 1
getter/setter pair
fillPatternExpression ↔ List<Object>?
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.
getter/setter pair
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.
getter/setter pair
fillSortKeyExpression ↔ List<Object>?
Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
getter/setter pair
fillTranslate ↔ List<double?>?
The geometry's offset. Values are x, y where negatives indicate left and up, respectively. Default value: 0,0. The unit of fillTranslate is in pixels.
getter/setter pair
fillTranslateAnchor ↔ FillTranslateAnchor?
Controls the frame of reference for fill-translate. Default value: "map".
getter/setter pair
fillTranslateAnchorExpression ↔ List<Object>?
Controls the frame of reference for fill-translate. Default value: "map".
getter/setter pair
fillTranslateExpression ↔ List<Object>?
The geometry's offset. Values are x, y where negatives indicate left and up, respectively. Default value: 0,0. The unit of fillTranslate is in pixels.
getter/setter pair
fillTunnelStructureColor ↔ int?
The color of tunnel structures (tunnel entrance and tunnel walls). Default value: "rgba(241, 236, 225, 255)".
getter/setter pair
fillTunnelStructureColorExpression ↔ List<Object>?
The color of tunnel structures (tunnel entrance and tunnel walls). Default value: "rgba(241, 236, 225, 255)".
getter/setter pair
fillZOffset ↔ double?
Specifies an uniform elevation in meters. Note: If the value is zero, the layer will be rendered on the ground. Non-zero values will elevate the layer from the sea level, which can cause it to be rendered below the terrain. Default value: 0. Minimum value: 0.
getter/setter pair
fillZOffsetExpression ↔ List<Object>?
Specifies an uniform elevation in meters. Note: If the value is zero, the layer will be rendered on the ground. Non-zero values will elevate the layer from the sea level, which can cause it to be rendered below the terrain. Default value: 0. Minimum value: 0.
getter/setter pair
filter ↔ List<Object>?
An expression specifying conditions on source features. Only features that match the filter are displayed.
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String
The ID of the Layer.
getter/setter pairinherited
maxZoom ↔ double?
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
getter/setter pairinherited
minZoom ↔ double?
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
getter/setter pairinherited
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, it will be placed at that position in the layer order.
getter/setter pairinherited
sourceId ↔ String
The id of the source.
getter/setter pair
sourceLayer ↔ String?
A source layer is an individual layer of data within a vector source. A vector source can have multiple source layers.
getter/setter pair
visibility ↔ Visibility?
The visibility of the layer.
getter/setter pairinherited
visibilityExpression ↔ List<Object>?
The visibility of the layer.
getter/setter pairinherited

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) → FillLayer