Tooltip

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 popup300

Functions

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

Example

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