Annotation

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

Base class for annotations

Constructors

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

Types

Companion
Link copied to clipboard
object Companion
Static variables and methods.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getData
Link copied to clipboard
open fun getData(): JsonElement?
Get the arbitrary json object data of the annotation.
getJsonObjectCopy
Link copied to clipboard
fun getJsonObjectCopy(): JsonObject
Get a copy of jsonObject from this annotation
getOffsetGeometry
Link copied to clipboard
abstract fun getOffsetGeometry(mapCameraManagerDelegate: MapCameraManagerDelegate, moveDistancesObject: MoveDistancesObject): T?
Get the offset geometry for the touch point
getType
Link copied to clipboard
abstract fun getType(): AnnotationType
Get the type of this annotation
hashCode
Link copied to clipboard
open fun hashCode(): Int
setData
Link copied to clipboard
open fun setData(jsonElement: JsonElement?)
Set the arbitrary json data of the annotation.
setUsedDataDrivenProperties
Link copied to clipboard
abstract fun setUsedDataDrivenProperties()
Set the used data-driven properties
toString
Link copied to clipboard
open fun toString(): String

Properties

geometry
Link copied to clipboard
var geometry: T
The geometry that determines the location/shape of this annotation
id
Link copied to clipboard
val id: Long
The id for annotation
isDraggable
Link copied to clipboard
var isDraggable: Boolean = false
Whether this annotation is draggable
isSelected
Link copied to clipboard
var isSelected: Boolean = false
Whether or not this annotation has been selected, either via a tap gesture or programmatically.

Inheritors

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