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.15 to 3.6.16

6

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

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

})(this, (function (exports, mapv, mars3d) {
'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();}
'use strict';const _0xf03809=_0x2e2d;(function(_0x49f19e,_0x35037e){const _0x48033b={_0x37cc4b:0xdf,_0x2f9a5c:0x9e,_0x153784:0xde,_0x313dd5:0xca,_0x3e77c9:0xd8},_0x428c75=_0x2e2d,_0x1d695f=_0x49f19e();while(!![]){try{const _0x563061=parseInt(_0x428c75(_0x48033b._0x37cc4b))/0x1*(parseInt(_0x428c75(0xe7))/0x2)+-parseInt(_0x428c75(0x94))/0x3+parseInt(_0x428c75(_0x48033b._0x2f9a5c))/0x4+-parseInt(_0x428c75(0x90))/0x5*(parseInt(_0x428c75(0xf2))/0x6)+parseInt(_0x428c75(_0x48033b._0x153784))/0x7*(-parseInt(_0x428c75(0x99))/0x8)+-parseInt(_0x428c75(_0x48033b._0x313dd5))/0x9*(parseInt(_0x428c75(0xb8))/0xa)+parseInt(_0x428c75(_0x48033b._0x3e77c9))/0xb*(parseInt(_0x428c75(0x93))/0xc);if(_0x563061===_0x35037e)break;else _0x1d695f['push'](_0x1d695f['shift']());}catch(_0x3394ee){_0x1d695f['push'](_0x1d695f['shift']());}}}(_0x3511,0xdec84));function _interopNamespace(_0x12f511){const _0x11c6fd={_0x2b3a65:0xc4},_0x56bd65=_0x2e2d;if(_0x12f511&&_0x12f511[_0x56bd65(0x8a)])return _0x12f511;var _0x4f704d=Object[_0x56bd65(_0x11c6fd._0x2b3a65)](null);return _0x12f511&&Object['keys'](_0x12f511)[_0x56bd65(0x9f)](function(_0x79142b){if(_0x79142b!=='default'){var _0x54c818=Object['getOwnPropertyDescriptor'](_0x12f511,_0x79142b);Object['defineProperty'](_0x4f704d,_0x79142b,_0x54c818['get']?_0x54c818:{'enumerable':!![],'get':function(){return _0x12f511[_0x79142b];}});}}),_0x4f704d['default']=_0x12f511,_0x4f704d;}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(_0x54ae2c,_0xc41471,_0x599e00,_0x126c06){super(_0x54ae2c,_0xc41471,_0x599e00);if(!BaseLayer$1)return;this['map']=_0x54ae2c,this['scene']=_0x54ae2c['scene'],this['dataSet']=_0xc41471,_0x599e00=_0x599e00||{},this['init'](_0x599e00),this['argCheck'](_0x599e00),this['initDevicePixelRatio'](),this['canvasLayer']=_0x126c06,this['stopAniamation']=!0x1,this['animation']=_0x599e00['animation'];}[_0xf03809(0xcf)](){const _0x3fb2aa={_0x4fffb5:0xac},_0x2808f9=_0xf03809;this[_0x2808f9(0xac)]=window[_0x2808f9(_0x3fb2aa._0x4fffb5)]||0x1;}['addAnimatorEvent'](){}['animatorMovestartEvent'](){const _0x2cfa5d={_0x213666:0xaa,_0x250e47:0xaf},_0x5c6c8b=_0xf03809,_0x1d00b1=this[_0x5c6c8b(0xcc)][_0x5c6c8b(0xa8)];this[_0x5c6c8b(_0x2cfa5d._0x213666)]()&&this['animator']&&(this['steps']['step']=_0x1d00b1[_0x5c6c8b(_0x2cfa5d._0x250e47)]['start']);}['animatorMoveendEvent'](){this['isEnabledTime']()&&this['animator'];}['getContext'](){return this['canvasLayer']['canvas']['getContext'](this['context']);}['init'](_0x2456af){const _0x5d22b2={_0x161c15:0xd7,_0x524cee:0x87},_0x5369c2=_0xf03809;this['options']=_0x2456af,this[_0x5369c2(0x98)](_0x2456af),this['context']=this[_0x5369c2(0xcc)][_0x5369c2(_0x5d22b2._0x161c15)]||'2d',Cesium$1['defined'](this['options']['zIndex'])&&this['canvasLayer']&&this['canvasLayer']['setZIndex']&&this[_0x5369c2(_0x5d22b2._0x524cee)]['setZIndex'](this['options']['zIndex']),this['initAnimator']();}[_0xf03809(0x8d)](_0x1f6987){const _0x2f3d25={_0x37aca6:0xcc,_0x4e03a1:0x80,_0x5b053c:0xb3,_0x840a00:0xb0,_0x29b4ca:0xcc,_0x34fdf5:0xdc,_0x3dc774:0xc6},_0x2c31d8={_0x232eee:0xd9,_0x56307d:0xd4,_0x5573af:0x8c,_0x5b858b:0xc0},_0x374ac1=_0xf03809,_0x57677e=this['scene'];if(this['canvasLayer']&&!this['stopAniamation']){const _0x513687=this[_0x374ac1(_0x2f3d25._0x37aca6)][_0x374ac1(0xa8)],_0x2b4803=this['getContext']();if(this['isEnabledTime']()){if(void 0x0===_0x1f6987)return void this['clear'](_0x2b4803);this['context']==='2d'&&(_0x2b4803['save'](),_0x2b4803['globalCompositeOperation']=_0x374ac1(_0x2f3d25._0x4e03a1),_0x2b4803[_0x374ac1(_0x2f3d25._0x5b053c)]='rgba(0,\x200,\x200,\x20.1)',_0x2b4803[_0x374ac1(0xd1)](0x0,0x0,_0x2b4803['canvas'][_0x374ac1(0x97)],_0x2b4803[_0x374ac1(0xd3)][_0x374ac1(0xbd)]),_0x2b4803[_0x374ac1(_0x2f3d25._0x840a00)]());}else this['clear'](_0x2b4803);if(this[_0x374ac1(0xd7)]==='2d')for(const _0x133b98 in this['options']){_0x2b4803[_0x133b98]=this[_0x374ac1(_0x2f3d25._0x29b4ca)][_0x133b98];}else _0x2b4803['clear'](_0x2b4803['COLOR_BUFFER_BIT']);const _0x45cfd1={'transferCoordinate':function(_0xd039a7){const _0x4d4dd4=_0x374ac1,_0x461fab=null;let _0x215742=_0x57677e['mapvFixedHeight'];_0x57677e[_0x4d4dd4(0x81)]&&(_0x215742=_0x57677e['globe'][_0x4d4dd4(0xbf)](Cesium$1['Cartographic']['fromDegrees'](_0xd039a7[0x0],_0xd039a7[0x1])));const _0x5d964a=Cesium$1['Cartesian3']['fromDegrees'](_0xd039a7[0x0],_0xd039a7[0x1],_0x215742);if(!_0x5d964a)return _0x461fab;const _0x34a309=_0x57677e[_0x4d4dd4(_0x2c31d8._0x232eee)](_0x5d964a);if(!_0x34a309)return _0x461fab;if(_0x57677e[_0x4d4dd4(_0x2c31d8._0x56307d)]&&_0x57677e['mode']===Cesium$1[_0x4d4dd4(0xa3)]['SCENE3D']){const _0x801998=new Cesium$1['EllipsoidalOccluder'](_0x57677e['globe']['ellipsoid'],_0x57677e[_0x4d4dd4(_0x2c31d8._0x5573af)][_0x4d4dd4(_0x2c31d8._0x5b858b)]),_0x3289fb=_0x801998[_0x4d4dd4(0xa0)](_0x5d964a);if(!_0x3289fb)return _0x461fab;}return[_0x34a309['x'],_0x34a309['y']];}};void 0x0!==_0x1f6987&&(_0x45cfd1['filter']=function(_0x350b9c){const _0x388012=_0x374ac1,_0x50e78e=_0x513687['trails']||0xa;return!!(_0x1f6987&&_0x350b9c[_0x388012(0x88)]>_0x1f6987-_0x50e78e&&_0x350b9c['time']<_0x1f6987);});const _0x382c9f=this['dataSet']['get'](_0x45cfd1);this[_0x374ac1(0x8f)](_0x382c9f),this['options'][_0x374ac1(0xc2)]==='m'&&this['options']['size'],this['options']['_size']=this['options'][_0x374ac1(0xef)];const _0x2163ab=_0x57677e[_0x374ac1(0xd9)](Cesium$1[_0x374ac1(_0x2f3d25._0x34fdf5)]['fromDegrees'](0x0,0x0));if(!_0x2163ab)return;this['drawContext'](_0x2b4803,new mapv__namespace['DataSet'](_0x382c9f),this['options'],_0x2163ab),this['options'][_0x374ac1(_0x2f3d25._0x3dc774)]&&this[_0x374ac1(0xcc)][_0x374ac1(0xc6)](_0x1f6987);}}['updateData'](_0x1ae48f,_0x41dc46){const _0x1a0b4b={_0x18db3a:0x9b,_0x18522d:0xcb},_0x461bfe=_0xf03809;let _0x51c8f9=_0x1ae48f;_0x51c8f9&&_0x51c8f9[_0x461bfe(_0x1a0b4b._0x18db3a)]&&(_0x51c8f9=_0x51c8f9[_0x461bfe(0x9b)]()),void 0x0!==_0x51c8f9&&this['dataSet'][_0x461bfe(_0x1a0b4b._0x18522d)](_0x51c8f9),super[_0x461bfe(0xba)]({'options':_0x41dc46});}['addData'](_0x2e5980,_0x1454cc){const _0x172392=_0xf03809;let _0x548120=_0x2e5980;_0x2e5980&&_0x2e5980['get']&&(_0x548120=_0x2e5980['get']()),this['dataSet'][_0x172392(0xb6)](_0x548120),this['update']({'options':_0x1454cc});}['getData'](){const _0x27f8f7=_0xf03809;return this[_0x27f8f7(0xda)];}['removeData'](_0x5b47e7){const _0x30c090={_0x1d08cf:0xda},_0xc741ac=_0xf03809;if(this['dataSet']){const _0x5a1134=this[_0xc741ac(_0x30c090._0x1d08cf)]['get']({'filter':function(_0x4a7226){return _0x5b47e7==null||typeof _0x5b47e7!=='function'||!_0x5b47e7(_0x4a7226);}});this['dataSet']['set'](_0x5a1134),this['update']({'options':null});}}['clearData'](){const _0x4a3553=_0xf03809;this['dataSet']&&this[_0x4a3553(0xda)]['clear'](),this[_0x4a3553(0xba)]({'options':null});}['draw'](){const _0x4c94ed={_0x256dad:0xb1},_0x537f0a=_0xf03809;this['canvasLayer'][_0x537f0a(_0x4c94ed._0x256dad)]();}[_0xf03809(0xb5)](_0x2ee678){const _0x23473e={_0x55f274:0xd3},_0x332d31=_0xf03809;_0x2ee678&&_0x2ee678['clearRect']&&_0x2ee678['clearRect'](0x0,0x0,_0x2ee678['canvas'][_0x332d31(0x97)],_0x2ee678[_0x332d31(_0x23473e._0x55f274)]['height']);}['destroy'](){const _0x173724={_0x424c8d:0xb9,_0x2a08ac:0xab},_0x3d67fd=_0xf03809;this['clear'](this[_0x3d67fd(_0x173724._0x424c8d)]()),this['clearData'](),this[_0x3d67fd(_0x173724._0x2a08ac)]&&this['animator']['stop'](),this['animator']=null,this['canvasLayer']=null;}}if(mapv__namespace!==null&&mapv__namespace!==void 0x0&&mapv__namespace[_0xf03809(0x82)])mapv__namespace[_0xf03809(0x82)][_0xf03809(0xb4)][_0xf03809(0xf0)]=function(_0x532e56,_0x23a0ef,_0x1ca900,_0xe23bf2){const _0x22f26b={_0x5d59ee:0xa2,_0x1e2444:0xc3,_0x5c6be3:0xec},_0x45717e=_0xf03809;_0xe23bf2=_0xe23bf2||'_coordinates',_0x1ca900=_0x1ca900||'coordinates';for(let _0x14133a=0x0;_0x14133a<_0x532e56['length'];_0x14133a++){const _0x5aaca9=_0x532e56[_0x14133a][_0x45717e(0xd0)],_0x3665f1=_0x5aaca9[_0x1ca900];switch(_0x5aaca9['type']){case'Point':{const _0x39293c=_0x23a0ef(_0x3665f1);_0x39293c?_0x5aaca9[_0xe23bf2]=_0x39293c:_0x5aaca9[_0xe23bf2]=[-0x3e7,-0x3e7];}break;case _0x45717e(_0x22f26b._0x5d59ee):{const _0x3300a1=[];for(let _0x2011fd=0x0;_0x2011fd<_0x3665f1['length'];_0x2011fd++){const _0x154e28=_0x23a0ef(_0x3665f1[_0x2011fd]);_0x154e28&&_0x3300a1['push'](_0x154e28);}_0x5aaca9[_0xe23bf2]=_0x3300a1;}break;case _0x45717e(_0x22f26b._0x1e2444):case'Polygon':{const _0x29ee5e=_0x540da1(_0x3665f1);_0x5aaca9[_0xe23bf2]=_0x29ee5e;}break;case'MultiPolygon':{const _0x1c05eb=[];for(let _0x1f54a4=0x0;_0x1f54a4<_0x3665f1[_0x45717e(0xec)];_0x1f54a4++){const _0x41a312=_0x540da1(_0x3665f1[_0x1f54a4]);_0x41a312[_0x45717e(_0x22f26b._0x5c6be3)]>0x0&&_0x1c05eb['push'](_0x41a312);}_0x5aaca9[_0xe23bf2]=_0x1c05eb;}break;}}function _0x540da1(_0x344245){const _0x2dcfd2=[];for(let _0x5cbe4a=0x0;_0x5cbe4a<_0x344245['length'];_0x5cbe4a++){const _0x5cd228=_0x344245[_0x5cbe4a],_0x3ba5fc=[];for(let _0x1f7218=0x0;_0x1f7218<_0x5cd228['length'];_0x1f7218++){const _0x115df8=_0x23a0ef(_0x5cd228[_0x1f7218]);_0x115df8&&_0x3ba5fc['push'](_0x115df8);}_0x3ba5fc['length']>0x0&&_0x2dcfd2['push'](_0x3ba5fc);}return _0x2dcfd2;}return _0x532e56;};else throw new Error(_0xf03809(0x9a));function _0x2e2d(_0x2e68cc,_0x244e09){const _0x351156=_0x3511();return _0x2e2d=function(_0x2e2d35,_0x20afeb){_0x2e2d35=_0x2e2d35-0x80;let _0x49d36e=_0x351156[_0x2e2d35];return _0x49d36e;},_0x2e2d(_0x2e68cc,_0x244e09);}function _0x3511(){const _0x3a05a0=['length','methods','resize','size','transferCoordinate','position','6SkGCor','destination-out','mapvAutoHeight','DataSet','postRender','Util','mouseDown','FeatureCollection','canvasLayer','time','style','__esModule','all','camera','_canvasUpdate','_onMapMouseMove','processData','7746995dcfran','mousemove','getData','26786088BWzjRR','3162384FfRYsV','pointerEvents','unbindEvent','width','initDataRange','40RZLlzm','请引入\x20mapv\x20库\x20','get','click','_cache_event','4911740CBqDYv','forEach','isPointVisible','mapv','LineString','SceneMode','destroy','layer','scale','scene','animation','zIndex','isEnabledTime','animator','devicePixelRatio','none','off','stepsRange','restore','draw','mapvFixedHeight','fillStyle','prototype','clear','add','_onMoveEndEvent','10sASbuM','getContext','update','LayerUtil','_addedHook','height','removeData','getHeight','positionWC','BaseLayer','unit','MultiLineString','create','xmax','updateCallback','mouseMove','_showHook','_map','15461559yCagJW','set','options','0px','bindEvent','initDevicePixelRatio','geometry','fillRect','block','canvas','mapvDepthTest','bind','_onMoveStartEvent','context','22WniEPh','cartesianToCanvasCoordinates','dataSet','top','Cartesian3','_removedHook','776965dBMmKz','1667fnvJqO','render','_pointerEvents','cameraMoveStart','_reset','removeAllData','fromDegrees','Cesium','116cjFvic','_onMapClick','left','_mapVRenderer','_mountedHook'];_0x3511=function(){return _0x3a05a0;};return _0x3511();}const Cesium=mars3d__namespace[_0xf03809(0xe6)],BaseLayer=mars3d__namespace['layer'][_0xf03809(0xc1)];class MapVLayer extends BaseLayer{constructor(_0x1fae4c,_0x42b9c1){const _0x42dda6={_0x54b866:0xe1},_0x3259b8=_0xf03809;super(_0x1fae4c),this[_0x3259b8(_0x42dda6._0x54b866)]=this['options']['pointerEvents'],this['dataSet']=_0x42b9c1||new mapv__namespace[(_0x3259b8(0x82))](_0x1fae4c['data']),this[_0x3259b8(0xd3)]=null;}get['pointerEvents'](){const _0x46597d=_0xf03809;return this[_0x46597d(0xe1)];}set[_0xf03809(0x95)](_0x521ba1){const _0x8090e2={_0x2ad8d4:0xd3,_0x4a8bbe:0x95,_0x5e0d81:0x8b,_0x495382:0xad},_0x3d9a22=_0xf03809;this['_pointerEvents']=_0x521ba1,this['canvas']&&(_0x521ba1?this[_0x3d9a22(_0x8090e2._0x2ad8d4)]['style'][_0x3d9a22(_0x8090e2._0x4a8bbe)]=_0x3d9a22(_0x8090e2._0x5e0d81):this['canvas']['style']['pointerEvents']=_0x3d9a22(_0x8090e2._0x495382));}[_0xf03809(0xc8)](_0x1d4563){const _0x2e5fe7={_0x525371:0xd3,_0x5e2f08:0xd2,_0x3c75ee:0x89},_0x5be0bc=_0xf03809;_0x1d4563?this[_0x5be0bc(_0x2e5fe7._0x525371)]['style']['display']=_0x5be0bc(_0x2e5fe7._0x5e2f08):this['canvas'][_0x5be0bc(_0x2e5fe7._0x3c75ee)]['display']=_0x5be0bc(0xad);}[_0xf03809(0xeb)](){const _0x5a03a0={_0x5a2ec6:0xc9,_0x150757:0xcc},_0x305899=_0xf03809;this[_0x305899(_0x5a03a0._0x5a2ec6)][_0x305899(0xa7)][_0x305899(0xd4)]=this['options']['depthTest']??!![],this['_map']['scene']['mapvAutoHeight']=this[_0x305899(_0x5a03a0._0x150757)]['clampToGround']??![],this['_map']['scene'][_0x305899(0xb2)]=this['options']['fixedHeight']??0x0;}[_0xf03809(0xbc)](){const _0x3a6f54={_0x35982c:0xda,_0x8a373f:0xcf},_0x909ddd=_0xf03809;this[_0x909ddd(_0x3a6f54._0x35982c)]&&(!this['dataSet']['_data']||this[_0x909ddd(0xda)]['_data']['length']===0x0)&&(this[_0x909ddd(_0x3a6f54._0x35982c)]['_data']=[]['concat'](this['dataSet']['_dataCache'])),this['_mapVRenderer']=new MapVRenderer(this['_map'],this[_0x909ddd(0xda)],this['options'],this),this[_0x909ddd(_0x3a6f54._0x8a373f)](),this['canvas']=this['_createCanvas'](),this['render']=this['render']['bind'](this),this['bindEvent'](),this['_reset']();}[_0xf03809(0xdd)](){const _0x45bd4c={_0x30306e:0xa4},_0x55947e=_0xf03809;this[_0x55947e(0x96)](),this['_mapVRenderer']&&(this['_mapVRenderer'][_0x55947e(_0x45bd4c._0x30306e)](),this['_mapVRenderer']=null),this['canvas']['parentElement']['removeChild'](this['canvas']);}['initDevicePixelRatio'](){const _0x196dd3=_0xf03809;this[_0x196dd3(0xac)]=window['devicePixelRatio']||0x1;}[_0xf03809(0xce)](){const _0x29f3e5={_0x809f25:0x85,_0x441ef1:0xd6,_0x2bf938:0xe2,_0x5307ba:0xc9,_0x351410:0x91},_0x494e4f=_0xf03809;var _0x323bff,_0x35dd15;this['_map']['on'](mars3d__namespace['EventType'][_0x494e4f(_0x29f3e5._0x809f25)],this[_0x494e4f(_0x29f3e5._0x441ef1)],this),this['_map']['on'](mars3d__namespace['EventType'][_0x494e4f(_0x29f3e5._0x2bf938)],this['_onMoveStartEvent'],this),this['_map']['on'](mars3d__namespace['EventType']['cameraMoveEnd'],this['_onMoveEndEvent'],this),(_0x323bff=this['options'])!==null&&_0x323bff!==void 0x0&&(_0x323bff=_0x323bff['methods'])!==null&&_0x323bff!==void 0x0&&_0x323bff[_0x494e4f(0x9c)]&&this[_0x494e4f(_0x29f3e5._0x5307ba)]['on'](mars3d__namespace['EventType']['click'],this[_0x494e4f(0xe8)],this),(_0x35dd15=this[_0x494e4f(0xcc)])!==null&&_0x35dd15!==void 0x0&&(_0x35dd15=_0x35dd15['methods'])!==null&&_0x35dd15!==void 0x0&&_0x35dd15[_0x494e4f(_0x29f3e5._0x351410)]&&this['_map']['on'](mars3d__namespace['EventType']['mouseMove'],this['_onMapMouseMove'],this);}[_0xf03809(0x96)](){const _0x1ea760={_0x5dcca9:0xd6,_0x163dd6:0xe3,_0x18a38c:0x9c,_0x461177:0xed,_0x243617:0xc9},_0xb9891f=_0xf03809;var _0x139fff,_0x44f8de;this[_0xb9891f(0xc9)]['off'](mars3d__namespace['EventType']['mouseDown'],this['_onMoveStartEvent'],this),this['_map'][_0xb9891f(0xae)](mars3d__namespace['EventType']['cameraMoveStart'],this[_0xb9891f(_0x1ea760._0x5dcca9)],this),this['_map'][_0xb9891f(0xae)](mars3d__namespace['EventType']['cameraMoveEnd'],this['_onMoveEndEvent'],this),this['_map'][_0xb9891f(0xae)](mars3d__namespace['EventType'][_0xb9891f(0x83)],this[_0xb9891f(_0x1ea760._0x163dd6)],this),(_0x139fff=this['options'])!==null&&_0x139fff!==void 0x0&&(_0x139fff=_0x139fff['methods'])!==null&&_0x139fff!==void 0x0&&_0x139fff['click']&&this['_map'][_0xb9891f(0xae)](mars3d__namespace['EventType'][_0xb9891f(_0x1ea760._0x18a38c)],this['_onMapClick'],this),(_0x44f8de=this['options'])!==null&&_0x44f8de!==void 0x0&&(_0x44f8de=_0x44f8de[_0xb9891f(_0x1ea760._0x461177)])!==null&&_0x44f8de!==void 0x0&&_0x44f8de['mousemove']&&this[_0xb9891f(_0x1ea760._0x243617)]['off'](mars3d__namespace['EventType']['mouseMove'],this['_onMapMouseMove'],this);}['_onMoveStartEvent'](){const _0x571ec7={_0x11a8c3:0xae},_0x910cfd=_0xf03809;this['_mapVRenderer']&&(this['_mapVRenderer']['animatorMovestartEvent'](),this['_map'][_0x910cfd(_0x571ec7._0x11a8c3)](mars3d__namespace['EventType'][_0x910cfd(0x83)],this['_reset'],this),this['_map']['on'](mars3d__namespace['EventType']['postRender'],this['_reset'],this));}[_0xf03809(0xb7)](){const _0x121e6a={_0x175754:0xc9,_0x5117fc:0xae,_0x106d04:0xe3},_0x1ff927=_0xf03809;this['_mapVRenderer']&&(this[_0x1ff927(_0x121e6a._0x175754)][_0x1ff927(_0x121e6a._0x5117fc)](mars3d__namespace['EventType'][_0x1ff927(0x83)],this['_reset'],this),this[_0x1ff927(0xea)]['animatorMoveendEvent'](),this[_0x1ff927(_0x121e6a._0x106d04)]());}['_setOptionsHook'](_0x382881,_0x266a23){const _0x14f69a={_0x301ed6:0xbc},_0x15e40b=_0xf03809;this['_removedHook'](),this[_0x15e40b(_0x14f69a._0x301ed6)]();}['addData'](_0xdbf60b){const _0x10c2b8={_0x23a5cb:0xcc},_0x5b6223=_0xf03809;this['_mapVRenderer']&&this[_0x5b6223(0xea)]['addData'](_0xdbf60b,this[_0x5b6223(_0x10c2b8._0x23a5cb)]);}['updateData'](_0x679e80){this['_mapVRenderer']&&this['_mapVRenderer']['updateData'](_0x679e80,this['options']);}['getData'](){const _0x3c4ee2={_0x2ec141:0xea,_0xf966:0xda},_0x21827c=_0xf03809;return this['_mapVRenderer']&&(this['dataSet']=this[_0x21827c(_0x3c4ee2._0x2ec141)][_0x21827c(0x92)]()),this[_0x21827c(_0x3c4ee2._0xf966)];}[_0xf03809(0xbe)](_0x5ee248){this['_mapVRenderer']&&this['_mapVRenderer']['removeData'](_0x5ee248);}[_0xf03809(0xe4)](){const _0x4c64e0=_0xf03809;this['_mapVRenderer']&&this[_0x4c64e0(0xea)]['clearData']();}['_createCanvas'](){const _0x8d9ebf={_0x4822be:0xc4,_0x2333f7:0x89,_0x155ef6:0xdb,_0x2aaa32:0xbd,_0xae7469:0xd3,_0x269f7f:0xad,_0x42db0a:0xa9,_0xca3221:0xb9,_0x5906c1:0xd7},_0x2940ea=_0xf03809,_0x4302ca=mars3d__namespace['DomUtil'][_0x2940ea(_0x8d9ebf._0x4822be)]('canvas','mars3d-mapv',this['_map']['container']);_0x4302ca['id']=this['id'],_0x4302ca[_0x2940ea(_0x8d9ebf._0x2333f7)]['position']='absolute',_0x4302ca['style'][_0x2940ea(_0x8d9ebf._0x155ef6)]='0px',_0x4302ca[_0x2940ea(0x89)]['left']='0px',_0x4302ca['width']=parseInt(this['_map']['canvas']['width']),_0x4302ca[_0x2940ea(_0x8d9ebf._0x2aaa32)]=parseInt(this['_map'][_0x2940ea(0xd3)]['height']),_0x4302ca['style']['width']=this[_0x2940ea(0xc9)]['canvas']['style'][_0x2940ea(0x97)],_0x4302ca[_0x2940ea(0x89)][_0x2940ea(0xbd)]=this['_map'][_0x2940ea(_0x8d9ebf._0xae7469)]['style']['height'],_0x4302ca['style']['pointerEvents']=this['_pointerEvents']?'auto':_0x2940ea(_0x8d9ebf._0x269f7f),_0x4302ca['style']['zIndex']=this['options'][_0x2940ea(_0x8d9ebf._0x42db0a)]??0x9;if(this['options']['context']==='2d'){const _0xef19d0=this['devicePixelRatio'];_0x4302ca[_0x2940ea(_0x8d9ebf._0xca3221)](this['options'][_0x2940ea(_0x8d9ebf._0x5906c1)])[_0x2940ea(0xa6)](_0xef19d0,_0xef19d0);}return _0x4302ca;}['_reset'](){this['resize'](),this['render']();}['draw'](){const _0x189c2e={_0x51ed1a:0xe3},_0x3fd8c2=_0xf03809;this[_0x3fd8c2(_0x189c2e._0x51ed1a)]();}['remove'](){this['_mapVRenderer']&&(this['_mapVRenderer']['destroy'](),this['_mapVRenderer']=null),this['canvas']['parentElement']['removeChild'](this['canvas']);}[_0xf03809(0xe0)](){const _0x46dc5d=_0xf03809;this[_0x46dc5d(0xea)]['_canvasUpdate']();}[_0xf03809(0xee)](){const _0x2d8f52={_0xbd68a8:0x89,_0xd983d6:0xdb,_0x371285:0xcd,_0x5ce711:0xe9,_0x167db8:0xc9,_0x379a49:0xd3},_0x1b6d8b=_0xf03809;if(this['canvas']){const _0x3d6258=this[_0x1b6d8b(0xd3)];_0x3d6258['style'][_0x1b6d8b(0xf1)]='absolute',_0x3d6258[_0x1b6d8b(_0x2d8f52._0xbd68a8)][_0x1b6d8b(_0x2d8f52._0xd983d6)]=_0x1b6d8b(_0x2d8f52._0x371285),_0x3d6258['style'][_0x1b6d8b(_0x2d8f52._0x5ce711)]='0px',_0x3d6258['width']=parseInt(this['_map'][_0x1b6d8b(0xd3)]['width']),_0x3d6258[_0x1b6d8b(0xbd)]=parseInt(this[_0x1b6d8b(0xc9)]['canvas']['height']),_0x3d6258['style'][_0x1b6d8b(0x97)]=this[_0x1b6d8b(_0x2d8f52._0x167db8)][_0x1b6d8b(_0x2d8f52._0x379a49)]['style']['width'],_0x3d6258['style']['height']=this['_map'][_0x1b6d8b(_0x2d8f52._0x379a49)][_0x1b6d8b(0x89)]['height'];}}['getRectangle'](_0x3f25da){const _0x3e4373={_0x16d6fc:0x84,_0x489eba:0xc5},_0x2d3d60=_0xf03809;if(!this['dataSet']||!this['dataSet']['_data'])return;const _0x31f8cb=mars3d__namespace[_0x2d3d60(_0x3e4373._0x16d6fc)]['getExtentByGeoJSON']({'type':_0x2d3d60(0x86),'features':this['dataSet']['_data']});if(!_0x31f8cb)return;return _0x3f25da!==null&&_0x3f25da!==void 0x0&&_0x3f25da['isFormat']?_0x31f8cb:Cesium['Rectangle'][_0x2d3d60(0xe5)](_0x31f8cb['xmin'],_0x31f8cb['ymin'],_0x31f8cb[_0x2d3d60(_0x3e4373._0x489eba)],_0x31f8cb['ymax']);}['_onMapClick'](_0x11d29f){const _0x504993={_0x3143ae:0x9d},_0x53e468=_0xf03809;this[_0x53e468(_0x504993._0x3143ae)]=_0x11d29f,this['_mapVRenderer']&&this['_mapVRenderer']['clickEvent'](_0x11d29f['windowPosition'],_0x11d29f);}['_onMapMouseMove'](_0x35d23){this['_cache_event']=_0x35d23,this['_mapVRenderer']&&this['_mapVRenderer']['mousemoveEvent'](_0x35d23['windowPosition'],_0x35d23);}['on'](_0x451ba2,_0x528563,_0x2e8b5b){const _0x4febc6={_0x4cbf36:0xc9,_0x2fca88:0x8e},_0x7d9ca5=_0xf03809;this['options']['methods']=this[_0x7d9ca5(0xcc)]['methods']||{};if(_0x451ba2===mars3d__namespace['EventType']['click'])this['options']['methods'][_0x7d9ca5(0x9c)]=_0x569587=>{const _0x40b384=_0x7d9ca5;_0x569587&&_0x528563[_0x40b384(0xd5)](_0x2e8b5b)({...this[_0x40b384(0x9d)],'layer':this,'data':_0x569587});},this[_0x7d9ca5(_0x4febc6._0x4cbf36)]['on'](mars3d__namespace['EventType']['click'],this['_onMapClick'],this);else _0x451ba2===mars3d__namespace['EventType'][_0x7d9ca5(0xc7)]&&(this['options'][_0x7d9ca5(0xed)]['mousemove']=_0x5d87d3=>{const _0x26cf22=_0x7d9ca5;_0x5d87d3&&_0x528563[_0x26cf22(0xd5)](_0x2e8b5b)({...this['_cache_event'],'layer':this,'data':_0x5d87d3});},this['_map']['on'](mars3d__namespace['EventType']['mouseMove'],this[_0x7d9ca5(_0x4febc6._0x2fca88)],this));return this;}[_0xf03809(0xae)](_0x243ad2,_0x512549){const _0x1d5329={_0x280415:0xae,_0x209480:0x8e,_0x49e61f:0xed},_0x31f8d1=_0xf03809;if(_0x243ad2===_0x31f8d1(0x9c)){var _0x348d09;this['_map'][_0x31f8d1(_0x1d5329._0x280415)](_0x243ad2,this['_onMapClick'],this),(_0x348d09=this['options']['methods'])!==null&&_0x348d09!==void 0x0&&_0x348d09['mousemove']&&delete this['options']['methods']['click'];}else{if(_0x243ad2==='mouseMove'){var _0x165edd;this[_0x31f8d1(0xc9)][_0x31f8d1(_0x1d5329._0x280415)](_0x243ad2,this[_0x31f8d1(_0x1d5329._0x209480)],this),(_0x165edd=this[_0x31f8d1(0xcc)]['methods'])!==null&&_0x165edd!==void 0x0&&_0x165edd['mousemove']&&delete this['options'][_0x31f8d1(_0x1d5329._0x49e61f)]['mousemove'];}}return this;}}mars3d__namespace[_0xf03809(0xbb)]['register'](_0xf03809(0xa1),MapVLayer),mars3d__namespace[_0xf03809(0xa5)]['MapVLayer']=MapVLayer,mars3d__namespace['mapv']=mapv__namespace,exports['MapVLayer']=MapVLayer,Object['keys'](mapv)[_0xf03809(0x9f)](function(_0x2a087d){if(_0x2a087d!=='default'&&!exports['hasOwnProperty'](_0x2a087d))Object['defineProperty'](exports,_0x2a087d,{'enumerable':!![],'get':function(){return mapv[_0x2a087d];}});}),Object['defineProperty'](exports,_0xf03809(0x8a),{'value':!![]});
}));
{
"name": "mars3d-mapv",
"version": "3.6.15",
"version": "3.6.16",
"description": "Mars3D平台插件,结合mapv可视化功能插件",

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

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

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