!function(t){function e(e){for(var o,c,a=e[0],u=e[1],s=e[2],p=0,f=[];p<a.length;p++)c=a[p],Object.prototype.hasOwnProperty.call(r,c)&&r[c]&&f.push(r[c][0]),r[c]=0;for(o in u)Object.prototype.hasOwnProperty.call(u,o)&&(t[o]=u[o]);for(l&&l(e);f.length;)f.shift()();return i.push.apply(i,s||[]),n()}function n(){for(var t,e=0;e<i.length;e++){for(var n=i[e],o=!0,a=1;a<n.length;a++){var u=n[a];0!==r[u]&&(o=!1)}o&&(i.splice(e--,1),t=c(c.s=n[0]))}return t}var o={},r={16:0},i=[];function c(e){if(o[e])return o[e].exports;var n=o[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.m=t,c.c=o,c.d=function(t,e,n){c.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},c.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},c.t=function(t,e){if(1&e&&(t=c(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)c.d(n,o,function(e){return t[e]}.bind(null,o));return n},c.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return c.d(e,"a",e),e},c.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},c.p="";var a=window.webpackJsonp=window.webpackJsonp||[],u=a.push.bind(a);a.push=e,a=a.slice();for(var s=0;s<a.length;s++)e(a[s]);var l=u;i.push([212,0]),n()}({212:function(t,e,n){t.exports=n(213)},213:function(t,e,n){"use strict";n.r(e);var o=n(27),r=n(25),i=n(21),c=n(38),a=n(24),u=n(17);const s=new(n(26).a)({layers:[new u.a({source:new a.b})],target:"map2d",controls:Object(c.a)({attributionOptions:{collapsible:!1}}),view:new i.a({center:[333333,15e5],zoom:6})});Cesium.Ion.defaultAccessToken="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI0MzAyNzUyYi0zY2QxLTQxZDItODRkOS1hNTA3MDU3ZTBiMDUiLCJpZCI6MjU0MSwiaWF0IjoxNTMzNjI1MTYwfQ.oHn1SUWJa12esu7XUUtEoc1BbEbuZpRocLetw6M6_AA";const l=new r.a({map:s});l.getCesiumScene().terrainProvider=Cesium.createWorldTerrain(),l.setEnabled(!0);const p=function(t){this.ol3d_=t};p.MAX_TILT=7*Math.PI/16,p.MIN_TILT=0,p.prototype.getOlView=function(){return this.ol3d_.getOlView()},p.prototype.getTiltRange=function(){return[p.MIN_TILT,p.MAX_TILT]},p.prototype.getHeading=function(){return this.getOlView().getRotation()||0},p.prototype.getTiltOnGlobe=function(){const t=this.ol3d_.getCesiumScene();return-o.b.computeSignedTiltAngleOnGlobe(t)},p.prototype.resetToNorthZenith=function(t){const e=this.ol3d_.getCesiumScene(),n=e.camera,r=o.b.pickBottomPoint(e);if(!r)return void t();const i=this.getHeading(),c=o.b.computeAngleToZenith(e,r);o.b.setHeadingUsingBottomCenter(e,i,r);const a=Cesium.Matrix4.fromTranslation(r),u=n.right,s={callback:t};o.b.rotateAroundAxis(n,-c,u,a,s)},p.prototype.rotate=function(t){const e=this.ol3d_.getOlView(),n=e.getRotation();e.animate({rotation:n+t,duration:250})},p.prototype.setHeading=function(t){const e=this.ol3d_.getCesiumScene(),n=o.b.pickBottomPoint(e);n&&o.b.setHeadingUsingBottomCenter(e,t,n)},p.prototype.tiltOnGlobe=function(t){const e=this.ol3d_.getCesiumScene(),n=e.camera,r=o.b.pickBottomPoint(e);if(!r)return;const i=Cesium.Matrix4.fromTranslation(r),c=n.right;(0,o.b.rotateAroundAxis)(n,-t,c,i,{})},window.control=new p(l)}});
//# sourceMappingURL=rotate.16df17655bbde5cd0259.js.map