You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.3 KiB
1.3 KiB
Popup
A popup component.
Extends Object.
new Popup()
Instance Members
addTo(map)
Adds the popup to a map.
Parameters
map
(Map
) The Mini Tokyo 3D map to add the popup to.
Returns
Popup
: Returns itself to allow for method chaining.
remove()
Removes the popup from the map it has been added to.
Returns
Popup
: Returns itself to allow for method chaining.
setHTML(html)
Sets the popup's content to the HTML provided as a string.
This method does not perform HTML filtering or sanitization, and must be used only with trusted content.
Parameters
html
(string
) A string representing HTML content for the popup.
Returns
Popup
: Returns itself to allow for method chaining.
setLngLat(lnglat)
Sets the geographical location of the popup's anchor, and moves the popup to it.
Parameters
lnglat
(LngLatLike
) The geographical location to set as the popup's anchor.
Returns
Popup
: Returns itself to allow for method chaining.