Tooltip

A newer version of Maps for web SDK is available
A newer version of the SDK is available and is recommended for all users. Learn about the latest version, V2.0, in the Maps for web v2.0 documentation

Attach a tooltip to a marker.

Parameters

NameDescriptiondefault
contentrequired the content string of tooltip/
markerrequired The marker instance to which the tooltip attaches to/
maxWidthoptional number The max width of the tooltip300

Methods

NameDescription
open()open the tooltip
close()close the tooltip

Example

1
var tooltip = new nextbillion.maps.Tooltip({
2
marker: marker,
3
content: 'this is a tooltip',
4
})

© 2024 NextBillion.ai all rights reserved.