Skip to content

Commit

Permalink
Add icons for noaccess trailheads, ranger stations, and ferries
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Dec 13, 2024
1 parent 04e5c6b commit 7cc0b35
Show file tree
Hide file tree
Showing 9 changed files with 82 additions and 8 deletions.
18 changes: 15 additions & 3 deletions js/styleGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -1112,9 +1112,21 @@ async function generateStyle(travelMode, lens) {
let showHazards = travelMode === "canoe";
return [
"case",
["==", ["get", "route"], "ferry"], ["image", "ferry"],
["==", ["get", "amenity"], "ranger_station"], ["image", "ranger_station"],
["==", ["get", "highway"], "trailhead"], ["image", "trailhead"],
["==", ["get", "route"], "ferry"], [
"case",
["in", ["get", "access"], ["literal", ["no", "private", "discouraged"]]], ["image", "ferry-noaccess"],
["image", "ferry"],
],
["==", ["get", "amenity"], "ranger_station"], [
"case",
["in", ["get", "access"], ["literal", ["no", "private", "discouraged"]]], ["image", "ranger_station-noaccess"],
["image", "ranger_station"],
],
["==", ["get", "highway"], "trailhead"], [
"case",
["in", ["get", "access"], ["literal", ["no", "private", "discouraged"]]], ["image", "trailhead-noaccess"],
["image", "trailhead"],
],
["==", ["get", "man_made"], "cairn"], ["image", "cairn"],
["==", ["get", "information"], "guidepost"], ["image", "guidepost"],
["==", ["get", "information"], "route_marker"], ["image", "route_marker"],
Expand Down
2 changes: 1 addition & 1 deletion style/sprites/opentrailmap.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"arrow-left":{"height":15,"pixelRatio":1,"width":23,"x":173,"y":0},"arrow-right":{"height":15,"pixelRatio":1,"width":23,"x":164,"y":59},"arrows-leftright":{"height":15,"pixelRatio":1,"width":33,"x":128,"y":24},"beaver_dam":{"height":23,"pixelRatio":1,"width":21,"x":152,"y":0},"beaver_dam-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":25,"y":96},"beaver_dam-hazard":{"height":24,"pixelRatio":1,"width":24,"x":32,"y":0},"cairn":{"height":24,"pixelRatio":1,"width":18,"x":128,"y":59},"campground":{"height":24,"pixelRatio":1,"width":24,"x":32,"y":24},"campground-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":32,"y":48},"campsite":{"height":20,"pixelRatio":1,"width":24,"x":128,"y":39},"canoe":{"height":24,"pixelRatio":1,"width":24,"x":32,"y":72},"canoe-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":49,"y":96},"caravan_site":{"height":24,"pixelRatio":1,"width":24,"x":56,"y":0},"caravan_site-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":56,"y":24},"dam":{"height":18,"pixelRatio":1,"width":18,"x":172,"y":39},"dam-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":56,"y":48},"dam-hazard":{"height":24,"pixelRatio":1,"width":24,"x":56,"y":72},"disallowed-stripes":{"height":6,"pixelRatio":1,"width":7,"x":128,"y":83},"ferry":{"height":24,"pixelRatio":1,"width":24,"x":73,"y":96},"guidepost":{"height":24,"pixelRatio":1,"width":18,"x":145,"y":83},"lean_to":{"height":20,"pixelRatio":1,"width":18,"x":163,"y":83},"lock":{"height":23,"pixelRatio":1,"width":14,"x":167,"y":103},"lock-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":80,"y":0},"lock-hazard":{"height":24,"pixelRatio":1,"width":24,"x":80,"y":24},"nature_reserve":{"height":32,"pixelRatio":1,"width":32,"x":0,"y":0},"park":{"height":32,"pixelRatio":1,"width":32,"x":0,"y":32},"peak":{"height":18,"pixelRatio":1,"width":22,"x":145,"y":107},"protected_area":{"height":32,"pixelRatio":1,"width":32,"x":0,"y":64},"question":{"height":24,"pixelRatio":1,"width":24,"x":80,"y":48},"ranger_station":{"height":25,"pixelRatio":1,"width":25,"x":0,"y":96},"restricted-zone":{"height":4,"pixelRatio":1,"width":4,"x":163,"y":103},"route_marker":{"height":24,"pixelRatio":1,"width":18,"x":146,"y":59},"slipway-canoe":{"height":24,"pixelRatio":1,"width":24,"x":80,"y":72},"slipway-canoe-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":97,"y":96},"slipway-canoe-trailer":{"height":24,"pixelRatio":1,"width":24,"x":104,"y":0},"slipway-canoe-trailer-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":104,"y":24},"streamgage":{"height":24,"pixelRatio":1,"width":24,"x":104,"y":48},"trailhead":{"height":24,"pixelRatio":1,"width":24,"x":104,"y":72},"viewpoint":{"height":16,"pixelRatio":1,"width":22,"x":161,"y":23},"waterfall":{"height":20,"pixelRatio":1,"width":20,"x":152,"y":39},"waterfall-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":121,"y":96},"waterfall-hazard":{"height":24,"pixelRatio":1,"width":24,"x":128,"y":0}}
{"arrow-left":{"height":15,"pixelRatio":1,"width":23,"x":166,"y":111},"arrow-right":{"height":15,"pixelRatio":1,"width":23,"x":170,"y":67},"arrows-leftright":{"height":15,"pixelRatio":1,"width":33,"x":144,"y":96},"beaver_dam":{"height":23,"pixelRatio":1,"width":21,"x":152,"y":0},"beaver_dam-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":0,"y":96},"beaver_dam-hazard":{"height":24,"pixelRatio":1,"width":24,"x":24,"y":96},"cairn":{"height":24,"pixelRatio":1,"width":18,"x":152,"y":43},"campground":{"height":24,"pixelRatio":1,"width":24,"x":32,"y":0},"campground-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":32,"y":24},"campsite":{"height":20,"pixelRatio":1,"width":24,"x":152,"y":23},"canoe":{"height":24,"pixelRatio":1,"width":24,"x":32,"y":48},"canoe-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":32,"y":72},"caravan_site":{"height":24,"pixelRatio":1,"width":24,"x":48,"y":96},"caravan_site-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":56,"y":0},"dam":{"height":18,"pixelRatio":1,"width":18,"x":198,"y":20},"dam-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":56,"y":24},"dam-hazard":{"height":24,"pixelRatio":1,"width":24,"x":56,"y":48},"disallowed-stripes":{"height":6,"pixelRatio":1,"width":7,"x":188,"y":61},"ferry":{"height":24,"pixelRatio":1,"width":24,"x":56,"y":72},"ferry-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":72,"y":96},"guidepost":{"height":24,"pixelRatio":1,"width":18,"x":152,"y":67},"lean_to":{"height":20,"pixelRatio":1,"width":18,"x":193,"y":0},"lock":{"height":23,"pixelRatio":1,"width":14,"x":188,"y":38},"lock-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":80,"y":0},"lock-hazard":{"height":24,"pixelRatio":1,"width":24,"x":80,"y":24},"nature_reserve":{"height":32,"pixelRatio":1,"width":32,"x":0,"y":0},"park":{"height":32,"pixelRatio":1,"width":32,"x":0,"y":32},"peak":{"height":18,"pixelRatio":1,"width":22,"x":176,"y":20},"protected_area":{"height":32,"pixelRatio":1,"width":32,"x":0,"y":64},"question":{"height":24,"pixelRatio":1,"width":24,"x":80,"y":48},"ranger_station":{"height":24,"pixelRatio":1,"width":24,"x":80,"y":72},"ranger_station-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":96,"y":96},"restricted-zone":{"height":4,"pixelRatio":1,"width":4,"x":176,"y":38},"route_marker":{"height":24,"pixelRatio":1,"width":18,"x":170,"y":43},"slipway-canoe":{"height":24,"pixelRatio":1,"width":24,"x":104,"y":0},"slipway-canoe-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":104,"y":24},"slipway-canoe-trailer":{"height":24,"pixelRatio":1,"width":24,"x":104,"y":48},"slipway-canoe-trailer-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":104,"y":72},"streamgage":{"height":24,"pixelRatio":1,"width":24,"x":120,"y":96},"trailhead":{"height":24,"pixelRatio":1,"width":24,"x":128,"y":0},"trailhead-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":128,"y":24},"viewpoint":{"height":16,"pixelRatio":1,"width":22,"x":144,"y":111},"waterfall":{"height":20,"pixelRatio":1,"width":20,"x":173,"y":0},"waterfall-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":128,"y":48},"waterfall-hazard":{"height":24,"pixelRatio":1,"width":24,"x":128,"y":72}}
Binary file modified style/sprites/opentrailmap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion style/sprites/[email protected]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"arrow-left":{"height":30,"pixelRatio":2,"width":46,"x":346,"y":0},"arrow-right":{"height":30,"pixelRatio":2,"width":46,"x":328,"y":118},"arrows-leftright":{"height":30,"pixelRatio":2,"width":66,"x":256,"y":48},"beaver_dam":{"height":46,"pixelRatio":2,"width":42,"x":304,"y":0},"beaver_dam-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":50,"y":192},"beaver_dam-hazard":{"height":48,"pixelRatio":2,"width":48,"x":64,"y":0},"cairn":{"height":48,"pixelRatio":2,"width":36,"x":256,"y":118},"campground":{"height":48,"pixelRatio":2,"width":48,"x":64,"y":48},"campground-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":64,"y":96},"campsite":{"height":40,"pixelRatio":2,"width":48,"x":256,"y":78},"canoe":{"height":48,"pixelRatio":2,"width":48,"x":64,"y":144},"canoe-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":98,"y":192},"caravan_site":{"height":48,"pixelRatio":2,"width":48,"x":112,"y":0},"caravan_site-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":112,"y":48},"dam":{"height":36,"pixelRatio":2,"width":36,"x":344,"y":78},"dam-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":112,"y":96},"dam-hazard":{"height":48,"pixelRatio":2,"width":48,"x":112,"y":144},"disallowed-stripes":{"height":12,"pixelRatio":2,"width":14,"x":256,"y":166},"ferry":{"height":48,"pixelRatio":2,"width":48,"x":146,"y":192},"guidepost":{"height":48,"pixelRatio":2,"width":36,"x":290,"y":166},"lean_to":{"height":40,"pixelRatio":2,"width":36,"x":326,"y":166},"lock":{"height":46,"pixelRatio":2,"width":28,"x":334,"y":206},"lock-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":160,"y":0},"lock-hazard":{"height":48,"pixelRatio":2,"width":48,"x":160,"y":48},"nature_reserve":{"height":64,"pixelRatio":2,"width":64,"x":0,"y":0},"park":{"height":64,"pixelRatio":2,"width":64,"x":0,"y":64},"peak":{"height":36,"pixelRatio":2,"width":44,"x":290,"y":214},"protected_area":{"height":64,"pixelRatio":2,"width":64,"x":0,"y":128},"question":{"height":48,"pixelRatio":2,"width":48,"x":160,"y":96},"ranger_station":{"height":50,"pixelRatio":2,"width":50,"x":0,"y":192},"restricted-zone":{"height":8,"pixelRatio":2,"width":8,"x":326,"y":206},"route_marker":{"height":48,"pixelRatio":2,"width":36,"x":292,"y":118},"slipway-canoe":{"height":48,"pixelRatio":2,"width":48,"x":160,"y":144},"slipway-canoe-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":194,"y":192},"slipway-canoe-trailer":{"height":48,"pixelRatio":2,"width":48,"x":208,"y":0},"slipway-canoe-trailer-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":208,"y":48},"streamgage":{"height":48,"pixelRatio":2,"width":48,"x":208,"y":96},"trailhead":{"height":48,"pixelRatio":2,"width":48,"x":208,"y":144},"viewpoint":{"height":32,"pixelRatio":2,"width":44,"x":322,"y":46},"waterfall":{"height":40,"pixelRatio":2,"width":40,"x":304,"y":78},"waterfall-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":242,"y":192},"waterfall-hazard":{"height":48,"pixelRatio":2,"width":48,"x":256,"y":0}}
{"arrow-left":{"height":30,"pixelRatio":2,"width":46,"x":332,"y":222},"arrow-right":{"height":30,"pixelRatio":2,"width":46,"x":340,"y":134},"arrows-leftright":{"height":30,"pixelRatio":2,"width":66,"x":288,"y":192},"beaver_dam":{"height":46,"pixelRatio":2,"width":42,"x":304,"y":0},"beaver_dam-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":0,"y":192},"beaver_dam-hazard":{"height":48,"pixelRatio":2,"width":48,"x":48,"y":192},"cairn":{"height":48,"pixelRatio":2,"width":36,"x":304,"y":86},"campground":{"height":48,"pixelRatio":2,"width":48,"x":64,"y":0},"campground-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":64,"y":48},"campsite":{"height":40,"pixelRatio":2,"width":48,"x":304,"y":46},"canoe":{"height":48,"pixelRatio":2,"width":48,"x":64,"y":96},"canoe-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":64,"y":144},"caravan_site":{"height":48,"pixelRatio":2,"width":48,"x":96,"y":192},"caravan_site-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":112,"y":0},"dam":{"height":36,"pixelRatio":2,"width":36,"x":396,"y":40},"dam-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":112,"y":48},"dam-hazard":{"height":48,"pixelRatio":2,"width":48,"x":112,"y":96},"disallowed-stripes":{"height":12,"pixelRatio":2,"width":14,"x":376,"y":122},"ferry":{"height":48,"pixelRatio":2,"width":48,"x":112,"y":144},"ferry-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":144,"y":192},"guidepost":{"height":48,"pixelRatio":2,"width":36,"x":304,"y":134},"lean_to":{"height":40,"pixelRatio":2,"width":36,"x":386,"y":0},"lock":{"height":46,"pixelRatio":2,"width":28,"x":376,"y":76},"lock-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":160,"y":0},"lock-hazard":{"height":48,"pixelRatio":2,"width":48,"x":160,"y":48},"nature_reserve":{"height":64,"pixelRatio":2,"width":64,"x":0,"y":0},"park":{"height":64,"pixelRatio":2,"width":64,"x":0,"y":64},"peak":{"height":36,"pixelRatio":2,"width":44,"x":352,"y":40},"protected_area":{"height":64,"pixelRatio":2,"width":64,"x":0,"y":128},"question":{"height":48,"pixelRatio":2,"width":48,"x":160,"y":96},"ranger_station":{"height":48,"pixelRatio":2,"width":48,"x":160,"y":144},"ranger_station-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":192,"y":192},"restricted-zone":{"height":8,"pixelRatio":2,"width":8,"x":352,"y":76},"route_marker":{"height":48,"pixelRatio":2,"width":36,"x":340,"y":86},"slipway-canoe":{"height":48,"pixelRatio":2,"width":48,"x":208,"y":0},"slipway-canoe-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":208,"y":48},"slipway-canoe-trailer":{"height":48,"pixelRatio":2,"width":48,"x":208,"y":96},"slipway-canoe-trailer-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":208,"y":144},"streamgage":{"height":48,"pixelRatio":2,"width":48,"x":240,"y":192},"trailhead":{"height":48,"pixelRatio":2,"width":48,"x":256,"y":0},"trailhead-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":256,"y":48},"viewpoint":{"height":32,"pixelRatio":2,"width":44,"x":288,"y":222},"waterfall":{"height":40,"pixelRatio":2,"width":40,"x":346,"y":0},"waterfall-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":256,"y":96},"waterfall-hazard":{"height":48,"pixelRatio":2,"width":48,"x":256,"y":144}}
Binary file modified style/sprites/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions style/sprites/svg/ferry-noaccess.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions style/sprites/svg/ranger_station-noaccess.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions style/sprites/svg/ranger_station.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 7cc0b35

Please sign in to comment.