MTLineLayer

@Serializable
class MTLineLayer : MTLayer

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?, cap: MTLineCap?, color: Int?, dashArray: DoubleArray?, gapWidth: Double?, gradient: Int?, join: MTLineJoin?, miterLimit: Double?, offset: Double?, opacity: Double?, roundLimit: Double?, sortKey: Double?, translate: DoubleArray?, translateAnchor: MTLineTranslateAnchor?, width: Double?, visibility: MTLayerVisibility)

Properties

var blur: Double?

Blur of the line.

The display of line endings.

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

The color with which the line will be drawn.

The lengths of the alternating dashes and gaps that form the dash pattern.

Line casing outside of a line’s actual path.

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

The gradient with which to color a line feature. Can only be used with GeoJSON sources that specify "lineMetrics": true.

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

Unique layer identifier.

The display of lines when joining.

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

Used to automatically convert miter joins to bevel joins for sharp angles. Requires join to be "miter".

The line’s offset.

Optional number between 0 and 1 inclusive.

Used to automatically convert round joins to miter joins for shallow angles.

Feature ordering value.

@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. Values are x, y.

Controls the frame of reference for translate.

open override var type: MTLayerType

Type of the layer.

Enum controlling whether this layer is displayed.

Width of the line.