Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mars3d-mapv

Package Overview
Dependencies
Maintainers
1
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mars3d-mapv - npm Package Compare versions

Comparing version 3.7.0 to 3.7.1

8

dist/mars3d-mapv.js
/**
* Mars3D平台插件,结合mapv可视化功能插件 mars3d-mapv
*
* 版本信息:v3.7.0
* 编译日期:2024-01-15 15:59:38
* 版本信息:v3.7.1
* 编译日期:2024-01-23 21:36:57
* 版权所有:Copyright by 火星科技 http://mars3d.cn
* 使用单位:免费公开版 ,2023-03-17
* 使用单位:免费公开版 ,2024-01-15
*/

@@ -14,3 +14,3 @@ (function (global, factory) {

})(this, (function (exports, mapv, mars3d) {
'use strict';const _0x22809d=_0x3406;(function(_0x4f5d1b,_0x24ed1a){const _0xb50bb1={_0xa20a60:0x216,_0x44d537:0x217,_0x56b049:0x1f4,_0x4f426f:0x1ec,_0xb03206:0x1fb,_0x1ecd67:0x219,_0x38c81d:0x202,_0x28bc93:0x218,_0x385e93:0x203},_0x534dc4=_0x3406,_0xf555b4=_0x4f5d1b();while(!![]){try{const _0x2318d3=parseInt(_0x534dc4(0x1f7))/0x1+parseInt(_0x534dc4(_0xb50bb1._0xa20a60))/0x2*(parseInt(_0x534dc4(_0xb50bb1._0x44d537))/0x3)+-parseInt(_0x534dc4(_0xb50bb1._0x56b049))/0x4*(parseInt(_0x534dc4(_0xb50bb1._0x4f426f))/0x5)+parseInt(_0x534dc4(0x243))/0x6+-parseInt(_0x534dc4(_0xb50bb1._0xb03206))/0x7*(-parseInt(_0x534dc4(_0xb50bb1._0x1ecd67))/0x8)+-parseInt(_0x534dc4(_0xb50bb1._0x38c81d))/0x9*(-parseInt(_0x534dc4(0x257))/0xa)+parseInt(_0x534dc4(_0xb50bb1._0x28bc93))/0xb*(-parseInt(_0x534dc4(_0xb50bb1._0x385e93))/0xc);if(_0x2318d3===_0x24ed1a)break;else _0xf555b4['push'](_0xf555b4['shift']());}catch(_0x468439){_0xf555b4['push'](_0xf555b4['shift']());}}}(_0x3821,0x9fce9));function _0x3821(){const _0x50f3ed=['377678BApiyD','fillStyle','unbindEvent','mode','2326303PzEllH','cameraMoveStart','zIndex','options','_onMapClick','height','push','6021TYianT','4893108lDCAYo','none','step','dataSet','type','initDataRange','getExtentByGeoJSON','baiduMapLayer','start','transferCoordinate','FeatureCollection','postRender','_reset','EllipsoidalOccluder','DataSet','MapVLayer','trails','_map','isEnabledTime','2EIeaFE','2498754TQzugG','44HnfVHV','16vMUrzW','Rectangle','mapv','mapvDepthTest','update','canvasLayer','_mapVRenderer','mouseDown','width','length','stopAniamation','get','addData','_data','methods','keys','_onMapMouseMove','set','Cartographic','mousemove','Polygon','_cache_event','resize','stepsRange','_removedHook','depthTest','__esModule','scene','removeChild','removeAllData','bindEvent','drawContext','click','time','size','getData','MultiLineString','globe','Cesium','clear','updateData','globalCompositeOperation','1557288iphoTY','setZIndex','LineString','unit','getContext','_size','forEach','geometry','getRectangle','mouseMove','fillRect','hasOwnProperty','_canvasUpdate','_onMoveStartEvent','fromDegrees','devicePixelRatio','style','canvas','off','context','10130Tpakem','_onMoveEndEvent','windowPosition','function','EventType','cameraMoveEnd','5690EEPaXJ','absolute','defineProperty','animation','0px','animatorMovestartEvent','initDevicePixelRatio','_pointerEvents','1852ltNDKu','draw','updateCallback'];_0x3821=function(){return _0x50f3ed;};return _0x3821();}function _interopNamespace(_0x77dcd8){const _0x44c97e=_0x3406;if(_0x77dcd8&&_0x77dcd8['__esModule'])return _0x77dcd8;var _0x523493=Object['create'](null);return _0x77dcd8&&Object[_0x44c97e(0x228)](_0x77dcd8)[_0x44c97e(0x249)](function(_0x1b40c2){const _0x2d19e7=_0x44c97e;if(_0x1b40c2!=='default'){var _0x40b729=Object['getOwnPropertyDescriptor'](_0x77dcd8,_0x1b40c2);Object[_0x2d19e7(0x1ee)](_0x523493,_0x1b40c2,_0x40b729['get']?_0x40b729:{'enumerable':!![],'get':function(){return _0x77dcd8[_0x1b40c2];}});}}),_0x523493['default']=_0x77dcd8,_0x523493;}var mapv__namespace=_interopNamespace(mapv),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace[_0x22809d(0x23f)],baiduMapLayer=mapv__namespace?mapv__namespace[_0x22809d(0x20a)]:null,BaseLayer$1=baiduMapLayer?baiduMapLayer['__proto__']:Function;class MapVRenderer extends BaseLayer$1{constructor(_0x26da85,_0x2c4f15,_0x25e553,_0x19d40d){const _0x5c26b4={_0x2c4720:0x206,_0x47254f:0x1ef},_0x376af4=_0x22809d;super(_0x26da85,_0x2c4f15,_0x25e553);if(!BaseLayer$1)return;this['map']=_0x26da85,this['scene']=_0x26da85['scene'],this[_0x376af4(_0x5c26b4._0x2c4720)]=_0x2c4f15,_0x25e553=_0x25e553||{},this['init'](_0x25e553),this['argCheck'](_0x25e553),this[_0x376af4(0x1f2)](),this['canvasLayer']=_0x19d40d,this[_0x376af4(0x223)]=!0x1,this['animation']=_0x25e553[_0x376af4(_0x5c26b4._0x47254f)];}[_0x22809d(0x1f2)](){const _0x19ab98={_0xfe5c76:0x252,_0x48b842:0x252},_0x1e63f4=_0x22809d;this[_0x1e63f4(_0x19ab98._0xfe5c76)]=window[_0x1e63f4(_0x19ab98._0x48b842)]||0x1;}['addAnimatorEvent'](){}['animatorMovestartEvent'](){const _0x10d3fc={_0xa9047c:0x230,_0x5427ed:0x20b},_0x1189d8=_0x22809d,_0x3c4ab3=this['options']['animation'];this['isEnabledTime']()&&this['animator']&&(this['steps'][_0x1189d8(0x205)]=_0x3c4ab3[_0x1189d8(_0x10d3fc._0xa9047c)][_0x1189d8(_0x10d3fc._0x5427ed)]);}['animatorMoveendEvent'](){const _0x23f389=_0x22809d;this[_0x23f389(0x215)]()&&this['animator'];}['getContext'](){const _0x4a6881=_0x22809d;return this['canvasLayer'][_0x4a6881(0x254)]['getContext'](this[_0x4a6881(0x256)]);}['init'](_0x4ad424){const _0x25b590={_0x53a9cf:0x1fe,_0x110440:0x208,_0x2abc0f:0x256,_0x49bc0c:0x1fd,_0x50336c:0x21e,_0x5a3f6b:0x244},_0x58f829=_0x22809d;this[_0x58f829(_0x25b590._0x53a9cf)]=_0x4ad424,this[_0x58f829(_0x25b590._0x110440)](_0x4ad424),this[_0x58f829(0x256)]=this['options'][_0x58f829(_0x25b590._0x2abc0f)]||'2d',Cesium$1['defined'](this['options'][_0x58f829(_0x25b590._0x49bc0c)])&&this['canvasLayer']&&this[_0x58f829(_0x25b590._0x50336c)]['setZIndex']&&this[_0x58f829(0x21e)][_0x58f829(_0x25b590._0x5a3f6b)](this['options']['zIndex']),this['initAnimator']();}[_0x22809d(0x24f)](_0x454aa7){const _0x1c318f={_0x2473da:0x247,_0x2afd9d:0x215,_0x3c826e:0x246,_0x1919c8:0x248},_0x441721={_0x5b0c3b:0x213,_0x203638:0x23a},_0x47f787={_0x2ea6a7:0x21c,_0x1c6007:0x1fa},_0x340c86=_0x22809d,_0x41b0b9=this[_0x340c86(0x234)];if(this[_0x340c86(0x21e)]&&!this['stopAniamation']){const _0x50b6ce=this['options']['animation'],_0x11ec65=this[_0x340c86(_0x1c318f._0x2473da)]();if(this[_0x340c86(_0x1c318f._0x2afd9d)]()){if(void 0x0===_0x454aa7)return void this[_0x340c86(0x240)](_0x11ec65);this['context']==='2d'&&(_0x11ec65['save'](),_0x11ec65[_0x340c86(0x242)]='destination-out',_0x11ec65[_0x340c86(0x1f8)]='rgba(0,\x200,\x200,\x20.1)',_0x11ec65[_0x340c86(0x24d)](0x0,0x0,_0x11ec65['canvas']['width'],_0x11ec65[_0x340c86(0x254)]['height']),_0x11ec65['restore']());}else this['clear'](_0x11ec65);if(this['context']==='2d')for(const _0x1681db in this[_0x340c86(0x1fe)]){_0x11ec65[_0x1681db]=this[_0x340c86(0x1fe)][_0x1681db];}else _0x11ec65['clear'](_0x11ec65['COLOR_BUFFER_BIT']);const _0x41cb65={'transferCoordinate':function(_0x3dac70){const _0x48d239=_0x340c86,_0x2548cd=null;let _0x5859dc=_0x41b0b9['mapvFixedHeight'];_0x41b0b9['mapvAutoHeight']&&(_0x5859dc=_0x41b0b9['globe']['getHeight'](Cesium$1[_0x48d239(0x22b)]['fromDegrees'](_0x3dac70[0x0],_0x3dac70[0x1])));const _0x428b9a=Cesium$1['Cartesian3'][_0x48d239(0x251)](_0x3dac70[0x0],_0x3dac70[0x1],_0x5859dc);if(!_0x428b9a)return _0x2548cd;const _0x4e80f8=_0x41b0b9['cartesianToCanvasCoordinates'](_0x428b9a);if(!_0x4e80f8)return _0x2548cd;if(_0x41b0b9[_0x48d239(_0x47f787._0x2ea6a7)]&&_0x41b0b9[_0x48d239(_0x47f787._0x1c6007)]===Cesium$1['SceneMode']['SCENE3D']){const _0x19822f=new Cesium$1[(_0x48d239(0x210))](_0x41b0b9[_0x48d239(0x23e)]['ellipsoid'],_0x41b0b9['camera']['positionWC']),_0x8d8920=_0x19822f['isPointVisible'](_0x428b9a);if(!_0x8d8920)return _0x2548cd;}return[_0x4e80f8['x'],_0x4e80f8['y']];}};void 0x0!==_0x454aa7&&(_0x41cb65['filter']=function(_0x1d3002){const _0x45f378=_0x340c86,_0x4bd4ca=_0x50b6ce[_0x45f378(_0x441721._0x5b0c3b)]||0xa;return!!(_0x454aa7&&_0x1d3002[_0x45f378(_0x441721._0x203638)]>_0x454aa7-_0x4bd4ca&&_0x1d3002['time']<_0x454aa7);});const _0x46b2b7=this['dataSet']['get'](_0x41cb65);this['processData'](_0x46b2b7),this['options'][_0x340c86(_0x1c318f._0x3c826e)]==='m'&&this['options'][_0x340c86(0x23b)],this['options'][_0x340c86(_0x1c318f._0x1919c8)]=this['options']['size'];const _0x7de498=_0x41b0b9['cartesianToCanvasCoordinates'](Cesium$1['Cartesian3']['fromDegrees'](0x0,0x0));if(!_0x7de498)return;this[_0x340c86(0x238)](_0x11ec65,new mapv__namespace['DataSet'](_0x46b2b7),this[_0x340c86(0x1fe)],_0x7de498),this['options']['updateCallback']&&this['options'][_0x340c86(0x1f6)](_0x454aa7);}}[_0x22809d(0x241)](_0x6ade26,_0x44b402){const _0x4ec26c={_0x1cdfe8:0x206},_0x1f00b7=_0x22809d;let _0x4ef095=_0x6ade26;_0x4ef095&&_0x4ef095['get']&&(_0x4ef095=_0x4ef095[_0x1f00b7(0x224)]()),void 0x0!==_0x4ef095&&this[_0x1f00b7(_0x4ec26c._0x1cdfe8)]['set'](_0x4ef095),super['update']({'options':_0x44b402});}['addData'](_0x1ecc61,_0x5eb12a){const _0x194438={_0x248cb6:0x21d},_0x4775a2=_0x22809d;let _0x16a476=_0x1ecc61;_0x1ecc61&&_0x1ecc61['get']&&(_0x16a476=_0x1ecc61['get']()),this['dataSet']['add'](_0x16a476),this[_0x4775a2(_0x194438._0x248cb6)]({'options':_0x5eb12a});}[_0x22809d(0x23c)](){const _0x50394e=_0x22809d;return this[_0x50394e(0x206)];}['removeData'](_0x5001ed){const _0x15f72d={_0x12a0b5:0x25a},_0x23d33f=_0x22809d;if(this['dataSet']){const _0xb42c15=this['dataSet']['get']({'filter':function(_0x55d1bb){const _0x1bbbef=_0x3406;return _0x5001ed==null||typeof _0x5001ed!==_0x1bbbef(_0x15f72d._0x12a0b5)||!_0x5001ed(_0x55d1bb);}});this['dataSet'][_0x23d33f(0x22a)](_0xb42c15),this['update']({'options':null});}}['clearData'](){this['dataSet']&&this['dataSet']['clear'](),this['update']({'options':null});}['draw'](){this['canvasLayer']['draw']();}['clear'](_0x32a22b){const _0xc071b7={_0x1846e5:0x254},_0xe586fc=_0x22809d;_0x32a22b&&_0x32a22b['clearRect']&&_0x32a22b['clearRect'](0x0,0x0,_0x32a22b['canvas']['width'],_0x32a22b[_0xe586fc(_0xc071b7._0x1846e5)]['height']);}['destroy'](){this['clear'](this['getContext']()),this['clearData'](),this['animator']&&this['animator']['stop'](),this['animator']=null,this['canvasLayer']=null;}}if(mapv__namespace!==null&&mapv__namespace!==void 0x0&&mapv__namespace['DataSet'])mapv__namespace[_0x22809d(0x211)]['prototype'][_0x22809d(0x20c)]=function(_0x2af1db,_0x4ae1ec,_0xe6bc09,_0x225506){const _0x2f9dbf={_0x246900:0x207,_0x51d9f7:0x22d},_0x562435={_0x46e03c:0x222,_0x52fd64:0x201},_0x120938=_0x22809d;_0x225506=_0x225506||'_coordinates',_0xe6bc09=_0xe6bc09||'coordinates';for(let _0x493c31=0x0;_0x493c31<_0x2af1db['length'];_0x493c31++){const _0xf34cbf=_0x2af1db[_0x493c31][_0x120938(0x24a)],_0x15a2a8=_0xf34cbf[_0xe6bc09];switch(_0xf34cbf[_0x120938(_0x2f9dbf._0x246900)]){case'Point':{const _0x11154c=_0x4ae1ec(_0x15a2a8);_0x11154c?_0xf34cbf[_0x225506]=_0x11154c:_0xf34cbf[_0x225506]=[-0x3e7,-0x3e7];}break;case _0x120938(0x245):{const _0x361e19=[];for(let _0x28a576=0x0;_0x28a576<_0x15a2a8['length'];_0x28a576++){const _0xda03bf=_0x4ae1ec(_0x15a2a8[_0x28a576]);_0xda03bf&&_0x361e19['push'](_0xda03bf);}_0xf34cbf[_0x225506]=_0x361e19;}break;case _0x120938(0x23d):case _0x120938(_0x2f9dbf._0x51d9f7):{const _0x22ab5e=_0x5bd2d1(_0x15a2a8);_0xf34cbf[_0x225506]=_0x22ab5e;}break;case'MultiPolygon':{const _0xe8ecad=[];for(let _0x580e14=0x0;_0x580e14<_0x15a2a8['length'];_0x580e14++){const _0x38a435=_0x5bd2d1(_0x15a2a8[_0x580e14]);_0x38a435['length']>0x0&&_0xe8ecad[_0x120938(0x201)](_0x38a435);}_0xf34cbf[_0x225506]=_0xe8ecad;}break;}}function _0x5bd2d1(_0x5d6766){const _0x1d0af1=_0x120938,_0x585909=[];for(let _0xd7a7a3=0x0;_0xd7a7a3<_0x5d6766[_0x1d0af1(_0x562435._0x46e03c)];_0xd7a7a3++){const _0x271d41=_0x5d6766[_0xd7a7a3],_0x3dbf0b=[];for(let _0x270a44=0x0;_0x270a44<_0x271d41['length'];_0x270a44++){const _0x484c6c=_0x4ae1ec(_0x271d41[_0x270a44]);_0x484c6c&&_0x3dbf0b[_0x1d0af1(_0x562435._0x52fd64)](_0x484c6c);}_0x3dbf0b['length']>0x0&&_0x585909['push'](_0x3dbf0b);}return _0x585909;}return _0x2af1db;};else throw new Error('请引入\x20mapv\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];function _0x3406(_0x17d054,_0x516b36){const _0x38214d=_0x3821();return _0x3406=function(_0x3406e0,_0x270f6a){_0x3406e0=_0x3406e0-0x1eb;let _0x2b0a32=_0x38214d[_0x3406e0];return _0x2b0a32;},_0x3406(_0x17d054,_0x516b36);}class MapVLayer extends BaseLayer{constructor(_0x132cbc,_0x5f2ca5){const _0x251aa0={_0x2e2761:0x1f3,_0x9acda3:0x211},_0x2b948b=_0x22809d;super(_0x132cbc),this[_0x2b948b(_0x251aa0._0x2e2761)]=this['options']['pointerEvents'],this['dataSet']=_0x5f2ca5||new mapv__namespace[(_0x2b948b(_0x251aa0._0x9acda3))](_0x132cbc['data']),this[_0x2b948b(0x254)]=null;}get['pointerEvents'](){const _0x2bd9f3={_0x4a7e70:0x1f3},_0x32ed73=_0x22809d;return this[_0x32ed73(_0x2bd9f3._0x4a7e70)];}set['pointerEvents'](_0x1231c9){const _0x32554c={_0x5b3495:0x254},_0x45317a=_0x22809d;this['_pointerEvents']=_0x1231c9,this['canvas']&&(_0x1231c9?this[_0x45317a(0x254)]['style']['pointerEvents']='all':this[_0x45317a(_0x32554c._0x5b3495)]['style']['pointerEvents']=_0x45317a(0x204));}['_showHook'](_0x314d07){const _0x23f48f={_0x37b414:0x253},_0x384d34=_0x22809d;_0x314d07?this['canvas']['style']['display']='block':this['canvas'][_0x384d34(_0x23f48f._0x37b414)]['display']='none';}['_mountedHook'](){const _0x4dbce1=_0x22809d;this['_map'][_0x4dbce1(0x234)]['mapvDepthTest']=this['options'][_0x4dbce1(0x232)]??!![],this[_0x4dbce1(0x214)]['scene']['mapvAutoHeight']=this['options']['clampToGround']??![],this[_0x4dbce1(0x214)]['scene']['mapvFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x57a994={_0x26b92e:0x206,_0x6e64c3:0x237},_0x42c0f5=_0x22809d;this['dataSet']&&(!this['dataSet']['_data']||this['dataSet'][_0x42c0f5(0x226)]['length']===0x0)&&(this[_0x42c0f5(_0x57a994._0x26b92e)]['_data']=[]['concat'](this['dataSet']['_dataCache'])),this['_mapVRenderer']=new MapVRenderer(this['_map'],this['dataSet'],this['options'],this),this[_0x42c0f5(0x1f2)](),this['canvas']=this['_createCanvas'](),this['render']=this['render']['bind'](this),this[_0x42c0f5(_0x57a994._0x6e64c3)](),this[_0x42c0f5(0x20f)]();}[_0x22809d(0x231)](){const _0x3e9607=_0x22809d;this[_0x3e9607(0x1f9)](),this['_mapVRenderer']&&(this[_0x3e9607(0x21f)]['destroy'](),this['_mapVRenderer']=null),this[_0x3e9607(0x254)]['parentElement']['removeChild'](this['canvas']);}['initDevicePixelRatio'](){const _0x3c35e8=_0x22809d;this['devicePixelRatio']=window[_0x3c35e8(0x252)]||0x1;}[_0x22809d(0x237)](){const _0x5e403b={_0x587e9c:0x214,_0x2a9c40:0x220,_0x2308b9:0x250,_0x2bb5a6:0x1fc,_0x21390e:0x250,_0x6519e6:0x239},_0x4bcec5=_0x22809d;var _0x360976,_0x449c34;this[_0x4bcec5(_0x5e403b._0x587e9c)]['on'](mars3d__namespace['EventType'][_0x4bcec5(_0x5e403b._0x2a9c40)],this[_0x4bcec5(_0x5e403b._0x2308b9)],this),this['_map']['on'](mars3d__namespace['EventType'][_0x4bcec5(_0x5e403b._0x2bb5a6)],this[_0x4bcec5(_0x5e403b._0x21390e)],this),this[_0x4bcec5(0x214)]['on'](mars3d__namespace['EventType']['cameraMoveEnd'],this['_onMoveEndEvent'],this),(_0x360976=this['options'])!==null&&_0x360976!==void 0x0&&(_0x360976=_0x360976['methods'])!==null&&_0x360976!==void 0x0&&_0x360976[_0x4bcec5(_0x5e403b._0x6519e6)]&&this[_0x4bcec5(_0x5e403b._0x587e9c)]['on'](mars3d__namespace['EventType'][_0x4bcec5(0x239)],this['_onMapClick'],this),(_0x449c34=this['options'])!==null&&_0x449c34!==void 0x0&&(_0x449c34=_0x449c34['methods'])!==null&&_0x449c34!==void 0x0&&_0x449c34['mousemove']&&this[_0x4bcec5(0x214)]['on'](mars3d__namespace['EventType'][_0x4bcec5(0x24c)],this['_onMapMouseMove'],this);}['unbindEvent'](){const _0x25aa40={_0x5ecfcf:0x1eb,_0x483d03:0x258,_0x531033:0x25b,_0x364a23:0x255,_0x201377:0x22c},_0x35eb00=_0x22809d;var _0xc15ca0,_0x5c9bdd;this['_map'][_0x35eb00(0x255)](mars3d__namespace['EventType']['mouseDown'],this['_onMoveStartEvent'],this),this['_map']['off'](mars3d__namespace['EventType']['cameraMoveStart'],this['_onMoveStartEvent'],this),this['_map'][_0x35eb00(0x255)](mars3d__namespace['EventType'][_0x35eb00(_0x25aa40._0x5ecfcf)],this[_0x35eb00(_0x25aa40._0x483d03)],this),this['_map']['off'](mars3d__namespace[_0x35eb00(_0x25aa40._0x531033)]['postRender'],this['_reset'],this),(_0xc15ca0=this['options'])!==null&&_0xc15ca0!==void 0x0&&(_0xc15ca0=_0xc15ca0['methods'])!==null&&_0xc15ca0!==void 0x0&&_0xc15ca0['click']&&this['_map'][_0x35eb00(_0x25aa40._0x364a23)](mars3d__namespace['EventType']['click'],this['_onMapClick'],this),(_0x5c9bdd=this['options'])!==null&&_0x5c9bdd!==void 0x0&&(_0x5c9bdd=_0x5c9bdd['methods'])!==null&&_0x5c9bdd!==void 0x0&&_0x5c9bdd[_0x35eb00(_0x25aa40._0x201377)]&&this['_map']['off'](mars3d__namespace['EventType']['mouseMove'],this[_0x35eb00(0x229)],this);}['_onMoveStartEvent'](){const _0xc9436b={_0xd5d0dd:0x214,_0x113185:0x25b,_0x55a7f6:0x20e},_0x5ca7e8=_0x22809d;this['_mapVRenderer']&&(this['_mapVRenderer'][_0x5ca7e8(0x1f1)](),this[_0x5ca7e8(_0xc9436b._0xd5d0dd)]['off'](mars3d__namespace['EventType']['postRender'],this['_reset'],this),this['_map']['on'](mars3d__namespace[_0x5ca7e8(_0xc9436b._0x113185)][_0x5ca7e8(_0xc9436b._0x55a7f6)],this['_reset'],this));}['_onMoveEndEvent'](){const _0x543422={_0x358d26:0x25b,_0x585b48:0x20f},_0x160f40=_0x22809d;this['_mapVRenderer']&&(this['_map']['off'](mars3d__namespace[_0x160f40(_0x543422._0x358d26)]['postRender'],this[_0x160f40(_0x543422._0x585b48)],this),this['_mapVRenderer']['animatorMoveendEvent'](),this['_reset']());}['_setOptionsHook'](_0x440887,_0x25243a){const _0x442efe={_0x48380c:0x231},_0x20e096=_0x22809d;this[_0x20e096(_0x442efe._0x48380c)](),this['_addedHook']();}[_0x22809d(0x225)](_0x37e3fe){const _0x24172a={_0x412e59:0x21f},_0x1f00f4=_0x22809d;this[_0x1f00f4(_0x24172a._0x412e59)]&&this['_mapVRenderer']['addData'](_0x37e3fe,this['options']);}['updateData'](_0xa22ed8){this['_mapVRenderer']&&this['_mapVRenderer']['updateData'](_0xa22ed8,this['options']);}['getData'](){const _0x422d4d=_0x22809d;return this['_mapVRenderer']&&(this['dataSet']=this[_0x422d4d(0x21f)]['getData']()),this['dataSet'];}['removeData'](_0x1584fd){const _0x109fad={_0xea9508:0x21f},_0x5ceadf=_0x22809d;this[_0x5ceadf(_0x109fad._0xea9508)]&&this['_mapVRenderer']['removeData'](_0x1584fd);}[_0x22809d(0x236)](){this['_mapVRenderer']&&this['_mapVRenderer']['clearData']();}['_createCanvas'](){const _0x3aa7dd={_0x10494a:0x253,_0x1f5586:0x1ed,_0x22f2ca:0x221,_0x2d5601:0x1fe,_0x33e58c:0x247,_0x513bee:0x256},_0x282b55=_0x22809d,_0x17d4b2=mars3d__namespace['DomUtil']['create']('canvas','mars3d-mapv',this['_map']['container']);_0x17d4b2['id']=this['id'],_0x17d4b2[_0x282b55(_0x3aa7dd._0x10494a)]['position']=_0x282b55(_0x3aa7dd._0x1f5586),_0x17d4b2['style']['top']='0px',_0x17d4b2['style']['left']='0px',_0x17d4b2[_0x282b55(_0x3aa7dd._0x22f2ca)]=parseInt(this['_map']['canvas']['width']),_0x17d4b2['height']=parseInt(this['_map']['canvas']['height']),_0x17d4b2['style']['width']=this['_map']['canvas']['style']['width'],_0x17d4b2['style']['height']=this['_map']['canvas'][_0x282b55(0x253)]['height'],_0x17d4b2['style']['pointerEvents']=this['_pointerEvents']?'auto':'none',_0x17d4b2['style']['zIndex']=this[_0x282b55(_0x3aa7dd._0x2d5601)]['zIndex']??0x9;if(this['options']['context']==='2d'){const _0x3d4456=this[_0x282b55(0x252)];_0x17d4b2[_0x282b55(_0x3aa7dd._0x33e58c)](this[_0x282b55(0x1fe)][_0x282b55(_0x3aa7dd._0x513bee)])['scale'](_0x3d4456,_0x3d4456);}return _0x17d4b2;}[_0x22809d(0x20f)](){this['resize'](),this['render']();}[_0x22809d(0x1f5)](){const _0x5e04ec={_0x9741d3:0x20f},_0x584fb0=_0x22809d;this[_0x584fb0(_0x5e04ec._0x9741d3)]();}['remove'](){const _0x34dc92={_0x295f4c:0x235},_0x18b035=_0x22809d;this['_mapVRenderer']&&(this[_0x18b035(0x21f)]['destroy'](),this['_mapVRenderer']=null),this['canvas']['parentElement'][_0x18b035(_0x34dc92._0x295f4c)](this['canvas']);}['render'](){const _0x2317d6={_0x1208d9:0x24f},_0x939a82=_0x22809d;this['_mapVRenderer'][_0x939a82(_0x2317d6._0x1208d9)]();}[_0x22809d(0x22f)](){const _0xcc89cf={_0x584f71:0x254,_0x383292:0x254,_0x4bd7d7:0x254,_0x89f38b:0x214,_0xd2dc89:0x253,_0x29c2ca:0x253,_0x5c424e:0x253},_0x3822df=_0x22809d;if(this[_0x3822df(_0xcc89cf._0x584f71)]){const _0x3f32ba=this[_0x3822df(_0xcc89cf._0x383292)];_0x3f32ba['style']['position']='absolute',_0x3f32ba['style']['top']='0px',_0x3f32ba['style']['left']=_0x3822df(0x1f0),_0x3f32ba['width']=parseInt(this['_map']['canvas']['width']),_0x3f32ba['height']=parseInt(this['_map'][_0x3822df(_0xcc89cf._0x4bd7d7)][_0x3822df(0x200)]),_0x3f32ba['style']['width']=this[_0x3822df(_0xcc89cf._0x89f38b)]['canvas'][_0x3822df(_0xcc89cf._0xd2dc89)][_0x3822df(0x221)],_0x3f32ba[_0x3822df(_0xcc89cf._0x29c2ca)]['height']=this['_map']['canvas'][_0x3822df(_0xcc89cf._0x5c424e)]['height'];}}[_0x22809d(0x24b)](_0x17e559){const _0x35ce73={_0x1dd8f1:0x209,_0x13a035:0x206},_0x436cdc=_0x22809d;if(!this['dataSet']||!this['dataSet']['_data'])return;const _0x510eb8=mars3d__namespace['Util'][_0x436cdc(_0x35ce73._0x1dd8f1)]({'type':_0x436cdc(0x20d),'features':this[_0x436cdc(_0x35ce73._0x13a035)]['_data']});if(!_0x510eb8)return;return _0x17e559!==null&&_0x17e559!==void 0x0&&_0x17e559['isFormat']?_0x510eb8:Cesium[_0x436cdc(0x21a)][_0x436cdc(0x251)](_0x510eb8['xmin'],_0x510eb8['ymin'],_0x510eb8['xmax'],_0x510eb8['ymax']);}['_onMapClick'](_0x540ab8){const _0x261cfd={_0x113c5d:0x21f},_0x2c5f8f=_0x22809d;this[_0x2c5f8f(0x22e)]=_0x540ab8,this['_mapVRenderer']&&this[_0x2c5f8f(_0x261cfd._0x113c5d)]['clickEvent'](_0x540ab8[_0x2c5f8f(0x259)],_0x540ab8);}[_0x22809d(0x229)](_0x57dcdc){const _0x3bd276={_0x45ff89:0x21f},_0x1cc351=_0x22809d;this[_0x1cc351(0x22e)]=_0x57dcdc,this[_0x1cc351(0x21f)]&&this[_0x1cc351(_0x3bd276._0x45ff89)]['mousemoveEvent'](_0x57dcdc['windowPosition'],_0x57dcdc);}['on'](_0x78913d,_0x54b439,_0xf07115){const _0x4444f9={_0x11c6ab:0x239,_0x47a01a:0x214},_0xd66bc5={_0x5edbc3:0x22e},_0x2917a6=_0x22809d;this['options']['methods']=this['options']['methods']||{};if(_0x78913d===mars3d__namespace['EventType']['click'])this['options']['methods'][_0x2917a6(0x239)]=_0x162523=>{const _0x4720f3=_0x2917a6;_0x162523&&_0x54b439['bind'](_0xf07115)({...this[_0x4720f3(_0xd66bc5._0x5edbc3)],'layer':this,'data':_0x162523});},this['_map']['on'](mars3d__namespace['EventType'][_0x2917a6(_0x4444f9._0x11c6ab)],this['_onMapClick'],this);else _0x78913d===mars3d__namespace['EventType']['mouseMove']&&(this['options']['methods']['mousemove']=_0x116523=>{_0x116523&&_0x54b439['bind'](_0xf07115)({...this['_cache_event'],'layer':this,'data':_0x116523});},this[_0x2917a6(_0x4444f9._0x47a01a)]['on'](mars3d__namespace['EventType']['mouseMove'],this['_onMapMouseMove'],this));return this;}['off'](_0x4c487d,_0x4038d1){const _0x1ef3de={_0x22a90c:0x255,_0x290ad6:0x1ff,_0x17b4b6:0x1fe,_0x4fbba2:0x24c,_0x214169:0x22c},_0x1d9aec=_0x22809d;if(_0x4c487d==='click'){var _0x14f286;this['_map'][_0x1d9aec(_0x1ef3de._0x22a90c)](_0x4c487d,this[_0x1d9aec(_0x1ef3de._0x290ad6)],this),(_0x14f286=this[_0x1d9aec(_0x1ef3de._0x17b4b6)]['methods'])!==null&&_0x14f286!==void 0x0&&_0x14f286['mousemove']&&delete this['options']['methods']['click'];}else{if(_0x4c487d===_0x1d9aec(_0x1ef3de._0x4fbba2)){var _0x1f329e;this['_map'][_0x1d9aec(0x255)](_0x4c487d,this['_onMapMouseMove'],this),(_0x1f329e=this['options']['methods'])!==null&&_0x1f329e!==void 0x0&&_0x1f329e[_0x1d9aec(_0x1ef3de._0x214169)]&&delete this['options'][_0x1d9aec(0x227)][_0x1d9aec(0x22c)];}}return this;}}mars3d__namespace['LayerUtil']['register'](_0x22809d(0x21b),MapVLayer),mars3d__namespace['layer'][_0x22809d(0x212)]=MapVLayer,mars3d__namespace['mapv']=mapv__namespace,exports[_0x22809d(0x212)]=MapVLayer,Object[_0x22809d(0x228)](mapv)[_0x22809d(0x249)](function(_0x2a96a5){const _0x1d0202=_0x22809d;if(_0x2a96a5!=='default'&&!exports[_0x1d0202(0x24e)](_0x2a96a5))Object['defineProperty'](exports,_0x2a96a5,{'enumerable':!![],'get':function(){return mapv[_0x2a96a5];}});}),Object['defineProperty'](exports,_0x22809d(0x233),{'value':!![]});
'use strict';const _0x3ce00f=_0x413c;(function(_0x5dc8e0,_0x59fec2){const _0x554738={_0xf02fad:0x88,_0x504655:0xb6,_0xf723f8:0xae,_0x394fa4:0x98},_0x3a3a77=_0x413c,_0x2afb4d=_0x5dc8e0();while(!![]){try{const _0x23c1da=-parseInt(_0x3a3a77(0x8d))/0x1+parseInt(_0x3a3a77(_0x554738._0xf02fad))/0x2+parseInt(_0x3a3a77(0xab))/0x3*(parseInt(_0x3a3a77(0xc2))/0x4)+parseInt(_0x3a3a77(_0x554738._0x504655))/0x5*(-parseInt(_0x3a3a77(0xd7))/0x6)+-parseInt(_0x3a3a77(0x8e))/0x7*(-parseInt(_0x3a3a77(_0x554738._0xf723f8))/0x8)+-parseInt(_0x3a3a77(0xac))/0x9+parseInt(_0x3a3a77(0xa6))/0xa*(parseInt(_0x3a3a77(_0x554738._0x394fa4))/0xb);if(_0x23c1da===_0x59fec2)break;else _0x2afb4d['push'](_0x2afb4d['shift']());}catch(_0x248702){_0x2afb4d['push'](_0x2afb4d['shift']());}}}(_0xe402,0x84a34));function _0x413c(_0x57febd,_0x46f7bd){const _0xe402e=_0xe402();return _0x413c=function(_0x413ce4,_0xa9d1cf){_0x413ce4=_0x413ce4-0x78;let _0x30f61c=_0xe402e[_0x413ce4];return _0x30f61c;},_0x413c(_0x57febd,_0x46f7bd);}function _interopNamespace(_0x5afbb9){const _0xcc9d1e={_0x5e00f3:0x91},_0x53cff4=_0x413c;if(_0x5afbb9&&_0x5afbb9['__esModule'])return _0x5afbb9;var _0x73238e=Object[_0x53cff4(_0xcc9d1e._0x5e00f3)](null);return _0x5afbb9&&Object['keys'](_0x5afbb9)['forEach'](function(_0x10d430){const _0x220691=_0x53cff4;if(_0x10d430!=='default'){var _0x292fad=Object['getOwnPropertyDescriptor'](_0x5afbb9,_0x10d430);Object[_0x220691(0x85)](_0x73238e,_0x10d430,_0x292fad['get']?_0x292fad:{'enumerable':!![],'get':function(){return _0x5afbb9[_0x10d430];}});}}),_0x73238e['default']=_0x5afbb9,_0x73238e;}var mapv__namespace=_interopNamespace(mapv),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'],baiduMapLayer=mapv__namespace?mapv__namespace['baiduMapLayer']:null,BaseLayer$1=baiduMapLayer?baiduMapLayer[_0x3ce00f(0xb3)]:Function;class MapVRenderer extends BaseLayer$1{constructor(_0x31980f,_0x153a2c,_0x9a8998,_0x5c767b){const _0x573dfb=_0x3ce00f;super(_0x31980f,_0x153a2c,_0x9a8998);if(!BaseLayer$1)return;this[_0x573dfb(0x83)]=_0x31980f,this['scene']=_0x31980f[_0x573dfb(0x89)],this[_0x573dfb(0xd0)]=_0x153a2c,_0x9a8998=_0x9a8998||{},this['init'](_0x9a8998),this['argCheck'](_0x9a8998),this['initDevicePixelRatio'](),this['canvasLayer']=_0x5c767b,this[_0x573dfb(0x7a)]=!0x1,this['animation']=_0x9a8998['animation'];}['initDevicePixelRatio'](){this['devicePixelRatio']=window['devicePixelRatio']||0x1;}['addAnimatorEvent'](){}[_0x3ce00f(0x96)](){const _0x112b8d={_0x296f30:0xc4,_0x3c837d:0xd5},_0x3172a8=_0x3ce00f,_0x54cc36=this['options'][_0x3172a8(_0x112b8d._0x296f30)];this[_0x3172a8(_0x112b8d._0x3c837d)]()&&this['animator']&&(this[_0x3172a8(0x7c)]['step']=_0x54cc36['stepsRange']['start']);}['animatorMoveendEvent'](){this['isEnabledTime']()&&this['animator'];}['getContext'](){const _0x628933={_0xca7da0:0x9e},_0x597042=_0x3ce00f;return this['canvasLayer']['canvas'][_0x597042(_0x628933._0xca7da0)](this['context']);}['init'](_0x5dec26){const _0x1acfd4=_0x3ce00f;this[_0x1acfd4(0xc1)]=_0x5dec26,this['initDataRange'](_0x5dec26),this['context']=this['options'][_0x1acfd4(0xc8)]||'2d',Cesium$1['defined'](this['options']['zIndex'])&&this['canvasLayer']&&this['canvasLayer']['setZIndex']&&this[_0x1acfd4(0xa7)]['setZIndex'](this['options']['zIndex']),this[_0x1acfd4(0xc7)]();}['_canvasUpdate'](_0x34e6f0){const _0x3a4ca6={_0x146063:0x7a,_0x3e6555:0xbf,_0x123ad8:0xa5,_0x301abb:0xc8,_0x4950c3:0xc1,_0x3035ca:0x92,_0x3ded0f:0x87,_0x23171d:0xb2},_0x3de72a={_0x4b98b5:0x9d},_0x2942bd={_0xbc428:0xa2,_0x58e964:0x7e},_0x3a25ff=_0x3ce00f,_0x358e2e=this['scene'];if(this['canvasLayer']&&!this[_0x3a25ff(_0x3a4ca6._0x146063)]){const _0x2ed152=this['options']['animation'],_0x53c7d6=this['getContext']();if(this['isEnabledTime']()){if(void 0x0===_0x34e6f0)return void this[_0x3a25ff(_0x3a4ca6._0x3e6555)](_0x53c7d6);this['context']==='2d'&&(_0x53c7d6['save'](),_0x53c7d6['globalCompositeOperation']=_0x3a25ff(_0x3a4ca6._0x123ad8),_0x53c7d6['fillStyle']='rgba(0,\x200,\x200,\x20.1)',_0x53c7d6[_0x3a25ff(0xc6)](0x0,0x0,_0x53c7d6['canvas']['width'],_0x53c7d6['canvas']['height']),_0x53c7d6['restore']());}else this['clear'](_0x53c7d6);if(this[_0x3a25ff(_0x3a4ca6._0x301abb)]==='2d')for(const _0x5208f7 in this['options']){_0x53c7d6[_0x5208f7]=this[_0x3a25ff(_0x3a4ca6._0x4950c3)][_0x5208f7];}else _0x53c7d6['clear'](_0x53c7d6[_0x3a25ff(_0x3a4ca6._0x3035ca)]);const _0x469260={'transferCoordinate':function(_0x93f684){const _0x385f26=_0x3a25ff,_0x51ee0a=null;let _0x48e596=_0x358e2e['mapvFixedHeight'];_0x358e2e[_0x385f26(0xa9)]&&(_0x48e596=_0x358e2e['globe']['getHeight'](Cesium$1['Cartographic'][_0x385f26(0xa2)](_0x93f684[0x0],_0x93f684[0x1])));const _0xcd58f1=Cesium$1['Cartesian3'][_0x385f26(_0x2942bd._0xbc428)](_0x93f684[0x0],_0x93f684[0x1],_0x48e596);if(!_0xcd58f1)return _0x51ee0a;const _0x560ddd=_0x358e2e['cartesianToCanvasCoordinates'](_0xcd58f1);if(!_0x560ddd)return _0x51ee0a;if(_0x358e2e['mapvDepthTest']&&_0x358e2e['mode']===Cesium$1['SceneMode'][_0x385f26(0xb4)]){const _0x516517=new Cesium$1['EllipsoidalOccluder'](_0x358e2e['globe']['ellipsoid'],_0x358e2e[_0x385f26(_0x2942bd._0x58e964)][_0x385f26(0xd8)]),_0x1bc46c=_0x516517['isPointVisible'](_0xcd58f1);if(!_0x1bc46c)return _0x51ee0a;}return[_0x560ddd['x'],_0x560ddd['y']];}};void 0x0!==_0x34e6f0&&(_0x469260[_0x3a25ff(0x84)]=function(_0x1dcd3a){const _0x448a80=_0x3a25ff,_0x425575=_0x2ed152[_0x448a80(_0x3de72a._0x4b98b5)]||0xa;return!!(_0x34e6f0&&_0x1dcd3a['time']>_0x34e6f0-_0x425575&&_0x1dcd3a['time']<_0x34e6f0);});const _0x166667=this[_0x3a25ff(0xd0)][_0x3a25ff(0x78)](_0x469260);this['processData'](_0x166667),this['options']['unit']==='m'&&this[_0x3a25ff(0xc1)]['size'],this['options']['_size']=this[_0x3a25ff(0xc1)]['size'];const _0x159669=_0x358e2e['cartesianToCanvasCoordinates'](Cesium$1['Cartesian3']['fromDegrees'](0x0,0x0));if(!_0x159669)return;this['drawContext'](_0x53c7d6,new mapv__namespace[(_0x3a25ff(_0x3a4ca6._0x3ded0f))](_0x166667),this['options'],_0x159669),this['options'][_0x3a25ff(0xb2)]&&this['options'][_0x3a25ff(_0x3a4ca6._0x23171d)](_0x34e6f0);}}['updateData'](_0x59bf5d,_0x163c82){const _0x23393c={_0x66fa85:0x93},_0x230e5a=_0x3ce00f;let _0x1f7fc9=_0x59bf5d;_0x1f7fc9&&_0x1f7fc9['get']&&(_0x1f7fc9=_0x1f7fc9[_0x230e5a(0x78)]()),void 0x0!==_0x1f7fc9&&this['dataSet']['set'](_0x1f7fc9),super[_0x230e5a(_0x23393c._0x66fa85)]({'options':_0x163c82});}['addData'](_0x3d7ae7,_0x27817d){const _0x124779={_0xd96a82:0xa4},_0x5f167f=_0x3ce00f;let _0x14d20d=_0x3d7ae7;_0x3d7ae7&&_0x3d7ae7['get']&&(_0x14d20d=_0x3d7ae7[_0x5f167f(0x78)]()),this['dataSet'][_0x5f167f(_0x124779._0xd96a82)](_0x14d20d),this['update']({'options':_0x27817d});}['getData'](){return this['dataSet'];}['removeData'](_0x354794){const _0x1c6664={_0x1191aa:0xd0},_0x550778=_0x3ce00f;if(this[_0x550778(0xd0)]){const _0x3ee311=this[_0x550778(0xd0)]['get']({'filter':function(_0x41f010){return _0x354794==null||typeof _0x354794!=='function'||!_0x354794(_0x41f010);}});this[_0x550778(_0x1c6664._0x1191aa)][_0x550778(0xa1)](_0x3ee311),this['update']({'options':null});}}['clearData'](){this['dataSet']&&this['dataSet']['clear'](),this['update']({'options':null});}['draw'](){this['canvasLayer']['draw']();}['clear'](_0x10a6ea){const _0x44c0c9={_0x413579:0x86},_0x3d1a1e=_0x3ce00f;_0x10a6ea&&_0x10a6ea['clearRect']&&_0x10a6ea[_0x3d1a1e(_0x44c0c9._0x413579)](0x0,0x0,_0x10a6ea[_0x3d1a1e(0xa3)]['width'],_0x10a6ea['canvas']['height']);}[_0x3ce00f(0xb8)](){const _0x3b2eae={_0x38d67b:0x8a},_0x1f7cd6=_0x3ce00f;this['clear'](this['getContext']()),this['clearData'](),this['animator']&&this['animator'][_0x1f7cd6(_0x3b2eae._0x38d67b)](),this[_0x1f7cd6(0xb9)]=null,this['canvasLayer']=null;}}if(mapv__namespace!==null&&mapv__namespace!==void 0x0&&mapv__namespace['DataSet'])mapv__namespace[_0x3ce00f(0x87)][_0x3ce00f(0xb5)]['transferCoordinate']=function(_0x3a5518,_0x132b3f,_0x1ae27d,_0x13c28a){const _0x4c298b={_0x4a1453:0xcd,_0x3622d9:0xc0,_0x5c49ec:0xd2},_0x1ee830=_0x3ce00f;_0x13c28a=_0x13c28a||_0x1ee830(_0x4c298b._0x4a1453),_0x1ae27d=_0x1ae27d||'coordinates';for(let _0x303545=0x0;_0x303545<_0x3a5518[_0x1ee830(0xd2)];_0x303545++){const _0x53c64b=_0x3a5518[_0x303545][_0x1ee830(_0x4c298b._0x3622d9)],_0x1435af=_0x53c64b[_0x1ae27d];switch(_0x53c64b['type']){case'Point':{const _0x241171=_0x132b3f(_0x1435af);_0x241171?_0x53c64b[_0x13c28a]=_0x241171:_0x53c64b[_0x13c28a]=[-0x3e7,-0x3e7];}break;case _0x1ee830(0xd4):{const _0x329ddb=[];for(let _0x3fe395=0x0;_0x3fe395<_0x1435af['length'];_0x3fe395++){const _0x574b3b=_0x132b3f(_0x1435af[_0x3fe395]);_0x574b3b&&_0x329ddb['push'](_0x574b3b);}_0x53c64b[_0x13c28a]=_0x329ddb;}break;case'MultiLineString':case'Polygon':{const _0x1c137d=_0x46c0d8(_0x1435af);_0x53c64b[_0x13c28a]=_0x1c137d;}break;case'MultiPolygon':{const _0x5ba074=[];for(let _0x1c2bef=0x0;_0x1c2bef<_0x1435af['length'];_0x1c2bef++){const _0x196b01=_0x46c0d8(_0x1435af[_0x1c2bef]);_0x196b01[_0x1ee830(_0x4c298b._0x5c49ec)]>0x0&&_0x5ba074[_0x1ee830(0xcb)](_0x196b01);}_0x53c64b[_0x13c28a]=_0x5ba074;}break;}}function _0x46c0d8(_0x50dcfd){const _0x58b6d1=_0x1ee830,_0x16ef7b=[];for(let _0x4f117e=0x0;_0x4f117e<_0x50dcfd['length'];_0x4f117e++){const _0x5e53ec=_0x50dcfd[_0x4f117e],_0x6d9ce3=[];for(let _0x35e9b2=0x0;_0x35e9b2<_0x5e53ec['length'];_0x35e9b2++){const _0x418965=_0x132b3f(_0x5e53ec[_0x35e9b2]);_0x418965&&_0x6d9ce3['push'](_0x418965);}_0x6d9ce3[_0x58b6d1(0xd2)]>0x0&&_0x16ef7b['push'](_0x6d9ce3);}return _0x16ef7b;}return _0x3a5518;};else throw new Error('请引入\x20mapv\x20库\x20');const Cesium=mars3d__namespace[_0x3ce00f(0x7b)],BaseLayer=mars3d__namespace[_0x3ce00f(0xaf)]['BaseLayer'];class MapVLayer extends BaseLayer{constructor(_0x3026b9,_0xe27395){const _0x11ea11={_0x317d82:0xc1},_0x276551=_0x3ce00f;super(_0x3026b9),this['_pointerEvents']=this[_0x276551(_0x11ea11._0x317d82)]['pointerEvents'],this['dataSet']=_0xe27395||new mapv__namespace['DataSet'](_0x3026b9['data']),this[_0x276551(0xa3)]=null;}get['pointerEvents'](){const _0x102cbe=_0x3ce00f;return this[_0x102cbe(0xcc)];}set['pointerEvents'](_0x30256e){const _0x57ca4b={_0x2ef2bb:0xd1},_0x165079=_0x3ce00f;this['_pointerEvents']=_0x30256e,this['canvas']&&(_0x30256e?this['canvas']['style'][_0x165079(0xd1)]='all':this['canvas']['style'][_0x165079(_0x57ca4b._0x2ef2bb)]='none');}['_showHook'](_0x2d9f07){const _0x2df72b=_0x3ce00f;_0x2d9f07?this['canvas']['style']['display']=_0x2df72b(0xca):this['canvas']['style']['display']='none';}[_0x3ce00f(0xa8)](){const _0x2f1c9b={_0x4d811b:0x8c,_0x322a11:0x8c},_0x301d53=_0x3ce00f;this['_map']['scene'][_0x301d53(0x9c)]=this['options'][_0x301d53(0xc9)]??!![],this[_0x301d53(_0x2f1c9b._0x4d811b)]['scene']['mapvAutoHeight']=this['options']['clampToGround']??![],this[_0x301d53(_0x2f1c9b._0x322a11)][_0x301d53(0x89)][_0x301d53(0xc3)]=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x57db65={_0x1a3c3a:0x81,_0x330a01:0xc1,_0x639f08:0x80},_0x57a6ac=_0x3ce00f;this[_0x57a6ac(0xd0)]&&(!this['dataSet']['_data']||this[_0x57a6ac(0xd0)]['_data'][_0x57a6ac(0xd2)]===0x0)&&(this['dataSet'][_0x57a6ac(_0x57db65._0x1a3c3a)]=[]['concat'](this['dataSet']['_dataCache'])),this['_mapVRenderer']=new MapVRenderer(this['_map'],this['dataSet'],this[_0x57a6ac(_0x57db65._0x330a01)],this),this['initDevicePixelRatio'](),this['canvas']=this['_createCanvas'](),this[_0x57a6ac(_0x57db65._0x639f08)]=this['render']['bind'](this),this['bindEvent'](),this['_reset']();}['_removedHook'](){const _0x5357ea={_0x48aa88:0xb8},_0x421968=_0x3ce00f;this['unbindEvent'](),this['_mapVRenderer']&&(this['_mapVRenderer'][_0x421968(_0x5357ea._0x48aa88)](),this['_mapVRenderer']=null),this[_0x421968(0xa3)]['parentElement']['removeChild'](this['canvas']);}['initDevicePixelRatio'](){this['devicePixelRatio']=window['devicePixelRatio']||0x1;}['bindEvent'](){const _0x43f3c0={_0x505e6d:0xb0,_0x494a09:0xa0,_0x23c0c4:0xc1,_0x778aa1:0xb1},_0x50d40b=_0x3ce00f;var _0x27cfa9,_0xef7de9;this['_map']['on'](mars3d__namespace['EventType']['mouseDown'],this[_0x50d40b(0xba)],this),this['_map']['on'](mars3d__namespace[_0x50d40b(_0x43f3c0._0x505e6d)][_0x50d40b(_0x43f3c0._0x494a09)],this['_onMoveStartEvent'],this),this['_map']['on'](mars3d__namespace['EventType']['cameraMoveEnd'],this['_onMoveEndEvent'],this),(_0x27cfa9=this[_0x50d40b(_0x43f3c0._0x23c0c4)])!==null&&_0x27cfa9!==void 0x0&&(_0x27cfa9=_0x27cfa9['methods'])!==null&&_0x27cfa9!==void 0x0&&_0x27cfa9['click']&&this['_map']['on'](mars3d__namespace['EventType']['click'],this['_onMapClick'],this),(_0xef7de9=this['options'])!==null&&_0xef7de9!==void 0x0&&(_0xef7de9=_0xef7de9['methods'])!==null&&_0xef7de9!==void 0x0&&_0xef7de9['mousemove']&&this[_0x50d40b(0x8c)]['on'](mars3d__namespace['EventType'][_0x50d40b(_0x43f3c0._0x778aa1)],this[_0x50d40b(0xbc)],this);}[_0x3ce00f(0xce)](){const _0x14ca91={_0x16c873:0xa0,_0x189a6d:0xba},_0x5ae78e=_0x3ce00f;var _0x192e28,_0x33e661;this['_map']['off'](mars3d__namespace['EventType']['mouseDown'],this[_0x5ae78e(0xba)],this),this['_map']['off'](mars3d__namespace['EventType'][_0x5ae78e(_0x14ca91._0x16c873)],this[_0x5ae78e(_0x14ca91._0x189a6d)],this),this['_map']['off'](mars3d__namespace['EventType']['cameraMoveEnd'],this[_0x5ae78e(0x94)],this),this['_map']['off'](mars3d__namespace['EventType'][_0x5ae78e(0x7f)],this['_reset'],this),(_0x192e28=this['options'])!==null&&_0x192e28!==void 0x0&&(_0x192e28=_0x192e28['methods'])!==null&&_0x192e28!==void 0x0&&_0x192e28['click']&&this['_map']['off'](mars3d__namespace['EventType']['click'],this[_0x5ae78e(0xbe)],this),(_0x33e661=this['options'])!==null&&_0x33e661!==void 0x0&&(_0x33e661=_0x33e661['methods'])!==null&&_0x33e661!==void 0x0&&_0x33e661['mousemove']&&this[_0x5ae78e(0x8c)]['off'](mars3d__namespace[_0x5ae78e(0xb0)]['mouseMove'],this['_onMapMouseMove'],this);}['_onMoveStartEvent'](){const _0x322bda={_0x28e322:0x7f},_0x406c8f=_0x3ce00f;this[_0x406c8f(0xbb)]&&(this['_mapVRenderer']['animatorMovestartEvent'](),this['_map'][_0x406c8f(0x95)](mars3d__namespace[_0x406c8f(0xb0)]['postRender'],this['_reset'],this),this['_map']['on'](mars3d__namespace[_0x406c8f(0xb0)][_0x406c8f(_0x322bda._0x28e322)],this['_reset'],this));}['_onMoveEndEvent'](){const _0x238d71={_0x3bf9ba:0x95,_0x269236:0xb0,_0x4c38df:0xbb},_0x566022=_0x3ce00f;this['_mapVRenderer']&&(this['_map'][_0x566022(_0x238d71._0x3bf9ba)](mars3d__namespace[_0x566022(_0x238d71._0x269236)][_0x566022(0x7f)],this['_reset'],this),this[_0x566022(_0x238d71._0x4c38df)]['animatorMoveendEvent'](),this['_reset']());}['_setOptionsHook'](_0x130464,_0x5c5052){this['_removedHook'](),this['_addedHook']();}['addData'](_0x2fb53b){const _0x3eb8db={_0x44907c:0xbb},_0x514a79=_0x3ce00f;this[_0x514a79(0xbb)]&&this[_0x514a79(_0x3eb8db._0x44907c)]['addData'](_0x2fb53b,this['options']);}['updateData'](_0x163fd6){const _0x5a1333={_0x2490c8:0xbb},_0x31e86a=_0x3ce00f;this[_0x31e86a(_0x5a1333._0x2490c8)]&&this[_0x31e86a(_0x5a1333._0x2490c8)]['updateData'](_0x163fd6,this['options']);}['getData'](){const _0x386796={_0x3cc798:0xd0},_0x147c93=_0x3ce00f;return this['_mapVRenderer']&&(this[_0x147c93(_0x386796._0x3cc798)]=this['_mapVRenderer']['getData']()),this['dataSet'];}['removeData'](_0xe89753){const _0x22763c={_0x245ed0:0xbb},_0x3ae294=_0x3ce00f;this['_mapVRenderer']&&this[_0x3ae294(_0x22763c._0x245ed0)]['removeData'](_0xe89753);}['removeAllData'](){this['_mapVRenderer']&&this['_mapVRenderer']['clearData']();}[_0x3ce00f(0xd3)](){const _0x487b49={_0x2094c2:0x91,_0x51d389:0x97,_0x297837:0xbd,_0x32613e:0xad,_0x25325c:0x8c,_0x4f4d25:0xcf,_0x3aa739:0xc1,_0x4463a0:0xc1,_0x161b22:0x8b},_0x22fbea=_0x3ce00f,_0x30e00b=mars3d__namespace['DomUtil'][_0x22fbea(_0x487b49._0x2094c2)](_0x22fbea(0xa3),'mars3d-mapv',this['_map']['container']);_0x30e00b['id']=this['id'],_0x30e00b['style'][_0x22fbea(0x79)]=_0x22fbea(0x82),_0x30e00b[_0x22fbea(0xad)][_0x22fbea(0x99)]='0px',_0x30e00b['style'][_0x22fbea(_0x487b49._0x51d389)]='0px',_0x30e00b['width']=parseInt(this['_map']['canvas'][_0x22fbea(_0x487b49._0x297837)]),_0x30e00b['height']=parseInt(this['_map']['canvas']['height']),_0x30e00b[_0x22fbea(_0x487b49._0x32613e)]['width']=this[_0x22fbea(_0x487b49._0x25325c)]['canvas'][_0x22fbea(0xad)]['width'],_0x30e00b[_0x22fbea(0xad)][_0x22fbea(_0x487b49._0x4f4d25)]=this['_map'][_0x22fbea(0xa3)]['style']['height'],_0x30e00b['style'][_0x22fbea(0xd1)]=this['_pointerEvents']?'auto':'none',_0x30e00b[_0x22fbea(0xad)]['zIndex']=this['options']['zIndex']??0x9;if(this[_0x22fbea(_0x487b49._0x3aa739)][_0x22fbea(0xc8)]==='2d'){const _0x248252=this['devicePixelRatio'];_0x30e00b[_0x22fbea(0x9e)](this[_0x22fbea(_0x487b49._0x4463a0)]['context'])[_0x22fbea(_0x487b49._0x161b22)](_0x248252,_0x248252);}return _0x30e00b;}['_reset'](){const _0x999d38=_0x3ce00f;this['resize'](),this[_0x999d38(0x80)]();}['draw'](){this['_reset']();}[_0x3ce00f(0x8f)](){const _0x4723de={_0x1dfc22:0xbb,_0x288231:0xb8},_0x2377ac=_0x3ce00f;this[_0x2377ac(0xbb)]&&(this[_0x2377ac(_0x4723de._0x1dfc22)][_0x2377ac(_0x4723de._0x288231)](),this['_mapVRenderer']=null),this[_0x2377ac(0xa3)]['parentElement'][_0x2377ac(0x9f)](this['canvas']);}['render'](){const _0x2c8a8c={_0x3ab4b3:0xbb},_0x49a7b0=_0x3ce00f;this[_0x49a7b0(_0x2c8a8c._0x3ab4b3)]['_canvasUpdate']();}['resize'](){const _0x56a353={_0x31d9c4:0x82,_0x2796e1:0xad,_0x37b74d:0xbd,_0x4e8871:0x8c,_0x27db76:0xcf,_0x4c5f4d:0xa3},_0x8df5f3=_0x3ce00f;if(this['canvas']){const _0x334a2b=this[_0x8df5f3(0xa3)];_0x334a2b['style']['position']=_0x8df5f3(_0x56a353._0x31d9c4),_0x334a2b[_0x8df5f3(0xad)]['top']='0px',_0x334a2b[_0x8df5f3(_0x56a353._0x2796e1)][_0x8df5f3(0x97)]='0px',_0x334a2b['width']=parseInt(this['_map']['canvas'][_0x8df5f3(_0x56a353._0x37b74d)]),_0x334a2b['height']=parseInt(this[_0x8df5f3(_0x56a353._0x4e8871)]['canvas'][_0x8df5f3(_0x56a353._0x27db76)]),_0x334a2b['style']['width']=this['_map'][_0x8df5f3(_0x56a353._0x4c5f4d)]['style'][_0x8df5f3(0xbd)],_0x334a2b['style']['height']=this['_map'][_0x8df5f3(0xa3)]['style']['height'];}}['getRectangle'](_0x569156){const _0xb245a={_0x5b274c:0xd0},_0x5089d4=_0x3ce00f;if(!this['dataSet']||!this['dataSet']['_data'])return;const _0x1e3627=mars3d__namespace[_0x5089d4(0x9a)]['getExtentByGeoJSON']({'type':'FeatureCollection','features':this[_0x5089d4(_0xb245a._0x5b274c)]['_data']});if(!_0x1e3627)return;return _0x569156!==null&&_0x569156!==void 0x0&&_0x569156['isFormat']?_0x1e3627:Cesium['Rectangle']['fromDegrees'](_0x1e3627['xmin'],_0x1e3627['ymin'],_0x1e3627['xmax'],_0x1e3627[_0x5089d4(0x9b)]);}[_0x3ce00f(0xbe)](_0x574088){const _0xeca746=_0x3ce00f;this['_cache_event']=_0x574088,this['_mapVRenderer']&&this['_mapVRenderer'][_0xeca746(0x7d)](_0x574088['windowPosition'],_0x574088);}['_onMapMouseMove'](_0x4d8165){this['_cache_event']=_0x4d8165,this['_mapVRenderer']&&this['_mapVRenderer']['mousemoveEvent'](_0x4d8165['windowPosition'],_0x4d8165);}['on'](_0x3120b4,_0x54cb71,_0x5a9086){const _0x3258ac={_0x48ec26:0xc1},_0x39ae7d={_0x46abc4:0xb7},_0x27f128=_0x3ce00f;this['options'][_0x27f128(0xaa)]=this[_0x27f128(_0x3258ac._0x48ec26)]['methods']||{};if(_0x3120b4===mars3d__namespace['EventType']['click'])this[_0x27f128(_0x3258ac._0x48ec26)][_0x27f128(0xaa)]['click']=_0x50b7e0=>{const _0x4f9ae0=_0x27f128;_0x50b7e0&&_0x54cb71['bind'](_0x5a9086)({...this[_0x4f9ae0(_0x39ae7d._0x46abc4)],'layer':this,'data':_0x50b7e0});},this['_map']['on'](mars3d__namespace['EventType']['click'],this['_onMapClick'],this);else _0x3120b4===mars3d__namespace['EventType'][_0x27f128(0xb1)]&&(this[_0x27f128(_0x3258ac._0x48ec26)]['methods'][_0x27f128(0xd6)]=_0x10cb58=>{_0x10cb58&&_0x54cb71['bind'](_0x5a9086)({...this['_cache_event'],'layer':this,'data':_0x10cb58});},this['_map']['on'](mars3d__namespace[_0x27f128(0xb0)]['mouseMove'],this['_onMapMouseMove'],this));return this;}[_0x3ce00f(0x95)](_0x45a2ce,_0x25c5b9){const _0x2d1562={_0x334c3d:0xaa,_0x1eead3:0xbc},_0x2af126=_0x3ce00f;if(_0x45a2ce==='click'){var _0x544c9f;this['_map']['off'](_0x45a2ce,this['_onMapClick'],this),(_0x544c9f=this['options'][_0x2af126(_0x2d1562._0x334c3d)])!==null&&_0x544c9f!==void 0x0&&_0x544c9f['mousemove']&&delete this['options']['methods']['click'];}else{if(_0x45a2ce==='mouseMove'){var _0x1e0376;this[_0x2af126(0x8c)]['off'](_0x45a2ce,this[_0x2af126(_0x2d1562._0x1eead3)],this),(_0x1e0376=this['options']['methods'])!==null&&_0x1e0376!==void 0x0&&_0x1e0376['mousemove']&&delete this['options']['methods']['mousemove'];}}return this;}}function _0xe402(){const _0x68b891=['23515RblQxN','_cache_event','destroy','animator','_onMoveStartEvent','_mapVRenderer','_onMapMouseMove','width','_onMapClick','clear','geometry','options','475628vAvryV','mapvFixedHeight','animation','MapVLayer','fillRect','initAnimator','context','depthTest','block','push','_pointerEvents','_coordinates','unbindEvent','height','dataSet','pointerEvents','length','_createCanvas','LineString','isEnabledTime','mousemove','930wbGvCU','positionWC','get','position','stopAniamation','Cesium','steps','clickEvent','camera','postRender','render','_data','absolute','map','filter','defineProperty','clearRect','DataSet','48366YmcacH','scene','stop','scale','_map','184192xqsHID','347228UgdefF','remove','LayerUtil','create','COLOR_BUFFER_BIT','update','_onMoveEndEvent','off','animatorMovestartEvent','left','2486qfgmnZ','top','Util','ymax','mapvDepthTest','trails','getContext','removeChild','cameraMoveStart','set','fromDegrees','canvas','add','destination-out','30230kHIUrb','canvasLayer','_mountedHook','mapvAutoHeight','methods','3RfqetC','3257343QAaWSd','style','160UIsaha','layer','EventType','mouseMove','updateCallback','__proto__','SCENE3D','prototype'];_0xe402=function(){return _0x68b891;};return _0xe402();}mars3d__namespace[_0x3ce00f(0x90)]['register']('mapv',MapVLayer),mars3d__namespace['layer']['MapVLayer']=MapVLayer,mars3d__namespace['mapv']=mapv__namespace,exports[_0x3ce00f(0xc5)]=MapVLayer,Object['keys'](mapv)['forEach'](function(_0x5878fe){if(_0x5878fe!=='default'&&!exports['hasOwnProperty'](_0x5878fe))Object['defineProperty'](exports,_0x5878fe,{'enumerable':!![],'get':function(){return mapv[_0x5878fe];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});
}));
{
"name": "mars3d-mapv",
"version": "3.7.0",
"version": "3.7.1",
"description": "Mars3D平台插件,结合mapv可视化功能插件",

@@ -13,3 +13,3 @@ "main": "dist/mars3d-mapv.js",

"devDependencies": {
"mars3d": "~3.7.0"
"mars3d": "~3.7.1"
},

@@ -16,0 +16,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc