(()=>{"use strict";var e,t={9922:(e,t,n)=>{var o=n(4804),r=n(9800),a=n(7761),i=n(9529),c=n(6424),l=n(5460),s=n(2076),d=n(8456),w=n(1900),u=n(4993),m=n(7774),p=n(8070),f=n(3969),g=n(5761),v=n(3797),h=n(4949),Z=n(3017),b=n(196);const y=new u.Z({geometry:new w.Z([7e5,2e5])});y.setStyle(new d.ZP({image:new s.Z({anchor:[.5,1],src:"data/icon.png"}),text:new l.Z({text:"Icon with anchor on the bottom center",stroke:new m.Z({color:"black",width:3}),fill:new f.Z({color:"white"})})}));const O=new u.Z({geometry:new w.Z([1e6,2e5])});O.setStyle(new d.ZP({image:new s.Z({src:"data/image-static.png"}),text:new l.Z({text:"Default positioning",stroke:new m.Z({color:"black",width:3}),fill:new f.Z({color:"white"})})}));const k=new v.Z({features:[y,O]}),x=new h.Z({source:k}),C=new g.Z({interactions:(0,p.c)(),layers:[new c.Z({source:new i.Z}),x],target:"map2d",controls:(0,a.c)({attributionOptions:{collapsible:!1}}),view:new r.ZP({center:[85e4,2e5],zoom:7})});Cesium.Ion.defaultAccessToken=b.x;const P=new o.Z({map:C,target:"map3d"}),E=P.getCesiumScene();Cesium.createWorldTerrainAsync().then((e=>E.terrainProvider=e)),P.setEnabled(!0),window.toggleClampToGround=function(){let e;x.get("altitudeMode")||(e="clampToGround"),x.set("altitudeMode",e),C.removeLayer(x),C.addLayer(x)},window.ol3d=P,window.scene=E,document.getElementById("enable").addEventListener("click",(()=>P.setEnabled(!P.getEnabled()))),P.enableAutoRenderLoop();const j=E.camera,T=(0,Z.DQ)(E);if(T){const e={},t=Cesium.Matrix4.fromTranslation(T),n=j.right;(0,Z.Bq)(j,-Math.PI/4,n,t,e)}}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e].call(a.exports,a,a.exports,o),a.exports}o.m=t,e=[],o.O=(t,n,r,a)=>{if(!n){var i=1/0;for(d=0;d<e.length;d++){for(var[n,r,a]=e[d],c=!0,l=0;l<n.length;l++)(!1&a||i>=a)&&Object.keys(o.O).every((e=>o.O[e](n[l])))?n.splice(l--,1):(c=!1,a<i&&(i=a));if(c){e.splice(d--,1);var s=r();void 0!==s&&(t=s)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[n,r,a]},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.j=39,(()=>{var e={39:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,a,[i,c,l]=n,s=0;if(i.some((t=>0!==e[t]))){for(r in c)o.o(c,r)&&(o.m[r]=c[r]);if(l)var d=l(o)}for(t&&t(n);s<i.length;s++)a=i[s],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(d)},n=self.webpackChunkol_cesium=self.webpackChunkol_cesium||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=o.O(void 0,[351],(()=>o(9922)));r=o.O(r)})();
//# sourceMappingURL=icon-position.ded78f97180e0dc8f0c3.js.map