gi-nx / addHtmlPopup
ts
function addHtmlPopup(
this: RpcCallContext,
html: string,
lngLat: LngLatLike,
options: PopupOptions,
openOverBottomBarContent?: boolean): void;Parameters
| Parameter | Type | Description |
|---|---|---|
this | RpcCallContext | - |
html | string | HTML content for the popup (will be sanitized) |
lngLat | LngLatLike | LngLatLike position for the popup [longitude, latitude] |
options | PopupOptions | PopupOptions from Mapbox GL (closeButton, closeOnClick, etc.) |
openOverBottomBarContent | boolean | Whether popup appears above bottom bar (default: true) |
Returns
void
void