Line

Class for Line

class Line(id: Long, annotationManager: AnnotationManager<LineString, Line, *, *, *, *>, jsonObject: JsonObject, geometry: LineString) : Annotation<LineString>

Constructors

Line
Link copied to clipboard
fun Line(id: Long, annotationManager: AnnotationManager<LineString, Line, *, *, *, *>, jsonObject: JsonObject, geometry: LineString)

Types

Companion
Link copied to clipboard

Static variables and methods.

object Companion

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getData
Link copied to clipboard
open override fun getData(): JsonElement?
getOffsetGeometry
Link copied to clipboard

Get the offset geometry for the touch point

open override fun getOffsetGeometry(projectionDelegate: MapProjectionDelegate, moveDistancesObject: MoveDistancesObject, touchAreaShiftX: Int, touchAreaShiftY: Int): LineString?
getType
Link copied to clipboard

Get the type of this annotation

open override fun getType(): AnnotationType
hashCode
Link copied to clipboard
open override fun hashCode(): Int
setData
Link copied to clipboard
open override fun setData(jsonElement: JsonElement?)
setUsedDataDrivenProperties
Link copied to clipboard

Set the used data-driven properties

open override fun setUsedDataDrivenProperties()
toString
Link copied to clipboard
open override fun toString(): String

Properties

annotationManager
Link copied to clipboard

The annotation manger that manipulate this annotation

val annotationManager: AnnotationManager<LineString, Line, *, *, *, *>
geometry
Link copied to clipboard
override var geometry: LineString
id
Link copied to clipboard
override val id: Long
isDraggable
Link copied to clipboard
override var isDraggable: Boolean
jsonObject
Link copied to clipboard
override val jsonObject: JsonObject
lineBlur
Link copied to clipboard

The lineBlur property

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

var lineBlur: Double?
lineColorInt
Link copied to clipboard

The lineColor property in Int

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

var lineColorInt: Int?
lineColorString
Link copied to clipboard

The lineColor property in String

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

var lineColorString: String?
lineGapWidth
Link copied to clipboard

The lineGapWidth property

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

var lineGapWidth: Double?
lineJoin
Link copied to clipboard

The lineJoin property

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

var lineJoin: LineJoin?
lineOffset
Link copied to clipboard

The lineOffset property

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

var lineOffset: Double?
lineOpacity
Link copied to clipboard

The lineOpacity property

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

var lineOpacity: Double?
linePattern
Link copied to clipboard

The linePattern property

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

var linePattern: String?
lineSortKey
Link copied to clipboard

The lineSortKey property

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

var lineSortKey: Double?
lineWidth
Link copied to clipboard

The lineWidth property

<p> Stroke thickness. </p>

var lineWidth: Double?
points
Link copied to clipboard

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

<p> To update the line on the map use {@link LineManager#update(Annotation)}. <p>

var points: List<Point>