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

Marker

interface Marker : Annotation, MapPoint

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

Functions

canShowBalloon

abstract fun canShowBalloon(): Booleanabstract fun canShowBalloon(allow: Boolean): Unit

A setter for permission to show a balloon.

deselect

abstract fun deselect(): Unit

Marks the marker as deselected.

getAnchor

abstract fun getAnchor(): MarkerAnchor

getIconHeight

abstract fun getIconHeight(): Int

getIconWidth

abstract fun getIconWidth(): Int

getMarkerBalloon

abstract fun getMarkerBalloon(): Optional<out MarkerBalloon!>

isDecal

abstract fun isDecal(): Boolean

Determines if the marker attached to the map.

isDraggable

abstract fun isDraggable(): Boolean

Indicates whether the marker should be draggable or not.

isSelected

abstract fun isSelected(): Boolean

Marks the marker as selected.

markAsDraggable

abstract fun markAsDraggable(): Unit

Makes the marker draggable.

select

abstract fun select(): Unit

Marks the marker as selected.

setSelectedListener

abstract fun setSelectedListener(selectedListener: OnMarkerSelectedListener!): Unit

The set behavior for the selected marker.

shouldCluster

abstract fun shouldCluster(): Boolean

Indicates whether the marker should be clustered or not. If not, the marker will be skipped from the clustering procedure when it is enabled.

unmarkAsDraggable

abstract fun unmarkAsDraggable(): Unit

Makes the marker not draggable.

Inherited Functions

getId

abstract fun getId(): Long

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

getPosition

abstract fun getPosition(): LatLng

The position of the point on 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.