sdk-maps / com.tomtom.online.sdk.map / Annotation

Annotation

interface Annotation : Serializable

The base interface that describes common methods used by each element that can be added to the map (e.g., marker or overlay).

Functions

getId

abstract fun getId(): Long

Gets the annotation Id. It is generated automatically when the annotation is added to the map.

getTag

abstract fun getTag(): Any?

Gets the annotation tag. It can be used for filtering, e.g., to remove the annotation of a certain tag. Default value is set to null.

Inheritors

Marker

interface Marker : Annotation, MapPoint

Base interface defining marker that can be added to the map.

Overlay

interface Overlay : Annotation

A base interface defining map overlay (e.g., circle, polygon).

Route

interface Route : Annotation

A base interface defining a route that can be added to the map.