LinYeFangHuo/packages/mars3d/plugins/mapv/mars3d-mapv.js

16 lines
25 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/**
* Mars3D平台插件,结合mapv可视化功能插件 mars3d-mapv
*
* 版本信息v3.10.1
* 编译日期2025-08-04 14:15
* 版权所有Copyright by 火星科技 http://mars3d.cn
* 使用单位:山东慧创信息科技有限公司 2025-08-04
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, (window.mars3d || require('mars3d')), (window.mapv || require('mapv'))) :
typeof define === 'function' && define.amd ? define(['exports', 'mars3d', 'mapv'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["mars3d-mapv"] = {}, global.mars3d, global.mapv));
})(this, (function (exports, mars3d, mapv) {
'use strict';const _0x11b6f5=_0x1e61;function _0x1e61(_0x4810dc,_0x3a6fb2){const _0x9cfee=_0x9cfe();return _0x1e61=function(_0x1e61d9,_0x5957f9){_0x1e61d9=_0x1e61d9-0x1e8;let _0x4bacbe=_0x9cfee[_0x1e61d9];return _0x4bacbe;},_0x1e61(_0x4810dc,_0x3a6fb2);}(function(_0x5a6bd9,_0xcf354f){const _0x5866f9={_0x473705:0x202,_0x3476b5:0x1e9,_0x1293eb:0x251,_0x160361:0x21c,_0x142e36:0x24e},_0x2f396b=_0x1e61,_0x245274=_0x5a6bd9();while(!![]){try{const _0x2d1439=parseInt(_0x2f396b(_0x5866f9._0x473705))/0x1*(-parseInt(_0x2f396b(_0x5866f9._0x3476b5))/0x2)+-parseInt(_0x2f396b(0x240))/0x3*(parseInt(_0x2f396b(_0x5866f9._0x1293eb))/0x4)+parseInt(_0x2f396b(0x1f8))/0x5*(-parseInt(_0x2f396b(0x230))/0x6)+parseInt(_0x2f396b(_0x5866f9._0x160361))/0x7+parseInt(_0x2f396b(0x234))/0x8*(-parseInt(_0x2f396b(0x25b))/0x9)+-parseInt(_0x2f396b(0x213))/0xa*(-parseInt(_0x2f396b(0x235))/0xb)+parseInt(_0x2f396b(_0x5866f9._0x142e36))/0xc;if(_0x2d1439===_0xcf354f)break;else _0x245274['push'](_0x245274['shift']());}catch(_0x4b5fea){_0x245274['push'](_0x245274['shift']());}}}(_0x9cfe,0x8ec96));function _interopNamespace(_0x15ec4d){const _0x19942a={_0x361ea3:0x1ee},_0x54be0a={_0x204148:0x23b,_0x425b2d:0x22c},_0x3f1272=_0x1e61;if(_0x15ec4d&&_0x15ec4d[_0x3f1272(0x211)])return _0x15ec4d;var _0x3f6f66=Object[_0x3f1272(_0x19942a._0x361ea3)](null);return _0x15ec4d&&Object['keys'](_0x15ec4d)['forEach'](function(_0x1b6173){const _0x59600a=_0x3f1272;if(_0x1b6173!==_0x59600a(_0x54be0a._0x204148)){var _0x1d9d9a=Object[_0x59600a(_0x54be0a._0x425b2d)](_0x15ec4d,_0x1b6173);Object[_0x59600a(0x24d)](_0x3f6f66,_0x1b6173,_0x1d9d9a['get']?_0x1d9d9a:{'enumerable':!![],'get':function(){return _0x15ec4d[_0x1b6173];}});}}),_0x3f6f66['default']=_0x15ec4d,_0x3f6f66;}var mars3d__namespace=_interopNamespace(mars3d),mapv__namespace=_interopNamespace(mapv);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(_0x2a5ad9,_0x498529,_0x461063,_0x27fc69){const _0x87a97c={_0x4f4316:0x25a,_0x1f36cf:0x24f,_0x1623da:0x256,_0x12ccb5:0x231},_0x4877c9=_0x1e61;super(_0x2a5ad9,_0x498529,_0x461063);if(!BaseLayer$1)return;this[_0x4877c9(_0x87a97c._0x4f4316)]=_0x2a5ad9,this['scene']=_0x2a5ad9['scene'],this[_0x4877c9(_0x87a97c._0x1f36cf)]=_0x498529,_0x461063=_0x461063||{},this[_0x4877c9(0x1ea)](_0x461063),this[_0x4877c9(0x1ef)](_0x461063),this['initDevicePixelRatio'](),this[_0x4877c9(_0x87a97c._0x1623da)]=_0x27fc69,this['stopAniamation']=!0x1,this[_0x4877c9(_0x87a97c._0x12ccb5)]=_0x461063['animation'];}['initDevicePixelRatio'](){this['devicePixelRatio']=window['devicePixelRatio']||0x1;}['addAnimatorEvent'](){}[_0x11b6f5(0x260)](){const _0x2979bd=_0x11b6f5,_0xb07488=this[_0x2979bd(0x241)]['animation'];this['isEnabledTime']()&&this[_0x2979bd(0x237)]&&(this['steps']['step']=_0xb07488['stepsRange']['start']);}['animatorMoveendEvent'](){this['isEnabledTime']()&&this['animator'];}['getContext'](){const _0x1a37bc={_0x486eb9:0x256},_0x489d28=_0x11b6f5;return this[_0x489d28(_0x1a37bc._0x486eb9)][_0x489d28(0x206)]['getContext'](this['context']);}[_0x11b6f5(0x1ea)](_0x3b30e0){const _0x4005c4={_0x5386bf:0x212,_0x2270bd:0x241,_0x32e44f:0x1e8},_0x2559f0=_0x11b6f5;this['options']=_0x3b30e0,this[_0x2559f0(_0x4005c4._0x5386bf)](_0x3b30e0),this['context']=this['options']['context']||'2d',Cesium$1[_0x2559f0(0x236)](this[_0x2559f0(_0x4005c4._0x2270bd)]['zIndex'])&&this['canvasLayer']&&this['canvasLayer']['setZIndex']&&this['canvasLayer'][_0x2559f0(0x25d)](this['options']['zIndex']),this[_0x2559f0(_0x4005c4._0x32e44f)]();}['_canvasUpdate'](_0x4c358a){const _0x4d41a9={_0x31c801:0x256,_0x1fad6c:0x231,_0x57d86a:0x233,_0x2ec9bd:0x22a,_0x4385fa:0x24c,_0x4313f6:0x208,_0x1c91de:0x252,_0x34594d:0x242,_0x5b15c4:0x204,_0x4f4322:0x22b,_0x272d0a:0x204,_0x3f532b:0x1f3,_0x5f06bc:0x224,_0x4b999e:0x246,_0x38cc13:0x24b,_0x3e1fdc:0x226,_0x5cba82:0x229,_0x5da99e:0x1eb,_0xf885dc:0x241},_0x229fc5={_0x2f74c1:0x23d},_0x483d6c={_0x127b49:0x203,_0x53aabe:0x21e},_0x747b89=_0x11b6f5;if(!this[_0x747b89(_0x4d41a9._0x31c801)]||this['stopAniamation'])return;const _0x431672=this['scene'],_0x550133=this[_0x747b89(0x241)][_0x747b89(_0x4d41a9._0x1fad6c)],_0x581e50=this['getContext']();if(this[_0x747b89(_0x4d41a9._0x57d86a)]()){if(void 0x0===_0x4c358a)return void this['clear'](_0x581e50);this[_0x747b89(0x252)]==='2d'&&(_0x581e50[_0x747b89(_0x4d41a9._0x2ec9bd)](),_0x581e50['globalCompositeOperation']=_0x747b89(_0x4d41a9._0x4385fa),_0x581e50[_0x747b89(0x21d)]=_0x747b89(_0x4d41a9._0x4313f6),_0x581e50['fillRect'](0x0,0x0,_0x581e50['canvas']['width'],_0x581e50['canvas'][_0x747b89(0x1fb)]),_0x581e50['restore']());}else this['clear'](_0x581e50);if(this[_0x747b89(_0x4d41a9._0x1c91de)]==='2d')for(const _0x1cc566 in this[_0x747b89(0x241)]){_0x581e50[_0x1cc566]=this['options'][_0x1cc566];}else _0x581e50['clear'](_0x581e50['COLOR_BUFFER_BIT']);const _0x1ff84e={'transferCoordinate':function(_0xe3f0ea){const _0x2067bc=_0x747b89,_0xce4487=null;let _0x1a1872=_0x431672['mapvFixedHeight'];_0x431672['mapvAutoHeight']&&(_0x1a1872=_0x431672['getHeight'](Cesium$1['Cartographic'][_0x2067bc(0x220)](_0xe3f0ea[0x0],_0xe3f0ea[0x1])));const _0x5be8e2=Cesium$1[_0x2067bc(0x20b)][_0x2067bc(0x220)](_0xe3f0ea[0x0],_0xe3f0ea[0x1],_0x1a1872);if(!_0x5be8e2)return _0xce4487;const _0x3f4c2a=mars3d__namespace['PointTrans'][_0x2067bc(_0x483d6c._0x127b49)](_0x431672,_0x5be8e2);if(!_0x3f4c2a)return _0xce4487;if(_0x431672['mapvDepthTest']&&_0x431672['mode']===Cesium$1['SceneMode']['SCENE3D']){const _0x424080=new Cesium$1['EllipsoidalOccluder'](_0x431672['globe']['ellipsoid'],_0x431672['camera'][_0x2067bc(_0x483d6c._0x53aabe)]),_0x2799da=_0x424080['isPointVisible'](_0x5be8e2);if(!_0x2799da)return _0xce4487;}return[_0x3f4c2a['x'],_0x3f4c2a['y']];}};void 0x0!==_0x4c358a&&(_0x1ff84e['filter']=function(_0x26670b){const _0x63552=_0x747b89,_0x1a53c8=_0x550133[_0x63552(_0x229fc5._0x2f74c1)]||0xa;return!!(_0x4c358a&&_0x26670b['time']>_0x4c358a-_0x1a53c8&&_0x26670b[_0x63552(0x1ff)]<_0x4c358a);});let _0x55bd6c;if(this['options']['draw']==='cluster'&&(!this['options']['maxClusterZoom']||this['options'][_0x747b89(_0x4d41a9._0x34594d)]>=this['getZoom']())){this['map'][_0x747b89(0x22f)]();const _0x5016a7=this['getZoom'](),_0x3f3934=this['supercluster']['getClusters']([-0xb4,-0x5a,0xb4,0x5a],_0x5016a7);this[_0x747b89(0x224)]=this['supercluster'][_0x747b89(_0x4d41a9._0x5b15c4)][_0x5016a7][_0x747b89(_0x4d41a9._0x4f4322)],this['pointCountMin']=this['supercluster'][_0x747b89(_0x4d41a9._0x272d0a)][_0x5016a7][_0x747b89(0x1fd)];let _0x3e181={},_0x51e90d=null,_0x202ca0=null;this[_0x747b89(0x224)]===this['pointCountMin']?(_0x51e90d=this['options']['fillStyle'],_0x202ca0=this[_0x747b89(0x241)]['minSize']||0x8):_0x3e181=new mapv__namespace[(_0x747b89(_0x4d41a9._0x3f532b))]({'min':this['pointCountMin'],'max':this[_0x747b89(_0x4d41a9._0x5f06bc)],'minSize':this['options']['minSize']||0x8,'maxSize':this['options'][_0x747b89(_0x4d41a9._0x4b999e)]||0x1e,'gradient':this[_0x747b89(0x241)]['gradient']});for(let _0xd05da9=0x0;_0xd05da9<_0x3f3934['length'];_0xd05da9++){const _0x4cc6d0=_0x3f3934[_0xd05da9];_0x4cc6d0['properties']&&_0x4cc6d0['properties']['cluster_id']?(_0x3f3934[_0xd05da9]['size']=_0x202ca0||_0x3e181['getSize'](_0x4cc6d0['properties']['point_count']),_0x3f3934[_0xd05da9][_0x747b89(0x21d)]=_0x51e90d||_0x3e181[_0x747b89(_0x4d41a9._0x38cc13)](_0x4cc6d0[_0x747b89(_0x4d41a9._0x3e1fdc)]['point_count'])):_0x3f3934[_0xd05da9]['size']=this['options']['size'];}this['clusterDataSet']['set'](_0x3f3934),_0x55bd6c=this[_0x747b89(_0x4d41a9._0x5cba82)][_0x747b89(_0x4d41a9._0x5da99e)](_0x1ff84e);}else _0x55bd6c=this['dataSet'][_0x747b89(0x1eb)](_0x1ff84e);this['processData'](_0x55bd6c);this[_0x747b89(_0x4d41a9._0xf885dc)]['unit']==='m'&&this['options']['size']&&(this['options'][_0x747b89(0x23c)]=this['options']['size']);const _0x2f2949=mars3d__namespace['PointTrans']['toWindowCoordinates'](_0x431672,Cesium$1['Cartesian3'][_0x747b89(0x220)](0x0,0x0));if(!_0x2f2949)return;this['drawContext'](_0x581e50,new mapv__namespace['DataSet'](_0x55bd6c),this['options'],_0x2f2949),this['options']['updateCallback']&&this[_0x747b89(0x241)]['updateCallback'](_0x4c358a);}[_0x11b6f5(0x1f9)](_0x165539,_0x521a48){const _0x169148=_0x11b6f5;let _0x4dcf1f=_0x165539;_0x4dcf1f&&_0x4dcf1f['get']&&(_0x4dcf1f=_0x4dcf1f[_0x169148(0x1eb)]()),void 0x0!==_0x4dcf1f&&this['dataSet'][_0x169148(0x261)](_0x4dcf1f),super['update']({'options':_0x521a48});}[_0x11b6f5(0x1f5)](_0x24d40c,_0x3ad9c1){const _0x26b255={_0x42efe0:0x221},_0x26629e=_0x11b6f5;let _0x44820f=_0x24d40c;_0x24d40c&&_0x24d40c['get']&&(_0x44820f=_0x24d40c[_0x26629e(0x1eb)]()),this['dataSet'][_0x26629e(0x250)](_0x44820f),this[_0x26629e(_0x26b255._0x42efe0)]({'options':_0x3ad9c1});}[_0x11b6f5(0x23a)](){return this['dataSet'];}['removeData'](_0x5fe171){const _0x12627c=_0x11b6f5;if(this[_0x12627c(0x24f)]){const _0x4c9366=this['dataSet']['get']({'filter':function(_0x594dd5){const _0xfebb18=_0x12627c;return _0x5fe171==null||typeof _0x5fe171!==_0xfebb18(0x253)||!_0x5fe171(_0x594dd5);}});this['dataSet']['set'](_0x4c9366),this['update']({'options':null});}}['clearData'](){const _0x31fe6a={_0x2b580b:0x21f},_0x2c7544=_0x11b6f5;this['dataSet']&&this['dataSet'][_0x2c7544(_0x31fe6a._0x2b580b)](),this['update']({'options':null});}['draw'](){const _0x5dd5c8=_0x11b6f5;this[_0x5dd5c8(0x256)]['draw']();}['clear'](_0x39be60){const _0x129424={_0x28d996:0x239},_0x25ef33=_0x11b6f5;_0x39be60&&_0x39be60['clearRect']&&_0x39be60[_0x25ef33(_0x129424._0x28d996)](0x0,0x0,_0x39be60['canvas']['width'],_0x39be60['canvas']['height']);}[_0x11b6f5(0x1f0)](){return this['map']['level'];}[_0x11b6f5(0x1f2)](){const _0x302eba=_0x11b6f5;this['clear'](this['getContext']()),this['clearData'](),this['animator']&&this['animator'][_0x302eba(0x258)](),this['animator']=null,this['canvasLayer']=null;}}if(mapv__namespace!==null&&mapv__namespace!==void 0x0&&mapv__namespace['DataSet'])mapv__namespace[_0x11b6f5(0x23e)]['prototype']['transferCoordinate']=function(_0x388326,_0x55cc3d,_0x2f2ca0,_0x39dd29){const _0x24a15b={_0x3f1e02:0x20d,_0xcb8481:0x207},_0x11c9d2={_0x2f5b19:0x1f4},_0xc1b182=_0x11b6f5;_0x39dd29=_0x39dd29||'_coordinates',_0x2f2ca0=_0x2f2ca0||_0xc1b182(0x22d);for(let _0x7e29f2=0x0;_0x7e29f2<_0x388326['length'];_0x7e29f2++){const _0x1d2e29=_0x388326[_0x7e29f2][_0xc1b182(_0x24a15b._0x3f1e02)],_0x5cafce=_0x1d2e29[_0x2f2ca0];switch(_0x1d2e29[_0xc1b182(0x228)]){case'Point':{const _0xfb843f=_0x55cc3d(_0x5cafce);_0xfb843f?_0x1d2e29[_0x39dd29]=_0xfb843f:_0x1d2e29[_0x39dd29]=[-0x3e7,-0x3e7];}break;case'LineString':{const _0x264115=[];for(let _0x17e3af=0x0;_0x17e3af<_0x5cafce['length'];_0x17e3af++){const _0xae15c3=_0x55cc3d(_0x5cafce[_0x17e3af]);_0xae15c3&&_0x264115['push'](_0xae15c3);}_0x1d2e29[_0x39dd29]=_0x264115;}break;case'MultiLineString':case'Polygon':{const _0x176a92=_0x3ec7be(_0x5cafce);_0x1d2e29[_0x39dd29]=_0x176a92;}break;case _0xc1b182(0x1f7):{const _0x1de4ad=[];for(let _0x37d4c7=0x0;_0x37d4c7<_0x5cafce[_0xc1b182(_0x24a15b._0xcb8481)];_0x37d4c7++){const _0x17ce4b=_0x3ec7be(_0x5cafce[_0x37d4c7]);_0x17ce4b['length']>0x0&&_0x1de4ad['push'](_0x17ce4b);}_0x1d2e29[_0x39dd29]=_0x1de4ad;}break;}}function _0x3ec7be(_0x55d771){const _0x1e8771=_0xc1b182,_0x5b28c3=[];for(let _0x5d2ff1=0x0;_0x5d2ff1<_0x55d771['length'];_0x5d2ff1++){const _0x3057b9=_0x55d771[_0x5d2ff1],_0x2617f6=[];for(let _0x250b63=0x0;_0x250b63<_0x3057b9['length'];_0x250b63++){const _0xec226=_0x55cc3d(_0x3057b9[_0x250b63]);_0xec226&&_0x2617f6[_0x1e8771(_0x11c9d2._0x2f5b19)](_0xec226);}_0x2617f6[_0x1e8771(0x207)]>0x0&&_0x5b28c3['push'](_0x2617f6);}return _0x5b28c3;}return _0x388326;};else throw new Error('请引入\x20mapv\x20库\x20');function _0x9cfe(){const _0x1c2546=['MapVLayer','_onMapClick','_map','mousemove','_reset','mapvFixedHeight','695359YHMHCL','fillStyle','positionWC','clear','fromDegrees','update','_cache_event','_setOptionsHook','pointCountMax','ymax','properties','mouseMove','type','clusterDataSet','save','max','getOwnPropertyDescriptor','coordinates','hasOwnProperty','getExtent','762CWiipD','animation','_dataCache','isEnabledTime','560IFmJqQ','55itGAVp','defined','animator','removeAllData','clearRect','getData','default','_size','trails','DataSet','LayerUtil','24snGGjw','options','maxClusterZoom','render','cameraMoveStart','depthTest','maxSize','DomUtil','xmax','postRender','click','getColor','destination-out','defineProperty','25843260hdGQuE','dataSet','add','488564DBHuNF','context','function','FeatureCollection','_data','canvasLayer','block','stop','zIndex','map','36495JQUnLS','devicePixelRatio','setZIndex','forEach','BaseLayer','animatorMovestartEvent','set','pointerEvents','width','initAnimator','52VAaBZY','init','get','mousemoveEvent','logInfo','create','argCheck','getZoom','EventType','destroy','utilDataRangeIntensity','push','addData','cameraMoveEnd','MultiPolygon','32765hhEDRF','updateData','0px','height','_createCanvas','min','_removedHook','time','resize','off','21509uXxEgY','toWindowCoordinates','trees','scene','canvas','length','rgba(0,\x200,\x200,\x20.1)','style','position','Cartesian3','left','geometry','_onMoveStartEvent','methods','_mapVRenderer','__esModule','initDataRange','1968710VxtxRQ','_addedHook','bind'];_0x9cfe=function(){return _0x1c2546;};return _0x9cfe();}const Cesium=mars3d__namespace['Cesium'],BaseLayer=mars3d__namespace['layer'][_0x11b6f5(0x25f)];class MapVLayer extends BaseLayer{constructor(_0x43460b,_0x3f6fc7){super(_0x43460b),this['_pointerEvents']=this['options']['pointerEvents'],this['dataSet']=_0x3f6fc7||new mapv__namespace['DataSet'](_0x43460b['data']),this['canvas']=null;}get[_0x11b6f5(0x262)](){return this['_pointerEvents'];}set[_0x11b6f5(0x262)](_0x4d5b00){const _0x4caa6b={_0x521e68:0x209,_0x4bdb4e:0x209},_0x532cf4=_0x11b6f5;this['_pointerEvents']=_0x4d5b00,this[_0x532cf4(0x206)]&&(_0x4d5b00?this['canvas'][_0x532cf4(_0x4caa6b._0x521e68)]['pointerEvents']='all':this['canvas'][_0x532cf4(_0x4caa6b._0x4bdb4e)]['pointerEvents']='none');}['_showHook'](_0xc73a70){const _0x26d80c=_0x11b6f5;_0xc73a70?this['canvas']['style']['display']=_0x26d80c(0x257):this['canvas']['style']['display']='none';}['_mountedHook'](){const _0x3c08cb={_0x490cc1:0x241,_0x99564a:0x21b},_0x64c603=_0x11b6f5;this['_map']['scene']['mapvDepthTest']=this[_0x64c603(_0x3c08cb._0x490cc1)][_0x64c603(0x245)]??!![],this[_0x64c603(0x218)]['scene']['mapvAutoHeight']=this[_0x64c603(0x241)]['clampToGround']??![],this['_map'][_0x64c603(0x205)][_0x64c603(_0x3c08cb._0x99564a)]=this['options']['fixedHeight']??0x0;}[_0x11b6f5(0x214)](){const _0x140946={_0x2f022d:0x24f,_0x4129ba:0x255,_0x431feb:0x232,_0x473ad2:0x215,_0x1232b3:0x21a},_0x35e4e3=_0x11b6f5;this['dataSet']&&(!this[_0x35e4e3(_0x140946._0x2f022d)][_0x35e4e3(_0x140946._0x4129ba)]||this['dataSet'][_0x35e4e3(_0x140946._0x4129ba)]['length']===0x0)&&(this['dataSet']['_data']=[]['concat'](this['dataSet'][_0x35e4e3(_0x140946._0x431feb)])),this[_0x35e4e3(0x210)]=new MapVRenderer(this['_map'],this['dataSet'],this['options'],this),this['initDevicePixelRatio'](),this['canvas']=this[_0x35e4e3(0x1fc)](),this['render']=this['render'][_0x35e4e3(_0x140946._0x473ad2)](this),this['bindEvent'](),this[_0x35e4e3(_0x140946._0x1232b3)]();}['_removedHook'](){const _0x5c0797={_0x5f4209:0x1f2,_0x5ed198:0x206},_0x47608e=_0x11b6f5;this['unbindEvent'](),this['_mapVRenderer']&&(this['_mapVRenderer'][_0x47608e(_0x5c0797._0x5f4209)](),this['_mapVRenderer']=null),this['canvas']['parentElement']['removeChild'](this[_0x47608e(_0x5c0797._0x5ed198)]);}['initDevicePixelRatio'](){this['devicePixelRatio']=window['devicePixelRatio']||0x1;}['bindEvent'](){const _0x531647={_0x547aae:0x1f1,_0x2671a5:0x244},_0x391a5c=_0x11b6f5;var _0x520521,_0x2c0992;this['_map']['on'](mars3d__namespace[_0x391a5c(_0x531647._0x547aae)]['mouseDown'],this['_onMoveStartEvent'],this),this[_0x391a5c(0x218)]['on'](mars3d__namespace[_0x391a5c(_0x531647._0x547aae)][_0x391a5c(_0x531647._0x2671a5)],this[_0x391a5c(0x20e)],this),this['_map']['on'](mars3d__namespace['EventType']['cameraMoveEnd'],this['_onMoveEndEvent'],this),(_0x520521=this['options'])!==null&&_0x520521!==void 0x0&&(_0x520521=_0x520521['methods'])!==null&&_0x520521!==void 0x0&&_0x520521['click']&&this['_map']['on'](mars3d__namespace['EventType']['click'],this['_onMapClick'],this),(_0x2c0992=this[_0x391a5c(0x241)])!==null&&_0x2c0992!==void 0x0&&(_0x2c0992=_0x2c0992[_0x391a5c(0x20f)])!==null&&_0x2c0992!==void 0x0&&_0x2c0992[_0x391a5c(0x219)]&&this['_map']['on'](mars3d__namespace[_0x391a5c(_0x531647._0x547aae)]['mouseMove'],this['_onMapMouseMove'],this);}['unbindEvent'](){const _0x2ef9d3={_0x3e5e62:0x1f1,_0x26a644:0x20e,_0x11864c:0x201,_0xf62de7:0x1f6,_0x240eec:0x241,_0x48cfa8:0x201},_0xd5354f=_0x11b6f5;var _0x1bd1e8,_0x141fa6;this['_map']['off'](mars3d__namespace[_0xd5354f(_0x2ef9d3._0x3e5e62)]['mouseDown'],this[_0xd5354f(_0x2ef9d3._0x26a644)],this),this['_map'][_0xd5354f(_0x2ef9d3._0x11864c)](mars3d__namespace['EventType'][_0xd5354f(0x244)],this[_0xd5354f(0x20e)],this),this['_map']['off'](mars3d__namespace['EventType'][_0xd5354f(_0x2ef9d3._0xf62de7)],this['_onMoveEndEvent'],this),this['_map']['off'](mars3d__namespace[_0xd5354f(0x1f1)]['postRender'],this['_reset'],this),(_0x1bd1e8=this['options'])!==null&&_0x1bd1e8!==void 0x0&&(_0x1bd1e8=_0x1bd1e8['methods'])!==null&&_0x1bd1e8!==void 0x0&&_0x1bd1e8['click']&&this[_0xd5354f(0x218)]['off'](mars3d__namespace['EventType']['click'],this['_onMapClick'],this),(_0x141fa6=this[_0xd5354f(_0x2ef9d3._0x240eec)])!==null&&_0x141fa6!==void 0x0&&(_0x141fa6=_0x141fa6[_0xd5354f(0x20f)])!==null&&_0x141fa6!==void 0x0&&_0x141fa6[_0xd5354f(0x219)]&&this['_map'][_0xd5354f(_0x2ef9d3._0x48cfa8)](mars3d__namespace['EventType']['mouseMove'],this['_onMapMouseMove'],this);}['_onMoveStartEvent'](){const _0x34c96d=_0x11b6f5;this['_mapVRenderer']&&(this['_mapVRenderer']['animatorMovestartEvent'](),this['_map']['off'](mars3d__namespace[_0x34c96d(0x1f1)][_0x34c96d(0x249)],this['_reset'],this),this['_map']['on'](mars3d__namespace[_0x34c96d(0x1f1)]['postRender'],this['_reset'],this));}['_onMoveEndEvent'](){this['_mapVRenderer']&&(this['_map']['off'](mars3d__namespace['EventType']['postRender'],this['_reset'],this),this['_mapVRenderer']['animatorMoveendEvent'](),this['_reset']());}[_0x11b6f5(0x223)](_0x166e91,_0x3de420){const _0x1d054f={_0x725b45:0x1fe,_0x2a69d4:0x214},_0x408c32=_0x11b6f5;this[_0x408c32(_0x1d054f._0x725b45)](),this[_0x408c32(_0x1d054f._0x2a69d4)]();}[_0x11b6f5(0x1f5)](_0x3fcdfc){this['_mapVRenderer']&&this['_mapVRenderer']['addData'](_0x3fcdfc,this['options']);}[_0x11b6f5(0x1f9)](_0x44a844){const _0x2da704={_0x20f2ba:0x1f9},_0x55dba0=_0x11b6f5;this['_mapVRenderer']&&this[_0x55dba0(0x210)][_0x55dba0(_0x2da704._0x20f2ba)](_0x44a844,this['options']);}[_0x11b6f5(0x23a)](){const _0x42d45f={_0xb8d414:0x24f,_0x1bbf97:0x210},_0x4ec5c1=_0x11b6f5;return this['_mapVRenderer']&&(this[_0x4ec5c1(_0x42d45f._0xb8d414)]=this[_0x4ec5c1(_0x42d45f._0x1bbf97)][_0x4ec5c1(0x23a)]()),this['dataSet'];}['removeData'](_0x6a2643){this['_mapVRenderer']&&this['_mapVRenderer']['removeData'](_0x6a2643);}[_0x11b6f5(0x238)](){const _0x337dbd=_0x11b6f5;this['_mapVRenderer']&&this[_0x337dbd(0x210)]['clearData']();}['_createCanvas'](){const _0x1f108d={_0x5ecfb7:0x209,_0x5d9144:0x20a,_0x25af00:0x1fa,_0x17139f:0x1fb,_0x564152:0x206,_0x4626a7:0x209,_0x3fccf9:0x259,_0x345950:0x25c},_0x10bc57=_0x11b6f5,_0xb015f2=mars3d__namespace[_0x10bc57(0x247)]['create']('canvas','mars3d-mapv',this[_0x10bc57(0x218)]['container']);_0xb015f2['id']=this['id'],_0xb015f2[_0x10bc57(_0x1f108d._0x5ecfb7)][_0x10bc57(_0x1f108d._0x5d9144)]='absolute',_0xb015f2['style']['top']='0px',_0xb015f2['style']['left']=_0x10bc57(_0x1f108d._0x25af00),_0xb015f2['width']=parseInt(this['_map']['canvas']['width']),_0xb015f2['height']=parseInt(this[_0x10bc57(0x218)]['canvas']['height']),_0xb015f2['style']['width']=this['_map']['canvas']['style'][_0x10bc57(0x263)],_0xb015f2['style'][_0x10bc57(_0x1f108d._0x17139f)]=this['_map'][_0x10bc57(_0x1f108d._0x564152)]['style']['height'],_0xb015f2['style']['pointerEvents']=this['_pointerEvents']?'auto':'none',_0xb015f2[_0x10bc57(_0x1f108d._0x4626a7)][_0x10bc57(_0x1f108d._0x3fccf9)]=this['options'][_0x10bc57(0x259)]??0x9;if(this['options']['context']==='2d'){const _0x58721d=this[_0x10bc57(_0x1f108d._0x345950)];_0xb015f2['getContext'](this['options']['context'])['scale'](_0x58721d,_0x58721d);}return _0xb015f2;}['_reset'](){const _0x2dd3e1={_0x2f8b77:0x243},_0x11de89=_0x11b6f5;this['resize'](),this[_0x11de89(_0x2dd3e1._0x2f8b77)]();}['draw'](){const _0x3a585b={_0xc3cea0:0x21a},_0x1736c8=_0x11b6f5;this[_0x1736c8(_0x3a585b._0xc3cea0)]();}['remove'](){const _0xcc594c={_0x17adce:0x206},_0xaaf945=_0x11b6f5;this['_mapVRenderer']&&(this['_mapVRenderer']['destroy'](),this['_mapVRenderer']=null),this[_0xaaf945(0x206)]['parentElement']['removeChild'](this[_0xaaf945(_0xcc594c._0x17adce)]);}['render'](){this['_mapVRenderer']['_canvasUpdate']();}[_0x11b6f5(0x200)](){const _0x2c4a15={_0x54e91f:0x206,_0x2250b3:0x209,_0x1b14fb:0x20c,_0x51c87b:0x218,_0x4c912e:0x206,_0x5b4b64:0x206},_0x2034a1=_0x11b6f5;if(this[_0x2034a1(_0x2c4a15._0x54e91f)]){const _0x1d2640=this['canvas'];_0x1d2640['style']['position']='absolute',_0x1d2640[_0x2034a1(_0x2c4a15._0x2250b3)]['top']='0px',_0x1d2640['style'][_0x2034a1(_0x2c4a15._0x1b14fb)]='0px',_0x1d2640['width']=parseInt(this['_map']['canvas']['width']),_0x1d2640['height']=parseInt(this['_map']['canvas'][_0x2034a1(0x1fb)]),_0x1d2640['style']['width']=this[_0x2034a1(_0x2c4a15._0x51c87b)][_0x2034a1(_0x2c4a15._0x4c912e)]['style']['width'],_0x1d2640['style']['height']=this[_0x2034a1(_0x2c4a15._0x51c87b)][_0x2034a1(_0x2c4a15._0x5b4b64)]['style']['height'];}}['getRectangle'](_0x21626a){const _0x293e0b={_0x832cd8:0x254,_0x46e311:0x255},_0x131452=_0x11b6f5;if(!this['dataSet']||!this['dataSet'][_0x131452(0x255)])return;const _0x27f5ec=mars3d__namespace['PolyUtil']['getExtentByGeoJSON']({'type':_0x131452(_0x293e0b._0x832cd8),'features':this['dataSet'][_0x131452(_0x293e0b._0x46e311)]});if(!_0x27f5ec)return;return _0x21626a!==null&&_0x21626a!==void 0x0&&_0x21626a['isFormat']?_0x27f5ec:Cesium['Rectangle']['fromDegrees'](_0x27f5ec['xmin'],_0x27f5ec['ymin'],_0x27f5ec[_0x131452(0x248)],_0x27f5ec[_0x131452(0x225)]);}[_0x11b6f5(0x217)](_0x275d5f){this['_cache_event']=_0x275d5f,this['_mapVRenderer']&&this['_mapVRenderer']['clickEvent'](_0x275d5f['windowPosition'],_0x275d5f);}['_onMapMouseMove'](_0x52849b){const _0xb3a1a1={_0x39b2b8:0x210},_0x52e3cf=_0x11b6f5;this[_0x52e3cf(0x222)]=_0x52849b,this['_mapVRenderer']&&this[_0x52e3cf(_0xb3a1a1._0x39b2b8)][_0x52e3cf(0x1ec)](_0x52849b['windowPosition'],_0x52849b);}['on'](_0x3c4b97,_0xbf8195,_0x2e8874){const _0x22dfc5={_0x1a58a5:0x20f,_0x20c952:0x227},_0x38dcf1=_0x11b6f5;this['options'][_0x38dcf1(_0x22dfc5._0x1a58a5)]=this['options']['methods']||{};if(_0x3c4b97===mars3d__namespace[_0x38dcf1(0x1f1)]['click'])this['options']['methods'][_0x38dcf1(0x24a)]=_0x3a7fa1=>{const _0x1623b0=_0x38dcf1;_0x3a7fa1&&_0xbf8195['bind'](_0x2e8874)({...this[_0x1623b0(0x222)],'layer':this,'data':_0x3a7fa1});},this['_map']['on'](mars3d__namespace['EventType']['click'],this['_onMapClick'],this);else _0x3c4b97===mars3d__namespace['EventType'][_0x38dcf1(_0x22dfc5._0x20c952)]&&(this['options']['methods']['mousemove']=_0xe97a1d=>{_0xe97a1d&&_0xbf8195['bind'](_0x2e8874)({...this['_cache_event'],'layer':this,'data':_0xe97a1d});},this['_map']['on'](mars3d__namespace['EventType']['mouseMove'],this['_onMapMouseMove'],this));return this;}['off'](_0x1bd9a9,_0x174661){const _0x15f111={_0x37d2de:0x218,_0x52081e:0x217,_0x1d07f2:0x241,_0x426f17:0x241,_0x23a5b7:0x20f},_0xa24474=_0x11b6f5;if(_0x1bd9a9==='click'){var _0x1eca9c;this[_0xa24474(_0x15f111._0x37d2de)]['off'](_0x1bd9a9,this[_0xa24474(_0x15f111._0x52081e)],this),(_0x1eca9c=this[_0xa24474(_0x15f111._0x1d07f2)]['methods'])!==null&&_0x1eca9c!==void 0x0&&_0x1eca9c[_0xa24474(0x219)]&&delete this[_0xa24474(_0x15f111._0x1d07f2)]['methods']['click'];}else{if(_0x1bd9a9==='mouseMove'){var _0xb6efaa;this['_map']['off'](_0x1bd9a9,this['_onMapMouseMove'],this),(_0xb6efaa=this[_0xa24474(_0x15f111._0x426f17)]['methods'])!==null&&_0xb6efaa!==void 0x0&&_0xb6efaa['mousemove']&&delete this[_0xa24474(0x241)][_0xa24474(_0x15f111._0x23a5b7)]['mousemove'];}}return this;}}mars3d__namespace[_0x11b6f5(0x23f)]['register']('mapv',MapVLayer),mars3d__namespace['layer']['MapVLayer']=MapVLayer,mars3d__namespace['mapv']=mapv__namespace,mars3d__namespace['Log'][_0x11b6f5(0x1ed)]('mars3d-mapv插件\x20注册成功'),exports[_0x11b6f5(0x216)]=MapVLayer,Object['keys'](mapv)[_0x11b6f5(0x25e)](function(_0xcdac8f){const _0x105d56={_0x17597b:0x23b,_0x535f03:0x22e},_0x15e4ac=_0x11b6f5;if(_0xcdac8f!==_0x15e4ac(_0x105d56._0x17597b)&&!exports[_0x15e4ac(_0x105d56._0x535f03)](_0xcdac8f))Object['defineProperty'](exports,_0xcdac8f,{'enumerable':!![],'get':function(){return mapv[_0xcdac8f];}});}),Object[_0x11b6f5(0x24d)](exports,_0x11b6f5(0x211),{'value':!![]});
}));