MTFillLayer

@Serializable
class MTFillLayer : MTLayer

The fill style layer that renders one or more filled (and optionally stroked) polygons on a map.

Constructors

constructor(identifier: String, sourceIdentifier: String, maxZoom: Double, minZoom: Double, sourceLayer: String)
constructor(identifier: String, sourceIdentifier: String)
constructor(identifier: String, type: MTLayerType, sourceIdentifier: String, maxZoom: Double?, minZoom: Double?, sourceLayer: String?, shouldBeAntialised: Boolean?, color: Int?, opacity: Double?, outlineColor: Int?, translate: DoubleArray?, translateAnchor: MTFillTranslateAnchor?, sortKey: Double?, visibility: MTLayerVisibility)

Properties

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

The color of the filled part of this layer.

@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 entire fill layer.

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

The outline color of the fill.

Boolean indicating whether or not the fill should be antialiased.

Key for sorting features.

@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?

Layer to use from a vector tile source.

The geometry’s offset.

Enum controlling the frame of reference for translate.

open override var type: MTLayerType

Type of the layer.

Enum controlling whether this layer is displayed.