Skip to Content
APIMarkersInterface: MarkerPopupConfig

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

false

content

content: string | HTMLElement

The 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

false
Last updated on