MPIPathManager

class MPIPathManager

A Manager for adding and removing paths.

Constructors

Link copied to clipboard
fun MPIPathManager()

Functions

Link copied to clipboard
@JvmName(name = "addByCoordinates")
fun add(    coordinates: List<MPIMap.MPICoordinate>,     options: MPIOptions.Path? = MPIOptions.Path(),     addPathCallBack: (MPINavigatable.MPIPath?) -> Unit? = null)

Takes a List of MPIMap.MPICoordinate instances and draws an MPIPath with path segments on each map corresponding to the coordinates on that map.

@JvmName(name = "addByNodes")
fun add(    nodes: List<MPINavigatable.MPINode>,     options: MPIOptions.Path? = MPIOptions.Path(),     addPathCallBack: (MPINavigatable.MPIPath?) -> Unit? = null)

Takes a List of MPINavigatable.MPINode instances and draws an MPIPath with path segments on each map corresponding to the nodes on that map.

Link copied to clipboard
fun remove(pathId: String, errorCallback: (MPIError?) -> Unit? = null)

Remove an MPINavigatable.MPIPath from all maps it exists on.

Link copied to clipboard
fun removeAll()

Remove all MPINavigatable.MPIPath instances from all maps.

Properties

Link copied to clipboard
val paths: MutableList<MPINavigatable.MPIPath>

A List of all MPINavigatable.MPIPath instances that are currently drawn.