PolylineAnnotation

Class for PolylineAnnotation

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

Constructors

PolylineAnnotation
Link copied to clipboard
fun PolylineAnnotation(id: Long, annotationManager: AnnotationManager<LineString, PolylineAnnotation, *, *, *, *, *>, 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(mapCameraManagerDelegate: MapCameraManagerDelegate, 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

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
isSelected
Link copied to clipboard
override var isSelected: Boolean
jsonObject
Link copied to clipboard
override val jsonObject: JsonObject
lineBlur
Link copied to clipboard

The lineBlur property

Blur applied to the line, in density-independent pixels.

var lineBlur: Double?
lineColorInt
Link copied to clipboard

The lineColor property in Int The color with which the line will be drawn.

var lineColorInt: Int?
lineColorString
Link copied to clipboard

The lineColor property in String

The color with which the line will be drawn.

var lineColorString: String?
lineGapWidth
Link copied to clipboard

The lineGapWidth property

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

The display of lines when joining.

var lineJoin: LineJoin?
lineOffset
Link copied to clipboard

The lineOffset property

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

The opacity at which the line will be drawn.

var lineOpacity: Double?
linePattern
Link copied to clipboard

The linePattern property

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

The lineSortKey property

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

The lineWidth property

Stroke thickness.

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

To update the polylineAnnotation on the map use {@link PolylineAnnotationManager#update(Annotation)}.

var points: List<Point>