Commit Graph

132 Commits

Author SHA1 Message Date
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
3811ff9b1b js decoder 1.1.0
adds fflate dependency; maplibre decoder can read gzipped tiles [#41]
2022-07-07 12:36:16 +08:00
Brandon Liu
9962b4e344 improvements to inspector app 2022-06-13 16:48:58 +08:00
Brandon Liu
beef7a3ab7 key by offset+length to allow fetches of magic numbers 2022-06-01 13:33:15 +08:00
Brandon Liu
f865bd9899 update js README 2022-06-01 10:32:51 +08:00
Brandon Liu
6018d3d547 js: export more classes, root_entries list method 2022-06-01 10:10:41 +08:00
Brandon Liu
5d7fd9bdf7 modularize JS client to take non-HTTP sources, caching behavior 2022-05-30 12:38:10 +08:00
Brandon Liu
f31b8b2bca js 1.0.4 2022-05-17 14:08:44 +08:00
Brandon Liu
29b9a83e63 fix overwriting of dist/index.js when tsc declarations built 2022-05-17 14:08:24 +08:00
Brandon Liu
51c8ed1804 1.0.3 2022-03-08 16:30:09 +08:00
Brandon Liu
e898912327 fix dist filenames; add cjs build output 2022-03-08 16:29:52 +08:00
Brandon Liu
fa79046d0c update README 2022-02-19 13:55:25 +08:00
Brandon Liu
914999dd3d 1.0.2 fix package.json 2022-02-19 13:24:12 +08:00
Brandon Liu
73a9d37a89 js 1.0.1 2022-02-19 13:22:34 +08:00
Brandon Liu
1b9d9966f5 rename pmtiles.ts > index.ts to fix node-style module resolution 2022-02-19 13:21:35 +08:00
Brandon Liu
7fb28f9690 release 1.0.0 ; add js CHANGELOG 2022-02-18 11:36:45 +08:00
Brandon Liu
ca1c59d9d3 fix binding this in ProtocolCache; update maplibre examples 2022-02-18 11:17:34 +08:00
Brandon Liu
7517b26c66 new maplibre protocol API to avoid duplicate requests [#28] 2022-02-18 10:44:48 +08:00
Brandon Liu
47f03b768e code style cleanup 2022-02-18 10:44:20 +08:00
Brandon Liu
313ce5b037 warn if missing spec v2 metadata properties [#27] 2022-02-17 17:38:34 +08:00
Brandon Liu
3a9679b952 handle leaf levels other than 7 2022-02-17 17:16:44 +08:00
Brandon Liu
837ba393a3 Merge pull request #33 from protomaps/arrow-fns
replace arrow functions in PMTiles class with non-arrows
2022-02-17 14:49:50 +08:00
Brandon Liu
993f13f078 replace arrow functions in PMTiles class with non-arrows 2022-02-17 14:30:42 +08:00
Blayne Chard
bed9372b3a format all typescript files with prettier 2022-02-17 19:27:36 +13:00
Brandon Liu
802b5e46fd re-prettier pmtiles.ts; add prettier task 2022-02-17 14:18:27 +08:00
Brandon Liu
c4560be9a2 remove plain JS module source 2022-02-17 13:31:49 +08:00
Brandon Liu
62e2b79e66 update gitignore 2022-02-17 13:31:17 +08:00
Brandon Liu
bcb20299cd js library 1.0.0 preliminary port to typescript (breaking changes) 2022-02-17 13:31:03 +08:00
Brandon Liu
8aac294603 force re-sorting of directory if spec v1 detected [#27] 2022-02-17 13:29:26 +08:00
Brandon Liu
61093697fc typescript leaflet adapter 2022-02-17 12:33:19 +08:00
Brandon Liu
f35215931e typescript parseEntry 2022-02-17 12:33:07 +08:00
Brandon Liu
faea10dd7c flesh out typescript implementation [#27, #28] 2022-02-17 11:46:55 +08:00
Brandon Liu
dc4cde0d1d source files for faster directory fetches [#26] 2022-01-30 20:03:08 +08:00
Brandon Liu
4931f58d85 js 0.5.0 2021-12-29 12:37:20 +08:00
Brandon Liu
7e438bbbae Expose more methods in js library 2021-12-29 12:36:21 +08:00
Brandon Liu
36b982c553 js 0.4.0 2021-12-28 18:20:21 +08:00
Brandon Liu
99da15ff98 loading the root directory is lazy [#17] 2021-11-15 17:11:03 +08:00
Brandon Liu
c40a4a266f display console error if an archive with compression is read directly in the browser. 2021-06-19 12:34:59 +08:00
Brandon Liu
d649aaf1d3 js 0.3.1 2021-06-18 13:17:17 +08:00
Brandon Liu
167991a5bf remove transformRequest-based maplibre shim 2021-06-18 13:17:08 +08:00
Brandon Liu
199e90429b js 0.3.0 2021-06-18 13:13:36 +08:00
Brandon Liu
f288f60239 maplibre: cancel correctly captued in closure [#6] 2021-06-08 18:41:58 +08:00
Brandon Liu
4936526d19 implement cancellation for maplibre fetch [#1] 2021-06-08 18:21:00 +08:00
Brandon Liu
1bceca9535 add addProtocol for maplibre [#6] 2021-06-08 18:15:50 +08:00
Brandon Liu
150a2561c2 implement fetch abort for leaflet image layer [#1] 2021-06-08 17:45:59 +08:00
Brandon Liu
959d573eb6 0.2.2 2021-06-03 12:26:07 +08:00
Brandon Liu
c6f801a1b3 esm target is built by esbuild so dependents don't need classProperties 2021-06-03 12:21:19 +08:00