@mapwhit/tileserver 3.7.1 → 3.7.3
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/lib/server.js +1 -1
- package/lib/tiles.js +2 -5
- package/package.json +2 -2
package/lib/server.js
CHANGED
package/lib/tiles.js
CHANGED
|
@@ -21,6 +21,7 @@ function serveData(mountPath, options, item) {
|
|
|
21
21
|
|
|
22
22
|
const filename = resolveFilename(options.paths.mbtiles, item.mbtiles);
|
|
23
23
|
const source = new mbtiles(filename);
|
|
24
|
+
// biome-ignore lint/correctness/noUnusedVariables: strip listed properties
|
|
24
25
|
const { filesize, mtime, scheme, tilejson, ...info } = source.getInfo();
|
|
25
26
|
Object.assign(tileJSON, info, item.tilejson);
|
|
26
27
|
fixTileJSONCenter(tileJSON);
|
|
@@ -32,7 +33,7 @@ function serveData(mountPath, options, item) {
|
|
|
32
33
|
router.get('/{.json}', sendData);
|
|
33
34
|
return { router, createTileJSON };
|
|
34
35
|
|
|
35
|
-
function checkParams(req,
|
|
36
|
+
function checkParams(req, _res, next) {
|
|
36
37
|
const z = req.params.z | 0;
|
|
37
38
|
const x = req.params.x | 0;
|
|
38
39
|
const y = req.params.y | 0;
|
|
@@ -108,10 +109,6 @@ function resolveFilename(dir, name) {
|
|
|
108
109
|
return filename;
|
|
109
110
|
}
|
|
110
111
|
|
|
111
|
-
function isGzipped(data) {
|
|
112
|
-
return data[0] === 0x1f && data[1] === 0x8b;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
112
|
function initZoomRanges(min, max) {
|
|
116
113
|
const ranges = [];
|
|
117
114
|
let value = 2 ** min;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapwhit/tileserver",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.3",
|
|
4
4
|
"description": "Map tile server for JSON GL styles - serving vector tiles",
|
|
5
5
|
"bin": {
|
|
6
6
|
"tileserver": "bin/tileserver",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"server-timings": "~2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@biomejs/biome": "
|
|
31
|
+
"@biomejs/biome": "2.1.2"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"index.js",
|