mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
* change ol-pmtiles to TypeScript [#444] * olpmtiles: 1.0.0 * accept either a string or pmtiles.Source for the url option * package.json works for ESM/CJS/IIFE [#312, #443] * replace npm install with npm ci on github actions
456 B
456 B
1.0.0
- Port code to TypeScript.
- add proper CJS, ESM and IIFE build artifacts.
urloption toPMTilesVectorSource/PMTilesRasterSourceis either string URL or apmtiles.Source.- remove option
headers, instead create aFetchSourceand specify custom headers:
const fetchSource = new pmtiles.FetchSource(
"https://r2-public.protomaps.com/protomaps-sample-datasets/nz-buildings-v3.pmtiles",
new Headers({'X-Abc':'Def'}),
);