Commit Graph

589 Commits

Author SHA1 Message Date
Brandon Liu
17218ecb77 Merge pull request #170 from protomaps/cloudflare-tilejson
Cloudflare TileJSON
2023-06-21 18:34:28 +08:00
Brandon Liu
dc8eb73458 TileJSON support for Cloudflare and AWS [#169]
* Remove TILE_PATH configuration as this makes supporting non-tile paths difficult
* create shared/ dir in serverless for common code
* linting fixes
2023-06-21 18:19:10 +08:00
Brandon Liu
5cffe7ac68 Merge pull request #192 from rouault/mbtiles_to_pmtiles_maxzoom
Python: mbtiles_to_pmtiles(): patch maxzoom metadata when using maxzoom option
2023-06-19 10:45:26 +08:00
Brandon Liu
6052ca2d57 js 2.8.0 2023-06-17 10:44:57 +08:00
Brandon Liu
16377186d7 Merge pull request #198 from protomaps/cpp-more-warnings
cpp: add more warning flags to test suite [#194]
2023-06-17 10:42:13 +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
65eaa0e0ff cpp: add more warning flags to test suite [#194] 2023-06-17 07:31:37 +08:00
Brandon Liu
236e84e24f Merge pull request #195 from rouault/pmtiles.hpp_extra_fixes
cpp/pmtiles.hpp: fix build error with big-endian, and add extra sanity check
2023-06-17 06:37:23 +08:00
Even Rouault
fe7e7db559 cpp/pmtiles.hpp: fix build error with big-endian, and add extra sanitfy check 2023-06-14 23:52:04 +02:00
Brandon Liu
6899e23f06 Merge pull request #194 from rouault/cpp_fixes
pmtiles.hpp: multiple warning and robustness fixes
2023-06-12 12:21:19 -04:00
Brandon Liu
61a2c7b99f Merge pull request #191 from protomaps/serverless-ext-mismatch
serverless: improve error message if request doesn't match archive type
2023-06-12 10:05:30 -04:00
Even Rouault
6cd1c3a39b pmtiles.hpp: multiple warning and robustness fixes
This fixes a number of warnings found when integrating it in GDAL
builds, which are done with quite pedantic warning levels.

- add explicit casts when shortening variables
- add support for big-endian targets if defining PMTILES_MSB
- add santity checks on reading directories against corrupt/hostile data
- replace a exit() call by an exception
2023-06-09 20:23:05 +02:00
Even Rouault
8f9feca6e9 Python: mbtiles_to_pmtiles(): set tile_compression = gzip when converting from MVT MBTiles 2023-06-09 19:36:02 +02:00
Even Rouault
021267c67b Python: mbtiles_to_pmtiles(): patch maxzoom metadata when using maxzoom option 2023-06-09 19:30:21 +02:00
Brandon Liu
7250f81846 serverless: improve error message if request doesn't match archive type [#190] 2023-06-07 09:26:51 -04:00
Brandon Liu
fec0d1136c Merge pull request #185 from geospatial-jeff/179-header-dry
reuse `Reader.header`
2023-05-29 17:04:19 +08:00
Brandon Liu
2613ef1047 Merge pull request #186 from geospatial-jeff/180-header-include-version
deserialize_header returns pmtiles version
2023-05-29 11:22:26 +08:00
Brandon Liu
1baa8cf416 Merge pull request #184 from geospatial-jeff/178-read-mode
open mmap with ACCESS_READ
2023-05-29 11:20:13 +08:00
Brandon Liu
af6cc00c0f fix CI; update type of RequestParameters from maplibre util/ajax.ts 2023-05-29 11:18:54 +08:00
geospatial-jeff
ba7bc0e24e deserialize_header returns pmtiles version 2023-05-28 09:46:27 -06:00
geospatial-jeff
fc27e525cd reuse Reader.header 2023-05-28 09:43:16 -06:00
geospatial-jeff
c9e0c9d019 open mmap with ACCESS_READ 2023-05-28 09:41:08 -06:00
Brandon Liu
db7ed668bb js 2.8.0-beta.0 2023-05-24 13:05:34 +08:00
Brandon Liu
9c7f298fb4 Inspector app: bump maplibre to 3.0.0 [#49] 2023-05-24 12:48:54 +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
f31be16f58 Merge pull request #176 from jamesscottbrown/patch-4
Remove max-width for tooltips
2023-05-18 18:42:15 +08:00
James Scott-Brown
b1a4ecbc7d change single to double quotes 2023-05-15 17:07:14 +01:00
James Scott-Brown
606f79d483 Remove max-width for tooltips
The Maplibre docs say that `options.maxWidth` is "A string that sets the CSS property of the popup's maximum width, eg '300px' . To ensure the popup resizes to fit its content, set this property to 'none'"

https://maplibre.org/maplibre-gl-js-docs/api/markers/#popup
2023-05-15 15:17:00 +01:00
Brandon Liu
efb2f8c14c renames: master > main 2023-05-10 20:28:21 +08:00
Brandon Liu
1b277a951f update READMEs to point to openlayers examples [#3] 2023-05-10 20:28:04 +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
7ec4ecbcdb openlayers: simplify down to single index.js [#3] 2023-05-10 18:55:14 +08:00
Brandon Liu
7d57f57c3e app: clean up unused dependencies 2023-05-09 13:52:09 +08:00
Brandon Liu
0053c86652 viewer app: raster overlays show vector basemap 2023-05-08 14:00:27 +08:00
Brandon Liu
23a3056a7f ol-pmtiles 0.0.2: basic first-class support for OpenLayers 2023-05-05 17:07:21 +08:00
Brandon Liu
c418539cd8 add openlayers stub 2023-05-04 14:47:30 +08:00
Brandon Liu
a885f4098a implement metadata and TileJSON-like responses for Cloudflare Workers [#169] 2023-05-03 23:58:22 +08:00
Brandon Liu
3043c20890 bump cloudflare wrangler version 2023-05-03 23:57:08 +08:00
Brandon Liu
7ea69442b3 c++: fix off-by-one error causing out-of-bounds access 2023-05-03 12:58:29 +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
f15fa2f6ce python version 3.1.1 2023-04-16 13:41:08 +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
Brandon Liu
4b5c02acfd Merge pull request #154 from bmcbride/main
set blob type for leafletRasterLayer
2023-04-11 10:43:21 +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
Brandon Liu
54096b1b04 Merge pull request #152 from jamesscottbrown/patch-3
Delete unused definition of entry_zxy_cmp
2023-04-04 17:21:31 +02:00