MTLineLayer
Constructors
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
The color with which the line will be drawn.
The lengths of the alternating dashes and gaps that form the dash pattern.
The gradient with which to color a line feature. Can only be used with GeoJSON sources that specify "lineMetrics": true.
Unique layer identifier.
The display of lines when joining.
Used to automatically convert miter joins to bevel joins for sharp angles. Requires join to be "miter".
Used to automatically convert round joins to miter joins for shallow angles.
Identifier of the source to be used for this layer.
Layer to use from a vector tile source.
The geometry’s offset. Values are x, y.
Controls the frame of reference for translate.
Type of the layer.
Enum controlling whether this layer is displayed.