diff --git a/img/map/campground-noaccess.png b/img/map/campground-noaccess.png new file mode 100644 index 0000000..2598983 Binary files /dev/null and b/img/map/campground-noaccess.png differ diff --git a/img/map/caravan_site-noaccess.png b/img/map/caravan_site-noaccess.png new file mode 100644 index 0000000..da8d1d8 Binary files /dev/null and b/img/map/caravan_site-noaccess.png differ diff --git a/js/index.js b/js/index.js index a99d175..c994e95 100644 --- a/js/index.js +++ b/js/index.js @@ -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', diff --git a/js/mapController.js b/js/mapController.js index 684204c..17e4e86 100644 --- a/js/mapController.js +++ b/js/mapController.js @@ -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"],