mars3d-mapv 3.6.13 → 3.6.15
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.
- package/dist/mars3d-mapv.js +3 -3
- package/package.json +2 -2
package/dist/mars3d-mapv.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Mars3D平台插件,结合mapv可视化功能插件 mars3d-mapv
|
|
3
3
|
*
|
|
4
|
-
* 版本信息:v3.6.
|
|
5
|
-
* 编译日期:2023-
|
|
4
|
+
* 版本信息:v3.6.15
|
|
5
|
+
* 编译日期:2023-12-05 19:27:11
|
|
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';function _0x374d(_0xf35631,_0x1c3f1e){const _0x4ac14e=_0x4ac1();return _0x374d=function(_0x374d06,_0x1ab1f){_0x374d06=_0x374d06-0x18b;let _0x10e935=_0x4ac14e[_0x374d06];return _0x10e935;},_0x374d(_0xf35631,_0x1c3f1e);}function _0x4ac1(){const _0x4747ae=['dataSet','1588524GcGoqu','push','container','zIndex','remove','defineProperty','create','add','context','width','all','_mapVRenderer','10MaDKpH','SCENE3D','top','options','MultiLineString','_map','render','methods','addAnimatorEvent','mapvFixedHeight','destroy','_onMoveStartEvent','forEach','1092510DHtlTA','length','498930oZyIRI','removeData','devicePixelRatio','height','_data','updateData','mouseMove','cameraMoveEnd','keys','scene','canvas','6BdjvKR','data','2bYTtyW','fillRect','_reset','Point','_onMapClick','7KXKywn','addData','mapvAutoHeight','get','16029695wJXTGH','EventType','globalCompositeOperation','_pointerEvents','LayerUtil','_onMoveEndEvent','isEnabledTime','display','mapv','Cartesian3','mapvDepthTest','animatorMovestartEvent','_cache_event','_mountedHook','trails','SceneMode','initDevicePixelRatio','absolute','click','pointerEvents','1741435kqmatC','resize','clearData','init','MultiPolygon','positionWC','1209920FupDVz','1478196BSgafb','style','mousemoveEvent','windowPosition','parentElement','map','clear','animation','default','getExtentByGeoJSON','Util','mouseDown','update','getData','xmax','size','unbindEvent','off','destination-out','0px','mousemove','_addedHook'];_0x4ac1=function(){return _0x4747ae;};return _0x4ac1();}const _0x4d1ec4=_0x374d;(function(_0x4d16c7,_0x3699ce){const _0x3fc6a4={_0x154730:0x19d,_0x261c0f:0x1a2,_0x1aff4b:0x1c1,_0xa7040e:0x1a6},_0xdaa306=_0x374d,_0x4661e2=_0x4d16c7();while(!![]){try{const _0x7c9f77=parseInt(_0xdaa306(_0x3fc6a4._0x154730))/0x1*(-parseInt(_0xdaa306(0x190))/0x2)+parseInt(_0xdaa306(0x18e))/0x3+-parseInt(_0xdaa306(0x1d8))/0x4+-parseInt(_0xdaa306(0x1ba))/0x5*(parseInt(_0xdaa306(0x19b))/0x6)+parseInt(_0xdaa306(_0x3fc6a4._0x261c0f))/0x7*(-parseInt(_0xdaa306(0x1c0))/0x8)+-parseInt(_0xdaa306(_0x3fc6a4._0x1aff4b))/0x9*(parseInt(_0xdaa306(0x1e4))/0xa)+parseInt(_0xdaa306(_0x3fc6a4._0xa7040e))/0xb;if(_0x7c9f77===_0x3699ce)break;else _0x4661e2['push'](_0x4661e2['shift']());}catch(_0x232e4c){_0x4661e2['push'](_0x4661e2['shift']());}}}(_0x4ac1,0x3fdcf));function _interopNamespace(_0x4395cf){const _0x32546b={_0x36eefa:0x198},_0x3e5665=_0x374d;if(_0x4395cf&&_0x4395cf['__esModule'])return _0x4395cf;var _0x4af86e=Object['create'](null);return _0x4395cf&&Object[_0x3e5665(_0x32546b._0x36eefa)](_0x4395cf)[_0x3e5665(0x18d)](function(_0x39f40b){if(_0x39f40b!=='default'){var _0x3cea08=Object['getOwnPropertyDescriptor'](_0x4395cf,_0x39f40b);Object['defineProperty'](_0x4af86e,_0x39f40b,_0x3cea08['get']?_0x3cea08:{'enumerable':!![],'get':function(){return _0x4395cf[_0x39f40b];}});}}),_0x4af86e['default']=_0x4395cf,_0x4af86e;}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(_0x1ec7d6,_0x149a80,_0x158cc1,_0x1a9208){const _0x3996ce={_0xcdf294:0x199},_0x4f0844=_0x374d;super(_0x1ec7d6,_0x149a80,_0x158cc1);if(!BaseLayer$1)return;this[_0x4f0844(0x1c6)]=_0x1ec7d6,this[_0x4f0844(_0x3996ce._0xcdf294)]=_0x1ec7d6['scene'],this[_0x4f0844(0x1d7)]=_0x149a80,_0x158cc1=_0x158cc1||{},this[_0x4f0844(0x1bd)](_0x158cc1),this['argCheck'](_0x158cc1),this[_0x4f0844(0x1b6)](),this['canvasLayer']=_0x1a9208,this['stopAniamation']=!0x1,this['animation']=_0x158cc1['animation'];}['initDevicePixelRatio'](){this['devicePixelRatio']=window['devicePixelRatio']||0x1;}[_0x4d1ec4(0x1ec)](){}[_0x4d1ec4(0x1b1)](){const _0x21da6d=_0x4d1ec4,_0x5ba445=this[_0x21da6d(0x1e7)]['animation'];this['isEnabledTime']()&&this['animator']&&(this['steps']['step']=_0x5ba445['stepsRange']['start']);}['animatorMoveendEvent'](){const _0x38b5b7={_0x1ed0f2:0x1ac},_0x1ee4d9=_0x4d1ec4;this[_0x1ee4d9(_0x38b5b7._0x1ed0f2)]()&&this['animator'];}['getContext'](){return this['canvasLayer']['canvas']['getContext'](this['context']);}['init'](_0x13de2b){const _0x25a476={_0x3eff66:0x1db},_0x366e19=_0x4d1ec4;this['options']=_0x13de2b,this['initDataRange'](_0x13de2b),this[_0x366e19(0x1e0)]=this['options']['context']||'2d',Cesium$1['defined'](this['options']['zIndex'])&&this['canvasLayer']&&this['canvasLayer']['setZIndex']&&this['canvasLayer']['setZIndex'](this['options'][_0x366e19(_0x25a476._0x3eff66)]),this['initAnimator']();}['_canvasUpdate'](_0xe35245){const _0x154f02={_0x18ca7b:0x1c7,_0x5cd36b:0x1a8,_0x569303:0x1d3,_0x1cc4b1:0x193,_0x1eaa29:0x1a5,_0x3ca75c:0x1e7,_0xec203d:0x1af,_0xbd8e17:0x1e7},_0x4d2514={_0x2f4c1a:0x1af,_0x4cb3f8:0x1e5,_0x4fe1d3:0x1bf},_0x1dc9a2=_0x4d1ec4,_0x46c134=this['scene'];if(this['canvasLayer']&&!this['stopAniamation']){const _0x51da6a=this['options'][_0x1dc9a2(0x1c8)],_0x2a3c95=this['getContext']();if(this['isEnabledTime']()){if(void 0x0===_0xe35245)return void this[_0x1dc9a2(_0x154f02._0x18ca7b)](_0x2a3c95);this[_0x1dc9a2(0x1e0)]==='2d'&&(_0x2a3c95['save'](),_0x2a3c95[_0x1dc9a2(_0x154f02._0x5cd36b)]=_0x1dc9a2(_0x154f02._0x569303),_0x2a3c95['fillStyle']='rgba(0,\x200,\x200,\x20.1)',_0x2a3c95[_0x1dc9a2(0x19e)](0x0,0x0,_0x2a3c95['canvas'][_0x1dc9a2(0x1e1)],_0x2a3c95['canvas'][_0x1dc9a2(_0x154f02._0x1cc4b1)]),_0x2a3c95['restore']());}else this['clear'](_0x2a3c95);if(this['context']==='2d')for(const _0x470151 in this['options']){_0x2a3c95[_0x470151]=this['options'][_0x470151];}else _0x2a3c95['clear'](_0x2a3c95['COLOR_BUFFER_BIT']);const _0x9c2d96={'transferCoordinate':function(_0x26637a){const _0x48b15f=_0x1dc9a2,_0x5e4825=null;let _0x3daac4=_0x46c134[_0x48b15f(0x1ed)];_0x46c134[_0x48b15f(0x1a4)]&&(_0x3daac4=_0x46c134['globe']['getHeight'](Cesium$1['Cartographic']['fromDegrees'](_0x26637a[0x0],_0x26637a[0x1])));const _0x1e7316=Cesium$1[_0x48b15f(_0x4d2514._0x2f4c1a)]['fromDegrees'](_0x26637a[0x0],_0x26637a[0x1],_0x3daac4);if(!_0x1e7316)return _0x5e4825;const _0x33aa47=_0x46c134['cartesianToCanvasCoordinates'](_0x1e7316);if(!_0x33aa47)return _0x5e4825;if(_0x46c134[_0x48b15f(0x1b0)]&&_0x46c134['mode']===Cesium$1[_0x48b15f(0x1b5)][_0x48b15f(_0x4d2514._0x4cb3f8)]){const _0x1ea122=new Cesium$1['EllipsoidalOccluder'](_0x46c134['globe']['ellipsoid'],_0x46c134['camera'][_0x48b15f(_0x4d2514._0x4fe1d3)]),_0x5a18db=_0x1ea122['isPointVisible'](_0x1e7316);if(!_0x5a18db)return _0x5e4825;}return[_0x33aa47['x'],_0x33aa47['y']];}};void 0x0!==_0xe35245&&(_0x9c2d96['filter']=function(_0x139f24){const _0x37ea5b=_0x1dc9a2,_0x103d1a=_0x51da6a[_0x37ea5b(0x1b4)]||0xa;return!!(_0xe35245&&_0x139f24['time']>_0xe35245-_0x103d1a&&_0x139f24['time']<_0xe35245);});const _0x148983=this['dataSet'][_0x1dc9a2(_0x154f02._0x1eaa29)](_0x9c2d96);this['processData'](_0x148983),this[_0x1dc9a2(_0x154f02._0x3ca75c)]['unit']==='m'&&this[_0x1dc9a2(0x1e7)][_0x1dc9a2(0x1d0)],this[_0x1dc9a2(_0x154f02._0x3ca75c)]['_size']=this[_0x1dc9a2(0x1e7)]['size'];const _0x5efd93=_0x46c134['cartesianToCanvasCoordinates'](Cesium$1[_0x1dc9a2(_0x154f02._0xec203d)]['fromDegrees'](0x0,0x0));if(!_0x5efd93)return;this['drawContext'](_0x2a3c95,new mapv__namespace['DataSet'](_0x148983),this[_0x1dc9a2(_0x154f02._0xbd8e17)],_0x5efd93),this[_0x1dc9a2(_0x154f02._0x3ca75c)]['updateCallback']&&this['options']['updateCallback'](_0xe35245);}}['updateData'](_0x57d24b,_0x1c3a2d){const _0x2fe923=_0x4d1ec4;let _0x524014=_0x57d24b;_0x524014&&_0x524014['get']&&(_0x524014=_0x524014['get']()),void 0x0!==_0x524014&&this[_0x2fe923(0x1d7)]['set'](_0x524014),super[_0x2fe923(0x1cd)]({'options':_0x1c3a2d});}['addData'](_0x8091bb,_0x548ce8){const _0x2d32ff={_0x3243c3:0x1df},_0x533302=_0x4d1ec4;let _0x620d47=_0x8091bb;_0x8091bb&&_0x8091bb['get']&&(_0x620d47=_0x8091bb['get']()),this['dataSet'][_0x533302(_0x2d32ff._0x3243c3)](_0x620d47),this['update']({'options':_0x548ce8});}['getData'](){return this['dataSet'];}['removeData'](_0x4ec8d2){const _0x3b8eb0={_0x25cc93:0x1d7},_0x47bde3=_0x4d1ec4;if(this['dataSet']){const _0x2a3c9f=this['dataSet'][_0x47bde3(0x1a5)]({'filter':function(_0x37ebc0){return _0x4ec8d2==null||typeof _0x4ec8d2!=='function'||!_0x4ec8d2(_0x37ebc0);}});this[_0x47bde3(_0x3b8eb0._0x25cc93)]['set'](_0x2a3c9f),this[_0x47bde3(0x1cd)]({'options':null});}}['clearData'](){this['dataSet']&&this['dataSet']['clear'](),this['update']({'options':null});}['draw'](){this['canvasLayer']['draw']();}['clear'](_0xfc4b60){const _0x1f7488={_0x414fca:0x19a},_0xddef55=_0x4d1ec4;_0xfc4b60&&_0xfc4b60['clearRect']&&_0xfc4b60['clearRect'](0x0,0x0,_0xfc4b60[_0xddef55(_0x1f7488._0x414fca)]['width'],_0xfc4b60['canvas']['height']);}[_0x4d1ec4(0x18b)](){this['clear'](this['getContext']()),this['clearData'](),this['animator']&&this['animator']['stop'](),this['animator']=null,this['canvasLayer']=null;}}if(mapv__namespace!==null&&mapv__namespace!==void 0x0&&mapv__namespace['DataSet'])mapv__namespace['DataSet']['prototype']['transferCoordinate']=function(_0x3c1a21,_0x4a543c,_0x1577a9,_0x5d80de){const _0x363218={_0x4df1d0:0x1a0,_0xc03fbb:0x1e8,_0x3d6970:0x1be},_0x54a002=_0x4d1ec4;_0x5d80de=_0x5d80de||'_coordinates',_0x1577a9=_0x1577a9||'coordinates';for(let _0x2a1ace=0x0;_0x2a1ace<_0x3c1a21['length'];_0x2a1ace++){const _0xc2cb6e=_0x3c1a21[_0x2a1ace]['geometry'],_0x28f05a=_0xc2cb6e[_0x1577a9];switch(_0xc2cb6e['type']){case _0x54a002(_0x363218._0x4df1d0):{const _0x1e9028=_0x4a543c(_0x28f05a);_0x1e9028?_0xc2cb6e[_0x5d80de]=_0x1e9028:_0xc2cb6e[_0x5d80de]=[-0x3e7,-0x3e7];}break;case'LineString':{const _0x2341f5=[];for(let _0x45a706=0x0;_0x45a706<_0x28f05a[_0x54a002(0x18f)];_0x45a706++){const _0x3974fd=_0x4a543c(_0x28f05a[_0x45a706]);_0x3974fd&&_0x2341f5['push'](_0x3974fd);}_0xc2cb6e[_0x5d80de]=_0x2341f5;}break;case _0x54a002(_0x363218._0xc03fbb):case'Polygon':{const _0x35bf6d=_0x52317c(_0x28f05a);_0xc2cb6e[_0x5d80de]=_0x35bf6d;}break;case _0x54a002(_0x363218._0x3d6970):{const _0x432ef2=[];for(let _0x144a20=0x0;_0x144a20<_0x28f05a['length'];_0x144a20++){const _0x5c4753=_0x52317c(_0x28f05a[_0x144a20]);_0x5c4753['length']>0x0&&_0x432ef2['push'](_0x5c4753);}_0xc2cb6e[_0x5d80de]=_0x432ef2;}break;}}function _0x52317c(_0x1338f8){const _0x45aa4a=_0x54a002,_0xab2279=[];for(let _0x1238c6=0x0;_0x1238c6<_0x1338f8['length'];_0x1238c6++){const _0x26db6e=_0x1338f8[_0x1238c6],_0x35d634=[];for(let _0x352961=0x0;_0x352961<_0x26db6e['length'];_0x352961++){const _0xac5ca3=_0x4a543c(_0x26db6e[_0x352961]);_0xac5ca3&&_0x35d634[_0x45aa4a(0x1d9)](_0xac5ca3);}_0x35d634['length']>0x0&&_0xab2279['push'](_0x35d634);}return _0xab2279;}return _0x3c1a21;};else throw new Error('请引入\x20mapv\x20库\x20');const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer']['BaseLayer'];class MapVLayer extends BaseLayer{constructor(_0x388ec2,_0x3d90bb){const _0x3126da={_0x6e9c8e:0x19a},_0x5da078=_0x4d1ec4;super(_0x388ec2),this['_pointerEvents']=this['options']['pointerEvents'],this['dataSet']=_0x3d90bb||new mapv__namespace['DataSet'](_0x388ec2[_0x5da078(0x19c)]),this[_0x5da078(_0x3126da._0x6e9c8e)]=null;}get['pointerEvents'](){return this['_pointerEvents'];}set[_0x4d1ec4(0x1b9)](_0x5882ab){const _0x11e718={_0x13b6b3:0x19a,_0x2d41ac:0x1e2},_0x389680=_0x4d1ec4;this[_0x389680(0x1a9)]=_0x5882ab,this['canvas']&&(_0x5882ab?this[_0x389680(_0x11e718._0x13b6b3)]['style']['pointerEvents']=_0x389680(_0x11e718._0x2d41ac):this[_0x389680(0x19a)]['style']['pointerEvents']='none');}['_showHook'](_0x40ef84){const _0x30f112={_0x2a3ccc:0x1c2},_0xc087b7=_0x4d1ec4;_0x40ef84?this['canvas'][_0xc087b7(0x1c2)][_0xc087b7(0x1ad)]='block':this['canvas'][_0xc087b7(_0x30f112._0x2a3ccc)]['display']='none';}[_0x4d1ec4(0x1b3)](){const _0x168dc7={_0xe624d9:0x199},_0x1eb308=_0x4d1ec4;this['_map'][_0x1eb308(_0x168dc7._0xe624d9)]['mapvDepthTest']=this['options']['depthTest']??!![],this['_map']['scene']['mapvAutoHeight']=this['options']['clampToGround']??![],this['_map']['scene']['mapvFixedHeight']=this['options']['fixedHeight']??0x0;}['_addedHook'](){const _0x4199dc={_0x21c799:0x194,_0x1719f1:0x1e9,_0x2a9836:0x1ea},_0x14a81e=_0x4d1ec4;this['dataSet']&&(!this['dataSet']['_data']||this[_0x14a81e(0x1d7)]['_data'][_0x14a81e(0x18f)]===0x0)&&(this['dataSet'][_0x14a81e(_0x4199dc._0x21c799)]=[]['concat'](this['dataSet']['_dataCache'])),this['_mapVRenderer']=new MapVRenderer(this[_0x14a81e(_0x4199dc._0x1719f1)],this['dataSet'],this['options'],this),this['initDevicePixelRatio'](),this['canvas']=this['_createCanvas'](),this[_0x14a81e(0x1ea)]=this[_0x14a81e(_0x4199dc._0x2a9836)]['bind'](this),this['bindEvent'](),this['_reset']();}['_removedHook'](){const _0x33a87b=_0x4d1ec4;this[_0x33a87b(0x1d1)](),this['_mapVRenderer']&&(this['_mapVRenderer'][_0x33a87b(0x18b)](),this['_mapVRenderer']=null),this['canvas']['parentElement']['removeChild'](this['canvas']);}['initDevicePixelRatio'](){const _0x5ae1ac={_0x2fed85:0x192},_0x4934bf=_0x4d1ec4;this['devicePixelRatio']=window[_0x4934bf(_0x5ae1ac._0x2fed85)]||0x1;}['bindEvent'](){const _0x432858={_0x1a55f1:0x1cc,_0x5bab64:0x18c,_0x2b8aaa:0x1e9,_0x1e75a7:0x1e7,_0x1b129d:0x1eb},_0x3a269c=_0x4d1ec4;var _0x5bff9a,_0x3a61f7;this['_map']['on'](mars3d__namespace['EventType'][_0x3a269c(_0x432858._0x1a55f1)],this[_0x3a269c(_0x432858._0x5bab64)],this),this[_0x3a269c(_0x432858._0x2b8aaa)]['on'](mars3d__namespace['EventType']['cameraMoveStart'],this['_onMoveStartEvent'],this),this['_map']['on'](mars3d__namespace['EventType']['cameraMoveEnd'],this['_onMoveEndEvent'],this),(_0x5bff9a=this[_0x3a269c(_0x432858._0x1e75a7)])!==null&&_0x5bff9a!==void 0x0&&(_0x5bff9a=_0x5bff9a[_0x3a269c(_0x432858._0x1b129d)])!==null&&_0x5bff9a!==void 0x0&&_0x5bff9a['click']&&this['_map']['on'](mars3d__namespace['EventType']['click'],this[_0x3a269c(0x1a1)],this),(_0x3a61f7=this[_0x3a269c(0x1e7)])!==null&&_0x3a61f7!==void 0x0&&(_0x3a61f7=_0x3a61f7[_0x3a269c(0x1eb)])!==null&&_0x3a61f7!==void 0x0&&_0x3a61f7['mousemove']&&this['_map']['on'](mars3d__namespace['EventType']['mouseMove'],this['_onMapMouseMove'],this);}[_0x4d1ec4(0x1d1)](){const _0x4e13f1={_0xde6fe5:0x1e9,_0x31026d:0x1e9},_0x3120dc=_0x4d1ec4;var _0x563d03,_0x463293;this[_0x3120dc(_0x4e13f1._0xde6fe5)]['off'](mars3d__namespace['EventType']['mouseDown'],this['_onMoveStartEvent'],this),this[_0x3120dc(0x1e9)][_0x3120dc(0x1d2)](mars3d__namespace['EventType']['cameraMoveStart'],this[_0x3120dc(0x18c)],this),this['_map'][_0x3120dc(0x1d2)](mars3d__namespace['EventType'][_0x3120dc(0x197)],this[_0x3120dc(0x1ab)],this),this[_0x3120dc(_0x4e13f1._0x31026d)]['off'](mars3d__namespace['EventType']['postRender'],this['_reset'],this),(_0x563d03=this[_0x3120dc(0x1e7)])!==null&&_0x563d03!==void 0x0&&(_0x563d03=_0x563d03['methods'])!==null&&_0x563d03!==void 0x0&&_0x563d03['click']&&this[_0x3120dc(0x1e9)]['off'](mars3d__namespace['EventType']['click'],this['_onMapClick'],this),(_0x463293=this['options'])!==null&&_0x463293!==void 0x0&&(_0x463293=_0x463293[_0x3120dc(0x1eb)])!==null&&_0x463293!==void 0x0&&_0x463293['mousemove']&&this['_map']['off'](mars3d__namespace['EventType'][_0x3120dc(0x196)],this['_onMapMouseMove'],this);}['_onMoveStartEvent'](){const _0x18ea71={_0x4acf85:0x1a7,_0x19fe69:0x1a7,_0x591808:0x19f},_0x553dc9=_0x4d1ec4;this['_mapVRenderer']&&(this[_0x553dc9(0x1e3)]['animatorMovestartEvent'](),this['_map']['off'](mars3d__namespace[_0x553dc9(_0x18ea71._0x4acf85)]['postRender'],this['_reset'],this),this['_map']['on'](mars3d__namespace[_0x553dc9(_0x18ea71._0x19fe69)]['postRender'],this[_0x553dc9(_0x18ea71._0x591808)],this));}['_onMoveEndEvent'](){const _0x1561e2={_0x4ac94a:0x19f},_0x5b7303=_0x4d1ec4;this['_mapVRenderer']&&(this[_0x5b7303(0x1e9)]['off'](mars3d__namespace['EventType']['postRender'],this[_0x5b7303(_0x1561e2._0x4ac94a)],this),this['_mapVRenderer']['animatorMoveendEvent'](),this['_reset']());}['_setOptionsHook'](_0x10b701,_0x368ced){const _0x4b7734={_0x639d53:0x1d6},_0x5246a3=_0x4d1ec4;this['_removedHook'](),this[_0x5246a3(_0x4b7734._0x639d53)]();}['addData'](_0x5d5e53){const _0x2a7894=_0x4d1ec4;this['_mapVRenderer']&&this['_mapVRenderer'][_0x2a7894(0x1a3)](_0x5d5e53,this['options']);}['updateData'](_0x10d9e3){const _0x1e3b15={_0x3bb9cb:0x195},_0x3d50b0=_0x4d1ec4;this['_mapVRenderer']&&this['_mapVRenderer'][_0x3d50b0(_0x1e3b15._0x3bb9cb)](_0x10d9e3,this['options']);}[_0x4d1ec4(0x1ce)](){const _0xfb75f7={_0x1768ac:0x1d7},_0xb2185d=_0x4d1ec4;return this['_mapVRenderer']&&(this['dataSet']=this['_mapVRenderer']['getData']()),this[_0xb2185d(_0xfb75f7._0x1768ac)];}['removeData'](_0x12aa3f){const _0x72563d={_0x5eb8a9:0x191},_0x4af87c=_0x4d1ec4;this['_mapVRenderer']&&this['_mapVRenderer'][_0x4af87c(_0x72563d._0x5eb8a9)](_0x12aa3f);}['removeAllData'](){const _0x195af5=_0x4d1ec4;this['_mapVRenderer']&&this['_mapVRenderer'][_0x195af5(0x1bc)]();}['_createCanvas'](){const _0x2cce21={_0x5c0a81:0x1de,_0x252b96:0x1c2,_0x25ee88:0x1e6,_0x42a6e2:0x1d4,_0x59ab85:0x19a,_0x3c511c:0x1e9,_0x327550:0x193,_0x479bee:0x1c2,_0xec1282:0x193,_0x52fb4c:0x1e7},_0x25b451=_0x4d1ec4,_0x46ca69=mars3d__namespace['DomUtil'][_0x25b451(_0x2cce21._0x5c0a81)]('canvas','mars3d-mapv',this['_map'][_0x25b451(0x1da)]);_0x46ca69['id']=this['id'],_0x46ca69[_0x25b451(_0x2cce21._0x252b96)]['position']='absolute',_0x46ca69['style'][_0x25b451(_0x2cce21._0x25ee88)]='0px',_0x46ca69['style']['left']=_0x25b451(_0x2cce21._0x42a6e2),_0x46ca69['width']=parseInt(this['_map'][_0x25b451(_0x2cce21._0x59ab85)]['width']),_0x46ca69['height']=parseInt(this[_0x25b451(_0x2cce21._0x3c511c)]['canvas'][_0x25b451(_0x2cce21._0x327550)]),_0x46ca69['style']['width']=this[_0x25b451(0x1e9)][_0x25b451(_0x2cce21._0x59ab85)][_0x25b451(_0x2cce21._0x479bee)][_0x25b451(0x1e1)],_0x46ca69['style'][_0x25b451(_0x2cce21._0xec1282)]=this['_map']['canvas'][_0x25b451(_0x2cce21._0x252b96)][_0x25b451(0x193)],_0x46ca69[_0x25b451(0x1c2)][_0x25b451(0x1b9)]=this['_pointerEvents']?'auto':'none',_0x46ca69['style']['zIndex']=this['options'][_0x25b451(0x1db)]??0x9;if(this[_0x25b451(_0x2cce21._0x52fb4c)]['context']==='2d'){const _0x328f31=this[_0x25b451(0x192)];_0x46ca69['getContext'](this['options']['context'])['scale'](_0x328f31,_0x328f31);}return _0x46ca69;}['_reset'](){const _0x44feb1={_0x43dd11:0x1bb},_0x245155=_0x4d1ec4;this[_0x245155(_0x44feb1._0x43dd11)](),this[_0x245155(0x1ea)]();}['draw'](){this['_reset']();}[_0x4d1ec4(0x1dc)](){const _0x5a46f3={_0x2efca6:0x1c5},_0x183112=_0x4d1ec4;this[_0x183112(0x1e3)]&&(this['_mapVRenderer']['destroy'](),this['_mapVRenderer']=null),this[_0x183112(0x19a)][_0x183112(_0x5a46f3._0x2efca6)]['removeChild'](this['canvas']);}['render'](){this['_mapVRenderer']['_canvasUpdate']();}['resize'](){const _0x3653d9={_0x420236:0x19a,_0x5535c7:0x19a,_0x402df7:0x1b7,_0x1b4265:0x1e1,_0xc0bcfb:0x1e1},_0x13ea4f=_0x4d1ec4;if(this[_0x13ea4f(_0x3653d9._0x420236)]){const _0x293061=this[_0x13ea4f(_0x3653d9._0x5535c7)];_0x293061['style']['position']=_0x13ea4f(_0x3653d9._0x402df7),_0x293061['style']['top']='0px',_0x293061['style']['left']='0px',_0x293061['width']=parseInt(this['_map'][_0x13ea4f(0x19a)][_0x13ea4f(_0x3653d9._0x1b4265)]),_0x293061['height']=parseInt(this['_map']['canvas']['height']),_0x293061['style'][_0x13ea4f(_0x3653d9._0xc0bcfb)]=this['_map']['canvas']['style']['width'],_0x293061['style']['height']=this[_0x13ea4f(0x1e9)]['canvas']['style']['height'];}}['getRectangle'](_0x24b15d){const _0x37aa26={_0x132780:0x1cf},_0x5ad596=_0x4d1ec4;if(!this['dataSet']||!this['dataSet']['_data'])return;const _0x174870=mars3d__namespace[_0x5ad596(0x1cb)][_0x5ad596(0x1ca)]({'type':'FeatureCollection','features':this['dataSet']['_data']});if(!_0x174870)return;return _0x24b15d!==null&&_0x24b15d!==void 0x0&&_0x24b15d['isFormat']?_0x174870:Cesium['Rectangle']['fromDegrees'](_0x174870['xmin'],_0x174870['ymin'],_0x174870[_0x5ad596(_0x37aa26._0x132780)],_0x174870['ymax']);}[_0x4d1ec4(0x1a1)](_0x3504e1){const _0x2bbd53={_0x58ecc4:0x1c4},_0x3778e1=_0x4d1ec4;this['_cache_event']=_0x3504e1,this['_mapVRenderer']&&this['_mapVRenderer']['clickEvent'](_0x3504e1[_0x3778e1(_0x2bbd53._0x58ecc4)],_0x3504e1);}['_onMapMouseMove'](_0x516f21){const _0x1f6259=_0x4d1ec4;this['_cache_event']=_0x516f21,this['_mapVRenderer']&&this[_0x1f6259(0x1e3)][_0x1f6259(0x1c3)](_0x516f21['windowPosition'],_0x516f21);}['on'](_0x452187,_0x3a5de1,_0x2b98ad){const _0x310d47={_0x1c18ba:0x1e7,_0x502320:0x1eb,_0x54646c:0x1b8,_0x7a68f7:0x1e9,_0x290ed1:0x1a7,_0x3d8cb1:0x196},_0x2e8337=_0x4d1ec4;this[_0x2e8337(_0x310d47._0x1c18ba)][_0x2e8337(0x1eb)]=this['options'][_0x2e8337(_0x310d47._0x502320)]||{};if(_0x452187===mars3d__namespace['EventType'][_0x2e8337(_0x310d47._0x54646c)])this['options'][_0x2e8337(0x1eb)][_0x2e8337(_0x310d47._0x54646c)]=_0x311ace=>{const _0x42ae1f=_0x2e8337;_0x311ace&&_0x3a5de1['bind'](_0x2b98ad)({...this[_0x42ae1f(0x1b2)],'layer':this,'data':_0x311ace});},this[_0x2e8337(_0x310d47._0x7a68f7)]['on'](mars3d__namespace['EventType']['click'],this[_0x2e8337(0x1a1)],this);else _0x452187===mars3d__namespace[_0x2e8337(_0x310d47._0x290ed1)][_0x2e8337(_0x310d47._0x3d8cb1)]&&(this['options'][_0x2e8337(_0x310d47._0x502320)]['mousemove']=_0x4d60f2=>{_0x4d60f2&&_0x3a5de1['bind'](_0x2b98ad)({...this['_cache_event'],'layer':this,'data':_0x4d60f2});},this['_map']['on'](mars3d__namespace['EventType']['mouseMove'],this['_onMapMouseMove'],this));return this;}['off'](_0x5f4364,_0x350d4b){const _0x8c1b5b={_0x4c714b:0x1eb},_0x1f70d6=_0x4d1ec4;if(_0x5f4364==='click'){var _0x362a1d;this['_map']['off'](_0x5f4364,this['_onMapClick'],this),(_0x362a1d=this[_0x1f70d6(0x1e7)][_0x1f70d6(0x1eb)])!==null&&_0x362a1d!==void 0x0&&_0x362a1d['mousemove']&&delete this[_0x1f70d6(0x1e7)]['methods']['click'];}else{if(_0x5f4364==='mouseMove'){var _0x52d41e;this['_map']['off'](_0x5f4364,this['_onMapMouseMove'],this),(_0x52d41e=this[_0x1f70d6(0x1e7)][_0x1f70d6(_0x8c1b5b._0x4c714b)])!==null&&_0x52d41e!==void 0x0&&_0x52d41e[_0x1f70d6(0x1d5)]&&delete this['options']['methods']['mousemove'];}}return this;}}mars3d__namespace[_0x4d1ec4(0x1aa)]['register'](_0x4d1ec4(0x1ae),MapVLayer),mars3d__namespace['layer']['MapVLayer']=MapVLayer,mars3d__namespace['mapv']=mapv__namespace,exports['MapVLayer']=MapVLayer,Object['keys'](mapv)['forEach'](function(_0x3702dc){const _0x286dc3=_0x4d1ec4;if(_0x3702dc!==_0x286dc3(0x1c9)&&!exports['hasOwnProperty'](_0x3702dc))Object['defineProperty'](exports,_0x3702dc,{'enumerable':!![],'get':function(){return mapv[_0x3702dc];}});}),Object[_0x4d1ec4(0x1dd)](exports,'__esModule',{'value':!![]});
|
|
14
|
+
'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();}
|
|
15
15
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mars3d-mapv",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.15",
|
|
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.
|
|
13
|
+
"mars3d": "~3.6.15"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"lint": "eslint ./src/**/*.{js,ts} --fix"
|