diff --git a/js/styleGenerator.js b/js/styleGenerator.js index 4cfbba9..9314554 100644 --- a/js/styleGenerator.js +++ b/js/styleGenerator.js @@ -1112,9 +1112,21 @@ async function generateStyle(travelMode, lens) { let showHazards = travelMode === "canoe"; return [ "case", - ["==", ["get", "route"], "ferry"], ["image", "ferry"], - ["==", ["get", "amenity"], "ranger_station"], ["image", "ranger_station"], - ["==", ["get", "highway"], "trailhead"], ["image", "trailhead"], + ["==", ["get", "route"], "ferry"], [ + "case", + ["in", ["get", "access"], ["literal", ["no", "private", "discouraged"]]], ["image", "ferry-noaccess"], + ["image", "ferry"], + ], + ["==", ["get", "amenity"], "ranger_station"], [ + "case", + ["in", ["get", "access"], ["literal", ["no", "private", "discouraged"]]], ["image", "ranger_station-noaccess"], + ["image", "ranger_station"], + ], + ["==", ["get", "highway"], "trailhead"], [ + "case", + ["in", ["get", "access"], ["literal", ["no", "private", "discouraged"]]], ["image", "trailhead-noaccess"], + ["image", "trailhead"], + ], ["==", ["get", "man_made"], "cairn"], ["image", "cairn"], ["==", ["get", "information"], "guidepost"], ["image", "guidepost"], ["==", ["get", "information"], "route_marker"], ["image", "route_marker"], diff --git a/style/sprites/opentrailmap.json b/style/sprites/opentrailmap.json index 37da046..c148f75 100644 --- a/style/sprites/opentrailmap.json +++ b/style/sprites/opentrailmap.json @@ -1 +1 @@ -{"arrow-left":{"height":15,"pixelRatio":1,"width":23,"x":173,"y":0},"arrow-right":{"height":15,"pixelRatio":1,"width":23,"x":164,"y":59},"arrows-leftright":{"height":15,"pixelRatio":1,"width":33,"x":128,"y":24},"beaver_dam":{"height":23,"pixelRatio":1,"width":21,"x":152,"y":0},"beaver_dam-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":25,"y":96},"beaver_dam-hazard":{"height":24,"pixelRatio":1,"width":24,"x":32,"y":0},"cairn":{"height":24,"pixelRatio":1,"width":18,"x":128,"y":59},"campground":{"height":24,"pixelRatio":1,"width":24,"x":32,"y":24},"campground-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":32,"y":48},"campsite":{"height":20,"pixelRatio":1,"width":24,"x":128,"y":39},"canoe":{"height":24,"pixelRatio":1,"width":24,"x":32,"y":72},"canoe-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":49,"y":96},"caravan_site":{"height":24,"pixelRatio":1,"width":24,"x":56,"y":0},"caravan_site-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":56,"y":24},"dam":{"height":18,"pixelRatio":1,"width":18,"x":172,"y":39},"dam-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":56,"y":48},"dam-hazard":{"height":24,"pixelRatio":1,"width":24,"x":56,"y":72},"disallowed-stripes":{"height":6,"pixelRatio":1,"width":7,"x":128,"y":83},"ferry":{"height":24,"pixelRatio":1,"width":24,"x":73,"y":96},"guidepost":{"height":24,"pixelRatio":1,"width":18,"x":145,"y":83},"lean_to":{"height":20,"pixelRatio":1,"width":18,"x":163,"y":83},"lock":{"height":23,"pixelRatio":1,"width":14,"x":167,"y":103},"lock-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":80,"y":0},"lock-hazard":{"height":24,"pixelRatio":1,"width":24,"x":80,"y":24},"nature_reserve":{"height":32,"pixelRatio":1,"width":32,"x":0,"y":0},"park":{"height":32,"pixelRatio":1,"width":32,"x":0,"y":32},"peak":{"height":18,"pixelRatio":1,"width":22,"x":145,"y":107},"protected_area":{"height":32,"pixelRatio":1,"width":32,"x":0,"y":64},"question":{"height":24,"pixelRatio":1,"width":24,"x":80,"y":48},"ranger_station":{"height":25,"pixelRatio":1,"width":25,"x":0,"y":96},"restricted-zone":{"height":4,"pixelRatio":1,"width":4,"x":163,"y":103},"route_marker":{"height":24,"pixelRatio":1,"width":18,"x":146,"y":59},"slipway-canoe":{"height":24,"pixelRatio":1,"width":24,"x":80,"y":72},"slipway-canoe-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":97,"y":96},"slipway-canoe-trailer":{"height":24,"pixelRatio":1,"width":24,"x":104,"y":0},"slipway-canoe-trailer-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":104,"y":24},"streamgage":{"height":24,"pixelRatio":1,"width":24,"x":104,"y":48},"trailhead":{"height":24,"pixelRatio":1,"width":24,"x":104,"y":72},"viewpoint":{"height":16,"pixelRatio":1,"width":22,"x":161,"y":23},"waterfall":{"height":20,"pixelRatio":1,"width":20,"x":152,"y":39},"waterfall-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":121,"y":96},"waterfall-hazard":{"height":24,"pixelRatio":1,"width":24,"x":128,"y":0}} \ No newline at end of file +{"arrow-left":{"height":15,"pixelRatio":1,"width":23,"x":166,"y":111},"arrow-right":{"height":15,"pixelRatio":1,"width":23,"x":170,"y":67},"arrows-leftright":{"height":15,"pixelRatio":1,"width":33,"x":144,"y":96},"beaver_dam":{"height":23,"pixelRatio":1,"width":21,"x":152,"y":0},"beaver_dam-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":0,"y":96},"beaver_dam-hazard":{"height":24,"pixelRatio":1,"width":24,"x":24,"y":96},"cairn":{"height":24,"pixelRatio":1,"width":18,"x":152,"y":43},"campground":{"height":24,"pixelRatio":1,"width":24,"x":32,"y":0},"campground-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":32,"y":24},"campsite":{"height":20,"pixelRatio":1,"width":24,"x":152,"y":23},"canoe":{"height":24,"pixelRatio":1,"width":24,"x":32,"y":48},"canoe-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":32,"y":72},"caravan_site":{"height":24,"pixelRatio":1,"width":24,"x":48,"y":96},"caravan_site-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":56,"y":0},"dam":{"height":18,"pixelRatio":1,"width":18,"x":198,"y":20},"dam-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":56,"y":24},"dam-hazard":{"height":24,"pixelRatio":1,"width":24,"x":56,"y":48},"disallowed-stripes":{"height":6,"pixelRatio":1,"width":7,"x":188,"y":61},"ferry":{"height":24,"pixelRatio":1,"width":24,"x":56,"y":72},"ferry-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":72,"y":96},"guidepost":{"height":24,"pixelRatio":1,"width":18,"x":152,"y":67},"lean_to":{"height":20,"pixelRatio":1,"width":18,"x":193,"y":0},"lock":{"height":23,"pixelRatio":1,"width":14,"x":188,"y":38},"lock-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":80,"y":0},"lock-hazard":{"height":24,"pixelRatio":1,"width":24,"x":80,"y":24},"nature_reserve":{"height":32,"pixelRatio":1,"width":32,"x":0,"y":0},"park":{"height":32,"pixelRatio":1,"width":32,"x":0,"y":32},"peak":{"height":18,"pixelRatio":1,"width":22,"x":176,"y":20},"protected_area":{"height":32,"pixelRatio":1,"width":32,"x":0,"y":64},"question":{"height":24,"pixelRatio":1,"width":24,"x":80,"y":48},"ranger_station":{"height":24,"pixelRatio":1,"width":24,"x":80,"y":72},"ranger_station-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":96,"y":96},"restricted-zone":{"height":4,"pixelRatio":1,"width":4,"x":176,"y":38},"route_marker":{"height":24,"pixelRatio":1,"width":18,"x":170,"y":43},"slipway-canoe":{"height":24,"pixelRatio":1,"width":24,"x":104,"y":0},"slipway-canoe-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":104,"y":24},"slipway-canoe-trailer":{"height":24,"pixelRatio":1,"width":24,"x":104,"y":48},"slipway-canoe-trailer-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":104,"y":72},"streamgage":{"height":24,"pixelRatio":1,"width":24,"x":120,"y":96},"trailhead":{"height":24,"pixelRatio":1,"width":24,"x":128,"y":0},"trailhead-noaccess":{"height":24,"pixelRatio":1,"width":24,"x":128,"y":24},"viewpoint":{"height":16,"pixelRatio":1,"width":22,"x":144,"y":111},"waterfall":{"height":20,"pixelRatio":1,"width":20,"x":173,"y":0},"waterfall-canoeable":{"height":24,"pixelRatio":1,"width":24,"x":128,"y":48},"waterfall-hazard":{"height":24,"pixelRatio":1,"width":24,"x":128,"y":72}} \ No newline at end of file diff --git a/style/sprites/opentrailmap.png b/style/sprites/opentrailmap.png index 556c0f5..bfdbd00 100644 Binary files a/style/sprites/opentrailmap.png and b/style/sprites/opentrailmap.png differ diff --git a/style/sprites/opentrailmap@2x.json b/style/sprites/opentrailmap@2x.json index d88bc4f..b7ca41c 100644 --- a/style/sprites/opentrailmap@2x.json +++ b/style/sprites/opentrailmap@2x.json @@ -1 +1 @@ -{"arrow-left":{"height":30,"pixelRatio":2,"width":46,"x":346,"y":0},"arrow-right":{"height":30,"pixelRatio":2,"width":46,"x":328,"y":118},"arrows-leftright":{"height":30,"pixelRatio":2,"width":66,"x":256,"y":48},"beaver_dam":{"height":46,"pixelRatio":2,"width":42,"x":304,"y":0},"beaver_dam-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":50,"y":192},"beaver_dam-hazard":{"height":48,"pixelRatio":2,"width":48,"x":64,"y":0},"cairn":{"height":48,"pixelRatio":2,"width":36,"x":256,"y":118},"campground":{"height":48,"pixelRatio":2,"width":48,"x":64,"y":48},"campground-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":64,"y":96},"campsite":{"height":40,"pixelRatio":2,"width":48,"x":256,"y":78},"canoe":{"height":48,"pixelRatio":2,"width":48,"x":64,"y":144},"canoe-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":98,"y":192},"caravan_site":{"height":48,"pixelRatio":2,"width":48,"x":112,"y":0},"caravan_site-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":112,"y":48},"dam":{"height":36,"pixelRatio":2,"width":36,"x":344,"y":78},"dam-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":112,"y":96},"dam-hazard":{"height":48,"pixelRatio":2,"width":48,"x":112,"y":144},"disallowed-stripes":{"height":12,"pixelRatio":2,"width":14,"x":256,"y":166},"ferry":{"height":48,"pixelRatio":2,"width":48,"x":146,"y":192},"guidepost":{"height":48,"pixelRatio":2,"width":36,"x":290,"y":166},"lean_to":{"height":40,"pixelRatio":2,"width":36,"x":326,"y":166},"lock":{"height":46,"pixelRatio":2,"width":28,"x":334,"y":206},"lock-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":160,"y":0},"lock-hazard":{"height":48,"pixelRatio":2,"width":48,"x":160,"y":48},"nature_reserve":{"height":64,"pixelRatio":2,"width":64,"x":0,"y":0},"park":{"height":64,"pixelRatio":2,"width":64,"x":0,"y":64},"peak":{"height":36,"pixelRatio":2,"width":44,"x":290,"y":214},"protected_area":{"height":64,"pixelRatio":2,"width":64,"x":0,"y":128},"question":{"height":48,"pixelRatio":2,"width":48,"x":160,"y":96},"ranger_station":{"height":50,"pixelRatio":2,"width":50,"x":0,"y":192},"restricted-zone":{"height":8,"pixelRatio":2,"width":8,"x":326,"y":206},"route_marker":{"height":48,"pixelRatio":2,"width":36,"x":292,"y":118},"slipway-canoe":{"height":48,"pixelRatio":2,"width":48,"x":160,"y":144},"slipway-canoe-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":194,"y":192},"slipway-canoe-trailer":{"height":48,"pixelRatio":2,"width":48,"x":208,"y":0},"slipway-canoe-trailer-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":208,"y":48},"streamgage":{"height":48,"pixelRatio":2,"width":48,"x":208,"y":96},"trailhead":{"height":48,"pixelRatio":2,"width":48,"x":208,"y":144},"viewpoint":{"height":32,"pixelRatio":2,"width":44,"x":322,"y":46},"waterfall":{"height":40,"pixelRatio":2,"width":40,"x":304,"y":78},"waterfall-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":242,"y":192},"waterfall-hazard":{"height":48,"pixelRatio":2,"width":48,"x":256,"y":0}} \ No newline at end of file +{"arrow-left":{"height":30,"pixelRatio":2,"width":46,"x":332,"y":222},"arrow-right":{"height":30,"pixelRatio":2,"width":46,"x":340,"y":134},"arrows-leftright":{"height":30,"pixelRatio":2,"width":66,"x":288,"y":192},"beaver_dam":{"height":46,"pixelRatio":2,"width":42,"x":304,"y":0},"beaver_dam-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":0,"y":192},"beaver_dam-hazard":{"height":48,"pixelRatio":2,"width":48,"x":48,"y":192},"cairn":{"height":48,"pixelRatio":2,"width":36,"x":304,"y":86},"campground":{"height":48,"pixelRatio":2,"width":48,"x":64,"y":0},"campground-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":64,"y":48},"campsite":{"height":40,"pixelRatio":2,"width":48,"x":304,"y":46},"canoe":{"height":48,"pixelRatio":2,"width":48,"x":64,"y":96},"canoe-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":64,"y":144},"caravan_site":{"height":48,"pixelRatio":2,"width":48,"x":96,"y":192},"caravan_site-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":112,"y":0},"dam":{"height":36,"pixelRatio":2,"width":36,"x":396,"y":40},"dam-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":112,"y":48},"dam-hazard":{"height":48,"pixelRatio":2,"width":48,"x":112,"y":96},"disallowed-stripes":{"height":12,"pixelRatio":2,"width":14,"x":376,"y":122},"ferry":{"height":48,"pixelRatio":2,"width":48,"x":112,"y":144},"ferry-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":144,"y":192},"guidepost":{"height":48,"pixelRatio":2,"width":36,"x":304,"y":134},"lean_to":{"height":40,"pixelRatio":2,"width":36,"x":386,"y":0},"lock":{"height":46,"pixelRatio":2,"width":28,"x":376,"y":76},"lock-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":160,"y":0},"lock-hazard":{"height":48,"pixelRatio":2,"width":48,"x":160,"y":48},"nature_reserve":{"height":64,"pixelRatio":2,"width":64,"x":0,"y":0},"park":{"height":64,"pixelRatio":2,"width":64,"x":0,"y":64},"peak":{"height":36,"pixelRatio":2,"width":44,"x":352,"y":40},"protected_area":{"height":64,"pixelRatio":2,"width":64,"x":0,"y":128},"question":{"height":48,"pixelRatio":2,"width":48,"x":160,"y":96},"ranger_station":{"height":48,"pixelRatio":2,"width":48,"x":160,"y":144},"ranger_station-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":192,"y":192},"restricted-zone":{"height":8,"pixelRatio":2,"width":8,"x":352,"y":76},"route_marker":{"height":48,"pixelRatio":2,"width":36,"x":340,"y":86},"slipway-canoe":{"height":48,"pixelRatio":2,"width":48,"x":208,"y":0},"slipway-canoe-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":208,"y":48},"slipway-canoe-trailer":{"height":48,"pixelRatio":2,"width":48,"x":208,"y":96},"slipway-canoe-trailer-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":208,"y":144},"streamgage":{"height":48,"pixelRatio":2,"width":48,"x":240,"y":192},"trailhead":{"height":48,"pixelRatio":2,"width":48,"x":256,"y":0},"trailhead-noaccess":{"height":48,"pixelRatio":2,"width":48,"x":256,"y":48},"viewpoint":{"height":32,"pixelRatio":2,"width":44,"x":288,"y":222},"waterfall":{"height":40,"pixelRatio":2,"width":40,"x":346,"y":0},"waterfall-canoeable":{"height":48,"pixelRatio":2,"width":48,"x":256,"y":96},"waterfall-hazard":{"height":48,"pixelRatio":2,"width":48,"x":256,"y":144}} \ No newline at end of file diff --git a/style/sprites/opentrailmap@2x.png b/style/sprites/opentrailmap@2x.png index faa0f27..25a8b25 100644 Binary files a/style/sprites/opentrailmap@2x.png and b/style/sprites/opentrailmap@2x.png differ diff --git a/style/sprites/svg/ferry-noaccess.svg b/style/sprites/svg/ferry-noaccess.svg new file mode 100644 index 0000000..f4470e8 --- /dev/null +++ b/style/sprites/svg/ferry-noaccess.svg @@ -0,0 +1,24 @@ + + + ferry-noaccess + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/style/sprites/svg/ranger_station-noaccess.svg b/style/sprites/svg/ranger_station-noaccess.svg new file mode 100644 index 0000000..35c591c --- /dev/null +++ b/style/sprites/svg/ranger_station-noaccess.svg @@ -0,0 +1,19 @@ + + + ranger_station-noaccess + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/style/sprites/svg/ranger_station.svg b/style/sprites/svg/ranger_station.svg index 21984e9..c5f37d6 100644 --- a/style/sprites/svg/ranger_station.svg +++ b/style/sprites/svg/ranger_station.svg @@ -1,8 +1,8 @@ - + ranger_station - - + + \ No newline at end of file diff --git a/style/sprites/svg/trailhead-noaccess.svg b/style/sprites/svg/trailhead-noaccess.svg new file mode 100644 index 0000000..16b5f70 --- /dev/null +++ b/style/sprites/svg/trailhead-noaccess.svg @@ -0,0 +1,19 @@ + + + trailhead-noaccess + + + + + + + + + + + + + + + + \ No newline at end of file