Skip to content

Commit

Permalink
Add refuge icons
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Jan 28, 2025
1 parent de3dcbe commit 54e125e
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 3 deletions.
7 changes: 6 additions & 1 deletion js/styleGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,12 @@ export function generateStyle(baseStyleJsonString, travelMode, lens) {
"case",
["==", ["get", "protected_area"], "game_land"], ["image", "game_land"],
["==", ["get", "protected_area"], "forest_reserve"], ["image", "forest_reserve"],
["==", ["get", "protected_area"], "wildlife_refuge"], ["image", "wildlife_refuge"],
["==", ["get", "protected_area"], "wildlife_refuge"], [
"case",
["==", ["get", "wildlife_refuge"], "bird_refuge"], ["image", "bird_refuge"],
["==", ["get", "wildlife_refuge"], "bison_refuge"], ["image", "bison_refuge"],
["image", "wildlife_refuge"],
],
["==", ["get", "protected_area"], "wilderness_preserve"], ["image", "wilderness_preserve"],
["==", ["get", "leisure"], "nature_reserve"], ["image", "nature_reserve"],
["==", ["get", "leisure"], "park"], ["image", "park"],
Expand Down
2 changes: 1 addition & 1 deletion style/sprites/opentrailmap.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"access_point":{"height":24,"pixelRatio":1,"width":24,"x":32,"y":96},"access_point-minor":{"height":18,"pixelRatio":1,"width":18,"x":209,"y":90},"access_point-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":56,"y":96},"arrow-left":{"height":15,"pixelRatio":1,"width":23,"x":176,"y":111},"arrow-right":{"height":15,"pixelRatio":1,"width":23,"x":199,"y":111},"arrows-leftright":{"height":15,"pixelRatio":1,"width":33,"x":176,"y":96},"beaver_dam":{"height":23,"pixelRatio":1,"width":21,"x":209,"y":0},"beaver_dam-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":64,"y":0},"beaver_dam-hazard":{"height":24,"pixelRatio":1,"width":24,"x":64,"y":24},"cairn":{"height":24,"pixelRatio":1,"width":18,"x":184,"y":20},"campground":{"height":24,"pixelRatio":1,"width":24,"x":64,"y":48},"campground-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":64,"y":72},"campsite":{"height":20,"pixelRatio":1,"width":24,"x":184,"y":0},"caravan_site":{"height":24,"pixelRatio":1,"width":24,"x":80,"y":96},"caravan_site-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":88,"y":0},"dam":{"height":18,"pixelRatio":1,"width":18,"x":222,"y":108},"dam-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":88,"y":24},"dam-hazard":{"height":24,"pixelRatio":1,"width":24,"x":88,"y":48},"disallowed-stripes":{"height":6,"pixelRatio":1,"width":7,"x":184,"y":90},"ferry":{"height":24,"pixelRatio":1,"width":24,"x":88,"y":72},"ferry-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":104,"y":96},"forest_reserve":{"height":32,"pixelRatio":1,"width":32,"x":0,"y":0},"game_land":{"height":32,"pixelRatio":1,"width":32,"x":0,"y":32},"guidepost":{"height":24,"pixelRatio":1,"width":18,"x":230,"y":0},"lean_to":{"height":20,"pixelRatio":1,"width":18,"x":204,"y":47},"lock":{"height":23,"pixelRatio":1,"width":14,"x":206,"y":67},"lock-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":112,"y":0},"lock-hazard":{"height":24,"pixelRatio":1,"width":24,"x":112,"y":24},"nature_reserve":{"height":32,"pixelRatio":1,"width":32,"x":0,"y":64},"park":{"height":32,"pixelRatio":1,"width":32,"x":0,"y":96},"peak":{"height":18,"pixelRatio":1,"width":22,"x":184,"y":67},"protected_area":{"height":32,"pixelRatio":1,"width":32,"x":32,"y":0},"question":{"height":24,"pixelRatio":1,"width":24,"x":112,"y":48},"ranger_station":{"height":24,"pixelRatio":1,"width":24,"x":112,"y":72},"ranger_station-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":128,"y":96},"restricted-zone":{"height":4,"pixelRatio":1,"width":4,"x":191,"y":90},"route_marker":{"height":24,"pixelRatio":1,"width":18,"x":202,"y":23},"slipway-canoe":{"height":24,"pixelRatio":1,"width":24,"x":136,"y":0},"slipway-canoe-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":136,"y":24},"slipway-canoe-trailer":{"height":24,"pixelRatio":1,"width":24,"x":136,"y":48},"slipway-canoe-trailer-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":136,"y":72},"streamgage":{"height":24,"pixelRatio":1,"width":24,"x":152,"y":96},"trailhead":{"height":24,"pixelRatio":1,"width":24,"x":160,"y":0},"trailhead-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":160,"y":24},"viewpoint":{"height":16,"pixelRatio":1,"width":22,"x":220,"y":24},"waterfall":{"height":20,"pixelRatio":1,"width":20,"x":184,"y":47},"waterfall-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":160,"y":48},"waterfall-hazard":{"height":24,"pixelRatio":1,"width":24,"x":160,"y":72},"wilderness_preserve":{"height":32,"pixelRatio":1,"width":32,"x":32,"y":32},"wildlife_refuge":{"height":32,"pixelRatio":1,"width":32,"x":32,"y":64}}
{"access_point":{"height":24,"pixelRatio":1,"width":24,"x":64,"y":32},"access_point-minor":{"height":18,"pixelRatio":1,"width":18,"x":160,"y":107},"access_point-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":64,"y":56},"arrow-left":{"height":15,"pixelRatio":1,"width":23,"x":178,"y":95},"arrow-right":{"height":15,"pixelRatio":1,"width":23,"x":201,"y":102},"arrows-leftright":{"height":15,"pixelRatio":1,"width":33,"x":160,"y":48},"beaver_dam":{"height":23,"pixelRatio":1,"width":21,"x":193,"y":48},"beaver_dam-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":64,"y":80},"beaver_dam-hazard":{"height":24,"pixelRatio":1,"width":24,"x":64,"y":104},"bird_refuge":{"height":32,"pixelRatio":1,"width":32,"x":0,"y":0},"bison_refuge":{"height":32,"pixelRatio":1,"width":32,"x":0,"y":32},"cairn":{"height":24,"pixelRatio":1,"width":18,"x":214,"y":48},"campground":{"height":24,"pixelRatio":1,"width":24,"x":88,"y":32},"campground-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":96,"y":0},"campsite":{"height":20,"pixelRatio":1,"width":24,"x":160,"y":63},"caravan_site":{"height":24,"pixelRatio":1,"width":24,"x":88,"y":56},"caravan_site-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":88,"y":80},"dam":{"height":18,"pixelRatio":1,"width":18,"x":178,"y":110},"dam-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":88,"y":104},"dam-hazard":{"height":24,"pixelRatio":1,"width":24,"x":112,"y":24},"disallowed-stripes":{"height":6,"pixelRatio":1,"width":7,"x":184,"y":63},"ferry":{"height":24,"pixelRatio":1,"width":24,"x":120,"y":0},"ferry-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":112,"y":48},"forest_reserve":{"height":32,"pixelRatio":1,"width":32,"x":0,"y":64},"game_land":{"height":32,"pixelRatio":1,"width":32,"x":0,"y":96},"guidepost":{"height":24,"pixelRatio":1,"width":18,"x":184,"y":71},"lean_to":{"height":20,"pixelRatio":1,"width":18,"x":202,"y":72},"lock":{"height":23,"pixelRatio":1,"width":14,"x":240,"y":0},"lock-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":112,"y":72},"lock-hazard":{"height":24,"pixelRatio":1,"width":24,"x":112,"y":96},"nature_reserve":{"height":32,"pixelRatio":1,"width":32,"x":32,"y":0},"park":{"height":32,"pixelRatio":1,"width":32,"x":32,"y":32},"peak":{"height":18,"pixelRatio":1,"width":22,"x":232,"y":68},"protected_area":{"height":32,"pixelRatio":1,"width":32,"x":32,"y":64},"question":{"height":24,"pixelRatio":1,"width":24,"x":136,"y":24},"ranger_station":{"height":24,"pixelRatio":1,"width":24,"x":144,"y":0},"ranger_station-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":136,"y":48},"restricted-zone":{"height":4,"pixelRatio":1,"width":4,"x":178,"y":83},"route_marker":{"height":24,"pixelRatio":1,"width":18,"x":160,"y":83},"slipway-canoe":{"height":24,"pixelRatio":1,"width":24,"x":136,"y":72},"slipway-canoe-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":136,"y":96},"slipway-canoe-trailer":{"height":24,"pixelRatio":1,"width":24,"x":160,"y":24},"slipway-canoe-trailer-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":168,"y":0},"streamgage":{"height":24,"pixelRatio":1,"width":24,"x":184,"y":24},"trailhead":{"height":24,"pixelRatio":1,"width":24,"x":192,"y":0},"trailhead-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":208,"y":24},"viewpoint":{"height":16,"pixelRatio":1,"width":22,"x":220,"y":86},"waterfall":{"height":20,"pixelRatio":1,"width":20,"x":232,"y":48},"waterfall-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":216,"y":0},"waterfall-hazard":{"height":24,"pixelRatio":1,"width":24,"x":232,"y":24},"wilderness_preserve":{"height":32,"pixelRatio":1,"width":32,"x":32,"y":96},"wildlife_refuge":{"height":32,"pixelRatio":1,"width":32,"x":64,"y":0}}
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/opentrailmap@2x.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"access_point":{"height":48,"pixelRatio":2,"width":48,"x":64,"y":192},"access_point-minor":{"height":36,"pixelRatio":2,"width":36,"x":418,"y":180},"access_point-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":112,"y":192},"arrow-left":{"height":30,"pixelRatio":2,"width":46,"x":352,"y":222},"arrow-right":{"height":30,"pixelRatio":2,"width":46,"x":398,"y":222},"arrows-leftright":{"height":30,"pixelRatio":2,"width":66,"x":352,"y":192},"beaver_dam":{"height":46,"pixelRatio":2,"width":42,"x":418,"y":0},"beaver_dam-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":128,"y":0},"beaver_dam-hazard":{"height":48,"pixelRatio":2,"width":48,"x":128,"y":48},"cairn":{"height":48,"pixelRatio":2,"width":36,"x":368,"y":40},"campground":{"height":48,"pixelRatio":2,"width":48,"x":128,"y":96},"campground-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":128,"y":144},"campsite":{"height":40,"pixelRatio":2,"width":48,"x":368,"y":0},"caravan_site":{"height":48,"pixelRatio":2,"width":48,"x":160,"y":192},"caravan_site-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":176,"y":0},"dam":{"height":36,"pixelRatio":2,"width":36,"x":444,"y":216},"dam-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":176,"y":48},"dam-hazard":{"height":48,"pixelRatio":2,"width":48,"x":176,"y":96},"disallowed-stripes":{"height":12,"pixelRatio":2,"width":14,"x":368,"y":180},"ferry":{"height":48,"pixelRatio":2,"width":48,"x":176,"y":144},"ferry-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":208,"y":192},"forest_reserve":{"height":64,"pixelRatio":2,"width":64,"x":0,"y":0},"game_land":{"height":64,"pixelRatio":2,"width":64,"x":0,"y":64},"guidepost":{"height":48,"pixelRatio":2,"width":36,"x":460,"y":0},"lean_to":{"height":40,"pixelRatio":2,"width":36,"x":408,"y":94},"lock":{"height":46,"pixelRatio":2,"width":28,"x":412,"y":134},"lock-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":224,"y":0},"lock-hazard":{"height":48,"pixelRatio":2,"width":48,"x":224,"y":48},"nature_reserve":{"height":64,"pixelRatio":2,"width":64,"x":0,"y":128},"park":{"height":64,"pixelRatio":2,"width":64,"x":0,"y":192},"peak":{"height":36,"pixelRatio":2,"width":44,"x":368,"y":134},"protected_area":{"height":64,"pixelRatio":2,"width":64,"x":64,"y":0},"question":{"height":48,"pixelRatio":2,"width":48,"x":224,"y":96},"ranger_station":{"height":48,"pixelRatio":2,"width":48,"x":224,"y":144},"ranger_station-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":256,"y":192},"restricted-zone":{"height":8,"pixelRatio":2,"width":8,"x":382,"y":180},"route_marker":{"height":48,"pixelRatio":2,"width":36,"x":404,"y":46},"slipway-canoe":{"height":48,"pixelRatio":2,"width":48,"x":272,"y":0},"slipway-canoe-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":272,"y":48},"slipway-canoe-trailer":{"height":48,"pixelRatio":2,"width":48,"x":272,"y":96},"slipway-canoe-trailer-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":272,"y":144},"streamgage":{"height":48,"pixelRatio":2,"width":48,"x":304,"y":192},"trailhead":{"height":48,"pixelRatio":2,"width":48,"x":320,"y":0},"trailhead-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":320,"y":48},"viewpoint":{"height":32,"pixelRatio":2,"width":44,"x":440,"y":48},"waterfall":{"height":40,"pixelRatio":2,"width":40,"x":368,"y":94},"waterfall-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":320,"y":96},"waterfall-hazard":{"height":48,"pixelRatio":2,"width":48,"x":320,"y":144},"wilderness_preserve":{"height":64,"pixelRatio":2,"width":64,"x":64,"y":64},"wildlife_refuge":{"height":64,"pixelRatio":2,"width":64,"x":64,"y":128}}
{"access_point":{"height":48,"pixelRatio":2,"width":48,"x":128,"y":64},"access_point-minor":{"height":36,"pixelRatio":2,"width":36,"x":320,"y":214},"access_point-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":128,"y":112},"arrow-left":{"height":30,"pixelRatio":2,"width":46,"x":356,"y":190},"arrow-right":{"height":30,"pixelRatio":2,"width":46,"x":402,"y":204},"arrows-leftright":{"height":30,"pixelRatio":2,"width":66,"x":320,"y":96},"beaver_dam":{"height":46,"pixelRatio":2,"width":42,"x":386,"y":96},"beaver_dam-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":128,"y":160},"beaver_dam-hazard":{"height":48,"pixelRatio":2,"width":48,"x":128,"y":208},"bird_refuge":{"height":64,"pixelRatio":2,"width":64,"x":0,"y":0},"bison_refuge":{"height":64,"pixelRatio":2,"width":64,"x":0,"y":64},"cairn":{"height":48,"pixelRatio":2,"width":36,"x":428,"y":96},"campground":{"height":48,"pixelRatio":2,"width":48,"x":176,"y":64},"campground-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":192,"y":0},"campsite":{"height":40,"pixelRatio":2,"width":48,"x":320,"y":126},"caravan_site":{"height":48,"pixelRatio":2,"width":48,"x":176,"y":112},"caravan_site-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":176,"y":160},"dam":{"height":36,"pixelRatio":2,"width":36,"x":356,"y":220},"dam-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":176,"y":208},"dam-hazard":{"height":48,"pixelRatio":2,"width":48,"x":224,"y":48},"disallowed-stripes":{"height":12,"pixelRatio":2,"width":14,"x":368,"y":126},"ferry":{"height":48,"pixelRatio":2,"width":48,"x":240,"y":0},"ferry-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":224,"y":96},"forest_reserve":{"height":64,"pixelRatio":2,"width":64,"x":0,"y":128},"game_land":{"height":64,"pixelRatio":2,"width":64,"x":0,"y":192},"guidepost":{"height":48,"pixelRatio":2,"width":36,"x":368,"y":142},"lean_to":{"height":40,"pixelRatio":2,"width":36,"x":404,"y":144},"lock":{"height":46,"pixelRatio":2,"width":28,"x":480,"y":0},"lock-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":224,"y":144},"lock-hazard":{"height":48,"pixelRatio":2,"width":48,"x":224,"y":192},"nature_reserve":{"height":64,"pixelRatio":2,"width":64,"x":64,"y":0},"park":{"height":64,"pixelRatio":2,"width":64,"x":64,"y":64},"peak":{"height":36,"pixelRatio":2,"width":44,"x":464,"y":136},"protected_area":{"height":64,"pixelRatio":2,"width":64,"x":64,"y":128},"question":{"height":48,"pixelRatio":2,"width":48,"x":272,"y":48},"ranger_station":{"height":48,"pixelRatio":2,"width":48,"x":288,"y":0},"ranger_station-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":272,"y":96},"restricted-zone":{"height":8,"pixelRatio":2,"width":8,"x":356,"y":166},"route_marker":{"height":48,"pixelRatio":2,"width":36,"x":320,"y":166},"slipway-canoe":{"height":48,"pixelRatio":2,"width":48,"x":272,"y":144},"slipway-canoe-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":272,"y":192},"slipway-canoe-trailer":{"height":48,"pixelRatio":2,"width":48,"x":320,"y":48},"slipway-canoe-trailer-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":336,"y":0},"streamgage":{"height":48,"pixelRatio":2,"width":48,"x":368,"y":48},"trailhead":{"height":48,"pixelRatio":2,"width":48,"x":384,"y":0},"trailhead-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":416,"y":48},"viewpoint":{"height":32,"pixelRatio":2,"width":44,"x":440,"y":172},"waterfall":{"height":40,"pixelRatio":2,"width":40,"x":464,"y":96},"waterfall-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":432,"y":0},"waterfall-hazard":{"height":48,"pixelRatio":2,"width":48,"x":464,"y":48},"wilderness_preserve":{"height":64,"pixelRatio":2,"width":64,"x":64,"y":192},"wildlife_refuge":{"height":64,"pixelRatio":2,"width":64,"x":128,"y":0}}
Binary file modified style/sprites/opentrailmap@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions style/sprites/svg/bird_refuge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions style/sprites/svg/bison_refuge.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 54e125e

Please sign in to comment.