From c9b8f6c2f13f1ff2c4bb6023a253d7fee0f2c067 Mon Sep 17 00:00:00 2001 From: kocio-pl Date: Tue, 8 May 2018 17:52:12 +0200 Subject: [PATCH] Adding rendering for amenity=police and amenity=fire_station areas (#3075) --- landcover.mss | 15 +++++++++++++++ project.mml | 6 +++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/landcover.mss b/landcover.mss index 99436b1e0c..03613a1227 100644 --- a/landcover.mss +++ b/landcover.mss @@ -543,6 +543,21 @@ } } + [feature = 'amenity_fire_station'][zoom >= 8][way_pixels > 900], + [feature = 'amenity_police'][zoom >= 8][way_pixels > 900], + [feature = 'amenity_fire_station'][zoom >= 13], + [feature = 'amenity_police'][zoom >= 13] { + polygon-fill: #F3E3DD; + line-color: @military; + line-opacity: 0.24; + line-width: 1.0; + line-offset: -0.5; + [zoom >= 15] { + line-width: 2; + line-offset: -1.0; + } + } + [feature = 'amenity_parking'][zoom >= 10], [feature = 'amenity_bicycle_parking'][zoom >= 10], [feature = 'amenity_motorcycle_parking'][zoom >= 10], diff --git a/project.mml b/project.mml index 5bff1bb811..8908c366f3 100644 --- a/project.mml +++ b/project.mml @@ -119,8 +119,8 @@ Layer: ('aeroway_' || (CASE WHEN aeroway IN ('apron', 'aerodrome') THEN aeroway ELSE NULL END)) AS aeroway, ('amenity_' || (CASE WHEN amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking', 'university', 'college', 'school', 'taxi', 'hospital', 'kindergarten', 'grave_yard', 'prison', 'place_of_worship', 'clinic', 'ferry_terminal', - 'marketplace', 'community_centre', 'social_facility', 'arts_centre', 'parking_space', 'bus_station') - THEN amenity ELSE NULL END)) AS amenity, + 'marketplace', 'community_centre', 'social_facility', 'arts_centre', 'parking_space', 'bus_station', + 'fire_station', 'police') THEN amenity ELSE NULL END)) AS amenity, ('landuse_' || (CASE WHEN landuse IN ('quarry', 'vineyard', 'orchard', 'cemetery', 'residential', 'garages', 'meadow', 'grass', 'allotments', 'forest', 'farmyard', 'farmland', 'greenhouse_horticulture', 'recreation_ground', 'village_green', 'retail', 'industrial', 'railway', 'commercial', @@ -144,7 +144,7 @@ Layer: OR aeroway IN ('apron', 'aerodrome') OR amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking', 'taxi', 'university', 'college', 'school', 'hospital', 'kindergarten', 'grave_yard', 'place_of_worship', 'prison', 'clinic', 'ferry_terminal', 'marketplace', 'community_centre', 'social_facility', - 'arts_centre', 'parking_space', 'bus_station') + 'arts_centre', 'parking_space', 'bus_station', 'fire_station', 'police') OR man_made IN ('works') OR military IN ('danger_area') OR "natural" IN ('beach', 'shoal', 'heath', 'mud', 'marsh', 'wetland', 'grassland', 'wood', 'sand', 'scree', 'shingle', 'bare_rock', 'scrub')