tileserver-gl 5.6.0-pre.3 → 5.6.0-pre.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,9 +7,13 @@
7
7
  ### 🐞 Bug fixes
8
8
  - _...Add new stuff here..._
9
9
 
10
- ## 5.6.0-pre.3
10
+ ## 5.6.0-pre.5
11
11
  ### ✨ Features and improvements
12
+ - Update Maplibre-Native to v6.4.0
13
+ - Remove Hillshade and Color relief workaround since it is now supported in maplibre-native ([#2044](https://github.com/maptiler/tileserver-gl/pull/2044)) (by [acalcutt](https://github.com/acalcutt))
12
14
  - feat: Add ignore-missing-files cli option to avoid crashing at startup ([#1896](https://github.com/maptiler/tileserver-gl/pull/1896)) (by [andrewlaguna824](https://github.com/andrewlaguna824))
15
+ - Add POST requests for static maps (fixes [#408](https://github.com/maptiler/tileserver-gl/issues/408)) ([#2064](https://github.com/maptiler/tileserver-gl/pull/2064)) (by [zstadler](https://github.com/zstadler))
16
+ - Add Native Leaflet Retina Support for Raster Tiles ([#2074](https://github.com/maptiler/tileserver-gl/pull/2074)) (by [acalcutt](https://github.com/acalcutt))
13
17
 
14
18
  ### 🐞 Bug fixes
15
19
  - fix: correctly handle public url in tileJSON response ([#1963](https://github.com/maptiler/tileserver-gl/pull/1963)) (by [andrewlaguna824](https://github.com/andrewlaguna824))
package/docs/config.rst CHANGED
@@ -175,6 +175,13 @@ If this option is enabled, all the styles from the ``paths.styles`` will be serv
175
175
  The process will also watch for changes in this directory and remove/add more styles dynamically.
176
176
  It is recommended to also use the ``serveAllFonts`` option when using this option.
177
177
 
178
+ ``leafletRetina``
179
+ ------------------------
180
+
181
+ If this option is enabled, the Leaflet raster map viewer will attempt to fetch high-resolution (Retina, ``@2x``) tiles for high-DPI displays.
182
+ Disable this if you want to reduce CPU/memory load and bandwidth when users are primarily utilizing the basic raster map viewer.
183
+ Default is ``false``.
184
+
178
185
  ``serveStaticMaps``
179
186
  ------------------------
180
187
 
@@ -86,6 +86,10 @@ Static images
86
86
 
87
87
  * ``maxzoom`` - Maximum zoom level (only for auto endpoint where zoom level is calculated and not provided)
88
88
 
89
+ * All the static image endpoints support parameters passing using POST with a JSON body:
90
+
91
+ * e.g. ``{"path": ["10,10|20,20", "10,20|20,10"]}`` is the equivalent of ``?path=10,10|20,20&path=10,20|20,10``
92
+
89
93
  * You can also use (experimental) ``/styles/{id}/static/raw/...`` endpoints with raw spherical mercator coordinates (EPSG:3857) instead of WGS84.
90
94
 
91
95
  * The static images are not available in the ``tileserver-gl-light`` version.
@@ -113,11 +117,6 @@ Source data
113
117
  * Request: ``{"points": [{"lon": 45.5, "lat": 45.5, "z": 1}, ...]}``
114
118
  * Response: ``[500, 200, null, ...]`` - array of elevations (or null if no data) in the same order as input
115
119
 
116
- * for batch requests, POST to ``/data/{id}/elevation`` with a JSON body:
117
-
118
- * Request: ``{"points": [{"lon": 45.5, "lat": 45.5, "z": 1}, ...]}``
119
- * Response: ``[500, 200, null, ...]`` - array of elevations (or null if no data) in the same order as input
120
-
121
120
  * The elevation api is not available in the ``tileserver-gl-light`` version.
122
121
 
123
122
  Static files
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tileserver-gl",
3
- "version": "5.6.0-pre.3",
3
+ "version": "5.6.0-pre.5",
4
4
  "description": "Map tile server for JSON GL styles - vector and server side generated raster tiles",
5
5
  "main": "src/main.js",
6
6
  "bin": {
@@ -37,19 +37,19 @@
37
37
  "docker": "docker build . && docker run --rm -i -p 8080:8080 $(docker build -q .)"
38
38
  },
39
39
  "dependencies": {
40
- "@aws-sdk/client-s3": "^3.997.0",
41
- "@jsse/pbfont": "^0.3.2",
42
- "@mapbox/mapbox-gl-rtl-text": "0.3.0",
40
+ "@aws-sdk/client-s3": "^3.1019.0",
41
+ "@jsse/pbfont": "^0.3.3",
42
+ "@mapbox/mapbox-gl-rtl-text": "0.4.0",
43
43
  "@mapbox/mbtiles": "0.12.1",
44
44
  "@mapbox/polyline": "^1.2.1",
45
45
  "@mapbox/sphericalmercator": "2.0.2",
46
46
  "@mapbox/vector-tile": "2.0.4",
47
47
  "@maplibre/maplibre-gl-inspect": "1.8.2",
48
- "@maplibre/maplibre-gl-native": "6.3.0",
49
- "@maplibre/maplibre-gl-style-spec": "24.5.0",
48
+ "@maplibre/maplibre-gl-native": "6.4.0",
49
+ "@maplibre/maplibre-gl-style-spec": "24.7.0",
50
50
  "@sindresorhus/fnv1a": "3.1.0",
51
51
  "advanced-pool": "0.3.3",
52
- "canvas": "3.2.1",
52
+ "canvas": "3.2.2",
53
53
  "chokidar": "5.0.0",
54
54
  "clone": "2.1.2",
55
55
  "color": "5.0.3",
@@ -57,33 +57,34 @@
57
57
  "copyfiles": "2.4.1",
58
58
  "cors": "2.8.6",
59
59
  "express": "5.2.1",
60
- "handlebars": "4.7.8",
60
+ "handlebars": "4.7.9",
61
61
  "http-shutdown": "1.2.2",
62
62
  "leaflet": "1.9.4",
63
63
  "leaflet-hash": "0.2.1",
64
- "maplibre-gl": "5.18.0",
64
+ "maplibre-gl": "5.21.1",
65
65
  "morgan": "1.10.1",
66
66
  "pbf": "4.0.1",
67
67
  "pmtiles": "4.4.0",
68
- "proj4": "2.20.2",
69
- "sanitize-filename": "1.6.3",
68
+ "proj4": "2.20.4",
69
+ "sanitize-filename": "1.6.4",
70
+ "secure-json-parse": "^4.1.0",
70
71
  "semver": "^7.7.4",
71
72
  "sharp": "0.34.5",
72
73
  "tileserver-gl-styles": "2.0.0"
73
74
  },
74
75
  "devDependencies": {
75
- "@commitlint/cli": "^20.4.2",
76
- "@commitlint/config-conventional": "^20.4.2",
77
- "@typescript-eslint/eslint-plugin": "^8.56.1",
78
- "@typescript-eslint/parser": "^8.56.1",
76
+ "@commitlint/cli": "^20.5.0",
77
+ "@commitlint/config-conventional": "^20.5.0",
78
+ "@typescript-eslint/eslint-plugin": "^8.57.2",
79
+ "@typescript-eslint/parser": "^8.57.1",
79
80
  "chai": "6.2.2",
80
81
  "cross-env": "^10.1.0",
81
82
  "eslint": "^9.39.2",
82
83
  "eslint-config-prettier": "^10.1.8",
83
- "eslint-plugin-jsdoc": "^62.7.1",
84
+ "eslint-plugin-jsdoc": "^62.8.1",
84
85
  "eslint-plugin-prettier": "^5.5.5",
85
- "eslint-plugin-security": "^3.0.1",
86
- "lint-staged": "^16.2.7",
86
+ "eslint-plugin-security": "^4.0.0",
87
+ "lint-staged": "^16.4.0",
87
88
  "mocha": "^11.7.5",
88
89
  "node-addon-api": "^8",
89
90
  "pixelmatch": "^7.1.0",