mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 05:13:58 +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,11 +173,11 @@ public:
|
|||||||
scales::PatchMaxDrawableScale(level)))
|
scales::PatchMaxDrawableScale(level)))
|
||||||
{
|
{
|
||||||
// Increment zoom level for coastline polygons (check and simplification)
|
// 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)?
|
/// @todo Probably, better to keep 3 zooms (skip trg0 with fallback to trg1)?
|
||||||
if (isCoast)
|
if (isCoast && (level <= 1))
|
||||||
{
|
{
|
||||||
if (level <= scales::GetUpperWorldScale())
|
// Effectively change simplification zooms to {5, 6, 7, 8} from {3, 5, 7, 9}
|
||||||
++level;
|
++level;
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
++level;
|
++level;
|
||||||
|
|||||||
Reference in New Issue
Block a user