From c98d93a92371b0e88efab4d0adbb00eacd30bd5d Mon Sep 17 00:00:00 2001 From: jeisenbe Date: Tue, 24 Sep 2019 21:45:11 +0900 Subject: [PATCH] Add way && !bbox! condition --- project.mml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project.mml b/project.mml index 9f2004393b..5509d23cb4 100644 --- a/project.mml +++ b/project.mml @@ -2085,7 +2085,7 @@ Layer: tags->'addr:unit' AS addr_unit, way_area/NULLIF(POW(!scale_denominator!*0.001*0.28,2),0) AS way_pixels FROM planet_osm_polygon - WHERE (("addr:housenumber" IS NOT NULL) OR ("addr:housename" IS NOT NULL) OR ((tags->'addr:unit') IS NOT NULL)) + WHERE way && !bbox! AND (("addr:housenumber" IS NOT NULL) OR ("addr:housename" IS NOT NULL) OR ((tags->'addr:unit') IS NOT NULL)) AND building IS NOT NULL UNION ALL SELECT @@ -2095,7 +2095,7 @@ Layer: tags->'addr:unit' AS addr_unit, NULL AS way_pixels FROM planet_osm_point - WHERE ("addr:housenumber" IS NOT NULL) OR ("addr:housename" IS NOT NULL) OR ((tags->'addr:unit') IS NOT NULL) + WHERE way && !bbox! AND ("addr:housenumber" IS NOT NULL) OR ("addr:housename" IS NOT NULL) OR ((tags->'addr:unit') IS NOT NULL) ORDER BY way_pixels DESC NULLS LAST ) AS addresses properties: