Commit Graph

560 Commits

Author SHA1 Message Date
Brandon Liu
7526a4b8b6 fix tests for spec magic number/compression changes 2022-10-05 10:46:19 +08:00
Brandon Liu
41b53c2c12 js library has better organization 2022-10-04 23:40:38 +08:00
Brandon Liu
98311c1f12 Finish implementation of v2 compatibility shim in v2.ts 2022-10-04 21:07:49 +08:00
Brandon Liu
96d7ba7748 add minimal shim stubs for v2 backwards compatibility 2022-10-04 12:25:08 +08:00
Brandon Liu
9594cd1764 add second implementation of Cache for environments where promises cannot be shared between requests 2022-10-04 11:47:26 +08:00
Brandon Liu
6d6e931f1d rename Cache to SharedPromiseCache and make Cache interface 2022-10-04 11:07:08 +08:00
Brandon Liu
93ff392e6f rename Response to RangeResponse; fix lastUsed increment in header cache 2022-10-04 10:57:32 +08:00
Brandon Liu
2a805b0f40 rename Response > SourceData 2022-10-03 19:33:23 +08:00
Brandon Liu
bd53ad7d8f fix minZoom/maxZoom 2022-10-03 13:58:26 +08:00
Brandon Liu
92c1c8bbdf v3 getZxy response is object with optional cacheControl, expires [#24] 2022-10-03 13:57:59 +08:00
Brandon Liu
87bf3994d0 formatting, short-circuit getZxy based on header minzoom/maxzoom 2022-10-01 18:38:51 +08:00
Brandon Liu
9de085be8b js v3 client: coordinates use e7 fixed-precision encoding 2022-09-30 22:11:41 +08:00
Brandon Liu
f23ca5823b JS v3 reader with caching and ETag support [#59, #53, #41, #24, #4]
The v3 module is not exported yet; specifics of header design subject to change.
2022-09-27 09:12:36 +08:00
Brandon Liu
fbb0f4614c v3 js: varint routines [#41] 2022-09-19 21:13:58 -07:00
Brandon Liu
07eaf102a9 base v3 tileID and lookup functions [#41] 2022-09-19 20:44:23 -07:00
Brandon Liu
407db08d73 bump vite version 2022-09-15 16:36:32 -07:00
Brandon Liu
bc35a0afec app: add gzipped demo archive 2022-08-02 20:22:19 -07:00
Brandon Liu
bf813a75e9 lambda: better error reporting for misconfiguration 2022-08-02 19:55:21 -07:00
Brandon Liu
5d841713ba Update README.md 2022-08-02 19:22:17 -07:00
Brandon Liu
5ea9927089 Update README.md 2022-07-30 11:45:10 +08:00
Brandon Liu
38f59f209d Update README.md 2022-07-30 11:41:45 +08:00
Brandon Liu
5787962dcf Update README.md 2022-07-30 11:39:42 +08:00
Brandon Liu
0aae8344fc add basic header-only c++ writer implementation (hardcoded leaf level) 2022-07-30 11:28:10 +08:00
Brandon Liu
e6dcfd40c4 Merge pull request #61 from migurski/patch-2
Moved CORS headers up to include non-200 responses
2022-07-29 22:22:20 +08:00
Michal Migurski
c4f5a8f8bc 204 responses also need CORS headers 2022-07-28 17:16:42 -07:00
Michal Migurski
354477ae02 Moved CORS headers up to include non-200 responses 2022-07-28 14:19:49 -07:00
Brandon Liu
0557f0e23c lambda function CORS controlled by environment variable 2022-07-28 12:37:50 +08:00
Brandon Liu
62180fa1c7 Merge pull request #60 from migurski/patch-1
Add CORS response header
2022-07-28 12:27:05 +08:00
Brandon Liu
3279d7a867 Update README.md 2022-07-28 12:22:34 +08:00
Brandon Liu
74a0abd1f7 Update README.md 2022-07-28 12:22:14 +08:00
Brandon Liu
6f2498b7d8 fix CI 2022-07-28 12:18:13 +08:00
Brandon Liu
95bdb57dce build serverless packages as part of gh-pages CI 2022-07-28 12:14:32 +08:00
Michal Migurski
f944b6f1c9 Add CORS response header 2022-07-27 11:15:16 -07:00
Brandon Liu
c161c01322 AWS: special case API gateway to always return gzipped data to avoid binary/base64 unwanted behavior. 2022-07-27 00:37:12 +08:00
Brandon Liu
87c47a23fb Update README.md 2022-07-23 13:01:17 +08:00
Brandon Liu
02ac315df6 change API gateway path param to 'proxy' 2022-07-22 00:33:37 +08:00
Brandon Liu
e173ca76f6 Update README.md 2022-07-21 23:44:14 +08:00
Brandon Liu
ae986bbed5 lambda + API Gateway proper path integration; fix exceptions when archive missing 2022-07-21 23:41:44 +08:00
Brandon Liu
f1efba0a6f python library: 2.1.0 2022-07-21 20:15:10 +08:00
Brandon Liu
a6a0683947 detailed error handling for cloudflare worker 2022-07-21 18:52:05 +08:00
Brandon Liu
fc5e366bd2 cloudflare worker supports PMTILES_PATH 2022-07-21 18:52:05 +08:00
Brandon Liu
d482611910 Update README.md 2022-07-21 10:40:23 +08:00
Brandon Liu
95b1f90a04 Revert "cloudflare worker: cache holds promises instead of buffers"
see errors related to "The script will never generate a response."

This reverts commit e0402ded7f.
2022-07-21 10:23:13 +08:00
Brandon Liu
1db1836365 Merge pull request #57 from protomaps/testsuite
improvements to CI test suite
2022-07-20 16:40:27 +08:00
Brandon Liu
be57f1f61d improvements to CI test suite 2022-07-20 16:38:36 +08:00
Brandon Liu
7db048b28c Create README.md 2022-07-20 14:49:34 +08:00
Brandon Liu
bde4a2f75c cloudflare worker: gzip compression support 2022-07-20 13:07:16 +08:00
Brandon Liu
e0402ded7f cloudflare worker: cache holds promises instead of buffers 2022-07-20 13:07:02 +08:00
Brandon Liu
dc85fc60c2 add initial implementation of cloudflare worker 2022-07-19 20:35:05 +08:00
Brandon Liu
3a77103373 move location of cloudflare typedefs 2022-07-19 20:27:40 +08:00