Files
PMTiles/openlayers/CHANGELOG.md
Brandon Liu ab5534df7e change ol-pmtiles to TypeScript [#312] (#444)
* 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
2024-09-11 16:36:48 +08:00

456 B

1.0.0

  • Port code to TypeScript.
  • add proper CJS, ESM and IIFE build artifacts.
  • url option to PMTilesVectorSource/PMTilesRasterSource is either string URL or a pmtiles.Source.
  • remove option headers, instead create a FetchSource and 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'}),
);