Home > @magiclane/maps-sdk > Popup

Popup class

A popup opened via GemMap.showPopup.

Signature:

export declare class Popup 

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Popup class.

Properties

Property

Modifiers

Type

Description

isOpen

readonly

boolean

True while the popup is attached to the DOM.

Methods

Method

Modifiers

Description

close()

Close and remove the popup. Idempotent.

setContent(content)

Replace the popup content in place.

setCoordinates(coords)

Move the popup to a new coordinate.