Search results

TooltipSettings API in JavaScript Maps API control

Gets or sets the options to customize the tooltip of layers, markers, and bubble in maps.

Properties

border

BorderModel

Gets or sets the options for customizing the style properties of the border of the tooltip in layers, markers, and bubbles of maps.

duration

number

Specifies the value within which the tooltip will be removed on a mobile device. The value represents time in milliseconds. If the value is set to 0, the tooltip will not be removed. If the value is set to greater than 0, the tooltip will be removed at the specified time.

Defaults to 2000

fill

string

Gets or sets the color of the tooltip in layers, markers, and bubbles of maps.

Defaults to

format

string

Gets or sets the format of the tooltip in layers, markers, and bubbles of maps.

Defaults to null

template

string | Function

Gets or sets the tooltip template of layers, markers, and bubbles in maps to display custom elements as tooltip.

Defaults to

textStyle

FontModel

Gets or sets the options for customizing the style of the text in tooltip for layers, markers, and bubbles of maps.

valuePath

string

Gets or sets the field name from the data source based on which the tooltip is visible on layers, markers, and bubbles of maps. For the layer tooltip, the field name from the GeoJSON data can also be set.

Defaults to null

visible

boolean

Enables or disables the tooltip visibility of layers, markers, and bubbles in maps.

Defaults to false