Annotation

abstract class Annotation<T : Geometry>(val id: String, jsonObject: JsonObject, var geometry: T)

Base class for annotations

Constructors

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

Types

Link copied to clipboard
object Companion

Static variables and methods.

Functions

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

Get the arbitrary json object data of the annotation.

Link copied to clipboard
fun getJsonObjectCopy(): JsonObject

Get a copy of jsonObject from this annotation

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

Get the offset geometry for the touch point

Link copied to clipboard
abstract fun getType(): AnnotationType

Get the type of this annotation

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

Set the arbitrary json data of the annotation.

Link copied to clipboard

Set the used data-driven properties

Properties

Link copied to clipboard
var geometry: T

The geometry that determines the location/shape of this annotation

Link copied to clipboard
val id: String

Annotation id generated as UUID. This id is used to generate underlying Feature for the annotation.

Link copied to clipboard
var isDraggable: Boolean = false

Whether this annotation is draggable

Link copied to clipboard
var isSelected: Boolean = false

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

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard