Skip to content

Commit

Permalink
Add icons for private camping areas
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Aug 21, 2024
1 parent 4839f33 commit 0d953c3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
Binary file added img/map/campground-noaccess.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/map/caravan_site-noaccess.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: 2 additions & 0 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,10 +486,12 @@ window.onload = function(event) {
'bothways-arrows',
'cairn',
'campground',
'campground-noaccess',
'campsite',
'canoe',
'canoe-noaccess',
'caravan_site',
'caravan_site-noaccess',
'dam',
'dam-canoeable',
'dam-hazard',
Expand Down
12 changes: 10 additions & 2 deletions js/mapController.js
Original file line number Diff line number Diff line change
Expand Up @@ -1131,8 +1131,16 @@ function poiIconImageExpression(travelMode) {
['==', ["get", "information"], "guidepost"], ["image", "guidepost"],
['==', ["get", "information"], "route_marker"], ["image", "route_marker"],
['==', ["get", "man_made"], "monitoring_station"], ["image", "streamgage"],
['==', ["get", "tourism"], "camp_site"], ["image", "campground"],
['==', ["get", "tourism"], "caravan_site"], ["image", "caravan_site"],
['==', ["get", "tourism"], "camp_site"], [
"case",
["in", ["get", "access"], ["literal", ["no", "private", "discouraged"]]], ["image", "campground-noaccess"],
["image", "campground"],
],
['==', ["get", "tourism"], "caravan_site"], [
"case",
["in", ["get", "access"], ["literal", ["no", "private", "discouraged"]]], ["image", "caravan_site-noaccess"],
["image", "caravan_site"],
],
['==', ["get", "tourism"], "camp_pitch"], ["image", "campsite"],
['==', ["get", "shelter_type"], "lean_to"], ["image", "lean_to"],
['==', ["get", "tourism"], "wilderness_hut"], ["image", "lean_to"],
Expand Down

0 comments on commit 0d953c3

Please sign in to comment.