Skip to content

Function: showPopup()

ts
function showPopup(entityId, options?): Promise<void>;

Programmatically open the default popup for an entity.

Shows the default entity popup for entityId without moving the camera or switching the floor. Optionally accepts { html } to override the popup body for the target entity — mirrors the write path of setEntityDataById(id, { html }).

The iframe drives the same selection pipeline as a user click but with panTo: false and changeFloor: false pre-applied, so the view stays put.

Parameters

ParameterType
entityIdMapstedId
options?{ html?: string; }
options.html?string

Returns

Promise<void>

Throws

MAPSTED-1012 when entityId is null / undefined.

Throws

MAPSTED-1013 when entityId is not a string or number.

Throws

MAPSTED-1090 when the API is not READY.