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?
getJsonObjectCopy
Link copied to clipboard

Get a copy of jsonObject from this annotation

fun getJsonObjectCopy(): JsonObject
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 that determines the location/shape of this 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

Inheritors

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