Skip to content

Commit

Permalink
Render leisure=dance
Browse files Browse the repository at this point in the history
  • Loading branch information
wyskoj committed Jul 29, 2024
1 parent 23b1cfa commit ad9670b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,7 @@ Layer:
'advertising_' || CASE WHEN tags->'advertising' in ('column') THEN tags->'advertising' END,
'emergency_' || CASE WHEN tags->'emergency' IN ('phone') AND way_area IS NULL THEN tags->'emergency' END,
'shop' || CASE WHEN shop IN ('yes', 'no', 'vacant', 'closed', 'disused', 'empty') OR shop IS NULL THEN NULL ELSE '' END,
'leisure_' || CASE WHEN leisure IN ('amusement_arcade', 'beach_resort', 'bird_hide', 'bowling_alley', 'dog_park', 'firepit', 'fishing',
'leisure_' || CASE WHEN leisure IN ('amusement_arcade', 'beach_resort', 'bird_hide', 'bowling_alley', 'dance', 'dog_park', 'firepit', 'fishing',
'fitness_centre', 'fitness_station', 'garden', 'golf_course', 'ice_rink', 'marina', 'miniature_golf',
'outdoor_seating', 'park', 'picnic_table', 'pitch', 'playground',
'sauna', 'slipway', 'sports_centre', 'stadium', 'swimming_area', 'swimming_pool', 'track', 'water_park') THEN leisure END,
Expand Down
9 changes: 8 additions & 1 deletion style/amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -1341,6 +1341,12 @@
marker-clip: false;
}

[feature = 'leisure_dance'][zoom >= 17] {
marker-file: url('symbols/leisure/dance.svg');
marker-fill: @leisure-green;
marker-clip: false;
}

// Slipway tagging on points - slipway on lines is defined later
[feature = 'leisure_slipway'][zoom >= 17] {
marker-file: url('symbols/leisure/slipway.svg');
Expand Down Expand Up @@ -1720,7 +1726,8 @@
text-halo-fill: @standard-halo-fill;
}

[feature = 'leisure_sauna'][zoom >= 17] {
[feature = 'leisure_sauna'][zoom >= 17],
[feature = 'leisure_dance'][zoom >= 17] {
text-name: "[name]";
text-size: @standard-font-size;
text-wrap-width: @standard-wrap-width;
Expand Down
3 changes: 3 additions & 0 deletions symbols/leisure/dance.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 ad9670b

Please sign in to comment.