UNPKG

ol-cesium

Version:

OpenLayers Cesium integration library

2 lines 2.22 kB
(()=>{"use strict";var e,r={3422:(e,r,t)=>{var n=t(6459),o=t(5761),a=t(9800),s=t(6181),i=t(6424),l=t(7811),c=t(9529),p=t(632),v=t(7858),m=t(196);Cesium.Ion.defaultAccessToken=m.x;const u=(0,l.U2)("EPSG:3857"),d=u.getExtent(),f=(0,s.dz)(d)/256,g=new Array(14),w=new Array(14);for(let e=0;e<14;++e)g[e]=f/Math.pow(2,e),w[e]=e;const b=new o.Z({layers:[new i.Z({source:new c.Z,opacity:.7}),new i.Z({opacity:.7,source:new p.Z({attributions:'Tiles © <a href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/WorldTimeZones/MapServer/WMTS/">ArcGIS</a>',url:"https://sampleserver6.arcgisonline.com/arcgis/rest/services/WorldTimeZones/MapServer/WMTS/",layer:"WorldTimeZones",matrixSet:"GoogleMapsCompatible",format:"image/png",projection:u,tileGrid:new v.Z({origin:(0,s.rL)(d),resolutions:g,matrixIds:w}),style:"default",wrapX:!0})})],target:"map",view:new a.ZP({center:[-11158582,4813697],zoom:4})}),h=new n.ZP({map:b}),y=h.getCesiumScene();Cesium.createWorldTerrainAsync().then((e=>y.terrainProvider=e)),h.setEnabled(!0),document.getElementById("enable").addEventListener("click",(()=>h.setEnabled(!h.getEnabled())))}},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var a=t[e]={exports:{}};return r[e].call(a.exports,a,a.exports,n),a.exports}n.m=r,e=[],n.O=(r,t,o,a)=>{if(!t){var s=1/0;for(p=0;p<e.length;p++){for(var[t,o,a]=e[p],i=!0,l=0;l<t.length;l++)(!1&a||s>=a)&&Object.keys(n.O).every((e=>n.O[e](t[l])))?t.splice(l--,1):(i=!1,a<s&&(s=a));if(i){e.splice(p--,1);var c=o();void 0!==c&&(r=c)}}return r}a=a||0;for(var p=e.length;p>0&&e[p-1][2]>a;p--)e[p]=e[p-1];e[p]=[t,o,a]},n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),n.j=17,(()=>{var e={17:0};n.O.j=r=>0===e[r];var r=(r,t)=>{var o,a,[s,i,l]=t,c=0;if(s.some((r=>0!==e[r]))){for(o in i)n.o(i,o)&&(n.m[o]=i[o]);if(l)var p=l(n)}for(r&&r(t);c<s.length;c++)a=s[c],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(p)},t=self.webpackChunkol_cesium=self.webpackChunkol_cesium||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var o=n.O(void 0,[351],(()=>n(3422)));o=n.O(o)})(); //# sourceMappingURL=wmts.fca8fa89cd2246cce26e.js.map