(()=>{"use strict";var e,t={4330:(e,t,n)=>{var r=n(4804),o=n(5761),s=(n(6355),n(6424)),i=n(7811),l=n(9800),c=n(8542),a=n(3522),u=n(7156),p=n(7774),d=n(8456),f=n(9529),v=n(196);Cesium.Ion.defaultAccessToken=v.x;(0,i.U2)("EPSG:3857");let m=0;function w(e="purple"){return[new d.ZP({stroke:new p.Z({color:e,width:4})})]}const b=[w(),w("red")];const h=function(e,t){const n=new u.Z({url:e,attributions:"Schweizmobil",format:new c.Z}),r=b[m];return n.set("olcs_skip",!1),n.set("olcs_minimumLevel",6),new a.Z({source:n,extent:[572215,5684416,1277662,6145307],opacity:.6,style:r})}("https://map.schweizmobil.ch/api/4/mvt_routes/wander/3857/{z}/{x}/{y}.pbf?olcs");const g=new o.Z({layers:[function(){const e=new f.Z;return new s.Z({source:e})}(),h],target:"map",view:new l.ZP}),y=new r.Z({map:g});setTimeout((()=>{y.setEnabled(!0)}));const O=[572215,5684416,1277662,6145307],k=-5e4;g.getView().fit([O[0]-k,O[1]-k,O[2]+k,O[3]+k]),document.getElementById("enable").addEventListener("click",(()=>y.setEnabled(!y.getEnabled()))),document.getElementById("toggle").addEventListener("click",(()=>{m=(m+1)%2,h.setStyle(b[m])}))}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var s=n[e]={exports:{}};return t[e].call(s.exports,s,s.exports,r),s.exports}r.m=t,e=[],r.O=(t,n,o,s)=>{if(!n){var i=1/0;for(u=0;u<e.length;u++){for(var[n,o,s]=e[u],l=!0,c=0;c<n.length;c++)(!1&s||i>=s)&&Object.keys(r.O).every((e=>r.O[e](n[c])))?n.splice(c--,1):(l=!1,s<i&&(i=s));if(l){e.splice(u--,1);var a=o();void 0!==a&&(t=a)}}return t}s=s||0;for(var u=e.length;u>0&&e[u-1][2]>s;u--)e[u]=e[u-1];e[u]=[n,o,s]},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.j=476,(()=>{var e={476:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,s,[i,l,c]=n,a=0;if(i.some((t=>0!==e[t]))){for(o in l)r.o(l,o)&&(r.m[o]=l[o]);if(c)var u=c(r)}for(t&&t(n);a<i.length;a++)s=i[a],r.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return r.O(u)},n=self.webpackChunkol_cesium=self.webpackChunkol_cesium||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o=r.O(void 0,[351],(()=>r(4330)));o=r.O(o)})();
//# sourceMappingURL=mvt.47f9521fe4525a762e9b.js.map