Skip to content

spatial-monorepo


spatial-monorepo / pmtiles/src / unregisterProtocol

Function: unregisterProtocol()

unregisterProtocol(map): void

Defined in: packages/pmtiles/src/index.ts:99

Removes the pmtiles:// protocol from the given MapLibre-compatible map instance and resets the singleton guard so registerProtocol can be called again (e.g. after map unmount/remount).

Parameters

map

MapProtocolHost

Returns

void

Released under commercial licensing.