Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mars2d-mapv

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mars2d-mapv - npm Package Compare versions

Comparing version 3.0.8 to 3.0.9

33

dist/mars2d-mapv.js
/*!
* Mars2D平台插件,结合mapv可视化功能插件
* 版本信息:v3.0.8
* 编译日期:2022-02-25 14:01:10
* 版权所有:Copyright by 火星科技 http://mars2d.cn
* 版本信息:v3.0.9, hash值: 6a7be226b677b173f7bc
* 编译日期:2022-03-03 19:09:10
* 版权所有:Copyright by 火星科技 http://mars2d.cn
*
*/
(function webpackUniversalModuleDefinition(window) {
let mars2d = window.mars2d //通过index.html的head引入
if (!mars2d && typeof exports === 'object') {
mars2d = require("mars2d")
window['mars2d'] = mars2d
}
if (!mars2d) {
console.error('请引入mars2d库,可参考教程:http://mars2d.cn/dev/guide/start/download.html')
}
let mapv = window.mapv //通过index.html的head引入
if (!mapv && typeof exports === 'mapv') {
mapv = require("mapv")
window['mapv'] = mapv
}
function a0_0x9b2c(_0x180d10,_0xe2bd41){var _0xa3e394=a0_0xa3e3();return a0_0x9b2c=function(_0x9b2c4a,_0x2fc001){_0x9b2c4a=_0x9b2c4a-0xcc;var _0x55bfa3=_0xa3e394[_0x9b2c4a];return _0x55bfa3;},a0_0x9b2c(_0x180d10,_0xe2bd41);}var a0_0x58e17f=a0_0x9b2c;function a0_0xa3e3(){var _0x5c237a=['createElement','114525LmXchz','apply','exports','point','off','mapv','object','toStringTag','clearData','stop','getCanvas','_createCanvas','_reset','register','isAdded','layerPoint','draw','defaultValue','unbindEvent','length','construct','1525080Mnwsym','zIndex','_map','Module','pointerEvents','getContainer','style','_leaflet_id','top','click','_canvasUpdate','getBounds','2665719PDeGBl','leaflet-layer\x20leaflet-zoom-animated','initialize','clearRect','clickEvent','hasLayer','fire','getEast','height','mousemoveEvent','value','map','466352OYqdvT','minZoom','updateCallback','save','maxZoom','8856896FMsISS','bindEvent','container','enumerable','getPrototypeOf','lng','start','_hide','name','_mapVRenderer','25oCfJJx','devicePixelRatio','latLngToAccurateContainerPoint','update','pid','none','pane','MapVLayer','onRemove','getNorthWest','addAnimatorEvent','configurable','_resize','getWest','__esModule','mars2d','canvasLayer','__proto__','layer','function','removeAllData','display','moveend','getSize','_size','absolute','moveStartEvent','latLng','dataSet','methods','7BHketN','mars2dMapv','0px','constructor','mapv渲染异常','_show','getOwnPropertyDescriptor','DataSet','getZoom','filter','symbol','default','animator','getData','appendChild','removeData','zoomStartEvent','sham','remove','setZIndex','getSouth','size','rgba(0,\x200,\x200,\x20.1)','add','defineProperty','_render','trails','position','fillStyle','_moveStartEvent','block','get','destroy','options','call','width','log','writable','2808957xpCckm','uuid','create','zoomstart','left','isEnabledTime','initDataRange','_moveEndEvent','moveEndEvent','DomUtil','2cDdbqe','prototype','Util','movestart','context','addData','mousemove','8045790lwhoVs','stamp','bind','string','updateData','valueOf','globalCompositeOperation','time','setPrototypeOf','div','_zoomStartEvent','getPane','hasOwnProperty','clear','getContext','initAnimator','lat','init','animation','render','restore','undefined','redraw','canvas','onAdd','latLngToContainerPoint'];a0_0xa3e3=function(){return _0x5c237a;};return a0_0xa3e3();}(function(_0x4fd80f,_0x2abc35){var _0x500db9=a0_0x9b2c,_0x41dd20=_0x4fd80f();while(!![]){try{var _0x2771ec=parseInt(_0x500db9(0xfd))/0x1+-parseInt(_0x500db9(0xdb))/0x2*(-parseInt(_0x500db9(0xd1))/0x3)+parseInt(_0x500db9(0x12a))/0x4*(-parseInt(_0x500db9(0x139))/0x5)+parseInt(_0x500db9(0x112))/0x6+parseInt(_0x500db9(0x157))/0x7*(-parseInt(_0x500db9(0x12f))/0x8)+parseInt(_0x500db9(0x11e))/0x9+parseInt(_0x500db9(0xe2))/0xa;if(_0x2771ec===_0x2abc35)break;else _0x41dd20['push'](_0x41dd20['shift']());}catch(_0x4544ee){_0x41dd20['push'](_0x41dd20['shift']());}}}(a0_0xa3e3,0xaebde),window[a0_0x58e17f(0x158)]=function(_0x5769e7){var _0x4f7ffc={};function _0x33a52d(_0x4f72c5){var _0x255174=a0_0x9b2c;if(_0x4f7ffc[_0x4f72c5])return _0x4f7ffc[_0x4f72c5][_0x255174(0xff)];var _0x1677f5=_0x4f7ffc[_0x4f72c5]={'i':_0x4f72c5,'l':!0x1,'exports':{}};return _0x5769e7[_0x4f72c5]['call'](_0x1677f5[_0x255174(0xff)],_0x1677f5,_0x1677f5[_0x255174(0xff)],_0x33a52d),_0x1677f5['l']=!0x0,_0x1677f5[_0x255174(0xff)];}return _0x33a52d['m']=_0x5769e7,_0x33a52d['c']=_0x4f7ffc,_0x33a52d['d']=function(_0x54c991,_0x116f13,_0x2b5ee3){_0x33a52d['o'](_0x54c991,_0x116f13)||Object['defineProperty'](_0x54c991,_0x116f13,{'enumerable':!0x0,'get':_0x2b5ee3});},_0x33a52d['r']=function(_0x3434f5){var _0x143650=a0_0x9b2c;_0x143650(0xf7)!=typeof Symbol&&Symbol[_0x143650(0x104)]&&Object[_0x143650(0x16f)](_0x3434f5,Symbol['toStringTag'],{'value':_0x143650(0x115)}),Object[_0x143650(0x16f)](_0x3434f5,_0x143650(0x147),{'value':!0x0});},_0x33a52d['t']=function(_0x277123,_0x1e8161){var _0x5a83cd=a0_0x9b2c;if(0x1&_0x1e8161&&(_0x277123=_0x33a52d(_0x277123)),0x8&_0x1e8161)return _0x277123;if(0x4&_0x1e8161&&_0x5a83cd(0x103)==typeof _0x277123&&_0x277123&&_0x277123[_0x5a83cd(0x147)])return _0x277123;var _0x2bdf77=Object[_0x5a83cd(0xd3)](null);if(_0x33a52d['r'](_0x2bdf77),Object[_0x5a83cd(0x16f)](_0x2bdf77,_0x5a83cd(0x162),{'enumerable':!0x0,'value':_0x277123}),0x2&_0x1e8161&&_0x5a83cd(0xe5)!=typeof _0x277123){for(var _0x43f9f4 in _0x277123)_0x33a52d['d'](_0x2bdf77,_0x43f9f4,function(_0x550307){return _0x277123[_0x550307];}[_0x5a83cd(0xe4)](null,_0x43f9f4));}return _0x2bdf77;},_0x33a52d['n']=function(_0x376efa){var _0x3e0fb5=a0_0x9b2c,_0x16226d=_0x376efa&&_0x376efa[_0x3e0fb5(0x147)]?function(){var _0x3c5d5a=_0x3e0fb5;return _0x376efa[_0x3c5d5a(0x162)];}:function(){return _0x376efa;};return _0x33a52d['d'](_0x16226d,'a',_0x16226d),_0x16226d;},_0x33a52d['o']=function(_0x1cfa94,_0x54bd1b){return Object['prototype']['hasOwnProperty']['call'](_0x1cfa94,_0x54bd1b);},_0x33a52d['p']='',_0x33a52d(_0x33a52d['s']=0xc);}([function(_0x4239fc,_0x1f65b9){var _0x4c4702=a0_0x58e17f;function _0x5e24b7(_0x24a61c){var _0x438a9a=a0_0x9b2c;return _0x4239fc[_0x438a9a(0xff)]=_0x5e24b7=Object['setPrototypeOf']?Object[_0x438a9a(0x133)]:function(_0x48eb7e){var _0x526c51=_0x438a9a;return _0x48eb7e[_0x526c51(0x14a)]||Object['getPrototypeOf'](_0x48eb7e);},_0x4239fc[_0x438a9a(0xff)][_0x438a9a(0x147)]=!0x0,_0x4239fc[_0x438a9a(0xff)][_0x438a9a(0x162)]=_0x4239fc[_0x438a9a(0xff)],_0x5e24b7(_0x24a61c);}_0x4239fc[_0x4c4702(0xff)]=_0x5e24b7,_0x4239fc['exports']['__esModule']=!0x0,_0x4239fc[_0x4c4702(0xff)]['default']=_0x4239fc[_0x4c4702(0xff)];},function(_0x2fa435,_0x153155){var _0x141122=a0_0x58e17f;_0x2fa435[_0x141122(0xff)]=window[_0x141122(0x148)];},function(_0x48d6e7,_0x257ba2){var _0x12ea1e=a0_0x58e17f;_0x48d6e7[_0x12ea1e(0xff)]=function(_0x242d7d){if(void 0x0===_0x242d7d)throw new ReferenceError('this\x20hasn\x27t\x20been\x20initialised\x20-\x20super()\x20hasn\x27t\x20been\x20called');return _0x242d7d;},_0x48d6e7[_0x12ea1e(0xff)][_0x12ea1e(0x147)]=!0x0,_0x48d6e7[_0x12ea1e(0xff)][_0x12ea1e(0x162)]=_0x48d6e7['exports'];},function(_0x44494c,_0x484ea5,_0xce761){var _0x374ec8=a0_0x58e17f,_0x364b5b=_0xce761(0x9)[_0x374ec8(0x162)],_0x1d350c=_0xce761(0x2);_0x44494c[_0x374ec8(0xff)]=function(_0x31ad62,_0x1b19a1){var _0x4362fd=_0x374ec8;if(_0x1b19a1&&(_0x4362fd(0x103)===_0x364b5b(_0x1b19a1)||_0x4362fd(0x14c)==typeof _0x1b19a1))return _0x1b19a1;if(void 0x0!==_0x1b19a1)throw new TypeError('Derived\x20constructors\x20may\x20only\x20return\x20object\x20or\x20undefined');return _0x1d350c(_0x31ad62);},_0x44494c[_0x374ec8(0xff)]['__esModule']=!0x0,_0x44494c[_0x374ec8(0xff)]['default']=_0x44494c[_0x374ec8(0xff)];},function(_0x2f3a38,_0x18ab6e){var _0x122c96=a0_0x58e17f;_0x2f3a38[_0x122c96(0xff)]=function(_0x4b4276,_0x36ba06){if(!(_0x4b4276 instanceof _0x36ba06))throw new TypeError('Cannot\x20call\x20a\x20class\x20as\x20a\x20function');},_0x2f3a38[_0x122c96(0xff)][_0x122c96(0x147)]=!0x0,_0x2f3a38['exports'][_0x122c96(0x162)]=_0x2f3a38[_0x122c96(0xff)];},function(_0x2dbf7b,_0x1f2d19){var _0x2de70a=a0_0x58e17f;function _0x468105(_0x535347,_0x7e5f0d){var _0xff5dd2=a0_0x9b2c;for(var _0x3316d2=0x0;_0x3316d2<_0x7e5f0d[_0xff5dd2(0x110)];_0x3316d2++){var _0x16efdf=_0x7e5f0d[_0x3316d2];_0x16efdf[_0xff5dd2(0x132)]=_0x16efdf[_0xff5dd2(0x132)]||!0x1,_0x16efdf[_0xff5dd2(0x144)]=!0x0,_0xff5dd2(0x128)in _0x16efdf&&(_0x16efdf[_0xff5dd2(0xd0)]=!0x0),Object[_0xff5dd2(0x16f)](_0x535347,_0x16efdf['key'],_0x16efdf);}}_0x2dbf7b[_0x2de70a(0xff)]=function(_0x4514ff,_0x295d8e,_0x3538bb){var _0x183342=_0x2de70a;return _0x295d8e&&_0x468105(_0x4514ff[_0x183342(0xdc)],_0x295d8e),_0x3538bb&&_0x468105(_0x4514ff,_0x3538bb),Object['defineProperty'](_0x4514ff,'prototype',{'writable':!0x1}),_0x4514ff;},_0x2dbf7b['exports'][_0x2de70a(0x147)]=!0x0,_0x2dbf7b[_0x2de70a(0xff)][_0x2de70a(0x162)]=_0x2dbf7b[_0x2de70a(0xff)];},function(_0x48facc,_0x1709e8,_0x45b2fc){var _0x5a4611=a0_0x58e17f,_0x38e0fd=_0x45b2fc(0x8);_0x48facc[_0x5a4611(0xff)]=function(_0x170a60,_0x47d2da){var _0xce4782=_0x5a4611;if(_0xce4782(0x14c)!=typeof _0x47d2da&&null!==_0x47d2da)throw new TypeError('Super\x20expression\x20must\x20either\x20be\x20null\x20or\x20a\x20function');Object[_0xce4782(0x16f)](_0x170a60,_0xce4782(0xdc),{'value':Object[_0xce4782(0xd3)](_0x47d2da&&_0x47d2da['prototype'],{'constructor':{'value':_0x170a60,'writable':!0x0,'configurable':!0x0}}),'writable':!0x1}),_0x47d2da&&_0x38e0fd(_0x170a60,_0x47d2da);},_0x48facc[_0x5a4611(0xff)][_0x5a4611(0x147)]=!0x0,_0x48facc['exports'][_0x5a4611(0x162)]=_0x48facc[_0x5a4611(0xff)];},function(_0x3536b9,_0x176771,_0x619a48){var _0x4e63a6=a0_0x58e17f,_0x52280c=_0x619a48(0xa);function _0x1114c1(){var _0xee98d9=a0_0x9b2c;return _0xee98d9(0xf7)!=typeof Reflect&&Reflect[_0xee98d9(0x176)]?(_0x3536b9[_0xee98d9(0xff)]=_0x1114c1=Reflect[_0xee98d9(0x176)],_0x3536b9[_0xee98d9(0xff)]['__esModule']=!0x0,_0x3536b9[_0xee98d9(0xff)]['default']=_0x3536b9['exports']):(_0x3536b9[_0xee98d9(0xff)]=_0x1114c1=function(_0x1a7c76,_0x1856e0,_0x4a2f52){var _0x1aeb6e=_0xee98d9,_0x4b163b=_0x52280c(_0x1a7c76,_0x1856e0);if(_0x4b163b){var _0x2600a7=Object[_0x1aeb6e(0x15d)](_0x4b163b,_0x1856e0);return _0x2600a7[_0x1aeb6e(0x176)]?_0x2600a7[_0x1aeb6e(0x176)][_0x1aeb6e(0xcd)](arguments[_0x1aeb6e(0x110)]<0x3?_0x1a7c76:_0x4a2f52):_0x2600a7[_0x1aeb6e(0x128)];}},_0x3536b9[_0xee98d9(0xff)]['__esModule']=!0x0,_0x3536b9[_0xee98d9(0xff)]['default']=_0x3536b9[_0xee98d9(0xff)]),_0x1114c1['apply'](this,arguments);}_0x3536b9[_0x4e63a6(0xff)]=_0x1114c1,_0x3536b9['exports'][_0x4e63a6(0x147)]=!0x0,_0x3536b9[_0x4e63a6(0xff)][_0x4e63a6(0x162)]=_0x3536b9[_0x4e63a6(0xff)];},function(_0x132258,_0x51ca7c){var _0x552876=a0_0x58e17f;function _0x46fc53(_0x591055,_0x28b812){var _0x5d64de=a0_0x9b2c;return _0x132258[_0x5d64de(0xff)]=_0x46fc53=Object[_0x5d64de(0xea)]||function(_0x292014,_0x2b48fd){return _0x292014['__proto__']=_0x2b48fd,_0x292014;},_0x132258[_0x5d64de(0xff)][_0x5d64de(0x147)]=!0x0,_0x132258['exports'][_0x5d64de(0x162)]=_0x132258['exports'],_0x46fc53(_0x591055,_0x28b812);}_0x132258['exports']=_0x46fc53,_0x132258[_0x552876(0xff)][_0x552876(0x147)]=!0x0,_0x132258['exports'][_0x552876(0x162)]=_0x132258[_0x552876(0xff)];},function(_0x24c986,_0x13e7ff){var _0x35eb9b=a0_0x58e17f;function _0x87be58(_0x54f0df){var _0x56f3c8=a0_0x9b2c;return _0x24c986[_0x56f3c8(0xff)]=_0x87be58=_0x56f3c8(0x14c)==typeof Symbol&&_0x56f3c8(0x161)==typeof Symbol['iterator']?function(_0x878c5e){return typeof _0x878c5e;}:function(_0x20d7f6){var _0x1a152b=_0x56f3c8;return _0x20d7f6&&_0x1a152b(0x14c)==typeof Symbol&&_0x20d7f6['constructor']===Symbol&&_0x20d7f6!==Symbol[_0x1a152b(0xdc)]?_0x1a152b(0x161):typeof _0x20d7f6;},_0x24c986[_0x56f3c8(0xff)][_0x56f3c8(0x147)]=!0x0,_0x24c986[_0x56f3c8(0xff)][_0x56f3c8(0x162)]=_0x24c986[_0x56f3c8(0xff)],_0x87be58(_0x54f0df);}_0x24c986[_0x35eb9b(0xff)]=_0x87be58,_0x24c986[_0x35eb9b(0xff)]['__esModule']=!0x0,_0x24c986[_0x35eb9b(0xff)][_0x35eb9b(0x162)]=_0x24c986[_0x35eb9b(0xff)];},function(_0x46df3b,_0x2266b2,_0x50d1ee){var _0x58ed54=a0_0x58e17f,_0x40dd66=_0x50d1ee(0x0);_0x46df3b[_0x58ed54(0xff)]=function(_0x21ec7f,_0x599ab3){var _0xa10dee=_0x58ed54;for(;!Object['prototype'][_0xa10dee(0xee)]['call'](_0x21ec7f,_0x599ab3)&&null!==(_0x21ec7f=_0x40dd66(_0x21ec7f)););return _0x21ec7f;},_0x46df3b[_0x58ed54(0xff)]['__esModule']=!0x0,_0x46df3b[_0x58ed54(0xff)][_0x58ed54(0x162)]=_0x46df3b[_0x58ed54(0xff)];},function(_0x3a7734,_0x3c10cc){var _0x42c6c=a0_0x58e17f;_0x3a7734[_0x42c6c(0xff)]=window[_0x42c6c(0x102)];},function(_0x350bec,_0x176bc4,_0x15c08c){'use strict';var _0x40cbcd=a0_0x58e17f;_0x15c08c['r'](_0x176bc4),_0x15c08c['d'](_0x176bc4,_0x40cbcd(0x140),function(){return _0x1b14d6;});var _0x3181f8=_0x15c08c(0x4),_0x1f631b=_0x15c08c['n'](_0x3181f8),_0x29ba8b=_0x15c08c(0x5),_0xb02eb=_0x15c08c['n'](_0x29ba8b),_0x5ab6dd=_0x15c08c(0x6),_0x5a5b35=_0x15c08c['n'](_0x5ab6dd),_0x41aa28=_0x15c08c(0x3),_0x31a518=_0x15c08c['n'](_0x41aa28),_0x2218a8=_0x15c08c(0x0),_0x4e97a9=_0x15c08c['n'](_0x2218a8),_0x53def1=_0x15c08c(0x1),_0x5d918d=_0x15c08c(0x2),_0x57c0b2=_0x15c08c['n'](_0x5d918d),_0x4f0a18=_0x15c08c(0x7),_0xd2c5a0=_0x15c08c['n'](_0x4f0a18);function _0x44b857(_0x1d4a7a){var _0x10f995=(function(){var _0x15293d=a0_0x9b2c;if(_0x15293d(0xf7)==typeof Reflect||!Reflect[_0x15293d(0x111)])return!0x1;if(Reflect[_0x15293d(0x111)][_0x15293d(0x168)])return!0x1;if('function'==typeof Proxy)return!0x0;try{return Boolean[_0x15293d(0xdc)]['valueOf']['call'](Reflect['construct'](Boolean,[],function(){})),!0x0;}catch(_0x4e5464){return!0x1;}}());return function(){var _0x1fd2c2=a0_0x9b2c,_0x49f53f,_0x5cfb20=_0x4e97a9()(_0x1d4a7a);if(_0x10f995){var _0x265033=_0x4e97a9()(this)[_0x1fd2c2(0x15a)];_0x49f53f=Reflect[_0x1fd2c2(0x111)](_0x5cfb20,arguments,_0x265033);}else _0x49f53f=_0x5cfb20['apply'](this,arguments);return _0x31a518()(this,_0x49f53f);};}var _0x4c5888=_0x53def1['L'],_0x53b0cb=_0x15c08c(0xb),_0x3e4df3=_0x53b0cb?_0x53b0cb['baiduMapLayer']:null,_0x2609e5=_0x3e4df3?_0x3e4df3[_0x40cbcd(0x14a)]:Function,_0x2b231c=function(_0x20e303){var _0x2382b6=_0x40cbcd;_0x5a5b35()(_0x3f97f5,_0x20e303);var _0x3a4f1c=_0x44b857(_0x3f97f5);function _0x3f97f5(_0x4c6d0e,_0x34da01,_0x19df81,_0x5986fc){var _0xa9d105=a0_0x9b2c,_0x55990d;if(_0x1f631b()(this,_0x3f97f5),_0x55990d=_0x3a4f1c[_0xa9d105(0xcd)](this,_0x4c6d0e,_0x19df81,_0x5986fc),!_0x2609e5)return _0x31a518()(_0x55990d);var _0x291e62=_0x57c0b2()(_0x55990d);return _0x5986fc=_0x5986fc||{},_0x291e62[_0xa9d105(0xf3)](_0x5986fc),_0x291e62['argCheck'](_0x5986fc),_0x55990d[_0xa9d105(0x149)]=_0x34da01,_0x55990d[_0xa9d105(0x122)]=_0x55990d[_0xa9d105(0x122)][_0xa9d105(0xe4)](_0x57c0b2()(_0x55990d)),_0x55990d[_0xa9d105(0x127)]=_0x55990d[_0xa9d105(0x127)]['bind'](_0x57c0b2()(_0x55990d)),_0x55990d[_0xa9d105(0x174)]=_0x55990d[_0xa9d105(0x153)]['bind'](_0x57c0b2()(_0x55990d)),_0x55990d[_0xa9d105(0xd8)]=_0x55990d[_0xa9d105(0xd9)][_0xa9d105(0xe4)](_0x57c0b2()(_0x55990d)),_0x55990d['_zoomStartEvent']=_0x55990d[_0xa9d105(0x167)][_0xa9d105(0xe4)](_0x57c0b2()(_0x55990d)),_0x55990d[_0xa9d105(0x130)](),_0x55990d;}return _0xb02eb()(_0x3f97f5,[{'key':_0x2382b6(0x122),'value':function(_0x2da691){var _0x2bbcb7=_0x2382b6,_0x4fda68=this[_0x2bbcb7(0x129)]['containerPointToLayerPoint']([0x0,0x0]),_0x4871f3=this[_0x2bbcb7(0x13a)]=this[_0x2bbcb7(0x149)][_0x2bbcb7(0x13a)]=window[_0x2bbcb7(0x13a)],_0x12f970=_0x2da691[_0x2bbcb7(0x10c)];_0xd2c5a0()(_0x4e97a9()(_0x3f97f5['prototype']),_0x2bbcb7(0x122),this)['call'](this,_0x4c5888[_0x2bbcb7(0x100)]((_0x12f970['x']-_0x4fda68['x'])/_0x4871f3,(_0x12f970['y']-_0x4fda68['y'])/_0x4871f3),_0x2da691);}},{'key':_0x2382b6(0x127),'value':function(_0x100cee){var _0x33def0=_0x2382b6,_0x3a85c0=_0x100cee[_0x33def0(0x10c)];_0xd2c5a0()(_0x4e97a9()(_0x3f97f5['prototype']),_0x33def0(0x127),this)[_0x33def0(0xcd)](this,_0x3a85c0,_0x100cee);}},{'key':_0x2382b6(0x130),'value':function(){var _0x518429=_0x2382b6,_0x5a9953=this[_0x518429(0x129)];this[_0x518429(0xcc)]['methods']&&(this[_0x518429(0xcc)]['methods'][_0x518429(0x11b)]&&_0x5a9953['on'](_0x518429(0x11b),this[_0x518429(0x122)]),this[_0x518429(0xcc)][_0x518429(0x156)][_0x518429(0xe1)]&&_0x5a9953['on'](_0x518429(0xe1),this[_0x518429(0x127)])),this[_0x518429(0x129)]['on'](_0x518429(0xde),this[_0x518429(0x174)]),this['map']['on'](_0x518429(0x14f),this[_0x518429(0xd8)]),this['map']['on'](_0x518429(0xd4),this['_zoomStartEvent']);}},{'key':'destroy','value':function(){var _0x34317d=_0x2382b6;this[_0x34317d(0x10f)](),this[_0x34317d(0x105)](),this[_0x34317d(0x163)]&&this[_0x34317d(0x163)][_0x34317d(0x106)](),this[_0x34317d(0x163)]=null,this[_0x34317d(0x149)]=null;}},{'key':'unbindEvent','value':function(){var _0xda279c=_0x2382b6,_0x106fd3=this[_0xda279c(0x129)];this['options'][_0xda279c(0x156)]&&(this[_0xda279c(0xcc)][_0xda279c(0x156)][_0xda279c(0x11b)]&&_0x106fd3[_0xda279c(0x101)]('click',this['clickEvent']),this[_0xda279c(0xcc)][_0xda279c(0x156)]['mousemove']&&_0x106fd3[_0xda279c(0x101)](_0xda279c(0xe1),this[_0xda279c(0x127)])),this[_0xda279c(0x129)]['off'](_0xda279c(0xde),this['_moveStartEvent']),this[_0xda279c(0x129)][_0xda279c(0x101)]('moveend',this['_moveEndEvent']),this['map'][_0xda279c(0x101)](_0xda279c(0xd4),this[_0xda279c(0xec)]);}},{'key':_0x2382b6(0xf0),'value':function(){var _0x390407=_0x2382b6;return this[_0x390407(0x149)][_0x390407(0x107)]()['getContext'](this[_0x390407(0xdf)]);}},{'key':_0x2382b6(0xe0),'value':function(_0x2c9940,_0x1aec59){var _0x567a0b=_0x2382b6,_0x1e6771=_0x2c9940;_0x2c9940&&_0x2c9940[_0x567a0b(0x176)]&&(_0x1e6771=_0x2c9940[_0x567a0b(0x176)]()),this[_0x567a0b(0x155)][_0x567a0b(0x16e)](_0x1e6771),this[_0x567a0b(0x13c)]({'options':_0x1aec59});}},{'key':_0x2382b6(0x13c),'value':function(_0x30fe2f){var _0x1d39a9=_0x2382b6,_0x480c5e=_0x30fe2f||{},_0x20c5e1=_0x480c5e['data'];_0x20c5e1&&_0x20c5e1[_0x1d39a9(0x176)]&&(_0x20c5e1=_0x20c5e1[_0x1d39a9(0x176)]()),null!=_0x20c5e1&&this[_0x1d39a9(0x155)]['set'](_0x20c5e1),_0xd2c5a0()(_0x4e97a9()(_0x3f97f5['prototype']),'update',this)[_0x1d39a9(0xcd)](this,{'options':_0x480c5e['options']});}},{'key':_0x2382b6(0x164),'value':function(){return this['dataSet'];}},{'key':_0x2382b6(0x166),'value':function(_0x36f19f){var _0x556f80=_0x2382b6;if(this['dataSet']){var _0x35b02b=this['dataSet'][_0x556f80(0x176)]({'filter':function(_0x3a5dd8){return null==_0x36f19f||'function'!=typeof _0x36f19f||!_0x36f19f(_0x3a5dd8);}});this['dataSet']['set'](_0x35b02b),this['update']({'options':null});}}},{'key':'clearData','value':function(){var _0x238052=_0x2382b6;this[_0x238052(0x155)]&&this['dataSet']['clear'](),this[_0x238052(0x13c)]({'options':null});}},{'key':_0x2382b6(0x11c),'value':function(_0x386bb5){var _0x223de1=_0x2382b6;if(this[_0x223de1(0x149)]){var _0x5348f2=this;try{var _0x231a39=_0x5348f2[_0x223de1(0xcc)][_0x223de1(0xf4)],_0x10b198=this['getContext'](),_0x599991=this[_0x223de1(0x129)];if(_0x5348f2['isEnabledTime']()){if(void 0x0===_0x386bb5)return void this[_0x223de1(0xef)](_0x10b198);'2d'===this[_0x223de1(0xdf)]&&(_0x10b198[_0x223de1(0x12d)](),_0x10b198[_0x223de1(0xe8)]='destination-out',_0x10b198[_0x223de1(0x173)]=_0x223de1(0x16d),_0x10b198['fillRect'](0x0,0x0,_0x10b198['canvas'][_0x223de1(0xce)],_0x10b198[_0x223de1(0xf9)][_0x223de1(0x126)]),_0x10b198[_0x223de1(0xf6)]());}else this['clear'](_0x10b198);if('2d'===this['context']){for(var _0x5ea88a in _0x5348f2[_0x223de1(0xcc)])_0x10b198[_0x5ea88a]=_0x5348f2[_0x223de1(0xcc)][_0x5ea88a];}else _0x10b198['clear'](_0x10b198['COLOR_BUFFER_BIT']);if(_0x5348f2['options']['minZoom']&&_0x599991[_0x223de1(0x15f)]()<_0x5348f2[_0x223de1(0xcc)][_0x223de1(0x12b)]||_0x5348f2[_0x223de1(0xcc)]['maxZoom']&&_0x599991[_0x223de1(0x15f)]()>_0x5348f2[_0x223de1(0xcc)][_0x223de1(0x12e)])return;var _0x4bc27b=_0x599991[_0x223de1(0x11d)](),_0x39c099=_0x4bc27b[_0x223de1(0x125)]()-_0x4bc27b[_0x223de1(0x146)](),_0x46242f=_0x4bc27b['getNorth']()-_0x4bc27b[_0x223de1(0x16b)](),_0x4f3c70=_0x599991['getSize'](),_0x51e78e=_0x39c099/_0x4f3c70['x'],_0x2b9921=_0x46242f/_0x4f3c70['y'],_0x5f96a3=this['canvasLayer']['getTopLeft'](),_0x4ca5bc=_0x599991[_0x223de1(0x13b)](_0x5f96a3),_0x10c60c={'transferCoordinate':function(_0x4ea832){var _0x838572=_0x223de1,_0x346ab8,_0xa739f={'x':(_0x346ab8='2d'===_0x5348f2[_0x838572(0xdf)]?_0x599991['latLngToAccurateContainerPoint'](_0x4c5888[_0x838572(0x154)](_0x4ea832[0x1],_0x4ea832[0x0])):{'x':(_0x4ea832[0x0]-_0x5f96a3[_0x838572(0x134)])/_0x51e78e,'y':(_0x5f96a3[_0x838572(0xf2)]-_0x4ea832[0x1])/_0x2b9921})['x']-_0x4ca5bc['x'],'y':_0x346ab8['y']-_0x4ca5bc['x']};return[_0xa739f['x'],_0xa739f['y']];}};void 0x0!==_0x386bb5&&(_0x10c60c[_0x223de1(0x160)]=function(_0x5e8531){var _0x412279=_0x223de1,_0x279941=_0x231a39[_0x412279(0x171)]||0xa;return _0x386bb5&&_0x5e8531[_0x412279(0xe9)]>_0x386bb5-_0x279941&&_0x5e8531[_0x412279(0xe9)]<_0x386bb5;});var _0x1a3e47=_0x5348f2[_0x223de1(0x155)][_0x223de1(0x176)](_0x10c60c);this['processData'](_0x1a3e47),_0x5348f2[_0x223de1(0xcc)][_0x223de1(0x151)]=_0x5348f2['options'][_0x223de1(0x16c)];var _0x5af50f=_0x599991[_0x223de1(0xfb)](_0x4c5888[_0x223de1(0x154)](0x0,0x0)),_0x337294={'x':_0x5af50f['x']-_0x4ca5bc['x'],'y':_0x5af50f['y']-_0x4ca5bc['y']};this['drawContext'](_0x10b198,_0x1a3e47,_0x5348f2['options'],_0x337294),_0x5348f2[_0x223de1(0xcc)][_0x223de1(0x12c)]&&_0x5348f2['options']['updateCallback'](_0x386bb5);}catch(_0x10e7c7){console[_0x223de1(0xcf)](_0x223de1(0x15b),_0x10e7c7);}}}},{'key':_0x2382b6(0xf3),'value':function(_0x51ebd6){var _0x576705=_0x2382b6;this[_0x576705(0xcc)]=_0x51ebd6,this[_0x576705(0xd7)](_0x51ebd6),this['context']=this['options']['context']||'2d',this[_0x576705(0xcc)][_0x576705(0x113)]&&this[_0x576705(0x149)]&&this[_0x576705(0x149)][_0x576705(0x16a)](this[_0x576705(0xcc)][_0x576705(0x113)]),this[_0x576705(0xf1)]();}},{'key':_0x2382b6(0x143),'value':function(){}},{'key':_0x2382b6(0x153),'value':function(){var _0x1a4608=_0x2382b6,_0x46ddf8=this[_0x1a4608(0xcc)]['animation'];this[_0x1a4608(0xd6)]()&&this['animator']&&(this['steps']['step']=_0x46ddf8['stepsRange'][_0x1a4608(0x135)],this[_0x1a4608(0x136)]());}},{'key':'moveEndEvent','value':function(){var _0x501312=_0x2382b6;this[_0x501312(0x149)][_0x501312(0x10d)](),this[_0x501312(0x15c)]();}},{'key':'zoomStartEvent','value':function(){var _0x3ec23b=_0x2382b6;this[_0x3ec23b(0x136)]();}},{'key':'clear','value':function(_0x5870db){var _0x53348a=_0x2382b6;_0x5870db&&_0x5870db['clearRect']&&_0x5870db[_0x53348a(0x121)](0x0,0x0,_0x5870db['canvas'][_0x53348a(0xce)],_0x5870db[_0x53348a(0xf9)]['height']);}},{'key':_0x2382b6(0x136),'value':function(){var _0x282ff6=_0x2382b6;this[_0x282ff6(0x149)][_0x282ff6(0xf9)][_0x282ff6(0x118)][_0x282ff6(0x14e)]=_0x282ff6(0x13e);}},{'key':_0x2382b6(0x15c),'value':function(){var _0x319ecc=_0x2382b6;this['canvasLayer'][_0x319ecc(0xf9)][_0x319ecc(0x118)][_0x319ecc(0x14e)]=_0x319ecc(0x175);}},{'key':_0x2382b6(0x10d),'value':function(){var _0x5692c2=_0x2382b6;this[_0x5692c2(0x149)][_0x5692c2(0x10d)]();}}]),_0x3f97f5;}(_0x2609e5);function _0x403d0c(_0x30de80){var _0x428475=(function(){var _0x4da7da=a0_0x9b2c;if('undefined'==typeof Reflect||!Reflect[_0x4da7da(0x111)])return!0x1;if(Reflect['construct'][_0x4da7da(0x168)])return!0x1;if(_0x4da7da(0x14c)==typeof Proxy)return!0x0;try{return Boolean[_0x4da7da(0xdc)][_0x4da7da(0xe7)][_0x4da7da(0xcd)](Reflect['construct'](Boolean,[],function(){})),!0x0;}catch(_0x3e9178){return!0x1;}}());return function(){var _0x2727ae=a0_0x9b2c,_0x103766,_0x3631f2=_0x4e97a9()(_0x30de80);if(_0x428475){var _0x12fd3f=_0x4e97a9()(this)[_0x2727ae(0x15a)];_0x103766=Reflect[_0x2727ae(0x111)](_0x3631f2,arguments,_0x12fd3f);}else _0x103766=_0x3631f2[_0x2727ae(0xfe)](this,arguments);return _0x31a518()(this,_0x103766);};}var _0x409522=_0x53def1['L'],_0x1b14d6=function(_0x54f009){var _0x474983=_0x40cbcd;_0x5a5b35()(_0x469bfc,_0x54f009);var _0x3e67ad=_0x403d0c(_0x469bfc);function _0x469bfc(){var _0x59a668=a0_0x9b2c;return _0x1f631b()(this,_0x469bfc),_0x3e67ad[_0x59a668(0xfe)](this,arguments);}return _0xb02eb()(_0x469bfc,[{'key':_0x474983(0x120),'value':function(){var _0x301b4b=_0x474983,_0x18e5c0=arguments['length']>0x0&&void 0x0!==arguments[0x0]?arguments[0x0]:{},_0x4d0bb7=arguments[_0x301b4b(0x110)]>0x1?arguments[0x1]:void 0x0;this[_0x301b4b(0xcc)]=_0x18e5c0,this[_0x301b4b(0x155)]=_0x4d0bb7||new this[(_0x301b4b(0x102))][(_0x301b4b(0x15e))](_0x18e5c0['data']),_0x409522[_0x301b4b(0xdd)][_0x301b4b(0xe3)](this),this[_0x301b4b(0xcc)]['id']=_0x53def1['Util'][_0x301b4b(0x10e)](this[_0x301b4b(0xcc)]['id'],this[_0x301b4b(0xd2)]),this['options'][_0x301b4b(0x13d)]=_0x53def1[_0x301b4b(0xdd)][_0x301b4b(0x10e)](this['options']['pid'],-0x1),this[_0x301b4b(0xcc)][_0x301b4b(0x137)]=_0x53def1['Util'][_0x301b4b(0x10e)](this[_0x301b4b(0xcc)][_0x301b4b(0x137)],'');}},{'key':_0x474983(0xd2),'get':function(){var _0x5a4930=_0x474983;return this[_0x5a4930(0x119)];}},{'key':_0x474983(0x10b),'get':function(){var _0x5513b0=_0x474983;return this['_map']&&this[_0x5513b0(0x114)][_0x5513b0(0x123)](this);}},{'key':_0x474983(0x13d),'get':function(){var _0x170a59=_0x474983;return this[_0x170a59(0xcc)]['pid'];},'set':function(_0x13cd62){var _0x10d0c4=_0x474983;this['options'][_0x10d0c4(0x13d)]=_0x13cd62;}},{'key':'id','get':function(){return this['options']['id'];},'set':function(_0x35bf3d){var _0x5a0d12=_0x474983;this[_0x5a0d12(0xcc)]['id']=_0x35bf3d;}},{'key':_0x474983(0x137),'get':function(){var _0x2ae977=_0x474983;return this[_0x2ae977(0xcc)]['name'];},'set':function(_0x45629e){var _0x3baeb9=_0x474983;this['options'][_0x3baeb9(0x137)]=_0x45629e;}},{'key':_0x474983(0xfa),'value':function(_0xd1671e){var _0x1dc234=_0x474983;this['_map']=_0xd1671e;var _0x3c6e32=_0xd1671e[_0x1dc234(0xed)](this[_0x1dc234(0xcc)][_0x1dc234(0x13f)]||'overlayPane'),_0x55aaf9=_0x409522[_0x1dc234(0xda)][_0x1dc234(0xd3)](_0x1dc234(0xeb),_0x1dc234(0x11f),_0x3c6e32);_0x55aaf9[_0x1dc234(0x118)][_0x1dc234(0x172)]='absolute',_0x55aaf9[_0x1dc234(0x118)][_0x1dc234(0x11a)]=_0x1dc234(0x159),_0x55aaf9['style'][_0x1dc234(0xd5)]=_0x1dc234(0x159),_0x55aaf9[_0x1dc234(0x118)]['zIndex']=this[_0x1dc234(0xcc)][_0x1dc234(0x113)]||0x63,this[_0x1dc234(0xf9)]=this[_0x1dc234(0x108)](),_0x55aaf9[_0x1dc234(0x165)](this['canvas']);var _0x5b3489=_0xd1671e[_0x1dc234(0x150)]();_0x55aaf9['style']['width']=_0x5b3489['x']+'px',_0x55aaf9[_0x1dc234(0x118)][_0x1dc234(0x126)]=_0x5b3489['y']+'px',this['container']=_0x55aaf9,this[_0x1dc234(0x138)]=new _0x2b231c(_0xd1671e,this,this[_0x1dc234(0x155)],this[_0x1dc234(0xcc)]),this[_0x1dc234(0x10d)](),this[_0x1dc234(0x124)]('loaded');}},{'key':_0x474983(0x141),'value':function(_0x147238){var _0x4ff71d=_0x474983;_0x409522['DomUtil'][_0x4ff71d(0x169)](this[_0x4ff71d(0x131)]),this[_0x4ff71d(0x138)][_0x4ff71d(0x177)](),delete this[_0x4ff71d(0x131)],delete this[_0x4ff71d(0xf9)],_0x147238[_0x4ff71d(0x101)]({'moveend':this[_0x4ff71d(0x10d)],'zoomstart':this['_hide'],'zoomend':this[_0x4ff71d(0x15c)]},this);}},{'key':_0x474983(0xe0),'value':function(_0x18c695){var _0xbaacad=_0x474983;this['_mapVRenderer']&&this[_0xbaacad(0x138)][_0xbaacad(0xe0)](_0x18c695,this[_0xbaacad(0xcc)]);}},{'key':_0x474983(0xe6),'value':function(_0xbe8d2d){var _0x2b1ff1=_0x474983;this['_mapVRenderer']&&this[_0x2b1ff1(0x138)][_0x2b1ff1(0xe6)](_0xbe8d2d,this['options']);}},{'key':'getData','value':function(){var _0x529e48=_0x474983;return this[_0x529e48(0x138)]&&(this['dataSet']=this[_0x529e48(0x138)][_0x529e48(0x164)]()),this['dataSet'];}},{'key':_0x474983(0x166),'value':function(_0xac1c36){var _0x10413f=_0x474983;this[_0x10413f(0x138)]&&this[_0x10413f(0x138)][_0x10413f(0x166)](_0xac1c36);}},{'key':_0x474983(0x14d),'value':function(){var _0x1c28d1=_0x474983;this[_0x1c28d1(0x138)]&&this['_mapVRenderer'][_0x1c28d1(0x105)]();}},{'key':_0x474983(0x10d),'value':function(){this['_reset']();}},{'key':_0x474983(0x16a),'value':function(_0x1cf7a0){var _0x295c8c=_0x474983;this['options'][_0x295c8c(0x113)]=_0x1cf7a0,this[_0x295c8c(0x131)]&&(this[_0x295c8c(0x131)][_0x295c8c(0x118)][_0x295c8c(0x113)]=_0x1cf7a0);}},{'key':_0x474983(0xf5),'value':function(){var _0x25f4ad=_0x474983;this[_0x25f4ad(0x138)][_0x25f4ad(0x11c)]();}},{'key':_0x474983(0x107),'value':function(){return this['canvas'];}},{'key':_0x474983(0x117),'value':function(){return this['container'];}},{'key':'getTopLeft','value':function(){var _0x17712e=_0x474983,_0x147c2b,_0x27fbe1=this[_0x17712e(0x114)];return _0x27fbe1&&(_0x147c2b=_0x27fbe1[_0x17712e(0x11d)]()[_0x17712e(0x142)]()),_0x147c2b;}},{'key':_0x474983(0x108),'value':function(){var _0x26733f=_0x474983,_0x509432=document[_0x26733f(0xfc)]('canvas');_0x509432[_0x26733f(0x118)][_0x26733f(0x172)]=_0x26733f(0x152),_0x509432[_0x26733f(0x118)][_0x26733f(0x11a)]='0px',_0x509432[_0x26733f(0x118)]['left']=_0x26733f(0x159),_0x509432['style'][_0x26733f(0x116)]=_0x26733f(0x13e),_0x509432['style'][_0x26733f(0x113)]=this[_0x26733f(0xcc)][_0x26733f(0x113)]||0x258;var _0x5e42e4='undefined'==typeof window?{}:window,_0x3e2c0b=this[_0x26733f(0x13a)]=_0x5e42e4[_0x26733f(0x13a)];return'2d'==this[_0x26733f(0xcc)]['context']&&_0x509432['getContext']('2d')['scale'](_0x3e2c0b,_0x3e2c0b),_0x509432;}},{'key':_0x474983(0x145),'value':function(){var _0x5db25a=_0x474983,_0x1fb0e4=this[_0x5db25a(0xf9)];if(_0x1fb0e4){var _0xe62d79=this[_0x5db25a(0x114)],_0x103463=_0xe62d79[_0x5db25a(0x150)]();_0x1fb0e4['width']=_0x103463['x'],_0x1fb0e4['height']=_0x103463['y'],_0x1fb0e4[_0x5db25a(0x118)]['width']=_0x103463['x']+'px',_0x1fb0e4[_0x5db25a(0x118)][_0x5db25a(0x126)]=_0x103463['y']+'px';var _0x2215f0=_0xe62d79[_0x5db25a(0x11d)](),_0x280b77=_0xe62d79['latLngToLayerPoint'](_0x2215f0[_0x5db25a(0x142)]());_0x409522['DomUtil']['setPosition'](_0x1fb0e4,_0x280b77);}}},{'key':_0x474983(0x109),'value':function(){var _0x2ce24a=_0x474983;this['_resize'](),this[_0x2ce24a(0x170)]();}},{'key':_0x474983(0xf8),'value':function(){var _0x4b9f07=_0x474983;this['_resize'](),this[_0x4b9f07(0x170)]();}},{'key':_0x474983(0x170),'value':function(){var _0x3e150a=_0x474983;this[_0x3e150a(0xf5)]();}}]),_0x469bfc;}(_0x409522['Layer']);_0x53def1[_0x40cbcd(0x14b)][_0x40cbcd(0x140)]=_0x1b14d6,_0x53def1['LayerUtil'][_0x40cbcd(0x10a)]('mapv',_0x1b14d6);}]));
})(window);
(function webpackUniversalModuleDefinition(root,factory){if(typeof exports==="object"&&typeof module==="object"){module.exports=factory(require("mars2d"),require("mapv"))}else{if(typeof define==="function"&&define.amd){define("mars2dMapv",["mars2d","mapv"],factory)}else{if(typeof exports==="object"){exports["mars2dMapv"]=factory(require("mars2d"),require("mapv"))}else{root["mars2dMapv"]=factory(root["mars2d"],root["mapv"])}}}})(window,function(__WEBPACK_EXTERNAL_MODULE__1__,__WEBPACK_EXTERNAL_MODULE__3__){return(function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]){return installedModules[moduleId].exports}var module=installedModules[moduleId]={i:moduleId,l:false,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.l=true;return module.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.d=function(exports,name,getter){if(!__webpack_require__.o(exports,name)){Object.defineProperty(exports,name,{enumerable:true,get:getter})}};__webpack_require__.r=function(exports){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(exports,"__esModule",{value:true})};__webpack_require__.t=function(value,mode){if(mode&1){value=__webpack_require__(value)}if(mode&8){return value}if((mode&4)&&typeof value==="object"&&value&&value.__esModule){return value}var ns=Object.create(null);__webpack_require__.r(ns);Object.defineProperty(ns,"default",{enumerable:true,value:value});if(mode&2&&typeof value!="string"){for(var key in value){__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key))}}return ns};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function getDefault(){return module["default"]}:function getModuleExports(){return module};__webpack_require__.d(getter,"a",getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=10)})([(function(module,exports){function _getPrototypeOf(o){module.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)},module.exports.__esModule=true,module.exports["default"]=module.exports;return _getPrototypeOf(o)}module.exports=_getPrototypeOf,module.exports.__esModule=true,module.exports["default"]=module.exports}),(function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE__1__}),(function(module,exports){function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return self}module.exports=_assertThisInitialized,module.exports.__esModule=true,module.exports["default"]=module.exports}),(function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE__3__}),(function(module,exports,__webpack_require__){var _typeof=__webpack_require__(12)["default"];var assertThisInitialized=__webpack_require__(2);function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call}else{if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}}return assertThisInitialized(self)}module.exports=_possibleConstructorReturn,module.exports.__esModule=true,module.exports["default"]=module.exports}),(function(module,exports){function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}module.exports=_classCallCheck,module.exports.__esModule=true,module.exports["default"]=module.exports}),(function(module,exports){function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value" in descriptor){descriptor.writable=true}Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){if(protoProps){_defineProperties(Constructor.prototype,protoProps)}if(staticProps){_defineProperties(Constructor,staticProps)}Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor}module.exports=_createClass,module.exports.__esModule=true,module.exports["default"]=module.exports}),(function(module,exports,__webpack_require__){var setPrototypeOf=__webpack_require__(11);function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(subClass,"prototype",{value:Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}}),writable:false});
if(superClass){setPrototypeOf(subClass,superClass)}}module.exports=_inherits,module.exports.__esModule=true,module.exports["default"]=module.exports}),(function(module,exports,__webpack_require__){var superPropBase=__webpack_require__(13);function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){module.exports=_get=Reflect.get,module.exports.__esModule=true,module.exports["default"]=module.exports}else{module.exports=_get=function _get(target,property,receiver){var base=superPropBase(target,property);if(!base){return}var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver)}return desc.value},module.exports.__esModule=true,module.exports["default"]=module.exports}return _get.apply(this,arguments)}module.exports=_get,module.exports.__esModule=true,module.exports["default"]=module.exports}),(function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return MapVLayer_MapVLayer});var classCallCheck=__webpack_require__(5);var classCallCheck_default=__webpack_require__.n(classCallCheck);var createClass=__webpack_require__(6);var createClass_default=__webpack_require__.n(createClass);var inherits=__webpack_require__(7);var inherits_default=__webpack_require__.n(inherits);var possibleConstructorReturn=__webpack_require__(4);var possibleConstructorReturn_default=__webpack_require__.n(possibleConstructorReturn);var getPrototypeOf=__webpack_require__(0);var getPrototypeOf_default=__webpack_require__.n(getPrototypeOf);var external_mars2d_=__webpack_require__(1);var assertThisInitialized=__webpack_require__(2);var assertThisInitialized_default=__webpack_require__.n(assertThisInitialized);var get=__webpack_require__(8);var get_default=__webpack_require__.n(get);var external_mapv_=__webpack_require__(3);function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=getPrototypeOf_default()(Derived),result;if(hasNativeReflectConstruct){var NewTarget=getPrototypeOf_default()(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return possibleConstructorReturn_default()(this,result)}}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct){return false}if(Reflect.construct.sham){return false}if(typeof Proxy==="function"){return true}try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(e){return false}}var L=external_mars2d_["L"];var baiduMapLayer=external_mapv_?external_mapv_["baiduMapLayer"]:null;var BaseLayer=baiduMapLayer?baiduMapLayer.__proto__:Function;var MapVRenderer_MapVRenderer=function(_BaseLayer){inherits_default()(MapVRenderer,_BaseLayer);var _super=_createSuper(MapVRenderer);function MapVRenderer(map,layer,dataSet,options){var _this;classCallCheck_default()(this,MapVRenderer);_this=_super.call(this,map,dataSet,options);if(!BaseLayer){return possibleConstructorReturn_default()(_this)}var self=assertThisInitialized_default()(_this);options=options||{};self.init(options);self.argCheck(options);_this.canvasLayer=layer;_this.clickEvent=_this.clickEvent.bind(assertThisInitialized_default()(_this));_this.mousemoveEvent=_this.mousemoveEvent.bind(assertThisInitialized_default()(_this));_this._moveStartEvent=_this.moveStartEvent.bind(assertThisInitialized_default()(_this));_this._moveEndEvent=_this.moveEndEvent.bind(assertThisInitialized_default()(_this));_this._zoomStartEvent=_this.zoomStartEvent.bind(assertThisInitialized_default()(_this));_this.bindEvent();return _this}createClass_default()(MapVRenderer,[{key:"clickEvent",value:function clickEvent(e){var offset=this.map.containerPointToLayerPoint([0,0]);var devicePixelRatio=this.devicePixelRatio=this.canvasLayer.devicePixelRatio=window.devicePixelRatio;var pixel=e.layerPoint;get_default()(getPrototypeOf_default()(MapVRenderer.prototype),"clickEvent",this).call(this,L.point((pixel.x-offset.x)/devicePixelRatio,(pixel.y-offset.y)/devicePixelRatio),e)}},{key:"mousemoveEvent",value:function mousemoveEvent(e){var pixel=e.layerPoint;get_default()(getPrototypeOf_default()(MapVRenderer.prototype),"mousemoveEvent",this).call(this,pixel,e)}},{key:"bindEvent",value:function bindEvent(){var map=this.map;if(this.options.methods){if(this.options.methods.click){map.on("click",this.clickEvent)}if(this.options.methods.mousemove){map.on("mousemove",this.mousemoveEvent)}}this.map.on("movestart",this._moveStartEvent);this.map.on("moveend",this._moveEndEvent);this.map.on("zoomstart",this._zoomStartEvent)}},{key:"destroy",value:function destroy(){this.unbindEvent();this.clearData();this.animator&&this.animator.stop();this.animator=null;this.canvasLayer=null}},{key:"unbindEvent",value:function unbindEvent(){var map=this.map;if(this.options.methods){if(this.options.methods.click){map.off("click",this.clickEvent)}if(this.options.methods.mousemove){map.off("mousemove",this.mousemoveEvent)
}}this.map.off("movestart",this._moveStartEvent);this.map.off("moveend",this._moveEndEvent);this.map.off("zoomstart",this._zoomStartEvent)}},{key:"getContext",value:function getContext(){return this.canvasLayer.getCanvas().getContext(this.context)}},{key:"addData",value:function addData(data,options){var _data=data;if(data&&data.get){_data=data.get()}this.dataSet.add(_data);this.update({options:options})}},{key:"update",value:function update(opt){var update=opt||{};var _data=update.data;if(_data&&_data.get){_data=_data.get()}if(_data!=undefined){this.dataSet.set(_data)}get_default()(getPrototypeOf_default()(MapVRenderer.prototype),"update",this).call(this,{options:update.options})}},{key:"getData",value:function getData(){return this.dataSet}},{key:"removeData",value:function removeData(_filter){if(!this.dataSet){return}var newData=this.dataSet.get({filter:function filter(data){return _filter!=null&&typeof _filter==="function"?!_filter(data):true}});this.dataSet.set(newData);this.update({options:null})}},{key:"clearData",value:function clearData(){this.dataSet&&this.dataSet.clear();this.update({options:null})}},{key:"_canvasUpdate",value:function _canvasUpdate(time){if(!this.canvasLayer){return}var self=this;try{var animationOptions=self.options.animation;var context=this.getContext();var map=this.map;if(self.isEnabledTime()){if(time===undefined){this.clear(context);return}if(this.context==="2d"){context.save();context.globalCompositeOperation="destination-out";context.fillStyle="rgba(0, 0, 0, .1)";context.fillRect(0,0,context.canvas.width,context.canvas.height);context.restore()}}else{this.clear(context)}if(this.context==="2d"){for(var key in self.options){context[key]=self.options[key]}}else{context.clear(context.COLOR_BUFFER_BIT)}if(self.options.minZoom&&map.getZoom()<self.options.minZoom||self.options.maxZoom&&map.getZoom()>self.options.maxZoom){return}var bounds=map.getBounds();var dw=bounds.getEast()-bounds.getWest();var dh=bounds.getNorth()-bounds.getSouth();var mapCanvas=map.getSize();var resolutionX=dw/mapCanvas.x,resolutionY=dh/mapCanvas.y;var topLeft=this.canvasLayer.getTopLeft();var topLeftPX=map.latLngToAccurateContainerPoint(topLeft);var dataGetOptions={transferCoordinate:function transferCoordinate(coordinate){var offset;if(self.context==="2d"){offset=map.latLngToAccurateContainerPoint(L.latLng(coordinate[1],coordinate[0]))}else{offset={x:(coordinate[0]-topLeft.lng)/resolutionX,y:(topLeft.lat-coordinate[1])/resolutionY}}var pixel={x:offset.x-topLeftPX.x,y:offset.y-topLeftPX.x};return[pixel.x,pixel.y]}};if(time!==undefined){dataGetOptions.filter=function(item){var trails=animationOptions.trails||10;return time&&item.time>time-trails&&item.time<time}}var data=self.dataSet.get(dataGetOptions);this.processData(data);self.options._size=self.options.size;var worldPoint=map.latLngToContainerPoint(L.latLng(0,0));var pixel={x:worldPoint.x-topLeftPX.x,y:worldPoint.y-topLeftPX.y};this.drawContext(context,data,self.options,pixel);self.options.updateCallback&&self.options.updateCallback(time)}catch(err){console.log("mapv渲染异常",err)}}},{key:"init",value:function init(options){var self=this;self.options=options;this.initDataRange(options);this.context=self.options.context||"2d";if(self.options.zIndex){this.canvasLayer&&this.canvasLayer.setZIndex(self.options.zIndex)}this.initAnimator()}},{key:"addAnimatorEvent",value:function addAnimatorEvent(){}},{key:"moveStartEvent",value:function moveStartEvent(){var animationOptions=this.options.animation;if(this.isEnabledTime()&&this.animator){this.steps.step=animationOptions.stepsRange.start;this._hide()}}},{key:"moveEndEvent",value:function moveEndEvent(){this.canvasLayer.draw();this._show()}},{key:"zoomStartEvent",value:function zoomStartEvent(){this._hide()}},{key:"clear",value:function clear(context){context&&context.clearRect&&context.clearRect(0,0,context.canvas.width,context.canvas.height)}},{key:"_hide",value:function _hide(){this.canvasLayer.canvas.style.display="none"}},{key:"_show",value:function _show(){this.canvasLayer.canvas.style.display="block"}},{key:"draw",value:function draw(){this.canvasLayer.draw()}}]);return MapVRenderer}(BaseLayer);function MapVLayer_createSuper(Derived){var hasNativeReflectConstruct=MapVLayer_isNativeReflectConstruct();return function _createSuperInternal(){var Super=getPrototypeOf_default()(Derived),result;if(hasNativeReflectConstruct){var NewTarget=getPrototypeOf_default()(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return possibleConstructorReturn_default()(this,result)}}function MapVLayer_isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct){return false}if(Reflect.construct.sham){return false}if(typeof Proxy==="function"){return true}try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(e){return false}}var MapVLayer_L=external_mars2d_["L"];var MapVLayer_MapVLayer=function(_L$Layer){inherits_default()(MapVLayer,_L$Layer);
var _super=MapVLayer_createSuper(MapVLayer);function MapVLayer(){classCallCheck_default()(this,MapVLayer);return _super.apply(this,arguments)}createClass_default()(MapVLayer,[{key:"initialize",value:function initialize(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var dataSet=arguments.length>1?arguments[1]:undefined;this.options=options;this.dataSet=dataSet||new this.mapv.DataSet(options.data);MapVLayer_L.Util.stamp(this);this.options.id=external_mars2d_["Util"].defaultValue(this.options.id,this.uuid);this.options.pid=external_mars2d_["Util"].defaultValue(this.options.pid,-1);this.options.name=external_mars2d_["Util"].defaultValue(this.options.name,"")}},{key:"uuid",get:function get(){return this._leaflet_id}},{key:"isAdded",get:function get(){return this._map&&this._map.hasLayer(this)}},{key:"pid",get:function get(){return this.options.pid},set:function set(pid){this.options.pid=pid}},{key:"id",get:function get(){return this.options.id},set:function set(id){this.options.id=id}},{key:"name",get:function get(){return this.options.name},set:function set(name){this.options.name=name}},{key:"onAdd",value:function onAdd(map){this._map=map;var overlayPane=map.getPane(this.options.pane||"overlayPane");var container=MapVLayer_L.DomUtil.create("div","leaflet-layer leaflet-zoom-animated",overlayPane);container.style.position="absolute";container.style.top="0px";container.style.left="0px";container.style.zIndex=this.options.zIndex||99;this.canvas=this._createCanvas();container.appendChild(this.canvas);var size=map.getSize();container.style.width=size.x+"px";container.style.height=size.y+"px";this.container=container;this._mapVRenderer=new MapVRenderer_MapVRenderer(map,this,this.dataSet,this.options);this.draw();this.fire("loaded")}},{key:"onRemove",value:function onRemove(map){MapVLayer_L.DomUtil.remove(this.container);this._mapVRenderer.destroy();delete this.container;delete this.canvas;map.off({moveend:this.draw,zoomstart:this._hide,zoomend:this._show},this)}},{key:"addData",value:function addData(dataSet){if(this._mapVRenderer){this._mapVRenderer.addData(dataSet,this.options)}}},{key:"updateData",value:function updateData(dataSet){if(this._mapVRenderer){this._mapVRenderer.updateData(dataSet,this.options)}}},{key:"getData",value:function getData(){if(this._mapVRenderer){this.dataSet=this._mapVRenderer.getData()}return this.dataSet}},{key:"removeData",value:function removeData(data){if(this._mapVRenderer){this._mapVRenderer.removeData(data)}}},{key:"removeAllData",value:function removeAllData(){if(this._mapVRenderer){this._mapVRenderer.clearData()}}},{key:"draw",value:function draw(){this._reset()}},{key:"setZIndex",value:function setZIndex(zIndex){this.options.zIndex=zIndex;if(this.container){this.container.style.zIndex=zIndex}}},{key:"render",value:function render(){this._mapVRenderer._canvasUpdate()}},{key:"getCanvas",value:function getCanvas(){return this.canvas}},{key:"getContainer",value:function getContainer(){return this.container}},{key:"getTopLeft",value:function getTopLeft(){var map=this._map;var topLeft;if(map){var bounds=map.getBounds();topLeft=bounds.getNorthWest()}return topLeft}},{key:"_createCanvas",value:function _createCanvas(){var canvas=document.createElement("canvas");canvas.style.position="absolute";canvas.style.top=0+"px";canvas.style.left=0+"px";canvas.style.pointerEvents="none";canvas.style.zIndex=this.options.zIndex||600;var global$2=typeof window==="undefined"?{}:window;var devicePixelRatio=this.devicePixelRatio=global$2.devicePixelRatio;if(this.options.context=="2d"){canvas.getContext("2d").scale(devicePixelRatio,devicePixelRatio)}return canvas}},{key:"_resize",value:function _resize(){var canvas=this.canvas;if(!canvas){return}var map=this._map;var size=map.getSize();canvas.width=size.x;canvas.height=size.y;canvas.style.width=size.x+"px";canvas.style.height=size.y+"px";var bounds=map.getBounds();var topLeft=map.latLngToLayerPoint(bounds.getNorthWest());MapVLayer_L.DomUtil.setPosition(canvas,topLeft)}},{key:"_reset",value:function _reset(){this._resize();this._render()}},{key:"redraw",value:function redraw(){this._resize();this._render()}},{key:"_render",value:function _render(){this.render()}}]);return MapVLayer}(MapVLayer_L.Layer);external_mars2d_["layer"].MapVLayer=MapVLayer_MapVLayer;external_mars2d_["LayerUtil"].register("mapv",MapVLayer_MapVLayer)}),(function(module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);var _mapv_MapVLayer__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9);__webpack_require__.d(__webpack_exports__,"MapVLayer",function(){return _mapv_MapVLayer__WEBPACK_IMPORTED_MODULE_0__["a"]});var mapv__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3);var mapv__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(mapv__WEBPACK_IMPORTED_MODULE_1__);for(var __WEBPACK_IMPORT_KEY__ in mapv__WEBPACK_IMPORTED_MODULE_1__){if(["default","MapVLayer"].indexOf(__WEBPACK_IMPORT_KEY__)<0){(function(key){__webpack_require__.d(__webpack_exports__,key,function(){return mapv__WEBPACK_IMPORTED_MODULE_1__[key]
})}(__WEBPACK_IMPORT_KEY__))}}}),(function(module,exports){function _setPrototypeOf(o,p){module.exports=_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o},module.exports.__esModule=true,module.exports["default"]=module.exports;return _setPrototypeOf(o,p)}module.exports=_setPrototypeOf,module.exports.__esModule=true,module.exports["default"]=module.exports}),(function(module,exports){function _typeof(obj){return(module.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},module.exports.__esModule=true,module.exports["default"]=module.exports),_typeof(obj)}module.exports=_typeof,module.exports.__esModule=true,module.exports["default"]=module.exports}),(function(module,exports,__webpack_require__){var getPrototypeOf=__webpack_require__(0);function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=getPrototypeOf(object);if(object===null){break}}return object}module.exports=_superPropBase,module.exports.__esModule=true,module.exports["default"]=module.exports})])});
{
"name": "mars2d-mapv",
"version": "3.0.8",
"version": "3.0.9",
"description": "Mars2D平台插件,结合mapv可视化功能插件",

@@ -10,6 +10,6 @@ "main": "dist/mars2d-mapv.js",

"dependencies": {
"mapv": "^2.0.34"
"mapv": "^2.0.62"
},
"devDependencies": {
"mars2d": "^3.0.8",
"mars2d": "^3.0.9",
"@babel/core": "^7.14.3",

@@ -16,0 +16,0 @@ "@babel/eslint-parser": "^7.14.3",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc