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): <ERROR CLASS>
Set the filter property
hashCode
Link copied to clipboard
open fun hashCode(): Int
lineBlur
Link copied to clipboard
open override fun lineBlur(lineBlur: Expression): <ERROR CLASS>
Set the LineBlur property
open override fun lineBlur(lineBlur: Double): <ERROR CLASS>
Set the LineBlur property
lineBlurTransition
Link copied to clipboard
open override fun lineBlurTransition(options: StyleTransition): <ERROR CLASS>
Set the LineBlur property transition options
open override fun lineBlurTransition(block: StyleTransition.Builder.() -> Unit): <ERROR CLASS>
lineCap
Link copied to clipboard
open override fun lineCap(lineCap: Expression): <ERROR CLASS>
Set the LineCap property
open override fun lineCap(lineCap: LineCap): <ERROR CLASS>
Set the LineCap property
lineColor
Link copied to clipboard
open override fun lineColor(lineColor: Expression): <ERROR CLASS>
Set the LineColor property
open override fun lineColor(@ColorInt() lineColor: Int): <ERROR CLASS>
Set the LineColor property.
open override fun lineColor(lineColor: String): <ERROR CLASS>
Set the LineColor property
lineColorTransition
Link copied to clipboard
open override fun lineColorTransition(options: StyleTransition): <ERROR CLASS>
Set the LineColor property transition options
open override fun lineColorTransition(block: StyleTransition.Builder.() -> Unit): <ERROR CLASS>
lineDasharray
Link copied to clipboard
open override fun lineDasharray(lineDasharray: Expression): <ERROR CLASS>
Set the LineDasharray property
open override fun lineDasharray(lineDasharray: List<Double>): <ERROR CLASS>
Set the LineDasharray property
lineDasharrayTransition
Link copied to clipboard
open override fun lineDasharrayTransition(options: StyleTransition): <ERROR CLASS>
Set the LineDasharray property transition options
open override fun lineDasharrayTransition(block: StyleTransition.Builder.() -> Unit): <ERROR CLASS>
lineGapWidth
Link copied to clipboard
open override fun lineGapWidth(lineGapWidth: Expression): <ERROR CLASS>
Set the LineGapWidth property
open override fun lineGapWidth(lineGapWidth: Double): <ERROR CLASS>
Set the LineGapWidth property
lineGapWidthTransition
Link copied to clipboard
open override fun lineGapWidthTransition(options: StyleTransition): <ERROR CLASS>
Set the LineGapWidth property transition options
open override fun lineGapWidthTransition(block: StyleTransition.Builder.() -> Unit): <ERROR CLASS>
lineGradient
Link copied to clipboard
open override fun lineGradient(lineGradient: Expression): <ERROR CLASS>
Set the LineGradient property
lineJoin
Link copied to clipboard
open override fun lineJoin(lineJoin: Expression): <ERROR CLASS>
Set the LineJoin property
open override fun lineJoin(lineJoin: LineJoin): <ERROR CLASS>
Set the LineJoin property
lineMiterLimit
Link copied to clipboard
open override fun lineMiterLimit(lineMiterLimit: Expression): <ERROR CLASS>
Set the LineMiterLimit property
open override fun lineMiterLimit(lineMiterLimit: Double): <ERROR CLASS>
Set the LineMiterLimit property
lineOffset
Link copied to clipboard
open override fun lineOffset(lineOffset: Expression): <ERROR CLASS>
Set the LineOffset property
open override fun lineOffset(lineOffset: Double): <ERROR CLASS>
Set the LineOffset property
lineOffsetTransition
Link copied to clipboard
open override fun lineOffsetTransition(options: StyleTransition): <ERROR CLASS>
Set the LineOffset property transition options
open override fun lineOffsetTransition(block: StyleTransition.Builder.() -> Unit): <ERROR CLASS>
lineOpacity
Link copied to clipboard
open override fun lineOpacity(lineOpacity: Expression): <ERROR CLASS>
Set the LineOpacity property
open override fun lineOpacity(lineOpacity: Double): <ERROR CLASS>
Set the LineOpacity property
lineOpacityTransition
Link copied to clipboard
open override fun lineOpacityTransition(options: StyleTransition): <ERROR CLASS>
Set the LineOpacity property transition options
open override fun lineOpacityTransition(block: StyleTransition.Builder.() -> Unit): <ERROR CLASS>
linePattern
Link copied to clipboard
open override fun linePattern(linePattern: Expression): <ERROR CLASS>
Set the LinePattern property
open override fun linePattern(linePattern: String): <ERROR CLASS>
Set the LinePattern property
linePatternTransition
Link copied to clipboard
open override fun linePatternTransition(options: StyleTransition): <ERROR CLASS>
Set the LinePattern property transition options
open override fun linePatternTransition(block: StyleTransition.Builder.() -> Unit): <ERROR CLASS>
lineRoundLimit
Link copied to clipboard
open override fun lineRoundLimit(lineRoundLimit: Expression): <ERROR CLASS>
Set the LineRoundLimit property
open override fun lineRoundLimit(lineRoundLimit: Double): <ERROR CLASS>
Set the LineRoundLimit property
lineSortKey
Link copied to clipboard
open override fun lineSortKey(lineSortKey: Expression): <ERROR CLASS>
Set the LineSortKey property
open override fun lineSortKey(lineSortKey: Double): <ERROR CLASS>
Set the LineSortKey property
lineTranslate
Link copied to clipboard
open override fun lineTranslate(lineTranslate: Expression): <ERROR CLASS>
Set the LineTranslate property
open override fun lineTranslate(lineTranslate: List<Double>): <ERROR CLASS>
Set the LineTranslate property
lineTranslateAnchor
Link copied to clipboard
open override fun lineTranslateAnchor(lineTranslateAnchor: Expression): <ERROR CLASS>
Set the LineTranslateAnchor property
open override fun lineTranslateAnchor(lineTranslateAnchor: LineTranslateAnchor): <ERROR CLASS>
Set the LineTranslateAnchor property
lineTranslateTransition
Link copied to clipboard
open override fun lineTranslateTransition(options: StyleTransition): <ERROR CLASS>
Set the LineTranslate property transition options
open override fun lineTranslateTransition(block: StyleTransition.Builder.() -> Unit): <ERROR CLASS>
lineWidth
Link copied to clipboard
open override fun lineWidth(lineWidth: Expression): <ERROR CLASS>
Set the LineWidth property
open override fun lineWidth(lineWidth: Double): <ERROR CLASS>
Set the LineWidth property
lineWidthTransition
Link copied to clipboard
open override fun lineWidthTransition(options: StyleTransition): <ERROR CLASS>
Set the LineWidth property transition options
open override fun lineWidthTransition(block: StyleTransition.Builder.() -> Unit): <ERROR CLASS>
maxZoom
Link copied to clipboard
open override fun maxZoom(maxZoom: Double): <ERROR CLASS>
Set the maxzoom property
minZoom
Link copied to clipboard
open override fun minZoom(minZoom: Double): <ERROR CLASS>
Set the minzoom property
sourceLayer
Link copied to clipboard
open override fun sourceLayer(sourceLayer: String): <ERROR CLASS>
Set the sourceLayer property
toString
Link copied to clipboard
open fun toString(): String
visibility
Link copied to clipboard
open override fun visibility(visibility: Visibility): <ERROR CLASS>
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.
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.