Commit Graph

239 Commits

Author SHA1 Message Date
Anson Chung
6f6c9c8697 Implement MLT (#633)
* Add MLT tile type

* MLT code implementation

* fix build - /app needs to wait for new pmtiles version on npm

* update CHANGELOGs and python, js versions [#596, #633]

---------

Co-authored-by: Michael Barry <msbarry@users.noreply.github.com>
Co-authored-by: Brandon Liu <bdon@users.noreply.github.com>
Co-authored-by: Brandon Liu <bdon@bdon.org>
2026-02-03 17:24:42 -05:00
Brandon Liu
2fa87ea9bb fix leafletRasterLayer: empty tiles have display:none [#620] (#627) 2025-12-26 16:02:20 +08:00
Brandon Liu
5c84faafa3 js v4.3.1 (#626)
* js v4.3.1

* CI: other dependent packages don't fail unless major version bump
2025-12-24 17:45:11 +08:00
Brandon Liu
cabe8a898a Abort requests [#608] (#625)
* Properly abort requests using AbortController

* add basic adapter tests

---------

Co-authored-by: Andrew Dassonville <dassonville.andrew@gmail.com>
2025-12-24 17:33:11 +08:00
Brandon Liu
a5f8a89256 Sfomuseum/main (#624)
* Update js/src/adapters.ts to dispatch empty image if source.getZxy returns an empty array (no raster data); run npm audit fix

* js: simplify leaflet missing tile case [#620]

---------

Co-authored-by: thisisaaronland <thisisaaronland@localhost>
2025-12-24 16:30:38 +08:00
Brandon Liu
d87d807116 Replace terrarium examples with mapterhorn (#618)
* update examples to maplibre 5.13.0
2025-12-04 13:01:06 +08:00
Brandon Liu
4dc2daad8a CI: bump from node 18.x to 22.x [#606] (#614)
* CI: bump from node 18.x to 22.x [#606]

* update cloudflare wrangler version

* fix tests for node 22
2025-12-01 17:02:39 +08:00
dependabot[bot]
c21f968233 Bump glob from 10.4.5 to 10.5.0 in /js (#613)
Bumps [glob](https://github.com/isaacs/node-glob) from 10.4.5 to 10.5.0.
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v10.4.5...v10.5.0)

---
updated-dependencies:
- dependency-name: glob
  dependency-version: 10.5.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-01 12:20:55 +08:00
Brandon Liu
abfe63cef0 Bump tsup, tsx and esbuild versions in all package.json devDependencies. (#533) 2025-03-03 22:43:24 -08:00
Brandon Liu
534a66b5c0 pmtiles js 4.3.0 (#531)
* pmtiles js 4.3.0

* bump dependents

* update lockfiles
2025-02-21 15:52:39 +08:00
Taku Fukada
9b69ab4b64 Simplify and optimize Hilbert tile ID <-> XYZ conversion (#527)
* Optimize Hilbert tile ID <-> XYZ conversion

* biome

* tile_id: more improvements

* tile_id(cpp): uint32
2025-02-21 15:37:49 +08:00
Brandon Liu
61e60c69d2 Make aws/cloudflare depend on pmtiles from npm [#455] (#515)
* Make aws/cloudflare depend on pmtiles from npm [#455]

This is clearer to developers than relying on the local code being built.

* update check_examples.py
* bump openlayers to v2 with upgrade of pmtiles to v4 [#455]
* update to 4.2.1
2025-01-14 17:09:11 +08:00
Brandon Liu
d3740449d4 js 4.2.1 (#517)
* js 4.2.1
2025-01-14 15:56:47 +08:00
Brandon Liu
701c5cb170 js 4.2.0 (#516)
* js 4.2.0

* update examples
2025-01-14 15:15:07 +08:00
Brandon Liu
d4d97ad7a9 maplibre: display error on empty bounds [#508] (#510)
* If a MapLibre source has empty bounds, no tiles will be displayed.
2025-01-09 16:10:43 +08:00
Brandon Liu
275b5bcb5d rename maplibre_headers to maplibre_advanced; show metadata description (#506) 2025-01-06 15:04:07 +08:00
Brandon Liu
9a53ed8495 js: maplibre protocol has option to throw on missing tile [#321] (#505)
* js: maplibre protocol has option to throw on missing tile [#321]

* js: update docs copy for errorOnMissingTile

* js: 4.1.0
2024-12-15 16:49:56 +08:00
Brandon Liu
5b075048cc js: cleanup error throwing to always use new Error (#504) 2024-12-13 14:42:13 +08:00
Brandon Liu
7ed6377031 js 4.0.1 (#501)
fix iife build - tell esbuild to use browser platform for fflate dependency.
2024-11-26 12:56:26 +08:00
Brandon Liu
0413a0cc10 fix package.json types (#500) 2024-11-26 12:01:24 +08:00
Brandon Liu
e678dd5326 Pmtiles js v4 (#499)
* pmtiles js v4: remove pmtiles spec v2 compatibility [#287]
* restructure ts files into src
* add tsup for building ESM/CJS and making types work in ESM
* bump fflate dependency
* update CHANGELOG for js 4.0.0
2024-11-26 11:56:41 +08:00
dependabot[bot]
bbeda97ed4 Bump cookie and @bundled-es-modules/cookie in /js (#494)
Bumps [cookie](https://github.com/jshttp/cookie) and [@bundled-es-modules/cookie](https://github.com/bundled-es-modules/cookie). These dependencies needed to be updated together.

Updates `cookie` from 0.5.0 to 0.7.2
- [Release notes](https://github.com/jshttp/cookie/releases)
- [Commits](https://github.com/jshttp/cookie/compare/v0.5.0...v0.7.2)

Updates `@bundled-es-modules/cookie` from 2.0.0 to 2.0.1
- [Commits](https://github.com/bundled-es-modules/cookie/commits)

---
updated-dependencies:
- dependency-name: cookie
  dependency-type: indirect
- dependency-name: "@bundled-es-modules/cookie"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-13 09:23:25 +08:00
Brandon Liu
d7357088c5 js: bump typescript, @node/types and msw dev dependencies. (#489)
* js: bump typescript, @node/types and msw dev dependencies.

* js 3.2.1
2024-10-30 13:40:01 -07:00
Brandon Liu
0f09f23ee8 cleanup js raster example (#482) 2024-10-20 08:41:53 -07:00
Brandon Liu
60f3331ca9 add geometry filter to js examples because of v4 mixed geometries. (#464) 2024-09-25 22:49:06 +08:00
Brandon Liu
3472fd89f9 Option to load metadata in MapLibre adapter [#247] (#461)
* Option to load metadata in MapLibre adapter [#247]

* pass metadata: true to new Protocol() to make an extra request and populate attribution + vector_layers
* js 3.2.0 [#247]
* simplify examples
* update leaflet and maplibre versions
* add maplibre_headers.html example for custom headers [#397]
2024-09-22 19:04:50 +08:00
Brandon Liu
c7db819b2e update CHANGELOG 2024-09-20 09:26:27 +08:00
Brandon Liu
ce959e50b0 Chrome windows cache workaround (#454)
js 3.1.0

* Disable browser caching on chrome on windows [#442]
* work around for chromium issue: https://issues.chromium.org/issues/40542704
2024-09-19 23:26:09 +08:00
Brandon Liu
6f5479439b add getTileJson method to PMTiles class [#239, #247] (#453)
* add getTileJson method to PMTiles class [#239, #247]
* update docs related to FetchSource and headers [#397]
2024-09-18 15:57:14 +08:00
Brandon Liu
2dd5bb7937 Prettier on JavaScript examples [#383] (#438) 2024-09-02 14:20:48 +08:00
Brandon Liu
6a4f3d28a0 build instructions 2024-08-08 15:34:20 +08:00
Brandon Liu
957d54ac93 add new firenze JS MapLibre example 2024-08-08 15:33:51 +08:00
Brandon Liu
721c65e391 js 3.0.7 (#429) 2024-07-25 11:49:17 +08:00
Brandon Liu
a7c76e03e5 Improve failed ETag error message [#427] (#428)
* Improve failed ETag error message [#427]
2024-07-25 11:14:26 +08:00
Brandon Liu
c2a3fcc5e7 bump example maplibre to 4.5.0 [#421] (#422) 2024-07-03 09:46:53 +03:00
Brandon Liu
59ab30d68c Add comments on MapLibre example for ZXY urls; PR template (#417) 2024-06-28 11:32:43 +02:00
dependabot[bot]
af3c2e3d62 Bump braces from 3.0.2 to 3.0.3 in /js (#413)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 17:25:47 -04:00
Brandon Liu
d16faa2658 update all github pages URLs. (#406) 2024-06-08 10:22:27 -06:00
Brandon Liu
5ae66c2144 js 3.0.6 (#399)
* js 3.0.6

* add CommonJS fallback for NodeJS projects not using ESM.
2024-05-30 14:11:09 +08:00
Brandon Liu
35c31e437c Remove old basemap examples from app, replace with source.coop mirror [#49] (#382)
* fix js changelog
2024-04-06 16:41:22 -07:00
Brandon Liu
2422839816 JS: add missing files to package.json, v3.0.5 [#375] (#376)
* Needed for cases that do not use pre-bundled module in dist
2024-03-08 16:08:54 +08:00
Brandon Liu
9a07db9e51 link to typedoc (#371) 2024-02-25 18:39:22 +08:00
Brandon Liu
3451540a3a js 3.0.4 (#370)
* export DecompressFunc type
* add typedoc comments
2024-02-25 18:29:48 +08:00
Brandon Liu
b229c1a8c7 Remove prefetch boolean from JS sources - no reason to ever not use i… (#353)
* Remove prefetch boolean from JS sources - no reason to ever not use it

* JS optimization for header fetches on etag invalidation [#90]

* If promises are shared between requests, only the first invalidation makes the header request.
* If promises are not shared, simply delete the key.

* JS 3.0.3 [#90]

* update CHANGELOG
2024-02-05 15:57:30 +08:00
Brandon Liu
c43e73a813 fix JS IIFE readme [#347] (#349)
* fix JS IIFE readme [#347]

* js 3.0.2 - fix package.json and IIFE README
2024-02-03 23:06:41 +08:00
Brandon Liu
a9977e3385 js 3.0.01: fix 3.0.0 packaging [#347] (#348)
* js 3.0.1; fix 3.0.0 packaging [#347]

* We can't have a .mjs alongside a .js, so rename the IIFE to pmtiles.js and the ES6 module to index.js.
2024-02-03 23:01:46 +08:00
Brandon Liu
067347cebb JS v3.0.0 (#346) 2024-02-02 17:54:46 +08:00
Brandon Liu
61ed024d21 add typedoc [#287] (#343) 2024-02-01 14:59:01 +08:00
Brandon Liu
3320353da6 JS 3.0.0-alpha.2 (#342) 2024-01-31 23:09:16 +08:00
Brandon Liu
179b1590b1 JS: ETags logic as part of Sources [#90] (#341)
* Simplifies ETag logic into Source, making if-match conditional requests possible.
* Avoid if-match in FetchSource for latency reasons - use cache buster on ETag change
* handle weak ETags correctly
* add mock fetch server for testing ETags [#90]
2024-01-31 23:00:24 +08:00