LineOptions

Builder class from which a line is created.

class LineOptions : AnnotationOptions<LineString, Line>

Constructors

LineOptions
Link copied to clipboard
fun LineOptions()

Types

Companion
Link copied to clipboard

Static variables and methods.

object Companion

Functions

build
Link copied to clipboard

Build an annotation

open override fun build(id: Long, annotationManager: AnnotationManager<LineString, Line, *, *, *, *>): Line
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getData
Link copied to clipboard

Get the arbitrary json data of the annotation.

fun getData(): JsonElement?
getDraggable
Link copied to clipboard

Returns whether this line is draggable, meaning it can be dragged across the screen when touched and moved.

fun getDraggable(): Boolean
getGeometry
Link copied to clipboard

Get the geometry of the line, which represents the location of the line on the map

fun getGeometry(): LineString?
getPoints
Link copied to clipboard

Get a list of Point for the line, which represents the locations of the line on the map

fun getPoints(): List<Point>
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String
withData
Link copied to clipboard

Set the arbitrary json data of the annotation.

fun withData(jsonElement: JsonElement): LineOptions
withDraggable
Link copied to clipboard

Set whether this line should be draggable, meaning it can be dragged across the screen when touched and moved.

fun withDraggable(draggable: Boolean): LineOptions
withGeometry
Link copied to clipboard

Set the geometry of the line, which represents the location of the line on the map

fun withGeometry(geometry: LineString): LineOptions
withLineBlur
Link copied to clipboard

Set line-blur to initialise the line with.

<p> Blur applied to the line, in density-independent pixels. </p>

fun withLineBlur(lineBlur: Double): LineOptions
withLineColor
Link copied to clipboard

Set line-color to initialise the line with.

<p> The color with which the line will be drawn. </p>

fun withLineColor(lineColor: String): LineOptions
withLineGapWidth
Link copied to clipboard

Set line-gap-width to initialise the line with.

<p> Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap. </p>

fun withLineGapWidth(lineGapWidth: Double): LineOptions
withLineJoin
Link copied to clipboard

Set line-join to initialise the line with.

<p> The display of lines when joining. </p>

fun withLineJoin(lineJoin: LineJoin): LineOptions
withLineOffset
Link copied to clipboard

Set line-offset to initialise the line with.

<p> The line's offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset. </p>

fun withLineOffset(lineOffset: Double): LineOptions
withLineOpacity
Link copied to clipboard

Set line-opacity to initialise the line with.

<p> The opacity at which the line will be drawn. </p>

fun withLineOpacity(lineOpacity: Double): LineOptions
withLinePattern
Link copied to clipboard

Set line-pattern to initialise the line with.

<p> Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels. </p>

fun withLinePattern(linePattern: String): LineOptions
withLineSortKey
Link copied to clipboard

Set line-sort-key to initialise the line with.

<p> Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key. </p>

fun withLineSortKey(lineSortKey: Double): LineOptions
withLineWidth
Link copied to clipboard

Set line-width to initialise the line with.

<p> Stroke thickness. </p>

fun withLineWidth(lineWidth: Double): LineOptions
withPoints
Link copied to clipboard

Set a list of Point for the line, which represents the locations of the line on the map

fun withPoints(points: List<Point>): LineOptions

Properties

lineBlur
Link copied to clipboard

Blur applied to the line, in pixels.

var lineBlur: Double
lineColor
Link copied to clipboard

The color with which the line will be drawn.

var lineColor: String
lineGapWidth
Link copied to clipboard

Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.

var lineGapWidth: Double
lineJoin
Link copied to clipboard

The display of lines when joining.

var lineJoin: LineJoin
lineOffset
Link copied to clipboard

The line's offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.

var lineOffset: Double
lineOpacity
Link copied to clipboard

The opacity at which the line will be drawn.

var lineOpacity: Double
linePattern
Link copied to clipboard

Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.

var linePattern: String?
lineSortKey
Link copied to clipboard

Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.

var lineSortKey: Double?
lineWidth
Link copied to clipboard

Stroke thickness.

var lineWidth: Double