CircleLayer

fun CircleLayer(sourceState: SourceState, layerId: String = remember { generateRandomLayerId("circle") }, circleSortKey: DoubleValue = DoubleValue.INITIAL, circleBlur: DoubleValue = DoubleValue.INITIAL, circleBlurTransition: Transition = Transition.INITIAL, circleColor: ColorValue = ColorValue.INITIAL, circleColorTransition: Transition = Transition.INITIAL, circleEmissiveStrength: DoubleValue = DoubleValue.INITIAL, circleEmissiveStrengthTransition: Transition = Transition.INITIAL, circleOpacity: DoubleValue = DoubleValue.INITIAL, circleOpacityTransition: Transition = Transition.INITIAL, circlePitchAlignment: CirclePitchAlignmentValue = CirclePitchAlignmentValue.INITIAL, circlePitchScale: CirclePitchScaleValue = CirclePitchScaleValue.INITIAL, circleRadius: DoubleValue = DoubleValue.INITIAL, circleRadiusTransition: Transition = Transition.INITIAL, circleStrokeColor: ColorValue = ColorValue.INITIAL, circleStrokeColorTransition: Transition = Transition.INITIAL, circleStrokeOpacity: DoubleValue = DoubleValue.INITIAL, circleStrokeOpacityTransition: Transition = Transition.INITIAL, circleStrokeWidth: DoubleValue = DoubleValue.INITIAL, circleStrokeWidthTransition: Transition = Transition.INITIAL, circleTranslate: DoubleListValue = DoubleListValue.INITIAL, circleTranslateTransition: Transition = Transition.INITIAL, circleTranslateAnchor: CircleTranslateAnchorValue = CircleTranslateAnchorValue.INITIAL, visibility: VisibilityValue = VisibilityValue.INITIAL, minZoom: LongValue = LongValue.INITIAL, maxZoom: LongValue = LongValue.INITIAL, sourceLayer: StringValue = StringValue.INITIAL, filter: Filter = Filter.INITIAL)

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.

circleBlurTransition

Defines the transition of circleBlur.

circleColor

The fill color of the circle.

circleColorTransition

Defines the transition of circleColor.

circleEmissiveStrength

Controls the intensity of light emitted on the source features.

circleEmissiveStrengthTransition

Defines the transition of circleEmissiveStrength.

circleOpacity

The opacity at which the circle will be drawn.

circleOpacityTransition

Defines the transition of circleOpacity.

circlePitchAlignment

Orientation of circle when map is pitched.

circlePitchScale

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

circleRadius

Circle radius.

circleRadiusTransition

Defines the transition of circleRadius.

circleStrokeColor

The stroke color of the circle.

circleStrokeColorTransition

Defines the transition of circleStrokeColor.

circleStrokeOpacity

The opacity of the circle's stroke.

circleStrokeOpacityTransition

Defines the transition of circleStrokeOpacity.

circleStrokeWidth

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

circleStrokeWidthTransition

Defines the transition of circleStrokeWidth.

circleTranslate

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

circleTranslateTransition

Defines the transition of circleTranslate.

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.