Skip to content

Commit

Permalink
toll booth symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
sommerluk committed Jan 28, 2018
1 parent a5a2484 commit ebf4655
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 3 deletions.
7 changes: 7 additions & 0 deletions amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,13 @@
}
}

[feature = 'barrier_toll_booth'][zoom >= 16] {
marker-file: url('symbols/toll_booth.svg');
marker-placement: interior;
marker-clip: false;
marker-fill: @transportation-icon;
}

[feature = 'railway_level_crossing'][zoom >= 14]::railway,
[feature = 'railway_crossing'][zoom >= 15]::railway{
point-file: url('symbols/level_crossing.svg');
Expand Down
26 changes: 23 additions & 3 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -2318,7 +2318,7 @@ Layer:
'amenity_' || CASE WHEN amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking', 'bench', 'waste_basket') THEN amenity ELSE NULL END,
'historic_' || CASE WHEN historic IN ('wayside_cross') 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') THEN barrier ELSE NULL END
'barrier_' || CASE WHEN barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'toll_booth') THEN barrier ELSE NULL END
) AS feature,
access,
CASE WHEN amenity='waste_basket' THEN 2 ELSE 1 END AS prio
Expand All @@ -2328,11 +2328,31 @@ Layer:
OR amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking', 'bench', 'waste_basket')
OR historic IN ('wayside_cross')
OR man_made IN ('cross')
OR barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block')
OR barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'toll_booth')
ORDER BY prio
) AS amenity_low_priority
properties:
minzoom: 14
- id: amenity-low-priority-line
class: amenity-low-priority
geometry: linestring
<<: *extents
Datasource:
<<: *osm2pgsql
table: |-
(SELECT
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') THEN barrier ELSE NULL END
) AS feature,
access
FROM planet_osm_line p
WHERE amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking')
OR barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'toll_booth')
) AS amenity_low_priority_line
properties:
minzoom: 14
- id: amenity-low-priority-poly
class: amenity-low-priority
geometry: polygon
Expand All @@ -2349,7 +2369,7 @@ Layer:
access
FROM planet_osm_polygon p
WHERE amenity IN ('parking', 'bicycle_parking', 'motorcycle_parking')
OR barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block')
OR barrier IN ('bollard', 'gate', 'lift_gate', 'swing_gate', 'block', 'toll_booth')
) AS amenity_low_priority_poly
properties:
minzoom: 14
32 changes: 32 additions & 0 deletions symbols/toll_booth.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ebf4655

Please sign in to comment.