Skip to content

Function: destroy() ​

ts
function destroy(): Promise<void>;

Destroy the map instance. Resets to UNINITIALIZED to allow re-init. Cleans up state listeners and emitter.

Returns ​

Promise<void>