Tooltip

@Serializable
data class Tooltip(    val collisionRank: MPIOptions.COLLISION_RANK? = null,     val interactive: Boolean? = false,     val padding: Double? = null,     val enabledAnchorTypes: MPIOptions.TooltipAnchor? = null,     val defaultAnchorType: String? = null)

Tooltip holds the properties of values when adding tooltips containing arbitrary HTML

Constructors

Link copied to clipboard
fun Tooltip(    collisionRank: MPIOptions.COLLISION_RANK? = null,     interactive: Boolean? = false,     padding: Double? = null,     enabledAnchorTypes: MPIOptions.TooltipAnchor? = null,     defaultAnchorType: String? = null)

Properties

Link copied to clipboard
val collisionRank: MPIOptions.COLLISION_RANK? = null

The rank of the object used when comparing colliders to determine which should be shown.

Link copied to clipboard
val defaultAnchorType: String? = null

The default(starting) orientation to place the tooltip. This describes the position of the tooltip relative to the node or coordinate to which it is attached. The possible anchor types are top, bottom, left, right, topLeft, topRight, bottomLeft, and bottomRight.

Link copied to clipboard
val enabledAnchorTypes: MPIOptions.TooltipAnchor? = null

An object used to disable certain anchor positions from being used.

Link copied to clipboard
val interactive: Boolean? = false

Whether the Tooltip should be clickable and included in MPIMapClickEvent events

Link copied to clipboard
val padding: Double? = null

The distance in pixels to offset the Tooltip from the anchor point.