Skip to content

Commit

Permalink
Render tourism=camp_pitch (close #26)
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Aug 6, 2024
1 parent a9c58e6 commit 2ddac2c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Binary file added img/map/campsite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ window.onload = function(event) {
'bothways-arrows',
'cairn',
'campground',
'campsite',
'canoe',
'canoe-noaccess',
'dam',
Expand Down
9 changes: 6 additions & 3 deletions js/mapController.js
Original file line number Diff line number Diff line change
Expand Up @@ -570,12 +570,14 @@ function loadTrailLayers() {
"symbol-placement": "point",
"symbol-sort-key": [
"case",
['==', ["get", "man_made"], "monitoring_station"], 1,
['==', ["get", "amenity"], "ranger_station"], 2,
['==', ["get", "highway"], "trailhead"], 3,
['==', ["get", "information"], "camp_site"], 3,
['==', ["get", "highway"], "trailhead"], 4,
['==', ["get", "information"], "camp_pitch"], 5,
['==', ["get", "information"], "guidepost"], 19,
['==', ["get", "man_made"], "cairn"], 20,
['==', ["get", "information"], "route_marker"], 20,
['==', ["get", "man_made"], "monitoring_station"], 2,
[
"any",
["in", ["get", "canoe"], ["literal", ["no", "private", "discouraged"]]],
Expand All @@ -584,7 +586,7 @@ function loadTrailLayers() {
["!", ["has", "canoe"]],
["in", ["get", "access"], ["literal", ["no", "private", "discouraged"]]]
]
], 15,
], 21,
10,
],
"text-field": [
Expand Down Expand Up @@ -999,6 +1001,7 @@ function poiIconImageExpression(travelMode) {
['==', ["get", "information"], "route_marker"], ["image", "route_marker"],
['==', ["get", "man_made"], "monitoring_station"], ["image", "streamgage"],
['==', ["get", "tourism"], "camp_site"], ["image", "campground"],
['==', ["get", "tourism"], "camp_pitch"], ["image", "campsite"],
[
"any",
['==', ["get", "natural"], "beaver_dam"],
Expand Down

0 comments on commit 2ddac2c

Please sign in to comment.