Commit Graph

710 Commits

Author SHA1 Message Date
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
Brandon Liu
fd333cc1b6 maplibre inspector stringifies boolean values [#270] (#271) 2023-10-19 12:44:49 -04:00
Tobias
41c497109f Inspector: Explose true/false values (#270)
* Inspector: Explose true/false values

`true`/`false` where hidden from the UI, they need to be transformed to strings.

* Update Inspector.tsx
2023-10-19 12:28:42 -04:00
dependabot[bot]
b0c14caf0f Bump @babel/traverse from 7.22.8 to 7.23.2 in /app (#269)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-17 15:13:46 -04:00
dependabot[bot]
34604d9ddd Bump undici from 5.23.0 to 5.26.3 in /serverless/cloudflare (#268)
Bumps [undici](https://github.com/nodejs/undici) from 5.23.0 to 5.26.3.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.23.0...v5.26.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>
2023-10-17 09:40:25 -04:00
dependabot[bot]
49fe818bcf Bump postcss from 8.4.19 to 8.4.31 in /app (#267)
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.19 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.19...8.4.31)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-17 09:40:06 -04:00
Brandon Liu
4bd801305c Spec 3.3 (#263)
* Spec 3.3

* Add recommended MIME type to spec document [#241]
2023-10-06 15:00:03 +08:00
Brandon Liu
08ff5007b0 Spec v3 edits (#235)
* consistent spelling and capitalization of RunLength, TileID, MVT; wording [#107]

* Spec v.2 changelog; remove sections to be discussed later [#107]

* copy corrections by @DerZade [#235]
2023-10-02 19:58:02 +08:00
Brandon Liu
cfa732ad6a ol-pmtiles v0.3.0 (#262) 2023-10-01 11:34:37 +08:00
Brandon Liu
0cba01d8a6 ol-pmtiles passes headers like other ol source options (#261) 2023-10-01 11:29:50 +08:00
Brandon Liu
8c282b90da js v2.11 (#260)
* js 2.11.0

* update examples
2023-09-28 15:14:50 +08:00
Brandon Liu
b815bab09c js: FetchSource takes optional custom headers (#112)
* js: FetchSource takes optional custom headers
2023-09-28 15:07:25 +08:00
Brandon Liu
8925d4272b add utility module for AWS regions. (#259) 2023-09-28 14:31:22 +08:00
Brandon Liu
96eb357362 app improvements (#258)
* viewer app: improve type safety and visibility of overlay features.

* correct basemap attribution.

* prettier
2023-09-27 13:49:40 +08:00
Brandon Liu
f378bb97a8 upgrade vector basemap to tiles v3, styles v2 [#49] (#257) 2023-09-26 16:25:30 +08:00
Brandon Liu
fd297cc71b Viewer layer toggle shows layer colors [#243] (#252) 2023-09-20 11:44:25 +08:00
Brandon Liu
70146469e9 detect map hash being passed more reliably to auto-set bounds [#246] (#251)
* add README for installing /app [#244]
2023-09-11 11:05:50 +08:00
Bertil Chapuis
009cd20ff4 Correct TileID example (#249)
This example does not correspond to the test cases provided in the javascript reference implementation.

17583ae19d/js/test/v3.test.ts (L40)
2023-09-06 21:47:29 +08:00
Brandon Liu
17583ae19d ol-pmtiles v0.2.0 2023-08-25 11:56:06 +08:00
Matthias Mohr
da32ad6785 Add .js to imports (#240) 2023-08-25 11:54:12 +08:00
Brandon Liu
32666dd9d7 add unit test for dir output [#221] (#238) 2023-08-21 16:51:39 +08:00
dependabot[bot]
64a5125657 Bump wrangler from 2.18.0 to 3.1.1 in /serverless/cloudflare (#233)
* Bump wrangler from 2.18.0 to 3.1.1 in /serverless/cloudflare

Bumps [wrangler](https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler) from 2.18.0 to 3.1.1.
- [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.1.1/packages/wrangler)

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

Signed-off-by: dependabot[bot] <support@github.com>

* fix tsconfig for cloudflare [#233]

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brandon Liu <bdon@bdon.org>
2023-08-21 10:12:31 +08:00
Jonas Schade
1aa0931d44 More detailed Version 3 Specification (#172)
* docs(spec): detailed rewrite of V3 specification by @DerZade [#107]

* spec bump to v3.2
* includes pseudocode and diagrams for binary layout
* adopt RFC 2119 specification language
2023-08-17 18:05:14 +08:00
Brandon Liu
1f30e1a9b9 rename protomaps.js -> protomaps-leaflet 2023-08-08 16:29:49 +08:00
Brandon Liu
6cd4a97d2a ol-pmtiles 0.1.1; fix shape of reading tile data from getZxy [#225] (#232)
* ol-pmtiles 0.1.1; fix shape of reading tile data from getZxy [#225]

* update ol raster example [#225]
2023-08-08 13:47:18 +08:00
Blayne Chard
d1ea859443 add ETag and cache-control headers for 200 responses (#231)
* add etag and cache control headers for 200 responses

* fixup eTag -> ETag
2023-08-08 11:11:42 +08:00
Brandon Liu
0528e12ec9 fix maplibre example 2023-08-01 11:47:20 +08:00
Brandon Liu
77c956d381 Replace compression polyfill ("Worker" related errors) (#222)
* replace compression-streams-polyfill with globalThis check [#167]

* work around web worker issue with decompression polyfill.

* js 2.10.0-beta.0

* js 2.10.0; update examples
2023-07-31 22:20:42 +08:00
François BAPTISTE
6a4a403942 fix NameError: name 'data' is not defined in convert.py (#220) 2023-07-20 16:32:34 +08:00
Brandon Liu
8f5076297a add missing includes to pmtiles.hpp for fedora (#219) 2023-07-13 13:41:10 +08:00
Brandon Liu
befa393ad9 Inspector improvements (#218)
* conditionally reposition map if map hash wasn't passed [#49]

* add 20230408 basemap to viewer presets
2023-07-08 20:35:24 +08:00
dependabot[bot]
314d36272a Bump semver and @babel/core in /app (#217)
Removes [semver](https://github.com/npm/node-semver). It's no longer used after updating ancestor dependency [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core). These dependencies need to be updated together.


Removes `semver`

Updates `@babel/core` from 7.17.10 to 7.22.8
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.22.8/packages/babel-core)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
- dependency-name: "@babel/core"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-07 16:02:31 +08:00
Brandon Liu
7bab1d744e aws: bump s3 client to 3.360.0 (#216)
* aws: bump s3 client to 3.360.0
2023-07-07 15:34:46 +08:00
Brandon Liu
d4e7974887 Merge pull request #215 from protomaps/dependabot/npm_and_yarn/app/vite-2.9.16
Bump vite from 2.9.15 to 2.9.16 in /app
2023-07-07 14:11:05 +08:00
dependabot[bot]
a117e6d1a9 Bump vite from 2.9.15 to 2.9.16 in /app
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 2.9.15 to 2.9.16.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v2.9.16/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v2.9.16/packages/vite)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-07 06:07:37 +00:00
Brandon Liu
60fd14294b Merge pull request #213 from protomaps/readme-tippecanoe-update
Update README to refer to felt/tippecanoe v2.
2023-07-02 10:59:04 +02:00
Brandon Liu
5803b067ba Update README to refer to felt/tippecanoe v2. 2023-07-02 10:55:18 +02:00
Brandon Liu
8100f1f50e Merge pull request #212 from ay8s/patch-1
Update tippecanoe URL
2023-07-02 10:53:29 +02:00
Andrew Yates
d4798ffa22 Correct tippecanoe url 2023-06-30 09:50:41 -07:00
Brandon Liu
929fb655ec Merge pull request #208 from protomaps/lambda-501
aws: return 501 instead of 400 if no PUBLIC_HOSTNAME configured
2023-06-23 20:57:59 +08:00
Brandon Liu
0cac52741b aws: return 501 instead of 400 if no PUBLIC_HOSTNAME configured for TileJSON 2023-06-23 20:23:19 +08:00