From e86f6bc51d246ba236ec70460454c187e64dc881 Mon Sep 17 00:00:00 2001 From: Lukas Sommer Date: Tue, 13 Dec 2016 20:54:19 +0000 Subject: [PATCH] Junctions on areas --- project.mml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/project.mml b/project.mml index e45372e2a3..77c317973a 100644 --- a/project.mml +++ b/project.mml @@ -1924,10 +1924,33 @@ Layer: highway, junction, ref, - name + name, + NULL AS way_pixels FROM planet_osm_point WHERE highway = 'motorway_junction' OR highway = 'traffic_signals' OR junction = 'yes' - ) AS junctions + UNION( + SELECT + ST_BuildArea(way), + highway, + junction, + ref, + name, + NULL AS way_pixels + FROM planet_osm_line + WHERE junction = 'yes' + UNION + SELECT + way, + highway, + junction, + ref, + name, + way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels + FROM planet_osm_polygon + WHERE junction = 'yes' + ORDER BY way_pixels DESC NULLS LAST + ) + ) AS junctions properties: minzoom: 11 advanced: {}