React Map - markers.tooltip

A tooltip to be used for the marker.

Type:

String

|

Object

This property takes on an object containing the text and isShown fields. The text field specifies the tooltip text. The isShown field takes on a Boolean value that specifies whether a tooltip is visible by default or not. If the tooltip should be hidden by default, pass the tooltip text directly to the tooltip property.

isShown

Specifies whether a tooltip is visible by default or not.

Type:

Boolean

Default Value: false

text

Specifies the text or HTML markup displayed in the tooltip.

Type:

String

The Map component evaluates the text property's value. This evaluation, however, makes the Map potentially vulnerable to XSS attacks. If the tooltip.text value comes from an untrusted source, encode this value as demonstrated in the following help topic: Potentially Vulnerable API - markers[].tooltip.text.