mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-06 10:25:41 +02:00
Make sure not to shift away the extra detail from coordinates
This commit is contained in:
@@ -3266,12 +3266,16 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
geometry_scale = 32 - (full_detail + maxzoom);
|
if (additional[A_EXTRA_DETAIL]) {
|
||||||
if (geometry_scale < 0) {
|
|
||||||
geometry_scale = 0;
|
geometry_scale = 0;
|
||||||
if (!guess_maxzoom) {
|
} else {
|
||||||
// This shouldn't be able to happen any more. Can it still?
|
geometry_scale = 32 - (full_detail + maxzoom);
|
||||||
fprintf(stderr, "Full detail + maxzoom > 32, so you are asking for more detail than is available.\n");
|
if (geometry_scale < 0) {
|
||||||
|
geometry_scale = 0;
|
||||||
|
if (!guess_maxzoom) {
|
||||||
|
// This shouldn't be able to happen any more. Can it still?
|
||||||
|
fprintf(stderr, "Full detail + maxzoom > 32, so you are asking for more detail than is available.\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user