FillLayer
A fill layer draws polygons from the sourceLayer in the given source in the given style as a series of polygon fills. If nothing else is specified, these will be black.
Parameters
Unique layer name.
Vector data source for this layer.
Layer to use from the given vector tile source.
The minimum zoom level for the layer. At zoom levels less than this, the layer will be hidden. A value in the range of [0..24]
.
The maximum zoom level for the layer. At zoom levels equal to or greater than this, the layer will be hidden. A value in the range of [0..24]
.
An expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The featureState expression is not supported in filter expressions.
Whether the layer should be displayed.
Sorts features within this layer in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
The geometry's offset relative to the translateAnchor. Negative numbers indicate left and up, respectively.
Frame of reference for offsetting geometry.
Ignored if translate is not set.
Fill opacity. A value in range [0..1]
.
Fill color.
Ignored if pattern is specified.
Image 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.
Whether or not the fill should be antialiased.
The outline color of the fill. The outline is drawn at a hairline width.
Ignored if antialias is false
.
Function to call when any feature in this layer has been clicked.
Function to call when any feature in this layer has been long-clicked.