Popup

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

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

Methods

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

Example

1var popup = new nextbillion.maps.Popup({
2  map: map,
3  content: 'this is a popup',
4})
Polyline
Tooltip
DIDN'T FIND WHAT YOU LOOKING FOR?