@nsc-earth-2/layer 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{defaultValue as t,Terrain as e,CesiumTerrainProvider as n,EllipsoidTerrainProvider as s,Rectangle as r,Cesium3DTileset as i,Matrix4 as o,Cartographic as a,Cartesian3 as c,Transforms as h,Matrix3 as u,Math as f,ArcGisMapServerImageryProvider as l,ImageryLayer as p,GeographicTilingScheme as d,Ellipsoid as y,UrlTemplateImageryProvider as w,WebMapServiceImageryProvider as I,WebMapTileServiceImageryProvider as m,KmlDataSource as v}from"cesium";import{GeoJsonPrimitiveLayer as g}from"@nsc-earth-2/primitive-geojson";const E=R;function _(){const t=["1361913qMOjer","valid_bounds","isArray","4340srCuFH","camera","334909JItYre","4LyyHru","7578xukTPh","flyTo","337540WScume","requestRender","terrainProvider","locate","remove","_viewer","scene","285352spgjVC","url","2nKHFte","3396990ALLcDg","bounds","the layer type is not 'TERRAIN'","setTerrain","show","287JCMBeP","TERRAIN","36KnOaAB","/layer.json","3843466bMAVtq","type","then","load"];return(_=function(){return t})()}function R(t,e){const n=_();return(R=function(t,e){return n[t-=456]})(t,e)}!function(){const t=R,e=_();for(;;)try{if(857682===parseInt(t(480))/1*(-parseInt(t(461))/2)+-parseInt(t(475))/3*(parseInt(t(481))/4)+parseInt(t(484))/5+-parseInt(t(462))/6+-parseInt(t(467))/7*(-parseInt(t(459))/8)+-parseInt(t(482))/9*(parseInt(t(478))/10)+parseInt(t(471))/11*(parseInt(t(469))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class T{constructor(t){this[R(457)]=t}[E(474)](s){const r=E;s=t(s,{});if(t(s[r(472)],void 0)!==r(468))throw new Error(r(464));const i=t(s[r(460)],void 0),o=new e(n.fromUrl(i));return this[r(457)][r(458)][r(465)](o),this[r(457)][r(458)][r(485)](),Promise.resolve(o)}[E(456)](t){const e=E,n=new s;this[e(457)][e(486)]=n,this._viewer.scene[e(485)]()}[E(487)](e,n){const s=E;e=t(e,{});const i=t(e[s(460)],void 0);fetch(i+s(470))[s(473)]((t=>t.json())).then((t=>{const e=s;t[e(476)]&&Array[e(477)](t[e(476)])&&4===t[e(476)].length?this[e(457)][e(479)][e(483)]({destination:r.fromDegrees(t[e(476)][0],t[e(476)][1],t[e(476)][2],t[e(476)][3])}):t.bounds&&Array[e(477)](t[e(463)])&&4==t[e(463)].length&&this[e(457)][e(479)].flyTo({destination:r.fromDegrees(t.bounds[0],t[e(463)][1],t[e(463)][2],t[e(463)][3])})}))}[E(466)](t,n){const r=E;if(t instanceof e){if(n)this._viewer[r(458)][r(465)](t);else{const t=new s;this[r(457)].terrainProvider=t}this[r(457)][r(458)][r(485)]()}}}function S(t,e){const n=C();return(S=function(t,e){return n[t-=220]})(t,e)}const L=S;!function(){const t=S,e=C();for(;;)try{if(252492===-parseInt(t(226))/1+parseInt(t(256))/2+-parseInt(t(223))/3*(parseInt(t(225))/4)+parseInt(t(232))/5*(parseInt(t(259))/6)+parseInt(t(228))/7*(-parseInt(t(247))/8)+-parseInt(t(249))/9*(-parseInt(t(242))/10)+-parseInt(t(260))/11*(-parseInt(t(230))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class M{constructor(t){this[S(220)]=t}async load(e){const n=S;e=t(e,{});if("3DTILES"!==t(e[n(241)],void 0))throw new Error(n(234));const s=e[n(253)];if(!s)throw new Error(n(248));const r={longitude:t(e[n(227)],0),latitude:t(e[n(229)],0),altitude:t(e[n(235)],0),azimuth:t(e[n(244)],0)},o=await i[n(221)](s,{dynamicScreenSpaceError:!0,dynamicScreenSpaceErrorDensity:.00278,dynamicScreenSpaceErrorFactor:4,dynamicScreenSpaceErrorHeightFalloff:.25});return this[n(257)](o,r),this[n(220)][n(231)][n(250)].add(o),this._viewer.scene[n(233)](),o}[L(257)](t,e){const n=L,{longitude:s,latitude:r,altitude:i,azimuth:l}=e;let p=new o;if(s&&r){let t=i;0==i&&(t=this[n(220)][n(231)][n(236)].getHeight(a[n(224)](s,r))||0);const e=c[n(224)](s,r,t),d=h[n(243)](e),y=new u(1,0,0,0,1,0,0,0,1),w=u[n(252)](f[n(239)](l));u[n(246)](y,w,y),p=o[n(240)](d,y,new o)}else if(i){const e=new c;o[n(258)](t[n(245)][n(237)],e);const s=a[n(251)](e);if(s){const t=f.toDegrees(s[n(229)]),e=f.toDegrees(s.longitude),r=c[n(224)](e,t,i),a=h[n(243)](r),d=new u(1,0,0,0,1,0,0,0,1),y=u.fromRotationZ(f[n(239)](l));u[n(246)](d,y,d),p=o[n(240)](a,d,new o)}}else if(l){const e=new u(1,0,0,0,1,0,0,0,1),s=u[n(252)](f[n(239)](l));u[n(246)](e,s,e),p=o[n(240)](t.root[n(237)],e,new o)}else p=t.root[n(237)];t[n(245)][n(237)]=p}[L(254)](t){const e=L;t instanceof i&&(this[e(220)][e(231)].primitives[e(254)](t),this[e(220)][e(231)][e(233)]())}[L(222)](t,e){const n=L;e instanceof i&&this[n(220)][n(238)](e)}[L(255)](t,e){const n=L;t instanceof i&&(t[n(255)]=e,this._viewer[n(231)][n(233)]())}}function C(){const t=["22395miunca","requestRender","the layer type is not '3DTILES'","altitude","globe","transform","flyTo","toRadians","multiplyByMatrix3","type","7730mlqLty","eastNorthUpToFixedFrame","azimuth","root","multiply","16Mtqinr","the url is needed","2232jSTIee","primitives","fromCartesian","fromRotationZ","url","remove","show","702456lTscwj","transferTileSet","getTranslation","330uociBF","1202366TImfko","_viewer","fromUrl","locate","372018TKZwVw","fromDegrees","8BqvIow","438945ltgLjj","longitude","622111cUeFYc","latitude","36DLUxBQ","scene"];return(C=function(){return t})()}function b(t,e){const n=x();return(b=function(t,e){return n[t-=232]})(t,e)}const G=b;function x(){const t=["7723242IJdmNG","load","3PQqvYc","readyEvent","show","requestRender","type","GET","remove","extent","fromUrl","5769680ogaWZn","locate","rectangle","the layer type is not 'ARCGIS'","1046124XNiDPa","1249905hJntnw","the url is needed","camera","27237eDUyQp","fromProviderAsync","scene","445538zsuuoK","ARCGIS","imageryLayers","flyTo","then","alpha","token","_viewer","/info/iteminfo?f=pjson","isArray","4060470GvxEvx","2120yBCRZV","getImageryRectangle","ready","fromDegrees","/info/iteminfo?f=pjson&token="];return(x=function(){return t})()}!function(){const t=b,e=x();for(;;)try{if(836229===parseInt(t(268))/1+-parseInt(t(236))/2*(parseInt(t(254))/3)+-parseInt(t(263))/4+-parseInt(t(246))/5+parseInt(t(267))/6+parseInt(t(233))/7*(parseInt(t(247))/8)+parseInt(t(252))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class D{constructor(t){this[b(243)]=t}async[G(253)](e){const n=G;e=t(e,{});if(t(e[n(258)],void 0)!==n(237))throw new Error(n(266));const{url:s,alpha:i,token:o}=e;if(!s)throw new Error(n(269));let a=s;a=o?s+n(251)+o:s+n(244);const c=await fetch(a,{method:n(259)})[n(240)]((t=>t.json()))[n(240)]((t=>{const e=n,s={};return o&&(s[e(242)]=o),t&&t.extent&&Array[e(245)](t[e(261)])&&(s[e(265)]=r[e(250)](t[e(261)][0][0],t[e(261)][0][1],t[e(261)][1][0],t[e(261)][1][1])),s})),h=l[n(262)](s,c),u=p[n(234)](h,{});return i&&(u[n(241)]=i),this._viewer.imageryLayers.add(u),this[n(243)][n(235)][n(257)](),u}async[G(260)](t){const e=G;t instanceof p&&(this._viewer[e(238)][e(260)](t,!0),this._viewer[e(235)][e(257)]())}[G(264)](t,e){const n=G;if(e instanceof p)if(e[n(249)]){const t=e[n(248)]();this._viewer[n(235)][n(232)][n(239)]({destination:t})}else e[n(255)].addEventListener((t=>{const s=n,r=e[s(248)]();this._viewer[s(235)][s(232)][s(239)]({destination:r})}))}[G(256)](t,e){const n=G;t instanceof p&&(t[n(256)]=e,this[n(243)][n(235)][n(257)]())}}const q=B;function A(){const t=["12850380Qbmyea","substr","scene","1463880HIeeDe","type","getImageryRectangle","addEventListener","add","remove","requestRender","5sTefEJ","north","json","maximumLevel","URLTemplate","tilesize","maxzoom","alpha","tileHeight","tileWidth","rectangle","_viewer","readyEvent","fromDegrees","show","west","7465448ANcXhT","meta.json","bounds","locate","proj","9194318IQhguZ","591208jrZFbv","3PMrxov","south","minzoom","3006606lMMoBR","WGS84","5073908CrjnRF","imageryLayers","1iTLjrg"];return(A=function(){return t})()}function B(t,e){const n=A();return(B=function(t,e){return n[t-=470]})(t,e)}!function(){const t=B,e=A();for(;;)try{if(722143===parseInt(t(470))/1*(parseInt(t(503))/2)+parseInt(t(504))/3*(-parseInt(t(509))/4)+-parseInt(t(481))/5*(-parseInt(t(507))/6)+-parseInt(t(502))/7+parseInt(t(497))/8+parseInt(t(471))/9+parseInt(t(474))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class j{constructor(t){this[B(492)]=t}async load(e){const n=B;e=t(e,{});if(t(e[n(475)],void 0)!==n(485))throw new Error("the layer type is not 'URLTemplate'");const{url:s,alpha:i}=e;if(!s)throw new Error("the url is needed");let o=s[n(472)](0,s.indexOf("{z}/{x}/{y}.png"))+n(498);const a=await fetch(o,{method:"GET"}).then((t=>t[n(483)]())).then((t=>{const e=n,i={url:s};return t&&t[e(499)]&&(i[e(491)]=r[e(494)](t[e(499)][e(496)],t.bounds[e(505)],t.bounds.east,t[e(499)][e(482)])),t&&4326==t[e(501)]&&(i.tilingScheme=new d({ellipsoid:y[e(508)]})),t&&t[e(487)]&&(i[e(484)]=t[e(487)]),t&&t[e(506)]&&(i.minimumLevel=t[e(506)]),t&&t.tilesize&&(i[e(490)]=i[e(489)]=t[e(486)]),i})),c=new w(a),h=new p(c,{});return i&&(h[n(488)]=i),this._viewer[n(510)][n(478)](h),this[n(492)][n(473)].requestRender(),h}async[q(479)](t){const e=q;t instanceof p&&(this[e(492)][e(510)].remove(t,!0),this[e(492)][e(473)].requestRender())}[q(500)](t,e){const n=q;if(e instanceof p)if(e.ready){const t=e[n(476)]();this[n(492)][n(473)].camera.flyTo({destination:t})}else e[n(493)][n(477)]((t=>{const s=n,r=e.getImageryRectangle();this[s(492)][s(473)].camera.flyTo({destination:r})}))}show(t,e){const n=q;t instanceof p&&(t[n(495)]=e,this._viewer.scene[n(480)]())}}const W=Z;function Z(t,e){const n=k();return(Z=function(t,e){return n[t-=438]})(t,e)}function k(){const t=["primitiveCollection","15834LlzaEV","the url is needed","_viewer","8396631uEAxrw","load","scene","add","type","286746RGedsE","311585LYtoQy","the layer type is not 'GEOJSON'","900296zTBjcW","show","1745632pYeZgs","requestRender","remove","locate","12oIVkBc","1057pZmmcG","primitives","63438MiHrCM"];return(k=function(){return t})()}!function(){const t=Z,e=k();for(;;)try{if(278619===parseInt(t(451))/1+-parseInt(t(454))/2+-parseInt(t(441))/3*(-parseInt(t(438))/4)+parseInt(t(452))/5+parseInt(t(443))/6*(-parseInt(t(439))/7)+-parseInt(t(456))/8+parseInt(t(446))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class N{constructor(t){this[Z(445)]=t}async[W(447)](e){const n=W;e=t(e,{});if("GEOJSON"!==t(e[n(450)],void 0))throw new Error(n(453));const{url:s,clampToGround:r}=e;if(!s)throw new Error(n(444));const i=new g({options:{useGroundGeometry:r??!1,clampToGround:r??!1,scene:this[n(445)][n(448)]}});return await i.load(s),this[n(445)][n(448)][n(440)][n(449)](i[n(442)]),this[n(445)][n(448)][n(457)](),i}async[W(458)](t){const e=W;t instanceof g&&(this[e(445)][e(448)][e(440)][e(458)](t.primitiveCollection),this[e(445)].scene[e(457)]())}[W(459)](t,e){const n=W;e instanceof g&&e.flyTo(this[n(445)],{tolerance:.015})}[W(455)](t,e){const n=W;t instanceof g&&(t[n(442)].show=e,this[n(445)][n(448)][n(457)]())}}const J=P;function P(t,e){const n=z();return(P=function(t,e){return n[t-=263]})(t,e)}!function(){const t=P,e=z();for(;;)try{if(419280===parseInt(t(292))/1+parseInt(t(282))/2+-parseInt(t(275))/3*(-parseInt(t(269))/4)+parseInt(t(271))/5*(parseInt(t(264))/6)+parseInt(t(287))/7*(parseInt(t(272))/8)+-parseInt(t(290))/9+-parseInt(t(270))/10*(parseInt(t(279))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class F{constructor(t){this._viewer=t}async[J(265)](e){const n=J;e=t(e,{});if(t(e[n(273)],void 0)!==n(278))throw new Error(n(283));const{url:s,layers:r}=e;if(!s)throw new Error(n(267));if(!r)throw new Error(n(284));const i=new I(e),o=new p(i,{});return this[n(277)][n(289)][n(293)](o),this[n(277)].scene[n(291)](),o}async[J(274)](t){const e=J;t instanceof p&&(this[e(277)][e(289)][e(274)](t,!0),this[e(277)][e(280)][e(291)]())}[J(288)](t,e){const n=J;if(e instanceof p)if(e[n(263)]){const t=e[n(285)]();this[n(277)][n(280)][n(268)][n(286)]({destination:t})}else e[n(266)][n(276)]((t=>{const s=n,r=e[s(285)]();this[s(277)][s(280)][s(268)][s(286)]({destination:r})}))}[J(281)](t,e){const n=J;t instanceof p&&(t.show=e,this._viewer.scene[n(291)]())}}function z(){const t=["2395TdHUSw","117184VzZyCT","type","remove","18BfLAKC","addEventListener","_viewer","WMS","803dQvmpC","scene","show","1395890WuCGpl","the layer type is not 'WMS'","the layers is needed","getImageryRectangle","flyTo","287wpRUil","locate","imageryLayers","4765554JBGqDS","requestRender","30566hTfXHo","add","ready","5724SVDSlo","load","readyEvent","the url is needed","camera","183556JaLZbu","152410YFXnih"];return(z=function(){return t})()}function K(t,e){const n=H();return(K=function(t,e){return n[t-=380]})(t,e)}const U=K;function H(){const t=["388668qWWtwX","WMTS","subdomains","164xBqZhE","remove","_viewer","format","readyEvent","flyTo","locate","imageryLayers","addEventListener","show","the layer is needed","scene","the style is needed","5726476YZNabI","camera","230BCTJzD","184fqxvdI","the layer type is not 'WMTS'","2814729ruBlRO","type","418860YPxjtt","10hSHRGi","the tileMatrixSetID is needed","12186XueiQT","requestRender","ready","12612JxGPRf","46365JCBuyC"];return(H=function(){return t})()}!function(){const t=K,e=H();for(;;)try{if(551651===-parseInt(t(391))/1*(-parseInt(t(396))/2)+-parseInt(t(383))/3+-parseInt(t(385))/4+parseInt(t(386))/5*(-parseInt(t(393))/6)+parseInt(t(409))/7+parseInt(t(381))/8*(-parseInt(t(388))/9)+parseInt(t(380))/10*(-parseInt(t(392))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class O{constructor(t){this._viewer=t}async load(e){const n=K;e=t(e,{});if(t(e[n(384)],void 0)!==n(394))throw new Error(n(382));const{url:s,layer:r,style:i,tileMatrixSetID:o,subdomains:a,format:c,tilingScheme:h,tileMatrixLabels:u}=e;if(!s)throw new Error("the url is needed");if(!r)throw new Error(n(406));if(!i)throw new Error(n(408));if(!o)throw new Error(n(387));const f={url:s,layer:r,style:i,tileMatrixSetID:o};a&&(f[n(395)]=a),c&&(f[n(399)]=c),h&&(f.tilingScheme=h),u&&(f.tileMatrixLabels=u);const l=new m(f),d=new p(l,{});return this[n(398)][n(403)].add(d),this[n(398)][n(407)][n(389)](),d}async remove(t){const e=K;t instanceof p&&(this[e(398)][e(403)][e(397)](t,!0),this[e(398)][e(407)].requestRender())}[U(402)](t,e){const n=U;if(e instanceof p)if(e[n(390)]){const t=e.getImageryRectangle();this[n(398)][n(407)][n(410)][n(401)]({destination:t})}else e[n(400)][n(404)]((t=>{const s=n,r=e.getImageryRectangle();this[s(398)].scene[s(410)][s(401)]({destination:r})}))}show(t,e){const n=U;t instanceof p&&(t[n(405)]=e,this._viewer.scene[n(389)]())}}const Y=V;function Q(){const t=["1015503EreREF","dataSources","add","scene","2rNnDQN","KMZ","requestRender","flyTo","29624704YcuMsP","show","then","4513220IECRdn","740777KgmBRv","_viewer","4253860RhrwRm","6320292YFykZh","the url is needed","1299004Xrumrd","load","camera","KML","the layer type is not 'KML' or 'KMZ","remove"];return(Q=function(){return t})()}function V(t,e){const n=Q();return(V=function(t,e){return n[t-=364]})(t,e)}!function(){const t=V,e=Q();for(;;)try{if(594221===parseInt(t(379))/1+parseInt(t(371))/2*(parseInt(t(367))/3)+parseInt(t(378))/4+parseInt(t(381))/5+parseInt(t(382))/6+parseInt(t(384))/7+-parseInt(t(375))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class X{constructor(t){this[V(380)]=t}async load(e){const n=V;e=t(e,{});const s=t(e.type,void 0);if(s!==n(364)&&s!==n(372))throw new Error(n(365));const{url:r,clampToGround:i}=e;if(!r)throw new Error(n(383));return this[n(380)][n(368)][n(369)](v[n(385)](r,{camera:this[n(380)].scene[n(386)],canvas:this[n(380)].scene.canvas,clampToGround:i??!1}))}async remove(t){const e=V;t instanceof Promise&&t[e(377)]((t=>{const n=e;this[n(380)][n(368)].remove(t),this._viewer.scene[n(373)]()})),t instanceof v&&(this._viewer.dataSources[e(366)](t),this[e(380)][e(370)].requestRender())}locate(t,e){const n=V;e instanceof Promise&&e[n(377)]((t=>{this[n(380)].flyTo(t)})),e instanceof v&&this[n(380)][n(374)](e)}[Y(376)](t,e){const n=Y;t instanceof Promise&&t.then((t=>{const n=V;t[n(376)]=e,this[n(380)].scene[n(373)]()})),t instanceof v&&(t[n(376)]=e,this[n(380)][n(370)][n(373)]())}}const $=et;function tt(){const t=["TERRAIN","GEOJSON","3WtkLIm","the type '","_typeClass","618553yfWyIT","URLTemplate","_initLoader","the url is needed","3318440ZZpFhI","请输入Viewer对象!","bind","_type","remove","KML","_id","' is not support","1706595TyCKHf","_isSupport","6056526hNWNIA","_layersMap","3715832TlbyBR","' is already loaded","locate","set","WMS","showById","_locate","_load","_show","3DTILES","_typeClassMap","show","get","delete","locateById","type","has","1791382JBajJR","includes","84750fmRfES","url","removeById","_url","_viewer"];return(tt=function(){return t})()}function et(t,e){const n=tt();return(et=function(t,e){return n[t-=470]})(t,e)}!function(){const t=et,e=tt();for(;;)try{if(775039===parseInt(t(486))/1+parseInt(t(474))/2*(-parseInt(t(483))/3)+parseInt(t(502))/4+-parseInt(t(498))/5+parseInt(t(476))/6+parseInt(t(500))/7+-parseInt(t(490))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class nt{constructor(t){const e=et;if(!t)throw new Error(e(491));this[e(480)]=t,this[e(501)]=new Map,this[e(512)]=new Map}[$(488)](){const t=$,e=this[t(512)][t(514)](this[t(493)]);e?this._typeClass=e:(this[t(493)]===t(481)?this._typeClass=new T(this[t(480)]):this[t(493)]===t(511)?this._typeClass=new M(this[t(480)]):"ARCGIS"===this[t(493)]?this[t(485)]=new D(this[t(480)]):this[t(493)]===t(487)?this[t(485)]=new j(this._viewer):"WMS"===this[t(493)]?this._typeClass=new F(this._viewer):"WMTS"===this[t(493)]?this[t(485)]=new O(this[t(480)]):this[t(493)]===t(495)?this[t(485)]=new X(this._viewer):"GEOJSON"===this[t(493)]&&(this[t(485)]=new N(this[t(480)])),this[t(512)][t(505)](this[t(493)],this[t(485)])),this[t(509)]=this[t(485)].load[t(492)](this[t(485)]),this._remove=this[t(485)][t(494)][t(492)](this[t(485)]),this[t(508)]=this._typeClass[t(504)][t(492)](this[t(485)]),this[t(510)]=this._typeClass[t(513)][t(492)](this._typeClass)}async loadAsync(e){const n=$;if(e=t(e,{}),this[n(496)]=t(e.id,void 0),this[n(501)][n(473)](this[n(496)]))throw new Error("the layer with id '"+this[n(496)]+n(503));if(this[n(479)]=t(e[n(477)],void 0),!this[n(479)])throw new Error(n(489));if(this[n(493)]=t(e[n(472)],void 0),!this._isSupport(e[n(472)]))throw new Error(n(484)+e[n(472)]+n(497));if(this[n(488)](),e[n(472)]===n(495)){const t=this[n(509)](e);t instanceof Promise&&this[n(501)][n(505)](e.id,{options:e,layer:t})}else{const t=await this[n(509)](e);this[n(501)][n(505)](e.id,{options:e,layer:t})}}[$(499)](t){const e=$;return["TERRAIN",e(511),"ARCGIS","URLTemplate",e(506),"WMTS","KML",e(482)][e(475)](t)}[$(478)](t){const e=$,n=this[e(501)].get(t);if(this[e(501)][e(470)](t),!n)return;const{options:s,layer:r}=n;r&&(this[e(493)]=s.type,this[e(488)](),this._remove(r))}[$(471)](t){const e=$,n=this._layersMap[e(514)](t);if(!n)return;const{options:s,layer:r}=n;r&&(this[e(493)]=s[e(472)],this[e(488)](),this._locate(s,r))}[$(507)](t,e){const n=$,s=this._layersMap[n(514)](t);if(!s)return;const{options:r,layer:i}=s;i&&(this._type=r[n(472)],this._initLoader(),this[n(510)](i,e))}destroy(){}}export{nt as default};
1
+ import{Terrain as t,CesiumTerrainProvider as e,EllipsoidTerrainProvider as n,Rectangle as s,Cesium3DTileset as r,Matrix4 as i,Cartographic as o,Cartesian3 as a,Transforms as c,Matrix3 as h,Math as u,ArcGisMapServerImageryProvider as l,ImageryLayer as p,GeographicTilingScheme as f,Ellipsoid as d,UrlTemplateImageryProvider as y,WebMapServiceImageryProvider as w,WebMapTileServiceImageryProvider as I,KmlDataSource as m}from"cesium";import{GeoJsonPrimitiveLayer as v}from"@nsc-earth-2/primitive-geojson";const g=E;function E(t,e){const n=R();return(E=function(t,e){return n[t-=227]})(t,e)}function R(){const t=["terrainProvider","requestRender","isArray","91BUhciI","resolve","9sglujd","_viewer","scene","441504kaMmZR","type","camera","setTerrain","the layer type is not 'TERRAIN'","73195iIWWPE","json","flyTo","valid_bounds","393710AHcxJb","33672nJcXSW","22680GgaCbh","url","379782cAHDiB","bounds","fromDegrees","remove","24qayKSx","load","/layer.json","then","151782wZRYwq","TERRAIN"];return(R=function(){return t})()}!function(){const t=E,e=R();for(;;)try{if(134730===parseInt(t(236))/1+parseInt(t(256))/2+-parseInt(t(228))/3+parseInt(t(246))/4+-parseInt(t(251))/5*(-parseInt(t(232))/6)+parseInt(t(241))/7*(-parseInt(t(257))/8)+-parseInt(t(243))/9*(parseInt(t(255))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class _{constructor(t){this[E(244)]=t}[g(233)](n){const s=g;if((n=n??{})[s(247)]!==s(237))throw new Error(s(250));const r=n[s(227)],i=new t(e.fromUrl(r));return this._viewer[s(245)][s(249)](i),this[s(244)][s(245)].requestRender(),Promise[s(242)](i)}[g(231)](t){const e=g,s=new n;this[e(244)][e(238)]=s,this[e(244)][e(245)][e(239)]()}locate(t,e){const n=g,r=(t=t??{})[n(227)];fetch(r+n(234))[n(235)]((t=>t[n(252)]()))[n(235)]((t=>{const e=n;t[e(254)]&&Array.isArray(t[e(254)])&&4===t[e(254)].length?this[e(244)].camera[e(253)]({destination:s[e(230)](t.valid_bounds[0],t[e(254)][1],t[e(254)][2],t.valid_bounds[3])}):t[e(229)]&&Array[e(240)](t.bounds)&&4==t[e(229)].length&&this[e(244)][e(248)][e(253)]({destination:s[e(230)](t[e(229)][0],t[e(229)][1],t[e(229)][2],t[e(229)][3])})}))}show(e,s){const r=g;if(e instanceof t){if(s)this[r(244)][r(245)][r(249)](e);else{const t=new n;this[r(244)][r(238)]=t}this[r(244)].scene[r(239)]()}}}const S=T;function T(t,e){const n=q();return(T=function(t,e){return n[t-=481]})(t,e)}function q(){const t=["url","remove","getHeight","4377245HoMDow","14676152FOqGSP","1795059gFqVZM","transform","flyTo","transferTileSet","toDegrees","72TFDEHI","fromRotationZ","locate","globe","multiply","2552364KLRcHt","getTranslation","2563748SSbDqN","latitude","fromCartesian","scene","_viewer","2969512yeFHnq","load","fromDegrees","root","toRadians","eastNorthUpToFixedFrame","show","add","longitude","requestRender","14626AGyCiO","multiplyByMatrix3","azimuth"];return(q=function(){return t})()}!function(){const t=T,e=q();for(;;)try{if(473940===parseInt(t(501))/1*(-parseInt(t(514))/2)+-parseInt(t(509))/3+parseInt(t(486))/4+-parseInt(t(507))/5+-parseInt(t(484))/6+parseInt(t(491))/7+parseInt(t(508))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class L{constructor(t){this[T(490)]=t}async[S(492)](t){const e=S;if("3DTILES"!==(t=t??{}).type)throw new Error("the layer type is not '3DTILES'");const n=t[e(504)];if(!n)throw new Error("the url is needed");const s={longitude:t.longitude??0,latitude:t[e(487)]??0,altitude:t.altitude??0,azimuth:t[e(503)]??0},i=await r.fromUrl(n,{dynamicScreenSpaceError:!0,dynamicScreenSpaceErrorDensity:.00278,dynamicScreenSpaceErrorFactor:4,dynamicScreenSpaceErrorHeightFalloff:.25});return this[e(512)](i,s),this[e(490)][e(489)].primitives[e(498)](i),this[e(490)][e(489)].requestRender(),i}[S(512)](t,e){const n=S,{longitude:s,latitude:r,altitude:l,azimuth:p}=e;let f=new i;if(s&&r){let t=l;0==l&&(t=this[n(490)][n(489)][n(482)][n(506)](o[n(493)](s,r))||0);const e=a[n(493)](s,r,t),d=c[n(496)](e),y=new h(1,0,0,0,1,0,0,0,1),w=h[n(515)](u[n(495)](p));h[n(483)](y,w,y),f=i[n(502)](d,y,new i)}else if(l){const e=new a;i[n(485)](t[n(494)].transform,e);const s=o[n(488)](e);if(s){const t=u[n(513)](s[n(487)]),e=u[n(513)](s[n(499)]),r=a[n(493)](e,t,l),o=c[n(496)](r),d=new h(1,0,0,0,1,0,0,0,1),y=h[n(515)](u.toRadians(p));h[n(483)](d,y,d),f=i[n(502)](o,d,new i)}}else if(p){const e=new h(1,0,0,0,1,0,0,0,1),s=h.fromRotationZ(u[n(495)](p));h[n(483)](e,s,e),f=i.multiplyByMatrix3(t.root[n(510)],e,new i)}else f=t.root[n(510)];t[n(494)].transform=f}[S(505)](t){const e=S;t instanceof r&&(this._viewer[e(489)].primitives[e(505)](t),this[e(490)][e(489)][e(500)]())}[S(481)](t,e){const n=S;e instanceof r&&this._viewer[n(511)](e)}show(t,e){const n=S;t instanceof r&&(t[n(497)]=e,this[n(490)][n(489)].requestRender())}}const M=b;function b(t,e){const n=A();return(b=function(t,e){return n[t-=122]})(t,e)}function A(){const t=["camera","token","6617105BJyFdA","_viewer","785722dSGwta","requestRender","16gXKoTT","the layer type is not 'ARCGIS'","1SsIRAx","fromProviderAsync","imageryLayers","180xGDAKv","flyTo","99453XghCyA","ready","getImageryRectangle","add","show","/info/iteminfo?f=pjson","ARCGIS","extent","fromDegrees","isArray","192rNTIGH","scene","1174613uBohuo","load","type","/info/iteminfo?f=pjson&token=","5304798OkzxyY","then","rectangle","GET","4953620jnKqXV","2469792EFpClw","json","remove","fromUrl","locate","readyEvent"];return(A=function(){return t})()}!function(){const t=b,e=A();for(;;)try{if(847140===-parseInt(t(156))/1*(parseInt(t(152))/2)+parseInt(t(161))/3*(-parseInt(t(131))/4)+parseInt(t(150))/5+parseInt(t(142))/6+-parseInt(t(141))/7*(parseInt(t(154))/8)+parseInt(t(137))/9+parseInt(t(159))/10*(parseInt(t(133))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class G{constructor(t){this[b(151)]=t}async[M(134)](t){const e=M;if((t=t??{})[e(135)]!==e(127))throw new Error(e(155));const{url:n,alpha:r,token:i}=t;if(!n)throw new Error("the url is needed");let o=n;o=i?n+e(136)+i:n+e(126);const a=await fetch(o,{method:e(140)})[e(138)]((t=>t[e(143)]())).then((t=>{const n=e,r={};return i&&(r[n(149)]=i),t&&t[n(128)]&&Array[n(130)](t.extent)&&(r[n(139)]=s[n(129)](t[n(128)][0][0],t[n(128)][0][1],t[n(128)][1][0],t[n(128)][1][1])),r})),c=l[e(145)](n,a),h=p[e(157)](c,{});return r&&(h.alpha=r),this[e(151)][e(158)][e(124)](h),this[e(151)][e(132)].requestRender(),h}async[M(144)](t){const e=M;t instanceof p&&(this._viewer[e(158)].remove(t,!0),this[e(151)].scene[e(153)]())}[M(146)](t,e){const n=M;if(e instanceof p)if(e[n(122)]){const t=e[n(123)]();this[n(151)].scene[n(148)].flyTo({destination:t})}else e[n(147)].addEventListener((t=>{const s=n,r=e[s(123)]();this[s(151)][s(132)][s(148)][s(160)]({destination:r})}))}[M(125)](t,e){const n=M;t instanceof p&&(t[n(125)]=e,this._viewer.scene[n(153)]())}}const x=C;function C(t,e){const n=F();return(C=function(t,e){return n[t-=177]})(t,e)}function F(){const t=["tileWidth","load","3132101oqgBWC","minimumLevel","alpha","east","22350550nNEPqN","imageryLayers","{z}/{x}/{y}.png","GET","_viewer","camera","substr","maxzoom","ready","bounds","north","show","type","tileHeight","meta.json","south","json","4832AMoPQI","then","add","maximumLevel","1555494mwcHdR","485003YrTqvX","getImageryRectangle","scene","remove","tilesize","4OQSIHA","URLTemplate","12186kjPUqe","minzoom","requestRender","5hlbyWT","tilingScheme","west","fromDegrees","1742640LBtLJQ","3050448gjAWEZ"];return(F=function(){return t})()}!function(){const t=C,e=F();for(;;)try{if(818583===-parseInt(t(194))/1*(parseInt(t(199))/2)+-parseInt(t(209))/3+-parseInt(t(208))/4+parseInt(t(204))/5*(-parseInt(t(193))/6)+parseInt(t(212))/7+parseInt(t(189))/8*(parseInt(t(201))/9)+parseInt(t(216))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class k{constructor(t){this[C(220)]=t}async[x(211)](t){const e=x;if((t=t??{})[e(184)]!==e(200))throw new Error("the layer type is not 'URLTemplate'");const{url:n,alpha:r}=t;if(!n)throw new Error("the url is needed");let i=e(218),o=n[e(178)](0,n.indexOf(i))+e(186);const a=await fetch(o,{method:e(219)}).then((t=>t[e(188)]()))[e(190)]((t=>{const r=e,i={url:n};return t&&t[r(181)]&&(i.rectangle=s[r(207)](t[r(181)][r(206)],t[r(181)][r(187)],t.bounds[r(215)],t.bounds[r(182)])),t&&4326==t.proj&&(i[r(205)]=new f({ellipsoid:d.WGS84})),t&&t[r(179)]&&(i[r(192)]=t[r(179)]),t&&t[r(202)]&&(i[r(213)]=t[r(202)]),t&&t[r(198)]&&(i[r(210)]=i[r(185)]=t[r(198)]),i})),c=new y(a),h=new p(c,{});return r&&(h[e(214)]=r),this[e(220)].imageryLayers[e(191)](h),this[e(220)][e(196)].requestRender(),h}async remove(t){const e=x;t instanceof p&&(this[e(220)][e(217)][e(197)](t,!0),this[e(220)][e(196)][e(203)]())}locate(t,e){const n=x;if(e instanceof p)if(e[n(180)]){const t=e[n(195)]();this._viewer[n(196)][n(177)].flyTo({destination:t})}else e.readyEvent.addEventListener((t=>{const s=n,r=e.getImageryRectangle();this._viewer[s(196)][s(177)].flyTo({destination:r})}))}[x(183)](t,e){const n=x;t instanceof p&&(t[n(183)]=e,this._viewer.scene[n(203)]())}}const D=j;function j(t,e){const n=W();return(j=function(t,e){return n[t-=208]})(t,e)}!function(){const t=j,e=W();for(;;)try{if(954816===-parseInt(t(224))/1+parseInt(t(227))/2+parseInt(t(212))/3*(-parseInt(t(209))/4)+-parseInt(t(217))/5*(parseInt(t(222))/6)+parseInt(t(223))/7*(parseInt(t(211))/8)+-parseInt(t(214))/9*(-parseInt(t(216))/10)+parseInt(t(226))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class B{constructor(t){this[j(229)]=t}async load(t){const e=j;if((t=t??{})[e(210)]!==e(213))throw new Error(e(228));const{url:n,clampToGround:s}=t;if(!n)throw new Error("the url is needed");const r=new v({options:{useGroundGeometry:s??!1,clampToGround:s??!1,scene:this._viewer[e(230)]}});return await r[e(220)](n),this[e(229)][e(230)][e(221)].add(r[e(219)]),this[e(229)][e(230)][e(208)](),r}async[D(218)](t){const e=D;t instanceof v&&(this[e(229)][e(230)][e(221)].remove(t[e(219)]),this[e(229)][e(230)].requestRender())}locate(t,e){const n=D;e instanceof v&&e[n(215)](this[n(229)],{tolerance:.015})}show(t,e){const n=D;t instanceof v&&(t.primitiveCollection[n(225)]=e,this[n(229)][n(230)].requestRender())}}function W(){const t=["load","primitives","10406724RNUqZe","49FqfQkm","224674FqbAQh","show","6744793MlBPij","3398132KIbUVq","the layer type is not 'GEOJSON'","_viewer","scene","requestRender","8LHaVGR","type","301752tOKEdO","1660641uCjfGt","GEOJSON","351432hCiOEZ","flyTo","370BCiwNp","5eUYLjg","remove","primitiveCollection"];return(W=function(){return t})()}const K=O;function O(t,e){const n=U();return(O=function(t,e){return n[t-=359]})(t,e)}function U(){const t=["camera","add","the layer type is not 'WMS'","remove","addEventListener","WMS","locate","getImageryRectangle","requestRender","show","555618mqGHeV","3504948PvDxQW","48FMGrXR","308XqHTfV","5543mjWGRJ","441uizQzl","imageryLayers","19233368AxXMMZ","8694CQspFX","24170TrmksL","5624HkbgJR","the url is needed","scene","type","38860ywrclZ","_viewer"];return(U=function(){return t})()}!function(){const t=O,e=U();for(;;)try{if(525940===parseInt(t(378))/1*(-parseInt(t(377))/2)+-parseInt(t(374))/3+-parseInt(t(375))/4+parseInt(t(362))/5*(-parseInt(t(376))/6)+parseInt(t(382))/7*(parseInt(t(384))/8)+parseInt(t(379))/9*(-parseInt(t(383))/10)+parseInt(t(381))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Z{constructor(t){this[O(363)]=t}async load(t){const e=O;if((t=t??{})[e(361)]!==e(369))throw new Error(e(366));const{url:n,layers:s}=t;if(!n)throw new Error(e(359));if(!s)throw new Error("the layers is needed");const r=new w(t),i=new p(r,{});return this._viewer.imageryLayers[e(365)](i),this[e(363)][e(360)].requestRender(),i}async[K(367)](t){const e=K;t instanceof p&&(this[e(363)][e(380)][e(367)](t,!0),this[e(363)][e(360)].requestRender())}[K(370)](t,e){const n=K;if(e instanceof p)if(e.ready){const t=e[n(371)]();this[n(363)][n(360)].camera.flyTo({destination:t})}else e.readyEvent[n(368)]((t=>{const s=n,r=e[s(371)]();this[s(363)][s(360)][s(364)].flyTo({destination:r})}))}[K(373)](t,e){const n=K;t instanceof p&&(t.show=e,this._viewer[n(360)][n(372)]())}}const H=z;function N(){const t=["tileMatrixLabels","6129104dFOZpu","show","306OnodxR","20678jIdoSB","16tFwmUp","6041979ubQCSA","locate","10346680MSeByS","getImageryRectangle","scene","format","imageryLayers","1898135auqvwS","requestRender","remove","WMTS","the url is needed","tilingScheme","flyTo","1MsGrsR","the layer type is not 'WMTS'","the layer is needed","the tileMatrixSetID is needed","add","_viewer","load","549897TEhklI","387606IogWWU","addEventListener","camera"];return(N=function(){return t})()}!function(){const t=z,e=N();for(;;)try{if(411913===parseInt(t(418))/1*(-parseInt(t(426))/2)+parseInt(t(425))/3*(parseInt(t(434))/4)+-parseInt(t(442))/5+-parseInt(t(432))/6*(parseInt(t(433))/7)+parseInt(t(430))/8+parseInt(t(435))/9+-parseInt(t(437))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class P{constructor(t){this[z(423)]=t}async[H(424)](t){const e=H;if((t=t??{}).type!==e(445))throw new Error(e(419));const{url:n,layer:s,style:r,tileMatrixSetID:i,subdomains:o,format:a,tilingScheme:c,tileMatrixLabels:h}=t;if(!n)throw new Error(e(446));if(!s)throw new Error(e(420));if(!r)throw new Error("the style is needed");if(!i)throw new Error(e(421));const u={url:n,layer:s,style:r,tileMatrixSetID:i};o&&(u.subdomains=o),a&&(u[e(440)]=a),c&&(u[e(447)]=c),h&&(u[e(429)]=h);const l=new I(u),f=new p(l,{});return this[e(423)][e(441)][e(422)](f),this[e(423)][e(439)][e(443)](),f}async[H(444)](t){const e=H;t instanceof p&&(this[e(423)].imageryLayers[e(444)](t,!0),this._viewer.scene[e(443)]())}[H(436)](t,e){const n=H;if(e instanceof p)if(e.ready){const t=e.getImageryRectangle();this._viewer.scene[n(428)].flyTo({destination:t})}else e.readyEvent[n(427)]((t=>{const s=n,r=e[s(438)]();this[s(423)][s(439)][s(428)][s(417)]({destination:r})}))}[H(431)](t,e){const n=H;t instanceof p&&(t[n(431)]=e,this[n(423)].scene[n(443)]())}}function z(t,e){const n=N();return(z=function(t,e){return n[t-=417]})(t,e)}function J(){const t=["60ZUwwty","show","_viewer","flyTo","requestRender","then","267TEvOCc","63hpNEFK","dataSources","remove","load","add","canvas","879288DFGnKS","40zqyFAg","KMZ","90sJEpoa","15153SPdNff","724480fhHsqj","scene","KML","275824jwyANL","the layer type is not 'KML' or 'KMZ","499851WZDMiu","1194256hBkXqG"];return(J=function(){return t})()}const X=Q;function Q(t,e){const n=J();return(Q=function(t,e){return n[t-=430]})(t,e)}!function(){const t=Q,e=J();for(;;)try{if(176151===-parseInt(t(444))/1*(parseInt(t(454))/2)+-parseInt(t(430))/3*(-parseInt(t(452))/4)+parseInt(t(431))/5+-parseInt(t(451))/6+parseInt(t(437))/7+parseInt(t(434))/8*(parseInt(t(445))/9)+parseInt(t(438))/10*(-parseInt(t(436))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class V{constructor(t){this[Q(440)]=t}async[X(448)](t){const e=X,n=(t=t??{}).type;if(n!==e(433)&&n!==e(453))throw new Error(e(435));const{url:s,clampToGround:r}=t;if(!s)throw new Error("the url is needed");return this[e(440)][e(446)][e(449)](m[e(448)](s,{camera:this[e(440)][e(432)].camera,canvas:this[e(440)][e(432)][e(450)],clampToGround:r??!1}))}async[X(447)](t){const e=X;(null==t?void 0:t[e(443)])&&t[e(443)]((t=>{const n=e;this[n(440)][n(446)].remove(t),this[n(440)][n(432)][n(442)]()})),t instanceof m&&(this._viewer[e(446)][e(447)](t),this[e(440)].scene[e(442)]())}locate(t,e){const n=X;(null==e?void 0:e[n(443)])&&e.then((t=>{const e=n;this._viewer[e(441)](t)})),e instanceof m&&this[n(440)][n(441)](e)}[X(439)](t,e){const n=X;(null==t?void 0:t[n(443)])&&t.then((t=>{const s=n;t[s(439)]=e,this[s(440)][s(432)][s(442)]()})),t instanceof m&&(t.show=e,this[n(440)].scene.requestRender())}}const Y=tt;function $(){const t=["10KgvCBm","KML","28167iggFLa","_url","_remove","set","780258bSKPmP","_viewer","WMS","showById","83370dxbRLf","TERRAIN","_layersMap","has","50646057kEZzJZ","GEOJSON","type","URLTemplate","210uvuZBx","_show","120NTKxvm","_load","show","get","_typeClassMap","_id","url","the layer with id '","请输入Viewer对象!","removeById","ARCGIS","remove","includes","' is already loaded","bind","293144elnvDF","_initLoader","the url is needed","3DTILES","204sUBJgr","1011878hUFOMh","locate","delete","_type","loadAsync","' is not support","_typeClass","_isSupport","5647131aqVBoI","WMTS","_locate","the type '"];return($=function(){return t})()}function tt(t,e){const n=$();return(tt=function(t,e){return n[t-=217]})(t,e)}!function(){const t=tt,e=$();for(;;)try{if(663112===-parseInt(t(218))/1+-parseInt(t(236))/2+-parseInt(t(232))/3*(parseInt(t(217))/4)+-parseInt(t(250))/5*(parseInt(t(240))/6)+-parseInt(t(248))/7*(parseInt(t(265))/8)+-parseInt(t(226))/9*(parseInt(t(230))/10)+parseInt(t(244))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class et{constructor(t){const e=tt;if(!t)throw new Error(e(258));this[e(237)]=t,this[e(242)]=new Map,this[e(254)]=new Map}[Y(266)](){const t=Y,e=this[t(254)][t(253)](this[t(221)]);e?this[t(224)]=e:(this[t(221)]===t(241)?this[t(224)]=new _(this[t(237)]):this[t(221)]===t(268)?this._typeClass=new L(this._viewer):this[t(221)]===t(260)?this[t(224)]=new G(this[t(237)]):"URLTemplate"===this[t(221)]?this[t(224)]=new k(this[t(237)]):"WMS"===this[t(221)]?this[t(224)]=new Z(this[t(237)]):this[t(221)]===t(227)?this[t(224)]=new P(this._viewer):"KML"===this[t(221)]?this[t(224)]=new V(this[t(237)]):this[t(221)]===t(245)&&(this[t(224)]=new B(this._viewer)),this._typeClassMap[t(235)](this[t(221)],this[t(224)])),this[t(251)]=this[t(224)].load[t(264)](this[t(224)]),this[t(234)]=this._typeClass[t(261)][t(264)](this[t(224)]),this._locate=this[t(224)][t(219)].bind(this[t(224)]),this[t(249)]=this[t(224)][t(252)][t(264)](this[t(224)])}async[Y(222)](t){const e=Y;if(t=t??{},this._id=t.id,this[e(242)][e(243)](this[e(255)]))throw new Error(e(257)+this._id+e(263));if(this[e(233)]=t[e(256)],!this[e(233)])throw new Error(e(267));if(this[e(221)]=t[e(246)],!this[e(225)](t.type))throw new Error(e(229)+t.type+e(223));if(this[e(266)](),"KML"===t.type){const n=this[e(251)](t);n instanceof Promise&&this[e(242)].set(t.id,{options:t,layer:n})}else{const e=await this._load(t);this._layersMap.set(t.id,{options:t,layer:e})}}[Y(225)](t){const e=Y;return[e(241),e(268),e(260),e(247),e(238),e(227),e(231),e(245)][e(262)](t)}[Y(259)](t){const e=Y,n=this[e(242)][e(253)](t);if(this[e(242)][e(220)](t),!n)return;const{options:s,layer:r}=n;r&&(this[e(221)]=s.type,this._initLoader(),this[e(234)](r))}locateById(t){const e=Y,n=this[e(242)][e(253)](t);if(!n)return;const{options:s,layer:r}=n;r&&(this[e(221)]=s[e(246)],this[e(266)](),this[e(228)](s,r))}[Y(239)](t,e){const n=Y,s=this[n(242)].get(t);if(!s)return;const{options:r,layer:i}=s;i&&(this._type=r[n(246)],this._initLoader(),this._show(i,e))}destroy(){}}export{et as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nsc-earth-2/layer",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -31,6 +31,6 @@
31
31
  "cesium": "^1.104.0"
32
32
  },
33
33
  "dependencies": {
34
- "@nsc-earth-2/primitive-geojson": "1.0.10"
34
+ "@nsc-earth-2/primitive-geojson": "1.0.11"
35
35
  }
36
36
  }