MTMarker

class MTMarker(val identifier: String = "mark", _coordinates: LngLat) : MTAnnotation

Annotation element that can be added to the map.

Constructors

constructor(coordinates: LngLat, color: Int? = Color.BLUE, icon: Bitmap? = null, draggable: Boolean? = false)
constructor(coordinates: LngLat)
constructor(coordinates: LngLat, icon: Bitmap)
constructor(coordinates: LngLat, icon: Bitmap, popup: MTTextPopup)
constructor(coordinates: LngLat, popup: MTTextPopup)
constructor(identifier: String = "mark", _coordinates: LngLat)

Properties

var color: Int?

Color of the marker.

open override val coordinates: LngLat

Position of the marker on the map.

Boolean indicating whether marker is draggable.

var icon: Bitmap?

Custom icon to use for marker.

open override val identifier: String

Optional attached popup.

Functions

open override fun setCoordinates(coordinates: LngLat, mapViewController: MTMapViewController)

Sets coordinates for the marker.