mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 19:01:08 +00:00
release 1.0.0 ; add js CHANGELOG
This commit is contained in:
16
js/CHANGELOG.md
Normal file
16
js/CHANGELOG.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
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);
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user