Skip to content

spatial-monorepo


spatial-monorepo / pmtiles/src / registerProtocol

Function: registerProtocol()

registerProtocol(map): void

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

Registers the pmtiles:// protocol on the given MapLibre-compatible map instance. Subsequent calls are no-ops (module-level singleton guard).

Parameters

map

MapProtocolHost

Returns

void

Released under commercial licensing.