Skip to content

Commit

Permalink
Add retail color fill for shop=mall areas (#3790)
Browse files Browse the repository at this point in the history
* Add retail color fill for shop=mall areas

Do not rendering shop=mall fill when underground=yes

* Do not render name text label for underground malls
  • Loading branch information
jeisenbe authored and imagico committed Aug 22, 2019
1 parent 952d13d commit a40828e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -2369,7 +2369,7 @@
[feature = 'landuse_farmyard'],
[feature = 'landuse_farmland'],
[feature = 'landuse_greenhouse_horticulture'],
[feature = 'shop'][shop = 'mall'],
[feature = 'shop'][shop = 'mall'][location != 'underground'],
[feature = 'landuse_retail'],
[feature = 'landuse_industrial'],
[feature = 'landuse_railway'],
Expand Down
1 change: 1 addition & 0 deletions landcover.mss
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@
}

[feature = 'landuse_retail'],
[feature = 'shop_mall'],
[feature = 'amenity_marketplace'] {
[zoom >= 8] {
polygon-fill: @built-up-lowzoom;
Expand Down
4 changes: 3 additions & 1 deletion project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Layer:
table: |-
(SELECT
way, name, religion, way_pixels, is_building,
COALESCE(aeroway, amenity, wetland, power, landuse, leisure, man_made, "natural", tourism, highway, railway) AS feature
COALESCE(aeroway, amenity, wetland, power, landuse, leisure, man_made, "natural", shop, tourism, highway, railway) AS feature
FROM (SELECT
way, COALESCE(name, '') AS name,
('aeroway_' || (CASE WHEN aeroway IN ('apron', 'aerodrome') THEN aeroway ELSE NULL END)) AS aeroway,
Expand All @@ -104,6 +104,7 @@ Layer:
'allotments', 'forest', 'farmyard', 'farmland', 'greenhouse_horticulture',
'recreation_ground', 'village_green', 'retail', 'industrial', 'railway', 'commercial',
'brownfield', 'landfill', 'construction', 'plant_nursery', 'religious') THEN landuse ELSE NULL END)) AS landuse,
('shop_' || (CASE WHEN shop IN ('mall') AND (tags->'location' NOT IN ('underground') OR (tags->'location') IS NULL) THEN shop ELSE NULL END)) AS shop,
('leisure_' || (CASE WHEN leisure IN ('swimming_pool', 'playground', 'park', 'recreation_ground', 'garden',
'golf_course', 'miniature_golf', 'sports_centre', 'stadium', 'pitch', 'ice_rink',
'track', 'dog_park', 'fitness_station') THEN leisure ELSE NULL END)) AS leisure,
Expand All @@ -128,6 +129,7 @@ Layer:
OR man_made IN ('works', 'wastewater_plant','water_works')
OR "natural" IN ('beach', 'shoal', 'heath', 'mud', 'wetland', 'grassland', 'wood', 'sand', 'scree', 'shingle', 'bare_rock', 'scrub')
OR power IN ('station', 'sub_station', 'substation', 'generator')
OR shop IN ('mall')
OR tourism IN ('camp_site', 'caravan_site', 'picnic_site')
OR highway IN ('services', 'rest_area')
OR railway = 'station')
Expand Down

0 comments on commit a40828e

Please sign in to comment.