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
2
3
4
var tooltip = new nextbillion.maps.Tooltip({
  marker: marker,
  content: 'this is a tooltip',
})

Have Questions ?