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