tileserver-gl 4.10.3 → 4.11.0
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/.husky/commit-msg +0 -3
- package/.husky/pre-push +0 -3
- package/README.md +0 -1
- package/docs/endpoints.rst +1 -1
- package/package.json +16 -15
- package/public/resources/maplibre-gl-inspect.css +39 -39
- package/public/resources/maplibre-gl-inspect.js +2857 -0
- package/public/resources/maplibre-gl-inspect.js.map +1 -0
- package/public/resources/maplibre-gl.css +1 -1
- package/public/resources/maplibre-gl.js +33 -22
- package/public/resources/maplibre-gl.js.map +1 -1
- package/public/templates/data.tmpl +1 -2
- package/public/templates/viewer.tmpl +1 -2
- package/src/serve_rendered.js +21 -10
- package/src/serve_style.js +78 -50
- package/src/utils.js +34 -1
- package/test/style.js +10 -0
- package/public/resources/maplibre-gl-inspect.min.js +0 -1
package/.husky/commit-msg
CHANGED
package/.husky/pre-push
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
# TileServer GL
|
|
5
4
|
[](https://github.com/maptiler/tileserver-gl/actions/workflows/pipeline.yml)
|
|
6
5
|
[](https://hub.docker.com/r/maptiler/tileserver-gl/)
|
package/docs/endpoints.rst
CHANGED
|
@@ -8,7 +8,7 @@ Styles
|
|
|
8
8
|
======
|
|
9
9
|
* Styles are served at ``/styles/{id}/style.json`` (+ array at ``/styles.json``)
|
|
10
10
|
|
|
11
|
-
* Sprites at ``/styles/{id}/sprite[@2x].{format}``
|
|
11
|
+
* Sprites at ``/styles/{id}/sprite[/spriteID][@2x].{format}``
|
|
12
12
|
* Fonts at ``/fonts/{fontstack}/{start}-{end}.pbf``
|
|
13
13
|
|
|
14
14
|
Rendered tiles
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tileserver-gl",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.11.0",
|
|
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": "src/main.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"lint:prettier": "prettier --check \"{,!(node_modules|dist|static|public)/**/}*.{js,ts,cjs,mjs,json}\" --ignore-path .gitignore",
|
|
16
16
|
"lint:prettier:fix": "prettier --write \"{,!(node_modules|dist|static|public)/**/}*.{js,ts,cjs,mjs,json}\" --ignore-path .gitignore",
|
|
17
17
|
"docker": "docker build . && docker run --rm -i -p 8080:8080 $(docker build -q .)",
|
|
18
|
-
"prepare": "
|
|
18
|
+
"prepare": "is-ci || husky"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@mapbox/glyph-pbf-composite": "0.0.3",
|
|
@@ -23,43 +23,44 @@
|
|
|
23
23
|
"@mapbox/polyline": "^1.2.1",
|
|
24
24
|
"@mapbox/sphericalmercator": "1.2.0",
|
|
25
25
|
"@mapbox/vector-tile": "1.3.1",
|
|
26
|
-
"@maplibre/maplibre-gl-native": "5.
|
|
26
|
+
"@maplibre/maplibre-gl-native": "5.4.0",
|
|
27
27
|
"@maplibre/maplibre-gl-style-spec": "20.1.1",
|
|
28
28
|
"@sindresorhus/fnv1a": "3.1.0",
|
|
29
29
|
"advanced-pool": "0.3.3",
|
|
30
|
-
"axios": "^1.6.
|
|
30
|
+
"axios": "^1.6.8",
|
|
31
31
|
"canvas": "2.11.2",
|
|
32
32
|
"chokidar": "3.6.0",
|
|
33
33
|
"clone": "2.1.2",
|
|
34
34
|
"color": "4.2.3",
|
|
35
35
|
"commander": "12.0.0",
|
|
36
36
|
"cors": "2.8.5",
|
|
37
|
-
"express": "4.
|
|
37
|
+
"express": "4.19.2",
|
|
38
38
|
"handlebars": "4.7.8",
|
|
39
39
|
"http-shutdown": "1.2.2",
|
|
40
40
|
"morgan": "1.10.0",
|
|
41
41
|
"pbf": "3.2.1",
|
|
42
|
-
"pmtiles": "3.0.
|
|
43
|
-
"proj4": "2.
|
|
42
|
+
"pmtiles": "3.0.5",
|
|
43
|
+
"proj4": "2.11.0",
|
|
44
44
|
"sanitize-filename": "1.6.3",
|
|
45
|
-
"sharp": "0.33.
|
|
45
|
+
"sharp": "0.33.3",
|
|
46
46
|
"tileserver-gl-styles": "2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@commitlint/cli": "^
|
|
50
|
-
"@commitlint/config-conventional": "^
|
|
51
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
52
|
-
"@typescript-eslint/parser": "^
|
|
49
|
+
"@commitlint/cli": "^19.2.2",
|
|
50
|
+
"@commitlint/config-conventional": "^19.2.2",
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "^7.7.1",
|
|
52
|
+
"@typescript-eslint/parser": "^7.7.1",
|
|
53
53
|
"chai": "5.1.0",
|
|
54
54
|
"eslint": "^8.57.0",
|
|
55
55
|
"eslint-config-prettier": "^9.1.0",
|
|
56
|
-
"eslint-plugin-jsdoc": "^48.2.
|
|
56
|
+
"eslint-plugin-jsdoc": "^48.2.3",
|
|
57
57
|
"eslint-plugin-prettier": "^5.1.3",
|
|
58
58
|
"eslint-plugin-security": "^1.7.1",
|
|
59
59
|
"husky": "^9.0.11",
|
|
60
|
+
"is-ci": "^3.0.1",
|
|
60
61
|
"lint-staged": "^15.2.2",
|
|
61
|
-
"mocha": "^10.
|
|
62
|
-
"node-addon-api": "^
|
|
62
|
+
"mocha": "^10.4.0",
|
|
63
|
+
"node-addon-api": "^8",
|
|
63
64
|
"prettier": "^3.2.5",
|
|
64
65
|
"should": "^13.2.3",
|
|
65
66
|
"supertest": "^6.3.4",
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
.maplibregl-inspect_popup {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.maplibregl-inspect_feature:not(:last-child) {
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.maplibregl-inspect_layer:before {
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.maplibregl-inspect_layer {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.maplibregl-inspect_property {
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.maplibregl-inspect_property-value {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.maplibregl-inspect_property-name {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.maplibregl-ctrl-inspect {
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.maplibregl-ctrl-map {
|
|
39
|
-
|
|
40
|
-
}
|
|
2
|
+
color: #333;
|
|
3
|
+
display: table;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.maplibregl-inspect_feature:not(:last-child) {
|
|
7
|
+
border-bottom: 1px solid #ccc;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.maplibregl-inspect_layer:before {
|
|
11
|
+
content: '#';
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.maplibregl-inspect_layer {
|
|
15
|
+
display: block;
|
|
16
|
+
font-weight: bold;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.maplibregl-inspect_property {
|
|
20
|
+
display: table-row;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.maplibregl-inspect_property-value {
|
|
24
|
+
display: table-cell;
|
|
25
|
+
word-break: break-all;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.maplibregl-inspect_property-name {
|
|
29
|
+
display: table-cell;
|
|
30
|
+
padding-right: 10px;
|
|
31
|
+
word-break: break-all;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.maplibregl-ctrl-inspect {
|
|
35
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333333' preserveAspectRatio='xMidYMid meet' viewBox='-10 -10 60 60'%3E%3Cg%3E%3Cpath d='m15 21.6q0-2 1.5-3.5t3.5-1.5 3.5 1.5 1.5 3.5-1.5 3.6-3.5 1.4-3.5-1.4-1.5-3.6z m18.4 11.1l-6.4-6.5q1.4-2.1 1.4-4.6 0-3.4-2.5-5.8t-5.9-2.4-5.9 2.4-2.5 5.8 2.5 5.9 5.9 2.5q2.4 0 4.6-1.4l7.4 7.4q-0.9 0.6-2 0.6h-20q-1.3 0-2.3-0.9t-1.1-2.3l0.1-26.8q0-1.3 1-2.3t2.3-0.9h13.4l10 10v19.3z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.maplibregl-ctrl-map {
|
|
39
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333333' viewBox='-10 -10 60 60' preserveAspectRatio='xMidYMid meet'%3E%3Cg%3E%3Cpath d='m25 31.640000000000004v-19.766666666666673l-10-3.511666666666663v19.766666666666666z m9.140000000000008-26.640000000000004q0.8599999999999923 0 0.8599999999999923 0.8600000000000003v25.156666666666666q0 0.625-0.625 0.783333333333335l-9.375 3.1999999999999993-10-3.5133333333333354-8.906666666666668 3.4383333333333326-0.2333333333333334 0.07833333333333314q-0.8616666666666664 0-0.8616666666666664-0.8599999999999994v-25.156666666666663q0-0.625 0.6233333333333331-0.7833333333333332l9.378333333333334-3.198333333333334 10 3.5133333333333336 8.905000000000001-3.4383333333333344z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
|
|
40
|
+
}
|