!function(e){function t(t){for(var o,i,c=t[0],l=t[1],u=t[2],d=0,p=[];d<c.length;d++)i=c[d],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&p.push(r[i][0]),r[i]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);for(s&&s(t);p.length;)p.shift()();return a.push.apply(a,u||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],o=!0,c=1;c<n.length;c++){var l=n[c];0!==r[l]&&(o=!1)}o&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var o={},r={6:0},a=[];function i(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var c=window.webpackJsonp=window.webpackJsonp||[],l=c.push.bind(c);c.push=t,c=c.slice();for(var u=0;u<c.length;u++)t(c[u]);var s=l;a.push([193,0]),n()}({193:function(e,t,n){e.exports=n(194)},194:function(e,t,n){"use strict";n.r(t);var o=n(25),r=n(21),a=n(38),i=n(24),c=n(17),l=n(78),u=n(68),s=n(19),d=n(34),p=n(32),f=n(22),w=n(103),b=n(31),y=n(26),g=n(43),m=n(55),h=n(27);const v=new p.a({geometry:new d.a([7e5,2e5])});v.setStyle(new s.b({image:new u.a({anchor:[.5,1],src:"data/icon.png"}),text:new l.a({text:"Icon with anchor on the bottom center",stroke:new f.a({color:"black",width:3}),fill:new b.a({color:"white"})})}));const O=new p.a({geometry:new d.a([1e6,2e5])});O.setStyle(new s.b({image:new u.a({src:"data/image-static.png"}),text:new l.a({text:"Default positioning",stroke:new f.a({color:"black",width:3}),fill:new b.a({color:"white"})})}));const M=new g.a({features:[v,O]}),x=new m.a({source:M}),I=new y.a({interactions:Object(w.a)(),layers:[new c.a({source:new i.b}),x],target:"map2d",controls:Object(a.a)({attributionOptions:{collapsible:!1}}),view:new r.a({center:[85e4,2e5],zoom:7})});Cesium.Ion.defaultAccessToken="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI0MzAyNzUyYi0zY2QxLTQxZDItODRkOS1hNTA3MDU3ZTBiMDUiLCJpZCI6MjU0MSwiaWF0IjoxNTMzNjI1MTYwfQ.oHn1SUWJa12esu7XUUtEoc1BbEbuZpRocLetw6M6_AA";const j=new o.a({map:I,target:"map3d"}),k=j.getCesiumScene();k.terrainProvider=Cesium.createWorldTerrain(),j.setEnabled(!0),window.toggleClampToGround=function(){let e;x.get("altitudeMode")||(e="clampToGround"),x.set("altitudeMode",e),I.removeLayer(x),I.addLayer(x)},window.ol3d=j,window.scene=k,document.getElementById("enable").addEventListener("click",()=>j.setEnabled(!j.getEnabled())),j.enableAutoRenderLoop();const T=k.camera,S=h.b.pickBottomPoint(k);if(S){const e={},t=Cesium.Matrix4.fromTranslation(S),n=T.right;(0,h.b.rotateAroundAxis)(T,-Math.PI/4,n,t,e)}}});
//# sourceMappingURL=icon-position.f7d194e762d9647fd935.js.map