mars3d-mapv
Advanced tools
Comparing version 3.7.4 to 3.7.5
/** | ||
* Mars3D平台插件,结合mapv可视化功能插件 mars3d-mapv | ||
* | ||
* 版本信息:v3.7.4 | ||
* 编译日期:2024-02-23 17:33:54 | ||
* 版本信息:v3.7.5 | ||
* 编译日期:2024-03-05 18:11:40 | ||
* 版权所有:Copyright by 火星科技 http://mars3d.cn | ||
@@ -14,3 +14,3 @@ * 使用单位:免费公开版 ,2024-01-15 | ||
})(this, (function (exports, mapv, mars3d) { | ||
'use strict';function _0x4006(_0x19eb3f,_0x3dd25d){const _0x7189e3=_0x7189();return _0x4006=function(_0x40060c,_0x464a08){_0x40060c=_0x40060c-0xff;let _0x45bfcb=_0x7189e3[_0x40060c];return _0x45bfcb;},_0x4006(_0x19eb3f,_0x3dd25d);}const _0x355512=_0x4006;(function(_0x4fa92c,_0x820112){const _0x1de405={_0x4ae13a:0x151,_0x535a37:0x114},_0x51094e=_0x4006,_0xeecfd4=_0x4fa92c();while(!![]){try{const _0x124f31=-parseInt(_0x51094e(0x10d))/0x1+parseInt(_0x51094e(_0x1de405._0x4ae13a))/0x2+-parseInt(_0x51094e(0x11a))/0x3*(-parseInt(_0x51094e(0x13b))/0x4)+parseInt(_0x51094e(0x127))/0x5+parseInt(_0x51094e(_0x1de405._0x535a37))/0x6+parseInt(_0x51094e(0x146))/0x7*(parseInt(_0x51094e(0x13f))/0x8)+parseInt(_0x51094e(0x142))/0x9*(-parseInt(_0x51094e(0x155))/0xa);if(_0x124f31===_0x820112)break;else _0xeecfd4['push'](_0xeecfd4['shift']());}catch(_0x4ac60f){_0xeecfd4['push'](_0xeecfd4['shift']());}}}(_0x7189,0x56056));function _interopNamespace(_0x2d6862){const _0x250961={_0x336cd2:0x134};if(_0x2d6862&&_0x2d6862['__esModule'])return _0x2d6862;var _0x4f20cc=Object['create'](null);return _0x2d6862&&Object['keys'](_0x2d6862)['forEach'](function(_0x3eecc3){const _0x1ab5b0=_0x4006;if(_0x3eecc3!=='default'){var _0x33e1bf=Object[_0x1ab5b0(_0x250961._0x336cd2)](_0x2d6862,_0x3eecc3);Object['defineProperty'](_0x4f20cc,_0x3eecc3,_0x33e1bf['get']?_0x33e1bf:{'enumerable':!![],'get':function(){return _0x2d6862[_0x3eecc3];}});}}),_0x4f20cc['default']=_0x2d6862,_0x4f20cc;}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(_0x57611c,_0xfe5634,_0x57682b,_0x398ba8){const _0x10e771={_0x3219ef:0x14e},_0x2cf61c=_0x4006;super(_0x57611c,_0xfe5634,_0x57682b);if(!BaseLayer$1)return;this['map']=_0x57611c,this['scene']=_0x57611c['scene'],this[_0x2cf61c(_0x10e771._0x3219ef)]=_0xfe5634,_0x57682b=_0x57682b||{},this['init'](_0x57682b),this['argCheck'](_0x57682b),this['initDevicePixelRatio'](),this['canvasLayer']=_0x398ba8,this['stopAniamation']=!0x1,this['animation']=_0x57682b['animation'];}['initDevicePixelRatio'](){this['devicePixelRatio']=window['devicePixelRatio']||0x1;}['addAnimatorEvent'](){}['animatorMovestartEvent'](){const _0x4d50d7={_0x366c0e:0x102},_0x2cbd83=_0x4006,_0x116ded=this['options']['animation'];this['isEnabledTime']()&&this['animator']&&(this[_0x2cbd83(0x113)]['step']=_0x116ded[_0x2cbd83(0x13e)][_0x2cbd83(_0x4d50d7._0x366c0e)]);}[_0x355512(0x117)](){this['isEnabledTime']()&&this['animator'];}['getContext'](){return this['canvasLayer']['canvas']['getContext'](this['context']);}['init'](_0x17c872){const _0x1f1b1b={_0x4d76fc:0x137,_0x222fda:0x123,_0x5e7da8:0x132},_0x636f91=_0x355512;this[_0x636f91(0x132)]=_0x17c872,this['initDataRange'](_0x17c872),this['context']=this['options'][_0x636f91(0x154)]||'2d',Cesium$1[_0x636f91(_0x1f1b1b._0x4d76fc)](this['options']['zIndex'])&&this[_0x636f91(0x123)]&&this[_0x636f91(0x123)]['setZIndex']&&this[_0x636f91(_0x1f1b1b._0x222fda)]['setZIndex'](this[_0x636f91(_0x1f1b1b._0x5e7da8)]['zIndex']),this['initAnimator']();}['_canvasUpdate'](_0x2cb120){const _0x4cbef2={_0x5d1bbc:0x14d,_0x4fe81a:0x121,_0x2b8db8:0x13c,_0x43be40:0x11b,_0x582335:0x108},_0x58a45c={_0x3b0c4e:0x126},_0x15de12=_0x355512,_0x2778bd=this['scene'];if(this['canvasLayer']&&!this[_0x15de12(0x135)]){const _0x1e6853=this['options']['animation'],_0x999126=this['getContext']();if(this['isEnabledTime']()){if(void 0x0===_0x2cb120)return void this['clear'](_0x999126);this['context']==='2d'&&(_0x999126['save'](),_0x999126['globalCompositeOperation']='destination-out',_0x999126['fillStyle']=_0x15de12(0x13a),_0x999126['fillRect'](0x0,0x0,_0x999126[_0x15de12(_0x4cbef2._0x5d1bbc)]['width'],_0x999126['canvas']['height']),_0x999126[_0x15de12(_0x4cbef2._0x4fe81a)]());}else this['clear'](_0x999126);if(this[_0x15de12(0x154)]==='2d')for(const _0x4dddde in this['options']){_0x999126[_0x4dddde]=this['options'][_0x4dddde];}else _0x999126['clear'](_0x999126['COLOR_BUFFER_BIT']);const _0x1782d3={'transferCoordinate':function(_0x143d22){const _0x3c9e04=_0x15de12,_0x4a6639=null;let _0x4a6ab4=_0x2778bd['mapvFixedHeight'];_0x2778bd['mapvAutoHeight']&&(_0x4a6ab4=_0x2778bd['getHeight'](Cesium$1[_0x3c9e04(_0x58a45c._0x3b0c4e)][_0x3c9e04(0x100)](_0x143d22[0x0],_0x143d22[0x1])));const _0x139e85=Cesium$1['Cartesian3']['fromDegrees'](_0x143d22[0x0],_0x143d22[0x1],_0x4a6ab4);if(!_0x139e85)return _0x4a6639;const _0x2896a9=_0x2778bd['cartesianToCanvasCoordinates'](_0x139e85);if(!_0x2896a9)return _0x4a6639;if(_0x2778bd['mapvDepthTest']&&_0x2778bd['mode']===Cesium$1['SceneMode']['SCENE3D']){const _0x58eff1=new Cesium$1['EllipsoidalOccluder'](_0x2778bd['globe']['ellipsoid'],_0x2778bd['camera']['positionWC']),_0x62b7f3=_0x58eff1['isPointVisible'](_0x139e85);if(!_0x62b7f3)return _0x4a6639;}return[_0x2896a9['x'],_0x2896a9['y']];}};void 0x0!==_0x2cb120&&(_0x1782d3[_0x15de12(_0x4cbef2._0x2b8db8)]=function(_0xd53028){const _0xc4a2b6=_0x1e6853['trails']||0xa;return!!(_0x2cb120&&_0xd53028['time']>_0x2cb120-_0xc4a2b6&&_0xd53028['time']<_0x2cb120);});const _0x3212d1=this['dataSet']['get'](_0x1782d3);this[_0x15de12(_0x4cbef2._0x43be40)](_0x3212d1),this['options']['unit']==='m'&&this['options']['size'],this['options']['_size']=this['options']['size'];const _0x444ff7=_0x2778bd['cartesianToCanvasCoordinates'](Cesium$1['Cartesian3']['fromDegrees'](0x0,0x0));if(!_0x444ff7)return;this[_0x15de12(_0x4cbef2._0x582335)](_0x999126,new mapv__namespace[(_0x15de12(0x10e))](_0x3212d1),this['options'],_0x444ff7),this['options']['updateCallback']&&this['options']['updateCallback'](_0x2cb120);}}['updateData'](_0xd91b57,_0x274559){const _0x4962d7=_0x355512;let _0x5904df=_0xd91b57;_0x5904df&&_0x5904df[_0x4962d7(0x14f)]&&(_0x5904df=_0x5904df['get']()),void 0x0!==_0x5904df&&this['dataSet']['set'](_0x5904df),super['update']({'options':_0x274559});}[_0x355512(0x106)](_0x468248,_0x406893){const _0x5784c3={_0x1753c0:0x14f},_0x41840a=_0x355512;let _0x5448f4=_0x468248;_0x468248&&_0x468248[_0x41840a(_0x5784c3._0x1753c0)]&&(_0x5448f4=_0x468248[_0x41840a(0x14f)]()),this['dataSet'][_0x41840a(0x112)](_0x5448f4),this[_0x41840a(0x158)]({'options':_0x406893});}['getData'](){return this['dataSet'];}['removeData'](_0x2cbfc6){const _0x4b750b={_0x1a55cf:0x138},_0x434d65=_0x355512;if(this['dataSet']){const _0x3b491d=this['dataSet']['get']({'filter':function(_0x250f4e){return _0x2cbfc6==null||typeof _0x2cbfc6!=='function'||!_0x2cbfc6(_0x250f4e);}});this['dataSet'][_0x434d65(_0x4b750b._0x1a55cf)](_0x3b491d),this[_0x434d65(0x158)]({'options':null});}}['clearData'](){const _0x5825e7=_0x355512;this['dataSet']&&this['dataSet']['clear'](),this[_0x5825e7(0x158)]({'options':null});}['draw'](){const _0x5993e5={_0x56435e:0x123},_0x37c573=_0x355512;this[_0x37c573(_0x5993e5._0x56435e)]['draw']();}['clear'](_0xd60c3e){const _0x114680={_0x726e4e:0x12d},_0xfb5784=_0x355512;_0xd60c3e&&_0xd60c3e[_0xfb5784(0x143)]&&_0xd60c3e['clearRect'](0x0,0x0,_0xd60c3e['canvas']['width'],_0xd60c3e['canvas'][_0xfb5784(_0x114680._0x726e4e)]);}['destroy'](){const _0x388b31={_0x238d70:0x119},_0x2554f8=_0x355512;this['clear'](this['getContext']()),this[_0x2554f8(0x103)](),this[_0x2554f8(_0x388b31._0x238d70)]&&this['animator']['stop'](),this['animator']=null,this['canvasLayer']=null;}}function _0x7189(){const _0x517c5d=['_addedHook','restore','prototype','canvasLayer','_setOptionsHook','length','Cartographic','2540970pHHQmA','getExtentByGeoJSON','cameraMoveStart','LineString','mouseMove','_onMoveStartEvent','height','mapvDepthTest','ymin','destroy','mouseDown','options','Cesium','getOwnPropertyDescriptor','stopAniamation','type','defined','set','click','rgba(0,\x200,\x200,\x20.1)','345616GCrPjG','filter','initDevicePixelRatio','stepsRange','4549136vPeoOZ','_coordinates','_reset','54LvfrCb','clearRect','ymax','scene','7dxCSHE','_canvasUpdate','LayerUtil','style','bind','display','_mapVRenderer','canvas','dataSet','get','animatorMovestartEvent','791280zaQpMm','default','top','context','3198540trSvTU','windowPosition','MapVLayer','update','transferCoordinate','devicePixelRatio','_data','_map','fromDegrees','FeatureCollection','start','clearData','mapv','_showHook','addData','forEach','drawContext','_onMapMouseMove','layer','block','methods','464448OXYuKB','DataSet','push','EventType','0px','add','steps','3433236boHlii','off','_cache_event','animatorMoveendEvent','bindEvent','animator','24jBdYIe','processData','render','width','mousemove','mapvAutoHeight'];_0x7189=function(){return _0x517c5d;};return _0x7189();}if(mapv__namespace!==null&&mapv__namespace!==void 0x0&&mapv__namespace[_0x355512(0x10e)])mapv__namespace['DataSet'][_0x355512(0x122)][_0x355512(0x159)]=function(_0x4ec509,_0x27c91c,_0xd89f84,_0x277865){const _0x49d792={_0x3df99f:0x125,_0x4f75f9:0x136,_0x832902:0x10f},_0x29f2c0=_0x355512;_0x277865=_0x277865||_0x29f2c0(0x140),_0xd89f84=_0xd89f84||'coordinates';for(let _0x5f08d0=0x0;_0x5f08d0<_0x4ec509[_0x29f2c0(_0x49d792._0x3df99f)];_0x5f08d0++){const _0x56aa32=_0x4ec509[_0x5f08d0]['geometry'],_0x374230=_0x56aa32[_0xd89f84];switch(_0x56aa32[_0x29f2c0(_0x49d792._0x4f75f9)]){case'Point':{const _0x33ae2a=_0x27c91c(_0x374230);_0x33ae2a?_0x56aa32[_0x277865]=_0x33ae2a:_0x56aa32[_0x277865]=[-0x3e7,-0x3e7];}break;case _0x29f2c0(0x12a):{const _0xd7360a=[];for(let _0x5b9281=0x0;_0x5b9281<_0x374230['length'];_0x5b9281++){const _0x34b1f6=_0x27c91c(_0x374230[_0x5b9281]);_0x34b1f6&&_0xd7360a[_0x29f2c0(_0x49d792._0x832902)](_0x34b1f6);}_0x56aa32[_0x277865]=_0xd7360a;}break;case'MultiLineString':case'Polygon':{const _0x16ecb9=_0x2781c2(_0x374230);_0x56aa32[_0x277865]=_0x16ecb9;}break;case'MultiPolygon':{const _0x58ca67=[];for(let _0x59b676=0x0;_0x59b676<_0x374230['length'];_0x59b676++){const _0x2760e0=_0x2781c2(_0x374230[_0x59b676]);_0x2760e0['length']>0x0&&_0x58ca67[_0x29f2c0(_0x49d792._0x832902)](_0x2760e0);}_0x56aa32[_0x277865]=_0x58ca67;}break;}}function _0x2781c2(_0x13c1a5){const _0x30b61b=[];for(let _0x461728=0x0;_0x461728<_0x13c1a5['length'];_0x461728++){const _0x27026e=_0x13c1a5[_0x461728],_0x4d4ea2=[];for(let _0x188a5b=0x0;_0x188a5b<_0x27026e['length'];_0x188a5b++){const _0x5ba2e6=_0x27c91c(_0x27026e[_0x188a5b]);_0x5ba2e6&&_0x4d4ea2['push'](_0x5ba2e6);}_0x4d4ea2['length']>0x0&&_0x30b61b['push'](_0x4d4ea2);}return _0x30b61b;}return _0x4ec509;};else throw new Error('请引入\x20mapv\x20库\x20');const Cesium=mars3d__namespace[_0x355512(0x133)],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class MapVLayer extends BaseLayer{constructor(_0x54732b,_0x186bfd){const _0x2fad82={_0x221cf3:0x14e},_0x2548b9=_0x355512;super(_0x54732b),this['_pointerEvents']=this[_0x2548b9(0x132)]['pointerEvents'],this[_0x2548b9(_0x2fad82._0x221cf3)]=_0x186bfd||new mapv__namespace['DataSet'](_0x54732b['data']),this[_0x2548b9(0x14d)]=null;}get['pointerEvents'](){return this['_pointerEvents'];}set['pointerEvents'](_0xb0a06b){const _0x37371d={_0x23136a:0x14d},_0x28eb3d=_0x355512;this['_pointerEvents']=_0xb0a06b,this['canvas']&&(_0xb0a06b?this[_0x28eb3d(_0x37371d._0x23136a)]['style']['pointerEvents']='all':this['canvas']['style']['pointerEvents']='none');}[_0x355512(0x105)](_0x164e6b){const _0x194a3e={_0x327117:0x14b},_0x535431=_0x355512;_0x164e6b?this['canvas']['style'][_0x535431(0x14b)]=_0x535431(0x10b):this[_0x535431(0x14d)]['style'][_0x535431(_0x194a3e._0x327117)]='none';}['_mountedHook'](){const _0x1517ff={_0x4a19b7:0xff,_0x1932c4:0x12e},_0x5e4ddd=_0x355512;this[_0x5e4ddd(_0x1517ff._0x4a19b7)][_0x5e4ddd(0x145)][_0x5e4ddd(_0x1517ff._0x1932c4)]=this[_0x5e4ddd(0x132)]['depthTest']??!![],this['_map']['scene'][_0x5e4ddd(0x11f)]=this['options']['clampToGround']??![],this['_map']['scene']['mapvFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x479250={_0x39c97b:0x14e,_0x57d7ab:0x15b,_0x327e20:0x14d,_0x43fe23:0x118},_0x269e0f=_0x355512;this[_0x269e0f(_0x479250._0x39c97b)]&&(!this['dataSet']['_data']||this['dataSet'][_0x269e0f(_0x479250._0x57d7ab)]['length']===0x0)&&(this[_0x269e0f(0x14e)]['_data']=[]['concat'](this['dataSet']['_dataCache'])),this['_mapVRenderer']=new MapVRenderer(this['_map'],this['dataSet'],this['options'],this),this[_0x269e0f(0x13d)](),this[_0x269e0f(_0x479250._0x327e20)]=this['_createCanvas'](),this['render']=this['render']['bind'](this),this[_0x269e0f(_0x479250._0x43fe23)](),this['_reset']();}['_removedHook'](){const _0x5687ef=_0x355512;this['unbindEvent'](),this['_mapVRenderer']&&(this[_0x5687ef(0x14c)]['destroy'](),this['_mapVRenderer']=null),this['canvas']['parentElement']['removeChild'](this['canvas']);}[_0x355512(0x13d)](){this['devicePixelRatio']=window['devicePixelRatio']||0x1;}['bindEvent'](){const _0x3b4907={_0xe36ff4:0x129,_0x1cd21c:0x12c,_0x236a6a:0x132,_0x55d922:0x12b},_0x104bcb=_0x355512;var _0x4b900b,_0x1a0573;this['_map']['on'](mars3d__namespace[_0x104bcb(0x110)]['mouseDown'],this['_onMoveStartEvent'],this),this['_map']['on'](mars3d__namespace['EventType'][_0x104bcb(_0x3b4907._0xe36ff4)],this[_0x104bcb(_0x3b4907._0x1cd21c)],this),this['_map']['on'](mars3d__namespace['EventType']['cameraMoveEnd'],this['_onMoveEndEvent'],this),(_0x4b900b=this[_0x104bcb(_0x3b4907._0x236a6a)])!==null&&_0x4b900b!==void 0x0&&(_0x4b900b=_0x4b900b['methods'])!==null&&_0x4b900b!==void 0x0&&_0x4b900b['click']&&this['_map']['on'](mars3d__namespace['EventType']['click'],this['_onMapClick'],this),(_0x1a0573=this['options'])!==null&&_0x1a0573!==void 0x0&&(_0x1a0573=_0x1a0573['methods'])!==null&&_0x1a0573!==void 0x0&&_0x1a0573['mousemove']&&this[_0x104bcb(0xff)]['on'](mars3d__namespace['EventType'][_0x104bcb(_0x3b4907._0x55d922)],this['_onMapMouseMove'],this);}['unbindEvent'](){const _0x187970={_0x26e3dd:0x131,_0x8a66c0:0xff,_0x46d734:0x141,_0x291119:0x12b},_0x2e9271=_0x355512;var _0x33d51d,_0x13eac5;this[_0x2e9271(0xff)]['off'](mars3d__namespace['EventType'][_0x2e9271(_0x187970._0x26e3dd)],this['_onMoveStartEvent'],this),this[_0x2e9271(0xff)]['off'](mars3d__namespace['EventType']['cameraMoveStart'],this['_onMoveStartEvent'],this),this[_0x2e9271(_0x187970._0x8a66c0)][_0x2e9271(0x115)](mars3d__namespace['EventType']['cameraMoveEnd'],this['_onMoveEndEvent'],this),this['_map']['off'](mars3d__namespace['EventType']['postRender'],this[_0x2e9271(_0x187970._0x46d734)],this),(_0x33d51d=this['options'])!==null&&_0x33d51d!==void 0x0&&(_0x33d51d=_0x33d51d[_0x2e9271(0x10c)])!==null&&_0x33d51d!==void 0x0&&_0x33d51d[_0x2e9271(0x139)]&&this[_0x2e9271(0xff)]['off'](mars3d__namespace['EventType']['click'],this['_onMapClick'],this),(_0x13eac5=this['options'])!==null&&_0x13eac5!==void 0x0&&(_0x13eac5=_0x13eac5['methods'])!==null&&_0x13eac5!==void 0x0&&_0x13eac5['mousemove']&&this['_map'][_0x2e9271(0x115)](mars3d__namespace['EventType'][_0x2e9271(_0x187970._0x291119)],this[_0x2e9271(0x109)],this);}['_onMoveStartEvent'](){const _0x3245f1={_0x3472da:0x150},_0xf61599=_0x355512;this['_mapVRenderer']&&(this['_mapVRenderer'][_0xf61599(_0x3245f1._0x3472da)](),this[_0xf61599(0xff)]['off'](mars3d__namespace['EventType']['postRender'],this[_0xf61599(0x141)],this),this['_map']['on'](mars3d__namespace['EventType']['postRender'],this['_reset'],this));}['_onMoveEndEvent'](){const _0x2378e2=_0x355512;this['_mapVRenderer']&&(this['_map'][_0x2378e2(0x115)](mars3d__namespace['EventType']['postRender'],this[_0x2378e2(0x141)],this),this[_0x2378e2(0x14c)]['animatorMoveendEvent'](),this[_0x2378e2(0x141)]());}[_0x355512(0x124)](_0x23645c,_0x4b5772){const _0x58f6dd=_0x355512;this['_removedHook'](),this[_0x58f6dd(0x120)]();}['addData'](_0x188fbd){const _0x31d80a={_0x384b3b:0x132},_0x1c7aaf=_0x355512;this[_0x1c7aaf(0x14c)]&&this['_mapVRenderer']['addData'](_0x188fbd,this[_0x1c7aaf(_0x31d80a._0x384b3b)]);}['updateData'](_0x7d12df){this['_mapVRenderer']&&this['_mapVRenderer']['updateData'](_0x7d12df,this['options']);}['getData'](){return this['_mapVRenderer']&&(this['dataSet']=this['_mapVRenderer']['getData']()),this['dataSet'];}['removeData'](_0x49ad50){const _0xbfa17f={_0x29ce96:0x14c},_0x5b6ac4=_0x355512;this[_0x5b6ac4(_0xbfa17f._0x29ce96)]&&this['_mapVRenderer']['removeData'](_0x49ad50);}['removeAllData'](){this['_mapVRenderer']&&this['_mapVRenderer']['clearData']();}['_createCanvas'](){const _0x5b42e4={_0x59f2ab:0x153,_0x441090:0x11d,_0x21828a:0x149,_0x4e36fb:0x149},_0x22b496=_0x355512,_0x5dcb4c=mars3d__namespace['DomUtil']['create']('canvas','mars3d-mapv',this['_map']['container']);_0x5dcb4c['id']=this['id'],_0x5dcb4c[_0x22b496(0x149)]['position']='absolute',_0x5dcb4c['style'][_0x22b496(_0x5b42e4._0x59f2ab)]=_0x22b496(0x111),_0x5dcb4c[_0x22b496(0x149)]['left']='0px',_0x5dcb4c[_0x22b496(_0x5b42e4._0x441090)]=parseInt(this['_map']['canvas']['width']),_0x5dcb4c['height']=parseInt(this['_map']['canvas'][_0x22b496(0x12d)]),_0x5dcb4c['style'][_0x22b496(0x11d)]=this['_map'][_0x22b496(0x14d)]['style']['width'],_0x5dcb4c[_0x22b496(_0x5b42e4._0x21828a)][_0x22b496(0x12d)]=this['_map'][_0x22b496(0x14d)]['style']['height'],_0x5dcb4c[_0x22b496(_0x5b42e4._0x4e36fb)]['pointerEvents']=this['_pointerEvents']?'auto':'none',_0x5dcb4c['style']['zIndex']=this[_0x22b496(0x132)]['zIndex']??0x9;if(this['options']['context']==='2d'){const _0x23779e=this[_0x22b496(0x15a)];_0x5dcb4c['getContext'](this['options']['context'])['scale'](_0x23779e,_0x23779e);}return _0x5dcb4c;}['_reset'](){const _0x2f5999=_0x355512;this['resize'](),this[_0x2f5999(0x11c)]();}['draw'](){this['_reset']();}['remove'](){const _0x108c73={_0x4b218c:0x14c},_0x46da29=_0x355512;this[_0x46da29(_0x108c73._0x4b218c)]&&(this[_0x46da29(_0x108c73._0x4b218c)][_0x46da29(0x130)](),this['_mapVRenderer']=null),this['canvas']['parentElement']['removeChild'](this['canvas']);}['render'](){const _0x3f949a={_0x5a2a4e:0x147},_0x159c80=_0x355512;this['_mapVRenderer'][_0x159c80(_0x3f949a._0x5a2a4e)]();}['resize'](){const _0x52794b={_0x2a0481:0x14d,_0x7caea7:0x149,_0x34022a:0x153,_0x46de52:0x11d,_0x26c240:0xff},_0x2a4691=_0x355512;if(this[_0x2a4691(_0x52794b._0x2a0481)]){const _0x227583=this['canvas'];_0x227583['style']['position']='absolute',_0x227583[_0x2a4691(_0x52794b._0x7caea7)][_0x2a4691(_0x52794b._0x34022a)]='0px',_0x227583[_0x2a4691(0x149)]['left']=_0x2a4691(0x111),_0x227583[_0x2a4691(_0x52794b._0x46de52)]=parseInt(this[_0x2a4691(_0x52794b._0x26c240)][_0x2a4691(0x14d)]['width']),_0x227583[_0x2a4691(0x12d)]=parseInt(this[_0x2a4691(0xff)]['canvas']['height']),_0x227583['style']['width']=this['_map'][_0x2a4691(_0x52794b._0x2a0481)]['style']['width'],_0x227583['style']['height']=this[_0x2a4691(0xff)]['canvas'][_0x2a4691(0x149)][_0x2a4691(0x12d)];}}['getRectangle'](_0x4580b6){const _0x3b797c={_0x36a12a:0x15b,_0x3af2b5:0x101},_0x56b1f1=_0x355512;if(!this[_0x56b1f1(0x14e)]||!this['dataSet'][_0x56b1f1(_0x3b797c._0x36a12a)])return;const _0x386a26=mars3d__namespace['Util'][_0x56b1f1(0x128)]({'type':_0x56b1f1(_0x3b797c._0x3af2b5),'features':this['dataSet']['_data']});if(!_0x386a26)return;return _0x4580b6!==null&&_0x4580b6!==void 0x0&&_0x4580b6['isFormat']?_0x386a26:Cesium['Rectangle']['fromDegrees'](_0x386a26['xmin'],_0x386a26[_0x56b1f1(0x12f)],_0x386a26['xmax'],_0x386a26[_0x56b1f1(0x144)]);}['_onMapClick'](_0x4e62bf){const _0xa42e4c={_0x5af64c:0x116,_0x12b26d:0x156},_0x8c8257=_0x355512;this[_0x8c8257(_0xa42e4c._0x5af64c)]=_0x4e62bf,this[_0x8c8257(0x14c)]&&this['_mapVRenderer']['clickEvent'](_0x4e62bf[_0x8c8257(_0xa42e4c._0x12b26d)],_0x4e62bf);}['_onMapMouseMove'](_0x16ae57){const _0x173b8d={_0x32ff45:0x116,_0x32be44:0x156},_0x35c9f1=_0x355512;this[_0x35c9f1(_0x173b8d._0x32ff45)]=_0x16ae57,this['_mapVRenderer']&&this[_0x35c9f1(0x14c)]['mousemoveEvent'](_0x16ae57[_0x35c9f1(_0x173b8d._0x32be44)],_0x16ae57);}['on'](_0x391f39,_0x66b933,_0x582730){const _0x1dc3e6={_0x67a62f:0x10c,_0x46df52:0x110,_0x50ce1f:0x139,_0x26dfa5:0xff},_0x2cc1ff=_0x355512;this[_0x2cc1ff(0x132)][_0x2cc1ff(_0x1dc3e6._0x67a62f)]=this[_0x2cc1ff(0x132)]['methods']||{};if(_0x391f39===mars3d__namespace[_0x2cc1ff(_0x1dc3e6._0x46df52)][_0x2cc1ff(_0x1dc3e6._0x50ce1f)])this['options']['methods']['click']=_0x37f607=>{const _0xb511a=_0x2cc1ff;_0x37f607&&_0x66b933['bind'](_0x582730)({...this[_0xb511a(0x116)],'layer':this,'data':_0x37f607});},this[_0x2cc1ff(_0x1dc3e6._0x26dfa5)]['on'](mars3d__namespace[_0x2cc1ff(0x110)][_0x2cc1ff(0x139)],this['_onMapClick'],this);else _0x391f39===mars3d__namespace['EventType']['mouseMove']&&(this['options']['methods']['mousemove']=_0x5df9b8=>{const _0x5376fa=_0x2cc1ff;_0x5df9b8&&_0x66b933[_0x5376fa(0x14a)](_0x582730)({...this['_cache_event'],'layer':this,'data':_0x5df9b8});},this[_0x2cc1ff(0xff)]['on'](mars3d__namespace[_0x2cc1ff(0x110)]['mouseMove'],this['_onMapMouseMove'],this));return this;}[_0x355512(0x115)](_0x10f717,_0x58f5c8){const _0x28caa5={_0x202fea:0x11e,_0x1feec0:0x132},_0x2bf70d=_0x355512;if(_0x10f717==='click'){var _0x16f8a2;this[_0x2bf70d(0xff)]['off'](_0x10f717,this['_onMapClick'],this),(_0x16f8a2=this['options']['methods'])!==null&&_0x16f8a2!==void 0x0&&_0x16f8a2[_0x2bf70d(_0x28caa5._0x202fea)]&&delete this['options']['methods']['click'];}else{if(_0x10f717==='mouseMove'){var _0x9e3b73;this[_0x2bf70d(0xff)][_0x2bf70d(0x115)](_0x10f717,this['_onMapMouseMove'],this),(_0x9e3b73=this['options']['methods'])!==null&&_0x9e3b73!==void 0x0&&_0x9e3b73['mousemove']&&delete this[_0x2bf70d(_0x28caa5._0x1feec0)]['methods'][_0x2bf70d(0x11e)];}}return this;}}mars3d__namespace[_0x355512(0x148)]['register'](_0x355512(0x104),MapVLayer),mars3d__namespace[_0x355512(0x10a)]['MapVLayer']=MapVLayer,mars3d__namespace['mapv']=mapv__namespace,exports[_0x355512(0x157)]=MapVLayer,Object['keys'](mapv)[_0x355512(0x107)](function(_0x38f02c){const _0x3cc35c={_0x51ade3:0x152},_0xc3ee80=_0x355512;if(_0x38f02c!==_0xc3ee80(_0x3cc35c._0x51ade3)&&!exports['hasOwnProperty'](_0x38f02c))Object['defineProperty'](exports,_0x38f02c,{'enumerable':!![],'get':function(){return mapv[_0x38f02c];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]}); | ||
'use strict';const _0x17fe2d=_0xca22;(function(_0x3b6e79,_0x384c61){const _0x4a3e57={_0x3ca348:0x1e6,_0x3eef9e:0x1df,_0xdebeef:0x1e5,_0x18951d:0x1bc,_0x1c94a7:0x1b9},_0x5802e1=_0xca22,_0xe34ed2=_0x3b6e79();while(!![]){try{const _0xa092cf=parseInt(_0x5802e1(_0x4a3e57._0x3ca348))/0x1*(parseInt(_0x5802e1(0x1c6))/0x2)+parseInt(_0x5802e1(_0x4a3e57._0x3eef9e))/0x3*(-parseInt(_0x5802e1(0x1e2))/0x4)+-parseInt(_0x5802e1(0x19d))/0x5+parseInt(_0x5802e1(0x1bf))/0x6+parseInt(_0x5802e1(_0x4a3e57._0xdebeef))/0x7*(-parseInt(_0x5802e1(0x19a))/0x8)+parseInt(_0x5802e1(_0x4a3e57._0x18951d))/0x9*(-parseInt(_0x5802e1(_0x4a3e57._0x1c94a7))/0xa)+parseInt(_0x5802e1(0x19e))/0xb;if(_0xa092cf===_0x384c61)break;else _0xe34ed2['push'](_0xe34ed2['shift']());}catch(_0x6e0ccc){_0xe34ed2['push'](_0xe34ed2['shift']());}}}(_0x28b4,0xc044b));function _interopNamespace(_0xbedbf6){const _0x2c0c40={_0x5d0671:0x1eb},_0x28880d=_0xca22;if(_0xbedbf6&&_0xbedbf6['__esModule'])return _0xbedbf6;var _0x54d60b=Object['create'](null);return _0xbedbf6&&Object['keys'](_0xbedbf6)['forEach'](function(_0xd00404){const _0x1b1008=_0xca22;if(_0xd00404!==_0x1b1008(0x1eb)){var _0x1389fd=Object['getOwnPropertyDescriptor'](_0xbedbf6,_0xd00404);Object['defineProperty'](_0x54d60b,_0xd00404,_0x1389fd[_0x1b1008(0x1d1)]?_0x1389fd:{'enumerable':!![],'get':function(){return _0xbedbf6[_0xd00404];}});}}),_0x54d60b[_0x28880d(_0x2c0c40._0x5d0671)]=_0xbedbf6,_0x54d60b;}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(_0x244c7a,_0x185fae,_0x49b3e1,_0x365a02){const _0x2b88b2={_0x25a26b:0x1cf},_0x2b35b5=_0xca22;super(_0x244c7a,_0x185fae,_0x49b3e1);if(!BaseLayer$1)return;this[_0x2b35b5(0x1de)]=_0x244c7a,this['scene']=_0x244c7a[_0x2b35b5(0x1dc)],this['dataSet']=_0x185fae,_0x49b3e1=_0x49b3e1||{},this['init'](_0x49b3e1),this['argCheck'](_0x49b3e1),this['initDevicePixelRatio'](),this['canvasLayer']=_0x365a02,this['stopAniamation']=!0x1,this[_0x2b35b5(_0x2b88b2._0x25a26b)]=_0x49b3e1[_0x2b35b5(_0x2b88b2._0x25a26b)];}['initDevicePixelRatio'](){const _0x3b2efa=_0xca22;this[_0x3b2efa(0x197)]=window['devicePixelRatio']||0x1;}['addAnimatorEvent'](){}[_0x17fe2d(0x1be)](){const _0x206e18={_0x2f51e1:0x1c2,_0x230995:0x19b},_0x9ef1df=_0x17fe2d,_0x3b1531=this['options']['animation'];this['isEnabledTime']()&&this[_0x9ef1df(_0x206e18._0x2f51e1)]&&(this['steps'][_0x9ef1df(_0x206e18._0x230995)]=_0x3b1531[_0x9ef1df(0x1ec)]['start']);}[_0x17fe2d(0x191)](){const _0x18d0e6={_0x8c5168:0x1c2},_0x374b39=_0x17fe2d;this['isEnabledTime']()&&this[_0x374b39(_0x18d0e6._0x8c5168)];}[_0x17fe2d(0x1af)](){const _0x153493=_0x17fe2d;return this['canvasLayer']['canvas'][_0x153493(0x1af)](this['context']);}['init'](_0x1d940d){const _0x3c28c6={_0x1f9ba9:0x1b3,_0x49b282:0x1ea,_0x3e4d52:0x1d4,_0x498694:0x1cd,_0x1d43ee:0x1ef,_0x545be6:0x1ef},_0x15bfde=_0x17fe2d;this[_0x15bfde(_0x3c28c6._0x1f9ba9)]=_0x1d940d,this[_0x15bfde(_0x3c28c6._0x49b282)](_0x1d940d),this['context']=this[_0x15bfde(_0x3c28c6._0x1f9ba9)][_0x15bfde(_0x3c28c6._0x3e4d52)]||'2d',Cesium$1[_0x15bfde(0x1b1)](this['options'][_0x15bfde(0x1a3)])&&this[_0x15bfde(_0x3c28c6._0x498694)]&&this['canvasLayer'][_0x15bfde(_0x3c28c6._0x1d43ee)]&&this[_0x15bfde(0x1cd)][_0x15bfde(_0x3c28c6._0x545be6)](this['options']['zIndex']),this['initAnimator']();}[_0x17fe2d(0x1d2)](_0x3ba37f){const _0x1c06ca={_0x2c7de5:0x1cd,_0x24c1f5:0x1af,_0x5cdb4e:0x190,_0x456638:0x1e4,_0x4e2265:0x194,_0x3da82a:0x1d4,_0x500f65:0x18f,_0x4abc23:0x1b3,_0x1c45c1:0x1a7,_0x2aff0f:0x1b5},_0xdc4071={_0xcfc0e1:0x1ab,_0x4ec5a0:0x1d0},_0x27efe7=_0x17fe2d,_0x12face=this['scene'];if(this[_0x27efe7(_0x1c06ca._0x2c7de5)]&&!this[_0x27efe7(0x1c4)]){const _0x486a95=this['options']['animation'],_0x1a6f5b=this[_0x27efe7(_0x1c06ca._0x24c1f5)]();if(this['isEnabledTime']()){if(void 0x0===_0x3ba37f)return void this['clear'](_0x1a6f5b);this['context']==='2d'&&(_0x1a6f5b['save'](),_0x1a6f5b['globalCompositeOperation']=_0x27efe7(_0x1c06ca._0x5cdb4e),_0x1a6f5b[_0x27efe7(_0x1c06ca._0x456638)]='rgba(0,\x200,\x200,\x20.1)',_0x1a6f5b['fillRect'](0x0,0x0,_0x1a6f5b[_0x27efe7(0x194)]['width'],_0x1a6f5b[_0x27efe7(_0x1c06ca._0x4e2265)]['height']),_0x1a6f5b['restore']());}else this['clear'](_0x1a6f5b);if(this[_0x27efe7(_0x1c06ca._0x3da82a)]==='2d')for(const _0x5df9d7 in this['options']){_0x1a6f5b[_0x5df9d7]=this['options'][_0x5df9d7];}else _0x1a6f5b['clear'](_0x1a6f5b['COLOR_BUFFER_BIT']);const _0x433917={'transferCoordinate':function(_0x318f66){const _0x4ef0eb=_0x27efe7,_0x5d55a9=null;let _0x5415b6=_0x12face[_0x4ef0eb(_0xdc4071._0xcfc0e1)];_0x12face['mapvAutoHeight']&&(_0x5415b6=_0x12face['getHeight'](Cesium$1['Cartographic'][_0x4ef0eb(_0xdc4071._0x4ec5a0)](_0x318f66[0x0],_0x318f66[0x1])));const _0x93d1fa=Cesium$1['Cartesian3'][_0x4ef0eb(_0xdc4071._0x4ec5a0)](_0x318f66[0x0],_0x318f66[0x1],_0x5415b6);if(!_0x93d1fa)return _0x5d55a9;const _0x57a8a2=_0x12face['cartesianToCanvasCoordinates'](_0x93d1fa);if(!_0x57a8a2)return _0x5d55a9;if(_0x12face[_0x4ef0eb(0x1d3)]&&_0x12face['mode']===Cesium$1[_0x4ef0eb(0x1e0)]['SCENE3D']){const _0x448fc7=new Cesium$1['EllipsoidalOccluder'](_0x12face['globe']['ellipsoid'],_0x12face[_0x4ef0eb(0x1a0)]['positionWC']),_0x44498a=_0x448fc7['isPointVisible'](_0x93d1fa);if(!_0x44498a)return _0x5d55a9;}return[_0x57a8a2['x'],_0x57a8a2['y']];}};void 0x0!==_0x3ba37f&&(_0x433917[_0x27efe7(_0x1c06ca._0x500f65)]=function(_0x1c704b){const _0x37e04a=_0x486a95['trails']||0xa;return!!(_0x3ba37f&&_0x1c704b['time']>_0x3ba37f-_0x37e04a&&_0x1c704b['time']<_0x3ba37f);});const _0x448235=this['dataSet']['get'](_0x433917);this['processData'](_0x448235),this['options']['unit']==='m'&&this[_0x27efe7(_0x1c06ca._0x4abc23)]['size'],this['options']['_size']=this['options']['size'];const _0x5db98f=_0x12face['cartesianToCanvasCoordinates'](Cesium$1['Cartesian3']['fromDegrees'](0x0,0x0));if(!_0x5db98f)return;this['drawContext'](_0x1a6f5b,new mapv__namespace[(_0x27efe7(_0x1c06ca._0x1c45c1))](_0x448235),this['options'],_0x5db98f),this[_0x27efe7(0x1b3)][_0x27efe7(0x1b5)]&&this['options'][_0x27efe7(_0x1c06ca._0x2aff0f)](_0x3ba37f);}}[_0x17fe2d(0x1c7)](_0x3e2fed,_0x2b0b73){let _0x32afe8=_0x3e2fed;_0x32afe8&&_0x32afe8['get']&&(_0x32afe8=_0x32afe8['get']()),void 0x0!==_0x32afe8&&this['dataSet']['set'](_0x32afe8),super['update']({'options':_0x2b0b73});}['addData'](_0x1d264d,_0x4698aa){const _0x4e9f55={_0x2ba95c:0x1c5,_0x4a4bf8:0x18e},_0x2bfb0b=_0x17fe2d;let _0x4dc268=_0x1d264d;_0x1d264d&&_0x1d264d['get']&&(_0x4dc268=_0x1d264d[_0x2bfb0b(0x1d1)]()),this[_0x2bfb0b(0x1e7)][_0x2bfb0b(_0x4e9f55._0x2ba95c)](_0x4dc268),this[_0x2bfb0b(_0x4e9f55._0x4a4bf8)]({'options':_0x4698aa});}[_0x17fe2d(0x19c)](){return this['dataSet'];}['removeData'](_0x3702b9){const _0x4b5778={_0x36aac9:0x1e7},_0xb66293=_0x17fe2d;if(this['dataSet']){const _0x599797=this[_0xb66293(_0x4b5778._0x36aac9)]['get']({'filter':function(_0x35cee2){return _0x3702b9==null||typeof _0x3702b9!=='function'||!_0x3702b9(_0x35cee2);}});this['dataSet']['set'](_0x599797),this['update']({'options':null});}}['clearData'](){this['dataSet']&&this['dataSet']['clear'](),this['update']({'options':null});}['draw'](){const _0x3dd7b9={_0x3d9a7a:0x1cd},_0x1e9ddf=_0x17fe2d;this[_0x1e9ddf(_0x3dd7b9._0x3d9a7a)][_0x1e9ddf(0x1b0)]();}['clear'](_0x2a52e4){const _0x3df669={_0x40538b:0x1db},_0x54c23a=_0x17fe2d;_0x2a52e4&&_0x2a52e4[_0x54c23a(0x1e1)]&&_0x2a52e4['clearRect'](0x0,0x0,_0x2a52e4['canvas'][_0x54c23a(_0x3df669._0x40538b)],_0x2a52e4['canvas']['height']);}['destroy'](){const _0x1e42ab={_0x5f2777:0x1c2},_0x1c0e63=_0x17fe2d;this['clear'](this['getContext']()),this['clearData'](),this[_0x1c0e63(_0x1e42ab._0x5f2777)]&&this[_0x1c0e63(_0x1e42ab._0x5f2777)]['stop'](),this['animator']=null,this['canvasLayer']=null;}}function _0xca22(_0x335d99,_0x48e4b1){const _0x28b40d=_0x28b4();return _0xca22=function(_0xca221f,_0x11fb85){_0xca221f=_0xca221f-0x18c;let _0x1cd9bd=_0x28b40d[_0xca221f];return _0x1cd9bd;},_0xca22(_0x335d99,_0x48e4b1);}if(mapv__namespace!==null&&mapv__namespace!==void 0x0&&mapv__namespace['DataSet'])mapv__namespace['DataSet'][_0x17fe2d(0x1f2)]['transferCoordinate']=function(_0x2bb2b2,_0x34ff68,_0x49745d,_0x1db36f){const _0x5ead4f={_0x4be4d8:0x1f0,_0x4bac16:0x1c9},_0x49249b={_0x5956df:0x1e9},_0x10a2fa=_0x17fe2d;_0x1db36f=_0x1db36f||'_coordinates',_0x49745d=_0x49745d||'coordinates';for(let _0x345913=0x0;_0x345913<_0x2bb2b2[_0x10a2fa(0x1e9)];_0x345913++){const _0x38281e=_0x2bb2b2[_0x345913]['geometry'],_0x20d34c=_0x38281e[_0x49745d];switch(_0x38281e['type']){case'Point':{const _0x496cfb=_0x34ff68(_0x20d34c);_0x496cfb?_0x38281e[_0x1db36f]=_0x496cfb:_0x38281e[_0x1db36f]=[-0x3e7,-0x3e7];}break;case'LineString':{const _0x35f8b5=[];for(let _0x38824e=0x0;_0x38824e<_0x20d34c['length'];_0x38824e++){const _0x2bbe0e=_0x34ff68(_0x20d34c[_0x38824e]);_0x2bbe0e&&_0x35f8b5['push'](_0x2bbe0e);}_0x38281e[_0x1db36f]=_0x35f8b5;}break;case _0x10a2fa(_0x5ead4f._0x4be4d8):case'Polygon':{const _0x2605ac=_0x6ff858(_0x20d34c);_0x38281e[_0x1db36f]=_0x2605ac;}break;case _0x10a2fa(0x193):{const _0x4ea035=[];for(let _0x183f5d=0x0;_0x183f5d<_0x20d34c['length'];_0x183f5d++){const _0xcf3f15=_0x6ff858(_0x20d34c[_0x183f5d]);_0xcf3f15[_0x10a2fa(0x1e9)]>0x0&&_0x4ea035[_0x10a2fa(_0x5ead4f._0x4bac16)](_0xcf3f15);}_0x38281e[_0x1db36f]=_0x4ea035;}break;}}function _0x6ff858(_0x5a9038){const _0x57b792=_0x10a2fa,_0x4d72d3=[];for(let _0x3910fd=0x0;_0x3910fd<_0x5a9038['length'];_0x3910fd++){const _0x214ff6=_0x5a9038[_0x3910fd],_0x36f644=[];for(let _0x4e9b73=0x0;_0x4e9b73<_0x214ff6[_0x57b792(_0x49249b._0x5956df)];_0x4e9b73++){const _0x1cbb40=_0x34ff68(_0x214ff6[_0x4e9b73]);_0x1cbb40&&_0x36f644[_0x57b792(0x1c9)](_0x1cbb40);}_0x36f644['length']>0x0&&_0x4d72d3['push'](_0x36f644);}return _0x4d72d3;}return _0x2bb2b2;};else throw new Error('请引入\x20mapv\x20库\x20');const Cesium=mars3d__namespace[_0x17fe2d(0x1a8)],BaseLayer=mars3d__namespace['layer'][_0x17fe2d(0x1bb)];function _0x28b4(){const _0xaa598a=['height','fillStyle','344337DniJCc','5578LFRXpe','dataSet','Rectangle','length','initDataRange','default','stepsRange','methods','DomUtil','setZIndex','MultiLineString','postRender','prototype','parentElement','_mountedHook','update','filter','destination-out','animatorMoveendEvent','Util','MultiPolygon','canvas','_addedHook','unbindEvent','devicePixelRatio','container','forEach','8FNJXvp','step','getData','6239795TNzzNN','18511911pNIqYt','_reset','camera','_onMoveStartEvent','_map','zIndex','mapvAutoHeight','initDevicePixelRatio','_createCanvas','DataSet','Cesium','_setOptionsHook','LayerUtil','mapvFixedHeight','top','windowPosition','clearData','getContext','draw','defined','pointerEvents','options','off','updateCallback','render','cameraMoveEnd','remove','28170bKqwWT','_dataCache','BaseLayer','3141jKRbGw','defineProperty','animatorMovestartEvent','7348158hnoLcy','getExtentByGeoJSON','_onMapClick','animator','resize','stopAniamation','add','118aiUXeV','updateData','_onMoveEndEvent','push','_onMapMouseMove','style','_mapVRenderer','canvasLayer','bind','animation','fromDegrees','get','_canvasUpdate','mapvDepthTest','context','click','EventType','mapv','MapVLayer','mousemove','0px','width','scene','display','map','21MZfNLx','SceneMode','clearRect','96504dzodhQ'];_0x28b4=function(){return _0xaa598a;};return _0x28b4();}class MapVLayer extends BaseLayer{constructor(_0x136ed4,_0x50bc5d){const _0x1ee640={_0x49d29a:0x1a7},_0x5c1317=_0x17fe2d;super(_0x136ed4),this['_pointerEvents']=this[_0x5c1317(0x1b3)][_0x5c1317(0x1b2)],this['dataSet']=_0x50bc5d||new mapv__namespace[(_0x5c1317(_0x1ee640._0x49d29a))](_0x136ed4['data']),this['canvas']=null;}get[_0x17fe2d(0x1b2)](){return this['_pointerEvents'];}set['pointerEvents'](_0x5b5c12){const _0x150cfe={_0x50ef2c:0x194},_0x56a8df=_0x17fe2d;this['_pointerEvents']=_0x5b5c12,this[_0x56a8df(_0x150cfe._0x50ef2c)]&&(_0x5b5c12?this['canvas']['style']['pointerEvents']='all':this['canvas']['style']['pointerEvents']='none');}['_showHook'](_0x4919d5){const _0xbba9ec={_0x27997d:0x1dd},_0x338757=_0x17fe2d;_0x4919d5?this['canvas']['style'][_0x338757(_0xbba9ec._0x27997d)]='block':this['canvas']['style']['display']='none';}[_0x17fe2d(0x18d)](){const _0x534322={_0x4394bc:0x1d3,_0x369d4e:0x1b3,_0x187c7f:0x1ab},_0x5e0ad9=_0x17fe2d;this['_map']['scene'][_0x5e0ad9(_0x534322._0x4394bc)]=this[_0x5e0ad9(_0x534322._0x369d4e)]['depthTest']??!![],this['_map']['scene'][_0x5e0ad9(0x1a4)]=this['options']['clampToGround']??![],this['_map'][_0x5e0ad9(0x1dc)][_0x5e0ad9(_0x534322._0x187c7f)]=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x273fda={_0x25364e:0x1e7,_0xde98f8:0x1e9,_0x25fc13:0x1ba,_0x1457ac:0x1b3},_0x5cc822=_0x17fe2d;this[_0x5cc822(_0x273fda._0x25364e)]&&(!this['dataSet']['_data']||this[_0x5cc822(_0x273fda._0x25364e)]['_data'][_0x5cc822(_0x273fda._0xde98f8)]===0x0)&&(this['dataSet']['_data']=[]['concat'](this['dataSet'][_0x5cc822(_0x273fda._0x25fc13)])),this['_mapVRenderer']=new MapVRenderer(this[_0x5cc822(0x1a2)],this['dataSet'],this[_0x5cc822(_0x273fda._0x1457ac)],this),this['initDevicePixelRatio'](),this['canvas']=this['_createCanvas'](),this[_0x5cc822(0x1b6)]=this['render'][_0x5cc822(0x1ce)](this),this['bindEvent'](),this['_reset']();}['_removedHook'](){const _0x3edd18={_0x515b4b:0x196,_0x2824b9:0x1cc},_0x5397db=_0x17fe2d;this[_0x5397db(_0x3edd18._0x515b4b)](),this['_mapVRenderer']&&(this['_mapVRenderer']['destroy'](),this[_0x5397db(_0x3edd18._0x2824b9)]=null),this[_0x5397db(0x194)][_0x5397db(0x18c)]['removeChild'](this[_0x5397db(0x194)]);}[_0x17fe2d(0x1a5)](){const _0x1c1f7d={_0x43e27f:0x197},_0x927dc1=_0x17fe2d;this[_0x927dc1(_0x1c1f7d._0x43e27f)]=window['devicePixelRatio']||0x1;}['bindEvent'](){const _0x141f14={_0x2511b1:0x1a2,_0x3ad47d:0x1d5},_0x5f38d=_0x17fe2d;var _0x47e3b9,_0x502f47;this['_map']['on'](mars3d__namespace['EventType']['mouseDown'],this['_onMoveStartEvent'],this),this[_0x5f38d(_0x141f14._0x2511b1)]['on'](mars3d__namespace['EventType']['cameraMoveStart'],this['_onMoveStartEvent'],this),this[_0x5f38d(0x1a2)]['on'](mars3d__namespace['EventType']['cameraMoveEnd'],this[_0x5f38d(0x1c8)],this),(_0x47e3b9=this['options'])!==null&&_0x47e3b9!==void 0x0&&(_0x47e3b9=_0x47e3b9['methods'])!==null&&_0x47e3b9!==void 0x0&&_0x47e3b9['click']&&this['_map']['on'](mars3d__namespace['EventType'][_0x5f38d(_0x141f14._0x3ad47d)],this[_0x5f38d(0x1c1)],this),(_0x502f47=this['options'])!==null&&_0x502f47!==void 0x0&&(_0x502f47=_0x502f47['methods'])!==null&&_0x502f47!==void 0x0&&_0x502f47['mousemove']&&this['_map']['on'](mars3d__namespace['EventType']['mouseMove'],this['_onMapMouseMove'],this);}[_0x17fe2d(0x196)](){const _0x593d72={_0x184bd3:0x1b7,_0x514263:0x1c8,_0x36ba83:0x1f1,_0x4de2d3:0x1a2},_0x354ef9=_0x17fe2d;var _0x448d00,_0x4938ab;this['_map']['off'](mars3d__namespace['EventType']['mouseDown'],this['_onMoveStartEvent'],this),this['_map'][_0x354ef9(0x1b4)](mars3d__namespace['EventType']['cameraMoveStart'],this[_0x354ef9(0x1a1)],this),this['_map']['off'](mars3d__namespace['EventType'][_0x354ef9(_0x593d72._0x184bd3)],this[_0x354ef9(_0x593d72._0x514263)],this),this['_map']['off'](mars3d__namespace['EventType'][_0x354ef9(_0x593d72._0x36ba83)],this['_reset'],this),(_0x448d00=this[_0x354ef9(0x1b3)])!==null&&_0x448d00!==void 0x0&&(_0x448d00=_0x448d00['methods'])!==null&&_0x448d00!==void 0x0&&_0x448d00['click']&&this[_0x354ef9(0x1a2)]['off'](mars3d__namespace[_0x354ef9(0x1d6)][_0x354ef9(0x1d5)],this[_0x354ef9(0x1c1)],this),(_0x4938ab=this['options'])!==null&&_0x4938ab!==void 0x0&&(_0x4938ab=_0x4938ab[_0x354ef9(0x1ed)])!==null&&_0x4938ab!==void 0x0&&_0x4938ab['mousemove']&&this[_0x354ef9(_0x593d72._0x4de2d3)]['off'](mars3d__namespace['EventType']['mouseMove'],this['_onMapMouseMove'],this);}['_onMoveStartEvent'](){const _0x5f122c={_0x53dad7:0x1cc,_0x19e58e:0x1d6},_0x5dd36f=_0x17fe2d;this[_0x5dd36f(_0x5f122c._0x53dad7)]&&(this['_mapVRenderer']['animatorMovestartEvent'](),this['_map']['off'](mars3d__namespace[_0x5dd36f(_0x5f122c._0x19e58e)]['postRender'],this['_reset'],this),this['_map']['on'](mars3d__namespace['EventType']['postRender'],this[_0x5dd36f(0x19f)],this));}['_onMoveEndEvent'](){const _0x442ab8={_0x59dd8e:0x1a2,_0x104082:0x1d6,_0xe1b73:0x19f},_0x52608b=_0x17fe2d;this['_mapVRenderer']&&(this[_0x52608b(_0x442ab8._0x59dd8e)]['off'](mars3d__namespace[_0x52608b(_0x442ab8._0x104082)]['postRender'],this[_0x52608b(_0x442ab8._0xe1b73)],this),this['_mapVRenderer']['animatorMoveendEvent'](),this[_0x52608b(0x19f)]());}[_0x17fe2d(0x1a9)](_0x511ac4,_0x54f765){const _0x2e586f={_0x475546:0x195},_0x2596c4=_0x17fe2d;this['_removedHook'](),this[_0x2596c4(_0x2e586f._0x475546)]();}['addData'](_0x2b8508){const _0x341053=_0x17fe2d;this['_mapVRenderer']&&this[_0x341053(0x1cc)]['addData'](_0x2b8508,this[_0x341053(0x1b3)]);}['updateData'](_0x311f98){const _0x118587=_0x17fe2d;this['_mapVRenderer']&&this[_0x118587(0x1cc)]['updateData'](_0x311f98,this[_0x118587(0x1b3)]);}['getData'](){const _0x34f627=_0x17fe2d;return this['_mapVRenderer']&&(this['dataSet']=this['_mapVRenderer']['getData']()),this[_0x34f627(0x1e7)];}['removeData'](_0x4785b9){this['_mapVRenderer']&&this['_mapVRenderer']['removeData'](_0x4785b9);}['removeAllData'](){const _0x375e6b=_0x17fe2d;this['_mapVRenderer']&&this['_mapVRenderer'][_0x375e6b(0x1ae)]();}[_0x17fe2d(0x1a6)](){const _0xfd88f9={_0x3b1315:0x198,_0x2227a2:0x1ac,_0x58a5c3:0x194,_0x57a70f:0x1e3},_0x1240f1=_0x17fe2d,_0xa35d3f=mars3d__namespace[_0x1240f1(0x1ee)]['create']('canvas','mars3d-mapv',this['_map'][_0x1240f1(_0xfd88f9._0x3b1315)]);_0xa35d3f['id']=this['id'],_0xa35d3f['style']['position']='absolute',_0xa35d3f['style'][_0x1240f1(_0xfd88f9._0x2227a2)]='0px',_0xa35d3f['style']['left']='0px',_0xa35d3f['width']=parseInt(this['_map']['canvas']['width']),_0xa35d3f[_0x1240f1(0x1e3)]=parseInt(this['_map']['canvas']['height']),_0xa35d3f['style']['width']=this['_map'][_0x1240f1(_0xfd88f9._0x58a5c3)]['style']['width'],_0xa35d3f['style'][_0x1240f1(_0xfd88f9._0x57a70f)]=this['_map']['canvas']['style']['height'],_0xa35d3f[_0x1240f1(0x1cb)]['pointerEvents']=this['_pointerEvents']?'auto':'none',_0xa35d3f['style']['zIndex']=this['options']['zIndex']??0x9;if(this['options']['context']==='2d'){const _0x4ed137=this['devicePixelRatio'];_0xa35d3f['getContext'](this['options']['context'])['scale'](_0x4ed137,_0x4ed137);}return _0xa35d3f;}[_0x17fe2d(0x19f)](){this['resize'](),this['render']();}['draw'](){this['_reset']();}[_0x17fe2d(0x1b8)](){const _0x46fb7d=_0x17fe2d;this['_mapVRenderer']&&(this[_0x46fb7d(0x1cc)]['destroy'](),this['_mapVRenderer']=null),this['canvas']['parentElement']['removeChild'](this[_0x46fb7d(0x194)]);}['render'](){const _0xe079d0={_0x48eed5:0x1cc},_0x16c16f=_0x17fe2d;this[_0x16c16f(_0xe079d0._0x48eed5)]['_canvasUpdate']();}[_0x17fe2d(0x1c3)](){const _0x502eda={_0x12f628:0x1da,_0x4f4fd9:0x194,_0x215f53:0x1cb,_0x34f99f:0x1e3},_0xbfe63f=_0x17fe2d;if(this['canvas']){const _0x48ab8c=this['canvas'];_0x48ab8c['style']['position']='absolute',_0x48ab8c['style']['top']='0px',_0x48ab8c['style']['left']=_0xbfe63f(_0x502eda._0x12f628),_0x48ab8c[_0xbfe63f(0x1db)]=parseInt(this['_map']['canvas'][_0xbfe63f(0x1db)]),_0x48ab8c['height']=parseInt(this[_0xbfe63f(0x1a2)]['canvas']['height']),_0x48ab8c['style']['width']=this['_map'][_0xbfe63f(_0x502eda._0x4f4fd9)][_0xbfe63f(0x1cb)]['width'],_0x48ab8c[_0xbfe63f(_0x502eda._0x215f53)]['height']=this[_0xbfe63f(0x1a2)]['canvas']['style'][_0xbfe63f(_0x502eda._0x34f99f)];}}['getRectangle'](_0x20c324){const _0x344087={_0x3f1a8e:0x1c0},_0x20ee15=_0x17fe2d;if(!this[_0x20ee15(0x1e7)]||!this['dataSet']['_data'])return;const _0x3122e6=mars3d__namespace[_0x20ee15(0x192)][_0x20ee15(_0x344087._0x3f1a8e)]({'type':'FeatureCollection','features':this['dataSet']['_data']});if(!_0x3122e6)return;return _0x20c324!==null&&_0x20c324!==void 0x0&&_0x20c324['isFormat']?_0x3122e6:Cesium[_0x20ee15(0x1e8)]['fromDegrees'](_0x3122e6['xmin'],_0x3122e6['ymin'],_0x3122e6['xmax'],_0x3122e6['ymax']);}[_0x17fe2d(0x1c1)](_0x2b8018){const _0x54f94f={_0x3025f6:0x1cc},_0x4f27b9=_0x17fe2d;this['_cache_event']=_0x2b8018,this[_0x4f27b9(0x1cc)]&&this[_0x4f27b9(_0x54f94f._0x3025f6)]['clickEvent'](_0x2b8018['windowPosition'],_0x2b8018);}[_0x17fe2d(0x1ca)](_0x2d3bec){const _0x470ccb={_0x2cdf7d:0x1ad},_0x2b4299=_0x17fe2d;this['_cache_event']=_0x2d3bec,this['_mapVRenderer']&&this['_mapVRenderer']['mousemoveEvent'](_0x2d3bec[_0x2b4299(_0x470ccb._0x2cdf7d)],_0x2d3bec);}['on'](_0xd267ad,_0x119924,_0x38e690){const _0x19dea2={_0x190890:0x1d5,_0x5b6714:0x1b3},_0x40402b=_0x17fe2d;this[_0x40402b(0x1b3)]['methods']=this['options']['methods']||{};if(_0xd267ad===mars3d__namespace['EventType'][_0x40402b(_0x19dea2._0x190890)])this['options']['methods']['click']=_0x53c231=>{const _0x39caaa=_0x40402b;_0x53c231&&_0x119924[_0x39caaa(0x1ce)](_0x38e690)({...this['_cache_event'],'layer':this,'data':_0x53c231});},this['_map']['on'](mars3d__namespace['EventType']['click'],this['_onMapClick'],this);else _0xd267ad===mars3d__namespace['EventType']['mouseMove']&&(this[_0x40402b(_0x19dea2._0x5b6714)]['methods'][_0x40402b(0x1d9)]=_0x1d74eb=>{_0x1d74eb&&_0x119924['bind'](_0x38e690)({...this['_cache_event'],'layer':this,'data':_0x1d74eb});},this[_0x40402b(0x1a2)]['on'](mars3d__namespace[_0x40402b(0x1d6)]['mouseMove'],this['_onMapMouseMove'],this));return this;}['off'](_0x4249ac,_0x13a75a){const _0x2fa915=_0x17fe2d;if(_0x4249ac==='click'){var _0x51e661;this['_map']['off'](_0x4249ac,this['_onMapClick'],this),(_0x51e661=this['options']['methods'])!==null&&_0x51e661!==void 0x0&&_0x51e661['mousemove']&&delete this['options']['methods']['click'];}else{if(_0x4249ac==='mouseMove'){var _0x446b49;this['_map']['off'](_0x4249ac,this['_onMapMouseMove'],this),(_0x446b49=this['options'][_0x2fa915(0x1ed)])!==null&&_0x446b49!==void 0x0&&_0x446b49['mousemove']&&delete this[_0x2fa915(0x1b3)][_0x2fa915(0x1ed)]['mousemove'];}}return this;}}mars3d__namespace[_0x17fe2d(0x1aa)]['register'](_0x17fe2d(0x1d7),MapVLayer),mars3d__namespace['layer'][_0x17fe2d(0x1d8)]=MapVLayer,mars3d__namespace[_0x17fe2d(0x1d7)]=mapv__namespace,exports['MapVLayer']=MapVLayer,Object['keys'](mapv)[_0x17fe2d(0x199)](function(_0x32e02a){if(_0x32e02a!=='default'&&!exports['hasOwnProperty'](_0x32e02a))Object['defineProperty'](exports,_0x32e02a,{'enumerable':!![],'get':function(){return mapv[_0x32e02a];}});}),Object[_0x17fe2d(0x1bd)](exports,'__esModule',{'value':!![]}); | ||
})); |
{ | ||
"name": "mars3d-mapv", | ||
"version": "3.7.4", | ||
"version": "3.7.5", | ||
"description": "Mars3D平台插件,结合mapv可视化功能插件", | ||
@@ -13,3 +13,3 @@ "main": "dist/mars3d-mapv.js", | ||
"devDependencies": { | ||
"mars3d": "~3.7.4" | ||
"mars3d": "~3.7.5" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26690
101