MPIMapClickEvent

@Serializable
data class MPIMapClickEvent(    val floatingLabels: List<FloatingLabelClickEvent> = emptyList(),     val markers: List<MarkerClickEvent> = emptyList(),     val tooltips: List<TooltipClickEvent> = 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<FloatingLabelClickEvent> = emptyList(),     markers: List<MarkerClickEvent> = emptyList(),     tooltips: List<TooltipClickEvent> = 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<FloatingLabelClickEvent>

A List of FloatingLabelClickEvents. 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 markers: List<MarkerClickEvent>

A List of MarkerClickEvents. If no marker was clicked, this will be empty.

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.

Link copied to clipboard
val tooltips: List<TooltipClickEvent>

A List of TooltipClickEvents. If no tooltip was clicked, this will be empty.