Skip to content

gi-nx


gi-nx / addHtmlPopup

ts
function addHtmlPopup(
   this: RpcCallContext, 
   html: string, 
   lngLat: LngLatLike, 
   options: PopupOptions, 
   openOverBottomBarContent?: boolean): void;

Parameters ​

ParameterTypeDescription
thisRpcCallContext-
htmlstringHTML content for the popup (will be sanitized)
lngLatLngLatLikeLngLatLike position for the popup [longitude, latitude]
optionsPopupOptionsPopupOptions from Mapbox GL (closeButton, closeOnClick, etc.)
openOverBottomBarContentbooleanWhether popup appears above bottom bar (default: true)

Returns ​

void

void