Skip to content

Commit

Permalink
Add natural=peninsula labels (#4778)
Browse files Browse the repository at this point in the history
* Show peninsula labels like island labels

* Render peninsulas like localities instead of like islands

* Drop peninsula label at low zooms

* Remove unneeded change per feedback
  • Loading branch information
quincylvania authored Feb 10, 2025
1 parent 4a9b5a6 commit fc3011c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -1614,7 +1614,7 @@ Layer:
'construction', 'salt_pond', 'military', 'plant_nursery') THEN landuse END,
'natural_' || CASE WHEN "natural" IN ('peak', 'volcano', 'saddle', 'cave_entrance') AND way_area IS NULL THEN "natural" END,
'natural_' || CASE WHEN "natural" IN ('wood', 'water', 'mud', 'wetland', 'bay', 'spring', 'scree', 'shingle', 'bare_rock', 'sand', 'heath',
'grassland', 'scrub', 'beach', 'glacier', 'tree', 'strait', 'cape', 'reef')
'grassland', 'scrub', 'beach', 'glacier', 'tree', 'strait', 'cape', 'reef', 'peninsula')
THEN "natural" END,
'mountain_pass' || CASE WHEN tags->'mountain_pass' IN ('yes') THEN '' END, -- after natural=saddle to give priority to that tag on the same node
'waterway_' || CASE WHEN "waterway" IN ('waterfall') AND way_area IS NULL THEN waterway END,
Expand Down
1 change: 1 addition & 0 deletions style/amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -1636,6 +1636,7 @@
text-halo-fill: @standard-halo-fill;
}

[feature = 'natural_peninsula'][zoom >= 16],
[feature = 'place_locality'][zoom >= 16] {
text-name: "[name]";
text-size: 10;
Expand Down

0 comments on commit fc3011c

Please sign in to comment.