mars2d-mapv 3.2.2 → 3.2.4

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
  * Mars2D平台插件,结合mapv可视化功能插件 mars2d-mapv
3
3
  *
4
- * 版本信息:v3.2.2
5
- * 编译日期:2024-03-25 20:03:44
4
+ * 版本信息:v3.2.4
5
+ * 编译日期:2024-04-21 19:50:14
6
6
  * 版权所有:Copyright by 火星科技 http://mars2d.cn
7
7
  * 使用单位:免费公开版 ,2024-01-16
8
8
  */
@@ -11,5 +11,5 @@
11
11
  typeof define === 'function' && define.amd ? define(['exports', 'mapv', 'mars2d'], factory) :
12
12
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["mars2d-mapv"] = {}, global.mapv, global.mars2d));
13
13
  })(this, (function (exports, mapv, mars2d) {
14
- 'use strict';function _0x2c98(_0x556dbc,_0x53c654){const _0x3f69ea=_0x3f69();return _0x2c98=function(_0x2c9823,_0x436fc2){_0x2c9823=_0x2c9823-0x1e1;let _0x929cde=_0x3f69ea[_0x2c9823];return _0x929cde;},_0x2c98(_0x556dbc,_0x53c654);}const _0x469791=_0x2c98;(function(_0x366213,_0x2eb598){const _0x2e5a07={_0x12b090:0x1e5,_0x58e16e:0x22a,_0x2904b4:0x215},_0x4f08ec=_0x2c98,_0x455296=_0x366213();while(!![]){try{const _0x4acb4c=parseInt(_0x4f08ec(0x20f))/0x1*(-parseInt(_0x4f08ec(0x1fc))/0x2)+-parseInt(_0x4f08ec(0x21f))/0x3+parseInt(_0x4f08ec(_0x2e5a07._0x12b090))/0x4+parseInt(_0x4f08ec(_0x2e5a07._0x58e16e))/0x5+parseInt(_0x4f08ec(0x216))/0x6*(parseInt(_0x4f08ec(0x20b))/0x7)+-parseInt(_0x4f08ec(_0x2e5a07._0x2904b4))/0x8*(-parseInt(_0x4f08ec(0x1fb))/0x9)+-parseInt(_0x4f08ec(0x1f5))/0xa;if(_0x4acb4c===_0x2eb598)break;else _0x455296['push'](_0x455296['shift']());}catch(_0x5963ea){_0x455296['push'](_0x455296['shift']());}}}(_0x3f69,0x46421));function _interopNamespace(_0x432323){const _0x3b1c00={_0x506092:0x1ec,_0xd0d50b:0x1e1},_0x303f29=_0x2c98;if(_0x432323&&_0x432323[_0x303f29(0x20a)])return _0x432323;var _0x282c61=Object['create'](null);return _0x432323&&Object['keys'](_0x432323)['forEach'](function(_0x536019){const _0x317ffe=_0x303f29;if(_0x536019!==_0x317ffe(_0x3b1c00._0x506092)){var _0x3fe6d7=Object['getOwnPropertyDescriptor'](_0x432323,_0x536019);Object['defineProperty'](_0x282c61,_0x536019,_0x3fe6d7[_0x317ffe(_0x3b1c00._0xd0d50b)]?_0x3fe6d7:{'enumerable':!![],'get':function(){return _0x432323[_0x536019];}});}}),_0x282c61['default']=_0x432323,_0x282c61;}var mapv__namespace=_interopNamespace(mapv),mars2d__namespace=_interopNamespace(mars2d);const L$1=mars2d__namespace['L'];if(!mapv__namespace['DataSet'])throw new Error(_0x469791(0x220));const baiduMapLayer=mapv__namespace?mapv__namespace[_0x469791(0x227)]:null,BaseLayer=baiduMapLayer?baiduMapLayer[_0x469791(0x209)]:Function;function _0x3f69(){const _0x30eea4=['animator','width','moveStartEvent','filter','moveend','_mapVRenderer','clearData','1705968pJBiaH','请引入\x20mapv\x20库','processData','zoomStartEvent','movestart','time','unbindEvent','methods','baiduMapLayer','Util','canvasLayer','2392695PTENyE','MapVLayer','latLngToAccurateContainerPoint','trails','lat','style','get','latLngToContainerPoint','update','updateData','857948vGHCSE','layerPoint','hasOwnProperty','height','pid','_map','defineProperty','default','maxZoom','minZoom','options','initialize','isEnabledTime','moveEndEvent','getNorthWest','canvas','2139480kpozVa','context','click','leaflet-layer\x20leaflet-zoom-animated','steps','LayerUtil','4320666KdXZYf','7730dgTEDA','_hide','mousemoveEvent','getData','destination-out','map','getTopLeft','render','container','remove','devicePixelRatio','updateCallback','initAnimator','__proto__','__esModule','393729mPomGI','_resize','zoomstart','latLng','143ZnvoIE','mousemove','save','mapv渲染异常','mapv','dataSet','8RjhtmT','48BqMBgS','overlayPane'];_0x3f69=function(){return _0x30eea4;};return _0x3f69();}class MapVRenderer extends BaseLayer{constructor(_0x31b404,_0x46cd83,_0x196468,_0x2241a9){const _0x4d4242={_0x1b2173:0x229},_0x414fb9=_0x469791;_0x2241a9=_0x2241a9||{},super(_0x31b404,_0x196468,_0x2241a9);if(!BaseLayer)return;this[_0x414fb9(_0x4d4242._0x1b2173)]=_0x46cd83,this['init'](_0x2241a9),this['argCheck'](_0x2241a9),this['bindEvent']();}['clickEvent'](_0x373a89){const _0x1cf8aa={_0x56956c:0x206},_0x1c540e=_0x469791,_0x31590d=this['map']['containerPointToLayerPoint']([0x0,0x0]),_0x1de0cf=this[_0x1c540e(_0x1cf8aa._0x56956c)]=this['canvasLayer'][_0x1c540e(_0x1cf8aa._0x56956c)]=window['devicePixelRatio'],_0x18912a=_0x373a89['layerPoint'];super['clickEvent'](L$1['point']((_0x18912a['x']-_0x31590d['x'])/_0x1de0cf,(_0x18912a['y']-_0x31590d['y'])/_0x1de0cf),_0x373a89);}['mousemoveEvent'](_0xff446e){const _0x4c33cc={_0x4cee7b:0x1e6,_0x3bd6da:0x1fe},_0x11364b=_0x469791,_0xaa01e5=_0xff446e[_0x11364b(_0x4c33cc._0x4cee7b)];super[_0x11364b(_0x4c33cc._0x3bd6da)](_0xaa01e5,_0xff446e);}['bindEvent'](){const _0x331e24={_0x2496e1:0x201,_0xf9e0cb:0x1ef,_0x4fa604:0x1f7,_0x458f91:0x223,_0x1499c0:0x222},_0x439074=_0x469791,_0x368683=this[_0x439074(_0x331e24._0x2496e1)];this[_0x439074(_0x331e24._0xf9e0cb)]['methods']&&(this['options']['methods'][_0x439074(_0x331e24._0x4fa604)]&&_0x368683['on'](_0x439074(_0x331e24._0x4fa604),this['clickEvent'],this),this[_0x439074(_0x331e24._0xf9e0cb)]['methods'][_0x439074(0x210)]&&_0x368683['on']('mousemove',this['mousemoveEvent'],this)),this['map']['on'](_0x439074(_0x331e24._0x458f91),this['moveStartEvent'],this),this['map']['on'](_0x439074(0x21c),this['moveEndEvent'],this),this['map']['on']('zoomstart',this[_0x439074(_0x331e24._0x1499c0)],this);}['destroy'](){const _0x2c677a={_0x55475e:0x218},_0x4c5b12=_0x469791;this[_0x4c5b12(0x225)](),this['clearData']();this[_0x4c5b12(_0x2c677a._0x55475e)]&&(this['animator']['stop'](),this['animator']=null);this['canvasLayer']=null,this[_0x4c5b12(0x201)]=null;for(const _0x162e7c in this){delete this[_0x162e7c];}}[_0x469791(0x225)](){const _0x443c61={_0x11f9dd:0x21a,_0x5fbce3:0x1f2,_0x539e5b:0x20d},_0x52a7c6=_0x469791,_0x231bc0=this['map'];this['options'][_0x52a7c6(0x226)]&&(this['options']['methods'][_0x52a7c6(0x1f7)]&&_0x231bc0['off']('click',this['clickEvent'],this),this['options']['methods'][_0x52a7c6(0x210)]&&_0x231bc0['off']('mousemove',this['mousemoveEvent'],this)),this['map']['off']('movestart',this[_0x52a7c6(_0x443c61._0x11f9dd)],this),this['map']['off'](_0x52a7c6(0x21c),this[_0x52a7c6(_0x443c61._0x5fbce3)],this),this['map']['off'](_0x52a7c6(_0x443c61._0x539e5b),this['zoomStartEvent'],this);}['getContext'](){return this['canvasLayer']['getCanvas']()['getContext'](this['context']);}['addData'](_0x2bc42d,_0x392d51){const _0x12d405=_0x469791;let _0x285ab8=_0x2bc42d;_0x2bc42d&&_0x2bc42d['get']&&(_0x285ab8=_0x2bc42d['get']()),this[_0x12d405(0x214)]['add'](_0x285ab8),this['update']({'options':_0x392d51});}['update'](_0x2da94a){const _0x187550={_0x5841c2:0x1e1},_0x26fe02=_0x469791,_0x3b19d5=_0x2da94a||{};let _0x1e13a7=_0x3b19d5['data'];_0x1e13a7&&_0x1e13a7[_0x26fe02(_0x187550._0x5841c2)]&&(_0x1e13a7=_0x1e13a7['get']()),_0x1e13a7!==undefined&&this['dataSet']['set'](_0x1e13a7),super['update']({'options':_0x3b19d5['options']});}['getData'](){return this['dataSet'];}['removeData'](_0x2ebebd){const _0x4c2917={_0x5bfae5:0x214},_0x3e6fe6=_0x469791;if(!this['dataSet'])return;const _0x242604=this['dataSet']['get']({'filter':function(_0x15c116){return _0x2ebebd!=null&&typeof _0x2ebebd==='function'?!_0x2ebebd(_0x15c116):!![];}});this[_0x3e6fe6(_0x4c2917._0x5bfae5)]['set'](_0x242604),this['update']({'options':null});}[_0x469791(0x21e)](){const _0x242327={_0x4206a0:0x1e3},_0x2c435c=_0x469791;this[_0x2c435c(0x214)]&&this['dataSet']['clear'](),this[_0x2c435c(_0x242327._0x4206a0)]({'options':null});}['_canvasUpdate'](_0x52c950){const _0x3a897b={_0x21cec2:0x229,_0x26c70e:0x200,_0x4c8d4d:0x22c,_0xd454f7:0x214,_0x223005:0x221,_0x1e3267:0x212},_0x385118={_0x2b203e:0x22d,_0x1f7679:0x224},_0x4f1873={_0x1fa74f:0x20e,_0x2be1a4:0x22e},_0x24ac17=_0x469791;if(!this[_0x24ac17(_0x3a897b._0x21cec2)])return;const _0x2c8f04=this;try{const _0x3078c7=_0x2c8f04[_0x24ac17(0x1ef)]['animation'],_0x2248a2=this['getContext'](),_0x30eba6=this['map'];if(_0x2c8f04['isEnabledTime']()){if(_0x52c950===undefined){this['clear'](_0x2248a2);return;}this['context']==='2d'&&(_0x2248a2[_0x24ac17(0x211)](),_0x2248a2['globalCompositeOperation']=_0x24ac17(_0x3a897b._0x26c70e),_0x2248a2['fillStyle']='rgba(0,\x200,\x200,\x20.1)',_0x2248a2['fillRect'](0x0,0x0,_0x2248a2['canvas']['width'],_0x2248a2['canvas']['height']),_0x2248a2['restore']());}else this['clear'](_0x2248a2);if(this['context']==='2d')for(const _0x681bcd in _0x2c8f04['options']){_0x2248a2[_0x681bcd]=_0x2c8f04['options'][_0x681bcd];}else _0x2248a2['clear'](_0x2248a2['COLOR_BUFFER_BIT']);if(_0x2c8f04['options'][_0x24ac17(0x1ee)]&&_0x30eba6['getZoom']()<_0x2c8f04['options']['minZoom']||_0x2c8f04['options']['maxZoom']&&_0x30eba6['getZoom']()>_0x2c8f04['options'][_0x24ac17(0x1ed)])return;const _0x43d3d3=_0x30eba6['getBounds'](),_0x13b226=_0x43d3d3['getEast']()-_0x43d3d3['getWest'](),_0x19f4f1=_0x43d3d3['getNorth']()-_0x43d3d3['getSouth'](),_0x53a00c=_0x30eba6['getSize'](),_0x30a1a5=_0x13b226/_0x53a00c['x'],_0x51c62e=_0x19f4f1/_0x53a00c['y'],_0x29d73b=this[_0x24ac17(_0x3a897b._0x21cec2)][_0x24ac17(0x202)](),_0x15f513=_0x30eba6[_0x24ac17(_0x3a897b._0x4c8d4d)](_0x29d73b),_0x58a5ad={'transferCoordinate':function(_0x4ddc2f){const _0x2c59a7=_0x24ac17;let _0x3666b3;_0x2c8f04[_0x2c59a7(0x1f6)]==='2d'?_0x3666b3=_0x30eba6['latLngToAccurateContainerPoint'](L$1[_0x2c59a7(_0x4f1873._0x1fa74f)](_0x4ddc2f[0x1],_0x4ddc2f[0x0])):_0x3666b3={'x':(_0x4ddc2f[0x0]-_0x29d73b['lng'])/_0x30a1a5,'y':(_0x29d73b[_0x2c59a7(_0x4f1873._0x2be1a4)]-_0x4ddc2f[0x1])/_0x51c62e};const _0x508353={'x':_0x3666b3['x']-_0x15f513['x'],'y':_0x3666b3['y']-_0x15f513['x']};return[_0x508353['x'],_0x508353['y']];}};_0x52c950!==undefined&&(_0x58a5ad[_0x24ac17(0x21b)]=function(_0x578f8f){const _0x56082e=_0x24ac17,_0x98f8a0=_0x3078c7[_0x56082e(_0x385118._0x2b203e)]||0xa;return _0x52c950&&_0x578f8f[_0x56082e(_0x385118._0x1f7679)]>_0x52c950-_0x98f8a0&&_0x578f8f['time']<_0x52c950;});const _0x14116b=_0x2c8f04[_0x24ac17(_0x3a897b._0xd454f7)]['get'](_0x58a5ad);this[_0x24ac17(_0x3a897b._0x223005)](_0x14116b),_0x2c8f04[_0x24ac17(0x1ef)]['_size']=_0x2c8f04['options']['size'];const _0x15ac83=_0x30eba6[_0x24ac17(0x1e2)](L$1['latLng'](0x0,0x0)),_0x177e85={'x':_0x15ac83['x']-_0x15f513['x'],'y':_0x15ac83['y']-_0x15f513['y']};_0x14116b&&_0x14116b['length']>0x0&&this['drawContext'](_0x2248a2,_0x14116b,_0x2c8f04['options'],_0x177e85),_0x2c8f04['options']['updateCallback']&&_0x2c8f04['options'][_0x24ac17(0x207)](_0x52c950);}catch(_0x5b0bd8){console['log'](_0x24ac17(_0x3a897b._0x1e3267),_0x5b0bd8);}}['init'](_0x34925a){const _0x574048={_0x3817bb:0x1ef,_0x4d52e3:0x1ef,_0x17273f:0x208},_0x55616a=_0x469791,_0x298671=this;_0x298671[_0x55616a(_0x574048._0x3817bb)]=_0x34925a,this['initDataRange'](_0x34925a),this['context']=_0x298671[_0x55616a(_0x574048._0x4d52e3)]['context']||'2d',_0x298671['options']['zIndex']&&(this['canvasLayer']&&this[_0x55616a(0x229)]['setZIndex'](_0x298671['options']['zIndex'])),this[_0x55616a(_0x574048._0x17273f)]();}['addAnimatorEvent'](){}['moveStartEvent'](){const _0xabc78f={_0xd48090:0x218},_0x5abd5c=_0x469791,_0x23ca4a=this['options']['animation'];this[_0x5abd5c(0x1f1)]()&&this[_0x5abd5c(_0xabc78f._0xd48090)]&&(this[_0x5abd5c(0x1f9)]['step']=_0x23ca4a['stepsRange']['start'],this[_0x5abd5c(0x1fd)]());}['moveEndEvent'](){this['canvasLayer']['draw'](),this['_show']();}['zoomStartEvent'](){this['_hide']();}['clear'](_0x1734de){const _0x181cf0={_0x553f9b:0x219},_0x2680d0=_0x469791;_0x1734de&&_0x1734de['clearRect']&&_0x1734de['clearRect'](0x0,0x0,_0x1734de['canvas'][_0x2680d0(_0x181cf0._0x553f9b)],_0x1734de['canvas']['height']);}[_0x469791(0x1fd)](){this['canvasLayer']['canvas']['style']['display']='none';}['_show'](){const _0x24c05b=_0x469791;this[_0x24c05b(0x229)][_0x24c05b(0x1f4)]['style']['display']='block';}['draw'](){const _0x49856d={_0x414381:0x229},_0x4a0c82=_0x469791;this[_0x4a0c82(_0x49856d._0x414381)]['draw']();}}const L=mars2d__namespace['L'];class MapVLayer extends L['Layer']{[_0x469791(0x1f0)](_0x5eebac={},_0x5472f3){const _0xcefdf9={_0x7949d4:0x1ef},_0x396f0d=_0x469791;this['options']=_0x5eebac,this['dataSet']=_0x5472f3||new mapv__namespace['DataSet'](_0x5eebac['data']),this['options']['id']=this['options']['id']??mars2d__namespace[_0x396f0d(0x228)]['createGuid'](),this[_0x396f0d(_0xcefdf9._0x7949d4)][_0x396f0d(0x1e9)]=this[_0x396f0d(0x1ef)]['pid']??-0x1;}get['isAdded'](){return this['_map']&&this['_map']['hasLayer'](this);}get[_0x469791(0x1e9)](){const _0x2b679f={_0x535d10:0x1e9},_0x532b1a=_0x469791;return this['options'][_0x532b1a(_0x2b679f._0x535d10)];}set[_0x469791(0x1e9)](_0x39bd2c){this['options']['pid']=_0x39bd2c;}get['id'](){return this['options']['id'];}set['id'](_0x47172d){this['options']['id']=_0x47172d;}get['name'](){return this['options']['name'];}set['name'](_0x222750){this['options']['name']=_0x222750;}['onAdd'](_0x2cde1b){const _0x1cbb18={_0x127880:0x1ea,_0x24639b:0x22f,_0x3dfa55:0x1e8},_0x46d2f8=_0x469791;this[_0x46d2f8(_0x1cbb18._0x127880)]=_0x2cde1b;const _0x169fb7=_0x2cde1b['getPane'](this['options']['pane']||_0x46d2f8(0x217)),_0x4ca13f=L['DomUtil']['create']('div',_0x46d2f8(0x1f8),_0x169fb7);_0x4ca13f['style']['position']='absolute',_0x4ca13f['style']['top']='0px',_0x4ca13f['style']['left']='0px',_0x4ca13f['style']['zIndex']=this['options']['zIndex']||0x63,this['canvas']=this['_createCanvas'](),_0x4ca13f['appendChild'](this[_0x46d2f8(0x1f4)]);const _0x53bbe0=_0x2cde1b['getSize']();_0x4ca13f[_0x46d2f8(_0x1cbb18._0x24639b)]['width']=_0x53bbe0['x']+'px',_0x4ca13f[_0x46d2f8(_0x1cbb18._0x24639b)][_0x46d2f8(_0x1cbb18._0x3dfa55)]=_0x53bbe0['y']+'px',this['container']=_0x4ca13f,this['dataSet']&&(!this['dataSet']['_data']||this['dataSet']['_data']['length']===0x0)&&(this['dataSet']['_data']=[]['concat'](this['dataSet']['_dataCache'])),this['_mapVRenderer']=new MapVRenderer(_0x2cde1b,this,this['dataSet'],this[_0x46d2f8(0x1ef)]),this['draw'](),this['fire']('loaded');}['onRemove'](_0x31f1f3){const _0x20622e={_0x36268b:0x205},_0x4dbf41=_0x469791;this['_mapVRenderer']['destroy'](),delete this['_mapVRenderer'],L['DomUtil'][_0x4dbf41(_0x20622e._0x36268b)](this[_0x4dbf41(0x204)]),delete this['container'],delete this[_0x4dbf41(0x1f4)];}['addData'](_0x2b87b7){const _0x54906d=_0x469791;this['_mapVRenderer']&&this[_0x54906d(0x21d)]['addData'](_0x2b87b7,this['options']);}[_0x469791(0x1e4)](_0x994828){const _0x11c225=_0x469791;this['_mapVRenderer']&&this['_mapVRenderer'][_0x11c225(0x1e4)](_0x994828,this['options']);}[_0x469791(0x1ff)](){const _0x19d0ce=_0x469791;return this['_mapVRenderer']&&(this[_0x19d0ce(0x214)]=this['_mapVRenderer']['getData']()),this[_0x19d0ce(0x214)];}['removeData'](_0x4de309){const _0xb6de5e={_0xc1df0:0x21d},_0x5ac4e9=_0x469791;this['_mapVRenderer']&&this[_0x5ac4e9(_0xb6de5e._0xc1df0)]['removeData'](_0x4de309);}['removeAllData'](){const _0x385006=_0x469791;this['_mapVRenderer']&&this['_mapVRenderer'][_0x385006(0x21e)]();}['draw'](){this['_reset']();}['setZIndex'](_0x12b257){const _0x2aaeaa={_0x3fe5bb:0x204},_0x1184de=_0x469791;this[_0x1184de(0x1ef)]['zIndex']=_0x12b257,this[_0x1184de(_0x2aaeaa._0x3fe5bb)]&&(this['container']['style']['zIndex']=_0x12b257);}['render'](){this['_mapVRenderer']['_canvasUpdate']();}['getCanvas'](){return this['canvas'];}['getContainer'](){return this['container'];}['getTopLeft'](){const _0x46282f={_0x243a6b:0x1f3},_0x3bd0c1=_0x469791,_0x2e49c0=this['_map'];let _0x1a02d0;if(_0x2e49c0){const _0x252bce=_0x2e49c0['getBounds']();_0x1a02d0=_0x252bce[_0x3bd0c1(_0x46282f._0x243a6b)]();}return _0x1a02d0;}['_createCanvas'](){const _0x490361={_0x569517:0x22f,_0x3ed35b:0x22f,_0x54731e:0x1ef},_0x48ad54=_0x469791,_0x5062ab=document['createElement']('canvas');_0x5062ab['style']['position']='absolute',_0x5062ab[_0x48ad54(_0x490361._0x569517)]['top']=0x0+'px',_0x5062ab[_0x48ad54(_0x490361._0x3ed35b)]['left']=0x0+'px',_0x5062ab['style']['pointerEvents']='none',_0x5062ab['style']['zIndex']=this[_0x48ad54(_0x490361._0x54731e)]['zIndex']||0x258;const _0x1610a6=typeof window==='undefined'?{}:window,_0x251d1a=this['devicePixelRatio']=_0x1610a6['devicePixelRatio'];return this['options'][_0x48ad54(0x1f6)]==='2d'&&_0x5062ab['getContext']('2d')['scale'](_0x251d1a,_0x251d1a),_0x5062ab;}[_0x469791(0x20c)](){const _0x56e2a0=_0x469791,_0x4e26c6=this[_0x56e2a0(0x1f4)];if(!_0x4e26c6)return;const _0x53818d=this['_map'],_0x2ed131=_0x53818d['getSize']();_0x4e26c6['width']=_0x2ed131['x'],_0x4e26c6['height']=_0x2ed131['y'],_0x4e26c6['style'][_0x56e2a0(0x219)]=_0x2ed131['x']+'px',_0x4e26c6['style']['height']=_0x2ed131['y']+'px';const _0x5f2773=_0x53818d['getBounds'](),_0x500e55=_0x53818d['latLngToLayerPoint'](_0x5f2773['getNorthWest']());L['DomUtil']['setPosition'](_0x4e26c6,_0x500e55);}['_reset'](){this['_resize'](),this['_render']();}['redraw'](){const _0x82d181=_0x469791;this[_0x82d181(0x20c)](),this['_render']();}['_render'](){const _0x304a2d={_0x5673c4:0x203},_0x360d1e=_0x469791;this[_0x360d1e(_0x304a2d._0x5673c4)]();}}mars2d__namespace['layer'][_0x469791(0x22b)]=MapVLayer,mars2d__namespace[_0x469791(0x1fa)]['register'](_0x469791(0x213),MapVLayer),exports[_0x469791(0x22b)]=MapVLayer,Object['keys'](mapv)['forEach'](function(_0x29ec9f){const _0x9a6a9e=_0x469791;if(_0x29ec9f!==_0x9a6a9e(0x1ec)&&!exports[_0x9a6a9e(0x1e7)](_0x29ec9f))Object[_0x9a6a9e(0x1eb)](exports,_0x29ec9f,{'enumerable':!![],'get':function(){return mapv[_0x29ec9f];}});}),Object['defineProperty'](exports,'__esModule',{'value':!![]});
14
+ 'use strict';function _0x4db6(){const _0x2035ad=['BwfWDG','Dw5IAw5KrxzLBNq','z2v0q2fUDMfZ','y2XLyxi','C2v0wKLUzgv4','CMvZDg9Yzq','C3rLChnsyw5Nzq','BwfW','zgvZDhjVEq','nJu4otu1C09TrKrq','AxnbzgrLza','mtfmwuD3vMK','x21HCfzszw5KzxjLCG','BwfWDUA4SUAFK+w8GUw4Ua','B2zM','x2rHDge','DxbKyxrL','Bgf0','Cg9PBNq','EM9VBvn0yxj0rxzLBNq','y29UDgv4Da','yxbWzw5Kq2HPBgq','x3nPEMu','Bg9N','ChjVy2vZC0rHDge','yw5PBwf0Aw9U','B3zLCMXHEvbHBMu','y2XLyxjeyxrH','Dw5KzwzPBMvK','mti2odG1ntbVBMHUtu0','CMvTB3zLqwXSrgf0yq','y2XPy2S','B25szw1VDMu','x3jLC2v0','Bw92zvn0yxj0rxzLBNq','Bgf5zxi','ody4mJC4zenbvfzK','yMXVy2S','x2nHBNzHC1vWzgf0zq','nhDUuwvJBG','Bgf0tg5Nvg9by2n1CMf0zunVBNrHAw5LCLbVAw50','CgLK','tgf5zxi','BwLUwM9VBq','y2fUDMfZtgf5zxi','zhjHDW','DxbKyxrLq2fSBgjHy2S','mhb4','Dg9W','C2v0','Bgf0tg5Nvg9dB250ywLUzxjqB2LUDa','Bw91C2vTB3zLrxzLBNq','CMvUzgvY','y2XPy2TfDMvUDa','BgvMDa','Bw91C2vTB3zL','D2LKDgG','B3b0Aw9UCW','rgf0yvnLDa','zgv2AwnLugL4zwXsyxrPBW','C3rLCa','x19LC01VzhvSzq','EKLUzgv4','C2v0ug9ZAxrPB24','DhjHAwXZ','zgf0yvnLDa','z2v0qM91BMrZ','x3jLC2L6zq','x3nOB3C','AgvPz2H0','z2v0v2vZDa','EM9VBxn0yxj0','ywrKqw5PBwf0B3jfDMvUDa','Cg9ZAxrPB24','yMLUzev2zw50','z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9Y','ywrKrgf0yq','zgLZCgXHEq','Bgf0tg5N','Bg5N','AgfZtgf5zxi','mJe0mtuWmfz5B3busa','x2HPzgu','C3r5Bgu','z2v0','Bw92zuvUzev2zw50','A2v5CW','DgLTzq','Aw5PDa','z2v0rgf0yq','CMDIysGWlcaWlcaWlcaUmsK','twfWvKXHEwvY','Bwv0Ag9KCW','6k+35BYv5ywLig1HChyG5BQt','x21HCa','ndC0ntyXme5VANnzrG','y2fUDMfZ','zM9YrwfJAa','zMLSBfjLy3q','z2v0q29UDgfPBMvY','q09mt1jFqLvgrKvsx0jjva','DMfSDwu','BgvUz3rO','rg9TvxrPBa','x2rHDgfdywnOzq','Aw5PDefUAw1HDg9Y','zgvMAw5LuhjVCgvYDhK','n056C1Drua','z2v0u2L6zq','y29UDgfPBMvY','C3rVCa','zgf0yq','z2v0tM9YDgG','AgfZt3DUuhjVCgvYDhK','yw5PBwf0B3i','AxnfBMfIBgvKvgLTzq','z2XVyMfSq29TCg9ZAxrLt3bLCMf0Aw9U','yMfPzhvnyxbmyxLLCG','CMvKCMf3','CMvTB3zLrgf0yq','z2v0wM9VBq','y3jLyxrL','y29Uy2f0','zhjHD0nVBNrLEhq','z2v0vg9WtgvMDa','z2v0q29UDgv4Da','zMLYzq','C3rHCNq','Cg9PBNrLCKv2zw50CW','z2v0rwfZDa','zgvMyxvSDa','C2L6zq','Bgf5zxjqB2LUDa','x2nYzwf0zunHBNzHCW','zMLSBfn0EwXL','nJaXmtm3z0nmuLD5','nJCZntG4mg1LwejZra','m09oDgvqra','y2XLyxjszwn0'];_0x4db6=function(){return _0x2035ad;};return _0x4db6();}const _0x1adf34=_0x247f;(function(_0x54bee3,_0x29d5fb){const _0x5a4d51={_0x431b13:0x1d1,_0x117f8d:0x170,_0x50629d:0x1b3,_0x815412:0x1a7,_0xd3ec25:0x17e,_0x5d46a3:0x1c7,_0xb17067:0x1b5},_0x316452=_0x247f,_0x4fd0a7=_0x54bee3();while(!![]){try{const _0x366b23=-parseInt(_0x316452(0x1a6))/0x1*(parseInt(_0x316452(_0x5a4d51._0x431b13))/0x2)+-parseInt(_0x316452(0x1a8))/0x3*(parseInt(_0x316452(_0x5a4d51._0x117f8d))/0x4)+-parseInt(_0x316452(_0x5a4d51._0x50629d))/0x5+parseInt(_0x316452(0x1ce))/0x6*(-parseInt(_0x316452(0x18a))/0x7)+parseInt(_0x316452(_0x5a4d51._0x815412))/0x8+parseInt(_0x316452(_0x5a4d51._0xd3ec25))/0x9+-parseInt(_0x316452(_0x5a4d51._0x5d46a3))/0xa*(-parseInt(_0x316452(_0x5a4d51._0xb17067))/0xb);if(_0x366b23===_0x29d5fb)break;else _0x4fd0a7['push'](_0x4fd0a7['shift']());}catch(_0x1faa4d){_0x4fd0a7['push'](_0x4fd0a7['shift']());}}}(_0x4db6,0x98569));function _interopNamespace(_0x2c5950){const _0x3c47b4={_0x562fb6:0x1e7,_0x2af472:0x175,_0x16a61e:0x1a1},_0x2d9079={_0x31bf76:0x1a1,_0x1779cb:0x16a},_0x3de2ff=_0x247f;if(_0x2c5950&&_0x2c5950[_0x3de2ff(_0x3c47b4._0x562fb6)])return _0x2c5950;var _0x248d20=Object['create'](null);return _0x2c5950&&Object[_0x3de2ff(_0x3c47b4._0x2af472)](_0x2c5950)['forEach'](function(_0x52619a){const _0x2e2b11=_0x3de2ff;if(_0x52619a!==_0x2e2b11(_0x2d9079._0x31bf76)){var _0x128644=Object[_0x2e2b11(_0x2d9079._0x1779cb)](_0x2c5950,_0x52619a);Object['defineProperty'](_0x248d20,_0x52619a,_0x128644['get']?_0x128644:{'enumerable':!![],'get':function(){return _0x2c5950[_0x52619a];}});}}),_0x248d20[_0x3de2ff(_0x3c47b4._0x16a61e)]=_0x2c5950,_0x248d20;}var mapv__namespace=_interopNamespace(mapv),mars2d__namespace=_interopNamespace(mars2d);function _0x247f(_0x42452d,_0x20f648){const _0x4db64b=_0x4db6();return _0x247f=function(_0x247f1d,_0x539246){_0x247f1d=_0x247f1d-0x169;let _0x36560c=_0x4db64b[_0x247f1d];if(_0x247f['woAYpf']===undefined){var _0x508f1e=function(_0x30fc78){const _0x477ddb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x42688c='',_0x310a7d='';for(let _0x5489b1=0x0,_0x27200b,_0x569125,_0x488ca1=0x0;_0x569125=_0x30fc78['charAt'](_0x488ca1++);~_0x569125&&(_0x27200b=_0x5489b1%0x4?_0x27200b*0x40+_0x569125:_0x569125,_0x5489b1++%0x4)?_0x42688c+=String['fromCharCode'](0xff&_0x27200b>>(-0x2*_0x5489b1&0x6)):0x0){_0x569125=_0x477ddb['indexOf'](_0x569125);}for(let _0x2c5950=0x0,_0x248d20=_0x42688c['length'];_0x2c5950<_0x248d20;_0x2c5950++){_0x310a7d+='%'+('00'+_0x42688c['charCodeAt'](_0x2c5950)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x310a7d);};_0x247f['BwCpoz']=_0x508f1e,_0x42452d=arguments,_0x247f['woAYpf']=!![];}const _0x2f1445=_0x4db64b[0x0],_0x3f2df0=_0x247f1d+_0x2f1445,_0x422550=_0x42452d[_0x3f2df0];return!_0x422550?(_0x36560c=_0x247f['BwCpoz'](_0x36560c),_0x42452d[_0x3f2df0]=_0x36560c):_0x36560c=_0x422550,_0x36560c;},_0x247f(_0x42452d,_0x20f648);}const L$1=mars2d__namespace['L'];if(!mapv__namespace[_0x1adf34(0x1e4)])throw new Error(_0x1adf34(0x17c));const baiduMapLayer=mapv__namespace?mapv__namespace[_0x1adf34(0x194)]:null,BaseLayer=baiduMapLayer?baiduMapLayer['__proto__']:Function;class MapVRenderer extends BaseLayer{constructor(_0x528924,_0x41fe03,_0x43155c,_0xf7a214){const _0x614a5c={_0x270f24:0x177},_0x1ed83f=_0x1adf34;_0xf7a214=_0xf7a214||{},super(_0x528924,_0x43155c,_0xf7a214);if(!BaseLayer)return;this['canvasLayer']=_0x41fe03,this[_0x1ed83f(_0x614a5c._0x270f24)](_0xf7a214),this['argCheck'](_0xf7a214),this['bindEvent']();}[_0x1adf34(0x1df)](_0x52cc29){const _0x5e8fef={_0x154d2c:0x1b1,_0x5e1c1e:0x1d6,_0x56183f:0x1df},_0x1d7458=_0x1adf34,_0x1b7418=this[_0x1d7458(_0x5e8fef._0x154d2c)]['containerPointToLayerPoint']([0x0,0x0]),_0x5ecc9b=this['devicePixelRatio']=this[_0x1d7458(_0x5e8fef._0x5e1c1e)][_0x1d7458(0x1e5)]=window['devicePixelRatio'],_0x1f48da=_0x52cc29['layerPoint'];super[_0x1d7458(_0x5e8fef._0x56183f)](L$1[_0x1d7458(0x1bc)]((_0x1f48da['x']-_0x1b7418['x'])/_0x5ecc9b,(_0x1f48da['y']-_0x1b7418['y'])/_0x5ecc9b),_0x52cc29);}[_0x1adf34(0x1dd)](_0x9ca1e9){const _0x7b7501={_0x1a185b:0x1a3},_0xdfd87a=_0x1adf34,_0x3e24f7=_0x9ca1e9[_0xdfd87a(_0x7b7501._0x1a185b)];super['mousemoveEvent'](_0x3e24f7,_0x9ca1e9);}[_0x1adf34(0x169)](){const _0x2b41c9={_0xe2ff7a:0x17b,_0xffce8d:0x17b,_0x18159c:0x1c9,_0x233e18:0x17b,_0x9941d3:0x1dd,_0x24d999:0x1b1,_0x3f2eac:0x1bd},_0x370465=_0x1adf34,_0x1b0428=this['map'];this['options'][_0x370465(_0x2b41c9._0xe2ff7a)]&&(this['options'][_0x370465(_0x2b41c9._0xffce8d)][_0x370465(_0x2b41c9._0x18159c)]&&_0x1b0428['on']('click',this['clickEvent'],this),this['options'][_0x370465(_0x2b41c9._0x233e18)][_0x370465(0x1e1)]&&_0x1b0428['on'](_0x370465(0x1e1),this[_0x370465(_0x2b41c9._0x9941d3)],this)),this[_0x370465(_0x2b41c9._0x24d999)]['on']('movestart',this['moveStartEvent'],this),this[_0x370465(0x1b1)]['on']('moveend',this[_0x370465(0x174)],this),this[_0x370465(0x1b1)]['on']('zoomstart',this[_0x370465(_0x2b41c9._0x3f2eac)],this);}[_0x1adf34(0x1b2)](){const _0x960512={_0x220f89:0x1ab,_0x397e54:0x1c5,_0x3f1efd:0x191,_0x3aa020:0x1b1},_0x42844f=_0x1adf34;this[_0x42844f(_0x960512._0x220f89)](),this[_0x42844f(_0x960512._0x397e54)]();this['animator']&&(this[_0x42844f(_0x960512._0x3f1efd)][_0x42844f(0x18d)](),this['animator']=null);this[_0x42844f(0x1d6)]=null,this[_0x42844f(_0x960512._0x3aa020)]=null;for(const _0x3785bd in this){delete this[_0x3785bd];}}[_0x1adf34(0x1ab)](){const _0x19a62f={_0x72975:0x1e3,_0x5f2b06:0x17b,_0x13137a:0x1e3,_0x17f4fb:0x1dd,_0x42db94:0x1b1,_0x3949df:0x1bd},_0x14172a=_0x1adf34,_0x5bced3=this['map'];this[_0x14172a(_0x19a62f._0x72975)][_0x14172a(_0x19a62f._0x5f2b06)]&&(this[_0x14172a(_0x19a62f._0x13137a)]['methods']['click']&&_0x5bced3[_0x14172a(0x1b8)]('click',this['clickEvent'],this),this['options'][_0x14172a(_0x19a62f._0x5f2b06)]['mousemove']&&_0x5bced3['off'](_0x14172a(0x1e1),this[_0x14172a(_0x19a62f._0x17f4fb)],this)),this['map'][_0x14172a(0x1b8)]('movestart',this[_0x14172a(0x1cc)],this),this[_0x14172a(0x1b1)]['off']('moveend',this[_0x14172a(0x174)],this),this[_0x14172a(_0x19a62f._0x42db94)]['off'](_0x14172a(0x1f1),this[_0x14172a(_0x19a62f._0x3949df)],this);}[_0x1adf34(0x19c)](){const _0x120eaf={_0x14d36b:0x19c},_0x4b2075=_0x1adf34;return this['canvasLayer']['getCanvas']()[_0x4b2075(_0x120eaf._0x14d36b)](this['context']);}[_0x1adf34(0x16b)](_0x4b0728,_0x20e3dd){const _0x327c32={_0x2a1f8c:0x173,_0x1887ba:0x1ba},_0x59394f=_0x1adf34;let _0x379fdb=_0x4b0728;_0x4b0728&&_0x4b0728[_0x59394f(_0x327c32._0x2a1f8c)]&&(_0x379fdb=_0x4b0728[_0x59394f(_0x327c32._0x2a1f8c)]());this['dataSet']['add'](_0x379fdb);const _0x4ffdba={};_0x4ffdba['options']=_0x20e3dd,this[_0x59394f(_0x327c32._0x1887ba)](_0x4ffdba);}[_0x1adf34(0x1ba)](_0x3e0fab){const _0x51fb65={_0x2857cb:0x173,_0x550a72:0x1eb,_0x3e9aaa:0x1e3},_0x4ba452=_0x1adf34,_0x3bbd2f=_0x3e0fab||{};let _0x39ecdf=_0x3bbd2f['data'];_0x39ecdf&&_0x39ecdf[_0x4ba452(_0x51fb65._0x2857cb)]&&(_0x39ecdf=_0x39ecdf[_0x4ba452(0x173)]());_0x39ecdf!==undefined&&this[_0x4ba452(_0x51fb65._0x550a72)]['set'](_0x39ecdf);const _0x36e3f5={};_0x36e3f5[_0x4ba452(0x1e3)]=_0x3bbd2f[_0x4ba452(_0x51fb65._0x3e9aaa)],super['update'](_0x36e3f5);}[_0x1adf34(0x178)](){return this['dataSet'];}[_0x1adf34(0x196)](_0x4ef883){const _0x1cadeb={_0x21e3d2:0x1eb,_0x322aff:0x1db},_0x3cace9=_0x1adf34;if(!this['dataSet'])return;const _0x1ba1c9=this[_0x3cace9(_0x1cadeb._0x21e3d2)][_0x3cace9(0x173)]({'filter':function(_0x65f556){return _0x4ef883!=null&&typeof _0x4ef883==='function'?!_0x4ef883(_0x65f556):!![];}});this[_0x3cace9(0x1eb)][_0x3cace9(_0x1cadeb._0x322aff)](_0x1ba1c9);const _0x4be37c={};_0x4be37c[_0x3cace9(0x1e3)]=null,this['update'](_0x4be37c);}[_0x1adf34(0x1c5)](){const _0x273f04={_0x396464:0x1e3},_0x2e2858=_0x1adf34;this['dataSet']&&this[_0x2e2858(0x1eb)]['clear']();const _0x30d03f={};_0x30d03f[_0x2e2858(_0x273f04._0x396464)]=null,this['update'](_0x30d03f);}['_canvasUpdate'](_0x4fbf5e){const _0x2f54d1={_0x442e84:0x1e3,_0x54e708:0x1c3,_0x5b9536:0x19c,_0x1dcf5c:0x1b1,_0x105da9:0x1e2,_0xe0bd46:0x17f,_0x4d58e6:0x1be,_0x3d16ac:0x1e3,_0x147fa2:0x1d5,_0x421c32:0x197,_0x43f547:0x1ec,_0x2c70ca:0x18b,_0x2785e9:0x19b,_0x13e4f9:0x173,_0x30ad6d:0x1c2,_0xbd9045:0x1e3,_0x58aea0:0x1c0,_0x529e70:0x1a2,_0x143bcb:0x1dc,_0x19aee2:0x19a,_0x383aa8:0x1d8,_0x429591:0x1c1},_0x2d452c={_0x121376:0x1ea},_0x237144={_0x1c96c7:0x1be,_0x9ead3:0x1d2,_0x27bebe:0x16e},_0x3e0b2f=_0x1adf34;if(!this['canvasLayer'])return;const _0x1ac814=this;try{const _0x5c22a0=_0x1ac814[_0x3e0b2f(_0x2f54d1._0x442e84)][_0x3e0b2f(_0x2f54d1._0x54e708)],_0x4bf454=this[_0x3e0b2f(_0x2f54d1._0x5b9536)](),_0x120701=this[_0x3e0b2f(_0x2f54d1._0x1dcf5c)];if(_0x1ac814[_0x3e0b2f(0x192)]()){if(_0x4fbf5e===undefined){this['clear'](_0x4bf454);return;}this['context']==='2d'&&(_0x4bf454['save'](),_0x4bf454[_0x3e0b2f(0x193)]='destination-out',_0x4bf454[_0x3e0b2f(0x1a5)]=_0x3e0b2f(0x179),_0x4bf454[_0x3e0b2f(0x181)](0x0,0x0,_0x4bf454['canvas'][_0x3e0b2f(_0x2f54d1._0x105da9)],_0x4bf454[_0x3e0b2f(_0x2f54d1._0xe0bd46)]['height']),_0x4bf454[_0x3e0b2f(0x1af)]());}else this['clear'](_0x4bf454);if(this[_0x3e0b2f(_0x2f54d1._0x4d58e6)]==='2d')for(const _0x36f21a in _0x1ac814[_0x3e0b2f(_0x2f54d1._0x3d16ac)]){_0x4bf454[_0x36f21a]=_0x1ac814[_0x3e0b2f(_0x2f54d1._0x442e84)][_0x36f21a];}else _0x4bf454['clear'](_0x4bf454[_0x3e0b2f(0x183)]);if(_0x1ac814[_0x3e0b2f(0x1e3)]['minZoom']&&_0x120701['getZoom']()<_0x1ac814['options'][_0x3e0b2f(_0x2f54d1._0x147fa2)]||_0x1ac814[_0x3e0b2f(0x1e3)]['maxZoom']&&_0x120701[_0x3e0b2f(_0x2f54d1._0x421c32)]()>_0x1ac814['options']['maxZoom'])return;const _0x1026cc=_0x120701[_0x3e0b2f(_0x2f54d1._0x43f547)](),_0x1faa78=_0x1026cc[_0x3e0b2f(0x1a0)]()-_0x1026cc[_0x3e0b2f(0x1f0)](),_0x42d288=_0x1026cc[_0x3e0b2f(0x18f)]()-_0x1026cc['getSouth'](),_0x44c2f7=_0x120701[_0x3e0b2f(_0x2f54d1._0x2c70ca)](),_0x463ed5=_0x1faa78/_0x44c2f7['x'],_0x31b9f1=_0x42d288/_0x44c2f7['y'],_0x4316d4=this['canvasLayer'][_0x3e0b2f(_0x2f54d1._0x2785e9)](),_0x87716b=_0x120701[_0x3e0b2f(0x1d2)](_0x4316d4),_0x42e536={'transferCoordinate':function(_0x21f3fc){const _0x2d443b=_0x3e0b2f;let _0x27d268;if(_0x1ac814[_0x2d443b(_0x237144._0x1c96c7)]==='2d')_0x27d268=_0x120701[_0x2d443b(_0x237144._0x9ead3)](L$1[_0x2d443b(0x16d)](_0x21f3fc[0x1],_0x21f3fc[0x0]));else{const _0xc690c9={};_0xc690c9['x']=(_0x21f3fc[0x0]-_0x4316d4[_0x2d443b(_0x237144._0x27bebe)])/_0x463ed5,_0xc690c9['y']=(_0x4316d4[_0x2d443b(0x1bb)]-_0x21f3fc[0x1])/_0x31b9f1,_0x27d268=_0xc690c9;}const _0x4c4eb6={};_0x4c4eb6['x']=_0x27d268['x']-_0x87716b['x'],_0x4c4eb6['y']=_0x27d268['y']-_0x87716b['x'];const _0x4f3c21=_0x4c4eb6;return[_0x4f3c21['x'],_0x4f3c21['y']];}};_0x4fbf5e!==undefined&&(_0x42e536['filter']=function(_0x4ba003){const _0x2c0260=_0x3e0b2f,_0x44e0fe=_0x5c22a0[_0x2c0260(_0x2d452c._0x121376)]||0xa;return _0x4fbf5e&&_0x4ba003[_0x2c0260(0x176)]>_0x4fbf5e-_0x44e0fe&&_0x4ba003['time']<_0x4fbf5e;});const _0x593fdf=_0x1ac814['dataSet'][_0x3e0b2f(_0x2f54d1._0x13e4f9)](_0x42e536);this[_0x3e0b2f(_0x2f54d1._0x30ad6d)](_0x593fdf),_0x1ac814[_0x3e0b2f(_0x2f54d1._0xbd9045)][_0x3e0b2f(_0x2f54d1._0x58aea0)]=_0x1ac814['options'][_0x3e0b2f(_0x2f54d1._0x529e70)];const _0x1826c1=_0x120701[_0x3e0b2f(_0x2f54d1._0x143bcb)](L$1['latLng'](0x0,0x0)),_0x4e1aae={};_0x4e1aae['x']=_0x1826c1['x']-_0x87716b['x'],_0x4e1aae['y']=_0x1826c1['y']-_0x87716b['y'];const _0x55a17f=_0x4e1aae;_0x593fdf&&_0x593fdf['length']>0x0&&this[_0x3e0b2f(_0x2f54d1._0x19aee2)](_0x4bf454,_0x593fdf,_0x1ac814['options'],_0x55a17f),_0x1ac814['options'][_0x3e0b2f(_0x2f54d1._0x383aa8)]&&_0x1ac814[_0x3e0b2f(0x1e3)]['updateCallback'](_0x4fbf5e);}catch(_0x548669){console[_0x3e0b2f(_0x2f54d1._0x429591)](_0x3e0b2f(0x1b7),_0x548669);}}['init'](_0x4666c9){const _0x46ddb9={_0x17dfea:0x1e3,_0x5f2ccd:0x1e8,_0x3894d6:0x1e8},_0x369e81=_0x1adf34,_0x35b51f=this;_0x35b51f['options']=_0x4666c9,this['initDataRange'](_0x4666c9),this['context']=_0x35b51f[_0x369e81(_0x46ddb9._0x17dfea)][_0x369e81(0x1be)]||'2d',_0x35b51f['options'][_0x369e81(_0x46ddb9._0x5f2ccd)]&&(this[_0x369e81(0x1d6)]&&this['canvasLayer'][_0x369e81(0x1ae)](_0x35b51f['options'][_0x369e81(_0x46ddb9._0x3894d6)])),this[_0x369e81(0x188)]();}[_0x1adf34(0x1f2)](){}[_0x1adf34(0x1cc)](){const _0x341187={_0x1db3f1:0x1e3,_0x5b236d:0x1c3,_0x12d58d:0x1e6,_0x59a4f7:0x19e,_0x334e4e:0x171},_0x2df82d=_0x1adf34,_0x949fcc=this[_0x2df82d(_0x341187._0x1db3f1)][_0x2df82d(_0x341187._0x5b236d)];this[_0x2df82d(0x192)]()&&this['animator']&&(this['steps'][_0x2df82d(_0x341187._0x12d58d)]=_0x949fcc[_0x2df82d(0x1b0)][_0x2df82d(_0x341187._0x59a4f7)],this[_0x2df82d(_0x341187._0x334e4e)]());}['moveEndEvent'](){const _0x50e79c=_0x1adf34;this[_0x50e79c(0x1d6)][_0x50e79c(0x1d7)](),this['_show']();}[_0x1adf34(0x1bd)](){this['_hide']();}[_0x1adf34(0x1ad)](_0x336d8f){const _0x3b6486={_0x529d40:0x17f,_0x4311cb:0x1e2,_0x4952ed:0x17f,_0x4cef53:0x1ef},_0x3ee865=_0x1adf34;_0x336d8f&&_0x336d8f[_0x3ee865(0x1a9)]&&_0x336d8f['clearRect'](0x0,0x0,_0x336d8f[_0x3ee865(_0x3b6486._0x529d40)][_0x3ee865(_0x3b6486._0x4311cb)],_0x336d8f[_0x3ee865(_0x3b6486._0x4952ed)][_0x3ee865(_0x3b6486._0x4cef53)]);}[_0x1adf34(0x171)](){const _0x36d0b1={_0x1d2475:0x16c},_0x1b3259=_0x1adf34;this['canvasLayer']['canvas']['style'][_0x1b3259(_0x36d0b1._0x1d2475)]='none';}[_0x1adf34(0x1ee)](){const _0x2044a4={_0x11c730:0x17f,_0x30493e:0x172},_0x7fb602=_0x1adf34;this[_0x7fb602(0x1d6)][_0x7fb602(_0x2044a4._0x11c730)][_0x7fb602(_0x2044a4._0x30493e)][_0x7fb602(0x16c)]=_0x7fb602(0x1cf);}['draw'](){const _0x5d13b9=_0x1adf34;this[_0x5d13b9(0x1d6)]['draw']();}}const L=mars2d__namespace['L'];class MapVLayer extends L[_0x1adf34(0x1d4)]{['initialize'](_0x1e874c={},_0x8cab2){const _0x53f9b1={_0x1f98b6:0x1eb,_0x3ddb49:0x18e,_0x1a5aa2:0x1e3,_0x1752de:0x1d3,_0x56bcb0:0x1e3,_0x39b8f6:0x1d3},_0x1fd5cf=_0x1adf34;var _0x3a7f40,_0x1b4df1;this[_0x1fd5cf(0x1e3)]=_0x1e874c,this[_0x1fd5cf(_0x53f9b1._0x1f98b6)]=_0x8cab2||new mapv__namespace['DataSet'](_0x1e874c[_0x1fd5cf(_0x53f9b1._0x3ddb49)]),this['options']['id']=(_0x3a7f40=this[_0x1fd5cf(_0x53f9b1._0x1a5aa2)]['id'])!==null&&_0x3a7f40!==void 0x0?_0x3a7f40:mars2d__namespace['Util']['createGuid'](),this['options'][_0x1fd5cf(_0x53f9b1._0x1752de)]=(_0x1b4df1=this[_0x1fd5cf(_0x53f9b1._0x56bcb0)][_0x1fd5cf(_0x53f9b1._0x39b8f6)])!==null&&_0x1b4df1!==void 0x0?_0x1b4df1:-0x1;}get[_0x1adf34(0x1b4)](){const _0x9f96e2={_0x3940fd:0x17d,_0x496428:0x16f},_0xf60a80=_0x1adf34;return this['_map']&&this[_0xf60a80(_0x9f96e2._0x3940fd)][_0xf60a80(_0x9f96e2._0x496428)](this);}get['pid'](){const _0x1e095e=_0x1adf34;return this[_0x1e095e(0x1e3)][_0x1e095e(0x1d3)];}set['pid'](_0x557354){const _0x24250b={_0xc174d9:0x1e3,_0x162b94:0x1d3},_0x53be8c=_0x1adf34;this[_0x53be8c(_0x24250b._0xc174d9)][_0x53be8c(_0x24250b._0x162b94)]=_0x557354;}get['id'](){return this['options']['id'];}set['id'](_0x3dc2e9){this['options']['id']=_0x3dc2e9;}get['name'](){const _0x3530f0=_0x1adf34;return this[_0x3530f0(0x1e3)]['name'];}set['name'](_0x589198){this['options']['name']=_0x589198;}['onAdd'](_0x471348){const _0x1584e5={_0x550b3d:0x1e3,_0x780192:0x186,_0x46bd3b:0x198,_0x13619e:0x1da,_0x49d3ea:0x172,_0x342c82:0x1e0,_0x457524:0x1d9,_0x155e64:0x1e8,_0x10a9d9:0x17f,_0x5ee536:0x1bf,_0x49a778:0x18b,_0x189490:0x1eb,_0x300bee:0x1b9,_0x514f99:0x185,_0x58676a:0x1b9,_0x503e70:0x187,_0x5e3d7c:0x1b6,_0x233332:0x19d},_0x13c7ea=_0x1adf34;this['_map']=_0x471348;const _0x4fcf8d=_0x471348['getPane'](this[_0x13c7ea(_0x1584e5._0x550b3d)]['pane']||_0x13c7ea(0x1c4)),_0x47a97d=L[_0x13c7ea(_0x1584e5._0x780192)][_0x13c7ea(_0x1584e5._0x46bd3b)]('div','leaflet-layer\x20leaflet-zoom-animated',_0x4fcf8d);_0x47a97d[_0x13c7ea(0x172)]['position']='absolute',_0x47a97d['style'][_0x13c7ea(_0x1584e5._0x13619e)]='0px',_0x47a97d[_0x13c7ea(_0x1584e5._0x49d3ea)][_0x13c7ea(_0x1584e5._0x342c82)]=_0x13c7ea(_0x1584e5._0x457524),_0x47a97d[_0x13c7ea(0x172)]['zIndex']=this[_0x13c7ea(0x1e3)][_0x13c7ea(_0x1584e5._0x155e64)]||0x63,this[_0x13c7ea(_0x1584e5._0x10a9d9)]=this['_createCanvas'](),_0x47a97d[_0x13c7ea(_0x1584e5._0x5ee536)](this['canvas']);const _0x4dd42b=_0x471348[_0x13c7ea(_0x1584e5._0x49a778)]();_0x47a97d['style']['width']=_0x4dd42b['x']+'px',_0x47a97d['style'][_0x13c7ea(0x1ef)]=_0x4dd42b['y']+'px',this[_0x13c7ea(0x18c)]=_0x47a97d,this['dataSet']&&(!this[_0x13c7ea(_0x1584e5._0x189490)][_0x13c7ea(_0x1584e5._0x300bee)]||this['dataSet'][_0x13c7ea(0x1b9)][_0x13c7ea(_0x1584e5._0x514f99)]===0x0)&&(this[_0x13c7ea(0x1eb)][_0x13c7ea(_0x1584e5._0x58676a)]=[][_0x13c7ea(0x199)](this['dataSet'][_0x13c7ea(_0x1584e5._0x503e70)])),this[_0x13c7ea(_0x1584e5._0x5e3d7c)]=new MapVRenderer(_0x471348,this,this['dataSet'],this[_0x13c7ea(0x1e3)]),this[_0x13c7ea(0x1d7)](),this[_0x13c7ea(_0x1584e5._0x233332)]('loaded');}[_0x1adf34(0x1ca)](_0x1318d5){const _0xafe53f={_0x5a1512:0x1b6,_0x4320b0:0x1b2,_0x11184d:0x17f},_0x46fd8a=_0x1adf34;this[_0x46fd8a(_0xafe53f._0x5a1512)][_0x46fd8a(_0xafe53f._0x4320b0)](),delete this[_0x46fd8a(0x1b6)],L[_0x46fd8a(0x186)]['remove'](this['container']),delete this['container'],delete this[_0x46fd8a(_0xafe53f._0x11184d)];}['addData'](_0x55b4af){const _0x33b66d={_0x28bce1:0x1b6,_0x9f77fb:0x1e3},_0x1e4883=_0x1adf34;this['_mapVRenderer']&&this[_0x1e4883(_0x33b66d._0x28bce1)]['addData'](_0x55b4af,this[_0x1e4883(_0x33b66d._0x9f77fb)]);}['updateData'](_0x2ac6e6){const _0x355526={_0x36bae6:0x1e3},_0x5bfea9=_0x1adf34;this['_mapVRenderer']&&this['_mapVRenderer']['updateData'](_0x2ac6e6,this[_0x5bfea9(_0x355526._0x36bae6)]);}[_0x1adf34(0x178)](){const _0x425cbf={_0x2f147b:0x1eb,_0x473a71:0x178},_0x3b5ef3=_0x1adf34;return this['_mapVRenderer']&&(this[_0x3b5ef3(_0x425cbf._0x2f147b)]=this[_0x3b5ef3(0x1b6)][_0x3b5ef3(_0x425cbf._0x473a71)]()),this[_0x3b5ef3(0x1eb)];}[_0x1adf34(0x196)](_0x494299){const _0x39f1ef=_0x1adf34;this[_0x39f1ef(0x1b6)]&&this['_mapVRenderer'][_0x39f1ef(0x196)](_0x494299);}[_0x1adf34(0x1c8)](){const _0x8e339f={_0x425b63:0x1b6},_0x22acf7=_0x1adf34;this[_0x22acf7(_0x8e339f._0x425b63)]&&this[_0x22acf7(0x1b6)]['clearData']();}[_0x1adf34(0x1d7)](){this['_reset']();}[_0x1adf34(0x1ae)](_0x1c3ccd){const _0x1f77d3={_0x1167eb:0x1e8,_0x3df1de:0x18c,_0x342d19:0x172},_0x1d0e5c=_0x1adf34;this['options'][_0x1d0e5c(_0x1f77d3._0x1167eb)]=_0x1c3ccd,this[_0x1d0e5c(0x18c)]&&(this[_0x1d0e5c(_0x1f77d3._0x3df1de)][_0x1d0e5c(_0x1f77d3._0x342d19)][_0x1d0e5c(0x1e8)]=_0x1c3ccd);}[_0x1adf34(0x1de)](){const _0x21e691={_0x2af242:0x1d0},_0x185dbb=_0x1adf34;this['_mapVRenderer'][_0x185dbb(_0x21e691._0x2af242)]();}[_0x1adf34(0x1ac)](){return this['canvas'];}[_0x1adf34(0x182)](){return this['container'];}[_0x1adf34(0x19b)](){const _0x22117f={_0x49bdae:0x1ec},_0x24e376=_0x1adf34,_0x5b0a7d=this['_map'];let _0x3e1e5a;if(_0x5b0a7d){const _0x33be2=_0x5b0a7d[_0x24e376(_0x22117f._0x49bdae)]();_0x3e1e5a=_0x33be2['getNorthWest']();}return _0x3e1e5a;}[_0x1adf34(0x1a4)](){const _0x2de9de={_0x24f5d3:0x172,_0x210cfe:0x1f3,_0x574e1b:0x172,_0x57ac2c:0x19f,_0x214bc0:0x1e8,_0x3691ba:0x1c6,_0x129848:0x1e3,_0x3757da:0x19c},_0x4521c6=_0x1adf34,_0x130cce=document['createElement']('canvas');_0x130cce[_0x4521c6(_0x2de9de._0x24f5d3)][_0x4521c6(_0x2de9de._0x210cfe)]='absolute',_0x130cce[_0x4521c6(0x172)]['top']=0x0+'px',_0x130cce['style']['left']=0x0+'px',_0x130cce[_0x4521c6(_0x2de9de._0x574e1b)][_0x4521c6(_0x2de9de._0x57ac2c)]='none',_0x130cce['style']['zIndex']=this['options'][_0x4521c6(_0x2de9de._0x214bc0)]||0x258;const _0x460929=typeof window===_0x4521c6(_0x2de9de._0x3691ba)?{}:window,_0x51775a=this['devicePixelRatio']=_0x460929['devicePixelRatio'];return this[_0x4521c6(_0x2de9de._0x129848)]['context']==='2d'&&_0x130cce[_0x4521c6(_0x2de9de._0x3757da)]('2d')['scale'](_0x51775a,_0x51775a),_0x130cce;}[_0x1adf34(0x1ed)](){const _0x486a59={_0xe7efc3:0x17d,_0x1ac0c0:0x1e2,_0x2185fc:0x1ec},_0x407f0b=_0x1adf34,_0x5d7b99=this['canvas'];if(!_0x5d7b99)return;const _0x4cadff=this[_0x407f0b(_0x486a59._0xe7efc3)],_0x1c9f3d=_0x4cadff['getSize']();_0x5d7b99[_0x407f0b(0x1e2)]=_0x1c9f3d['x'],_0x5d7b99[_0x407f0b(0x1ef)]=_0x1c9f3d['y'],_0x5d7b99['style'][_0x407f0b(_0x486a59._0x1ac0c0)]=_0x1c9f3d['x']+'px',_0x5d7b99['style']['height']=_0x1c9f3d['y']+'px';const _0x31ce5b=_0x4cadff[_0x407f0b(_0x486a59._0x2185fc)](),_0x28427f=_0x4cadff['latLngToLayerPoint'](_0x31ce5b['getNorthWest']());L['DomUtil'][_0x407f0b(0x1e9)](_0x5d7b99,_0x28427f);}[_0x1adf34(0x1cb)](){const _0x516680={_0x39328f:0x1ed},_0xac1066=_0x1adf34;this[_0xac1066(_0x516680._0x39328f)](),this['_render']();}[_0x1adf34(0x195)](){this['_resize'](),this['_render']();}['_render'](){this['render']();}}mars2d__namespace[_0x1adf34(0x1cd)]['MapVLayer']=MapVLayer,mars2d__namespace['LayerUtil']['register'](_0x1adf34(0x1aa),MapVLayer),exports[_0x1adf34(0x17a)]=MapVLayer,Object[_0x1adf34(0x175)](mapv)[_0x1adf34(0x180)](function(_0x43a2b5){const _0x1e5cca={_0x1a97c9:0x1a1,_0x1ca30f:0x190,_0x59fbdd:0x189},_0x2687cf=_0x1adf34;if(_0x43a2b5!==_0x2687cf(_0x1e5cca._0x1a97c9)&&!exports[_0x2687cf(_0x1e5cca._0x1ca30f)](_0x43a2b5))Object[_0x2687cf(_0x1e5cca._0x59fbdd)](exports,_0x43a2b5,{'enumerable':!![],'get':function(){return mapv[_0x43a2b5];}});});const _0x488ca1={};_0x488ca1[_0x1adf34(0x184)]=!![],Object[_0x1adf34(0x189)](exports,_0x1adf34(0x1e7),_0x488ca1);
15
15
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mars2d-mapv",
3
- "version": "3.2.2",
3
+ "version": "3.2.4",
4
4
  "description": "Mars2D平台插件,结合mapv可视化功能插件",
5
5
  "main": "dist/mars2d-mapv.js",
6
6
  "files": [
@@ -10,7 +10,7 @@
10
10
  "mapv": "^2.0.62"
11
11
  },
12
12
  "devDependencies": {
13
- "mars2d": "~3.2.2"
13
+ "mars2d": "~3.2.4"
14
14
  },
15
15
  "scripts": {
16
16
  "lint": "eslint ./src/**/*.{js,ts} --fix"