LineLayer

class LineLayer(layerId: String, sourceId: String) : Layer, LineLayerDsl

A stroked line.

See also

Parameters

layerId

the ID of the layer

sourceId

the ID of the source

Constructors

LineLayer
Link copied to clipboard
fun LineLayer(layerId: String, sourceId: String)
the ID of the layer

Types

Companion
Link copied to clipboard
object Companion
Static variables and methods.

Functions

bindTo
Link copied to clipboard
fun bindTo(delegate: StyleInterface)
Bind the layer to the Style.
open override fun bindTo(delegate: StyleInterface, position: LayerPosition?)
Bind the layer to the map controller.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
filter
Link copied to clipboard
open override fun filter(filter: Expression): LineLayer
Set the filter property
hashCode
Link copied to clipboard
open fun hashCode(): Int
lineBlur
Link copied to clipboard
open override fun lineBlur(lineBlur: Expression): LineLayer
Set the LineBlur property
open override fun lineBlur(lineBlur: Double): LineLayer
Set the LineBlur property
lineBlurTransition
Link copied to clipboard
open override fun lineBlurTransition(options: StyleTransition): LineLayer
Set the LineBlur property transition options
open override fun lineBlurTransition(block: StyleTransition.Builder.() -> Unit): LineLayer
lineCap
Link copied to clipboard
open override fun lineCap(lineCap: Expression): LineLayer
Set the LineCap property
open override fun lineCap(lineCap: LineCap): LineLayer
Set the LineCap property
lineColor
Link copied to clipboard
open override fun lineColor(lineColor: Expression): LineLayer
Set the LineColor property
open override fun lineColor(@ColorInt() lineColor: Int): LineLayer
Set the LineColor property.
open override fun lineColor(lineColor: String): LineLayer
Set the LineColor property
lineColorTransition
Link copied to clipboard
open override fun lineColorTransition(options: StyleTransition): LineLayer
Set the LineColor property transition options
open override fun lineColorTransition(block: StyleTransition.Builder.() -> Unit): LineLayer
lineDasharray
Link copied to clipboard
open override fun lineDasharray(lineDasharray: Expression): LineLayer
Set the LineDasharray property
open override fun lineDasharray(lineDasharray: List<Double>): LineLayer
Set the LineDasharray property
lineDasharrayTransition
Link copied to clipboard
open override fun lineDasharrayTransition(options: StyleTransition): LineLayer
Set the LineDasharray property transition options
open override fun lineDasharrayTransition(block: StyleTransition.Builder.() -> Unit): LineLayer
lineGapWidth
Link copied to clipboard
open override fun lineGapWidth(lineGapWidth: Expression): LineLayer
Set the LineGapWidth property
open override fun lineGapWidth(lineGapWidth: Double): LineLayer
Set the LineGapWidth property
lineGapWidthTransition
Link copied to clipboard
open override fun lineGapWidthTransition(options: StyleTransition): LineLayer
Set the LineGapWidth property transition options
open override fun lineGapWidthTransition(block: StyleTransition.Builder.() -> Unit): LineLayer
lineGradient
Link copied to clipboard
open override fun lineGradient(lineGradient: Expression): LineLayer
Set the LineGradient property
lineJoin
Link copied to clipboard
open override fun lineJoin(lineJoin: Expression): LineLayer
Set the LineJoin property
open override fun lineJoin(lineJoin: LineJoin): LineLayer
Set the LineJoin property
lineMiterLimit
Link copied to clipboard
open override fun lineMiterLimit(lineMiterLimit: Expression): LineLayer
Set the LineMiterLimit property
open override fun lineMiterLimit(lineMiterLimit: Double): LineLayer
Set the LineMiterLimit property
lineOffset
Link copied to clipboard
open override fun lineOffset(lineOffset: Expression): LineLayer
Set the LineOffset property
open override fun lineOffset(lineOffset: Double): LineLayer
Set the LineOffset property
lineOffsetTransition
Link copied to clipboard
open override fun lineOffsetTransition(options: StyleTransition): LineLayer
Set the LineOffset property transition options
open override fun lineOffsetTransition(block: StyleTransition.Builder.() -> Unit): LineLayer
lineOpacity
Link copied to clipboard
open override fun lineOpacity(lineOpacity: Expression): LineLayer
Set the LineOpacity property
open override fun lineOpacity(lineOpacity: Double): LineLayer
Set the LineOpacity property
lineOpacityTransition
Link copied to clipboard
open override fun lineOpacityTransition(options: StyleTransition): LineLayer
Set the LineOpacity property transition options
open override fun lineOpacityTransition(block: StyleTransition.Builder.() -> Unit): LineLayer
linePattern
Link copied to clipboard
open override fun linePattern(linePattern: Expression): LineLayer
Set the LinePattern property
open override fun linePattern(linePattern: String): LineLayer
Set the LinePattern property
linePatternTransition
Link copied to clipboard
open override fun linePatternTransition(options: StyleTransition): LineLayer
Set the LinePattern property transition options
open override fun linePatternTransition(block: StyleTransition.Builder.() -> Unit): LineLayer
lineRoundLimit
Link copied to clipboard
open override fun lineRoundLimit(lineRoundLimit: Expression): LineLayer
Set the LineRoundLimit property
open override fun lineRoundLimit(lineRoundLimit: Double): LineLayer
Set the LineRoundLimit property
lineSortKey
Link copied to clipboard
open override fun lineSortKey(lineSortKey: Expression): LineLayer
Set the LineSortKey property
open override fun lineSortKey(lineSortKey: Double): LineLayer
Set the LineSortKey property
lineTranslate
Link copied to clipboard
open override fun lineTranslate(lineTranslate: Expression): LineLayer
Set the LineTranslate property
open override fun lineTranslate(lineTranslate: List<Double>): LineLayer
Set the LineTranslate property
lineTranslateAnchor
Link copied to clipboard
open override fun lineTranslateAnchor(lineTranslateAnchor: Expression): LineLayer
Set the LineTranslateAnchor property
open override fun lineTranslateAnchor(lineTranslateAnchor: LineTranslateAnchor): LineLayer
Set the LineTranslateAnchor property
lineTranslateTransition
Link copied to clipboard
open override fun lineTranslateTransition(options: StyleTransition): LineLayer
Set the LineTranslate property transition options
open override fun lineTranslateTransition(block: StyleTransition.Builder.() -> Unit): LineLayer
lineTrimOffset
Link copied to clipboard
open override fun lineTrimOffset(lineTrimOffset: Expression): LineLayer
Set the LineTrimOffset property
open override fun lineTrimOffset(lineTrimOffset: List<Double>): LineLayer
Set the LineTrimOffset property
lineWidth
Link copied to clipboard
open override fun lineWidth(lineWidth: Expression): LineLayer
Set the LineWidth property
open override fun lineWidth(lineWidth: Double): LineLayer
Set the LineWidth property
lineWidthTransition
Link copied to clipboard
open override fun lineWidthTransition(options: StyleTransition): LineLayer
Set the LineWidth property transition options
open override fun lineWidthTransition(block: StyleTransition.Builder.() -> Unit): LineLayer
maxZoom
Link copied to clipboard
open override fun maxZoom(maxZoom: Double): LineLayer
Set the maxzoom property
minZoom
Link copied to clipboard
open override fun minZoom(minZoom: Double): LineLayer
Set the minzoom property
sourceLayer
Link copied to clipboard
open override fun sourceLayer(sourceLayer: String): LineLayer
Set the sourceLayer property
toString
Link copied to clipboard
open fun toString(): String
visibility
Link copied to clipboard
open override fun visibility(visibility: Visibility): LineLayer
Set the Visibility property

