MTCircleLayer

@Serializable
class MTCircleLayer : MTLayer

Circle style layer that renders filled circles.

Constructors

constructor(identifier: String, sourceIdentifier: String)
constructor(identifier: String, sourceIdentifier: String, maxZoom: Double, minZoom: Double, sourceLayer: String)
constructor(identifier: String, type: MTLayerType, sourceIdentifier: String, maxZoom: Double?, minZoom: Double?, sourceLayer: String?, blur: Double?, color: StyleValue?, opacity: Double?, radius: StyleValue?, strokeColor: Int?, strokeOpacity: Double?, strokeWidth: Double?, translate: DoubleArray?, translateAnchor: MTCircleTranslateAnchor?, pitchAlignment: MTCirclePitchAlignment?, pitchScale: MTCirclePitchScale?, sortKey: Double?, visibility: MTLayerVisibility)

Properties

var blur: Double?

Amount to blur the circle.

The color of the circle (constant or expression).

@SerialName(value = "id")
open override var identifier: String

Unique layer identifier.

@SerialName(value = "maxzoom")
open override var maxZoom: Double?

The maximum zoom level for the layer.

@SerialName(value = "minzoom")
open override var minZoom: Double?

The minimum zoom level for the layer.

The opacity of the circle.

Controls the alignment of circles when map is pitched.

Controls the scaling of circles when map is pitched.

The radius of the circle in pixels (constant or expression).

Sort key to determine rendering order.

@SerialName(value = "source")
open override var sourceIdentifier: String

Identifier of the source to be used for this layer.

@SerialName(value = "source-layer")
open override var sourceLayer: String?

Vector tile source layer name, if applicable.

@Serializable(with = ColorAsHexSerializer::class)
var strokeColor: Int?

The stroke color of the circle.

The stroke opacity of the circle.

The stroke width of the circle.

The geometry’s offset. Values are x, y.

Controls the frame of reference for translate.

open override var type: MTLayerType

Type of the layer.

Visibility of the layer.