From 5a7c466483326eba8d50cf24bdb714820e70e23e Mon Sep 17 00:00:00 2001 From: Konstantin Pastbin Date: Thu, 4 Sep 2025 18:26:17 +0700 Subject: [PATCH] [generator] Reduce coastlines detalisation on World map z6-9 Signed-off-by: Konstantin Pastbin --- generator/feature_sorter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/generator/feature_sorter.cpp b/generator/feature_sorter.cpp index 7747cf427..35f6f0bf7 100644 --- a/generator/feature_sorter.cpp +++ b/generator/feature_sorter.cpp @@ -173,12 +173,12 @@ public: scales::PatchMaxDrawableScale(level))) { // Increment zoom level for coastline polygons (check and simplification) - // for better visual quality in the first geometry batch or whole WorldCoasts. + // to workaround visual artifacts on low zooms https://github.com/organicmaps/organicmaps/issues/2429 /// @todo Probably, better to keep 3 zooms (skip trg0 with fallback to trg1)? - if (isCoast) + if (isCoast && (level <= 1)) { - if (level <= scales::GetUpperWorldScale()) - ++level; + // Effectively change simplification zooms to {5, 6, 7, 8} from {3, 5, 7, 9} + ++level; if (i == 0) ++level; }