From 2ddac2c4708264c9af7a2d2d716e0a29b0897a34 Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Tue, 6 Aug 2024 10:44:22 -0400 Subject: [PATCH] Render tourism=camp_pitch (close #26) --- img/map/campsite.png | Bin 0 -> 1578 bytes js/index.js | 1 + js/mapController.js | 9 ++++++--- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 img/map/campsite.png diff --git a/img/map/campsite.png b/img/map/campsite.png new file mode 100644 index 0000000000000000000000000000000000000000..0a317ecd0d7cf4921ff189dcdb76dd8b7cb0ce26 GIT binary patch literal 1578 zcmV+_2G#kAP))Jw@Tf8QkY;oL% zLkGwZl$mV)n3|a->R=i}vU!Vf8qDT2pk_v$60&I2KblRD{qXWb{|w{U3KSU|kd6&> zThv8B!UBc1))m_NJoTL8*V9vIyH4wyynOHdeZJc{r=+D_1qud(tH57^of1=Cbro7A zza)WzC&6l>E%he>kR58|f^JLxk|nVsfNmGSMiaLuv1Rf~0j&i*Dx#hk8|xv9HYvuE zyv|9g1YnISpx&n*xbGqvcCX6Un54GJDFbkM;8_u*{kyjI2Mcq8WXhsXip@(#cU>}y z0MJp?sgi5?{r-_h%ZiuzE_;o%Wh^#&Tf2KF4FmmZ#$K} ze1+)aq;jwm9x*N+`AT=-RWwt;L-y70sJ$i{0LkYQ{LE#Igel<(VD(p{>n^eL$>YcD z7cZQp(lF?}NwAg!R z^m@bfLQory(I!EUSxjgL0RAC#P{6a>C-1)f%R=B8#~8*^7HFeXQ!vFQ#=Qe*#7E;0 z_-47q^wd=UUCm=fo^-(&%;BsM^M4K;(XdBjl&wsiIKsHIhx7v~~3qLSqU<&TE0EZ`(7^buKlT^2n5FQxkJpLuKDA^-`I&)reKm z3PZugu%7`dN5wtubktOq6>7y>va+1GqyfENzl{DsATWtbu6IpOTeaewZQTxYmQ}2E z0de`*iOX8?qAk`PcnL`gc*y?Op5D1cEF{W%4}9p5!P8EeHZew&rCNT$#$N2XAT2ln ztUjL(d&Ej-`+7Ui4LUU6o~sLQ`!Q#2QMnjTnKt^=cIvFfnkwHOskh1;t}b|lP~N1Fkx&>wF1VD()k`PwUJaW!}R@F!Mqg_58lU6ep+THYi z-$LLS$QZ`{ofZCGi{dC&VIn>{mqvc$g zn}2>yaY@9*)rzH!vCPr(vj=-=`6L@LHh^EDuER`tY`F4K!H1sXRpmOD)0xdAH61$M zJ&P$4Sg^m#4a0>CZD@uw98ra6U12z#SA62~V8nYF{{#BV+h>6%#jcqZ#$W%$G zqJ~~%dg;SxU#g&r1IIq)qYm$a(8nA`A2`*C80*1dkN?obVJrf-f=9q};8Y=EAtqwu cx0^zL0Wda6fVLRl*8l(j07*qoM6N<$f>b~CVgLXD literal 0 HcmV?d00001 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"],