closeButton
Boolean
true
, a close button will appear in the top right corner of the popup.closeButton
in PopupcloseOnClick
Boolean
true
, the popup will closed when the map is clicked.closeOnClick
in Popupanchor
String
anchor
in Popupoffset
Type: Number | Object | Array
Description: A pixel offset applied to the popup's location.
See: offset
in Popup
coordinates
Array
[longitude, latitude]
setLngLat()
in PopuponlyText
Boolean
true
content of the Popup treated as plain textsetText
in Popupdefault
onlyText
set to true
content in this slot treated as plaint text.@added
{ popup: Popup }
Object with MapboxGL Popup
object@removed
{ popup: Popup }
Object with MapboxGL Popup
object@open
{ popup: Popup }
Object with MapboxGL Popup
object@close
{ popup: Popup }
Object with MapboxGL Popup
object