Popup

Add a popup on the map.

Parameters

NameDescriptiondefault
contentrequired the content string or HTML string of popup/
maprequired The map instance to which the marker attaches to/
maxWidthoptional number The max width of the popup300

Functions

NameDescription
open()open the popup
close()close the popup

Example

var popup = new nextbillion.maps.Popup({
map: map,
content: 'this is a popup',
})