mars3d-mapv 3.6.5 → 3.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Mars3D平台插件,结合mapv可视化功能插件 mars3d-mapv
3
3
  *
4
- * 版本信息:v3.6.5
5
- * 编译日期:2023-09-11 20:50:20
4
+ * 版本信息:v3.6.6
5
+ * 编译日期:2023-09-19 21:39:48
6
6
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
7
7
  * 使用单位:免费公开版 ,2023-03-17
8
8
  */
@@ -11,5 +11,5 @@
11
11
  typeof define === 'function' && define.amd ? define(['exports', 'mapv', 'mars3d'], factory) :
12
12
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["mars3d-mapv"] = {}, global.mapv, global.mars3d));
13
13
  })(this, (function (exports, mapv, mars3d) {
14
- 'use strict';const _0x22f5c0=_0x1987;(function(_0x55662,_0x1915df){const _0x1f1a85={_0x2c9bac:0x1db,_0xe8e599:0x216,_0x4ed55c:0x1dd,_0x23ee5c:0x1fb,_0x5c9873:0x1e7},_0x458bfb=_0x1987,_0x5f3ec1=_0x55662();while(!![]){try{const _0x5c1b48=-parseInt(_0x458bfb(_0x1f1a85._0x2c9bac))/0x1+-parseInt(_0x458bfb(_0x1f1a85._0xe8e599))/0x2+parseInt(_0x458bfb(0x1e6))/0x3*(-parseInt(_0x458bfb(_0x1f1a85._0x4ed55c))/0x4)+parseInt(_0x458bfb(_0x1f1a85._0x23ee5c))/0x5*(parseInt(_0x458bfb(0x228))/0x6)+parseInt(_0x458bfb(0x1f8))/0x7*(parseInt(_0x458bfb(0x1f9))/0x8)+-parseInt(_0x458bfb(0x1f7))/0x9+parseInt(_0x458bfb(_0x1f1a85._0x5c9873))/0xa;if(_0x5c1b48===_0x1915df)break;else _0x5f3ec1['push'](_0x5f3ec1['shift']());}catch(_0x210cb3){_0x5f3ec1['push'](_0x5f3ec1['shift']());}}}(_0x7b66,0xd3381));function _interopNamespace(_0x128f33){const _0x1d4d51={_0x585a51:0x1ee};if(_0x128f33&&_0x128f33['__esModule'])return _0x128f33;var _0x3338bd=Object['create'](null);return _0x128f33&&Object['keys'](_0x128f33)['forEach'](function(_0x25894f){const _0x22fe4a=_0x1987;if(_0x25894f!==_0x22fe4a(_0x1d4d51._0x585a51)){var _0x5eab15=Object['getOwnPropertyDescriptor'](_0x128f33,_0x25894f);Object['defineProperty'](_0x3338bd,_0x25894f,_0x5eab15['get']?_0x5eab15:{'enumerable':!![],'get':function(){return _0x128f33[_0x25894f];}});}}),_0x3338bd['default']=_0x128f33,_0x3338bd;}var mapv__namespace=_interopNamespace(mapv),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace['Cesium'],baiduMapLayer=mapv__namespace?mapv__namespace[_0x22f5c0(0x20a)]:null,BaseLayer$1=baiduMapLayer?baiduMapLayer[_0x22f5c0(0x229)]:Function;class MapVRenderer extends BaseLayer$1{constructor(_0x3bb0db,_0x35dc90,_0x174054,_0x560f8c){const _0x474b39={_0x27c56c:0x201},_0xdc2149=_0x22f5c0;super(_0x3bb0db,_0x35dc90,_0x174054);if(!BaseLayer$1)return;this['map']=_0x3bb0db,this['scene']=_0x3bb0db['scene'],this[_0xdc2149(0x204)]=_0x35dc90,_0x174054=_0x174054||{},this['init'](_0x174054),this['argCheck'](_0x174054),this['initDevicePixelRatio'](),this[_0xdc2149(_0x474b39._0x27c56c)]=_0x560f8c,this['stopAniamation']=!0x1,this['animation']=_0x174054['animation'];}['initDevicePixelRatio'](){const _0x5af395={_0x2344f8:0x21b},_0x5f5637=_0x22f5c0;this[_0x5f5637(_0x5af395._0x2344f8)]=window[_0x5f5637(0x21b)]||0x1;}[_0x22f5c0(0x1ff)](){}['animatorMovestartEvent'](){const _0x119483=_0x22f5c0,_0x512c8f=this['options']['animation'];this[_0x119483(0x1e5)]()&&this[_0x119483(0x1ea)]&&(this['steps']['step']=_0x512c8f['stepsRange']['start']);}['animatorMoveendEvent'](){this['isEnabledTime']()&&this['animator'];}['getContext'](){const _0x184204=_0x22f5c0;return this[_0x184204(0x201)]['canvas']['getContext'](this['context']);}['init'](_0x194763){const _0x42dc5c={_0x4dd288:0x1e1},_0x30fc8f=_0x22f5c0;this['options']=_0x194763,this['initDataRange'](_0x194763),this['context']=this[_0x30fc8f(0x1e2)][_0x30fc8f(0x223)]||'2d',this['options']['zIndex']&&this[_0x30fc8f(0x201)]&&this['canvasLayer'][_0x30fc8f(_0x42dc5c._0x4dd288)]&&this['canvasLayer']['setZIndex'](this['options']['zIndex']),this['initAnimator']();}['_canvasUpdate'](_0x63f620){const _0x334d28={_0x4346ff:0x20d,_0x251c66:0x204},_0x4cd841={_0x1056ed:0x21f,_0xc939b:0x1f1,_0x507ca8:0x206,_0xc46851:0x1fe},_0x47db7a=_0x22f5c0,_0x5e95f3=this['scene'];if(this['canvasLayer']&&!this[_0x47db7a(0x215)]){const _0x475bbc=this[_0x47db7a(0x1e2)]['animation'],_0x45e380=this['getContext']();if(this['isEnabledTime']()){if(void 0x0===_0x63f620)return void this['clear'](_0x45e380);this['context']==='2d'&&(_0x45e380['save'](),_0x45e380['globalCompositeOperation']='destination-out',_0x45e380[_0x47db7a(_0x334d28._0x4346ff)]=_0x47db7a(0x1e3),_0x45e380['fillRect'](0x0,0x0,_0x45e380[_0x47db7a(0x21a)][_0x47db7a(0x221)],_0x45e380['canvas']['height']),_0x45e380['restore']());}else this['clear'](_0x45e380);if(this['context']==='2d')for(const _0x34e540 in this['options']){_0x45e380[_0x34e540]=this['options'][_0x34e540];}else _0x45e380['clear'](_0x45e380[_0x47db7a(0x217)]);const _0x1e3aa2={'transferCoordinate':function(_0x3816d4){const _0x1a6521=_0x47db7a,_0x2c940c=null;let _0x3c5e89=_0x5e95f3['mapvFixedHeight'];_0x5e95f3['mapvAutoHeight']&&(_0x3c5e89=_0x5e95f3['globe'][_0x1a6521(_0x4cd841._0x1056ed)](Cesium$1['Cartographic']['fromDegrees'](_0x3816d4[0x0],_0x3816d4[0x1])));const _0x4f9618=Cesium$1[_0x1a6521(_0x4cd841._0xc939b)]['fromDegrees'](_0x3816d4[0x0],_0x3816d4[0x1],_0x3c5e89);if(!_0x4f9618)return _0x2c940c;const _0x5014d2=_0x5e95f3['cartesianToCanvasCoordinates'](_0x4f9618);if(!_0x5014d2)return _0x2c940c;if(_0x5e95f3['mapvDepthTest']&&_0x5e95f3['mode']===Cesium$1[_0x1a6521(_0x4cd841._0x507ca8)]['SCENE3D']){const _0x553146=new Cesium$1[(_0x1a6521(0x219))](_0x5e95f3['globe']['ellipsoid'],_0x5e95f3[_0x1a6521(0x1e4)][_0x1a6521(0x1e0)]),_0x1dc14a=_0x553146[_0x1a6521(_0x4cd841._0xc46851)](_0x4f9618);if(!_0x1dc14a)return _0x2c940c;}return[_0x5014d2['x'],_0x5014d2['y']];}};void 0x0!==_0x63f620&&(_0x1e3aa2['filter']=function(_0x446d11){const _0x26fa24=_0x475bbc['trails']||0xa;return!!(_0x63f620&&_0x446d11['time']>_0x63f620-_0x26fa24&&_0x446d11['time']<_0x63f620);});const _0x5556f3=this[_0x47db7a(_0x334d28._0x251c66)]['get'](_0x1e3aa2);this['processData'](_0x5556f3),this['options']['unit']==='m'&&this['options'][_0x47db7a(0x218)],this['options']['_size']=this['options']['size'];const _0x5d91f5=_0x5e95f3['cartesianToCanvasCoordinates'](Cesium$1['Cartesian3'][_0x47db7a(0x211)](0x0,0x0));if(!_0x5d91f5)return;this['drawContext'](_0x45e380,new mapv__namespace['DataSet'](_0x5556f3),this['options'],_0x5d91f5),this[_0x47db7a(0x1e2)]['updateCallback']&&this['options']['updateCallback'](_0x63f620);}}['updateData'](_0x25afd7,_0x5b3aff){const _0x55d851={_0x59cd0b:0x220},_0x4f0555=_0x22f5c0;let _0x4ec434=_0x25afd7;_0x4ec434&&_0x4ec434[_0x4f0555(_0x55d851._0x59cd0b)]&&(_0x4ec434=_0x4ec434['get']()),void 0x0!==_0x4ec434&&this['dataSet']['set'](_0x4ec434),super['update']({'options':_0x5b3aff});}['addData'](_0x1ffbfc,_0x4d0f57){const _0x23898f={_0x25771d:0x220},_0x4ef07e=_0x22f5c0;let _0x2b382a=_0x1ffbfc;_0x1ffbfc&&_0x1ffbfc[_0x4ef07e(_0x23898f._0x25771d)]&&(_0x2b382a=_0x1ffbfc['get']()),this['dataSet']['add'](_0x2b382a),this['update']({'options':_0x4d0f57});}['getData'](){const _0xb3ef9d=_0x22f5c0;return this[_0xb3ef9d(0x204)];}['removeData'](_0x36de5b){if(this['dataSet']){const _0x4b9160=this['dataSet']['get']({'filter':function(_0x3a387e){return _0x36de5b==null||typeof _0x36de5b!=='function'||!_0x36de5b(_0x3a387e);}});this['dataSet']['set'](_0x4b9160),this['update']({'options':null});}}['clearData'](){const _0x5a2d20={_0x478841:0x204},_0x1c23ca=_0x22f5c0;this['dataSet']&&this[_0x1c23ca(_0x5a2d20._0x478841)]['clear'](),this['update']({'options':null});}['draw'](){this['canvasLayer']['draw']();}['clear'](_0x30fcaa){const _0x34fd3f={_0x3cde21:0x21a},_0x2f0f5a=_0x22f5c0;_0x30fcaa&&_0x30fcaa['clearRect']&&_0x30fcaa['clearRect'](0x0,0x0,_0x30fcaa[_0x2f0f5a(_0x34fd3f._0x3cde21)]['width'],_0x30fcaa['canvas']['height']);}['destroy'](){const _0x544226=_0x22f5c0;this['clear'](this['getContext']()),this['clearData'](),this['animator']&&this['animator']['stop'](),this['animator']=null,this[_0x544226(0x201)]=null;}}if(mapv__namespace!==null&&mapv__namespace!==void 0x0&&mapv__namespace['DataSet'])mapv__namespace[_0x22f5c0(0x207)]['prototype']['transferCoordinate']=function(_0x1aee4d,_0x1ea226,_0x12f8b7,_0x56c74f){const _0xee9171={_0x562833:0x225,_0x165d72:0x1f0},_0xe120ff=_0x22f5c0;_0x56c74f=_0x56c74f||'_coordinates',_0x12f8b7=_0x12f8b7||'coordinates';for(let _0x5899c0=0x0;_0x5899c0<_0x1aee4d['length'];_0x5899c0++){const _0x2a0eb7=_0x1aee4d[_0x5899c0]['geometry'],_0x59f240=_0x2a0eb7[_0x12f8b7];switch(_0x2a0eb7['type']){case'Point':{const _0x19f1c3=_0x1ea226(_0x59f240);_0x19f1c3?_0x2a0eb7[_0x56c74f]=_0x19f1c3:_0x2a0eb7[_0x56c74f]=[-0x3e7,-0x3e7];}break;case _0xe120ff(_0xee9171._0x562833):{const _0x570805=[];for(let _0x1fb73b=0x0;_0x1fb73b<_0x59f240['length'];_0x1fb73b++){const _0xff7446=_0x1ea226(_0x59f240[_0x1fb73b]);_0xff7446&&_0x570805['push'](_0xff7446);}_0x2a0eb7[_0x56c74f]=_0x570805;}break;case'MultiLineString':case _0xe120ff(_0xee9171._0x165d72):{const _0xae7717=_0x208128(_0x59f240);_0x2a0eb7[_0x56c74f]=_0xae7717;}break;case'MultiPolygon':{const _0x31895f=[];for(let _0x4a4790=0x0;_0x4a4790<_0x59f240['length'];_0x4a4790++){const _0x4c6f26=_0x208128(_0x59f240[_0x4a4790]);_0x4c6f26['length']>0x0&&_0x31895f['push'](_0x4c6f26);}_0x2a0eb7[_0x56c74f]=_0x31895f;}break;}}function _0x208128(_0x10dc12){const _0x5ee1a1=_0xe120ff,_0x109f2a=[];for(let _0x520b33=0x0;_0x520b33<_0x10dc12['length'];_0x520b33++){const _0x200b93=_0x10dc12[_0x520b33],_0x37de9a=[];for(let _0x8d388f=0x0;_0x8d388f<_0x200b93['length'];_0x8d388f++){const _0x6784de=_0x1ea226(_0x200b93[_0x8d388f]);_0x6784de&&_0x37de9a['push'](_0x6784de);}_0x37de9a['length']>0x0&&_0x109f2a[_0x5ee1a1(0x1d4)](_0x37de9a);}return _0x109f2a;}return _0x1aee4d;};else throw new Error('请引入\x20mapv\x20库\x20');const Cesium=mars3d__namespace[_0x22f5c0(0x20b)],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class MapVLayer extends BaseLayer{constructor(_0x2efd79,_0x7eb168){const _0x56d12e={_0x4b8f99:0x208,_0x52a210:0x207},_0x5ea0c5=_0x22f5c0;super(_0x2efd79),this['_pointerEvents']=this['options'][_0x5ea0c5(_0x56d12e._0x4b8f99)],this[_0x5ea0c5(0x204)]=_0x7eb168||new mapv__namespace[(_0x5ea0c5(_0x56d12e._0x52a210))](_0x2efd79[_0x5ea0c5(0x1ec)]),this['canvas']=null;}get['pointerEvents'](){const _0x17b364={_0x569420:0x20e},_0x16607e=_0x22f5c0;return this[_0x16607e(_0x17b364._0x569420)];}set['pointerEvents'](_0x343678){const _0xf8a20b={_0x116d97:0x21a,_0x31d51e:0x208,_0x481168:0x208},_0x356c27=_0x22f5c0;this['_pointerEvents']=_0x343678,this['canvas']&&(_0x343678?this[_0x356c27(_0xf8a20b._0x116d97)][_0x356c27(0x1f4)][_0x356c27(_0xf8a20b._0x31d51e)]='all':this['canvas'][_0x356c27(0x1f4)][_0x356c27(_0xf8a20b._0x481168)]='none');}['_showHook'](_0x4c6efa){const _0x4e77e0=_0x22f5c0;_0x4c6efa?this['canvas'][_0x4e77e0(0x1f4)]['display']='block':this[_0x4e77e0(0x21a)]['style'][_0x4e77e0(0x1e9)]='none';}[_0x22f5c0(0x227)](){const _0xe9584c={_0x219260:0x21d},_0xa8eac7=_0x22f5c0;this['_map']['scene']['mapvDepthTest']=this['options']['depthTest']??!![],this['_map']['scene']['mapvAutoHeight']=this[_0xa8eac7(0x1e2)]['clampToGround']??![],this[_0xa8eac7(_0xe9584c._0x219260)]['scene']['mapvFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x2183ba={_0xcbf93a:0x1eb,_0x174ea8:0x1da},_0x5e944c=_0x22f5c0;this['dataSet']&&(!this['dataSet'][_0x5e944c(0x1df)]||this['dataSet']['_data']['length']===0x0)&&(this['dataSet']['_data']=[]['concat'](this['dataSet']['_dataCache'])),this['_mapVRenderer']=new MapVRenderer(this['_map'],this[_0x5e944c(0x204)],this['options'],this),this[_0x5e944c(_0x2183ba._0xcbf93a)](),this['canvas']=this['_createCanvas'](),this['render']=this[_0x5e944c(0x224)][_0x5e944c(_0x2183ba._0x174ea8)](this),this['bindEvent'](),this['_reset']();}[_0x22f5c0(0x1d8)](){const _0x561e9b=_0x22f5c0;this['unbindEvent'](),this['_mapVRenderer']&&(this['_mapVRenderer'][_0x561e9b(0x212)](),this[_0x561e9b(0x1ed)]=null),this['canvas']['parentElement']['removeChild'](this[_0x561e9b(0x21a)]);}[_0x22f5c0(0x1eb)](){this['devicePixelRatio']=window['devicePixelRatio']||0x1;}['bindEvent'](){const _0x55aad9={_0x36b9ef:0x1fc},_0x2b8d00=_0x22f5c0;var _0x2cd080,_0x4dab5,_0x20f5ef,_0x3db01c;this['_map']['on'](mars3d__namespace['EventType']['mouseDown'],this['_onMoveStartEvent'],this),this['_map']['on'](mars3d__namespace['EventType'][_0x2b8d00(0x1f5)],this['_onMoveStartEvent'],this),this[_0x2b8d00(0x21d)]['on'](mars3d__namespace['EventType'][_0x2b8d00(0x22a)],this[_0x2b8d00(_0x55aad9._0x36b9ef)],this),(_0x2cd080=this[_0x2b8d00(0x1e2)])!==null&&_0x2cd080!==void 0x0&&(_0x4dab5=_0x2cd080['methods'])!==null&&_0x4dab5!==void 0x0&&_0x4dab5['click']&&this['_map']['on'](mars3d__namespace['EventType']['click'],this['_onMapClick'],this),(_0x20f5ef=this['options'])!==null&&_0x20f5ef!==void 0x0&&(_0x3db01c=_0x20f5ef['methods'])!==null&&_0x3db01c!==void 0x0&&_0x3db01c['mousemove']&&this['_map']['on'](mars3d__namespace['EventType']['mouseMove'],this['_onMapMouseMove'],this);}['unbindEvent'](){const _0x92a5d4={_0x191240:0x21e,_0x155b27:0x1f2,_0x1e4f59:0x1fa,_0x5ba76a:0x209},_0x452c79=_0x22f5c0;var _0x59c74b,_0x2ec96f,_0x525f93,_0x116939;this[_0x452c79(0x21d)]['off'](mars3d__namespace['EventType'][_0x452c79(_0x92a5d4._0x191240)],this[_0x452c79(0x203)],this),this[_0x452c79(0x21d)][_0x452c79(0x1fa)](mars3d__namespace['EventType']['cameraMoveStart'],this['_onMoveStartEvent'],this),this['_map'][_0x452c79(0x1fa)](mars3d__namespace['EventType'][_0x452c79(0x22a)],this['_onMoveEndEvent'],this),this['_map']['off'](mars3d__namespace[_0x452c79(_0x92a5d4._0x155b27)]['postRender'],this['_reset'],this),(_0x59c74b=this['options'])!==null&&_0x59c74b!==void 0x0&&(_0x2ec96f=_0x59c74b['methods'])!==null&&_0x2ec96f!==void 0x0&&_0x2ec96f['click']&&this['_map'][_0x452c79(_0x92a5d4._0x1e4f59)](mars3d__namespace['EventType'][_0x452c79(_0x92a5d4._0x5ba76a)],this['_onMapClick'],this),(_0x525f93=this['options'])!==null&&_0x525f93!==void 0x0&&(_0x116939=_0x525f93[_0x452c79(0x1d6)])!==null&&_0x116939!==void 0x0&&_0x116939['mousemove']&&this['_map'][_0x452c79(0x1fa)](mars3d__namespace[_0x452c79(_0x92a5d4._0x155b27)]['mouseMove'],this['_onMapMouseMove'],this);}[_0x22f5c0(0x203)](){const _0x5e825c=_0x22f5c0;this['_mapVRenderer']&&(this['_mapVRenderer']['animatorMovestartEvent'](),this['_map'][_0x5e825c(0x1fa)](mars3d__namespace['EventType'][_0x5e825c(0x22d)],this['_reset'],this),this['_map']['on'](mars3d__namespace['EventType']['postRender'],this['_reset'],this));}[_0x22f5c0(0x1fc)](){const _0x4da978=_0x22f5c0;this['_mapVRenderer']&&(this['_map']['off'](mars3d__namespace['EventType']['postRender'],this['_reset'],this),this[_0x4da978(0x1ed)]['animatorMoveendEvent'](),this['_reset']());}['_setOptionsHook'](_0x241cd9,_0x278c6e){this['_removedHook'](),this['_addedHook']();}['addData'](_0x1672b1){const _0x83b1f0={_0x2d62c5:0x1ed},_0x129c54=_0x22f5c0;this['_mapVRenderer']&&this[_0x129c54(_0x83b1f0._0x2d62c5)]['addData'](_0x1672b1,this['options']);}['updateData'](_0x3e7b84){const _0x14d542={_0x53faf4:0x1ed,_0x53304c:0x1e2},_0x33b540=_0x22f5c0;this[_0x33b540(_0x14d542._0x53faf4)]&&this['_mapVRenderer']['updateData'](_0x3e7b84,this[_0x33b540(_0x14d542._0x53304c)]);}[_0x22f5c0(0x205)](){const _0x388ed2=_0x22f5c0;return this['_mapVRenderer']&&(this['dataSet']=this['_mapVRenderer']['getData']()),this[_0x388ed2(0x204)];}['removeData'](_0x595120){const _0x30a16e=_0x22f5c0;this['_mapVRenderer']&&this[_0x30a16e(0x1ed)]['removeData'](_0x595120);}[_0x22f5c0(0x210)](){const _0x2e7be2={_0x3f323a:0x1ed,_0x5efaf1:0x1d9},_0x5bdd73=_0x22f5c0;this[_0x5bdd73(_0x2e7be2._0x3f323a)]&&this['_mapVRenderer'][_0x5bdd73(_0x2e7be2._0x5efaf1)]();}[_0x22f5c0(0x1fd)](){const _0x5a7912={_0xadaaa4:0x21a,_0x3b3ca3:0x22c,_0x54960e:0x221,_0x381cf2:0x213,_0x12987a:0x1e2},_0x10c297=_0x22f5c0,_0x37263d=mars3d__namespace[_0x10c297(0x21c)]['create'](_0x10c297(_0x5a7912._0xadaaa4),'mars3d-mapv',this[_0x10c297(0x21d)]['container']);_0x37263d['id']=this['id'],_0x37263d['style']['position']='absolute',_0x37263d['style'][_0x10c297(_0x5a7912._0x3b3ca3)]='0px',_0x37263d['style']['left']='0px',_0x37263d['width']=parseInt(this['_map']['canvas'][_0x10c297(_0x5a7912._0x54960e)]),_0x37263d['height']=parseInt(this[_0x10c297(0x21d)][_0x10c297(_0x5a7912._0xadaaa4)]['height']),_0x37263d['style']['width']=this['_map'][_0x10c297(_0x5a7912._0xadaaa4)]['style']['width'],_0x37263d['style'][_0x10c297(_0x5a7912._0x381cf2)]=this['_map']['canvas']['style']['height'],_0x37263d['style']['pointerEvents']=this['_pointerEvents']?_0x10c297(0x22b):'none',_0x37263d['style']['zIndex']=this['options'][_0x10c297(0x1ef)]??0x9;if(this['options']['context']==='2d'){const _0xf0c326=this['devicePixelRatio'];_0x37263d['getContext'](this[_0x10c297(_0x5a7912._0x12987a)]['context'])[_0x10c297(0x1d5)](_0xf0c326,_0xf0c326);}return _0x37263d;}['_reset'](){const _0x1567f1={_0x46f16d:0x226},_0x3b5dc0=_0x22f5c0;this[_0x3b5dc0(_0x1567f1._0x46f16d)](),this['render']();}['draw'](){this['_reset']();}[_0x22f5c0(0x1f3)](){const _0x4240ab={_0x21f1c4:0x21a},_0x1b6d51=_0x22f5c0;this['_mapVRenderer']&&(this['_mapVRenderer']['destroy'](),this['_mapVRenderer']=null),this['canvas']['parentElement']['removeChild'](this[_0x1b6d51(_0x4240ab._0x21f1c4)]);}['render'](){this['_mapVRenderer']['_canvasUpdate']();}['resize'](){const _0x4cd4ad={_0x3387c5:0x222,_0x51bca8:0x1f4,_0x3efdb7:0x22c,_0x19a85b:0x1dc,_0x3da9c3:0x21d,_0x175b9a:0x1f4,_0x59c081:0x21a,_0x384599:0x1f4},_0x30a441=_0x22f5c0;if(this['canvas']){const _0x5d7bec=this['canvas'];_0x5d7bec['style'][_0x30a441(_0x4cd4ad._0x3387c5)]='absolute',_0x5d7bec[_0x30a441(_0x4cd4ad._0x51bca8)][_0x30a441(_0x4cd4ad._0x3efdb7)]='0px',_0x5d7bec['style'][_0x30a441(_0x4cd4ad._0x19a85b)]='0px',_0x5d7bec['width']=parseInt(this[_0x30a441(0x21d)]['canvas']['width']),_0x5d7bec[_0x30a441(0x213)]=parseInt(this['_map']['canvas']['height']),_0x5d7bec[_0x30a441(_0x4cd4ad._0x51bca8)][_0x30a441(0x221)]=this[_0x30a441(_0x4cd4ad._0x3da9c3)][_0x30a441(0x21a)][_0x30a441(_0x4cd4ad._0x175b9a)]['width'],_0x5d7bec[_0x30a441(_0x4cd4ad._0x175b9a)]['height']=this[_0x30a441(_0x4cd4ad._0x3da9c3)][_0x30a441(_0x4cd4ad._0x59c081)][_0x30a441(_0x4cd4ad._0x384599)]['height'];}}['getRectangle'](_0x405406){const _0x468f39={_0x1fc1dd:0x204},_0x51a653=_0x22f5c0;if(!this['dataSet']||!this[_0x51a653(_0x468f39._0x1fc1dd)]['_data'])return;const _0x57c211=mars3d__namespace[_0x51a653(0x202)][_0x51a653(0x1e8)]({'type':'FeatureCollection','features':this[_0x51a653(_0x468f39._0x1fc1dd)]['_data']});if(!_0x57c211)return;return _0x405406!==null&&_0x405406!==void 0x0&&_0x405406['isFormat']?_0x57c211:Cesium['Rectangle'][_0x51a653(0x211)](_0x57c211[_0x51a653(0x1f6)],_0x57c211['ymin'],_0x57c211['xmax'],_0x57c211['ymax']);}['_onMapClick'](_0x4ddb25){const _0x2a1b56={_0x55ed68:0x1ed},_0x3adb58=_0x22f5c0;this['_cache_event']=_0x4ddb25,this['_mapVRenderer']&&this[_0x3adb58(_0x2a1b56._0x55ed68)]['clickEvent'](_0x4ddb25['windowPosition'],_0x4ddb25);}['_onMapMouseMove'](_0x490392){const _0x3f21e4=_0x22f5c0;this[_0x3f21e4(0x1d7)]=_0x490392,this['_mapVRenderer']&&this['_mapVRenderer'][_0x3f21e4(0x20f)](_0x490392['windowPosition'],_0x490392);}['on'](_0x749013,_0x1a9e85,_0x628af5){const _0x16cee7={_0x17be42:0x1f2},_0x18319e=_0x22f5c0;this['options']['methods']=this['options']['methods']||{};if(_0x749013===mars3d__namespace[_0x18319e(_0x16cee7._0x17be42)]['click'])this[_0x18319e(0x1e2)]['methods']['click']=_0x15e894=>{_0x15e894&&_0x1a9e85['bind'](_0x628af5)({...this['_cache_event'],'layer':this,'data':_0x15e894});},this['_map']['on'](mars3d__namespace['EventType']['click'],this['_onMapClick'],this);else _0x749013===mars3d__namespace[_0x18319e(_0x16cee7._0x17be42)]['mouseMove']&&(this['options']['methods']['mousemove']=_0x3f473b=>{_0x3f473b&&_0x1a9e85['bind'](_0x628af5)({...this['_cache_event'],'layer':this,'data':_0x3f473b});},this['_map']['on'](mars3d__namespace['EventType']['mouseMove'],this['_onMapMouseMove'],this));return this;}['off'](_0x42f473,_0x13fbf5){const _0x42a775={_0x1db043:0x1d6,_0x61c103:0x20c,_0x2ac737:0x1e2},_0x2c10bc=_0x22f5c0;if(_0x42f473==='click'){var _0x1ce795;this['_map']['off'](_0x42f473,this['_onMapClick'],this),(_0x1ce795=this['options'][_0x2c10bc(_0x42a775._0x1db043)])!==null&&_0x1ce795!==void 0x0&&_0x1ce795['mousemove']&&delete this['options']['methods']['click'];}else{if(_0x42f473==='mouseMove'){var _0x49f458;this[_0x2c10bc(0x21d)]['off'](_0x42f473,this[_0x2c10bc(_0x42a775._0x61c103)],this),(_0x49f458=this['options']['methods'])!==null&&_0x49f458!==void 0x0&&_0x49f458['mousemove']&&delete this[_0x2c10bc(_0x42a775._0x2ac737)]['methods']['mousemove'];}}return this;}}function _0x1987(_0xfca84c,_0x4778ae){const _0x7b66d0=_0x7b66();return _0x1987=function(_0x1987b0,_0x226fea){_0x1987b0=_0x1987b0-0x1d4;let _0x174a97=_0x7b66d0[_0x1987b0];return _0x174a97;},_0x1987(_0xfca84c,_0x4778ae);}mars3d__namespace['LayerUtil']['register'](_0x22f5c0(0x214),MapVLayer),mars3d__namespace['layer']['MapVLayer']=MapVLayer,mars3d__namespace['mapv']=mapv__namespace,exports['MapVLayer']=MapVLayer,Object['keys'](mapv)[_0x22f5c0(0x1de)](function(_0x189ec3){if(_0x189ec3!=='default'&&!exports['hasOwnProperty'](_0x189ec3))Object['defineProperty'](exports,_0x189ec3,{'enumerable':!![],'get':function(){return mapv[_0x189ec3];}});}),Object[_0x22f5c0(0x200)](exports,'__esModule',{'value':!![]});function _0x7b66(){const _0x4cb9c9=['fillStyle','_pointerEvents','mousemoveEvent','removeAllData','fromDegrees','destroy','height','mapv','stopAniamation','2657066ORnhgx','COLOR_BUFFER_BIT','size','EllipsoidalOccluder','canvas','devicePixelRatio','DomUtil','_map','mouseDown','getHeight','get','width','position','context','render','LineString','resize','_mountedHook','10398tBUGVU','__proto__','cameraMoveEnd','auto','top','postRender','push','scale','methods','_cache_event','_removedHook','clearData','bind','342485NgbwtN','left','1355812JKhjMv','forEach','_data','positionWC','setZIndex','options','rgba(0,\x200,\x200,\x20.1)','camera','isEnabledTime','15ENHONc','42877700fwhSXd','getExtentByGeoJSON','display','animator','initDevicePixelRatio','data','_mapVRenderer','default','zIndex','Polygon','Cartesian3','EventType','remove','style','cameraMoveStart','xmin','7596810QMBNBQ','91LMRdWa','199720MhkWIB','off','1335QnkAiQ','_onMoveEndEvent','_createCanvas','isPointVisible','addAnimatorEvent','defineProperty','canvasLayer','Util','_onMoveStartEvent','dataSet','getData','SceneMode','DataSet','pointerEvents','click','baiduMapLayer','Cesium','_onMapMouseMove'];_0x7b66=function(){return _0x4cb9c9;};return _0x7b66();}
14
+ 'use strict';function _0x34b0(_0xcb955c,_0x280087){const _0x50b33f=_0x50b3();return _0x34b0=function(_0x34b09c,_0xe6672b){_0x34b09c=_0x34b09c-0x12b;let _0x5f0269=_0x50b33f[_0x34b09c];return _0x5f0269;},_0x34b0(_0xcb955c,_0x280087);}const _0x21818b=_0x34b0;(function(_0x34570f,_0x40b76f){const _0x40f13a={_0x5fe94:0x160,_0x1cd4ff:0x185,_0x580f7d:0x138,_0x4e7291:0x132,_0x2e6a4b:0x13f,_0x522e06:0x177,_0x3bc17c:0x14f,_0x1b7ff:0x143},_0x30385d=_0x34b0,_0x3f486a=_0x34570f();while(!![]){try{const _0x4c3461=-parseInt(_0x30385d(0x14b))/0x1*(-parseInt(_0x30385d(_0x40f13a._0x5fe94))/0x2)+-parseInt(_0x30385d(_0x40f13a._0x1cd4ff))/0x3+parseInt(_0x30385d(0x149))/0x4+-parseInt(_0x30385d(0x131))/0x5*(-parseInt(_0x30385d(_0x40f13a._0x580f7d))/0x6)+parseInt(_0x30385d(0x184))/0x7*(-parseInt(_0x30385d(_0x40f13a._0x4e7291))/0x8)+-parseInt(_0x30385d(_0x40f13a._0x2e6a4b))/0x9*(parseInt(_0x30385d(_0x40f13a._0x522e06))/0xa)+parseInt(_0x30385d(_0x40f13a._0x3bc17c))/0xb*(parseInt(_0x30385d(_0x40f13a._0x1b7ff))/0xc);if(_0x4c3461===_0x40b76f)break;else _0x3f486a['push'](_0x3f486a['shift']());}catch(_0x4e0bd2){_0x3f486a['push'](_0x3f486a['shift']());}}}(_0x50b3,0x2ad7c));function _interopNamespace(_0x2e2566){if(_0x2e2566&&_0x2e2566['__esModule'])return _0x2e2566;var _0x89fa02=Object['create'](null);return _0x2e2566&&Object['keys'](_0x2e2566)['forEach'](function(_0x5016a6){const _0x24aae3=_0x34b0;if(_0x5016a6!==_0x24aae3(0x188)){var _0x23bc5a=Object['getOwnPropertyDescriptor'](_0x2e2566,_0x5016a6);Object['defineProperty'](_0x89fa02,_0x5016a6,_0x23bc5a['get']?_0x23bc5a:{'enumerable':!![],'get':function(){return _0x2e2566[_0x5016a6];}});}}),_0x89fa02['default']=_0x2e2566,_0x89fa02;}var mapv__namespace=_interopNamespace(mapv),mars3d__namespace=_interopNamespace(mars3d);const Cesium$1=mars3d__namespace[_0x21818b(0x191)],baiduMapLayer=mapv__namespace?mapv__namespace['baiduMapLayer']:null,BaseLayer$1=baiduMapLayer?baiduMapLayer['__proto__']:Function;class MapVRenderer extends BaseLayer$1{constructor(_0x5d66cb,_0x172cc1,_0x4dfebf,_0x585686){const _0x18b82e={_0x203b53:0x181,_0x253506:0x141},_0xe99584=_0x21818b;super(_0x5d66cb,_0x172cc1,_0x4dfebf);if(!BaseLayer$1)return;this['map']=_0x5d66cb,this['scene']=_0x5d66cb['scene'],this['dataSet']=_0x172cc1,_0x4dfebf=_0x4dfebf||{},this[_0xe99584(_0x18b82e._0x203b53)](_0x4dfebf),this['argCheck'](_0x4dfebf),this['initDevicePixelRatio'](),this['canvasLayer']=_0x585686,this['stopAniamation']=!0x1,this['animation']=_0x4dfebf[_0xe99584(_0x18b82e._0x253506)];}['initDevicePixelRatio'](){const _0x8ec5dd={_0x471f34:0x16e},_0x8aa172=_0x21818b;this['devicePixelRatio']=window[_0x8aa172(_0x8ec5dd._0x471f34)]||0x1;}[_0x21818b(0x18d)](){}['animatorMovestartEvent'](){const _0x3d5d2b={_0x3eac90:0x137},_0x4883ef=_0x21818b,_0x4009a8=this[_0x4883ef(0x194)]['animation'];this['isEnabledTime']()&&this['animator']&&(this['steps'][_0x4883ef(_0x3d5d2b._0x3eac90)]=_0x4009a8[_0x4883ef(0x134)]['start']);}['animatorMoveendEvent'](){const _0x330802={_0x4de22e:0x175},_0x5dc56a=_0x21818b;this[_0x5dc56a(_0x330802._0x4de22e)]()&&this[_0x5dc56a(0x15e)];}['getContext'](){return this['canvasLayer']['canvas']['getContext'](this['context']);}['init'](_0x40361a){const _0x19ff9d={_0x15685f:0x194,_0x1d5d44:0x14c,_0x3918f1:0x167},_0x5f483d=_0x21818b;this[_0x5f483d(_0x19ff9d._0x15685f)]=_0x40361a,this[_0x5f483d(_0x19ff9d._0x1d5d44)](_0x40361a),this['context']=this['options']['context']||'2d',this['options']['zIndex']&&this['canvasLayer']&&this['canvasLayer']['setZIndex']&&this['canvasLayer'][_0x5f483d(_0x19ff9d._0x3918f1)](this['options']['zIndex']),this['initAnimator']();}['_canvasUpdate'](_0x443099){const _0x370e94={_0x1ce66b:0x161,_0x17cb0f:0x187,_0x409c90:0x194,_0x24cba6:0x15c},_0x457d8f={_0x5d619e:0x178,_0x530cc2:0x17f,_0x41a896:0x18b},_0xb4bc8b=_0x21818b,_0x365611=this['scene'];if(this[_0xb4bc8b(0x12c)]&&!this['stopAniamation']){const _0x548232=this['options']['animation'],_0x189bd0=this['getContext']();if(this['isEnabledTime']()){if(void 0x0===_0x443099)return void this[_0xb4bc8b(0x168)](_0x189bd0);this['context']==='2d'&&(_0x189bd0['save'](),_0x189bd0[_0xb4bc8b(0x18f)]=_0xb4bc8b(0x18c),_0x189bd0[_0xb4bc8b(0x12e)]=_0xb4bc8b(_0x370e94._0x1ce66b),_0x189bd0['fillRect'](0x0,0x0,_0x189bd0['canvas'][_0xb4bc8b(_0x370e94._0x17cb0f)],_0x189bd0['canvas']['height']),_0x189bd0['restore']());}else this[_0xb4bc8b(0x168)](_0x189bd0);if(this['context']==='2d')for(const _0x27223f in this[_0xb4bc8b(_0x370e94._0x409c90)]){_0x189bd0[_0x27223f]=this['options'][_0x27223f];}else _0x189bd0['clear'](_0x189bd0['COLOR_BUFFER_BIT']);const _0x516cc7={'transferCoordinate':function(_0x3b613c){const _0x65277e=_0xb4bc8b,_0x181eea=null;let _0xf58890=_0x365611['mapvFixedHeight'];_0x365611['mapvAutoHeight']&&(_0xf58890=_0x365611['globe']['getHeight'](Cesium$1[_0x65277e(0x196)]['fromDegrees'](_0x3b613c[0x0],_0x3b613c[0x1])));const _0x3c62f8=Cesium$1['Cartesian3']['fromDegrees'](_0x3b613c[0x0],_0x3b613c[0x1],_0xf58890);if(!_0x3c62f8)return _0x181eea;const _0x5e8283=_0x365611['cartesianToCanvasCoordinates'](_0x3c62f8);if(!_0x5e8283)return _0x181eea;if(_0x365611['mapvDepthTest']&&_0x365611[_0x65277e(_0x457d8f._0x5d619e)]===Cesium$1['SceneMode'][_0x65277e(_0x457d8f._0x530cc2)]){const _0x513113=new Cesium$1[(_0x65277e(0x182))](_0x365611[_0x65277e(0x17b)]['ellipsoid'],_0x365611['camera']['positionWC']),_0x500efe=_0x513113[_0x65277e(_0x457d8f._0x41a896)](_0x3c62f8);if(!_0x500efe)return _0x181eea;}return[_0x5e8283['x'],_0x5e8283['y']];}};void 0x0!==_0x443099&&(_0x516cc7[_0xb4bc8b(0x135)]=function(_0x2beabb){const _0x2b16d3=_0xb4bc8b,_0x22a7ed=_0x548232['trails']||0xa;return!!(_0x443099&&_0x2beabb['time']>_0x443099-_0x22a7ed&&_0x2beabb[_0x2b16d3(0x189)]<_0x443099);});const _0x4f732c=this[_0xb4bc8b(_0x370e94._0x24cba6)][_0xb4bc8b(0x16b)](_0x516cc7);this['processData'](_0x4f732c),this['options'][_0xb4bc8b(0x16d)]==='m'&&this['options']['size'],this['options'][_0xb4bc8b(0x152)]=this['options'][_0xb4bc8b(0x150)];const _0x42921c=_0x365611['cartesianToCanvasCoordinates'](Cesium$1['Cartesian3']['fromDegrees'](0x0,0x0));if(!_0x42921c)return;this['drawContext'](_0x189bd0,new mapv__namespace['DataSet'](_0x4f732c),this['options'],_0x42921c),this['options']['updateCallback']&&this['options']['updateCallback'](_0x443099);}}[_0x21818b(0x133)](_0x4ef6ed,_0x330398){const _0x27f2fa={_0x4f4461:0x16b,_0x694024:0x15c},_0x2a792e=_0x21818b;let _0x566ffc=_0x4ef6ed;_0x566ffc&&_0x566ffc[_0x2a792e(0x16b)]&&(_0x566ffc=_0x566ffc[_0x2a792e(_0x27f2fa._0x4f4461)]()),void 0x0!==_0x566ffc&&this[_0x2a792e(_0x27f2fa._0x694024)]['set'](_0x566ffc),super[_0x2a792e(0x12b)]({'options':_0x330398});}['addData'](_0x4f030e,_0x5a956b){const _0x2747d4={_0x84677e:0x16b},_0x126879=_0x21818b;let _0x369cf6=_0x4f030e;_0x4f030e&&_0x4f030e['get']&&(_0x369cf6=_0x4f030e[_0x126879(_0x2747d4._0x84677e)]()),this['dataSet']['add'](_0x369cf6),this['update']({'options':_0x5a956b});}['getData'](){const _0x10cd1d=_0x21818b;return this[_0x10cd1d(0x15c)];}['removeData'](_0x111a86){const _0x535b35=_0x21818b;if(this[_0x535b35(0x15c)]){const _0x2cf901=this['dataSet']['get']({'filter':function(_0x4cf45a){return _0x111a86==null||typeof _0x111a86!=='function'||!_0x111a86(_0x4cf45a);}});this['dataSet']['set'](_0x2cf901),this['update']({'options':null});}}[_0x21818b(0x158)](){this['dataSet']&&this['dataSet']['clear'](),this['update']({'options':null});}[_0x21818b(0x13e)](){this['canvasLayer']['draw']();}[_0x21818b(0x168)](_0x22230e){const _0xd6e783=_0x21818b;_0x22230e&&_0x22230e[_0xd6e783(0x17c)]&&_0x22230e['clearRect'](0x0,0x0,_0x22230e['canvas']['width'],_0x22230e['canvas']['height']);}['destroy'](){const _0x5495c7={_0x48f7f9:0x12c},_0x20b596=_0x21818b;this['clear'](this['getContext']()),this['clearData'](),this['animator']&&this['animator']['stop'](),this[_0x20b596(0x15e)]=null,this[_0x20b596(_0x5495c7._0x48f7f9)]=null;}}if(mapv__namespace!==null&&mapv__namespace!==void 0x0&&mapv__namespace[_0x21818b(0x139)])mapv__namespace['DataSet']['prototype']['transferCoordinate']=function(_0x2c192f,_0x36a4e4,_0x36a8ae,_0x30720e){const _0x5bff0f={_0x3957a8:0x146},_0x52227f={_0x212d37:0x154},_0x2ca5a3=_0x21818b;_0x30720e=_0x30720e||'_coordinates',_0x36a8ae=_0x36a8ae||_0x2ca5a3(0x179);for(let _0x12e55a=0x0;_0x12e55a<_0x2c192f[_0x2ca5a3(0x154)];_0x12e55a++){const _0x53ced4=_0x2c192f[_0x12e55a]['geometry'],_0x35f7b2=_0x53ced4[_0x36a8ae];switch(_0x53ced4[_0x2ca5a3(_0x5bff0f._0x3957a8)]){case'Point':{const _0x5e9f50=_0x36a4e4(_0x35f7b2);_0x5e9f50?_0x53ced4[_0x30720e]=_0x5e9f50:_0x53ced4[_0x30720e]=[-0x3e7,-0x3e7];}break;case'LineString':{const _0x9a4cc5=[];for(let _0x4d2374=0x0;_0x4d2374<_0x35f7b2[_0x2ca5a3(0x154)];_0x4d2374++){const _0x19e3f5=_0x36a4e4(_0x35f7b2[_0x4d2374]);_0x19e3f5&&_0x9a4cc5['push'](_0x19e3f5);}_0x53ced4[_0x30720e]=_0x9a4cc5;}break;case'MultiLineString':case'Polygon':{const _0xe88bdc=_0x1a1685(_0x35f7b2);_0x53ced4[_0x30720e]=_0xe88bdc;}break;case'MultiPolygon':{const _0x6c0653=[];for(let _0x331de7=0x0;_0x331de7<_0x35f7b2[_0x2ca5a3(0x154)];_0x331de7++){const _0xd41236=_0x1a1685(_0x35f7b2[_0x331de7]);_0xd41236[_0x2ca5a3(0x154)]>0x0&&_0x6c0653['push'](_0xd41236);}_0x53ced4[_0x30720e]=_0x6c0653;}break;}}function _0x1a1685(_0x4dc161){const _0x8f6bc5=_0x2ca5a3,_0x4e535a=[];for(let _0x3999a9=0x0;_0x3999a9<_0x4dc161['length'];_0x3999a9++){const _0x557cf6=_0x4dc161[_0x3999a9],_0x54478e=[];for(let _0x284713=0x0;_0x284713<_0x557cf6['length'];_0x284713++){const _0x44d440=_0x36a4e4(_0x557cf6[_0x284713]);_0x44d440&&_0x54478e['push'](_0x44d440);}_0x54478e[_0x8f6bc5(_0x52227f._0x212d37)]>0x0&&_0x4e535a['push'](_0x54478e);}return _0x4e535a;}return _0x2c192f;};else throw new Error('请引入\x20mapv\x20库\x20');const Cesium=mars3d__namespace[_0x21818b(0x191)],BaseLayer=mars3d__namespace['layer']['BaseLayer'];function _0x50b3(){const _0x2dc92c=['isPointVisible','destination-out','addAnimatorEvent','depthTest','globalCompositeOperation','off','Cesium','create','initDevicePixelRatio','options','top','Cartographic','EventType','update','canvasLayer','DomUtil','fillStyle','fromDegrees','destroy','69415IflINw','48904MGxUUD','updateData','stepsRange','filter','position','step','150GpSBGO','DataSet','resize','mouseDown','canvas','0px','draw','9czgWKc','_mountedHook','animation','pointerEvents','40908CMAomf','_setOptionsHook','_onMoveStartEvent','type','Util','_onMapMouseMove','646044vIFsbp','clampToGround','8893oAOMdi','initDataRange','ymin','mapvFixedHeight','1023GAVjun','size','_reset','_size','_cache_event','length','mapvDepthTest','bind','_dataCache','clearData','mousemove','_data','_onMapClick','dataSet','render','animator','none','30xtqUOA','rgba(0,\x200,\x200,\x20.1)','height','_map','_addedHook','_createCanvas','xmin','setZIndex','clear','_mapVRenderer','_canvasUpdate','get','parentElement','unit','devicePixelRatio','defineProperty','removeChild','display','style','click','MapVLayer','isEnabledTime','mars3d-mapv','3041310LnIWZi','mode','coordinates','bindEvent','globe','clearRect','FeatureCollection','methods','SCENE3D','_pointerEvents','init','EllipsoidalOccluder','left','287FHhPpm','686310dQSunS','postRender','width','default','time','mapv'];_0x50b3=function(){return _0x2dc92c;};return _0x50b3();}class MapVLayer extends BaseLayer{constructor(_0x4dffa7,_0x313e25){const _0x516295={_0x575b44:0x180},_0x15fcb3=_0x21818b;super(_0x4dffa7),this[_0x15fcb3(_0x516295._0x575b44)]=this['options'][_0x15fcb3(0x142)],this['dataSet']=_0x313e25||new mapv__namespace['DataSet'](_0x4dffa7['data']),this['canvas']=null;}get[_0x21818b(0x142)](){const _0x463786=_0x21818b;return this[_0x463786(0x180)];}set[_0x21818b(0x142)](_0x2afdcd){const _0x38173b=_0x21818b;this[_0x38173b(0x180)]=_0x2afdcd,this['canvas']&&(_0x2afdcd?this[_0x38173b(0x13c)]['style']['pointerEvents']='all':this[_0x38173b(0x13c)]['style'][_0x38173b(0x142)]='none');}['_showHook'](_0x1d362d){const _0x4ec675={_0x7cf288:0x15f},_0x298ab7=_0x21818b;_0x1d362d?this[_0x298ab7(0x13c)]['style'][_0x298ab7(0x171)]='block':this['canvas']['style']['display']=_0x298ab7(_0x4ec675._0x7cf288);}[_0x21818b(0x140)](){const _0x5d3ed2={_0x15535c:0x14e},_0x596f22=_0x21818b;this[_0x596f22(0x163)]['scene'][_0x596f22(0x155)]=this['options'][_0x596f22(0x18e)]??!![],this[_0x596f22(0x163)]['scene']['mapvAutoHeight']=this['options'][_0x596f22(0x14a)]??![],this['_map']['scene'][_0x596f22(_0x5d3ed2._0x15535c)]=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x3a5302={_0x404b1b:0x15a,_0x31c43c:0x157,_0x4c91b2:0x193},_0x4729e8=_0x21818b;this['dataSet']&&(!this['dataSet']['_data']||this[_0x4729e8(0x15c)][_0x4729e8(_0x3a5302._0x404b1b)]['length']===0x0)&&(this['dataSet']['_data']=[]['concat'](this[_0x4729e8(0x15c)][_0x4729e8(_0x3a5302._0x31c43c)])),this['_mapVRenderer']=new MapVRenderer(this[_0x4729e8(0x163)],this['dataSet'],this['options'],this),this[_0x4729e8(_0x3a5302._0x4c91b2)](),this['canvas']=this['_createCanvas'](),this['render']=this['render']['bind'](this),this['bindEvent'](),this['_reset']();}['_removedHook'](){const _0x1c0e61={_0x175282:0x130,_0x50c790:0x170},_0x10934f=_0x21818b;this['unbindEvent'](),this['_mapVRenderer']&&(this['_mapVRenderer'][_0x10934f(_0x1c0e61._0x175282)](),this['_mapVRenderer']=null),this['canvas'][_0x10934f(0x16c)][_0x10934f(_0x1c0e61._0x50c790)](this['canvas']);}['initDevicePixelRatio'](){const _0x113edc=_0x21818b;this[_0x113edc(0x16e)]=window['devicePixelRatio']||0x1;}[_0x21818b(0x17a)](){const _0x12c2c1={_0x2249a1:0x145,_0x210ca5:0x163,_0x124a13:0x173,_0x1d1073:0x197},_0x14add4=_0x21818b;var _0x2d68e7,_0x115fd4,_0x15b42f,_0x2b07c4;this['_map']['on'](mars3d__namespace['EventType'][_0x14add4(0x13b)],this['_onMoveStartEvent'],this),this['_map']['on'](mars3d__namespace['EventType']['cameraMoveStart'],this[_0x14add4(_0x12c2c1._0x2249a1)],this),this[_0x14add4(_0x12c2c1._0x210ca5)]['on'](mars3d__namespace[_0x14add4(0x197)]['cameraMoveEnd'],this['_onMoveEndEvent'],this),(_0x2d68e7=this['options'])!==null&&_0x2d68e7!==void 0x0&&(_0x115fd4=_0x2d68e7[_0x14add4(0x17e)])!==null&&_0x115fd4!==void 0x0&&_0x115fd4['click']&&this['_map']['on'](mars3d__namespace[_0x14add4(0x197)][_0x14add4(_0x12c2c1._0x124a13)],this[_0x14add4(0x15b)],this),(_0x15b42f=this['options'])!==null&&_0x15b42f!==void 0x0&&(_0x2b07c4=_0x15b42f['methods'])!==null&&_0x2b07c4!==void 0x0&&_0x2b07c4['mousemove']&&this[_0x14add4(0x163)]['on'](mars3d__namespace[_0x14add4(_0x12c2c1._0x1d1073)]['mouseMove'],this['_onMapMouseMove'],this);}['unbindEvent'](){const _0x1b4e0b={_0x55ccac:0x151,_0x42bf61:0x163,_0x417be0:0x15b},_0x17e912=_0x21818b;var _0x4d30fa,_0x3bf87e,_0x38d254,_0x33f013;this['_map']['off'](mars3d__namespace['EventType'][_0x17e912(0x13b)],this[_0x17e912(0x145)],this),this[_0x17e912(0x163)]['off'](mars3d__namespace[_0x17e912(0x197)]['cameraMoveStart'],this['_onMoveStartEvent'],this),this['_map']['off'](mars3d__namespace['EventType']['cameraMoveEnd'],this['_onMoveEndEvent'],this),this['_map']['off'](mars3d__namespace['EventType']['postRender'],this[_0x17e912(_0x1b4e0b._0x55ccac)],this),(_0x4d30fa=this[_0x17e912(0x194)])!==null&&_0x4d30fa!==void 0x0&&(_0x3bf87e=_0x4d30fa['methods'])!==null&&_0x3bf87e!==void 0x0&&_0x3bf87e['click']&&this[_0x17e912(_0x1b4e0b._0x42bf61)]['off'](mars3d__namespace['EventType']['click'],this[_0x17e912(_0x1b4e0b._0x417be0)],this),(_0x38d254=this[_0x17e912(0x194)])!==null&&_0x38d254!==void 0x0&&(_0x33f013=_0x38d254['methods'])!==null&&_0x33f013!==void 0x0&&_0x33f013[_0x17e912(0x159)]&&this['_map']['off'](mars3d__namespace['EventType']['mouseMove'],this['_onMapMouseMove'],this);}[_0x21818b(0x145)](){const _0x479885={_0x21a811:0x151,_0x492109:0x197},_0x2f636f=_0x21818b;this['_mapVRenderer']&&(this['_mapVRenderer']['animatorMovestartEvent'](),this['_map']['off'](mars3d__namespace['EventType']['postRender'],this[_0x2f636f(_0x479885._0x21a811)],this),this['_map']['on'](mars3d__namespace[_0x2f636f(_0x479885._0x492109)]['postRender'],this['_reset'],this));}['_onMoveEndEvent'](){const _0x4418ab={_0x105916:0x190,_0x4f5924:0x197,_0x31b2ae:0x151},_0x721174=_0x21818b;this['_mapVRenderer']&&(this['_map'][_0x721174(_0x4418ab._0x105916)](mars3d__namespace[_0x721174(_0x4418ab._0x4f5924)][_0x721174(0x186)],this[_0x721174(_0x4418ab._0x31b2ae)],this),this['_mapVRenderer']['animatorMoveendEvent'](),this[_0x721174(_0x4418ab._0x31b2ae)]());}[_0x21818b(0x144)](_0x3b6956,_0xd7e42f){const _0x1da870=_0x21818b;this['_removedHook'](),this[_0x1da870(0x164)]();}['addData'](_0x4bdf02){const _0x3f453f={_0xf63880:0x169},_0x15720b=_0x21818b;this['_mapVRenderer']&&this[_0x15720b(_0x3f453f._0xf63880)]['addData'](_0x4bdf02,this['options']);}['updateData'](_0x13cf22){const _0x321c43={_0x1bd9f5:0x169},_0xfe10d7=_0x21818b;this[_0xfe10d7(_0x321c43._0x1bd9f5)]&&this['_mapVRenderer'][_0xfe10d7(0x133)](_0x13cf22,this[_0xfe10d7(0x194)]);}['getData'](){const _0x209520={_0x15c137:0x15c},_0x44e506=_0x21818b;return this[_0x44e506(0x169)]&&(this[_0x44e506(_0x209520._0x15c137)]=this['_mapVRenderer']['getData']()),this['dataSet'];}['removeData'](_0x4bf074){this['_mapVRenderer']&&this['_mapVRenderer']['removeData'](_0x4bf074);}['removeAllData'](){this['_mapVRenderer']&&this['_mapVRenderer']['clearData']();}[_0x21818b(0x165)](){const _0x5ae8d5={_0x304c4b:0x12d,_0x2e5c10:0x13d,_0x39d455:0x183,_0x5f33e8:0x172,_0x27f051:0x162,_0x185029:0x194},_0x265322=_0x21818b,_0x57af8f=mars3d__namespace[_0x265322(_0x5ae8d5._0x304c4b)][_0x265322(0x192)]('canvas',_0x265322(0x176),this['_map']['container']);_0x57af8f['id']=this['id'],_0x57af8f[_0x265322(0x172)][_0x265322(0x136)]='absolute',_0x57af8f['style']['top']=_0x265322(_0x5ae8d5._0x2e5c10),_0x57af8f[_0x265322(0x172)][_0x265322(_0x5ae8d5._0x39d455)]='0px',_0x57af8f['width']=parseInt(this['_map'][_0x265322(0x13c)]['width']),_0x57af8f['height']=parseInt(this['_map']['canvas']['height']),_0x57af8f['style']['width']=this[_0x265322(0x163)]['canvas'][_0x265322(_0x5ae8d5._0x5f33e8)]['width'],_0x57af8f['style'][_0x265322(_0x5ae8d5._0x27f051)]=this['_map']['canvas'][_0x265322(_0x5ae8d5._0x5f33e8)]['height'],_0x57af8f['style'][_0x265322(0x142)]=this['_pointerEvents']?'auto':'none',_0x57af8f['style']['zIndex']=this[_0x265322(_0x5ae8d5._0x185029)]['zIndex']??0x9;if(this['options']['context']==='2d'){const _0x5ea813=this[_0x265322(0x16e)];_0x57af8f['getContext'](this['options']['context'])['scale'](_0x5ea813,_0x5ea813);}return _0x57af8f;}['_reset'](){this['resize'](),this['render']();}['draw'](){const _0x208d33={_0x2d4779:0x151},_0x2d4f38=_0x21818b;this[_0x2d4f38(_0x208d33._0x2d4779)]();}['remove'](){const _0x5aee80=_0x21818b;this['_mapVRenderer']&&(this['_mapVRenderer']['destroy'](),this['_mapVRenderer']=null),this['canvas'][_0x5aee80(0x16c)]['removeChild'](this['canvas']);}[_0x21818b(0x15d)](){const _0x3b1a23=_0x21818b;this['_mapVRenderer'][_0x3b1a23(0x16a)]();}[_0x21818b(0x13a)](){const _0x323278={_0x2edd8a:0x136,_0x5a09da:0x195,_0xea0994:0x13d,_0x2a5478:0x187,_0x405509:0x187,_0x9f3548:0x162},_0x3fff57=_0x21818b;if(this['canvas']){const _0x7b54eb=this['canvas'];_0x7b54eb['style'][_0x3fff57(_0x323278._0x2edd8a)]='absolute',_0x7b54eb['style'][_0x3fff57(_0x323278._0x5a09da)]='0px',_0x7b54eb['style']['left']=_0x3fff57(_0x323278._0xea0994),_0x7b54eb[_0x3fff57(0x187)]=parseInt(this['_map'][_0x3fff57(0x13c)][_0x3fff57(_0x323278._0x2a5478)]),_0x7b54eb['height']=parseInt(this['_map']['canvas']['height']),_0x7b54eb['style'][_0x3fff57(0x187)]=this['_map']['canvas']['style'][_0x3fff57(_0x323278._0x405509)],_0x7b54eb['style']['height']=this[_0x3fff57(0x163)][_0x3fff57(0x13c)][_0x3fff57(0x172)][_0x3fff57(_0x323278._0x9f3548)];}}['getRectangle'](_0x2c7103){const _0x343df2={_0x2d83c5:0x15c,_0x502be5:0x15a,_0xedd0a4:0x147,_0x3eec54:0x17d,_0x421c93:0x14d},_0x3a7a76=_0x21818b;if(!this['dataSet']||!this[_0x3a7a76(_0x343df2._0x2d83c5)][_0x3a7a76(_0x343df2._0x502be5)])return;const _0x22b6f3=mars3d__namespace[_0x3a7a76(_0x343df2._0xedd0a4)]['getExtentByGeoJSON']({'type':_0x3a7a76(_0x343df2._0x3eec54),'features':this['dataSet']['_data']});if(!_0x22b6f3)return;return _0x2c7103!==null&&_0x2c7103!==void 0x0&&_0x2c7103['isFormat']?_0x22b6f3:Cesium['Rectangle'][_0x3a7a76(0x12f)](_0x22b6f3[_0x3a7a76(0x166)],_0x22b6f3[_0x3a7a76(_0x343df2._0x421c93)],_0x22b6f3['xmax'],_0x22b6f3['ymax']);}['_onMapClick'](_0x49e4b8){this['_cache_event']=_0x49e4b8,this['_mapVRenderer']&&this['_mapVRenderer']['clickEvent'](_0x49e4b8['windowPosition'],_0x49e4b8);}['_onMapMouseMove'](_0x17f62e){const _0x5e457c={_0x5af621:0x153,_0x4c5b4e:0x169},_0x171be4=_0x21818b;this[_0x171be4(_0x5e457c._0x5af621)]=_0x17f62e,this['_mapVRenderer']&&this[_0x171be4(_0x5e457c._0x4c5b4e)]['mousemoveEvent'](_0x17f62e['windowPosition'],_0x17f62e);}['on'](_0x1e1835,_0x441229,_0x436cee){const _0x1777a1={_0x179cc7:0x197,_0x453980:0x159,_0x38fd03:0x148},_0x44efc5=_0x21818b;this['options']['methods']=this['options']['methods']||{};if(_0x1e1835===mars3d__namespace['EventType']['click'])this['options']['methods']['click']=_0x3cabb7=>{_0x3cabb7&&_0x441229['bind'](_0x436cee)({...this['_cache_event'],'layer':this,'data':_0x3cabb7});},this['_map']['on'](mars3d__namespace['EventType'][_0x44efc5(0x173)],this['_onMapClick'],this);else _0x1e1835===mars3d__namespace[_0x44efc5(_0x1777a1._0x179cc7)]['mouseMove']&&(this['options']['methods'][_0x44efc5(_0x1777a1._0x453980)]=_0xf1c3d7=>{const _0x137540=_0x44efc5;_0xf1c3d7&&_0x441229[_0x137540(0x156)](_0x436cee)({...this['_cache_event'],'layer':this,'data':_0xf1c3d7});},this['_map']['on'](mars3d__namespace['EventType']['mouseMove'],this[_0x44efc5(_0x1777a1._0x38fd03)],this));return this;}[_0x21818b(0x190)](_0x4a7549,_0x55e354){const _0x1b3749={_0x18cb51:0x15b,_0x5a424e:0x159},_0x10267d=_0x21818b;if(_0x4a7549==='click'){var _0xffb49d;this[_0x10267d(0x163)]['off'](_0x4a7549,this[_0x10267d(_0x1b3749._0x18cb51)],this),(_0xffb49d=this['options'][_0x10267d(0x17e)])!==null&&_0xffb49d!==void 0x0&&_0xffb49d['mousemove']&&delete this['options']['methods']['click'];}else{if(_0x4a7549==='mouseMove'){var _0xce4779;this['_map'][_0x10267d(0x190)](_0x4a7549,this['_onMapMouseMove'],this),(_0xce4779=this['options']['methods'])!==null&&_0xce4779!==void 0x0&&_0xce4779['mousemove']&&delete this['options'][_0x10267d(0x17e)][_0x10267d(_0x1b3749._0x5a424e)];}}return this;}}mars3d__namespace['LayerUtil']['register']('mapv',MapVLayer),mars3d__namespace['layer']['MapVLayer']=MapVLayer,mars3d__namespace[_0x21818b(0x18a)]=mapv__namespace,exports[_0x21818b(0x174)]=MapVLayer,Object['keys'](mapv)['forEach'](function(_0x51ede2){if(_0x51ede2!=='default'&&!exports['hasOwnProperty'](_0x51ede2))Object['defineProperty'](exports,_0x51ede2,{'enumerable':!![],'get':function(){return mapv[_0x51ede2];}});}),Object[_0x21818b(0x16f)](exports,'__esModule',{'value':!![]});
15
15
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mars3d-mapv",
3
- "version": "3.6.5",
3
+ "version": "3.6.6",
4
4
  "description": "Mars3D平台插件,结合mapv可视化功能插件",
5
5
  "main": "dist/mars3d-mapv.js",
6
6
  "files": [
@@ -10,7 +10,7 @@
10
10
  "mapv": "^2.0.62"
11
11
  },
12
12
  "devDependencies": {
13
- "mars3d": "~3.6.5"
13
+ "mars3d": "~3.6.6"
14
14
  },
15
15
  "scripts": {
16
16
  "lint": "eslint ./src/**/*.{js,ts} --fix"