mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[generator] Reduce coastlines detalisation on World map z6-9
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user