Skip to content

Commit

Permalink
Check that name is not null before rendering tourism=attraction icon
Browse files Browse the repository at this point in the history
  • Loading branch information
jeisenbe committed Dec 29, 2018
1 parent 08575c7 commit 7d1f2bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -1728,7 +1728,7 @@
}
}

[feature = 'tourism_attraction'][zoom >= 17] {
[feature = 'tourism_attraction'][name != null][zoom >= 17] {
marker-file: url('symbols/square.svg');
marker-fill: @tourism;
marker-placement: interior;
Expand Down
2 changes: 2 additions & 0 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -2540,6 +2540,7 @@ Layer:
table: |-
(SELECT
way,
name,
COALESCE(
'highway_' || CASE WHEN highway IN ('mini_roundabout') THEN highway ELSE NULL END,
'railway_' || CASE WHEN railway IN ('level_crossing', 'crossing') THEN railway ELSE NULL END,
Expand Down Expand Up @@ -2573,6 +2574,7 @@ Layer:
table: |-
(SELECT
way,
name,
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,
Expand Down

0 comments on commit 7d1f2bd

Please sign in to comment.