Properties

filter
Link copied to clipboard
val filter: Expression?
A expression specifying conditions on source features.
layerId
Link copied to clipboard
open override val layerId: String
the ID of the layer
lineBlur
Link copied to clipboard
val lineBlur: Double?
Blur applied to the line, in pixels.
lineBlurAsExpression
Link copied to clipboard
val lineBlurAsExpression: Expression?
This is an Expression representation of "line-blur".
lineBlurTransition
Link copied to clipboard
val lineBlurTransition: StyleTransition?
Transition options for LineBlur.
lineCap
Link copied to clipboard
val lineCap: LineCap?
The display of line endings.
lineCapAsExpression
Link copied to clipboard
val lineCapAsExpression: Expression?
This is an Expression representation of "line-cap".
lineColor
Link copied to clipboard
val lineColor: String?
The color with which the line will be drawn.
lineColorAsColorInt
Link copied to clipboard
val lineColorAsColorInt: Int?
The color with which the line will be drawn.
lineColorAsExpression
Link copied to clipboard
val lineColorAsExpression: Expression?
This is an Expression representation of "line-color".
lineColorTransition
Link copied to clipboard
val lineColorTransition: StyleTransition?
Transition options for LineColor.
lineDasharray
Link copied to clipboard
val lineDasharray: List<Double>?
Specifies the lengths of the alternating dashes and gaps that form the dash pattern.
lineDasharrayAsExpression
Link copied to clipboard
val lineDasharrayAsExpression: Expression?
This is an Expression representation of "line-dasharray".
lineDasharrayTransition
Link copied to clipboard
val lineDasharrayTransition: StyleTransition?
Transition options for LineDasharray.
lineGapWidth
Link copied to clipboard
val lineGapWidth: Double?
Draws a line casing outside of a line's actual path.
lineGapWidthAsExpression
Link copied to clipboard
val lineGapWidthAsExpression: Expression?
This is an Expression representation of "line-gap-width".
lineGapWidthTransition
Link copied to clipboard
val lineGapWidthTransition: StyleTransition?
Transition options for LineGapWidth.
lineGradient
Link copied to clipboard
val lineGradient: Expression?
Defines a gradient with which to color a line feature.
lineJoin
Link copied to clipboard
val lineJoin: LineJoin?
The display of lines when joining.
lineJoinAsExpression
Link copied to clipboard
val lineJoinAsExpression: Expression?
This is an Expression representation of "line-join".
lineMiterLimit
Link copied to clipboard
val lineMiterLimit: Double?
Used to automatically convert miter joins to bevel joins for sharp angles.
lineMiterLimitAsExpression
Link copied to clipboard
val lineMiterLimitAsExpression: Expression?
This is an Expression representation of "line-miter-limit".
lineOffset
Link copied to clipboard
val lineOffset: Double?
The line's offset.
lineOffsetAsExpression
Link copied to clipboard
val lineOffsetAsExpression: Expression?
This is an Expression representation of "line-offset".
lineOffsetTransition
Link copied to clipboard
val lineOffsetTransition: StyleTransition?
Transition options for LineOffset.
lineOpacity
Link copied to clipboard
val lineOpacity: Double?
The opacity at which the line will be drawn.
lineOpacityAsExpression
Link copied to clipboard
val lineOpacityAsExpression: Expression?
This is an Expression representation of "line-opacity".
lineOpacityTransition
Link copied to clipboard
val lineOpacityTransition: StyleTransition?
Transition options for LineOpacity.
linePattern
Link copied to clipboard
val linePattern: String?
Name of image in sprite to use for drawing image lines.
linePatternAsExpression
Link copied to clipboard
val linePatternAsExpression: Expression?
This is an Expression representation of "line-pattern".
linePatternTransition
Link copied to clipboard
val linePatternTransition: StyleTransition?
Transition options for LinePattern.
lineRoundLimit
Link copied to clipboard
val lineRoundLimit: Double?
Used to automatically convert round joins to miter joins for shallow angles.
lineRoundLimitAsExpression
Link copied to clipboard
val lineRoundLimitAsExpression: Expression?
This is an Expression representation of "line-round-limit".
lineSortKey
Link copied to clipboard
val lineSortKey: Double?
Sorts features in ascending order based on this value.
lineSortKeyAsExpression
Link copied to clipboard
val lineSortKeyAsExpression: Expression?
This is an Expression representation of "line-sort-key".
lineTranslate
Link copied to clipboard
val lineTranslate: List<Double>?
The geometry's offset.
lineTranslateAnchor
Link copied to clipboard
val lineTranslateAnchor: LineTranslateAnchor?
Controls the frame of reference for line-translate.
lineTranslateAnchorAsExpression
Link copied to clipboard
val lineTranslateAnchorAsExpression: Expression?
This is an Expression representation of "line-translate-anchor".
lineTranslateAsExpression
Link copied to clipboard
val lineTranslateAsExpression: Expression?
This is an Expression representation of "line-translate".
lineTranslateTransition
Link copied to clipboard
val lineTranslateTransition: StyleTransition?
Transition options for LineTranslate.
lineTrimOffset
Link copied to clipboard
val lineTrimOffset: List<Double>?
The line trim-off percentage range based on the whole line gradinet range 0.0, 1.
lineTrimOffsetAsExpression
Link copied to clipboard
val lineTrimOffsetAsExpression: Expression?
This is an Expression representation of "line-trim-offset".
lineWidth
Link copied to clipboard
val lineWidth: Double?
Stroke thickness.
lineWidthAsExpression
Link copied to clipboard
val lineWidthAsExpression: Expression?
This is an Expression representation of "line-width".
lineWidthTransition
Link copied to clipboard
val lineWidthTransition: StyleTransition?
Transition options for LineWidth.
maxZoom
Link copied to clipboard
open override val maxZoom: Double?
The maximum zoom level for the layer.
minZoom
Link copied to clipboard
open override val minZoom: Double?
The minimum zoom level for the layer.
sourceId
Link copied to clipboard
val sourceId: String
the ID of the source
sourceLayer
Link copied to clipboard
val sourceLayer: String?
Source layer.
visibility
Link copied to clipboard
open override val visibility: Visibility?
Visibility of the layer.