Interface: MarkerPopupConfig
Options for a marker’s popup (see MarkerConfig.popup).
Example
map.addMarker({
coordinate: { lat: -33.4177, lng: -70.6066 },
floorId: "level-1",
popup: { content: "Store entrance", closeButton: true, open: true },
})Properties
closeButton?
optional closeButton?: boolean;Show a close button in the popup’s corner.
Default Value
falsecontent
content: string | HTMLElementThe popup’s content. A string is shown as plain text (never parsed as HTML).
maxWidth?
optional maxWidth?: string;Maximum popup width, as a CSS length.
Default Value
"240px"open?
optional open?: boolean;Open the popup whenever the marker is shown, instead of waiting for a click. Such a popup stays open when the map is clicked elsewhere; clicking the marker (or the close button) closes it.
Default Value
falseLast updated on