MPIMapClickEvent

@Serializable
data class MPIMapClickEvent(    val floatingLabels: List<Pair<MPINavigatable.MPINode, String>> = emptyList(),     val maps: List<MPIMap> = emptyList(),     val nearBlueDot: Boolean = false,     val paths: List<MPINavigatable.MPIPath> = emptyList(),     val polygons: List<MPINavigatable.MPIPolygon> = emptyList(),     val position: MPIMap.MPICoordinate? = null)

MPIMapClickEvent is passed from MPIMapClickListner and provides information about the click event.

Constructors

Link copied to clipboard
fun MPIMapClickEvent(    floatingLabels: List<Pair<MPINavigatable.MPINode, String>> = emptyList(),     maps: List<MPIMap> = emptyList(),     nearBlueDot: Boolean = false,     paths: List<MPINavigatable.MPIPath> = emptyList(),     polygons: List<MPINavigatable.MPIPolygon> = emptyList(),     position: MPIMap.MPICoordinate? = null)

Properties

Link copied to clipboard
val floatingLabels: List<Pair<MPINavigatable.MPINode, String>>

A List of Pairs containing MPINavigatable.MPINodes and FloatingLabels text. If no floating label was clicked, this will be empty.

Link copied to clipboard
val maps: List<MPIMap>

A list of MPIMaps corresponding to every map that a user's click passed through. These are in order of first to last intersected. Will be empty if no maps were clicked.

Link copied to clipboard
val nearBlueDot: Boolean = false

Indicates whether the user clicked close to the Blue Dot object on the map, if present. If Blue Dot is disabled, this will always be false.

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

A list of paths that a user's click passed through. These are in order of first to last intersected and will be empty if no paths were clicked.

Link copied to clipboard
val polygons: List<MPINavigatable.MPIPolygon>

A list of MPINavigatable.MPIPolygons corresponding to every polygon that a user's click passed through. These are in order of first to last intersected and will be empty if no polygons were clicked.

Link copied to clipboard
val position: MPIMap.MPICoordinate? = null

The position on the map where the user clicked. Will be null if unable to compute the position.