Skip to content

Commit

Permalink
Remove unnecessary lines from amenity_low_priority layers
Browse files Browse the repository at this point in the history
Since no icon will be rendered for tourism_attraction, it is not necessary to have the feature in these two layers now.
  • Loading branch information
jeisenbe committed Dec 30, 2018
1 parent 2309507 commit e86c53b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -2547,8 +2547,7 @@ Layer:
'waste_basket', 'waste_disposal') THEN amenity ELSE NULL END,
'historic_' || CASE WHEN historic IN ('wayside_cross', 'wayside_shrine') THEN historic ELSE NULL END,
'man_made_' || CASE WHEN man_made IN ('cross') THEN man_made ELSE NULL END,
'barrier_' || CASE WHEN barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'log', 'cattle_grid', 'stile') THEN barrier ELSE NULL END,
'tourism_' || CASE WHEN tourism IN ('attraction') THEN tourism ELSE NULL END
'barrier_' || CASE WHEN barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'log', 'cattle_grid', 'stile') THEN barrier ELSE NULL END
) AS feature,
access,
CASE WHEN amenity IN ('waste_basket', 'waste_disposal') OR tourism IN ('attraction') THEN 2 ELSE 1 END AS prio
Expand All @@ -2559,7 +2558,6 @@ Layer:
OR historic IN ('wayside_cross', 'wayside_shrine')
OR man_made IN ('cross')
OR barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'log', 'cattle_grid', 'stile')
OR tourism IN ('attraction')
ORDER BY prio
) AS amenity_low_priority
properties:
Expand All @@ -2575,14 +2573,12 @@ Layer:
way,
COALESCE(
'amenity_' || CASE WHEN amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking') THEN amenity ELSE NULL END,
'barrier_' || CASE WHEN barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'log', 'cattle_grid', 'stile') THEN barrier ELSE NULL END,
'tourism_' || CASE WHEN tourism IN ('attraction') THEN tourism ELSE NULL END
'barrier_' || CASE WHEN barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'log', 'cattle_grid', 'stile') THEN barrier ELSE NULL END
) AS feature,
access
FROM planet_osm_polygon p
WHERE amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking')
OR barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'log', 'cattle_grid', 'stile')
OR tourism IN ('attraction')
) AS amenity_low_priority_poly
properties:
minzoom: 14

0 comments on commit e86c53b

Please sign in to comment.