@nsc-earth-2/layer 1.0.7 → 1.0.8
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.
- package/dist/index.js +1 -1
- 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 p,ArcGisMapServerImageryProvider as f,ImageryLayer as l,GeographicTilingScheme as d,Ellipsoid as y,UrlTemplateImageryProvider as w,WebMapServiceImageryProvider as m,WebMapTileServiceImageryProvider as I,KmlDataSource as v}from"cesium";import{GeoJsonPrimitiveLayer as g}from"@nsc-earth-2/primitive-geojson";function E(){const t=["14fBGubX","28tektUt","628795jsfFwd","scene","1514984JDWPnC","then","type","17954UaRBLc","bounds","3820482sthlwC","flyTo","show","valid_bounds","resolve","11qPAGGF","json","setTerrain","fromUrl","requestRender","202490hkiYSO","isArray","camera","/layer.json","21YBIncj","_viewer","TERRAIN","10PvMWow","locate","the layer type is not 'TERRAIN'","remove","url","2667654ObugcV","terrainProvider","24171564ozmmvw","fromDegrees","load","length"];return(E=function(){return t})()}const _=T;function T(t,e){const n=E();return(T=function(t,e){return n[t-=223]})(t,e)}!function(){const t=T,e=E();for(;;)try{if(783274===parseInt(t(257))/1+parseInt(t(245))/2*(-parseInt(t(224))/3)+-parseInt(t(239))/4*(parseInt(t(240))/5)+-parseInt(t(232))/6+parseInt(t(238))/7*(parseInt(t(242))/8)+-parseInt(t(247))/9*(parseInt(t(227))/10)+-parseInt(t(252))/11*(-parseInt(t(234))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class R{constructor(t){this[T(225)]=t}[_(236)](s){const r=_;s=t(s,{});if(t(s[r(244)],void 0)!==r(226))throw new Error(r(229));const i=t(s[r(231)],void 0),o=new e(n[r(255)](i));return this[r(225)][r(241)].setTerrain(o),this[r(225)][r(241)].requestRender(),Promise[r(251)](o)}[_(230)](t){const e=_,n=new s;this._viewer[e(233)]=n,this._viewer.scene.requestRender()}[_(228)](e,n){const s=_;e=t(e,{});const i=t(e[s(231)],void 0);fetch(i+s(223))[s(243)]((t=>t[s(253)]()))[s(243)]((t=>{const e=s;t[e(250)]&&Array[e(258)](t[e(250)])&&4===t[e(250)].length?this[e(225)][e(259)][e(248)]({destination:r[e(235)](t[e(250)][0],t[e(250)][1],t.valid_bounds[2],t[e(250)][3])}):t.bounds&&Array[e(258)](t.bounds)&&4==t[e(246)][e(237)]&&this[e(225)][e(259)][e(248)]({destination:r[e(235)](t[e(246)][0],t[e(246)][1],t[e(246)][2],t.bounds[3])})}))}[_(249)](t,n){const r=_;if(t instanceof e){if(n)this[r(225)].scene[r(254)](t);else{const t=new s;this[r(225)][r(233)]=t}this[r(225)][r(241)][r(256)]()}}}function S(){const t=["show","type","latitude","flyTo","longitude","fromUrl","155laggFT","getHeight","fromCartesian","multiply","15704MTvtCA","412342RqZFIr","toRadians","164871XCtIze","azimuth","_viewer","getTranslation","eastNorthUpToFixedFrame","globe","transferTileSet","10UwNBZv","4YGbMbu","root","713745VRTOaP","fromRotationZ","2394064brtVuk","multiplyByMatrix3","toDegrees","scene","requestRender","fromDegrees","3340579lJXiqY","primitives","transform","31852wBvRue","the layer type is not '3DTILES'","18lfUFDN"];return(S=function(){return t})()}const b=L;function L(t,e){const n=S();return(L=function(t,e){return n[t-=430]})(t,e)}!function(){const t=L,e=S();for(;;)try{if(159122===parseInt(t(443))/1*(-parseInt(t(432))/2)+parseInt(t(445))/3+parseInt(t(456))/4*(-parseInt(t(465))/5)+-parseInt(t(458))/6*(-parseInt(t(433))/7)+-parseInt(t(447))/8+parseInt(t(435))/9*(parseInt(t(442))/10)+parseInt(t(453))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class M{constructor(t){this._viewer=t}async load(e){const n=L;e=t(e,{});if("3DTILES"!==t(e[n(460)],void 0))throw new Error(n(457));const s=e.url;if(!s)throw new Error("the url is needed");const r={longitude:t(e[n(463)],0),latitude:t(e.latitude,0),altitude:t(e.altitude,0),azimuth:t(e[n(436)],0)},o=await i[n(464)](s,{dynamicScreenSpaceError:!0,dynamicScreenSpaceErrorDensity:.00278,dynamicScreenSpaceErrorFactor:4,dynamicScreenSpaceErrorHeightFalloff:.25});return this[n(441)](o,r),this[n(437)][n(450)][n(454)].add(o),this[n(437)].scene[n(451)](),o}[b(441)](t,e){const n=b,{longitude:s,latitude:r,altitude:i,azimuth:f}=e;let l=new o;if(s&&r){let t=i;0==i&&(t=this[n(437)][n(450)][n(440)][n(466)](a[n(452)](s,r))||0);const e=c[n(452)](s,r,t),d=h[n(439)](e),y=new u(1,0,0,0,1,0,0,0,1),w=u[n(446)](p[n(434)](f));u[n(431)](y,w,y),l=o.multiplyByMatrix3(d,y,new o)}else if(i){const e=new c;o[n(438)](t[n(444)].transform,e);const s=a[n(430)](e);if(s){const t=p[n(449)](s[n(461)]),e=p[n(449)](s[n(463)]),r=c.fromDegrees(e,t,i),a=h[n(439)](r),d=new u(1,0,0,0,1,0,0,0,1),y=u[n(446)](p[n(434)](f));u[n(431)](d,y,d),l=o[n(448)](a,d,new o)}}else if(f){const e=new u(1,0,0,0,1,0,0,0,1),s=u[n(446)](p[n(434)](f));u[n(431)](e,s,e),l=o[n(448)](t[n(444)][n(455)],e,new o)}else l=t[n(444)].transform;t[n(444)][n(455)]=l}remove(t){const e=b;t instanceof i&&(this[e(437)][e(450)][e(454)].remove(t),this[e(437)].scene[e(451)]())}locate(t,e){const n=b;e instanceof i&&this._viewer[n(462)](e)}show(t,e){const n=b;t instanceof i&&(t[n(459)]=e,this._viewer[n(450)][n(451)]())}}const G=k;function k(t,e){const n=q();return(k=function(t,e){return n[t-=279]})(t,e)}function q(){const t=["extent","2024840RlQRvZ","/info/iteminfo?f=pjson&token=","token","349444kCOFkP","ready","the url is needed","_viewer","the layer type is not 'ARCGIS'","readyEvent","flyTo","type","fromDegrees","camera","then","10889748jCgyGO","alpha","fromProviderAsync","ARCGIS","remove","448rbEQJx","rectangle","show","requestRender","/info/iteminfo?f=pjson","51tZYXyH","6163056mqeouT","431836gyNPHp","98952NDmbEi","imageryLayers","getImageryRectangle","json","38888FyHTGe","isArray","scene"];return(q=function(){return t})()}!function(){const t=k,e=q();for(;;)try{if(611738===parseInt(t(312))/1+-parseInt(t(289))/2+parseInt(t(310))/3*(-parseInt(t(282))/4)+-parseInt(t(286))/5+parseInt(t(313))/6*(-parseInt(t(305))/7)+parseInt(t(311))/8+parseInt(t(300))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class x{constructor(t){this[k(292)]=t}async load(e){const n=k;e=t(e,{});if(t(e[n(296)],void 0)!==n(303))throw new Error(n(293));const{url:s,alpha:i,token:o}=e;if(!s)throw new Error(n(291));let a=s;a=o?s+n(287)+o:s+n(309);const c=await fetch(a,{method:"GET"})[n(299)]((t=>t[n(281)]()))[n(299)]((t=>{const e=n,s={};return o&&(s[e(288)]=o),t&&t[e(285)]&&Array[e(283)](t[e(285)])&&(s[e(306)]=r[e(297)](t.extent[0][0],t[e(285)][0][1],t[e(285)][1][0],t[e(285)][1][1])),s})),h=f.fromUrl(s,c),u=l[n(302)](h,{});return i&&(u[n(301)]=i),this[n(292)][n(279)].add(u),this[n(292)][n(284)][n(308)](),u}async[G(304)](t){const e=G;t instanceof l&&(this[e(292)][e(279)].remove(t,!0),this[e(292)][e(284)][e(308)]())}locate(t,e){const n=G;if(e instanceof l)if(e[n(290)]){const t=e[n(280)]();this[n(292)][n(284)][n(298)][n(295)]({destination:t})}else e[n(294)].addEventListener((t=>{const s=n,r=e[s(280)]();this[s(292)][s(284)].camera[s(295)]({destination:r})}))}[G(307)](t,e){const n=G;t instanceof l&&(t.show=e,this[n(292)][n(284)][n(308)]())}}const D=O;function N(){const t=["getImageryRectangle","fromDegrees","south","GET","1109808BuDIal","rectangle","remove","minimumLevel","meta.json","131349RWOEMk","the layer type is not 'URLTemplate'","north","bounds","ready","west","tilingScheme","52716zDJSaZ","locate","east","WGS84","readyEvent","URLTemplate","minzoom","then","980315ziomZW","the url is needed","282924QRcHeZ","2sYIevO","4Ytmkcb","requestRender","imageryLayers","6257339ufTITy","alpha","addEventListener","264102KoHuGI","flyTo","json","tilesize","indexOf","add","type","tileWidth","camera","maximumLevel","proj","maxzoom","scene","14puecpU","load","_viewer","10yLRJKP"];return(N=function(){return t})()}function O(t,e){const n=N();return(O=function(t,e){return n[t-=100]})(t,e)}!function(){const t=O,e=N();for(;;)try{if(105657===parseInt(t(136))/1*(-parseInt(t(147))/2)+-parseInt(t(129))/3*(-parseInt(t(148))/4)+-parseInt(t(144))/5+parseInt(t(103))/6*(-parseInt(t(116))/7)+-parseInt(t(124))/8+-parseInt(t(146))/9+parseInt(t(119))/10*(parseInt(t(100))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class z{constructor(t){this[O(118)]=t}async[D(117)](e){const n=D;e=t(e,{});if(t(e[n(109)],void 0)!==n(141))throw new Error(n(130));const{url:s,alpha:i}=e;if(!s)throw new Error(n(145));let o=s.substr(0,s[n(107)]("{z}/{x}/{y}.png"))+n(128);const a=await fetch(o,{method:n(123)})[n(143)]((t=>t[n(105)]()))[n(143)]((t=>{const e=n,i={url:s};return t&&t[e(132)]&&(i[e(125)]=r[e(121)](t.bounds[e(134)],t[e(132)][e(122)],t[e(132)][e(138)],t.bounds[e(131)])),t&&4326==t[e(113)]&&(i[e(135)]=new d({ellipsoid:y[e(139)]})),t&&t[e(114)]&&(i[e(112)]=t.maxzoom),t&&t.minzoom&&(i[e(127)]=t[e(142)]),t&&t.tilesize&&(i[e(110)]=i.tileHeight=t[e(106)]),i})),c=new w(a),h=new l(c,{});return i&&(h[n(101)]=i),this[n(118)].imageryLayers[n(108)](h),this._viewer[n(115)][n(149)](),h}async[D(126)](t){const e=D;t instanceof l&&(this._viewer[e(150)].remove(t,!0),this[e(118)].scene[e(149)]())}[D(137)](t,e){const n=D;if(e instanceof l)if(e[n(133)]){const t=e.getImageryRectangle();this[n(118)][n(115)][n(111)][n(104)]({destination:t})}else e[n(140)][n(102)]((t=>{const s=n,r=e[s(120)]();this._viewer[s(115)].camera[s(104)]({destination:r})}))}show(t,e){const n=D;t instanceof l&&(t.show=e,this[n(118)][n(115)][n(149)]())}}function A(t,e){const n=P();return(A=function(t,e){return n[t-=499]})(t,e)}const C=A;function P(){const t=["remove","locate","45nDetuG","GEOJSON","1463670giUels","_viewer","primitiveCollection","8OjnmpE","945381wlozPl","type","show","3289430waZuIV","add","scene","57372RnYuik","646104BZOheN","primitives","requestRender","load","the layer type is not 'GEOJSON'","189yQyofq","1839512VdaZuj","127769tEwYJU"];return(P=function(){return t})()}!function(){const t=A,e=P();for(;;)try{if(496879===parseInt(t(501))/1+-parseInt(t(500))/2+-parseInt(t(510))/3*(-parseInt(t(509))/4)+parseInt(t(513))/5+parseInt(t(516))/6*(parseInt(t(499))/7)+-parseInt(t(517))/8*(parseInt(t(504))/9)+parseInt(t(506))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class U{constructor(t){this[A(507)]=t}async load(e){const n=A;e=t(e,{});if(t(e[n(511)],void 0)!==n(505))throw new Error(n(521));const{url:s,clampToGround:r}=e;if(!s)throw new Error("the url is needed");const i=new g({options:{useGroundGeometry:r??!1,clampToGround:r??!1,scene:this._viewer.scene}});return await i[n(520)](s),this[n(507)].scene[n(518)][n(514)](i[n(508)]),this[n(507)][n(515)][n(519)](),i}async[C(502)](t){const e=C;t instanceof g&&(this[e(507)].scene[e(518)].remove(t[e(508)]),this[e(507)][e(515)][e(519)]())}[C(503)](t,e){const n=C;e instanceof g&&e.flyTo(this[n(507)],{tolerance:.015})}[C(512)](t,e){const n=C;t instanceof g&&(t[n(508)][n(512)]=e,this[n(507)][n(515)][n(519)]())}}const B=F;function F(t,e){const n=Z();return(F=function(t,e){return n[t-=418]})(t,e)}function Z(){const t=["camera","26PTFNgn","add","load","the url is needed","4327675gXniQi","show","requestRender","imageryLayers","readyEvent","7pIriCK","type","59621aNcHBz","the layers is needed","5942132tjZpFn","8589789gndTXd","locate","remove","270Quualg","1145001foEZYD","the layer type is not 'WMS'","_viewer","1979802QBNKgv","scene","12061864YQFfQs","6QsOjER","getImageryRectangle"];return(Z=function(){return t})()}!function(){const t=F,e=Z();for(;;)try{if(897562===parseInt(t(442))/1*(-parseInt(t(431))/2)+parseInt(t(425))/3+-parseInt(t(444))/4+-parseInt(t(435))/5*(parseInt(t(428))/6)+-parseInt(t(440))/7*(-parseInt(t(427))/8)+-parseInt(t(418))/9+parseInt(t(421))/10*(parseInt(t(422))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class j{constructor(t){this[F(424)]=t}async[B(433)](e){const n=B;e=t(e,{});if("WMS"!==t(e[n(441)],void 0))throw new Error(n(423));const{url:s,layers:r}=e;if(!s)throw new Error(n(434));if(!r)throw new Error(n(443));const i=new m({url:s}),o=new l(i,{});return this[n(424)].imageryLayers[n(432)](o),this[n(424)].scene.requestRender(),o}async remove(t){const e=B;t instanceof l&&(this._viewer[e(438)][e(420)](t,!0),this._viewer.scene[e(437)]())}[B(419)](t,e){const n=B;if(e instanceof l)if(e.ready){const t=e.getImageryRectangle();this[n(424)].scene[n(430)].flyTo({destination:t})}else e[n(439)].addEventListener((t=>{const s=n,r=e[s(429)]();this[s(424)][s(426)][s(430)].flyTo({destination:r})}))}[B(436)](t,e){const n=B;t instanceof l&&(t[n(436)]=e,this[n(424)][n(426)][n(437)]())}}function Q(t,e){const n=K();return(Q=function(t,e){return n[t-=213]})(t,e)}const W=Q;!function(){const t=Q,e=K();for(;;)try{if(660435===parseInt(t(241))/1+-parseInt(t(221))/2+parseInt(t(236))/3*(-parseInt(t(229))/4)+-parseInt(t(239))/5+-parseInt(t(240))/6+parseInt(t(226))/7*(parseInt(t(215))/8)+parseInt(t(238))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class J{constructor(t){this[Q(237)]=t}async[W(228)](e){const n=W;e=t(e,{});if("WMTS"!==t(e[n(230)],void 0))throw new Error(n(233));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(222));if(!i)throw new Error("the style is needed");if(!o)throw new Error(n(232));const p={url:s,layer:r,style:i,tileMatrixSetID:o};a&&(p[n(243)]=a),c&&(p[n(227)]=c),h&&(p.tilingScheme=h),u&&(p[n(224)]=u);const f=new I(p),d=new l(f,{});return this[n(237)][n(231)][n(242)](d),this[n(237)][n(220)].requestRender(),d}async remove(t){const e=W;t instanceof l&&(this[e(237)][e(231)][e(213)](t,!0),this[e(237)].scene[e(235)]())}[W(219)](t,e){const n=W;if(e instanceof l)if(e[n(225)]){const t=e.getImageryRectangle();this._viewer[n(220)][n(216)].flyTo({destination:t})}else e[n(214)][n(223)]((t=>{const s=n,r=e[s(217)]();this[s(237)][s(220)][s(216)][s(218)]({destination:r})}))}[W(234)](t,e){const n=W;t instanceof l&&(t[n(234)]=e,this[n(237)].scene[n(235)]())}}function K(){const t=["28xQnVmW","type","imageryLayers","the tileMatrixSetID is needed","the layer type is not 'WMTS'","show","requestRender","150882bdhQDp","_viewer","6893316XtPQoQ","1842000pfhFVK","4306392mUhCLg","582502XKhxqN","add","subdomains","remove","readyEvent","698056wiXZRQ","camera","getImageryRectangle","flyTo","locate","scene","70228xBfbfB","the layer is needed","addEventListener","tileMatrixLabels","ready","63gowJTE","format","load"];return(K=function(){return t})()}const H=V;function V(t,e){const n=X();return(V=function(t,e){return n[t-=233]})(t,e)}function X(){const t=["10xtTbpw","canvas","2271576UymTNv","the url is needed","locate","2989251VLAUGM","878899ppNLbr","3NvmJBO","3039512ggAPqX","24GKKmcW","_viewer","scene","add","show","flyTo","53587eHbALw","then","3081160krwctf","type","871035FvMahT","the layer type is not 'KML' or 'KMZ","requestRender","remove","dataSources","load"];return(X=function(){return t})()}!function(){const t=V,e=X();for(;;)try{if(526304===-parseInt(t(254))/1*(-parseInt(t(239))/2)+-parseInt(t(246))/3*(parseInt(t(247))/4)+-parseInt(t(233))/5+parseInt(t(241))/6+parseInt(t(245))/7+parseInt(t(248))/8*(parseInt(t(244))/9)+-parseInt(t(256))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Y{constructor(t){this[V(249)]=t}async[H(238)](e){const n=H;e=t(e,{});const s=t(e[n(257)],void 0);if("KML"!==s&&"KMZ"!==s)throw new Error(n(234));const{url:r,clampToGround:i}=e;if(!r)throw new Error(n(242));return this[n(249)].dataSources[n(251)](v.load(r,{camera:this[n(249)][n(250)].camera,canvas:this[n(249)][n(250)][n(240)],clampToGround:i??!1}))}async remove(t){const e=H;t instanceof Promise&&t[e(255)]((t=>{const n=e;this[n(249)][n(237)][n(236)](t),this[n(249)][n(250)][n(235)]()})),t instanceof v&&(this[e(249)].dataSources[e(236)](t),this[e(249)][e(250)].requestRender())}[H(243)](t,e){const n=H;e instanceof Promise&&e[n(255)]((t=>{const e=n;this._viewer[e(253)](t)})),e instanceof v&&this[n(249)].flyTo(e)}show(t,e){const n=H;t instanceof Promise&&t[n(255)]((t=>{const s=n;t[s(252)]=e,this._viewer[s(250)][s(235)]()})),t instanceof v&&(t[n(252)]=e,this[n(249)][n(250)][n(235)]())}}function $(t,e){const n=et();return($=function(t,e){return n[t-=267]})(t,e)}const tt=$;function et(){const t=["1608rQqocc","the url is needed","show","_viewer","_layersMap","WMTS","load","_isSupport","_initLoader","locate","GEOJSON","loadAsync","1512189wuHrEp","_load","3lzOgDs","removeById","_remove","URLTemplate","KML","3DTILES","TERRAIN","请输入Viewer对象!","delete","_typeClass","' is already loaded","' is not support","5824430LzhFMn","1632VZHSWN","811694rqVnul","8442yzhdkT","the type '","bind","includes","10970xJpVuJ","set","_type","get","581156sygPLk","remove","_url","the layer with id '","_id","_locate","_typeClassMap","1sxXdSa","type","18776384qrsbXL","WMS"];return(et=function(){return t})()}!function(){const t=$,e=et();for(;;)try{if(300626===-parseInt(t(286))/1*(parseInt(t(270))/2)+-parseInt(t(304))/3*(-parseInt(t(279))/4)+parseInt(t(275))/5*(-parseInt(t(290))/6)+parseInt(t(302))/7+-parseInt(t(269))/8*(parseInt(t(271))/9)+-parseInt(t(268))/10+parseInt(t(288))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class nt{constructor(t){const e=$;if(!t)throw new Error(e(311));this[e(293)]=t,this._layersMap=new Map,this[e(285)]=new Map}_initLoader(){const t=$,e=this[t(285)][t(278)](this._type);e?this._typeClass=e:(this[t(277)]===t(310)?this[t(313)]=new R(this[t(293)]):this._type===t(309)?this[t(313)]=new M(this[t(293)]):"ARCGIS"===this[t(277)]?this._typeClass=new x(this._viewer):this[t(277)]===t(307)?this[t(313)]=new z(this[t(293)]):"WMS"===this[t(277)]?this[t(313)]=new j(this[t(293)]):this[t(277)]===t(295)?this[t(313)]=new J(this[t(293)]):this[t(277)]===t(308)?this._typeClass=new Y(this[t(293)]):"GEOJSON"===this[t(277)]&&(this[t(313)]=new U(this[t(293)])),this[t(285)][t(276)](this[t(277)],this[t(313)])),this._load=this[t(313)][t(296)][t(273)](this[t(313)]),this[t(306)]=this[t(313)][t(280)][t(273)](this[t(313)]),this._locate=this[t(313)][t(299)].bind(this[t(313)]),this._show=this[t(313)][t(292)][t(273)](this[t(313)])}async[tt(301)](e){const n=tt;if(e=t(e,{}),this[n(283)]=t(e.id,void 0),this[n(294)].has(this[n(283)]))throw new Error(n(282)+this[n(283)]+n(314));if(this[n(281)]=t(e.url,void 0),!this[n(281)])throw new Error(n(291));if(this[n(277)]=t(e[n(287)],void 0),!this[n(297)](e.type))throw new Error(n(272)+e[n(287)]+n(267));if(this._initLoader(),e[n(287)]===n(308)){const t=this._load(e);t instanceof Promise&&this[n(294)].set(e.id,{options:e,layer:t})}else{const t=await this[n(303)](e);this[n(294)][n(276)](e.id,{options:e,layer:t})}}_isSupport(t){const e=tt;return[e(310),e(309),"ARCGIS","URLTemplate",e(289),e(295),"KML",e(300)][e(274)](t)}[tt(305)](t){const e=tt,n=this[e(294)][e(278)](t);if(this[e(294)][e(312)](t),!n)return;const{options:s,layer:r}=n;r&&(this._type=s[e(287)],this[e(298)](),this[e(306)](r))}locateById(t){const e=tt,n=this._layersMap[e(278)](t);if(!n)return;const{options:s,layer:r}=n;r&&(this._type=s[e(287)],this[e(298)](),this[e(284)](s,r))}showById(t,e){const n=tt,s=this[n(294)].get(t);if(!s)return;const{options:r,layer:i}=s;i&&(this[n(277)]=r[n(287)],this._initLoader(),this._show(i,e))}destroy(){}}export{nt as default};
|
|
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 p,ImageryLayer as l,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 _=R;function E(){const t=["type","show","20863sHhNhq","TERRAIN","3455065kSSMQs","resolve","bounds","104ioPMeR","remove","camera","912940cbaYtb","flyTo","7564904xFlTeL","url","20stOvTt","/layer.json","1434TsRvyt","valid_bounds","fromDegrees","length","locate","terrainProvider","9URIZSp","3823204FMzJCK","50743ypfUBG","818967Capavo","_viewer","requestRender","scene","the layer type is not 'TERRAIN'","then","setTerrain"];return(E=function(){return t})()}function R(t,e){const n=E();return(R=function(t,e){return n[t-=461]})(t,e)}!function(){const t=R,e=E();for(;;)try{if(941572===parseInt(t(490))/1*(parseInt(t(463))/2)+parseInt(t(481))/3*(-parseInt(t(470))/4)+parseInt(t(492))/5+-parseInt(t(472))/6*(-parseInt(t(480))/7)+-parseInt(t(468))/8+parseInt(t(478))/9*(parseInt(t(466))/10)+-parseInt(t(479))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class S{constructor(t){this[R(482)]=t}load(s){const r=R;s=t(s,{});if(t(s[r(488)],void 0)!==r(491))throw new Error(r(485));const i=t(s[r(469)],void 0),o=new e(n.fromUrl(i));return this[r(482)].scene[r(487)](o),this[r(482)][r(484)].requestRender(),Promise[r(461)](o)}[_(464)](t){const e=_,n=new s;this._viewer[e(477)]=n,this[e(482)][e(484)][e(483)]()}[_(476)](e,n){const s=_;e=t(e,{});const i=t(e[s(469)],void 0);fetch(i+s(471)).then((t=>t.json()))[s(486)]((t=>{const e=s;t[e(473)]&&Array.isArray(t[e(473)])&&4===t.valid_bounds.length?this._viewer[e(465)][e(467)]({destination:r[e(474)](t.valid_bounds[0],t.valid_bounds[1],t[e(473)][2],t[e(473)][3])}):t[e(462)]&&Array.isArray(t[e(462)])&&4==t[e(462)][e(475)]&&this[e(482)][e(465)].flyTo({destination:r.fromDegrees(t[e(462)][0],t.bounds[1],t[e(462)][2],t[e(462)][3])})}))}[_(489)](t,n){const r=_;if(t instanceof e){if(n)this[r(482)].scene.setTerrain(t);else{const t=new s;this._viewer[r(477)]=t}this._viewer.scene[r(483)]()}}}const T=b;function b(t,e){const n=L();return(b=function(t,e){return n[t-=330]})(t,e)}!function(){const t=b,e=L();for(;;)try{if(515871===-parseInt(t(350))/1*(parseInt(t(338))/2)+-parseInt(t(336))/3+parseInt(t(362))/4+parseInt(t(361))/5+-parseInt(t(337))/6+parseInt(t(334))/7+parseInt(t(340))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class M{constructor(t){this[b(348)]=t}async[T(355)](e){const n=T;e=t(e,{});if(t(e[n(351)],void 0)!==n(333))throw new Error("the layer type is not '3DTILES'");const s=e[n(341)];if(!s)throw new Error(n(368));const r={longitude:t(e[n(358)],0),latitude:t(e[n(339)],0),altitude:t(e[n(363)],0),azimuth:t(e.azimuth,0)},o=await i[n(360)](s,{dynamicScreenSpaceError:!0,dynamicScreenSpaceErrorDensity:.00278,dynamicScreenSpaceErrorFactor:4,dynamicScreenSpaceErrorHeightFalloff:.25});return this[n(331)](o,r),this[n(348)][n(347)][n(356)][n(369)](o),this[n(348)][n(347)][n(353)](),o}[T(331)](t,e){const n=T,{longitude:s,latitude:r,altitude:i,azimuth:p}=e;let l=new o;if(s&&r){let t=i;0==i&&(t=this[n(348)].scene[n(335)][n(332)](a[n(330)](s,r))||0);const e=c[n(330)](s,r,t),d=h[n(354)](e),y=new u(1,0,0,0,1,0,0,0,1),w=u[n(366)](f[n(352)](p));u[n(346)](y,w,y),l=o.multiplyByMatrix3(d,y,new o)}else if(i){const e=new c;o[n(364)](t[n(359)][n(367)],e);const s=a[n(357)](e);if(s){const t=f[n(344)](s.latitude),e=f[n(344)](s[n(358)]),r=c[n(330)](e,t,i),a=h[n(354)](r),d=new u(1,0,0,0,1,0,0,0,1),y=u[n(366)](f[n(352)](p));u[n(346)](d,y,d),l=o[n(343)](a,d,new o)}}else if(p){const e=new u(1,0,0,0,1,0,0,0,1),s=u[n(366)](f[n(352)](p));u[n(346)](e,s,e),l=o[n(343)](t[n(359)].transform,e,new o)}else l=t[n(359)][n(367)];t[n(359)][n(367)]=l}[T(365)](t){const e=T;t instanceof i&&(this[e(348)][e(347)][e(356)][e(365)](t),this[e(348)][e(347)][e(353)]())}[T(342)](t,e){const n=T;e instanceof i&&this[n(348)][n(345)](e)}[T(349)](t,e){const n=T;t instanceof i&&(t[n(349)]=e,this[n(348)][n(347)].requestRender())}}function L(){const t=["the url is needed","add","fromDegrees","transferTileSet","getHeight","3DTILES","1950214JLmSsd","globe","1495617rmGTbZ","913542zNzqRe","74cORYJy","latitude","2005424wuEbLH","url","locate","multiplyByMatrix3","toDegrees","flyTo","multiply","scene","_viewer","show","18086ZViolt","type","toRadians","requestRender","eastNorthUpToFixedFrame","load","primitives","fromCartesian","longitude","root","fromUrl","3565600klDdSv","2373796YOGnof","altitude","getTranslation","remove","fromRotationZ","transform"];return(L=function(){return t})()}const x=q;function G(){const t=["1357026tDZqsz","fromProviderAsync","token","show","readyEvent","then","rectangle","the layer type is not 'ARCGIS'","6qXIMGi","_viewer","camera","addEventListener","ready","imageryLayers","locate","18590860JKLcnt","getImageryRectangle","extent","remove","flyTo","scene","GET","2053161sryxxi","313289agkxVQ","ARCGIS","1105755lGKMVB","fromUrl","6JWVjuC","128236IHoLrE","1250960gwFUkj","add","isArray","5vPAOQr","the url is needed","/info/iteminfo?f=pjson","requestRender","type"];return(G=function(){return t})()}function q(t,e){const n=G();return(q=function(t,e){return n[t-=199]})(t,e)}!function(){const t=q,e=G();for(;;)try{if(585142===-parseInt(t(213))/1*(parseInt(t(217))/2)+-parseInt(t(227))/3+-parseInt(t(218))/4*(-parseInt(t(222))/5)+-parseInt(t(235))/6*(-parseInt(t(215))/7)+parseInt(t(219))/8+-parseInt(t(212))/9+parseInt(t(205))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class z{constructor(t){this[q(199)]=t}async load(e){const n=q;e=t(e,{});if(t(e[n(226)],void 0)!==n(214))throw new Error(n(234));const{url:s,alpha:i,token:o}=e;if(!s)throw new Error(n(223));let a=s;a=o?s+"/info/iteminfo?f=pjson&token="+o:s+n(224);const c=await fetch(a,{method:n(211)})[n(232)]((t=>t.json())).then((t=>{const e=n,s={};return o&&(s[e(229)]=o),t&&t.extent&&Array[e(221)](t.extent)&&(s[e(233)]=r.fromDegrees(t[e(207)][0][0],t[e(207)][0][1],t[e(207)][1][0],t[e(207)][1][1])),s})),h=p[n(216)](s,c),u=l[n(228)](h,{});return i&&(u.alpha=i),this[n(199)].imageryLayers[n(220)](u),this[n(199)][n(210)][n(225)](),u}async[x(208)](t){const e=x;t instanceof l&&(this[e(199)][e(203)][e(208)](t,!0),this[e(199)].scene[e(225)]())}[x(204)](t,e){const n=x;if(e instanceof l)if(e[n(202)]){const t=e.getImageryRectangle();this[n(199)][n(210)][n(200)][n(209)]({destination:t})}else e[n(231)][n(201)]((t=>{const s=n,r=e[s(206)]();this[s(199)][s(210)][s(200)][s(209)]({destination:r})}))}[x(230)](t,e){const n=x;t instanceof l&&(t.show=e,this._viewer[n(210)].requestRender())}}const A=D;function k(){const t=["scene","north","south","tilesize","add","URLTemplate","fromDegrees","10015aGhfMA","then","2233560aeHFOU","locate","show","tileHeight","minzoom","WGS84","the layer type is not 'URLTemplate'","9706626YiFcmI","substr","imageryLayers","1310276ITmEMk","1662420ZMFCUy","_viewer","load","proj","ready","the url is needed","camera","maxzoom","flyTo","meta.json","4094120AxOUJM","661766OwtLtB","remove","json","requestRender","rectangle","1feHXOB","minimumLevel","west","east","alpha","addEventListener","readyEvent","tilingScheme","1052twbWYy","indexOf","bounds","getImageryRectangle","{z}/{x}/{y}.png"];return(k=function(){return t})()}function D(t,e){const n=k();return(D=function(t,e){return n[t-=222]})(t,e)}!function(){const t=D,e=k();for(;;)try{if(421030===parseInt(t(223))/1*(-parseInt(t(255))/2)+parseInt(t(245))/3+parseInt(t(231))/4*(parseInt(t(243))/5)+parseInt(t(256))/6+parseInt(t(267))/7+parseInt(t(266))/8+-parseInt(t(252))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class U{constructor(t){this._viewer=t}async[A(258)](e){const n=A;e=t(e,{});if(t(e.type,void 0)!==n(241))throw new Error(n(251));const{url:s,alpha:i}=e;if(!s)throw new Error(n(261));let o=n(235),a=s[n(253)](0,s[n(232)](o))+n(265);const c=await fetch(a,{method:"GET"})[n(244)]((t=>t[n(269)]())).then((t=>{const e=n,i={url:s};return t&&t.bounds&&(i[e(222)]=r[e(242)](t[e(233)][e(225)],t[e(233)][e(238)],t[e(233)][e(226)],t[e(233)][e(237)])),t&&4326==t[e(259)]&&(i[e(230)]=new d({ellipsoid:y[e(250)]})),t&&t[e(263)]&&(i.maximumLevel=t.maxzoom),t&&t.minzoom&&(i[e(224)]=t[e(249)]),t&&t[e(239)]&&(i.tileWidth=i[e(248)]=t[e(239)]),i})),h=new w(c),u=new l(h,{});return i&&(u[n(227)]=i),this[n(257)][n(254)][n(240)](u),this[n(257)][n(236)].requestRender(),u}async[A(268)](t){const e=A;t instanceof l&&(this[e(257)][e(254)].remove(t,!0),this[e(257)][e(236)][e(270)]())}[A(246)](t,e){const n=A;if(e instanceof l)if(e[n(260)]){const t=e[n(234)]();this._viewer[n(236)].camera[n(264)]({destination:t})}else e[n(229)][n(228)]((t=>{const s=n,r=e.getImageryRectangle();this[s(257)][s(236)][s(262)][s(264)]({destination:r})}))}[A(247)](t,e){const n=A;t instanceof l&&(t[n(247)]=e,this[n(257)][n(236)][n(270)]())}}const O=j;function C(){const t=["_viewer","15864UmLojN","3PUddvp","remove","GEOJSON","requestRender","primitives","show","969714hsszLV","558212SbTbMR","primitiveCollection","173936RqVChF","5039574aVtuAv","load","5gtKANj","9781540TTYDvT","type","scene","add","6741Qbfclq","592242rUSQiD"];return(C=function(){return t})()}function j(t,e){const n=C();return(j=function(t,e){return n[t-=426]})(t,e)}!function(){const t=j,e=C();for(;;)try{if(842008===parseInt(t(437))/1+-parseInt(t(428))/2+parseInt(t(431))/3*(-parseInt(t(438))/4)+parseInt(t(443))/5*(parseInt(t(441))/6)+-parseInt(t(440))/7+-parseInt(t(430))/8*(parseInt(t(427))/9)+parseInt(t(444))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class F{constructor(t){this._viewer=t}async[O(442)](e){const n=O;e=t(e,{});if(t(e[n(445)],void 0)!==n(433))throw new Error("the layer type is not 'GEOJSON'");const{url:s,clampToGround:r}=e;if(!s)throw new Error("the url is needed");const i=new g({options:{useGroundGeometry:r??!1,clampToGround:r??!1,scene:this[n(429)][n(446)]}});return await i[n(442)](s),this[n(429)][n(446)][n(435)][n(426)](i[n(439)]),this[n(429)][n(446)][n(434)](),i}async[O(432)](t){const e=O;t instanceof g&&(this._viewer[e(446)][e(435)][e(432)](t.primitiveCollection),this[e(429)].scene[e(434)]())}locate(t,e){const n=O;e instanceof g&&e.flyTo(this[n(429)],{tolerance:.015})}show(t,e){const n=O;t instanceof g&&(t[n(439)][n(436)]=e,this[n(429)][n(446)][n(434)]())}}function W(){const t=["300772zrprEK","4396456vbNkqH","21XRbers","show","250bonNDO","getImageryRectangle","readyEvent","imageryLayers","WMS","706461zYaEas","the layers is needed","_viewer","requestRender","4487250TRrWUP","camera","ready","15511698BZKVrA","add","scene","110iAsdhw","929533jKHFUF","remove","the url is needed","201045wVAqeU","44PNWcWz","flyTo","locate"];return(W=function(){return t})()}const K=P;!function(){const t=P,e=W();for(;;)try{if(901856===-parseInt(t(271))/1+-parseInt(t(259))/2*(parseInt(t(258))/3)+parseInt(t(262))/4*(-parseInt(t(281))/5)+-parseInt(t(275))/6+-parseInt(t(264))/7*(-parseInt(t(263))/8)+parseInt(t(278))/9+-parseInt(t(266))/10*(-parseInt(t(282))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class N{constructor(t){this[P(273)]=t}async load(e){const n=P;e=t(e,{});if(t(e.type,void 0)!==n(270))throw new Error("the layer type is not 'WMS'");const{url:s,layers:r}=e;if(!s)throw new Error(n(257));if(!r)throw new Error(n(272));const i=new I({url:s}),o=new l(i,{});return this._viewer.imageryLayers[n(279)](o),this[n(273)].scene[n(274)](),o}async[K(283)](t){const e=K;t instanceof l&&(this[e(273)][e(269)].remove(t,!0),this[e(273)][e(280)][e(274)]())}[K(261)](t,e){const n=K;if(e instanceof l)if(e[n(277)]){const t=e[n(267)]();this._viewer.scene[n(276)][n(260)]({destination:t})}else e[n(268)].addEventListener((t=>{const s=n,r=e[s(267)]();this[s(273)][s(280)][s(276)][s(260)]({destination:r})}))}[K(265)](t,e){const n=K;t instanceof l&&(t.show=e,this[n(273)].scene.requestRender())}}function P(t,e){const n=W();return(P=function(t,e){return n[t-=257]})(t,e)}const H=J;function J(t,e){const n=V();return(J=function(t,e){return n[t-=409]})(t,e)}function V(){const t=["618976GqhKFU","6WdpMzd","225806qUMIDK","_viewer","imageryLayers","29643ZRxRJo","2059810pgvmui","getImageryRectangle","ready","WMTS","217738GymeEC","210430DxNezP","88iVvJZh","the url is needed","addEventListener","subdomains","remove","locate","53073tsIakR","readyEvent","the style is needed","tileMatrixLabels","scene","flyTo","requestRender","camera","10gpakwc","show","11anOpWK","the layer is needed"];return(V=function(){return t})()}!function(){const t=J,e=V();for(;;)try{if(191791===parseInt(t(413))/1+parseInt(t(429))/2*(-parseInt(t(438))/3)+parseInt(t(433))/4+parseInt(t(414))/5+-parseInt(t(434))/6*(parseInt(t(435))/7)+-parseInt(t(415))/8*(-parseInt(t(421))/9)+parseInt(t(409))/10*(-parseInt(t(431))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Z{constructor(t){this[J(436)]=t}async load(e){const n=J;e=t(e,{});if(t(e.type,void 0)!==n(412))throw new Error("the layer type is not 'WMTS'");const{url:s,layer:r,style:i,tileMatrixSetID:o,subdomains:a,format:c,tilingScheme:h,tileMatrixLabels:u}=e;if(!s)throw new Error(n(416));if(!r)throw new Error(n(432));if(!i)throw new Error(n(423));if(!o)throw new Error("the tileMatrixSetID is needed");const f={url:s,layer:r,style:i,tileMatrixSetID:o};a&&(f[n(418)]=a),c&&(f.format=c),h&&(f.tilingScheme=h),u&&(f[n(424)]=u);const p=new m(f),d=new l(p,{});return this._viewer[n(437)].add(d),this[n(436)][n(425)][n(427)](),d}async[H(419)](t){const e=H;t instanceof l&&(this[e(436)].imageryLayers[e(419)](t,!0),this[e(436)][e(425)][e(427)]())}[H(420)](t,e){const n=H;if(e instanceof l)if(e[n(411)]){const t=e[n(410)]();this._viewer[n(425)][n(428)][n(426)]({destination:t})}else e[n(422)][n(417)]((t=>{const s=n,r=e[s(410)]();this[s(436)][s(425)][s(428)][s(426)]({destination:r})}))}[H(430)](t,e){const n=H;t instanceof l&&(t[n(430)]=e,this[n(436)][n(425)].requestRender())}}function B(t,e){const n=Y();return(B=function(t,e){return n[t-=301]})(t,e)}function Y(){const t=["load","show","2426246fIbnzi","camera","2330868ZkwdIG","add","589324QHjHvb","scene","remove","9jotRYS","the url is needed","26680008HneExD","14yvQneu","requestRender","type","1177373kbWxPs","5002235lAjzSy","_viewer","KML","flyTo","locate","653916QMOpoy","KMZ","then","dataSources"];return(Y=function(){return t})()}const Q=B;!function(){const t=B,e=Y();for(;;)try{if(650373===-parseInt(t(301))/1+-parseInt(t(313))/2+parseInt(t(315))/3+parseInt(t(317))/4+-parseInt(t(302))/5+parseInt(t(307))/6*(-parseInt(t(323))/7)+parseInt(t(322))/8*(parseInt(t(320))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class X{constructor(t){this[B(303)]=t}async[Q(311)](e){const n=Q;e=t(e,{});const s=t(e[n(325)],void 0);if(s!==n(304)&&s!==n(308))throw new Error("the layer type is not 'KML' or 'KMZ");const{url:r,clampToGround:i}=e;if(!r)throw new Error(n(321));return this[n(303)][n(310)][n(316)](v[n(311)](r,{camera:this[n(303)][n(318)][n(314)],canvas:this[n(303)].scene.canvas,clampToGround:i??!1}))}async[Q(319)](t){const e=Q;t instanceof Promise&&t[e(309)]((t=>{const n=e;this[n(303)].dataSources[n(319)](t),this[n(303)].scene[n(324)]()})),t instanceof v&&(this[e(303)].dataSources.remove(t),this._viewer[e(318)][e(324)]())}[Q(306)](t,e){const n=Q;e instanceof Promise&&e[n(309)]((t=>{const e=n;this[e(303)][e(305)](t)})),e instanceof v&&this[n(303)][n(305)](e)}show(t,e){const n=Q;t instanceof Promise&&t[n(309)]((t=>{const s=n;t[s(312)]=e,this._viewer[s(318)][s(324)]()})),t instanceof v&&(t.show=e,this._viewer.scene[n(324)]())}}const $=tt;function tt(t,e){const n=nt();return(tt=function(t,e){return n[t-=469]})(t,e)}!function(){const t=tt,e=nt();for(;;)try{if(677091===-parseInt(t(508))/1+-parseInt(t(486))/2+-parseInt(t(499))/3*(parseInt(t(493))/4)+parseInt(t(512))/5*(parseInt(t(487))/6)+parseInt(t(484))/7+-parseInt(t(500))/8+parseInt(t(491))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class et{constructor(t){const e=tt;if(!t)throw new Error("请输入Viewer对象!");this._viewer=t,this[e(481)]=new Map,this[e(498)]=new Map}[$(472)](){const t=$,e=this[t(498)][t(506)](this[t(471)]);e?this[t(480)]=e:("TERRAIN"===this[t(471)]?this[t(480)]=new S(this[t(513)]):this[t(471)]===t(501)?this[t(480)]=new M(this._viewer):this[t(471)]===t(511)?this[t(480)]=new z(this[t(513)]):this[t(471)]===t(507)?this[t(480)]=new U(this[t(513)]):"WMS"===this[t(471)]?this[t(480)]=new N(this[t(513)]):this[t(471)]===t(497)?this._typeClass=new Z(this._viewer):this._type===t(479)?this[t(480)]=new X(this._viewer):"GEOJSON"===this[t(471)]&&(this[t(480)]=new F(this[t(513)])),this[t(498)][t(485)](this[t(471)],this[t(480)])),this[t(488)]=this[t(480)][t(483)][t(470)](this._typeClass),this[t(475)]=this[t(480)][t(504)][t(470)](this[t(480)]),this[t(502)]=this[t(480)][t(474)].bind(this[t(480)]),this._show=this[t(480)].show[t(470)](this._typeClass)}async[$(490)](e){const n=$;if(e=t(e,{}),this[n(469)]=t(e.id,void 0),this[n(481)].has(this[n(469)]))throw new Error(n(492)+this[n(469)]+n(495));if(this[n(496)]=t(e.url,void 0),!this[n(496)])throw new Error(n(494));if(this[n(471)]=t(e[n(477)],void 0),!this[n(510)](e[n(477)]))throw new Error(n(514)+e[n(477)]+n(473));if(this[n(472)](),e[n(477)]===n(479)){const t=this._load(e);t instanceof Promise&&this._layersMap[n(485)](e.id,{options:e,layer:t})}else{const t=await this[n(488)](e);this._layersMap[n(485)](e.id,{options:e,layer:t})}}[$(510)](t){const e=$;return[e(509),e(501),e(511),e(507),e(482),e(497),e(479),"GEOJSON"].includes(t)}[$(503)](t){const e=$,n=this[e(481)][e(506)](t);if(this[e(481)][e(476)](t),!n)return;const{options:s,layer:r}=n;r&&(this[e(471)]=s.type,this[e(472)](),this._remove(r))}locateById(t){const e=$,n=this[e(481)].get(t);if(!n)return;const{options:s,layer:r}=n;r&&(this[e(471)]=s[e(477)],this[e(472)](),this._locate(s,r))}[$(489)](t,e){const n=$,s=this._layersMap.get(t);if(!s)return;const{options:r,layer:i}=s;i&&(this._type=r[n(477)],this[n(472)](),this[n(505)](i,e))}[$(478)](){}}function nt(){const t=["ARCGIS","104270rvvDFP","_viewer","the type '","_id","bind","_type","_initLoader","' is not support","locate","_remove","delete","type","destroy","KML","_typeClass","_layersMap","WMS","load","7309491epgtVz","set","242050yHFaFU","348IRqRcA","_load","showById","loadAsync","659241EJOlKP","the layer with id '","3471172zuFCkY","the url is needed","' is already loaded","_url","WMTS","_typeClassMap","3BTgzwj","1780160WaKTfz","3DTILES","_locate","removeById","remove","_show","get","URLTemplate","438565GwovxC","TERRAIN","_isSupport"];return(nt=function(){return t})()}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.
|
|
3
|
+
"version": "1.0.8",
|
|
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.
|
|
34
|
+
"@nsc-earth-2/primitive-geojson": "1.0.9"
|
|
35
35
|
}
|
|
36
36
|
}
|