-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Be more careful about the maxzoom in the mbtiles metadata table (#102)
* Stricter maxzoom standards for mbtiles uploads * Update eslint and all the things it now complains about * Revert "Update eslint and all the things it now complains about" This reverts commit 17bccfa. * Use outdated style in the interest of a small diff * Incorporate review feedback: * Use exceptions to detect invalid number formats * Use switch/case to distinguish queries * Try to clarify distinction between tiles maxzoom and metadata maxzoom * Turn an unused, supposedly correct, mbtiles fixture into a failing test * Fix test I just broke * Pare this down to the bare minimum and fix broken tests * Fix broken unit test * 4.7.0-dev1 * Update changelog and version number Co-authored-by: mapsam <[email protected]>
- Loading branch information
Showing
13 changed files
with
129 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 6 additions & 14 deletions
20
test/expected/valid.mbtiles.vector.info.json → ...xzoom_beyond_tiles_but_fillzoom.info.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,23 @@ | ||
{ | ||
"scheme": "tms", | ||
"basename": "valid-vector.mbtiles", | ||
"id": "valid-vector", | ||
"basename": "valid.vector-metadata-maxzoom-beyond-tiles-but-fillzoom.mbtiles", | ||
"id": "valid.vector-metadata-maxzoom-beyond-tiles-but-fillzoom", | ||
"filesize": 325632, | ||
"center": [ | ||
-80.947266, | ||
43.58039, | ||
4 | ||
], | ||
"center": [ -80.947266, 43.58039, 4 ], | ||
"description": "Unpacker test fixture", | ||
"maxzoom": 4, | ||
"minzoom": 0, | ||
"name": "test-fixture", | ||
"vector_layers": [ | ||
{ | ||
{ | ||
"id": "data", | ||
"description": "", | ||
"minzoom": 0, | ||
"maxzoom": 22 | ||
} | ||
], | ||
"bounds": [ | ||
-180, | ||
-85.051129, | ||
180, | ||
85.051128 | ||
], | ||
"fillzoom": "2", | ||
"bounds": [ -180, -85.051129, 180, 85.051128 ], | ||
"version": "1.0.0", | ||
"legend": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file added
BIN
+318 KB
test/fixtures/valid.vector-metadata-maxzoom-beyond-tiles-but-fillzoom.mbtiles
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters