diff --git a/landcover.mss b/landcover.mss index 1ad65c73e7..2d6dc13a3f 100644 --- a/landcover.mss +++ b/landcover.mss @@ -227,6 +227,22 @@ [way_pixels >= 64] { polygon-gamma: 0.3; } } + [feature = 'place_village'], + [feature = 'place_hamlet'][zoom >= 10] { + polygon-fill: @built-up-lower-lowzoom; + [zoom >= 11] { polygon-fill: @built-up-upper-lowzoom; } + [zoom >= 13] { polygon-fill: lighten(@residential, 30%); } + [zoom >= 16] { + line-width: .5; + line-color: lighten(@residential-line, 30%); + [name != ''] { + line-width: 0.7; + } + } + [way_pixels >= 4] { polygon-gamma: 0.75; } + [way_pixels >= 64] { polygon-gamma: 0.3; } + } + [feature = 'landuse_garages'][zoom >= 13] { polygon-fill: @garages; [way_pixels >= 4] { polygon-gamma: 0.75; } diff --git a/project.mml b/project.mml index efd482cd0a..e84dd1e5a2 100644 --- a/project.mml +++ b/project.mml @@ -135,6 +135,7 @@ Layer: 'allotments', 'forest', 'farmyard', 'farmland', 'greenhouse_horticulture', 'recreation_ground', 'village_green', 'retail', 'industrial', 'railway', 'commercial', 'brownfield', 'landfill', 'construction', 'plant_nursery') THEN landuse ELSE NULL END)) AS landuse, + ('place_' || (CASE WHEN place IN ('village', 'hamlet') THEN place ELSE NULL END)) AS place, ('leisure_' || (CASE WHEN leisure IN ('swimming_pool', 'playground', 'park', 'recreation_ground', 'common', 'garden', 'golf_course', 'miniature_golf', 'picnic_table', 'fitness_centre', 'sports_centre', 'stadium', 'pitch', 'track', 'dog_park') THEN leisure ELSE NULL END)) AS leisure, @@ -149,6 +150,7 @@ Layer: way_area/NULLIF(!pixel_width!::real*!pixel_height!::real,0) AS way_pixels FROM planet_osm_polygon WHERE (landuse IS NOT NULL + OR place IN ('village','hamlet') OR leisure IS NOT NULL OR aeroway IN ('apron', 'aerodrome') OR amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking', 'university', 'college', 'school', 'hospital', 'kindergarten', @@ -1905,7 +1907,7 @@ Layer: 'man_made_' || CASE WHEN man_made IN ('lighthouse', 'windmill', 'mast', 'water_tower', 'pier', 'breakwater', 'groyne', 'obelisk') THEN man_made ELSE NULL END, 'natural_' || CASE WHEN "natural" IN ('wood', 'water', 'mud', 'wetland', 'marsh', 'bay', 'spring', 'scree', 'shingle', 'bare_rock', 'sand', 'heath', 'grassland', 'scrub', 'beach', 'shoal', 'reef', 'glacier') THEN "natural" ELSE NULL END, - 'place_' || CASE WHEN place IN ('island', 'islet') THEN place ELSE NULL END, + 'place_' || CASE WHEN place IN ('island', 'islet', 'village', 'hamlet') THEN place ELSE NULL END, 'military_' || CASE WHEN military IN ('danger_area') THEN military ELSE NULL END, 'historic_' || CASE WHEN historic IN ('memorial', 'monument', 'archaeological_site') THEN concat_ws('_', historic, CASE WHEN tags->'memorial' IN ('plaque') THEN tags->'memorial' ELSE NULL END) @@ -1934,7 +1936,7 @@ Layer: OR landuse IS NOT NULL OR man_made IN ('lighthouse', 'windmill', 'mast', 'water_tower', 'pier', 'breakwater', 'groyne', 'obelisk') OR "natural" IS NOT NULL - OR place IN ('island', 'islet') + OR place IN ('island', 'islet', 'village', 'hamlet') OR military IN ('danger_area') OR historic IN ('memorial', 'monument', 'archaeological_site') OR tags->'memorial' IN ('plaque')