createTooltip

open override fun createTooltip(    node: MPINavigatable.MPINode,     contentHtml: String,     options: MPIOptions.Tooltip,     callback: (id: String?) -> Unit?)

Creates a tooltip associated with a specified node and displays it on the map.

Return

Unit

Parameters

node

The MPINavigatable.MPINode on which the tooltip will be displayed. Represents the target of the tooltip.

contentHtml

The HTML content to be displayed within the tooltip. Allows for rich formatted text and images.

options

Configuration options for the tooltip, defined by MPIOptions.Tooltip.

callback

A callback function that is called after the tooltip is created. It receives the tooltip's ID as a parameter, which can be used for further reference. If the tooltip could not be created, null is passed to the callback.


open override fun createTooltip(    coordinate: MPIMap.MPICoordinate,     contentHtml: String,     options: MPIOptions.Tooltip,     callback: (id: String?) -> Unit?)

Creates a tooltip associated with a specified coordinate and displays it on the map.

Return

Unit

Parameters

coordinate

The MPIMap.MPICoordinate on which the tooltip will be displayed. Represents the target of the tooltip.

contentHtml

The HTML content to be displayed within the tooltip. Allows for rich formatted text and images.

options

Configuration options for the tooltip, defined by MPIOptions.Tooltip.

callback

A callback function that is called after the tooltip is created. It receives the tooltip's ID as a parameter, which can be used for further reference. If the tooltip could not be created, null is passed to the callback.