UNPKG

@polygonjs/plugin-mapbox

Version:

Mapbox plugin for the 3D engine https://polygonjs.com

15 lines (14 loc) 317 B
export class MapsRegister { constructor() { this._maps_by_id = /* @__PURE__ */ new Map(); } static instance() { return this._instance = this._instance || new MapsRegister(); } registerMap(id, map) { this._maps_by_id.set(id, map); } deregisterMap(id) { this._maps_by_id.delete(id); } }