class
PopupWidget
Info popup anchored to map features. Shows at screen coordinates with custom HTML content.
Constructor
new PopupWidget(options?: PopupWidgetOptions) | Parameter | Type | Description | |
|---|---|---|---|
options | PopupWidgetOptions | optional | Widget configuration |
PopupWidgetOptions
| Field | Type | Description | |
|---|---|---|---|
id | string | optional | Widget ID |
position | WidgetPosition | optional | Widget position |
Methods
open()
open(options: { title?: string, content: string, screenX: number, screenY: number }): void Open popup at screen position.
Returns
void close()
close(): void Close the popup.
Returns
void mount()
mount(container: HTMLElement): void Mount widget.
Returns
void