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.6.14 to 3.6.15

6

dist/mars3d-mapv.js
/**
* Mars3D平台插件,结合mapv可视化功能插件 mars3d-mapv
*
* 版本信息:v3.6.14
* 编译日期:2023-11-27 22:14:18
* 版本信息:v3.6.15
* 编译日期:2023-12-05 19:27:11
* 版权所有:Copyright by 火星科技 http://mars3d.cn

@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2023-03-17

})(this, (function (exports, mapv, mars3d) {
'use strict';const _0x9df597=_0x48cd;(function(_0x36ee46,_0x1e3772){const _0x45c1a4={_0x31dd7a:0xfc,_0x18e752:0x119,_0x25fd6c:0x103,_0x4a362d:0xd6,_0xfa778:0xe7,_0x53756b:0x115,_0xfc6140:0x10e},_0x592cd8=_0x48cd,_0xc9b99d=_0x36ee46();while(!![]){try{const _0x4505fd=-parseInt(_0x592cd8(_0x45c1a4._0x31dd7a))/0x1+-parseInt(_0x592cd8(_0x45c1a4._0x18e752))/0x2*(-parseInt(_0x592cd8(_0x45c1a4._0x25fd6c))/0x3)+parseInt(_0x592cd8(_0x45c1a4._0x4a362d))/0x4*(-parseInt(_0x592cd8(_0x45c1a4._0xfa778))/0x5)+parseInt(_0x592cd8(0xd8))/0x6*(-parseInt(_0x592cd8(0xec))/0x7)+parseInt(_0x592cd8(0xe0))/0x8*(parseInt(_0x592cd8(0x10c))/0x9)+parseInt(_0x592cd8(_0x45c1a4._0x53756b))/0xa*(parseInt(_0x592cd8(0x10f))/0xb)+parseInt(_0x592cd8(_0x45c1a4._0xfc6140))/0xc*(-parseInt(_0x592cd8(0xee))/0xd);if(_0x4505fd===_0x1e3772)break;else _0xc9b99d['push'](_0xc9b99d['shift']());}catch(_0x5b67be){_0xc9b99d['push'](_0xc9b99d['shift']());}}}(_0x4c1c,0x6996d));function _interopNamespace(_0x4af9d5){const _0x454dc3={_0x531a13:0x121},_0xd735a8={_0x33bf1f:0x105},_0x172350=_0x48cd;if(_0x4af9d5&&_0x4af9d5['__esModule'])return _0x4af9d5;var _0x27b5bb=Object[_0x172350(_0x454dc3._0x531a13)](null);return _0x4af9d5&&Object['keys'](_0x4af9d5)['forEach'](function(_0x8e3ca3){const _0xb7fb98=_0x172350;if(_0x8e3ca3!==_0xb7fb98(_0xd735a8._0x33bf1f)){var _0x581c83=Object[_0xb7fb98(0x102)](_0x4af9d5,_0x8e3ca3);Object['defineProperty'](_0x27b5bb,_0x8e3ca3,_0x581c83['get']?_0x581c83:{'enumerable':!![],'get':function(){return _0x4af9d5[_0x8e3ca3];}});}}),_0x27b5bb['default']=_0x4af9d5,_0x27b5bb;}function _0x4c1c(){const _0x34602d=['height','6573MSAPkv','keys','335946Vpjesm','click','MultiPolygon','context','mousemove','cameraMoveStart','removeChild','请引入\x20mapv\x20库\x20','animation','devicePixelRatio','container','EllipsoidalOccluder','MultiLineString','_cache_event','353534XNrwEB','methods','mapv','style','LayerUtil','FeatureCollection','getOwnPropertyDescriptor','3YvpuEE','_onMapClick','default','options','get','postRender','removeData','_removedHook','dataSet','2664AGDuCR','clampToGround','156zxLljI','3014EpyQuk','initDevicePixelRatio','bindEvent','off','MapVLayer','save','23260TaOuau','clear','_onMoveEndEvent','setZIndex','1167702mjyRQc','camera','left','unbindEvent','hasOwnProperty','animator','mode','absolute','create','windowPosition','_onMapMouseMove','scene','DataSet','Cesium','Polygon','_mapVRenderer','canvasLayer','canvas','_reset','argCheck','fromDegrees','push','EventType','init','display','_map','bind','layer','filter','defineProperty','getContext','clearData','132884FJrmUK','zIndex','2922cHBqYH','width','_onMoveStartEvent','_data','isEnabledTime','pointerEvents','length','_mountedHook','10576DCbeDi','position','destination-out','start','removeAllData','getData','cameraMoveEnd','5nRMSrW','draw','defined','depthTest'];_0x4c1c=function(){return _0x34602d;};return _0x4c1c();}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['__proto__']:Function;class MapVRenderer extends BaseLayer$1{constructor(_0x5cf35c,_0x4d0ba0,_0x547bca,_0x8b1f5b){const _0x3d9465={_0x48893b:0x110},_0x2286bb=_0x48cd;super(_0x5cf35c,_0x4d0ba0,_0x547bca);if(!BaseLayer$1)return;this['map']=_0x5cf35c,this['scene']=_0x5cf35c[_0x2286bb(0xc1)],this['dataSet']=_0x4d0ba0,_0x547bca=_0x547bca||{},this[_0x2286bb(0xcd)](_0x547bca),this[_0x2286bb(0xc9)](_0x547bca),this[_0x2286bb(_0x3d9465._0x48893b)](),this['canvasLayer']=_0x8b1f5b,this['stopAniamation']=!0x1,this['animation']=_0x547bca['animation'];}[_0x9df597(0x110)](){const _0x32d89c=_0x9df597;this['devicePixelRatio']=window[_0x32d89c(0xf7)]||0x1;}['addAnimatorEvent'](){}['animatorMovestartEvent'](){const _0x21a934=_0x9df597,_0x1ccfd7=this['options']['animation'];this['isEnabledTime']()&&this[_0x21a934(0x11e)]&&(this['steps']['step']=_0x1ccfd7['stepsRange'][_0x21a934(0xe3)]);}['animatorMoveendEvent'](){const _0x1733ec={_0x37d9d4:0xdc},_0x2df2c5=_0x9df597;this[_0x2df2c5(_0x1733ec._0x37d9d4)]()&&this['animator'];}[_0x9df597(0xd4)](){const _0x12b497={_0x33d06e:0xd4},_0x3346bd=_0x9df597;return this['canvasLayer']['canvas'][_0x3346bd(_0x12b497._0x33d06e)](this['context']);}[_0x9df597(0xcd)](_0x2e9cf1){const _0x23b373={_0x54a834:0xf1,_0x558fb4:0xe9,_0x36fb32:0xd7,_0x795038:0x118,_0x388dfb:0x106},_0x4ada01=_0x9df597;this[_0x4ada01(0x106)]=_0x2e9cf1,this['initDataRange'](_0x2e9cf1),this[_0x4ada01(_0x23b373._0x54a834)]=this['options']['context']||'2d',Cesium$1[_0x4ada01(_0x23b373._0x558fb4)](this['options'][_0x4ada01(_0x23b373._0x36fb32)])&&this['canvasLayer']&&this['canvasLayer']['setZIndex']&&this['canvasLayer'][_0x4ada01(_0x23b373._0x795038)](this[_0x4ada01(_0x23b373._0x388dfb)]['zIndex']),this['initAnimator']();}['_canvasUpdate'](_0xdd93b6){const _0xaf0aca={_0x230276:0xf6,_0x22881b:0x114,_0x221f2b:0xe2,_0x286d65:0xc7,_0xe019b4:0x116,_0x312c5f:0x10b,_0x750446:0x106},_0x4edad0={_0x56eb26:0x11f},_0x32b447=_0x9df597,_0x566db8=this['scene'];if(this['canvasLayer']&&!this['stopAniamation']){const _0x4a976d=this['options'][_0x32b447(_0xaf0aca._0x230276)],_0x20dd87=this[_0x32b447(0xd4)]();if(this['isEnabledTime']()){if(void 0x0===_0xdd93b6)return void this[_0x32b447(0x116)](_0x20dd87);this['context']==='2d'&&(_0x20dd87[_0x32b447(_0xaf0aca._0x22881b)](),_0x20dd87['globalCompositeOperation']=_0x32b447(_0xaf0aca._0x221f2b),_0x20dd87['fillStyle']='rgba(0,\x200,\x200,\x20.1)',_0x20dd87['fillRect'](0x0,0x0,_0x20dd87[_0x32b447(_0xaf0aca._0x286d65)]['width'],_0x20dd87['canvas']['height']),_0x20dd87['restore']());}else this[_0x32b447(_0xaf0aca._0xe019b4)](_0x20dd87);if(this['context']==='2d')for(const _0x51a270 in this['options']){_0x20dd87[_0x51a270]=this['options'][_0x51a270];}else _0x20dd87['clear'](_0x20dd87['COLOR_BUFFER_BIT']);const _0x5ce85d={'transferCoordinate':function(_0x9e5439){const _0x3b26a2=_0x32b447,_0x2f0399=null;let _0x1460b9=_0x566db8['mapvFixedHeight'];_0x566db8['mapvAutoHeight']&&(_0x1460b9=_0x566db8['globe']['getHeight'](Cesium$1['Cartographic'][_0x3b26a2(0xca)](_0x9e5439[0x0],_0x9e5439[0x1])));const _0x19948b=Cesium$1['Cartesian3']['fromDegrees'](_0x9e5439[0x0],_0x9e5439[0x1],_0x1460b9);if(!_0x19948b)return _0x2f0399;const _0x15fced=_0x566db8['cartesianToCanvasCoordinates'](_0x19948b);if(!_0x15fced)return _0x2f0399;if(_0x566db8['mapvDepthTest']&&_0x566db8[_0x3b26a2(_0x4edad0._0x56eb26)]===Cesium$1['SceneMode']['SCENE3D']){const _0x12095d=new Cesium$1[(_0x3b26a2(0xf9))](_0x566db8['globe']['ellipsoid'],_0x566db8[_0x3b26a2(0x11a)]['positionWC']),_0x4a9d68=_0x12095d['isPointVisible'](_0x19948b);if(!_0x4a9d68)return _0x2f0399;}return[_0x15fced['x'],_0x15fced['y']];}};void 0x0!==_0xdd93b6&&(_0x5ce85d[_0x32b447(0xd2)]=function(_0x1895d0){const _0x49b176=_0x4a976d['trails']||0xa;return!!(_0xdd93b6&&_0x1895d0['time']>_0xdd93b6-_0x49b176&&_0x1895d0['time']<_0xdd93b6);});const _0x2e6201=this[_0x32b447(_0xaf0aca._0x312c5f)]['get'](_0x5ce85d);this['processData'](_0x2e6201),this[_0x32b447(0x106)]['unit']==='m'&&this['options']['size'],this[_0x32b447(_0xaf0aca._0x750446)]['_size']=this['options']['size'];const _0x3d9033=_0x566db8['cartesianToCanvasCoordinates'](Cesium$1['Cartesian3']['fromDegrees'](0x0,0x0));if(!_0x3d9033)return;this['drawContext'](_0x20dd87,new mapv__namespace['DataSet'](_0x2e6201),this['options'],_0x3d9033),this['options']['updateCallback']&&this['options']['updateCallback'](_0xdd93b6);}}['updateData'](_0x47c913,_0x1474ad){const _0x1c4299={_0xe19927:0x107},_0x1e9da2=_0x9df597;let _0x211802=_0x47c913;_0x211802&&_0x211802[_0x1e9da2(_0x1c4299._0xe19927)]&&(_0x211802=_0x211802[_0x1e9da2(0x107)]()),void 0x0!==_0x211802&&this[_0x1e9da2(0x10b)]['set'](_0x211802),super['update']({'options':_0x1474ad});}['addData'](_0x21b809,_0x5bb713){const _0x46c5a4=_0x9df597;let _0x4263ac=_0x21b809;_0x21b809&&_0x21b809[_0x46c5a4(0x107)]&&(_0x4263ac=_0x21b809['get']()),this['dataSet']['add'](_0x4263ac),this['update']({'options':_0x5bb713});}[_0x9df597(0xe5)](){return this['dataSet'];}[_0x9df597(0x109)](_0x3c8218){const _0x44965b=_0x9df597;if(this['dataSet']){const _0x3ef18f=this[_0x44965b(0x10b)][_0x44965b(0x107)]({'filter':function(_0x46b557){return _0x3c8218==null||typeof _0x3c8218!=='function'||!_0x3c8218(_0x46b557);}});this['dataSet']['set'](_0x3ef18f),this['update']({'options':null});}}['clearData'](){const _0x506428=_0x9df597;this['dataSet']&&this['dataSet'][_0x506428(0x116)](),this['update']({'options':null});}['draw'](){const _0x59a5d6={_0x4d1a84:0xe8},_0x481590=_0x9df597;this['canvasLayer'][_0x481590(_0x59a5d6._0x4d1a84)]();}['clear'](_0x462d52){const _0x532704={_0x533dd6:0xd9},_0x2600dd=_0x9df597;_0x462d52&&_0x462d52['clearRect']&&_0x462d52['clearRect'](0x0,0x0,_0x462d52['canvas'][_0x2600dd(_0x532704._0x533dd6)],_0x462d52['canvas']['height']);}['destroy'](){const _0x25faa9={_0x39bc24:0xd4,_0x476274:0xc6},_0x46ab59=_0x9df597;this['clear'](this[_0x46ab59(_0x25faa9._0x39bc24)]()),this['clearData'](),this['animator']&&this['animator']['stop'](),this['animator']=null,this[_0x46ab59(_0x25faa9._0x476274)]=null;}}function _0x48cd(_0x50048e,_0x4eb6a0){const _0x4c1c02=_0x4c1c();return _0x48cd=function(_0x48cd9a,_0x2e7022){_0x48cd9a=_0x48cd9a-0xbf;let _0x281ef0=_0x4c1c02[_0x48cd9a];return _0x281ef0;},_0x48cd(_0x50048e,_0x4eb6a0);}if(mapv__namespace!==null&&mapv__namespace!==void 0x0&&mapv__namespace['DataSet'])mapv__namespace[_0x9df597(0xc2)]['prototype']['transferCoordinate']=function(_0xb75d72,_0x4cf672,_0x143588,_0x30bf9b){const _0xad4a60={_0x4baef6:0xcb},_0xdbd4f2=_0x9df597;_0x30bf9b=_0x30bf9b||'_coordinates',_0x143588=_0x143588||'coordinates';for(let _0x218d63=0x0;_0x218d63<_0xb75d72['length'];_0x218d63++){const _0x1ff11b=_0xb75d72[_0x218d63]['geometry'],_0x4e0958=_0x1ff11b[_0x143588];switch(_0x1ff11b['type']){case'Point':{const _0x10c340=_0x4cf672(_0x4e0958);_0x10c340?_0x1ff11b[_0x30bf9b]=_0x10c340:_0x1ff11b[_0x30bf9b]=[-0x3e7,-0x3e7];}break;case'LineString':{const _0x235881=[];for(let _0x5898a5=0x0;_0x5898a5<_0x4e0958['length'];_0x5898a5++){const _0x3a65e1=_0x4cf672(_0x4e0958[_0x5898a5]);_0x3a65e1&&_0x235881[_0xdbd4f2(0xcb)](_0x3a65e1);}_0x1ff11b[_0x30bf9b]=_0x235881;}break;case _0xdbd4f2(0xfa):case _0xdbd4f2(0xc4):{const _0xa20ffc=_0x2057b1(_0x4e0958);_0x1ff11b[_0x30bf9b]=_0xa20ffc;}break;case _0xdbd4f2(0xf0):{const _0x1d1146=[];for(let _0x22ba45=0x0;_0x22ba45<_0x4e0958[_0xdbd4f2(0xde)];_0x22ba45++){const _0x3f1adb=_0x2057b1(_0x4e0958[_0x22ba45]);_0x3f1adb['length']>0x0&&_0x1d1146['push'](_0x3f1adb);}_0x1ff11b[_0x30bf9b]=_0x1d1146;}break;}}function _0x2057b1(_0x112277){const _0x1bf266=_0xdbd4f2,_0x41e134=[];for(let _0x59d29e=0x0;_0x59d29e<_0x112277['length'];_0x59d29e++){const _0x116c6a=_0x112277[_0x59d29e],_0x31b4a0=[];for(let _0x8b9c4f=0x0;_0x8b9c4f<_0x116c6a['length'];_0x8b9c4f++){const _0x3d3543=_0x4cf672(_0x116c6a[_0x8b9c4f]);_0x3d3543&&_0x31b4a0[_0x1bf266(0xcb)](_0x3d3543);}_0x31b4a0['length']>0x0&&_0x41e134[_0x1bf266(_0xad4a60._0x4baef6)](_0x31b4a0);}return _0x41e134;}return _0xb75d72;};else throw new Error(_0x9df597(0xf5));const Cesium=mars3d__namespace[_0x9df597(0xc3)],BaseLayer=mars3d__namespace[_0x9df597(0xd1)]['BaseLayer'];class MapVLayer extends BaseLayer{constructor(_0x521790,_0x5ac6f7){const _0x4ac85d={_0x5467ce:0xdd,_0x509e41:0xc2},_0x38a45e=_0x9df597;super(_0x521790),this['_pointerEvents']=this['options'][_0x38a45e(_0x4ac85d._0x5467ce)],this['dataSet']=_0x5ac6f7||new mapv__namespace[(_0x38a45e(_0x4ac85d._0x509e41))](_0x521790['data']),this[_0x38a45e(0xc7)]=null;}get['pointerEvents'](){return this['_pointerEvents'];}set['pointerEvents'](_0x4d47ae){const _0x7cca30={_0x516e5c:0xff},_0x450e3b=_0x9df597;this['_pointerEvents']=_0x4d47ae,this[_0x450e3b(0xc7)]&&(_0x4d47ae?this['canvas'][_0x450e3b(0xff)][_0x450e3b(0xdd)]='all':this['canvas'][_0x450e3b(_0x7cca30._0x516e5c)]['pointerEvents']='none');}['_showHook'](_0x4e9c14){const _0x2ab40b=_0x9df597;_0x4e9c14?this['canvas']['style']['display']='block':this[_0x2ab40b(0xc7)]['style'][_0x2ab40b(0xce)]='none';}[_0x9df597(0xdf)](){const _0x1ba64c={_0xf52600:0xc1,_0x2646a6:0xea},_0x4338d2=_0x9df597;this['_map'][_0x4338d2(_0x1ba64c._0xf52600)]['mapvDepthTest']=this['options'][_0x4338d2(_0x1ba64c._0x2646a6)]??!![],this['_map']['scene']['mapvAutoHeight']=this['options'][_0x4338d2(0x10d)]??![],this['_map']['scene']['mapvFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x561ef6={_0x3b06bc:0xdb,_0x4466c9:0x106,_0x12ae7c:0x111},_0x3df9d=_0x9df597;this['dataSet']&&(!this[_0x3df9d(0x10b)][_0x3df9d(_0x561ef6._0x3b06bc)]||this['dataSet']['_data'][_0x3df9d(0xde)]===0x0)&&(this['dataSet']['_data']=[]['concat'](this['dataSet']['_dataCache'])),this['_mapVRenderer']=new MapVRenderer(this['_map'],this['dataSet'],this[_0x3df9d(_0x561ef6._0x4466c9)],this),this['initDevicePixelRatio'](),this['canvas']=this['_createCanvas'](),this['render']=this['render']['bind'](this),this[_0x3df9d(_0x561ef6._0x12ae7c)](),this[_0x3df9d(0xc8)]();}[_0x9df597(0x10a)](){const _0x2e84f4={_0x3c1117:0x11c},_0x289148=_0x9df597;this[_0x289148(_0x2e84f4._0x3c1117)](),this['_mapVRenderer']&&(this['_mapVRenderer']['destroy'](),this['_mapVRenderer']=null),this['canvas']['parentElement']['removeChild'](this['canvas']);}['initDevicePixelRatio'](){this['devicePixelRatio']=window['devicePixelRatio']||0x1;}['bindEvent'](){const _0x4e8ec4={_0x55449b:0x117,_0x50ff08:0xef},_0x521e85=_0x9df597;var _0x5674a0,_0x4fccd1;this['_map']['on'](mars3d__namespace['EventType']['mouseDown'],this['_onMoveStartEvent'],this),this['_map']['on'](mars3d__namespace['EventType'][_0x521e85(0xf3)],this['_onMoveStartEvent'],this),this['_map']['on'](mars3d__namespace['EventType']['cameraMoveEnd'],this[_0x521e85(_0x4e8ec4._0x55449b)],this),(_0x5674a0=this['options'])!==null&&_0x5674a0!==void 0x0&&(_0x5674a0=_0x5674a0['methods'])!==null&&_0x5674a0!==void 0x0&&_0x5674a0[_0x521e85(_0x4e8ec4._0x50ff08)]&&this['_map']['on'](mars3d__namespace[_0x521e85(0xcc)][_0x521e85(0xef)],this['_onMapClick'],this),(_0x4fccd1=this['options'])!==null&&_0x4fccd1!==void 0x0&&(_0x4fccd1=_0x4fccd1['methods'])!==null&&_0x4fccd1!==void 0x0&&_0x4fccd1['mousemove']&&this['_map']['on'](mars3d__namespace['EventType']['mouseMove'],this['_onMapMouseMove'],this);}['unbindEvent'](){const _0x3df4b2={_0xe5d919:0x112,_0x269a8c:0xcf,_0x564fda:0xe6,_0x15194e:0xc8,_0x20fca0:0xef,_0x1dd882:0xcc,_0x29f668:0xf2,_0x5bc1a3:0x112},_0xd96751=_0x9df597;var _0x13e9e9,_0x461dfc;this['_map'][_0xd96751(_0x3df4b2._0xe5d919)](mars3d__namespace['EventType']['mouseDown'],this['_onMoveStartEvent'],this),this['_map']['off'](mars3d__namespace['EventType']['cameraMoveStart'],this[_0xd96751(0xda)],this),this[_0xd96751(_0x3df4b2._0x269a8c)]['off'](mars3d__namespace['EventType'][_0xd96751(_0x3df4b2._0x564fda)],this['_onMoveEndEvent'],this),this[_0xd96751(_0x3df4b2._0x269a8c)]['off'](mars3d__namespace[_0xd96751(0xcc)][_0xd96751(0x108)],this[_0xd96751(_0x3df4b2._0x15194e)],this),(_0x13e9e9=this['options'])!==null&&_0x13e9e9!==void 0x0&&(_0x13e9e9=_0x13e9e9[_0xd96751(0xfd)])!==null&&_0x13e9e9!==void 0x0&&_0x13e9e9[_0xd96751(_0x3df4b2._0x20fca0)]&&this[_0xd96751(0xcf)]['off'](mars3d__namespace[_0xd96751(_0x3df4b2._0x1dd882)]['click'],this['_onMapClick'],this),(_0x461dfc=this['options'])!==null&&_0x461dfc!==void 0x0&&(_0x461dfc=_0x461dfc['methods'])!==null&&_0x461dfc!==void 0x0&&_0x461dfc[_0xd96751(_0x3df4b2._0x29f668)]&&this['_map'][_0xd96751(_0x3df4b2._0x5bc1a3)](mars3d__namespace[_0xd96751(0xcc)]['mouseMove'],this[_0xd96751(0xc0)],this);}['_onMoveStartEvent'](){const _0x5c0735=_0x9df597;this['_mapVRenderer']&&(this['_mapVRenderer']['animatorMovestartEvent'](),this['_map']['off'](mars3d__namespace['EventType']['postRender'],this['_reset'],this),this['_map']['on'](mars3d__namespace[_0x5c0735(0xcc)]['postRender'],this['_reset'],this));}['_onMoveEndEvent'](){const _0xd95f2c=_0x9df597;this['_mapVRenderer']&&(this['_map']['off'](mars3d__namespace['EventType'][_0xd95f2c(0x108)],this['_reset'],this),this['_mapVRenderer']['animatorMoveendEvent'](),this['_reset']());}['_setOptionsHook'](_0x2b8041,_0x5e7654){const _0x1d8c19=_0x9df597;this[_0x1d8c19(0x10a)](),this['_addedHook']();}['addData'](_0x114c2){const _0x49ba89={_0x36a67a:0xc5},_0x4c42df=_0x9df597;this['_mapVRenderer']&&this[_0x4c42df(_0x49ba89._0x36a67a)]['addData'](_0x114c2,this['options']);}['updateData'](_0x3573f7){const _0x5b8958=_0x9df597;this[_0x5b8958(0xc5)]&&this['_mapVRenderer']['updateData'](_0x3573f7,this[_0x5b8958(0x106)]);}['getData'](){const _0x248715=_0x9df597;return this['_mapVRenderer']&&(this['dataSet']=this[_0x248715(0xc5)]['getData']()),this['dataSet'];}['removeData'](_0x80c05f){const _0x1649ad=_0x9df597;this[_0x1649ad(0xc5)]&&this['_mapVRenderer']['removeData'](_0x80c05f);}[_0x9df597(0xe4)](){const _0x5321aa={_0x1aa909:0xc5},_0x289328=_0x9df597;this[_0x289328(_0x5321aa._0x1aa909)]&&this['_mapVRenderer'][_0x289328(0xd5)]();}['_createCanvas'](){const _0x24e0b5={_0x9c3885:0xff,_0x3c2a91:0x11b,_0x575220:0xff,_0x41cfcd:0xc7,_0x9db9af:0xd7},_0x3685e4=_0x9df597,_0x58f672=mars3d__namespace['DomUtil']['create']('canvas','mars3d-mapv',this['_map'][_0x3685e4(0xf8)]);_0x58f672['id']=this['id'],_0x58f672['style']['position']='absolute',_0x58f672['style']['top']='0px',_0x58f672[_0x3685e4(_0x24e0b5._0x9c3885)][_0x3685e4(_0x24e0b5._0x3c2a91)]='0px',_0x58f672['width']=parseInt(this['_map']['canvas']['width']),_0x58f672['height']=parseInt(this[_0x3685e4(0xcf)]['canvas']['height']),_0x58f672['style'][_0x3685e4(0xd9)]=this[_0x3685e4(0xcf)]['canvas'][_0x3685e4(_0x24e0b5._0x575220)]['width'],_0x58f672[_0x3685e4(_0x24e0b5._0x575220)]['height']=this['_map'][_0x3685e4(_0x24e0b5._0x41cfcd)]['style']['height'],_0x58f672['style'][_0x3685e4(0xdd)]=this['_pointerEvents']?'auto':'none',_0x58f672['style'][_0x3685e4(_0x24e0b5._0x9db9af)]=this['options']['zIndex']??0x9;if(this['options']['context']==='2d'){const _0x47877d=this['devicePixelRatio'];_0x58f672['getContext'](this['options']['context'])['scale'](_0x47877d,_0x47877d);}return _0x58f672;}['_reset'](){this['resize'](),this['render']();}[_0x9df597(0xe8)](){this['_reset']();}['remove'](){const _0x1ae164={_0x481888:0xc5,_0x46d8a4:0xf4,_0x864ff2:0xc7},_0x3bd903=_0x9df597;this[_0x3bd903(_0x1ae164._0x481888)]&&(this[_0x3bd903(0xc5)]['destroy'](),this['_mapVRenderer']=null),this['canvas']['parentElement'][_0x3bd903(_0x1ae164._0x46d8a4)](this[_0x3bd903(_0x1ae164._0x864ff2)]);}['render'](){this['_mapVRenderer']['_canvasUpdate']();}['resize'](){const _0x3400b2={_0x5252e1:0xd9,_0x296e5a:0xeb},_0x49fca7=_0x9df597;if(this['canvas']){const _0x15a45a=this['canvas'];_0x15a45a[_0x49fca7(0xff)][_0x49fca7(0xe1)]=_0x49fca7(0x120),_0x15a45a['style']['top']='0px',_0x15a45a['style']['left']='0px',_0x15a45a['width']=parseInt(this['_map']['canvas']['width']),_0x15a45a[_0x49fca7(0xeb)]=parseInt(this['_map'][_0x49fca7(0xc7)]['height']),_0x15a45a['style'][_0x49fca7(_0x3400b2._0x5252e1)]=this['_map']['canvas'][_0x49fca7(0xff)][_0x49fca7(_0x3400b2._0x5252e1)],_0x15a45a['style']['height']=this['_map'][_0x49fca7(0xc7)]['style'][_0x49fca7(_0x3400b2._0x296e5a)];}}['getRectangle'](_0x5c23fd){const _0x5e0280={_0x39ea65:0xdb},_0x211a72=_0x9df597;if(!this['dataSet']||!this['dataSet'][_0x211a72(_0x5e0280._0x39ea65)])return;const _0x317640=mars3d__namespace['Util']['getExtentByGeoJSON']({'type':_0x211a72(0x101),'features':this['dataSet']['_data']});if(!_0x317640)return;return _0x5c23fd!==null&&_0x5c23fd!==void 0x0&&_0x5c23fd['isFormat']?_0x317640:Cesium['Rectangle'][_0x211a72(0xca)](_0x317640['xmin'],_0x317640['ymin'],_0x317640['xmax'],_0x317640['ymax']);}['_onMapClick'](_0x30f718){const _0x1136a8=_0x9df597;this['_cache_event']=_0x30f718,this['_mapVRenderer']&&this[_0x1136a8(0xc5)]['clickEvent'](_0x30f718['windowPosition'],_0x30f718);}['_onMapMouseMove'](_0x585d5b){const _0x319e96=_0x9df597;this[_0x319e96(0xfb)]=_0x585d5b,this['_mapVRenderer']&&this['_mapVRenderer']['mousemoveEvent'](_0x585d5b[_0x319e96(0xbf)],_0x585d5b);}['on'](_0x458695,_0x180011,_0x1d703b){const _0x5aae66=_0x9df597;this['options']['methods']=this['options']['methods']||{};if(_0x458695===mars3d__namespace['EventType']['click'])this['options']['methods']['click']=_0x1f10a2=>{_0x1f10a2&&_0x180011['bind'](_0x1d703b)({...this['_cache_event'],'layer':this,'data':_0x1f10a2});},this['_map']['on'](mars3d__namespace['EventType']['click'],this['_onMapClick'],this);else _0x458695===mars3d__namespace['EventType']['mouseMove']&&(this['options']['methods'][_0x5aae66(0xf2)]=_0x205151=>{const _0x1b9ff0=_0x5aae66;_0x205151&&_0x180011[_0x1b9ff0(0xd0)](_0x1d703b)({...this['_cache_event'],'layer':this,'data':_0x205151});},this['_map']['on'](mars3d__namespace['EventType']['mouseMove'],this[_0x5aae66(0xc0)],this));return this;}['off'](_0x5d2569,_0x152a42){const _0x23a9c5={_0x2b2758:0x106,_0x49aea8:0xfd},_0x1ee4dc=_0x9df597;if(_0x5d2569===_0x1ee4dc(0xef)){var _0x399400;this['_map']['off'](_0x5d2569,this[_0x1ee4dc(0x104)],this),(_0x399400=this[_0x1ee4dc(_0x23a9c5._0x2b2758)]['methods'])!==null&&_0x399400!==void 0x0&&_0x399400['mousemove']&&delete this['options'][_0x1ee4dc(_0x23a9c5._0x49aea8)]['click'];}else{if(_0x5d2569==='mouseMove'){var _0x2c9759;this['_map']['off'](_0x5d2569,this['_onMapMouseMove'],this),(_0x2c9759=this['options']['methods'])!==null&&_0x2c9759!==void 0x0&&_0x2c9759['mousemove']&&delete this['options'][_0x1ee4dc(_0x23a9c5._0x49aea8)][_0x1ee4dc(0xf2)];}}return this;}}mars3d__namespace[_0x9df597(0x100)]['register'](_0x9df597(0xfe),MapVLayer),mars3d__namespace[_0x9df597(0xd1)][_0x9df597(0x113)]=MapVLayer,mars3d__namespace['mapv']=mapv__namespace,exports[_0x9df597(0x113)]=MapVLayer,Object[_0x9df597(0xed)](mapv)['forEach'](function(_0x2d0161){const _0x5809f7=_0x9df597;if(_0x2d0161!=='default'&&!exports[_0x5809f7(0x11d)](_0x2d0161))Object['defineProperty'](exports,_0x2d0161,{'enumerable':!![],'get':function(){return mapv[_0x2d0161];}});}),Object[_0x9df597(0xd3)](exports,'__esModule',{'value':!![]});
'use strict';const _0x58e5cc=_0x5039;(function(_0x5bed9d,_0x2f60e9){const _0x21fb34={_0x31b1df:0x140,_0x5d8a58:0x139,_0x1be185:0x101,_0x1a3002:0x10d,_0x53a963:0x13c,_0x6c779d:0x121},_0x308b0e=_0x5039,_0x318e4c=_0x5bed9d();while(!![]){try{const _0x4bb3f3=-parseInt(_0x308b0e(0x123))/0x1+parseInt(_0x308b0e(_0x21fb34._0x31b1df))/0x2*(-parseInt(_0x308b0e(0xf2))/0x3)+parseInt(_0x308b0e(0xfa))/0x4*(-parseInt(_0x308b0e(0x109))/0x5)+-parseInt(_0x308b0e(0xe1))/0x6*(parseInt(_0x308b0e(_0x21fb34._0x5d8a58))/0x7)+-parseInt(_0x308b0e(0x105))/0x8*(parseInt(_0x308b0e(_0x21fb34._0x1be185))/0x9)+-parseInt(_0x308b0e(_0x21fb34._0x1a3002))/0xa+-parseInt(_0x308b0e(_0x21fb34._0x53a963))/0xb*(-parseInt(_0x308b0e(_0x21fb34._0x6c779d))/0xc);if(_0x4bb3f3===_0x2f60e9)break;else _0x318e4c['push'](_0x318e4c['shift']());}catch(_0x576615){_0x318e4c['push'](_0x318e4c['shift']());}}}(_0x15d3,0xe6dfb));function _interopNamespace(_0x14d17e){if(_0x14d17e&&_0x14d17e['__esModule'])return _0x14d17e;var _0x3cc31b=Object['create'](null);return _0x14d17e&&Object['keys'](_0x14d17e)['forEach'](function(_0x1919ce){const _0x35a370=_0x5039;if(_0x1919ce!=='default'){var _0x4654a3=Object[_0x35a370(0x134)](_0x14d17e,_0x1919ce);Object['defineProperty'](_0x3cc31b,_0x1919ce,_0x4654a3[_0x35a370(0xe8)]?_0x4654a3:{'enumerable':!![],'get':function(){return _0x14d17e[_0x1919ce];}});}}),_0x3cc31b['default']=_0x14d17e,_0x3cc31b;}var mapv__namespace=_interopNamespace(mapv),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace[_0x58e5cc(0x11a)],baiduMapLayer=mapv__namespace?mapv__namespace['baiduMapLayer']:null,BaseLayer$1=baiduMapLayer?baiduMapLayer[_0x58e5cc(0x13f)]:Function;class MapVRenderer extends BaseLayer$1{constructor(_0x466c63,_0x15310c,_0xf674a9,_0x2d2810){const _0x36dd00=_0x58e5cc;super(_0x466c63,_0x15310c,_0xf674a9);if(!BaseLayer$1)return;this['map']=_0x466c63,this['scene']=_0x466c63['scene'],this[_0x36dd00(0x107)]=_0x15310c,_0xf674a9=_0xf674a9||{},this['init'](_0xf674a9),this['argCheck'](_0xf674a9),this['initDevicePixelRatio'](),this['canvasLayer']=_0x2d2810,this[_0x36dd00(0x11e)]=!0x1,this[_0x36dd00(0xf0)]=_0xf674a9['animation'];}['initDevicePixelRatio'](){this['devicePixelRatio']=window['devicePixelRatio']||0x1;}[_0x58e5cc(0x120)](){}['animatorMovestartEvent'](){const _0x502aa4={_0xf3fcd:0xf0,_0x56889b:0x102},_0x3238bd=_0x58e5cc,_0x2715c6=this[_0x3238bd(0xe0)][_0x3238bd(_0x502aa4._0xf3fcd)];this[_0x3238bd(0x12f)]()&&this[_0x3238bd(_0x502aa4._0x56889b)]&&(this['steps']['step']=_0x2715c6['stepsRange'][_0x3238bd(0xfd)]);}[_0x58e5cc(0x12c)](){this['isEnabledTime']()&&this['animator'];}['getContext'](){const _0x36bf5c=_0x58e5cc;return this[_0x36bf5c(0x11c)]['canvas']['getContext'](this['context']);}['init'](_0x185b60){const _0x1126b6={_0xb27597:0xe0,_0x38b291:0xfe,_0x20c803:0x11c},_0x1caed0=_0x58e5cc;this[_0x1caed0(0xe0)]=_0x185b60,this['initDataRange'](_0x185b60),this[_0x1caed0(0xfe)]=this[_0x1caed0(_0x1126b6._0xb27597)][_0x1caed0(_0x1126b6._0x38b291)]||'2d',Cesium$1['defined'](this['options']['zIndex'])&&this['canvasLayer']&&this[_0x1caed0(_0x1126b6._0x20c803)]['setZIndex']&&this['canvasLayer'][_0x1caed0(0x12d)](this[_0x1caed0(_0x1126b6._0xb27597)]['zIndex']),this['initAnimator']();}[_0x58e5cc(0x112)](_0x1553af){const _0x4d43fe={_0x1e1a33:0x122,_0x21208f:0x11c,_0x1757b2:0x126,_0x41777a:0xfe,_0x33988e:0xe4,_0x1e5e5e:0x11d,_0x316d07:0xe8,_0xff4e10:0xe0,_0x358547:0xff,_0x4ada5c:0xe3},_0x1a5546={_0xc22ddb:0x13a,_0x4ba6fd:0xee,_0x2796f0:0xf4},_0x303606=_0x58e5cc,_0x18b11c=this[_0x303606(_0x4d43fe._0x1e1a33)];if(this[_0x303606(_0x4d43fe._0x21208f)]&&!this['stopAniamation']){const _0x35aa6a=this['options']['animation'],_0x392349=this[_0x303606(_0x4d43fe._0x1757b2)]();if(this['isEnabledTime']()){if(void 0x0===_0x1553af)return void this['clear'](_0x392349);this[_0x303606(_0x4d43fe._0x41777a)]==='2d'&&(_0x392349['save'](),_0x392349['globalCompositeOperation']='destination-out',_0x392349[_0x303606(0x127)]='rgba(0,\x200,\x200,\x20.1)',_0x392349[_0x303606(_0x4d43fe._0x33988e)](0x0,0x0,_0x392349['canvas']['width'],_0x392349[_0x303606(_0x4d43fe._0x1e5e5e)]['height']),_0x392349['restore']());}else this[_0x303606(0x106)](_0x392349);if(this[_0x303606(0xfe)]==='2d')for(const _0xd98fc1 in this['options']){_0x392349[_0xd98fc1]=this['options'][_0xd98fc1];}else _0x392349['clear'](_0x392349[_0x303606(0x113)]);const _0x2cfaf6={'transferCoordinate':function(_0x30a224){const _0x5c86e0=_0x303606,_0x1585b4=null;let _0xe60072=_0x18b11c[_0x5c86e0(0xeb)];_0x18b11c['mapvAutoHeight']&&(_0xe60072=_0x18b11c['globe']['getHeight'](Cesium$1[_0x5c86e0(_0x1a5546._0xc22ddb)]['fromDegrees'](_0x30a224[0x0],_0x30a224[0x1])));const _0x2fa4c9=Cesium$1['Cartesian3']['fromDegrees'](_0x30a224[0x0],_0x30a224[0x1],_0xe60072);if(!_0x2fa4c9)return _0x1585b4;const _0xb140b1=_0x18b11c[_0x5c86e0(0xf8)](_0x2fa4c9);if(!_0xb140b1)return _0x1585b4;if(_0x18b11c[_0x5c86e0(0x10c)]&&_0x18b11c['mode']===Cesium$1[_0x5c86e0(0xf1)]['SCENE3D']){const _0x199a71=new Cesium$1['EllipsoidalOccluder'](_0x18b11c['globe']['ellipsoid'],_0x18b11c[_0x5c86e0(_0x1a5546._0x4ba6fd)]['positionWC']),_0x2cea40=_0x199a71[_0x5c86e0(_0x1a5546._0x2796f0)](_0x2fa4c9);if(!_0x2cea40)return _0x1585b4;}return[_0xb140b1['x'],_0xb140b1['y']];}};void 0x0!==_0x1553af&&(_0x2cfaf6['filter']=function(_0x1349a1){const _0x5e4f07=_0x303606,_0x42fb4b=_0x35aa6a[_0x5e4f07(0x138)]||0xa;return!!(_0x1553af&&_0x1349a1['time']>_0x1553af-_0x42fb4b&&_0x1349a1['time']<_0x1553af);});const _0x4fdc23=this['dataSet'][_0x303606(_0x4d43fe._0x316d07)](_0x2cfaf6);this['processData'](_0x4fdc23),this['options']['unit']==='m'&&this['options'][_0x303606(0x132)],this[_0x303606(_0x4d43fe._0xff4e10)]['_size']=this['options']['size'];const _0x376285=_0x18b11c['cartesianToCanvasCoordinates'](Cesium$1[_0x303606(_0x4d43fe._0x358547)]['fromDegrees'](0x0,0x0));if(!_0x376285)return;this['drawContext'](_0x392349,new mapv__namespace['DataSet'](_0x4fdc23),this['options'],_0x376285),this['options']['updateCallback']&&this['options'][_0x303606(_0x4d43fe._0x4ada5c)](_0x1553af);}}[_0x58e5cc(0x119)](_0x5f09a6,_0xa2208f){let _0x4f38d5=_0x5f09a6;_0x4f38d5&&_0x4f38d5['get']&&(_0x4f38d5=_0x4f38d5['get']()),void 0x0!==_0x4f38d5&&this['dataSet']['set'](_0x4f38d5),super['update']({'options':_0xa2208f});}['addData'](_0x17c3c8,_0xd610b4){const _0x4682ed=_0x58e5cc;let _0x5db613=_0x17c3c8;_0x17c3c8&&_0x17c3c8['get']&&(_0x5db613=_0x17c3c8['get']()),this['dataSet'][_0x4682ed(0xe7)](_0x5db613),this['update']({'options':_0xd610b4});}['getData'](){return this['dataSet'];}['removeData'](_0x19ab53){const _0xd7b1ee=_0x58e5cc;if(this['dataSet']){const _0x1f7b56=this['dataSet']['get']({'filter':function(_0x37e212){return _0x19ab53==null||typeof _0x19ab53!=='function'||!_0x19ab53(_0x37e212);}});this['dataSet']['set'](_0x1f7b56),this[_0xd7b1ee(0x128)]({'options':null});}}['clearData'](){const _0x14d911=_0x58e5cc;this['dataSet']&&this['dataSet']['clear'](),this[_0x14d911(0x128)]({'options':null});}[_0x58e5cc(0x12a)](){const _0x301a73={_0x418661:0x12a},_0x21fc72=_0x58e5cc;this[_0x21fc72(0x11c)][_0x21fc72(_0x301a73._0x418661)]();}['clear'](_0x3dec82){const _0x2efa6a={_0x542edd:0x142},_0x1335fc=_0x58e5cc;_0x3dec82&&_0x3dec82[_0x1335fc(_0x2efa6a._0x542edd)]&&_0x3dec82['clearRect'](0x0,0x0,_0x3dec82[_0x1335fc(0x11d)]['width'],_0x3dec82['canvas']['height']);}['destroy'](){const _0x50e8ed={_0x2ead97:0x106,_0x4cd522:0xe2,_0x33bba6:0x102},_0x1f33ac=_0x58e5cc;this[_0x1f33ac(_0x50e8ed._0x2ead97)](this['getContext']()),this[_0x1f33ac(0xea)](),this['animator']&&this['animator'][_0x1f33ac(_0x50e8ed._0x4cd522)](),this[_0x1f33ac(_0x50e8ed._0x33bba6)]=null,this['canvasLayer']=null;}}function _0x5039(_0xd44595,_0x30e768){const _0x15d364=_0x15d3();return _0x5039=function(_0x503999,_0x58da93){_0x503999=_0x503999-0xe0;let _0x3db939=_0x15d364[_0x503999];return _0x3db939;},_0x5039(_0xd44595,_0x30e768);}if(mapv__namespace!==null&&mapv__namespace!==void 0x0&&mapv__namespace['DataSet'])mapv__namespace['DataSet']['prototype']['transferCoordinate']=function(_0x518c6b,_0x42aacd,_0x58353e,_0x411089){const _0x22333a={_0x4d13f9:0x115},_0x31f9dc={_0x272f4a:0x108,_0x5009c6:0xfb},_0x1fb392=_0x58e5cc;_0x411089=_0x411089||_0x1fb392(_0x22333a._0x4d13f9),_0x58353e=_0x58353e||'coordinates';for(let _0x274250=0x0;_0x274250<_0x518c6b['length'];_0x274250++){const _0x45ae5b=_0x518c6b[_0x274250]['geometry'],_0x3029f9=_0x45ae5b[_0x58353e];switch(_0x45ae5b[_0x1fb392(0x117)]){case'Point':{const _0x1f8834=_0x42aacd(_0x3029f9);_0x1f8834?_0x45ae5b[_0x411089]=_0x1f8834:_0x45ae5b[_0x411089]=[-0x3e7,-0x3e7];}break;case'LineString':{const _0x4b8dce=[];for(let _0xcc0144=0x0;_0xcc0144<_0x3029f9['length'];_0xcc0144++){const _0x271b6d=_0x42aacd(_0x3029f9[_0xcc0144]);_0x271b6d&&_0x4b8dce['push'](_0x271b6d);}_0x45ae5b[_0x411089]=_0x4b8dce;}break;case'MultiLineString':case _0x1fb392(0x116):{const _0x2084d4=_0x27ecbb(_0x3029f9);_0x45ae5b[_0x411089]=_0x2084d4;}break;case _0x1fb392(0x125):{const _0x5d6c14=[];for(let _0x2eed0d=0x0;_0x2eed0d<_0x3029f9['length'];_0x2eed0d++){const _0x5db21e=_0x27ecbb(_0x3029f9[_0x2eed0d]);_0x5db21e['length']>0x0&&_0x5d6c14['push'](_0x5db21e);}_0x45ae5b[_0x411089]=_0x5d6c14;}break;}}function _0x27ecbb(_0x84f69c){const _0x2a3956=_0x1fb392,_0x795a3f=[];for(let _0x508755=0x0;_0x508755<_0x84f69c[_0x2a3956(_0x31f9dc._0x272f4a)];_0x508755++){const _0x3acbdc=_0x84f69c[_0x508755],_0x16d752=[];for(let _0x5a8c94=0x0;_0x5a8c94<_0x3acbdc['length'];_0x5a8c94++){const _0x2bb2e1=_0x42aacd(_0x3acbdc[_0x5a8c94]);_0x2bb2e1&&_0x16d752[_0x2a3956(_0x31f9dc._0x5009c6)](_0x2bb2e1);}_0x16d752['length']>0x0&&_0x795a3f['push'](_0x16d752);}return _0x795a3f;}return _0x518c6b;};else throw new Error('请引入\x20mapv\x20库\x20');const Cesium=mars3d__namespace[_0x58e5cc(0x11a)],BaseLayer=mars3d__namespace['layer'][_0x58e5cc(0x136)];class MapVLayer extends BaseLayer{constructor(_0x4e4925,_0x4feb8f){const _0x42d669={_0x2343d7:0x107},_0x4a232d=_0x58e5cc;super(_0x4e4925),this['_pointerEvents']=this['options']['pointerEvents'],this[_0x4a232d(_0x42d669._0x2343d7)]=_0x4feb8f||new mapv__namespace['DataSet'](_0x4e4925[_0x4a232d(0xe5)]),this[_0x4a232d(0x11d)]=null;}get['pointerEvents'](){return this['_pointerEvents'];}set[_0x58e5cc(0xf5)](_0x40d542){const _0xb5c263={_0x509642:0x143,_0x5e1f3d:0xf5},_0x2d1148=_0x58e5cc;this[_0x2d1148(_0xb5c263._0x509642)]=_0x40d542,this[_0x2d1148(0x11d)]&&(_0x40d542?this[_0x2d1148(0x11d)]['style']['pointerEvents']='all':this[_0x2d1148(0x11d)][_0x2d1148(0x11b)][_0x2d1148(_0xb5c263._0x5e1f3d)]='none');}['_showHook'](_0x4046b8){const _0x1e71f5={_0x147f29:0x11d,_0x14ac61:0xed,_0x164bfe:0xf3},_0x323e88=_0x58e5cc;_0x4046b8?this['canvas']['style']['display']=_0x323e88(0x10b):this[_0x323e88(_0x1e71f5._0x147f29)]['style'][_0x323e88(_0x1e71f5._0x14ac61)]=_0x323e88(_0x1e71f5._0x164bfe);}['_mountedHook'](){const _0x508d91={_0x177d3e:0xe0,_0x1ec142:0xe0},_0x297e8f=_0x58e5cc;this[_0x297e8f(0x131)]['scene']['mapvDepthTest']=this['options']['depthTest']??!![],this['_map'][_0x297e8f(0x122)]['mapvAutoHeight']=this[_0x297e8f(_0x508d91._0x177d3e)]['clampToGround']??![],this[_0x297e8f(0x131)]['scene']['mapvFixedHeight']=this[_0x297e8f(_0x508d91._0x1ec142)]['fixedHeight']??0x0;}['_addedHook'](){const _0x50e466=_0x58e5cc;this[_0x50e466(0x107)]&&(!this['dataSet'][_0x50e466(0x13b)]||this['dataSet']['_data']['length']===0x0)&&(this['dataSet']['_data']=[][_0x50e466(0xf6)](this['dataSet']['_dataCache'])),this[_0x50e466(0xec)]=new MapVRenderer(this['_map'],this['dataSet'],this['options'],this),this['initDevicePixelRatio'](),this['canvas']=this[_0x50e466(0x130)](),this['render']=this['render']['bind'](this),this['bindEvent'](),this[_0x50e466(0x114)]();}['_removedHook'](){const _0x4133a2={_0x3ccf71:0xec},_0x2bc35d=_0x58e5cc;this['unbindEvent'](),this['_mapVRenderer']&&(this['_mapVRenderer']['destroy'](),this[_0x2bc35d(_0x4133a2._0x3ccf71)]=null),this[_0x2bc35d(0x11d)]['parentElement']['removeChild'](this['canvas']);}['initDevicePixelRatio'](){const _0xa15f39={_0x2eee43:0x124},_0x5a1767=_0x58e5cc;this['devicePixelRatio']=window[_0x5a1767(_0xa15f39._0x2eee43)]||0x1;}['bindEvent'](){const _0x45793e={_0x8005b5:0xf9,_0x3b2a5b:0xef},_0x1206f1=_0x58e5cc;var _0x5271e5,_0x31222f;this[_0x1206f1(0x131)]['on'](mars3d__namespace['EventType']['mouseDown'],this['_onMoveStartEvent'],this),this['_map']['on'](mars3d__namespace['EventType'][_0x1206f1(0x100)],this[_0x1206f1(_0x45793e._0x8005b5)],this),this['_map']['on'](mars3d__namespace[_0x1206f1(_0x45793e._0x3b2a5b)]['cameraMoveEnd'],this['_onMoveEndEvent'],this),(_0x5271e5=this['options'])!==null&&_0x5271e5!==void 0x0&&(_0x5271e5=_0x5271e5['methods'])!==null&&_0x5271e5!==void 0x0&&_0x5271e5['click']&&this['_map']['on'](mars3d__namespace[_0x1206f1(_0x45793e._0x3b2a5b)]['click'],this['_onMapClick'],this),(_0x31222f=this['options'])!==null&&_0x31222f!==void 0x0&&(_0x31222f=_0x31222f['methods'])!==null&&_0x31222f!==void 0x0&&_0x31222f[_0x1206f1(0x137)]&&this[_0x1206f1(0x131)]['on'](mars3d__namespace[_0x1206f1(_0x45793e._0x3b2a5b)][_0x1206f1(0x11f)],this['_onMapMouseMove'],this);}['unbindEvent'](){const _0x5cc4ca={_0x543408:0x13d,_0x37b2f7:0xf9,_0x261892:0x137,_0x19877c:0x13d,_0x4241c4:0xef},_0x25c96b=_0x58e5cc;var _0x33cc52,_0x297d8c;this['_map']['off'](mars3d__namespace['EventType']['mouseDown'],this['_onMoveStartEvent'],this),this[_0x25c96b(0x131)][_0x25c96b(_0x5cc4ca._0x543408)](mars3d__namespace[_0x25c96b(0xef)]['cameraMoveStart'],this[_0x25c96b(_0x5cc4ca._0x37b2f7)],this),this['_map'][_0x25c96b(0x13d)](mars3d__namespace[_0x25c96b(0xef)]['cameraMoveEnd'],this['_onMoveEndEvent'],this),this['_map']['off'](mars3d__namespace['EventType']['postRender'],this['_reset'],this),(_0x33cc52=this['options'])!==null&&_0x33cc52!==void 0x0&&(_0x33cc52=_0x33cc52['methods'])!==null&&_0x33cc52!==void 0x0&&_0x33cc52['click']&&this['_map'][_0x25c96b(_0x5cc4ca._0x543408)](mars3d__namespace['EventType']['click'],this[_0x25c96b(0x103)],this),(_0x297d8c=this['options'])!==null&&_0x297d8c!==void 0x0&&(_0x297d8c=_0x297d8c['methods'])!==null&&_0x297d8c!==void 0x0&&_0x297d8c[_0x25c96b(_0x5cc4ca._0x261892)]&&this['_map'][_0x25c96b(_0x5cc4ca._0x19877c)](mars3d__namespace[_0x25c96b(_0x5cc4ca._0x4241c4)]['mouseMove'],this['_onMapMouseMove'],this);}[_0x58e5cc(0xf9)](){const _0x333eeb={_0x153ba5:0x12e},_0x4d5cef=_0x58e5cc;this[_0x4d5cef(0xec)]&&(this['_mapVRenderer'][_0x4d5cef(_0x333eeb._0x153ba5)](),this['_map']['off'](mars3d__namespace['EventType']['postRender'],this['_reset'],this),this['_map']['on'](mars3d__namespace[_0x4d5cef(0xef)]['postRender'],this[_0x4d5cef(0x114)],this));}['_onMoveEndEvent'](){const _0x36e29e={_0x51d421:0x12c},_0x27623b=_0x58e5cc;this['_mapVRenderer']&&(this['_map']['off'](mars3d__namespace['EventType']['postRender'],this['_reset'],this),this['_mapVRenderer'][_0x27623b(_0x36e29e._0x51d421)](),this['_reset']());}['_setOptionsHook'](_0xae73ab,_0x249f01){const _0x4a8c73={_0x1775b2:0x104},_0x520d13=_0x58e5cc;this[_0x520d13(_0x4a8c73._0x1775b2)](),this['_addedHook']();}['addData'](_0x266f6a){this['_mapVRenderer']&&this['_mapVRenderer']['addData'](_0x266f6a,this['options']);}['updateData'](_0x4ddbb9){this['_mapVRenderer']&&this['_mapVRenderer']['updateData'](_0x4ddbb9,this['options']);}['getData'](){const _0x4361d4={_0x407287:0x10a},_0xf1513b=_0x58e5cc;return this[_0xf1513b(0xec)]&&(this['dataSet']=this['_mapVRenderer'][_0xf1513b(_0x4361d4._0x407287)]()),this['dataSet'];}['removeData'](_0x35833b){const _0x5cbfa6=_0x58e5cc;this[_0x5cbfa6(0xec)]&&this['_mapVRenderer'][_0x5cbfa6(0xfc)](_0x35833b);}['removeAllData'](){const _0x1edf64={_0x257325:0xea},_0x576018=_0x58e5cc;this['_mapVRenderer']&&this[_0x576018(0xec)][_0x576018(_0x1edf64._0x257325)]();}['_createCanvas'](){const _0x594d2a={_0x2143a4:0x11d,_0x1d20f0:0x11b,_0x7d0560:0x131,_0x382e49:0x10e,_0x4f798f:0xe6,_0x3e3b41:0xe0,_0x32f451:0xfe,_0x2b263b:0x124},_0x2cddd6=_0x58e5cc,_0x18b018=mars3d__namespace[_0x2cddd6(0x135)]['create'](_0x2cddd6(_0x594d2a._0x2143a4),'mars3d-mapv',this['_map']['container']);_0x18b018['id']=this['id'],_0x18b018['style']['position']='absolute',_0x18b018['style'][_0x2cddd6(0x141)]='0px',_0x18b018['style']['left']='0px',_0x18b018['width']=parseInt(this['_map']['canvas']['width']),_0x18b018['height']=parseInt(this['_map']['canvas'][_0x2cddd6(0x10e)]),_0x18b018['style']['width']=this['_map']['canvas'][_0x2cddd6(_0x594d2a._0x1d20f0)]['width'],_0x18b018['style']['height']=this[_0x2cddd6(_0x594d2a._0x7d0560)]['canvas']['style'][_0x2cddd6(_0x594d2a._0x382e49)],_0x18b018['style']['pointerEvents']=this['_pointerEvents']?'auto':'none',_0x18b018['style'][_0x2cddd6(0xe6)]=this[_0x2cddd6(0xe0)][_0x2cddd6(_0x594d2a._0x4f798f)]??0x9;if(this[_0x2cddd6(_0x594d2a._0x3e3b41)][_0x2cddd6(_0x594d2a._0x32f451)]==='2d'){const _0x4d04f7=this[_0x2cddd6(_0x594d2a._0x2b263b)];_0x18b018['getContext'](this['options'][_0x2cddd6(_0x594d2a._0x32f451)])['scale'](_0x4d04f7,_0x4d04f7);}return _0x18b018;}['_reset'](){this['resize'](),this['render']();}['draw'](){this['_reset']();}['remove'](){const _0x27812b=_0x58e5cc;this['_mapVRenderer']&&(this[_0x27812b(0xec)]['destroy'](),this['_mapVRenderer']=null),this[_0x27812b(0x11d)]['parentElement'][_0x27812b(0x10f)](this['canvas']);}['render'](){const _0x1d12b0=_0x58e5cc;this[_0x1d12b0(0xec)]['_canvasUpdate']();}['resize'](){const _0x3a0172={_0xba7f5:0x11b,_0x173d21:0x13e,_0x38a29c:0x10e},_0x48da80=_0x58e5cc;if(this['canvas']){const _0x196d18=this['canvas'];_0x196d18[_0x48da80(_0x3a0172._0xba7f5)][_0x48da80(0x129)]='absolute',_0x196d18[_0x48da80(0x11b)]['top']='0px',_0x196d18['style']['left']='0px',_0x196d18[_0x48da80(_0x3a0172._0x173d21)]=parseInt(this['_map'][_0x48da80(0x11d)][_0x48da80(0x13e)]),_0x196d18['height']=parseInt(this['_map'][_0x48da80(0x11d)]['height']),_0x196d18['style']['width']=this[_0x48da80(0x131)]['canvas']['style'][_0x48da80(_0x3a0172._0x173d21)],_0x196d18['style']['height']=this[_0x48da80(0x131)][_0x48da80(0x11d)]['style'][_0x48da80(_0x3a0172._0x38a29c)];}}['getRectangle'](_0x44a53a){const _0xa6aa76={_0x5091b8:0xe9},_0xe0a4ee=_0x58e5cc;if(!this[_0xe0a4ee(0x107)]||!this['dataSet']['_data'])return;const _0x2fa563=mars3d__namespace['Util']['getExtentByGeoJSON']({'type':_0xe0a4ee(0xf7),'features':this['dataSet']['_data']});if(!_0x2fa563)return;return _0x44a53a!==null&&_0x44a53a!==void 0x0&&_0x44a53a['isFormat']?_0x2fa563:Cesium[_0xe0a4ee(_0xa6aa76._0x5091b8)]['fromDegrees'](_0x2fa563['xmin'],_0x2fa563['ymin'],_0x2fa563[_0xe0a4ee(0x118)],_0x2fa563['ymax']);}[_0x58e5cc(0x103)](_0x5d5fca){const _0x378a79={_0x193e20:0x133},_0x3dfbcc=_0x58e5cc;this['_cache_event']=_0x5d5fca,this['_mapVRenderer']&&this['_mapVRenderer'][_0x3dfbcc(_0x378a79._0x193e20)](_0x5d5fca['windowPosition'],_0x5d5fca);}['_onMapMouseMove'](_0x203aae){const _0x4e0890={_0x597eae:0xec},_0x4ae398=_0x58e5cc;this[_0x4ae398(0x110)]=_0x203aae,this[_0x4ae398(0xec)]&&this[_0x4ae398(_0x4e0890._0x597eae)]['mousemoveEvent'](_0x203aae['windowPosition'],_0x203aae);}['on'](_0xa3229f,_0x55d7d0,_0xe409a0){const _0x4d2419={_0x1c13fc:0xe0,_0x23ebb0:0x131},_0x47f772={_0x348128:0x110},_0x378179=_0x58e5cc;this['options']['methods']=this[_0x378179(_0x4d2419._0x1c13fc)]['methods']||{};if(_0xa3229f===mars3d__namespace['EventType']['click'])this['options'][_0x378179(0x111)]['click']=_0x41dc77=>{const _0xa32cbe=_0x378179;_0x41dc77&&_0x55d7d0['bind'](_0xe409a0)({...this[_0xa32cbe(0x110)],'layer':this,'data':_0x41dc77});},this[_0x378179(_0x4d2419._0x23ebb0)]['on'](mars3d__namespace['EventType']['click'],this['_onMapClick'],this);else _0xa3229f===mars3d__namespace['EventType']['mouseMove']&&(this['options']['methods'][_0x378179(0x137)]=_0x4d5eec=>{const _0x911839=_0x378179;_0x4d5eec&&_0x55d7d0['bind'](_0xe409a0)({...this[_0x911839(_0x47f772._0x348128)],'layer':this,'data':_0x4d5eec});},this[_0x378179(_0x4d2419._0x23ebb0)]['on'](mars3d__namespace['EventType']['mouseMove'],this['_onMapMouseMove'],this));return this;}['off'](_0x4b164e,_0x5a530f){const _0x3230ae={_0x54ceee:0x111,_0x11c418:0x131},_0x1a1bac=_0x58e5cc;if(_0x4b164e==='click'){var _0x34d17f;this['_map'][_0x1a1bac(0x13d)](_0x4b164e,this['_onMapClick'],this),(_0x34d17f=this['options']['methods'])!==null&&_0x34d17f!==void 0x0&&_0x34d17f['mousemove']&&delete this['options'][_0x1a1bac(_0x3230ae._0x54ceee)]['click'];}else{if(_0x4b164e==='mouseMove'){var _0x44a92e;this[_0x1a1bac(_0x3230ae._0x11c418)]['off'](_0x4b164e,this['_onMapMouseMove'],this),(_0x44a92e=this['options']['methods'])!==null&&_0x44a92e!==void 0x0&&_0x44a92e['mousemove']&&delete this['options']['methods']['mousemove'];}}return this;}}mars3d__namespace['LayerUtil'][_0x58e5cc(0x12b)]('mapv',MapVLayer),mars3d__namespace['layer']['MapVLayer']=MapVLayer,mars3d__namespace['mapv']=mapv__namespace,exports['MapVLayer']=MapVLayer,Object['keys'](mapv)['forEach'](function(_0x9fb0d4){if(_0x9fb0d4!=='default'&&!exports['hasOwnProperty'](_0x9fb0d4))Object['defineProperty'](exports,_0x9fb0d4,{'enumerable':!![],'get':function(){return mapv[_0x9fb0d4];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});function _0x15d3(){const _0x17d831=['getData','block','mapvDepthTest','1905840WnDRNf','height','removeChild','_cache_event','methods','_canvasUpdate','COLOR_BUFFER_BIT','_reset','_coordinates','Polygon','type','xmax','updateData','Cesium','style','canvasLayer','canvas','stopAniamation','mouseMove','addAnimatorEvent','12yfKZtk','scene','1248856zxUhoC','devicePixelRatio','MultiPolygon','getContext','fillStyle','update','position','draw','register','animatorMoveendEvent','setZIndex','animatorMovestartEvent','isEnabledTime','_createCanvas','_map','size','clickEvent','getOwnPropertyDescriptor','DomUtil','BaseLayer','mousemove','trails','7tHdphn','Cartographic','_data','72290735oCsFeX','off','width','__proto__','50438xzIjWu','top','clearRect','_pointerEvents','options','6412338joyaMI','stop','updateCallback','fillRect','data','zIndex','add','get','Rectangle','clearData','mapvFixedHeight','_mapVRenderer','display','camera','EventType','animation','SceneMode','123WZjgZd','none','isPointVisible','pointerEvents','concat','FeatureCollection','cartesianToCanvasCoordinates','_onMoveStartEvent','1048EplxFT','push','removeData','start','context','Cartesian3','cameraMoveStart','198864IOCkyA','animator','_onMapClick','_removedHook','584HCNiXk','clear','dataSet','length','8990tgoYCh'];_0x15d3=function(){return _0x17d831;};return _0x15d3();}
}));
{
"name": "mars3d-mapv",
"version": "3.6.14",
"version": "3.6.15",
"description": "Mars3D平台插件,结合mapv可视化功能插件",

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

"devDependencies": {
"mars3d": "~3.6.14"
"mars3d": "~3.6.15"
},

@@ -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