MarkerOptions

data class MarkerOptions(val coordinate: GeoPoint, val pinImage: Image, val pinIconImage: Image? = null, val shieldImage: Image? = null, val pinIconAnchor: PointF = Marker.DEFAULT_PIN_ICON_ANCHOR, val placementAnchor: PointF = Marker.DEFAULT_PLACEMENT_ANCHOR, val shieldImageAnchor: PointF = Marker.DEFAULT_SHIELD_IMAGE_ANCHOR, val tag: String? = null, val label: Label? = null, val balloonText: String = "")

Defines configuration options for a Marker view which can be added and displayed on the map. See TomTomMap.addMarker(options: MarkerOptions).

Constructors

Link copied to clipboard
constructor(coordinate: GeoPoint, pinImage: Image, pinIconImage: Image? = null, shieldImage: Image? = null, pinIconAnchor: PointF = Marker.DEFAULT_PIN_ICON_ANCHOR, placementAnchor: PointF = Marker.DEFAULT_PLACEMENT_ANCHOR, shieldImageAnchor: PointF = Marker.DEFAULT_SHIELD_IMAGE_ANCHOR, tag: String? = null, label: Label? = null, balloonText: String = "")

Properties

Link copied to clipboard

Text displayed within the marker balloon (if visible).

Link copied to clipboard

Location of the given Marker.

Link copied to clipboard
val label: Label? = null

Label textually describing the Marker.

Link copied to clipboard

Sets the position of the icon relative to the pin. When the given x/y values are outside of the range 0, 1, the icon moves more than the width/height of the pin.

Link copied to clipboard
val pinIconImage: Image? = null

Image that will be used as a Marker pin icon.

Link copied to clipboard

Image that will be used as a Marker pin.

Link copied to clipboard

Sets the whole marker's pin offset.

Link copied to clipboard
val shieldImage: Image? = null

Image that will be used as a Marker shield.

Link copied to clipboard

Sets the pin's shield anchor.

Link copied to clipboard
val tag: String? = null

Сan be used to identify group of markers.