Commit Graph

175 Commits

Author SHA1 Message Date
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
Brandon Liu
181c9efb7e js 2.9; pass header bounds through maplibre protocol 2023-06-22 14:32:11 +08:00
Brandon Liu
10021809dc add AVIF enum in JS client [#116] 2023-06-22 10:08:34 +08:00
Brandon Liu
6052ca2d57 js 2.8.0 2023-06-17 10:44:57 +08:00
Brandon Liu
0ec589ad18 Merge pull request #199 from protomaps/maplibre-error-reporting
surface exceptions to MapLibre protocol API [fixes #196]
2023-06-17 10:41:59 +08:00
Brandon Liu
7f4691d11f Merge pull request #181 from protomaps/decompressionstream-polyfill
use compression-stream-polyfill for faster, native gzip decompression
2023-06-17 10:38:49 +08:00
Brandon Liu
2bd776820f surface exceptions to MapLibre protocol API [fixes #196] 2023-06-17 09:36:27 +08:00
Brandon Liu
af6cc00c0f fix CI; update type of RequestParameters from maplibre util/ajax.ts 2023-05-29 11:18:54 +08:00
Brandon Liu
db7ed668bb js 2.8.0-beta.0 2023-05-24 13:05:34 +08:00
Brandon Liu
b2aa3164fb use compression-stream-polyfill for faster, native gzip decompression [#97, #167] 2023-05-22 10:49:16 +08:00
Brandon Liu
efb2f8c14c renames: master > main 2023-05-10 20:28:21 +08:00
Brandon Liu
089a732c54 openlayers: add copy of code for script includes; migrate examples [#3] 2023-05-10 20:20:37 +08:00
Brandon Liu
9b0e473d30 checking of tile types in openlayers [#3] 2023-04-26 19:54:24 +02:00
Brandon Liu
fb0ea53ea2 open layers example: set raster tile size to 512x512 [#3] 2023-04-26 16:33:34 +02:00
Brandon Liu
d15e9a5760 improve openlayers snippets; read header min/maxzoom [#3] 2023-04-26 16:19:58 +02:00
Brandon Liu
ae51557f62 update js examples 2023-04-11 10:51:16 +02:00
Brandon Liu
21cb8b32bd js 2.7.2 2023-04-11 10:49:54 +02:00
Bryan McBride
4627b96c1d set blob type for leafletRasterLayer
Setting the mime type helps with previewing network requests.
2023-04-06 22:36:59 -04:00
Johannes Weskamm
f3c31d022b Fix tile loading 2023-03-22 16:23:07 +01:00
Brandon Liu
30856d951c bump example versions 2023-03-13 14:39:02 +08:00
Brandon Liu
1fe4545e85 js 2.7.1; update changelog 2023-03-13 14:34:15 +08:00
Logan Houp
bf35ff4829 pre-compute tzValues 2023-03-12 01:42:40 -05:00
Brandon Liu
802f6aea4e run prettier on js/test; add prettier check to CI 2023-03-12 13:30:57 +08:00
Logan Houp
c07c73481b add prettierrc config file 2023-03-11 12:35:07 -05:00
Brandon Liu
61a5076dc5 add edge case find_tile test [#117] 2023-01-30 03:41:13 +08:00
Brandon Liu
701db2dabc clean up R2 urls 2023-01-25 18:06:07 +08:00
Brandon Liu
4d8d1b0a21 js 2.7.0 2022-12-23 00:14:04 +08:00
Brandon Liu
b23c98dd39 javascript: fix tile id overflow for z > 15 and error assertions in tests. 2022-12-22 21:56:03 +08:00
Brandon Liu
9a79970851 js 2.6.1 2022-12-10 19:57:33 +08:00
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