Brandon Liu
84710d250f
bump JS example versions; add experimental OpenLayers example [ #3 ]
2022-10-28 09:56:22 +08:00
Brandon Liu
76063ccadb
js 2.4.0
2022-10-27 15:32:59 +08:00
Brandon Liu
afcd31b511
Fail gracefully when ETag mismatch happens more than once.
...
* Some HTTP servers will return 206 Partial Content with an ETag for the contents, not the entire resource.
* This change allows the client to continue with mismatched ETags if this case is detected.
2022-10-27 15:32:59 +08:00
Brandon Liu
d01057b1d6
Update README.md
2022-10-26 17:49:15 +08:00
Brandon Liu
9e45a810a2
update JS README about CORS
2022-10-24 22:42:31 +08:00
Brandon Liu
d689776a18
add JS leaflet/maplibre example files.
2022-10-24 20:14:32 +08:00
Brandon Liu
6a71f48f20
js v2.3.0
2022-10-24 12:29:43 +08:00
Brandon Liu
748c2f65cc
maplibre adapter: use header to return appropriate empty response based on tile type, improve type defs [ #83 ]
2022-10-24 11:57:37 +08:00
Brandon Liu
ff19c76403
js code formatting and linting
2022-10-17 23:23:38 +08:00
Brandon Liu
9000d6d1ba
js 2.2.0
2022-10-17 21:20:37 +08:00
Brandon Liu
5eb5dd7580
revert setting maxzoom in leaflet adapter in favor of explicit async header loading.
2022-10-17 21:14:17 +08:00
Brandon Liu
6438d87ff6
leaflet adapter supports cancellation and min/max zoom from header [ #48 ]
2022-10-15 17:02:18 +08:00
Brandon Liu
37f315cc57
js: cleaner 404 error, change max directory depth to <= 3
2022-10-14 14:45:58 +08:00
Brandon Liu
c42011ff7b
Update README.md
2022-10-14 00:10:54 +08:00
Brandon Liu
1933aeddd6
js 2.1.0
2022-10-14 00:08:51 +08:00
Brandon Liu
6af34274d6
js: richer deprecation messages
2022-10-14 00:08:36 +08:00
Brandon Liu
e3c265d878
JS readme improvements
2022-10-14 00:08:18 +08:00
Brandon Liu
9f6941e969
JS MapLibre Adapter: autodetect minzoom/maxzoom, clean up hacky loading syntax [ #48 ]
2022-10-14 00:08:08 +08:00
Brandon Liu
927f660917
Update README.md
2022-10-13 15:13:56 +08:00
Brandon Liu
cf20dcd0ce
js v2.0.0: rename protocol.tileFunc -> tile, CHANGELOG, README
2022-10-13 10:13:10 +08:00
Brandon Liu
3d40ca4501
improve v2 compatibility shim populating metadata
2022-10-05 22:42:07 +08:00
Brandon Liu
15be9a6c07
JS: Fix v2 defaults for Compression/TileType
2022-10-05 17:23:11 +08:00
Brandon Liu
b108831159
js v2 compatibility shim supports tile cancellation
2022-10-05 17:22:37 +08:00
Brandon Liu
f831dd113a
fix testing command
2022-10-05 10:46:43 +08:00
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
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