From cf219c1e092cb7fbb784c43706d97096598937fe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20de=20Metz?= <francois@2metz.fr>
Date: Mon, 15 Jul 2019 23:45:16 +0200
Subject: [PATCH] Include only polygons and multipolygons highways on zoom >=
 13.

---
 layers/transportation/layer.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/layers/transportation/layer.sql b/layers/transportation/layer.sql
index 561f6110..969bb4f0 100644
--- a/layers/transportation/layer.sql
+++ b/layers/transportation/layer.sql
@@ -366,7 +366,7 @@ indoor INT, bicycle TEXT, foot TEXT, horse TEXT, mtb_scale TEXT, surface TEXT) A
         WHERE zoom_level >= 13
             AND (
                   man_made IN ('bridge', 'pier')
-                  OR (is_area AND COALESCE(layer, 0) >= 0)
+                  OR (ST_GeometryType(geometry) IN ('ST_Polygon','ST_MultiPolygon') AND COALESCE(layer, 0) >= 0)
             )
     ) AS zoom_levels
     WHERE geometry && bbox