Commit Graph

196 Commits

Author SHA1 Message Date
Brandon Liu
b8a78a7f6a js: avoid use of BigInt operations for older safari browsers [#103] 2022-12-10 18:36:04 +08:00
Brandon Liu
577bd9ede7 js 2.6.0 2022-12-05 12:38:46 +08:00
Brandon Liu
9d3958388c Merge pull request #102 from protomaps/handle-416-servers
FetchSource handles servers that return 416 for requests beyond end of file
2022-12-05 11:57:55 +08:00
Brandon Liu
cffdb681cf FetchSource handles servers that return 416 for requests beyond end of file.
* Refine the detection of servers that don't support byte serving.
* Improve console errors related to failed Fetch.
2022-12-04 23:03:39 +08:00
Brandon Liu
68af757800 bump js example versions. 2022-12-04 22:58:21 +08:00
Brandon Liu
b1dd582609 update js README to refer to docs site. 2022-12-03 00:04:33 +08:00
Brandon Liu
37012d28c0 js 2.5.1 2022-12-02 12:52:49 +08:00
Brandon Liu
403d83a27e js leafletRasterLayer: show console error if attempting to load a vector archive [#101] 2022-12-02 12:52:01 +08:00
Brandon Liu
7b65314ca9 improve metadata view [#49] 2022-12-02 01:51:58 +08:00
Brandon Liu
47d35484fc port tests to node 18 test module; remove zora dep 2022-11-22 20:38:14 +08:00
Brandon Liu
f457724da1 pass HTTP metadata in S3/R2 Source impls 2022-11-22 14:43:15 +08:00
Brandon Liu
a619aa84e2 make tsconfigs consistent 2022-11-22 10:59:09 +08:00
Brandon Liu
34291403f2 fix JS maplibre example 2022-11-22 02:12:07 +08:00
Brandon Liu
84cd55f719 bump js example versions 2022-11-21 19:50:18 +08:00
Brandon Liu
82bad64bd3 js 2.5.0 2022-11-21 19:48:16 +08:00
Brandon Liu
336cc221e7 update js CHANGELOG. 2022-11-21 19:47:55 +08:00
Brandon Liu
6a1af0f4ca simplify cache LRU logic; use count and not size 2022-11-21 19:29:34 +08:00
Brandon Liu
9fd1d39ab5 aws/cf depend on js/index instead of dist 2022-11-21 19:29:10 +08:00
Brandon Liu
5de95b8fbe modular decompression implementation 2022-11-14 21:58:20 +08:00
Brandon Liu
bcb2313d1e js: make tryDecompress async 2022-11-14 21:41:57 +08:00
Brandon Liu
e6218dd4f9 cleanup example 2022-11-03 15:10:51 +08:00
Brandon Liu
9385c69326 add maplibre raster DEM example 2022-11-03 14:32:35 +08:00
Brandon Liu
302eeab47e js client: show error when future spec version is read 2022-11-01 17:02:49 +08:00
Brandon Liu
92f6670640 openlayers raster example 2022-11-01 16:50:39 +08:00
Brandon Liu
d010efd1ff js client: Etag-related invalidation fixes [#90] 2022-11-01 16:29:00 +08:00
Brandon Liu
5ef3e09e3d Update README.md 2022-11-01 15:16:51 +08:00
Brandon Liu
a0c717f9e4 openlayers: update URL 2022-10-31 11:56:20 +08:00
Brandon Liu
40679aa2bd js docs: add example on line to include library 2022-10-28 18:34:47 +08:00
Brandon Liu
674e92624d improve OpenLayers example; maxzoom and TileState 2022-10-28 10:56:18 +08:00
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