From 168e8300c0e973d12272a3b9501cac34acf36ba1 Mon Sep 17 00:00:00 2001 From: Brian Sperlongano Date: Mon, 16 Jan 2023 05:33:43 -0500 Subject: [PATCH] Allow lakelines at native sizes (#1475) This PR reduces the minimum lake line zoom to z3, allowing the largest lakes to show a renderable label. The lakeline function is restricted by the LineLabel() function, which limits lakelines to only those that are big enough to render a text label. Therefore, further restricting lakelines by zoom is not necessary. --- layers/water_name/water_name.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/water_name/water_name.sql b/layers/water_name/water_name.sql index f10dafa7..748b3904 100644 --- a/layers/water_name/water_name.sql +++ b/layers/water_name/water_name.sql @@ -31,7 +31,7 @@ SELECT is_intermittent::int AS intermittent FROM osm_water_lakeline WHERE geometry && bbox - AND ((zoom_level BETWEEN 9 AND 13 AND LineLabel(zoom_level, NULLIF(name, ''), geometry)) + AND ((zoom_level BETWEEN 3 AND 13 AND LineLabel(zoom_level, NULLIF(name, ''), geometry)) OR (zoom_level >= 14)) UNION ALL SELECT