tileserver-gl-light 5.5.0-pre.0 → 5.5.0-pre.2
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 +5 -2
- package/docs/usage.rst +9 -1
- package/package.json +9 -9
- package/public/resources/maplibre-gl-inspect.js +2823 -2770
- package/public/resources/maplibre-gl-inspect.js.map +1 -1
- package/public/resources/maplibre-gl.css +1 -1
- package/public/resources/maplibre-gl.js +4 -4
- package/public/resources/maplibre-gl.js.map +1 -1
- package/src/main.js +16 -17
- package/src/pmtiles_adapter.js +3 -3
- package/src/promises.js +1 -1
- package/src/render.js +270 -93
- package/src/serve_data.js +6 -8
- package/src/serve_light.js +0 -1
- package/src/serve_rendered.js +372 -205
- package/src/server.js +22 -27
- package/src/utils.js +17 -18
- package/test/fixtures/visual/encoded-path-auto.png +0 -0
- package/test/fixtures/visual/linecap-linejoin-bevel-square.png +0 -0
- package/test/fixtures/visual/linecap-linejoin-round-round.png +0 -0
- package/test/fixtures/visual/path-auto.png +0 -0
- package/test/fixtures/visual/static-bbox.png +0 -0
- package/test/fixtures/visual/static-bearing-pitch.png +0 -0
- package/test/fixtures/visual/static-bearing.png +0 -0
- package/test/fixtures/visual/static-border-global.png +0 -0
- package/test/fixtures/visual/static-lat-lng.png +0 -0
- package/test/fixtures/visual/static-markers.png +0 -0
- package/test/fixtures/visual/static-multiple-paths.png +0 -0
- package/test/fixtures/visual/static-path-border-isolated.png +0 -0
- package/test/fixtures/visual/static-path-border-stroke.png +0 -0
- package/test/fixtures/visual/static-path-latlng.png +0 -0
- package/test/fixtures/visual/static-pixel-ratio-2x.png +0 -0
- package/test/static_images.js +241 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
# tileserver-gl changelog
|
|
2
2
|
|
|
3
|
-
## 5.5.0-pre.
|
|
4
|
-
*
|
|
3
|
+
## 5.5.0-pre.2
|
|
4
|
+
* Add S3 support for PMTiles with multiple AWS credential profiles (https://github.com/maptiler/tileserver-gl/pull/1779) by @acalcutt
|
|
5
|
+
* Create .aws directory passthrough folder in Dockerfile (https://github.com/maptiler/tileserver-gl/pull/1784) by @acalcutt
|
|
6
|
+
* Update eslint to v9 (https://github.com/maptiler/tileserver-gl/pull/1473) by @acalcutt
|
|
7
|
+
* Fix Renderer Crashes from Failed Fetches (https://github.com/maptiler/tileserver-gl/pull/1798) by @acalcutt
|
|
5
8
|
|
|
6
9
|
## 5.4.0
|
|
7
10
|
* Fix the issue where the tile URL cannot be correctly parsed with the HTTPS protocol when using an nginx proxy service (https://github.com/maptiler/tileserver-gl/pull/1578) by @dakanggo
|
package/docs/usage.rst
CHANGED
|
@@ -80,7 +80,15 @@ You can also use `pmtiles://` or `mbtiles://` prefixes to explicitly specify the
|
|
|
80
80
|
tileserver-gl --file mbtiles://./data/zurich.mbtiles
|
|
81
81
|
|
|
82
82
|
.. note::
|
|
83
|
-
|
|
83
|
+
For S3 sources, AWS credentials must be configured via environment variables, AWS credentials file (`~/.aws/credentials` on Linux/macOS or `C:\Users\USERNAME\.aws\credentials` on Windows), or IAM roles.
|
|
84
|
+
|
|
85
|
+
**When using Docker**, the host credentials file can be mounted to the container's user home directory:
|
|
86
|
+
|
|
87
|
+
::
|
|
88
|
+
|
|
89
|
+
docker run -v ~/.aws/credentials:/home/node/.aws/credentials:ro ... maptiler/tileserver-gl:latest
|
|
90
|
+
|
|
91
|
+
See the Configuration documentation for details on using AWS credential profiles.
|
|
84
92
|
|
|
85
93
|
Default preview style and configuration
|
|
86
94
|
======
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tileserver-gl-light",
|
|
3
|
-
"version": "5.5.0-pre.
|
|
3
|
+
"version": "5.5.0-pre.2",
|
|
4
4
|
"description": "Map tile server for JSON GL styles - serving vector tiles",
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"bin": "src/main.js",
|
|
@@ -24,28 +24,28 @@
|
|
|
24
24
|
"copy:leaflet-hash": "copyfiles -EVf node_modules/leaflet-hash/leaflet-hash.js public/resources/",
|
|
25
25
|
"test": "mocha test/**.js --timeout 10000 --exit",
|
|
26
26
|
"test-docker": "xvfb-run npm test",
|
|
27
|
+
"test:visual:generate": "cross-env GENERATE_FIXTURES=true mocha test/setup.js test/static_images.js --timeout 10000 --exit",
|
|
27
28
|
"lint:yml": "yamllint --schema=CORE_SCHEMA *.{yml,yaml}",
|
|
28
29
|
"lint:js": "npm run lint:eslint && npm run lint:prettier",
|
|
29
30
|
"lint:js:fix": "npm run lint:eslint:fix && npm run lint:prettier:fix",
|
|
30
|
-
"lint:eslint": "eslint \"{,!(node_modules|dist|static|public)/**/}*.{js,ts,cjs,mjs}\" --ignore-
|
|
31
|
-
"lint:eslint:fix": "eslint --fix \"{,!(node_modules|dist|static|public)/**/}*.{js,ts,cjs,mjs}\" --ignore-
|
|
31
|
+
"lint:eslint": "eslint \"{,!(node_modules|dist|static|public)/**/}*.{js,ts,cjs,mjs}\" --ignore-pattern '.gitignore'",
|
|
32
|
+
"lint:eslint:fix": "eslint --fix \"{,!(node_modules|dist|static|public)/**/}*.{js,ts,cjs,mjs}\" --ignore-pattern '.gitignore'",
|
|
32
33
|
"lint:prettier": "prettier --check \"{,!(node_modules|dist|static|public)/**/}*.{js,ts,cjs,mjs,json}\" --ignore-path .gitignore",
|
|
33
34
|
"lint:prettier:fix": "prettier --write \"{,!(node_modules|dist|static|public)/**/}*.{js,ts,cjs,mjs,json}\" --ignore-path .gitignore",
|
|
34
35
|
"docker": "docker build . && docker run --rm -i -p 8080:8080 $(docker build -q .)"
|
|
35
36
|
},
|
|
36
37
|
"dependencies": {
|
|
37
|
-
"@aws-sdk/client-s3": "^3.
|
|
38
|
+
"@aws-sdk/client-s3": "^3.927.0",
|
|
38
39
|
"@jsse/pbfont": "^0.3.0",
|
|
39
40
|
"@mapbox/mapbox-gl-rtl-text": "0.3.0",
|
|
40
41
|
"@mapbox/mbtiles": "0.12.1",
|
|
41
42
|
"@mapbox/polyline": "^1.2.1",
|
|
42
43
|
"@mapbox/sphericalmercator": "2.0.2",
|
|
43
44
|
"@mapbox/vector-tile": "2.0.4",
|
|
44
|
-
"@maplibre/maplibre-gl-inspect": "1.
|
|
45
|
-
"@maplibre/maplibre-gl-style-spec": "24.
|
|
45
|
+
"@maplibre/maplibre-gl-inspect": "1.8.0",
|
|
46
|
+
"@maplibre/maplibre-gl-style-spec": "24.3.1",
|
|
46
47
|
"@sindresorhus/fnv1a": "3.1.0",
|
|
47
48
|
"advanced-pool": "0.3.3",
|
|
48
|
-
"axios": "^1.13.1",
|
|
49
49
|
"chokidar": "4.0.3",
|
|
50
50
|
"clone": "2.1.2",
|
|
51
51
|
"color": "5.0.0",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"http-shutdown": "1.2.2",
|
|
58
58
|
"leaflet": "1.9.4",
|
|
59
59
|
"leaflet-hash": "0.2.1",
|
|
60
|
-
"maplibre-gl": "5.
|
|
60
|
+
"maplibre-gl": "5.11.0",
|
|
61
61
|
"morgan": "1.10.1",
|
|
62
62
|
"pbf": "4.0.1",
|
|
63
63
|
"pmtiles": "4.3.0",
|
|
64
64
|
"proj4": "2.19.10",
|
|
65
65
|
"sanitize-filename": "1.6.3",
|
|
66
|
-
"semver": "^7.7.
|
|
66
|
+
"semver": "^7.7.3",
|
|
67
67
|
"tileserver-gl-styles": "2.0.0"
|
|
68
68
|
},
|
|
69
69
|
"keywords": [
|