MPIMarkerManager

class MPIMarkerManager

Constructors

Link copied to clipboard
fun MPIMarkerManager()

Functions

Link copied to clipboard
@JvmName(name = "addByCoordinate")
fun add(    coordinate: MPIMap.MPICoordinate,     contentHtml: String,     markerOptions: MPIOptions.Marker? = MPIOptions.Marker(),     addMarkerCallBack: (String?) -> Unit? = null)

Create a Marker for a MPIMap.MPICoordinate.

@JvmName(name = "addByNode")
fun add(    node: MPINavigatable.MPINode,     contentHtml: String,     markerOptions: MPIOptions.Marker? = MPIOptions.Marker(),     addMarkerCallBack: (String?) -> Unit? = null)

Create a Marker for a MPINavigatable.MPINode.

Link copied to clipboard
@JvmName(name = "animateByCoordinate")
fun animate(    id: String,     coordinate: MPIMap.MPICoordinate,     options: MPIOptions.MarkerAnimationOptions? = MPIOptions.MarkerAnimationOptions())
@JvmName(name = "animateByNode")
fun animate(    id: String,     node: MPINavigatable.MPINode,     options: MPIOptions.MarkerAnimationOptions? = MPIOptions.MarkerAnimationOptions())

Moves an existing Marker to a new position smoothly over time

Link copied to clipboard
fun remove(id: String)

Remove a Marker from the map.

Link copied to clipboard
fun removeAll()

Remove a all Markers from the map.

Link copied to clipboard
@JvmName(name = "setPositionByCoordinate")
fun setPosition(id: String, coordinate: MPIMap.MPICoordinate)
@JvmName(name = "setPositionByNode")
fun setPosition(id: String, node: MPINavigatable.MPINode)

Moves an existing Marker to a new position instantly