From a281a68cbd8a501318a9b9ab84ec71ce44d86f1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Fri, 15 Sep 2023 23:28:55 +0200 Subject: [PATCH] Decreased map zoom level treshold to 80% There are evidently more maps that have bigger diferences in bounding box latitudes which lead to differnt resolutions for the same zoom level in Mercator projection than maps that would have zoom level differences < 20%. --- src/map/atlas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/atlas.cpp b/src/map/atlas.cpp index 25bf5422..b7fb3bbe 100644 --- a/src/map/atlas.cpp +++ b/src/map/atlas.cpp @@ -7,7 +7,7 @@ #include "atlas.h" -#define ZOOM_THRESHOLD 0.9 +#define ZOOM_THRESHOLD 0.8 #define TL(m) ((m)->xy2pp((m)->bounds().topLeft())) #define BR(m) ((m)->xy2pp((m)->bounds().bottomRight()))