FillLayer

@Composable
fun FillLayer(    id: String,     source: Source,     sourceLayer: String = "",     minZoom: Float = 0.0f,     maxZoom: Float = 24.0f,     filter: Expression<BooleanValue> = nil(),     visible: Boolean = true,     sortKey: Expression<FloatValue> = nil(),     translate: Expression<DpOffsetValue> = const(DpOffset.Zero),     translateAnchor: Expression<TranslateAnchor> = const(TranslateAnchor.Map),     opacity: Expression<FloatValue> = const(1f),     color: Expression<ColorValue> = const(Color.Black),     pattern: Expression<ImageValue> = nil(),     antialias: Expression<BooleanValue> = const(true),     outlineColor: Expression<ColorValue> = color,     onClick: FeaturesClickHandler? = null,     onLongClick: FeaturesClickHandler? = null)(source)

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

id

Unique layer name.

source

Vector data source for this layer.

sourceLayer

Layer to use from the given vector tile source.

minZoom

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].

maxZoom

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].

filter

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.

visible

Whether the layer should be displayed.

sortKey

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.

translate

The geometry's offset relative to the translateAnchor. Negative numbers indicate left and up, respectively.

translateAnchor

Frame of reference for offsetting geometry.

Ignored if translate is not set.

opacity

Fill opacity. A value in range [0..1].

color

Fill color.

Ignored if pattern is specified.

pattern

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.

antialias

Whether or not the fill should be antialiased.

outlineColor

The outline color of the fill. The outline is drawn at a hairline width.

Ignored if antialias is false.

onClick

Function to call when any feature in this layer has been clicked.

onLongClick

Function to call when any feature in this layer has been long-clicked.