()
| 147 | } |
| 148 | |
| 149 | public reset(): void { |
| 150 | for (const spec of this._images.values()) { |
| 151 | spec.marker?.dispose(); |
| 152 | } |
| 153 | // NOTE: marker.dispose above already calls ImageBitmap.close |
| 154 | // therefore we can just wipe the map here |
| 155 | this._images.clear(); |
| 156 | this._renderer.clearAll(); |
| 157 | } |
| 158 | |
| 159 | public getLimit(): number { |
| 160 | return this._pixelLimit * 4 / 1000000; |