CircleLayer

@Composable
fun CircleLayer(    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),     blur: Expression<FloatValue> = const(0f),     radius: Expression<DpValue> = const(5.dp),     strokeOpacity: Expression<FloatValue> = const(1f),     strokeColor: Expression<ColorValue> = const(Color.Black),     strokeWidth: Expression<DpValue> = const(0.dp),     pitchScale: Expression<CirclePitchScale> = const(CirclePitchScale.Map),     pitchAlignment: Expression<CirclePitchAlignment> = const(CirclePitchAlignment.Viewport),     onClick: FeaturesClickHandler? = null,     onLongClick: FeaturesClickHandler? = null)(source)

A circle layer draws points from the sourceLayer in the given source in the given style as a circles. If nothing else is specified, these will be black dots of 5 dp radius.

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

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

color

Circles fill color.

blur

Amount to blur the circle. A value of 1 blurs the circle such that only the centerpoint has full opacity.

radius

Circles radius.

strokeOpacity

Opacity of the circles' stroke.

strokeColor

Circles' stroke color.

strokeWidth

Thickness of the circles' stroke. Strokes are placed outside of the radius.

pitchScale

Scaling behavior of circles when the map is pitched.

pitchAlignment

Orientation of circles when the map is pitched.

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.