* Add a PMTiles instance to the global protocol instance. * * For remote fetch sources, references in MapLibre styles like pmtiles://http://... * will resolve to the same instance if the URLs match.
(p: PMTiles)
| 197 | * will resolve to the same instance if the URLs match. |
| 198 | */ |
| 199 | add(p: PMTiles) { |
| 200 | this.tiles.set(p.source.getKey(), p); |
| 201 | } |
| 202 | |
| 203 | /** |
| 204 | * Fetch a {@link PMTiles} instance by URL, for remote PMTiles instances. |
no test coverage detected