Annotation

Base class for annotations

abstract class Annotation<T : Geometry>(id: Long, jsonObject: JsonObject, geometry: T)

Constructors

Annotation
Link copied to clipboard
fun <T : Geometry> Annotation(id: Long, jsonObject: JsonObject, geometry: T)

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

Get the arbitrary json object data of the annotation.

open fun getData(): JsonElement?
getOffsetGeometry
Link copied to clipboard

Get the offset geometry for the touch point

abstract fun getOffsetGeometry(mapCameraManagerDelegate: MapCameraManagerDelegate, moveDistancesObject: MoveDistancesObject, touchAreaShiftX: Int, touchAreaShiftY: Int): T?
getType
Link copied to clipboard

Get the type of this annotation

abstract fun getType(): AnnotationType
hashCode
Link copied to clipboard
open override fun hashCode(): Int
setData
Link copied to clipboard

Set the arbitrary json data of the annotation.

open fun setData(jsonElement: JsonElement?)
setUsedDataDrivenProperties
Link copied to clipboard

Set the used data-driven properties

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

Properties

geometry
Link copied to clipboard

The geometry of annotation

var geometry: T
id
Link copied to clipboard

The id for annotation

val id: Long
isDraggable
Link copied to clipboard

Whether this annotation is draggable

var isDraggable: Boolean
isSelected
Link copied to clipboard

Whether or not this annotation has been selected, either via a tap gesture or programmatically.

var isSelected: Boolean
jsonObject
Link copied to clipboard

The jsonObject of annotation

val jsonObject: JsonObject

Inheritors

CircleAnnotation
Link copied to clipboard
PointAnnotation
Link copied to clipboard
PolygonAnnotation
Link copied to clipboard
PolylineAnnotation
Link copied to clipboard