diff --git a/browse_layout_layers/assets/nested2-7b0843dd.js b/browse_layout_layers/assets/nested2-4a13ef23.js similarity index 96% rename from browse_layout_layers/assets/nested2-7b0843dd.js rename to browse_layout_layers/assets/nested2-4a13ef23.js index 2e14d159..0c5ce426 100644 --- a/browse_layout_layers/assets/nested2-7b0843dd.js +++ b/browse_layout_layers/assets/nested2-4a13ef23.js @@ -54,7 +54,7 @@ import{S as K,i as X,s as J,e as S,b as F,m as ue,c as d,n as Q,d as h,aU as vr, OpenStreetMap can be missing, mapped twice, or mapped incorrectly. Our processing is also imperfect. You can click a segment to see full OpenStreetMap data. Please do report issues with the classification or - data.`,f=L(),w(o.$$.fragment),F(e,"slot","help")},m(u,c){d(u,e,c),p(e,l),p(e,t),p(e,n),p(e,r),p(e,i),p(e,f),b(o,e,null),a=!0},p:Q,i(u){a||(_(o.$$.fragment,u),a=!0)},o(u){g(o.$$.fragment,u),a=!1},d(u){u&&h(e),v(o)}}}function ya(s){let e,l,t=s[13]+"",n,r,i;return e=new Se({props:{color:s[14]}}),{c(){w(e.$$.fragment),l=L(),n=y(t),r=L()},m(f,o){b(e,f,o),d(f,l,o),d(f,n,o),d(f,r,o),i=!0},p:Q,i(f){i||(_(e.$$.fragment,f),i=!0)},o(f){g(e.$$.fragment,f),i=!1},d(f){f&&(h(l),h(n),h(r)),v(e,f)}}}function wl(s){let e,l,t;function n(i){s[4](i,s[10])}let r={$$slots:{default:[ya]},$$scope:{ctx:s}};return s[0][s[10]]!==void 0&&(r.checked=s[0][s[10]]),e=new We({props:r}),H.push(()=>E(e,"checked",n)),{c(){w(e.$$.fragment)},m(i,f){b(e,i,f),t=!0},p(i,f){s=i;const o={};f&131072&&(o.$$scope={dirty:f,ctx:s}),!l&&f&5&&(l=!0,o.checked=s[0][s[10]],B(()=>l=!1)),e.$set(o)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){g(e.$$.fragment,i),t=!1},d(i){v(e,i)}}}function Sa(s){let e,l,t=he(s[2]),n=[];for(let i=0;ig(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;i({9:t}),({props:t})=>t?512:0]},$$scope:{ctx:s}}}),{c(){w(e.$$.fragment)},m(t,n){b(e,t,n),l=!0},p(t,n){const r={};n&131584&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(_(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){v(e,t)}}}function Ma(s){let e,l;const t=[G(wt),{sourceLayer:wt},{paint:{"line-color":Ke(["get","kind"],{track:x.cycle_paths.track,lane:x.cycle_paths.lane,shared_use_segregated:x.cycle_paths.shared_use_segregated,shared_use_unsegregated:x.cycle_paths.shared_use_unsegregated},"red"),"line-width":je,"line-opacity":te(1,.5)}},{layout:{visibility:s[0].show?"visible":"none"}},{filter:s[3](s[0])},{manageHoverState:!0},{eventsIfTopMost:!0},{hoverCursor:"pointer"}];let n={$$slots:{default:[La]},$$scope:{ctx:s}};for(let r=0;rE(e,"show",i)),n=new pe({props:{url:`pmtiles://${ce()}/v1/${wt}.pmtiles`,$$slots:{default:[Ma]},$$scope:{ctx:s}}}),{c(){w(e.$$.fragment),t=L(),w(n.$$.fragment)},m(o,a){b(e,o,a),d(o,t,a),b(n,o,a),r=!0},p(o,[a]){const u={};a&131073&&(u.$$scope={dirty:a,ctx:o}),!l&&a&1&&(l=!0,u.show=o[0].show,B(()=>l=!1)),e.$set(u);const c={};a&131073&&(c.$$scope={dirty:a,ctx:o}),n.$set(c)},i(o){r||(_(e.$$.fragment,o),_(n.$$.fragment,o),r=!0)},o(o){g(e.$$.fragment,o),g(n.$$.fragment,o),r=!1},d(o){o&&h(t),v(e,o),v(n,o)}}}let wt="cycle_paths",Oa="Cycle paths";function Na(s){return{show:!0,track:s.includes("track"),lane:s.includes("lane"),shared_use_segregated:s.includes("shared_use_segregated"),shared_use_unsegregated:s.includes("shared_use_unsegregated")}}function Pa(s){let e={track:"Separated track",lane:"Unprotected lane",shared_use_segregated:"Shared-use (segregated)",shared_use_unsegregated:"Shared-use (unsegregated)"}[s.kind],l={"one-way":"↑","two-way":"↕",unknown:""}[s.direction],t=s.width=="unknown"?"unknown":`${s.width} meters`;return[e,`${l} ${s.direction}`,t]}function ja(s){window.open(`http://openstreetmap.org/way/${s.detail.features[0].properties.osm_id}`,"_blank")}function Ra(s,e,l){let t,n=["track","lane","shared_use_segregated","shared_use_unsegregated"],r={show:!1,track:!0,lane:!0,shared_use_segregated:!0,shared_use_unsegregated:!0};function i($){return $.show?n.filter(m=>$[m]).join(","):null}let f=Gt(wt,r,i,Na);Y(s,f,$=>l(0,t=$));let o=[["track","Separated tracks",x.cycle_paths.track],["lane","Unprotected lanes",x.cycle_paths.lane],["shared_use_segregated","Shared-use (segregated)",x.cycle_paths.shared_use_segregated],["shared_use_unsegregated","Shared-use (unsegregated)",x.cycle_paths.shared_use_unsegregated]];function a($){let m=n.filter(k=>$[k]);return["in",["get","kind"],["literal",m]]}function u($,m){s.$$.not_equal(t[m],$)&&(t[m]=$,f.set(t))}function c($){s.$$.not_equal(t.show,$)&&(t.show=$,f.set(t))}return[t,f,o,a,u,c]}class Da extends K{constructor(e){super(),X(this,e,Ra,Ia,J,{})}}function Aa(s){let e,l,t;return l=new Se({props:{color:s[1]}}),{c(){e=S("span"),w(l.$$.fragment),F(e,"slot","icon")},m(n,r){d(n,e,r),b(l,e,null),t=!0},p:Q,i(n){t||(_(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&h(e),v(l)}}}function Fa(s){let e;return{c(){e=y(`Major Road Network + data.`,f=L(),w(o.$$.fragment),F(e,"slot","help")},m(u,c){d(u,e,c),p(e,l),p(e,t),p(e,n),p(e,r),p(e,i),p(e,f),b(o,e,null),a=!0},p:Q,i(u){a||(_(o.$$.fragment,u),a=!0)},o(u){g(o.$$.fragment,u),a=!1},d(u){u&&h(e),v(o)}}}function ya(s){let e,l,t=s[13]+"",n,r,i;return e=new Se({props:{color:s[14]}}),{c(){w(e.$$.fragment),l=L(),n=y(t),r=L()},m(f,o){b(e,f,o),d(f,l,o),d(f,n,o),d(f,r,o),i=!0},p:Q,i(f){i||(_(e.$$.fragment,f),i=!0)},o(f){g(e.$$.fragment,f),i=!1},d(f){f&&(h(l),h(n),h(r)),v(e,f)}}}function wl(s){let e,l,t;function n(i){s[4](i,s[10])}let r={$$slots:{default:[ya]},$$scope:{ctx:s}};return s[0][s[10]]!==void 0&&(r.checked=s[0][s[10]]),e=new We({props:r}),H.push(()=>E(e,"checked",n)),{c(){w(e.$$.fragment)},m(i,f){b(e,i,f),t=!0},p(i,f){s=i;const o={};f&131072&&(o.$$scope={dirty:f,ctx:s}),!l&&f&5&&(l=!0,o.checked=s[0][s[10]],B(()=>l=!1)),e.$set(o)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){g(e.$$.fragment,i),t=!1},d(i){v(e,i)}}}function Sa(s){let e,l,t=he(s[2]),n=[];for(let i=0;ig(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;i({9:t}),({props:t})=>t?512:0]},$$scope:{ctx:s}}}),{c(){w(e.$$.fragment)},m(t,n){b(e,t,n),l=!0},p(t,n){const r={};n&131584&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(_(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){v(e,t)}}}function Ma(s){let e,l;const t=[G(wt),{sourceLayer:wt},{paint:{"line-color":Ke(["get","kind"],{track:x.cycle_paths.track,lane:x.cycle_paths.lane,shared_use_segregated:x.cycle_paths.shared_use_segregated,shared_use_unsegregated:x.cycle_paths.shared_use_unsegregated},"red"),"line-width":je,"line-opacity":te(1,.5)}},{layout:{visibility:s[0].show?"visible":"none"}},{filter:s[3](s[0])},{manageHoverState:!0},{eventsIfTopMost:!0},{hoverCursor:"pointer"}];let n={$$slots:{default:[La]},$$scope:{ctx:s}};for(let r=0;rE(e,"show",i)),n=new pe({props:{url:`pmtiles://${ce()}/v1/${wt}.pmtiles`,$$slots:{default:[Ma]},$$scope:{ctx:s}}}),{c(){w(e.$$.fragment),t=L(),w(n.$$.fragment)},m(o,a){b(e,o,a),d(o,t,a),b(n,o,a),r=!0},p(o,[a]){const u={};a&131073&&(u.$$scope={dirty:a,ctx:o}),!l&&a&1&&(l=!0,u.show=o[0].show,B(()=>l=!1)),e.$set(u);const c={};a&131073&&(c.$$scope={dirty:a,ctx:o}),n.$set(c)},i(o){r||(_(e.$$.fragment,o),_(n.$$.fragment,o),r=!0)},o(o){g(e.$$.fragment,o),g(n.$$.fragment,o),r=!1},d(o){o&&h(t),v(e,o),v(n,o)}}}let wt="cycle_paths",Oa="Cycle paths";function Na(s){return{show:!0,track:s.includes("track"),lane:s.includes("lane"),shared_use_segregated:s.includes("shared_use_segregated"),shared_use_unsegregated:s.includes("shared_use_unsegregated")}}function Pa(s){let e={track:"Separated track",lane:"Unprotected lane",shared_use_segregated:"Shared-use (segregated)",shared_use_unsegregated:"Shared-use (unsegregated)"}[s.kind],l={"one-way":"↑","two-way":"↕",unknown:""}[s.direction],t=s.width=="unknown"?"unknown":`${s.width} meters`;return[e,`${l} ${s.direction}`,t]}function ja(s){window.open(`http://openstreetmap.org/way/${s.detail.features[0].properties.osm_id}`,"_blank")}function Ra(s,e,l){let t,n=["track","lane","shared_use_segregated","shared_use_unsegregated"],r={show:!1,track:!0,lane:!0,shared_use_segregated:!0,shared_use_unsegregated:!0};function i($){return $.show?n.filter(m=>$[m]).join(","):null}let f=Gt(wt,r,i,Na);Y(s,f,$=>l(0,t=$));let o=[["track","Separated tracks",x.cycle_paths.track],["lane","Unprotected lanes",x.cycle_paths.lane],["shared_use_segregated","Shared-use (segregated)",x.cycle_paths.shared_use_segregated],["shared_use_unsegregated","Shared-use (unsegregated)",x.cycle_paths.shared_use_unsegregated]];function a($){let m=n.filter(k=>$[k]);return["in",["get","kind"],["literal",m]]}function u($,m){s.$$.not_equal(t[m],$)&&(t[m]=$,f.set(t))}function c($){s.$$.not_equal(t.show,$)&&(t.show=$,f.set(t))}return[t,f,o,a,u,c]}class Da extends K{constructor(e){super(),X(this,e,Ra,Ia,J,{})}}function Aa(s){let e,l,t;return l=new Se({props:{color:s[1]}}),{c(){e=S("span"),w(l.$$.fragment),F(e,"slot","icon")},m(n,r){d(n,e,r),b(l,e,null),t=!0},p:Q,i(n){t||(_(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&h(e),v(l)}}}function Fa(s){let e;return{c(){e=y(`Major Road Network `)},m(l,t){d(l,e,t)},d(l){l&&h(e)}}}function qa(s){let e,l,t,n,r,i,f,o;return n=new le({props:{href:"https://maps.dft.gov.uk/major-road-network/index.html",$$slots:{default:[Fa]},$$scope:{ctx:s}}}),f=new Te({}),{c(){e=S("span"),l=S("p"),t=y("Data from the "),w(n.$$.fragment),r=y(", as of September 2021."),i=L(),w(f.$$.fragment),F(e,"slot","help")},m(a,u){d(a,e,u),p(e,l),p(l,t),b(n,l,null),p(l,r),p(e,i),b(f,e,null),o=!0},p(a,u){const c={};u&32&&(c.$$scope={dirty:u,ctx:a}),n.$set(c)},i(a){o||(_(n.$$.fragment,a),_(f.$$.fragment,a),o=!0)},o(a){g(n.$$.fragment,a),g(f.$$.fragment,a),o=!1},d(a){a&&h(e),v(n),v(f)}}}function Ga(s){let e,l=(s[4].name??"Unknown MRN road")+"",t;return{c(){e=S("p"),t=y(l)},m(n,r){d(n,e,r),p(e,t)},p(n,r){r&16&&l!==(l=(n[4].name??"Unknown MRN road")+"")&&q(t,l)},d(n){n&&h(e)}}}function za(s){let e,l;return e=new ae({props:{$$slots:{default:[Ga,({props:t})=>({4:t}),({props:t})=>t?16:0]},$$scope:{ctx:s}}}),{c(){w(e.$$.fragment)},m(t,n){b(e,t,n),l=!0},p(t,n){const r={};n&48&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(_(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){v(e,t)}}}function Ha(s){let e,l;const t=[G(bt),{sourceLayer:bt},{manageHoverState:!0},{eventsIfTopMost:!0},{paint:{"line-color":s[1],"line-width":7,"line-opacity":te(1,.5)}},{layout:{visibility:s[0]?"visible":"none"}}];let n={$$slots:{default:[za]},$$scope:{ctx:s}};for(let r=0;rE(e,"show",i)),n=new pe({props:{url:`pmtiles://${ce()}/v1/${bt}.pmtiles`,$$slots:{default:[Ha]},$$scope:{ctx:s}}}),{c(){w(e.$$.fragment),t=L(),w(n.$$.fragment)},m(o,a){b(e,o,a),d(o,t,a),b(n,o,a),r=!0},p(o,[a]){const u={};a&32&&(u.$$scope={dirty:a,ctx:o}),!l&&a&1&&(l=!0,u.show=o[0],B(()=>l=!1)),e.$set(u);const c={};a&33&&(c.$$scope={dirty:a,ctx:o}),n.$set(c)},i(o){r||(_(e.$$.fragment,o),_(n.$$.fragment,o),r=!0)},o(o){g(e.$$.fragment,o),g(n.$$.fragment,o),r=!1},d(o){o&&h(t),v(e,o),v(n,o)}}}let bt="mrn",Ba="Major Road Network";function Ua(s,e,l){let t,n=x.mrn,r=$e(bt);Y(s,r,f=>l(0,t=f));function i(f){t=f,r.set(t)}return[t,n,r,i]}class Wa extends K{constructor(e){super(),X(this,e,Ua,Ea,J,{})}}function Ya(s){let e,l,t;return l=new Se({props:{color:s[1]}}),{c(){e=S("span"),w(l.$$.fragment),F(e,"slot","icon")},m(n,r){d(n,e,r),b(l,e,null),t=!0},p:Q,i(n){t||(_(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&h(e),v(l)}}}function Ja(s){let e;return{c(){e=y(`OS Open Roads `)},m(l,t){d(l,e,t)},d(l){l&&h(e)}}}function Va(s){let e,l,t,n,r,i,f,o;return n=new le({props:{href:"https://osdatahub.os.uk/downloads/open/OpenRoads",$$slots:{default:[Ja]},$$scope:{ctx:s}}}),f=new Te({}),{c(){e=S("span"),l=S("p"),t=y("Data from "),w(n.$$.fragment),r=y(`, as of December 2023. The SRN is equivalent to trunk roads.`),i=L(),w(f.$$.fragment),F(e,"slot","help")},m(a,u){d(a,e,u),p(e,l),p(l,t),b(n,l,null),p(l,r),p(e,i),b(f,e,null),o=!0},p(a,u){const c={};u&32&&(c.$$scope={dirty:u,ctx:a}),n.$set(c)},i(a){o||(_(n.$$.fragment,a),_(f.$$.fragment,a),o=!0)},o(a){g(n.$$.fragment,a),g(f.$$.fragment,a),o=!1},d(a){a&&h(e),v(n),v(f)}}}function Qa(s){let e,l=(s[4].name??"Unknown SRN road")+"",t;return{c(){e=S("p"),t=y(l)},m(n,r){d(n,e,r),p(e,t)},p(n,r){r&16&&l!==(l=(n[4].name??"Unknown SRN road")+"")&&q(t,l)},d(n){n&&h(e)}}}function Za(s){let e,l;return e=new ae({props:{$$slots:{default:[Qa,({props:t})=>({4:t}),({props:t})=>t?16:0]},$$scope:{ctx:s}}}),{c(){w(e.$$.fragment)},m(t,n){b(e,t,n),l=!0},p(t,n){const r={};n&48&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(_(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){v(e,t)}}}function Ka(s){let e,l;const t=[G(vt),{sourceLayer:vt},{manageHoverState:!0},{eventsIfTopMost:!0},{paint:{"line-color":s[1],"line-width":7,"line-opacity":te(1,.5)}},{layout:{visibility:s[0]?"visible":"none"}}];let n={$$slots:{default:[Za]},$$scope:{ctx:s}};for(let r=0;rE(e,"show",i)),n=new pe({props:{url:`pmtiles://${ce()}/v1/${vt}.pmtiles`,$$slots:{default:[Ka]},$$scope:{ctx:s}}}),{c(){w(e.$$.fragment),t=L(),w(n.$$.fragment)},m(o,a){b(e,o,a),d(o,t,a),b(n,o,a),r=!0},p(o,[a]){const u={};a&32&&(u.$$scope={dirty:a,ctx:o}),!l&&a&1&&(l=!0,u.show=o[0],B(()=>l=!1)),e.$set(u);const c={};a&33&&(c.$$scope={dirty:a,ctx:o}),n.$set(c)},i(o){r||(_(e.$$.fragment,o),_(n.$$.fragment,o),r=!0)},o(o){g(e.$$.fragment,o),g(n.$$.fragment,o),r=!1},d(o){o&&h(t),v(e,o),v(n,o)}}}let vt="srn",xa="Strategic Road Network";function ef(s,e,l){let t,n=x.srn,r=$e(vt);Y(s,r,f=>l(0,t=f));function i(f){t=f,r.set(t)}return[t,n,r,i]}class tf extends K{constructor(e){super(),X(this,e,ef,Xa,J,{})}}function nf(s){let e,l,t;return l=new Se({props:{color:s[1]}}),{c(){e=S("span"),w(l.$$.fragment),F(e,"slot","icon")},m(n,r){d(n,e,r),b(l,e,null),t=!0},p:Q,i(n){t||(_(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&h(e),v(l)}}}function lf(s){let e;return{c(){e=y(`National Cycle Network @@ -111,7 +111,7 @@ import{S as K,i as X,s as J,e as S,b as F,m as ue,c as d,n as Q,d as h,aU as vr, 07 February 2024).`,t=L(),w(n.$$.fragment),F(e,"slot","help")},m(i,f){d(i,e,f),p(e,l),p(e,t),b(n,e,null),r=!0},p:Q,i(i){r||(_(n.$$.fragment,i),r=!0)},o(i){g(n.$$.fragment,i),r=!1},d(i){i&&h(e),v(n)}}}function ac(s){let e,l,t;return e=new Se({props:{color:x.education.schools}}),{c(){w(e.$$.fragment),l=y(` Schools`)},m(n,r){b(e,n,r),d(n,l,r),t=!0},p:Q,i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){g(e.$$.fragment,n),t=!1},d(n){n&&h(l),v(e,n)}}}function fc(s){let e,l,t;return e=new Se({props:{color:x.education.colleges}}),{c(){w(e.$$.fragment),l=y(` Colleges`)},m(n,r){b(e,n,r),d(n,l,r),t=!0},p:Q,i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){g(e.$$.fragment,n),t=!1},d(n){n&&h(l),v(e,n)}}}function uc(s){let e,l,t;return e=new Se({props:{color:x.education.universities}}),{c(){w(e.$$.fragment),l=y(` - Universities`)},m(n,r){b(e,n,r),d(n,l,r),t=!0},p:Q,i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){g(e.$$.fragment,n),t=!1},d(n){n&&h(l),v(e,n)}}}function cc(s){let e,l,t,n,r,i,f,o,a;function u(C){s[3](C)}let c={$$slots:{default:[ac]},$$scope:{ctx:s}};s[0].school!==void 0&&(c.checked=s[0].school),e=new We({props:c}),H.push(()=>E(e,"checked",u));function $(C){s[4](C)}let m={$$slots:{default:[fc]},$$scope:{ctx:s}};s[0].college!==void 0&&(m.checked=s[0].college),n=new We({props:m}),H.push(()=>E(n,"checked",$));function k(C){s[5](C)}let T={$$slots:{default:[uc]},$$scope:{ctx:s}};return s[0].university!==void 0&&(T.checked=s[0].university),f=new We({props:T}),H.push(()=>E(f,"checked",k)),{c(){w(e.$$.fragment),t=L(),w(n.$$.fragment),i=L(),w(f.$$.fragment)},m(C,N){b(e,C,N),d(C,t,N),b(n,C,N),d(C,i,N),b(f,C,N),a=!0},p(C,N){const D={};N&2048&&(D.$$scope={dirty:N,ctx:C}),!l&&N&1&&(l=!0,D.checked=C[0].school,B(()=>l=!1)),e.$set(D);const P={};N&2048&&(P.$$scope={dirty:N,ctx:C}),!r&&N&1&&(r=!0,P.checked=C[0].college,B(()=>r=!1)),n.$set(P);const M={};N&2048&&(M.$$scope={dirty:N,ctx:C}),!o&&N&1&&(o=!0,M.checked=C[0].university,B(()=>o=!1)),f.$set(M)},i(C){a||(_(e.$$.fragment,C),_(n.$$.fragment,C),_(f.$$.fragment,C),a=!0)},o(C){g(e.$$.fragment,C),g(n.$$.fragment,C),g(f.$$.fragment,C),a=!1},d(C){C&&(h(t),h(i)),v(e,C),v(n,C),v(f,C)}}}function pc(s){let e,l,t;return l=new Ye({props:{$$slots:{default:[cc]},$$scope:{ctx:s}}}),{c(){e=S("div"),w(l.$$.fragment),F(e,"slot","controls"),ue(e,"border","1px solid black"),ue(e,"padding","8px")},m(n,r){d(n,e,r),b(l,e,null),t=!0},p(n,r){const i={};r&2049&&(i.$$scope={dirty:r,ctx:n}),l.$set(i)},i(n){t||(_(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&h(e),v(l)}}}function $c(s){let e,l=(s[10].name??"Unnamed institution")+"",t;return{c(){e=S("p"),t=y(l)},m(n,r){d(n,e,r),p(e,t)},p(n,r){r&1024&&l!==(l=(n[10].name??"Unnamed institution")+"")&&q(t,l)},d(n){n&&h(e)}}}function mc(s){let e,l;return e=new ae({props:{$$slots:{default:[$c,({props:t})=>({10:t}),({props:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){w(e.$$.fragment)},m(t,n){b(e,t,n),l=!0},p(t,n){const r={};n&3072&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(_(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){v(e,t)}}}function _c(s){let e,l;const t=[G(Ot),{sourceLayer:Ot},{paint:{"fill-color":Ke(["get","type"],{school:x.education.schools,college:x.education.colleges,university:x.education.universities},"grey"),"fill-opacity":te(.7,1)}},{layout:{visibility:s[0].show?"visible":"none"}},{filter:s[2](s[0])},{manageHoverState:!0},{eventsIfTopMost:!0}];let n={$$slots:{default:[mc]},$$scope:{ctx:s}};for(let r=0;rE(e,"show",i)),n=new pe({props:{url:`pmtiles://${ce()}/v1/${Ot}.pmtiles`,$$slots:{default:[_c]},$$scope:{ctx:s}}}),{c(){w(e.$$.fragment),t=L(),w(n.$$.fragment)},m(o,a){b(e,o,a),d(o,t,a),b(n,o,a),r=!0},p(o,[a]){const u={};a&2049&&(u.$$scope={dirty:a,ctx:o}),!l&&a&1&&(l=!0,u.show=o[0].show,B(()=>l=!1)),e.$set(u);const c={};a&2049&&(c.$$scope={dirty:a,ctx:o}),n.$set(c)},i(o){r||(_(e.$$.fragment,o),_(n.$$.fragment,o),r=!0)},o(o){g(e.$$.fragment,o),g(n.$$.fragment,o),r=!1},d(o){o&&h(t),v(e,o),v(n,o)}}}let Ot="education",dc="Education";function hc(s){return{show:!0,school:s.includes("school"),college:s.includes("college"),university:s.includes("university")}}function wc(s,e,l){let t,n=["school","college","university"],r={show:!1,school:!0,college:!0,university:!0};function i(m){return m.show?n.filter(k=>m[k]).join(","):null}let f=Gt(Ot,r,i,hc);Y(s,f,m=>l(0,t=m));function o(m){let k=n.filter(T=>m[T]);return["in",["get","type"],["literal",k]]}function a(m){s.$$.not_equal(t.school,m)&&(t.school=m,f.set(t))}function u(m){s.$$.not_equal(t.college,m)&&(t.college=m,f.set(t))}function c(m){s.$$.not_equal(t.university,m)&&(t.university=m,f.set(t))}function $(m){s.$$.not_equal(t.show,m)&&(t.show=m,f.set(t))}return[t,f,o,a,u,c,$]}class bc extends K{constructor(e){super(),X(this,e,wc,gc,J,{})}}function vc(s){let e,l,t;return l=new Se({props:{color:x.hospitals}}),{c(){e=S("span"),w(l.$$.fragment),F(e,"slot","icon")},m(n,r){d(n,e,r),b(l,e,null),t=!0},p:Q,i(n){t||(_(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&h(e),v(l)}}}function kc(s){let e;return{c(){e=y("hospital")},m(l,t){d(l,e,t)},d(l){l&&h(e)}}}function yc(s){let e,l,t,n,r,i,f,o;return n=new le({props:{href:"https://wiki.openstreetmap.org/wiki/Tag:amenity%3Dhospital",$$slots:{default:[kc]},$$scope:{ctx:s}}}),f=new Xe({}),{c(){e=S("span"),l=S("p"),t=y("This shows "),w(n.$$.fragment),r=y(` data from OpenStreetMap (as of 9 August 2023). It doesn't include + Universities`)},m(n,r){b(e,n,r),d(n,l,r),t=!0},p:Q,i(n){t||(_(e.$$.fragment,n),t=!0)},o(n){g(e.$$.fragment,n),t=!1},d(n){n&&h(l),v(e,n)}}}function cc(s){let e,l,t,n,r,i,f,o,a;function u(C){s[3](C)}let c={$$slots:{default:[ac]},$$scope:{ctx:s}};s[0].school!==void 0&&(c.checked=s[0].school),e=new We({props:c}),H.push(()=>E(e,"checked",u));function $(C){s[4](C)}let m={$$slots:{default:[fc]},$$scope:{ctx:s}};s[0].college!==void 0&&(m.checked=s[0].college),n=new We({props:m}),H.push(()=>E(n,"checked",$));function k(C){s[5](C)}let T={$$slots:{default:[uc]},$$scope:{ctx:s}};return s[0].university!==void 0&&(T.checked=s[0].university),f=new We({props:T}),H.push(()=>E(f,"checked",k)),{c(){w(e.$$.fragment),t=L(),w(n.$$.fragment),i=L(),w(f.$$.fragment)},m(C,N){b(e,C,N),d(C,t,N),b(n,C,N),d(C,i,N),b(f,C,N),a=!0},p(C,N){const D={};N&2048&&(D.$$scope={dirty:N,ctx:C}),!l&&N&1&&(l=!0,D.checked=C[0].school,B(()=>l=!1)),e.$set(D);const P={};N&2048&&(P.$$scope={dirty:N,ctx:C}),!r&&N&1&&(r=!0,P.checked=C[0].college,B(()=>r=!1)),n.$set(P);const M={};N&2048&&(M.$$scope={dirty:N,ctx:C}),!o&&N&1&&(o=!0,M.checked=C[0].university,B(()=>o=!1)),f.$set(M)},i(C){a||(_(e.$$.fragment,C),_(n.$$.fragment,C),_(f.$$.fragment,C),a=!0)},o(C){g(e.$$.fragment,C),g(n.$$.fragment,C),g(f.$$.fragment,C),a=!1},d(C){C&&(h(t),h(i)),v(e,C),v(n,C),v(f,C)}}}function pc(s){let e,l,t;return l=new Ye({props:{small:!0,$$slots:{default:[cc]},$$scope:{ctx:s}}}),{c(){e=S("div"),w(l.$$.fragment),F(e,"slot","controls"),ue(e,"border","1px solid black"),ue(e,"padding","8px")},m(n,r){d(n,e,r),b(l,e,null),t=!0},p(n,r){const i={};r&2049&&(i.$$scope={dirty:r,ctx:n}),l.$set(i)},i(n){t||(_(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&h(e),v(l)}}}function $c(s){let e,l=(s[10].name??"Unnamed institution")+"",t;return{c(){e=S("p"),t=y(l)},m(n,r){d(n,e,r),p(e,t)},p(n,r){r&1024&&l!==(l=(n[10].name??"Unnamed institution")+"")&&q(t,l)},d(n){n&&h(e)}}}function mc(s){let e,l;return e=new ae({props:{$$slots:{default:[$c,({props:t})=>({10:t}),({props:t})=>t?1024:0]},$$scope:{ctx:s}}}),{c(){w(e.$$.fragment)},m(t,n){b(e,t,n),l=!0},p(t,n){const r={};n&3072&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(_(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){v(e,t)}}}function _c(s){let e,l;const t=[G(Ot),{sourceLayer:Ot},{paint:{"fill-color":Ke(["get","type"],{school:x.education.schools,college:x.education.colleges,university:x.education.universities},"grey"),"fill-opacity":te(.7,1)}},{layout:{visibility:s[0].show?"visible":"none"}},{filter:s[2](s[0])},{manageHoverState:!0},{eventsIfTopMost:!0}];let n={$$slots:{default:[mc]},$$scope:{ctx:s}};for(let r=0;rE(e,"show",i)),n=new pe({props:{url:`pmtiles://${ce()}/v1/${Ot}.pmtiles`,$$slots:{default:[_c]},$$scope:{ctx:s}}}),{c(){w(e.$$.fragment),t=L(),w(n.$$.fragment)},m(o,a){b(e,o,a),d(o,t,a),b(n,o,a),r=!0},p(o,[a]){const u={};a&2049&&(u.$$scope={dirty:a,ctx:o}),!l&&a&1&&(l=!0,u.show=o[0].show,B(()=>l=!1)),e.$set(u);const c={};a&2049&&(c.$$scope={dirty:a,ctx:o}),n.$set(c)},i(o){r||(_(e.$$.fragment,o),_(n.$$.fragment,o),r=!0)},o(o){g(e.$$.fragment,o),g(n.$$.fragment,o),r=!1},d(o){o&&h(t),v(e,o),v(n,o)}}}let Ot="education",dc="Education";function hc(s){return{show:!0,school:s.includes("school"),college:s.includes("college"),university:s.includes("university")}}function wc(s,e,l){let t,n=["school","college","university"],r={show:!1,school:!0,college:!0,university:!0};function i(m){return m.show?n.filter(k=>m[k]).join(","):null}let f=Gt(Ot,r,i,hc);Y(s,f,m=>l(0,t=m));function o(m){let k=n.filter(T=>m[T]);return["in",["get","type"],["literal",k]]}function a(m){s.$$.not_equal(t.school,m)&&(t.school=m,f.set(t))}function u(m){s.$$.not_equal(t.college,m)&&(t.college=m,f.set(t))}function c(m){s.$$.not_equal(t.university,m)&&(t.university=m,f.set(t))}function $(m){s.$$.not_equal(t.show,m)&&(t.show=m,f.set(t))}return[t,f,o,a,u,c,$]}class bc extends K{constructor(e){super(),X(this,e,wc,gc,J,{})}}function vc(s){let e,l,t;return l=new Se({props:{color:x.hospitals}}),{c(){e=S("span"),w(l.$$.fragment),F(e,"slot","icon")},m(n,r){d(n,e,r),b(l,e,null),t=!0},p:Q,i(n){t||(_(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&h(e),v(l)}}}function kc(s){let e;return{c(){e=y("hospital")},m(l,t){d(l,e,t)},d(l){l&&h(e)}}}function yc(s){let e,l,t,n,r,i,f,o;return n=new le({props:{href:"https://wiki.openstreetmap.org/wiki/Tag:amenity%3Dhospital",$$slots:{default:[kc]},$$scope:{ctx:s}}}),f=new Xe({}),{c(){e=S("span"),l=S("p"),t=y("This shows "),w(n.$$.fragment),r=y(` data from OpenStreetMap (as of 9 August 2023). It doesn't include outpatient clinics or individual doctor's offices.`),i=L(),w(f.$$.fragment),F(e,"slot","help")},m(a,u){d(a,e,u),p(e,l),p(l,t),b(n,l,null),p(l,r),p(e,i),b(f,e,null),o=!0},p(a,u){const c={};u&16&&(c.$$scope={dirty:u,ctx:a}),n.$set(c)},i(a){o||(_(n.$$.fragment,a),_(f.$$.fragment,a),o=!0)},o(a){g(n.$$.fragment,a),g(f.$$.fragment,a),o=!1},d(a){a&&h(e),v(n),v(f)}}}function Sc(s){let e,l=(s[3].name??"Unnamed hospital")+"",t;return{c(){e=S("p"),t=y(l)},m(n,r){d(n,e,r),p(e,t)},p(n,r){r&8&&l!==(l=(n[3].name??"Unnamed hospital")+"")&&q(t,l)},d(n){n&&h(e)}}}function Tc(s){let e,l;return e=new ae({props:{$$slots:{default:[Sc,({props:t})=>({3:t}),({props:t})=>t?8:0]},$$scope:{ctx:s}}}),{c(){w(e.$$.fragment)},m(t,n){b(e,t,n),l=!0},p(t,n){const r={};n&24&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(_(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){v(e,t)}}}function Cc(s){let e,l;const t=[G(Nt),{sourceLayer:Nt},{paint:{"fill-color":x.hospitals,"fill-opacity":te(.7,1)}},{layout:{visibility:s[0]?"visible":"none"}},{manageHoverState:!0},{eventsIfTopMost:!0}];let n={$$slots:{default:[Tc]},$$scope:{ctx:s}};for(let r=0;rE(e,"show",i)),n=new pe({props:{url:`pmtiles://${ce()}/v1/${Nt}.pmtiles`,$$slots:{default:[Cc]},$$scope:{ctx:s}}}),{c(){w(e.$$.fragment),t=L(),w(n.$$.fragment)},m(o,a){b(e,o,a),d(o,t,a),b(n,o,a),r=!0},p(o,[a]){const u={};a&16&&(u.$$scope={dirty:a,ctx:o}),!l&&a&1&&(l=!0,u.show=o[0],B(()=>l=!1)),e.$set(u);const c={};a&17&&(c.$$scope={dirty:a,ctx:o}),n.$set(c)},i(o){r||(_(e.$$.fragment,o),_(n.$$.fragment,o),r=!0)},o(o){g(e.$$.fragment,o),g(n.$$.fragment,o),r=!1},d(o){o&&h(t),v(e,o),v(n,o)}}}let Nt="hospitals",Mc="Hospitals";function Ic(s,e,l){let t,n=$e(Nt);Y(s,n,i=>l(0,t=i));function r(i){t=i,n.set(t)}return[t,n,r]}class Oc extends K{constructor(e){super(),X(this,e,Ic,Lc,J,{})}}function Nc(s){let e,l;return{c(){e=S("img"),F(e,"slot","icon"),tn(e.src,l=zr)||F(e,"src",l),F(e,"alt","A logo representing a train")},m(t,n){d(t,e,n)},p:Q,d(t){t&&h(e)}}}function Pc(s){let e;return{c(){e=y("railway station")},m(l,t){d(l,e,t)},d(l){l&&h(e)}}}function jc(s){let e;return{c(){e=y(`National Rail `)},m(l,t){d(l,e,t)},d(l){l&&h(e)}}}function Rc(s){let e,l,t,n,r,i,f,o,a,u,c,$,m;return n=new le({props:{href:"https://wiki.openstreetmap.org/wiki/Tag:railway%3Dstation",$$slots:{default:[Pc]},$$scope:{ctx:s}}}),a=new le({props:{href:"https://www.nationalrail.co.uk/",$$slots:{default:[jc]},$$scope:{ctx:s}}}),$=new Xe({}),{c(){e=S("div"),l=S("p"),t=y("This shows "),w(n.$$.fragment),r=y(" data from OpenStreetMap (as of 9 August 2023)."),i=L(),f=S("p"),o=y("Icon from "),w(a.$$.fragment),u=y(". (Note that not all stations shown are National Rail.)"),c=L(),w($.$$.fragment),F(e,"slot","help")},m(k,T){d(k,e,T),p(e,l),p(l,t),b(n,l,null),p(l,r),p(e,i),p(e,f),p(f,o),b(a,f,null),p(f,u),p(e,c),b($,e,null),m=!0},p(k,T){const C={};T&16&&(C.$$scope={dirty:T,ctx:k}),n.$set(C);const N={};T&16&&(N.$$scope={dirty:T,ctx:k}),a.$set(N)},i(k){m||(_(n.$$.fragment,k),_(a.$$.fragment,k),_($.$$.fragment,k),m=!0)},o(k){g(n.$$.fragment,k),g(a.$$.fragment,k),g($.$$.fragment,k),m=!1},d(k){k&&h(e),v(n),v(a),v($)}}}function Dc(s){let e,l=(s[3].name??"Unnamed railway station")+"",t;return{c(){e=S("p"),t=y(l)},m(n,r){d(n,e,r),p(e,t)},p(n,r){r&8&&l!==(l=(n[3].name??"Unnamed railway station")+"")&&q(t,l)},d(n){n&&h(e)}}}function Ac(s){let e,l;return e=new ae({props:{$$slots:{default:[Dc,({props:t})=>({3:t}),({props:t})=>t?8:0]},$$scope:{ctx:s}}}),{c(){w(e.$$.fragment)},m(t,n){b(e,t,n),l=!0},p(t,n){const r={};n&24&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(_(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){v(e,t)}}}function Fc(s){let e,l;const t=[G(Zt),{layout:{"icon-image":"railway_station","icon-size":1,"icon-allow-overlap":!0,visibility:s[0]?"visible":"none"}}];let n={$$slots:{default:[Ac]},$$scope:{ctx:s}};for(let r=0;rE(e,"show",i)),n=new qt({props:{data:`${ce()}/v1/${Zt}.geojson`,$$slots:{default:[Fc]},$$scope:{ctx:s}}}),{c(){w(e.$$.fragment),t=L(),w(n.$$.fragment)},m(o,a){b(e,o,a),d(o,t,a),b(n,o,a),r=!0},p(o,[a]){const u={};a&16&&(u.$$scope={dirty:a,ctx:o}),!l&&a&1&&(l=!0,u.show=o[0],B(()=>l=!1)),e.$set(u);const c={};a&17&&(c.$$scope={dirty:a,ctx:o}),n.$set(c)},i(o){r||(_(e.$$.fragment,o),_(n.$$.fragment,o),r=!0)},o(o){g(e.$$.fragment,o),g(n.$$.fragment,o),r=!1},d(o){o&&h(t),v(e,o),v(n,o)}}}let Zt="railway_stations",Gc="Railway stations";function zc(s,e,l){let t,n=$e(Zt);Y(s,n,i=>l(0,t=i));function r(i){t=i,n.set(t)}return[t,n,r]}class Hc extends K{constructor(e){super(),X(this,e,zc,qc,J,{})}}function Ec(s){let e,l,t;return l=new Se({props:{color:x.sports_spaces}}),{c(){e=S("span"),w(l.$$.fragment),F(e,"slot","icon")},m(n,r){d(n,e,r),b(l,e,null),t=!0},p:Q,i(n){t||(_(l.$$.fragment,n),t=!0)},o(n){g(l.$$.fragment,n),t=!1},d(n){n&&h(e),v(l)}}}function Bc(s){let e;return{c(){e=y("sports pitches")},m(l,t){d(l,e,t)},d(l){l&&h(e)}}}function Uc(s){let e;return{c(){e=y("sports centres")},m(l,t){d(l,e,t)},d(l){l&&h(e)}}}function Wc(s){let e,l,t,n,r,i,f,o,a,u;return n=new le({props:{href:"https://wiki.openstreetmap.org/wiki/Tag:leisure%3Dpitch",$$slots:{default:[Bc]},$$scope:{ctx:s}}}),i=new le({props:{href:"https://wiki.openstreetmap.org/wiki/Tag:leisure%3Dsports_centre",$$slots:{default:[Uc]},$$scope:{ctx:s}}}),a=new Xe({}),{c(){e=S("span"),l=S("p"),t=y("This shows "),w(n.$$.fragment),r=y(" and "),w(i.$$.fragment),f=y(" data from OpenStreetMap (as of 9 August 2023)."),o=L(),w(a.$$.fragment),F(e,"slot","help")},m(c,$){d(c,e,$),p(e,l),p(l,t),b(n,l,null),p(l,r),b(i,l,null),p(l,f),p(e,o),b(a,e,null),u=!0},p(c,$){const m={};$&16&&(m.$$scope={dirty:$,ctx:c}),n.$set(m);const k={};$&16&&(k.$$scope={dirty:$,ctx:c}),i.$set(k)},i(c){u||(_(n.$$.fragment,c),_(i.$$.fragment,c),_(a.$$.fragment,c),u=!0)},o(c){g(n.$$.fragment,c),g(i.$$.fragment,c),g(a.$$.fragment,c),u=!1},d(c){c&&h(e),v(n),v(i),v(a)}}}function Yc(s){let e,l=(s[3].name??"Unnamed sports space")+"",t;return{c(){e=S("p"),t=y(l)},m(n,r){d(n,e,r),p(e,t)},p(n,r){r&8&&l!==(l=(n[3].name??"Unnamed sports space")+"")&&q(t,l)},d(n){n&&h(e)}}}function Jc(s){let e,l;return e=new ae({props:{$$slots:{default:[Yc,({props:t})=>({3:t}),({props:t})=>t?8:0]},$$scope:{ctx:s}}}),{c(){w(e.$$.fragment)},m(t,n){b(e,t,n),l=!0},p(t,n){const r={};n&24&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(_(e.$$.fragment,t),l=!0)},o(t){g(e.$$.fragment,t),l=!1},d(t){v(e,t)}}}function Vc(s){let e,l;const t=[G(Pt),{sourceLayer:Pt},{paint:{"fill-color":x.sports_spaces,"fill-opacity":te(.7,1)}},{layout:{visibility:s[0]?"visible":"none"}},{manageHoverState:!0},{eventsIfTopMost:!0}];let n={$$slots:{default:[Jc]},$$scope:{ctx:s}};for(let r=0;rE(e,"show",i)),n=new pe({props:{url:`pmtiles://${ce()}/v1/${Pt}.pmtiles`,$$slots:{default:[Vc]},$$scope:{ctx:s}}}),{c(){w(e.$$.fragment),t=L(),w(n.$$.fragment)},m(o,a){b(e,o,a),d(o,t,a),b(n,o,a),r=!0},p(o,[a]){const u={};a&16&&(u.$$scope={dirty:a,ctx:o}),!l&&a&1&&(l=!0,u.show=o[0],B(()=>l=!1)),e.$set(u);const c={};a&17&&(c.$$scope={dirty:a,ctx:o}),n.$set(c)},i(o){r||(_(e.$$.fragment,o),_(n.$$.fragment,o),r=!0)},o(o){g(e.$$.fragment,o),g(n.$$.fragment,o),r=!1},d(o){o&&h(t),v(e,o),v(n,o)}}}let Pt="sports_spaces",Zc="Sports spaces";function Kc(s,e,l){let t,n=$e(Pt);Y(s,n,i=>l(0,t=i));function r(i){t=i,n.set(t)}return[t,n,r]}class Xc extends K{constructor(e){super(),X(this,e,Kc,Qc,J,{})}}function xc(s){let e;return{c(){e=y("DfT stats19")},m(l,t){d(l,e,t)},d(l){l&&h(e)}}}function ep(s){let e;return{c(){e=y("documented by DfT")},m(l,t){d(l,e,t)},d(l){l&&h(e)}}}function tp(s){let e,l,t,n,r,i,f,o,a,u,c,$,m,k,T,C,N,D,P,M,O,I,R,j;return n=new le({props:{href:"https://www.data.gov.uk/dataset/cb7ae6f0-4be6-4935-9277-47e5ce24a11f/road-safety-data",$$slots:{default:[xc]},$$scope:{ctx:s}}}),D=new le({props:{href:"https://www.gov.uk/guidance/road-accident-and-safety-statistics-guidance",$$slots:{default:[ep]},$$scope:{ctx:s}}}),R=new Te({}),{c(){e=S("span"),l=S("p"),t=y("This layer shows collisions recorded in the "),w(n.$$.fragment),r=y(" dataset. Please note these limitations:"),i=L(),f=S("ul"),o=S("li"),o.textContent="Only collisions between 2017 and 2022 are included",a=L(),u=S("li"),u.textContent=`This tool is intended to be used at high-zoom levels, while inspecting a scheme or development area. Not all points are shown at lower zoom diff --git a/browse_layout_layers/browse.html b/browse_layout_layers/browse.html index 8c562dc6..f37ba59e 100644 --- a/browse_layout_layers/browse.html +++ b/browse_layout_layers/browse.html @@ -7,7 +7,7 @@ content="initial-scale=1,maximum-scale=1,user-scalable=no" /> ATIP v2 scheme browser - +