CircleLayer

fun CircleLayer(sourceState: SourceState, layerId: String = remember { generateRandomLayerId("circle") }, circleSortKey: CircleSortKey = CircleSortKey.default, circleBlur: CircleBlur = CircleBlur.default, circleBlurTransition: Transition = Transition.default, circleColor: CircleColor = CircleColor.default, circleColorTransition: Transition = Transition.default, circleEmissiveStrength: CircleEmissiveStrength = CircleEmissiveStrength.default, circleEmissiveStrengthTransition: Transition = Transition.default, circleOpacity: CircleOpacity = CircleOpacity.default, circleOpacityTransition: Transition = Transition.default, circlePitchAlignment: CirclePitchAlignment = CirclePitchAlignment.default, circlePitchScale: CirclePitchScale = CirclePitchScale.default, circleRadius: CircleRadius = CircleRadius.default, circleRadiusTransition: Transition = Transition.default, circleStrokeColor: CircleStrokeColor = CircleStrokeColor.default, circleStrokeColorTransition: Transition = Transition.default, circleStrokeOpacity: CircleStrokeOpacity = CircleStrokeOpacity.default, circleStrokeOpacityTransition: Transition = Transition.default, circleStrokeWidth: CircleStrokeWidth = CircleStrokeWidth.default, circleStrokeWidthTransition: Transition = Transition.default, circleTranslate: CircleTranslate = CircleTranslate.default, circleTranslateTransition: Transition = Transition.default, circleTranslateAnchor: CircleTranslateAnchor = CircleTranslateAnchor.default, visibility: Visibility = Visibility.default, minZoom: MinZoom = MinZoom.default, maxZoom: MaxZoom = MaxZoom.default, sourceLayer: SourceLayer = SourceLayer.default, filter: Filter = Filter.default)

A filled circle.

See also

Parameters

sourceState

the source that drives this layer.

layerId

the ID of the layer, by default, a random id will be generated with UUID.

circleSortKey

Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.

circleBlur

Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.

circleColor

The fill color of the circle.

circleEmissiveStrength

Controls the intensity of light emitted on the source features.

circleOpacity

The opacity at which the circle will be drawn.

circlePitchAlignment

Orientation of circle when map is pitched.

circlePitchScale

Controls the scaling behavior of the circle when the map is pitched.

circleRadius

Circle radius.

circleStrokeColor

The stroke color of the circle.

circleStrokeOpacity

The opacity of the circle's stroke.

circleStrokeWidth

The width of the circle's stroke. Strokes are placed outside of the circle-radius.

circleTranslate

The geometry's offset. Values are x, y where negatives indicate left and up, respectively.

circleTranslateAnchor

Controls the frame of reference for circle-translate.

visibility

Whether this layer is displayed.

minZoom

The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.

maxZoom

The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.

sourceLayer

Layer to use from a vector tile source. Required for vector tile sources; prohibited for all other source types, including GeoJSON sources.

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 ["feature-state", ...] expression is not supported in filter expressions. The ["pitch"] and ["distance-from-center"] expressions are supported only for filter expressions on the symbol layer.