mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
16 lines
364 B
Markdown
16 lines
364 B
Markdown
1.0.0
|
|
|
|
* Breaking change, introducing new TypeScript module with more clearly defined interfaces.
|
|
* Leaflet plugin API changed:
|
|
|
|
```js
|
|
const p = new pmtiles.PMTiles('example.pmtiles')
|
|
pmtiles.leafletLayer(p).addTo(map)
|
|
```
|
|
|
|
* MapLibre protocol API changed:
|
|
|
|
```js
|
|
let cache = new pmtiles.ProtocolCache();
|
|
maplibregl.addProtocol("pmtiles",cache.protocol);
|
|
``` |