diff --git a/img/map/campsite.png b/img/map/campsite.png new file mode 100644 index 0000000..0a317ec Binary files /dev/null and b/img/map/campsite.png differ diff --git a/js/index.js b/js/index.js index fff6254..a93c283 100644 --- a/js/index.js +++ b/js/index.js @@ -516,6 +516,7 @@ window.onload = function(event) { 'bothways-arrows', 'cairn', 'campground', + 'campsite', 'canoe', 'canoe-noaccess', 'dam', diff --git a/js/mapController.js b/js/mapController.js index b437b20..ae52d24 100644 --- a/js/mapController.js +++ b/js/mapController.js @@ -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"]]], @@ -584,7 +586,7 @@ function loadTrailLayers() { ["!", ["has", "canoe"]], ["in", ["get", "access"], ["literal", ["no", "private", "discouraged"]]] ] - ], 15, + ], 21, 10, ], "text-field": [ @@ -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"],