Commit Graph

750 Commits

Author SHA1 Message Date
Brandon Liu
f50fc8bdf0 new domain for pmtiles viewer (#405) 2024-06-08 10:13:21 -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
bc8f97d642 bump basemap style to v3 [#49] (#398) 2024-05-30 11:51:30 +08:00
Niels Bom
658c75b073 refactor: early return (#389)
* refactor: early return

Undents all the code below it 1 level. Readability win.

---------

Co-authored-by: Brandon Liu <bdon@bdon.org>
2024-04-26 12:41:40 +08:00
Niels Bom
3b5ab6b7ac gitignore node_modules in cloudflare dir (#390) 2024-04-18 11:58:26 -07:00
dependabot[bot]
d78f6377ad Bump undici from 5.28.3 to 5.28.4 in /serverless/cloudflare (#388)
Bumps [undici](https://github.com/nodejs/undici) from 5.28.3 to 5.28.4.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.28.3...v5.28.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-14 07:38:01 -07:00
dependabot[bot]
de0bb8286a Bump vite from 2.9.17 to 2.9.18 in /app (#387)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 2.9.17 to 2.9.18.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v2.9.18/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v2.9.18/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-14 07:31:20 -07: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
71e83f138a Fix tileinspect entrypoint in gh pages build [#49, #379] (#380) 2024-03-25 13:35:36 -07:00
Brandon Liu
08b2c5e3b1 viewer: break tile inspect into separate entrypoint [#49] (#379)
* viewer: break tile inspect into separate entrypoint [#49]

* fix tsc
2024-03-15 12:44:43 +08:00
Brandon Liu
1527d57d23 allow popup freezing [#282] (#378)
* allow popup freezing [#282]

* formatting
2024-03-15 12:01:40 +08: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
46de0b076d ol-pmtiles 0.4.0 (#374)
* fix double ol source tile load events [#373]
* bump pmtiles dependency to 3.x
* bump examples to ol 9.x
* fix package.json publint
2024-03-06 15:45:27 +08:00
Brandon Liu
43133f40c7 remove unused code (#372) 2024-02-26 11:25:35 +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
264b1d0db8 Generate typedoc and put in GH pages dir (#369)
* Generate typedoc and put in GH pages dir
2024-02-25 17:44:21 +08:00
Brandon Liu
e2d9dd40bd python 3.3.0 (#365) 2024-02-21 12:47:54 +08:00
Jesse Crocker
206be682c7 Remove print statements (#364) 2024-02-21 12:33:18 +08:00
dependabot[bot]
a511813a9e Bump undici from 5.28.2 to 5.28.3 in /serverless/cloudflare (#361)
Bumps [undici](https://github.com/nodejs/undici) from 5.28.2 to 5.28.3.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.28.2...v5.28.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-20 11:57:22 +08:00
Brandon Liu
949510f701 python v3.2.1 (#360) 2024-02-10 11:52:11 +08:00
Gabor Simko
ea1657d8fe fix reader.py reading all the tiles (#357)
* fix reader.py reading all the tiles

* add unit test

---------

Co-authored-by: Gabor Simko <gsimko3@gmail.com>
2024-02-10 11:40:06 +08:00
Brandon Liu
5b8627b0d8 Implement ETag logic for AWS and Cloudflare [#90] (#354) 2024-02-07 11:46:05 +08:00
Brandon Liu
e86dd554be lint cloudflare implementation (#352)
Add linters to AWS and cloudflare implementations [#287]
2024-02-05 16:59:06 +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
7cc025c776 applying linter fixes to viewer /app [#49] (#344)
Add biome linter and configuration to /app viewer.
2024-02-01 15:59:34 +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
Brandon Liu
a0ee7c4906 JS 3.0.0-alpha.1 (#340) 2024-01-31 14:28:25 +08:00
Brandon Liu
84fb7a8671 Support for both maplibre v3 and v4 addProtocol. (#339)
Adds support for MapLibre v4.x, which changed the addProtocol interface. This remains backwards-compatible with MapLibre v3.x and earlier.
2024-01-31 12:38:34 +08:00
Brandon Liu
6638d040a5 linting and typing improvements [#287] (#337)
* Typing improvements [#287]

* rename FileApiSource to FileSource
* In a few cases we need to use any and biome-ignore. Deferring any restructuring here to js v4.
* replace prettier with biome
2024-01-31 12:22:25 +08:00
Brandon Liu
6bb1c68ead JS: make an ESM-only package, remove CommonJS [#287] (#336) 2024-01-30 13:00:34 +08:00
Brandon Liu
d7e24d046e Type safety improvements [#287] (#335)
* Work through linter issues related to non-null checks and any.
2024-01-29 22:46:08 +08:00
Brandon Liu
9a29c5a78a JS v3.0.0-alpha.0 (#334)
* JS v3.0.0-alpha.0

* Alpha package of new major version with ES6 modules as default in package.json. [#317, #248]

* bump JS examples to 3.0.0-alpha.0
2024-01-29 18:03:00 +08:00
Brandon Liu
22d7a58f36 replace esbuild runner with tsx (#333)
* also bump esbuild to latest version in all package.jsons
2024-01-29 17:51:42 +08:00
Brandon Liu
a6cbc1961e Continue linting fixes [#287] (#332)
* make use of ===, if branches, let/const, string templates, var names consistent style.
2024-01-29 17:41:12 +08:00
Brandon Liu
3b61cc8b49 apply automated linting fixes (#331) 2024-01-29 16:04:41 +08:00
Brandon Liu
5e41bd65ef Make package.json main es6 module instead of cjs [#317, #248] (#330)
* Make package.json main es6 module instead of cjs [#317, #248]

* remove use of package.json main, instead use exports for dual es6/cjs modules [#317, #248]

* replace esbuild-runner with tsx [#477]
2024-01-29 15:31:51 +08:00
dependabot[bot]
f39bffdc35 Bump vite from 2.9.16 to 2.9.17 in /app (#328)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 2.9.16 to 2.9.17.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v2.9.17/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v2.9.17/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-23 09:51:13 +08:00
dependabot[bot]
cc52d9dde1 Bump wrangler from 3.1.1 to 3.19.0 in /serverless/cloudflare (#319)
Bumps [wrangler](https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler) from 3.1.1 to 3.19.0.
- [Release notes](https://github.com/cloudflare/workers-sdk/releases)
- [Changelog](https://github.com/cloudflare/workers-sdk/blob/main/packages/wrangler/CHANGELOG.md)
- [Commits](https://github.com/cloudflare/workers-sdk/commits/wrangler@3.19.0/packages/wrangler)

---
updated-dependencies:
- dependency-name: wrangler
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-09 09:53:01 +08:00
Brandon Liu
d301b64ad5 spec v3.4 (#313)
* add details on leaf directory ordering and entry length > 0.
2023-12-27 09:13:02 +08:00
Daniel J. H
dd76720bef Fixes units in Python writer default bounds (#311)
When there are no user-provided bounds provided in the writer
(as in: min/max_lat/lng_e7 properties) the writer mistakenly
defaults to -180,-90,180,90 for these properties.

e1228f5df1/python/pmtiles/tile.py (L277-L283)

But these properties need to be multiplied by 10000000 as
seen e.g. in this examples and as indicated by the "_e7"

e1228f5df1/python/examples/create_raster_example.py (L29-L32)

Without this fix we were seeing pmtiles with bounds around null
island, because the order of magnitude was wrong.
2023-12-15 15:21:39 +08:00
Christopher Boone
e1228f5df1 Uses wrangler deploy instead of deprecated publish (#305) 2023-11-25 10:50:24 +08:00
Hélène Martin
a2ef533b67 Use pmtiles extension for output (#298) 2023-11-17 08:09:46 +07:00
Brandon Liu
f6842e150a disable minification of cloudflare worker js (#290) 2023-11-13 12:18:16 +08:00
Andrew Brampton
f2805a1681 Flip latitude and longitude in the spec.md (#273)
Both the C++ and Python implementations decode this as bytes 0-3 as longitude and 4-7 as latitude. I assume the spec has a typo.
2023-10-24 10:12:04 -04:00