mars2d-mapv
Advanced tools
Comparing version 3.0.9 to 3.0.11
@@ -1,12 +0,16 @@ | ||
/*! | ||
* Mars2D平台插件,结合mapv可视化功能插件 | ||
* 版本信息:v3.0.9, hash值: 6a7be226b677b173f7bc | ||
* 编译日期:2022-03-03 19:09:10 | ||
* 版权所有:Copyright by 火星科技 http://mars2d.cn | ||
* | ||
/** | ||
* Mars2D地理信息平台 | ||
* | ||
* 版本信息:v3.0.11, | ||
* 编译日期:2022-03-11 16:19:43 | ||
* | ||
* 版权所有:Copyright by 火星科技 http://mars2d.cn | ||
* | ||
* 使用单位:免费公开版 ,2021-10-01 | ||
*/ | ||
(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})])}); | ||
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('mapv'), require('mars2d')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'mapv', 'mars2d'], factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["mars2d-mapv"] = {}, global.mapv, global.mars2d)); | ||
})(this, (function (exports, mapv, mars2d) { 'use strict';const _0x122d77=_0x39fe;(function(_0x14a1a4,_0x5eb757){const _0x342b4e=_0x39fe,_0x2ddff6=_0x14a1a4();while(!![]){try{const _0x41202e=-parseInt(_0x342b4e(0x129))/0x1+parseInt(_0x342b4e(0x13f))/0x2+-parseInt(_0x342b4e(0x127))/0x3+parseInt(_0x342b4e(0x1a8))/0x4+-parseInt(_0x342b4e(0x14f))/0x5*(parseInt(_0x342b4e(0x140))/0x6)+-parseInt(_0x342b4e(0x124))/0x7*(parseInt(_0x342b4e(0x13a))/0x8)+-parseInt(_0x342b4e(0x181))/0x9*(-parseInt(_0x342b4e(0x16d))/0xa);if(_0x41202e===_0x5eb757)break;else _0x2ddff6['push'](_0x2ddff6['shift']());}catch(_0x47ceb1){_0x2ddff6['push'](_0x2ddff6['shift']());}}}(_0x1b44,0x2ff2b));function _interopNamespace(_0x40aeb6){const _0x4eeddf=_0x39fe;if(_0x40aeb6&&_0x40aeb6['__esModule'])return _0x40aeb6;var _0x377d06=Object[_0x4eeddf(0x17f)](null);return _0x40aeb6&&Object[_0x4eeddf(0x13d)](_0x40aeb6)[_0x4eeddf(0x148)](function(_0x3018c7){const _0x171c7f=_0x4eeddf;if(_0x3018c7!=='default'){var _0x6e5b16=Object[_0x171c7f(0x130)](_0x40aeb6,_0x3018c7);Object[_0x171c7f(0x198)](_0x377d06,_0x3018c7,_0x6e5b16[_0x171c7f(0x195)]?_0x6e5b16:{'enumerable':!![],'get':function(){return _0x40aeb6[_0x3018c7];}});}}),_0x377d06[_0x4eeddf(0x125)]=_0x40aeb6,_0x377d06;}var mapv__namespace=_interopNamespace(mapv),mars2d__namespace=_interopNamespace(mars2d);const L$1=mars2d__namespace['L'],baiduMapLayer=mapv__namespace?mapv__namespace[_0x122d77(0x1a0)]:null,BaseLayer=baiduMapLayer?baiduMapLayer[_0x122d77(0x14e)]:Function;class MapVRenderer extends BaseLayer{constructor(_0xec514e,_0x541c55,_0x11a5c0,_0x310e2f){const _0x1bef85=_0x122d77;super(_0xec514e,_0x11a5c0,_0x310e2f);if(!BaseLayer)return;const _0x7d62af=this;_0x310e2f=_0x310e2f||{},_0x7d62af[_0x1bef85(0x128)](_0x310e2f),_0x7d62af[_0x1bef85(0x1b3)](_0x310e2f),this['canvasLayer']=_0x541c55,this[_0x1bef85(0x153)]=this[_0x1bef85(0x153)][_0x1bef85(0x151)](this),this[_0x1bef85(0x1a6)]=this[_0x1bef85(0x1a6)]['bind'](this),this['_moveStartEvent']=this[_0x1bef85(0x143)][_0x1bef85(0x151)](this),this[_0x1bef85(0x138)]=this['moveEndEvent'][_0x1bef85(0x151)](this),this[_0x1bef85(0x13c)]=this[_0x1bef85(0x15e)][_0x1bef85(0x151)](this),this[_0x1bef85(0x164)]();}['clickEvent'](_0x657bb2){const _0xdde9bb=_0x122d77,_0xcb04b5=this[_0xdde9bb(0x145)][_0xdde9bb(0x12e)]([0x0,0x0]),_0x4e6cc0=this[_0xdde9bb(0x158)]=this[_0xdde9bb(0x134)]['devicePixelRatio']=window['devicePixelRatio'],_0x15fd2c=_0x657bb2[_0xdde9bb(0x1b0)];super[_0xdde9bb(0x153)](L$1['point']((_0x15fd2c['x']-_0xcb04b5['x'])/_0x4e6cc0,(_0x15fd2c['y']-_0xcb04b5['y'])/_0x4e6cc0),_0x657bb2);}[_0x122d77(0x1a6)](_0x4982b8){const _0x110953=_0x122d77,_0x2a90b2=_0x4982b8[_0x110953(0x1b0)];super[_0x110953(0x1a6)](_0x2a90b2,_0x4982b8);}[_0x122d77(0x164)](){const _0x276361=_0x122d77,_0x5cabda=this['map'];this[_0x276361(0x17a)]['methods']&&(this[_0x276361(0x17a)][_0x276361(0x1ac)][_0x276361(0x1a9)]&&_0x5cabda['on']('click',this[_0x276361(0x153)]),this['options'][_0x276361(0x1ac)][_0x276361(0x13b)]&&_0x5cabda['on'](_0x276361(0x13b),this[_0x276361(0x1a6)])),this[_0x276361(0x145)]['on'](_0x276361(0x175),this['_moveStartEvent']),this[_0x276361(0x145)]['on']('moveend',this['_moveEndEvent']),this[_0x276361(0x145)]['on']('zoomstart',this[_0x276361(0x13c)]);}[_0x122d77(0x196)](){const _0x3053cb=_0x122d77;this[_0x3053cb(0x1ae)](),this[_0x3053cb(0x15b)](),this['animator']&&this[_0x3053cb(0x165)][_0x3053cb(0x186)](),this[_0x3053cb(0x165)]=null,this[_0x3053cb(0x134)]=null;}['unbindEvent'](){const _0x426525=_0x122d77,_0x1eb039=this[_0x426525(0x145)];this[_0x426525(0x17a)][_0x426525(0x1ac)]&&(this[_0x426525(0x17a)][_0x426525(0x1ac)][_0x426525(0x1a9)]&&_0x1eb039[_0x426525(0x17b)](_0x426525(0x1a9),this[_0x426525(0x153)]),this['options'][_0x426525(0x1ac)]['mousemove']&&_0x1eb039[_0x426525(0x17b)](_0x426525(0x13b),this[_0x426525(0x1a6)])),this['map'][_0x426525(0x17b)](_0x426525(0x175),this[_0x426525(0x123)]),this[_0x426525(0x145)][_0x426525(0x17b)](_0x426525(0x19a),this['_moveEndEvent']),this[_0x426525(0x145)][_0x426525(0x17b)](_0x426525(0x19c),this[_0x426525(0x13c)]);}['getContext'](){const _0x5d6577=_0x122d77;return this[_0x5d6577(0x134)][_0x5d6577(0x1a2)]()[_0x5d6577(0x18b)](this[_0x5d6577(0x1ab)]);}[_0x122d77(0x155)](_0x37d3a3,_0x50997d){const _0x4d6f27=_0x122d77;let _0x24407c=_0x37d3a3;_0x37d3a3&&_0x37d3a3['get']&&(_0x24407c=_0x37d3a3[_0x4d6f27(0x195)]()),this[_0x4d6f27(0x156)]['add'](_0x24407c),this['update']({'options':_0x50997d});}['update'](_0x5e5a2b){const _0x110847=_0x122d77,_0x4e257f=_0x5e5a2b||{};let _0x36860f=_0x4e257f['data'];_0x36860f&&_0x36860f[_0x110847(0x195)]&&(_0x36860f=_0x36860f['get']()),_0x36860f!==undefined&&this[_0x110847(0x156)]['set'](_0x36860f),super[_0x110847(0x18a)]({'options':_0x4e257f['options']});}['getData'](){return this['dataSet'];}['removeData'](_0x475164){const _0x1b5d95=_0x122d77;if(!this[_0x1b5d95(0x156)])return;const _0x307ec7=this[_0x1b5d95(0x156)][_0x1b5d95(0x195)]({'filter':function(_0x198a7d){const _0x5d3dfa=_0x1b5d95;return _0x475164!=null&&typeof _0x475164===_0x5d3dfa(0x190)?!_0x475164(_0x198a7d):!![];}});this[_0x1b5d95(0x156)][_0x1b5d95(0x147)](_0x307ec7),this[_0x1b5d95(0x18a)]({'options':null});}[_0x122d77(0x15b)](){const _0x5699a5=_0x122d77;this[_0x5699a5(0x156)]&&this['dataSet']['clear'](),this[_0x5699a5(0x18a)]({'options':null});}['_canvasUpdate'](_0x458aac){const _0x357424=_0x122d77;if(!this[_0x357424(0x134)])return;const _0x458c7a=this;try{const _0x2fc489=_0x458c7a['options'][_0x357424(0x1a3)],_0x352586=this[_0x357424(0x18b)](),_0x234ec4=this[_0x357424(0x145)];if(_0x458c7a['isEnabledTime']()){if(_0x458aac===undefined){this[_0x357424(0x17c)](_0x352586);return;}this[_0x357424(0x1ab)]==='2d'&&(_0x352586['save'](),_0x352586[_0x357424(0x162)]=_0x357424(0x1b2),_0x352586['fillStyle']=_0x357424(0x154),_0x352586['fillRect'](0x0,0x0,_0x352586[_0x357424(0x18d)][_0x357424(0x160)],_0x352586['canvas']['height']),_0x352586[_0x357424(0x192)]());}else this[_0x357424(0x17c)](_0x352586);if(this[_0x357424(0x1ab)]==='2d')for(const _0x194751 in _0x458c7a['options']){_0x352586[_0x194751]=_0x458c7a[_0x357424(0x17a)][_0x194751];}else _0x352586[_0x357424(0x17c)](_0x352586[_0x357424(0x14a)]);if(_0x458c7a[_0x357424(0x17a)][_0x357424(0x15d)]&&_0x234ec4[_0x357424(0x132)]()<_0x458c7a[_0x357424(0x17a)][_0x357424(0x15d)]||_0x458c7a[_0x357424(0x17a)][_0x357424(0x15c)]&&_0x234ec4[_0x357424(0x132)]()>_0x458c7a['options'][_0x357424(0x15c)])return;const _0x5054a6=_0x234ec4['getBounds'](),_0xf10581=_0x5054a6['getEast']()-_0x5054a6['getWest'](),_0xcadac8=_0x5054a6[_0x357424(0x15f)]()-_0x5054a6[_0x357424(0x19b)](),_0x1985c7=_0x234ec4['getSize'](),_0x4a1b0a=_0xf10581/_0x1985c7['x'],_0x160f7e=_0xcadac8/_0x1985c7['y'],_0x3f92d8=this[_0x357424(0x134)][_0x357424(0x122)](),_0x13b216=_0x234ec4[_0x357424(0x188)](_0x3f92d8),_0x5ad33e={'transferCoordinate':function(_0x191346){const _0x488ea2=_0x357424;let _0xd4e8c2;_0x458c7a[_0x488ea2(0x1ab)]==='2d'?_0xd4e8c2=_0x234ec4[_0x488ea2(0x188)](L$1[_0x488ea2(0x187)](_0x191346[0x1],_0x191346[0x0])):_0xd4e8c2={'x':(_0x191346[0x0]-_0x3f92d8[_0x488ea2(0x1aa)])/_0x4a1b0a,'y':(_0x3f92d8[_0x488ea2(0x11f)]-_0x191346[0x1])/_0x160f7e};const _0x4df4fb={'x':_0xd4e8c2['x']-_0x13b216['x'],'y':_0xd4e8c2['y']-_0x13b216['x']};return[_0x4df4fb['x'],_0x4df4fb['y']];}};_0x458aac!==undefined&&(_0x5ad33e[_0x357424(0x11d)]=function(_0x538ea7){const _0x48772c=_0x357424,_0x11de79=_0x2fc489[_0x48772c(0x193)]||0xa;return _0x458aac&&_0x538ea7[_0x48772c(0x157)]>_0x458aac-_0x11de79&&_0x538ea7[_0x48772c(0x157)]<_0x458aac;});const _0x57aa77=_0x458c7a[_0x357424(0x156)][_0x357424(0x195)](_0x5ad33e);this['processData'](_0x57aa77),_0x458c7a[_0x357424(0x17a)]['_size']=_0x458c7a[_0x357424(0x17a)]['size'];const _0x2ce38e=_0x234ec4['latLngToContainerPoint'](L$1[_0x357424(0x187)](0x0,0x0)),_0xf03b36={'x':_0x2ce38e['x']-_0x13b216['x'],'y':_0x2ce38e['y']-_0x13b216['y']};this[_0x357424(0x177)](_0x352586,_0x57aa77,_0x458c7a[_0x357424(0x17a)],_0xf03b36),_0x458c7a[_0x357424(0x17a)][_0x357424(0x182)]&&_0x458c7a[_0x357424(0x17a)][_0x357424(0x182)](_0x458aac);}catch(_0x309b54){console[_0x357424(0x152)](_0x357424(0x19d),_0x309b54);}}['init'](_0x17952f){const _0x180ae1=_0x122d77,_0x40b496=this;_0x40b496[_0x180ae1(0x17a)]=_0x17952f,this[_0x180ae1(0x137)](_0x17952f),this['context']=_0x40b496['options'][_0x180ae1(0x1ab)]||'2d',_0x40b496[_0x180ae1(0x17a)][_0x180ae1(0x191)]&&(this[_0x180ae1(0x134)]&&this[_0x180ae1(0x134)][_0x180ae1(0x1a5)](_0x40b496[_0x180ae1(0x17a)][_0x180ae1(0x191)])),this[_0x180ae1(0x19e)]();}[_0x122d77(0x144)](){}[_0x122d77(0x143)](){const _0x131a79=_0x122d77,_0x52132d=this['options']['animation'];this[_0x131a79(0x17e)]()&&this[_0x131a79(0x165)]&&(this[_0x131a79(0x11a)][_0x131a79(0x18f)]=_0x52132d[_0x131a79(0x139)][_0x131a79(0x173)],this['_hide']());}[_0x122d77(0x17d)](){const _0x40a195=_0x122d77;this[_0x40a195(0x134)]['draw'](),this[_0x40a195(0x120)]();}[_0x122d77(0x15e)](){const _0x3234bd=_0x122d77;this[_0x3234bd(0x170)]();}[_0x122d77(0x17c)](_0x4211cf){const _0x1de45f=_0x122d77;_0x4211cf&&_0x4211cf['clearRect']&&_0x4211cf[_0x1de45f(0x12d)](0x0,0x0,_0x4211cf[_0x1de45f(0x18d)]['width'],_0x4211cf[_0x1de45f(0x18d)]['height']);}[_0x122d77(0x170)](){const _0x3deaaa=_0x122d77;this['canvasLayer'][_0x3deaaa(0x18d)][_0x3deaaa(0x16f)][_0x3deaaa(0x18e)]=_0x3deaaa(0x19f);}[_0x122d77(0x120)](){const _0x20f0ef=_0x122d77;this[_0x20f0ef(0x134)][_0x20f0ef(0x18d)]['style'][_0x20f0ef(0x18e)]=_0x20f0ef(0x1af);}[_0x122d77(0x14c)](){const _0x52f3b9=_0x122d77;this[_0x52f3b9(0x134)]['draw']();}}const L=mars2d__namespace['L'];class MapVLayer extends L[_0x122d77(0x16a)]{['initialize'](_0x4a2ec3={},_0x15bb4e){const _0x2a0432=_0x122d77;this[_0x2a0432(0x17a)]=_0x4a2ec3,this[_0x2a0432(0x156)]=_0x15bb4e||new mapv__namespace[(_0x2a0432(0x16b))](_0x4a2ec3[_0x2a0432(0x174)]),L[_0x2a0432(0x126)][_0x2a0432(0x161)](this),this[_0x2a0432(0x17a)]['id']=mars2d__namespace[_0x2a0432(0x126)][_0x2a0432(0x178)](this[_0x2a0432(0x17a)]['id'],this[_0x2a0432(0x1ad)]),this[_0x2a0432(0x17a)][_0x2a0432(0x12c)]=mars2d__namespace[_0x2a0432(0x126)][_0x2a0432(0x178)](this['options'][_0x2a0432(0x12c)],-0x1),this[_0x2a0432(0x17a)]['name']=mars2d__namespace[_0x2a0432(0x126)][_0x2a0432(0x178)](this[_0x2a0432(0x17a)][_0x2a0432(0x11b)],'');}get[_0x122d77(0x1ad)](){const _0x9850b=_0x122d77;return this[_0x9850b(0x183)];}get[_0x122d77(0x171)](){const _0x2c9f2d=_0x122d77;return this[_0x2c9f2d(0x185)]&&this[_0x2c9f2d(0x185)][_0x2c9f2d(0x121)](this);}get[_0x122d77(0x12c)](){const _0x27c834=_0x122d77;return this[_0x27c834(0x17a)][_0x27c834(0x12c)];}set[_0x122d77(0x12c)](_0x398212){const _0x2068f1=_0x122d77;this['options'][_0x2068f1(0x12c)]=_0x398212;}get['id'](){const _0x3cdd1c=_0x122d77;return this[_0x3cdd1c(0x17a)]['id'];}set['id'](_0x3a25e3){const _0x2417f9=_0x122d77;this[_0x2417f9(0x17a)]['id']=_0x3a25e3;}get[_0x122d77(0x11b)](){return this['options']['name'];}set['name'](_0x59432e){const _0x47b869=_0x122d77;this[_0x47b869(0x17a)][_0x47b869(0x11b)]=_0x59432e;}['onAdd'](_0x171a1b){const _0x4020e4=_0x122d77;this['_map']=_0x171a1b;const _0xd62c64=_0x171a1b[_0x4020e4(0x159)](this['options'][_0x4020e4(0x12a)]||'overlayPane'),_0x37a946=L[_0x4020e4(0x150)][_0x4020e4(0x17f)](_0x4020e4(0x199),_0x4020e4(0x142),_0xd62c64);_0x37a946[_0x4020e4(0x16f)][_0x4020e4(0x169)]=_0x4020e4(0x179),_0x37a946[_0x4020e4(0x16f)][_0x4020e4(0x194)]=_0x4020e4(0x184),_0x37a946[_0x4020e4(0x16f)][_0x4020e4(0x135)]=_0x4020e4(0x184),_0x37a946[_0x4020e4(0x16f)][_0x4020e4(0x191)]=this[_0x4020e4(0x17a)][_0x4020e4(0x191)]||0x63,this[_0x4020e4(0x18d)]=this[_0x4020e4(0x11e)](),_0x37a946[_0x4020e4(0x16c)](this[_0x4020e4(0x18d)]);const _0x416a9f=_0x171a1b[_0x4020e4(0x197)]();_0x37a946[_0x4020e4(0x16f)][_0x4020e4(0x160)]=_0x416a9f['x']+'px',_0x37a946[_0x4020e4(0x16f)][_0x4020e4(0x166)]=_0x416a9f['y']+'px',this['container']=_0x37a946,this['_mapVRenderer']=new MapVRenderer(_0x171a1b,this,this['dataSet'],this[_0x4020e4(0x17a)]),this[_0x4020e4(0x14c)](),this[_0x4020e4(0x12f)](_0x4020e4(0x176));}[_0x122d77(0x189)](_0x3f5468){const _0x209c94=_0x122d77;L[_0x209c94(0x150)]['remove'](this[_0x209c94(0x16e)]),this[_0x209c94(0x14b)]['destroy'](),delete this[_0x209c94(0x16e)],delete this[_0x209c94(0x18d)],_0x3f5468['off']({'moveend':this[_0x209c94(0x14c)],'zoomstart':this[_0x209c94(0x170)],'zoomend':this[_0x209c94(0x120)]},this);}[_0x122d77(0x155)](_0x2ef637){const _0x454241=_0x122d77;this[_0x454241(0x14b)]&&this[_0x454241(0x14b)][_0x454241(0x155)](_0x2ef637,this[_0x454241(0x17a)]);}['updateData'](_0x184e3f){const _0xf7586a=_0x122d77;this[_0xf7586a(0x14b)]&&this[_0xf7586a(0x14b)]['updateData'](_0x184e3f,this['options']);}[_0x122d77(0x1a7)](){const _0x30747a=_0x122d77;return this[_0x30747a(0x14b)]&&(this[_0x30747a(0x156)]=this[_0x30747a(0x14b)][_0x30747a(0x1a7)]()),this[_0x30747a(0x156)];}[_0x122d77(0x146)](_0x4838e5){const _0x21e34d=_0x122d77;this['_mapVRenderer']&&this[_0x21e34d(0x14b)][_0x21e34d(0x146)](_0x4838e5);}['removeAllData'](){const _0x2c773b=_0x122d77;this['_mapVRenderer']&&this[_0x2c773b(0x14b)]['clearData']();}[_0x122d77(0x14c)](){const _0x2ae70d=_0x122d77;this[_0x2ae70d(0x14d)]();}['setZIndex'](_0x1d8d10){const _0x23066b=_0x122d77;this[_0x23066b(0x17a)][_0x23066b(0x191)]=_0x1d8d10,this['container']&&(this[_0x23066b(0x16e)]['style'][_0x23066b(0x191)]=_0x1d8d10);}[_0x122d77(0x11c)](){const _0x137468=_0x122d77;this[_0x137468(0x14b)]['_canvasUpdate']();}[_0x122d77(0x1a2)](){return this['canvas'];}[_0x122d77(0x167)](){return this['container'];}[_0x122d77(0x122)](){const _0x2dd199=_0x122d77,_0x2c0dfd=this[_0x2dd199(0x185)];let _0x24319a;if(_0x2c0dfd){const _0x21cc4=_0x2c0dfd['getBounds']();_0x24319a=_0x21cc4[_0x2dd199(0x168)]();}return _0x24319a;}[_0x122d77(0x11e)](){const _0x1c14dd=_0x122d77,_0x493483=document[_0x1c14dd(0x136)](_0x1c14dd(0x18d));_0x493483[_0x1c14dd(0x16f)]['position']='absolute',_0x493483['style']['top']=0x0+'px',_0x493483['style']['left']=0x0+'px',_0x493483['style'][_0x1c14dd(0x180)]=_0x1c14dd(0x19f),_0x493483[_0x1c14dd(0x16f)]['zIndex']=this[_0x1c14dd(0x17a)][_0x1c14dd(0x191)]||0x258;const _0x5e99cb=typeof window===_0x1c14dd(0x149)?{}:window,_0x1601f0=this['devicePixelRatio']=_0x5e99cb[_0x1c14dd(0x158)];return this['options'][_0x1c14dd(0x1ab)]==='2d'&&_0x493483[_0x1c14dd(0x18b)]('2d')[_0x1c14dd(0x133)](_0x1601f0,_0x1601f0),_0x493483;}[_0x122d77(0x13e)](){const _0x4b1a91=_0x122d77,_0x2f5cc7=this['canvas'];if(!_0x2f5cc7)return;const _0x414332=this['_map'],_0x484521=_0x414332[_0x4b1a91(0x197)]();_0x2f5cc7[_0x4b1a91(0x160)]=_0x484521['x'],_0x2f5cc7[_0x4b1a91(0x166)]=_0x484521['y'],_0x2f5cc7[_0x4b1a91(0x16f)]['width']=_0x484521['x']+'px',_0x2f5cc7[_0x4b1a91(0x16f)][_0x4b1a91(0x166)]=_0x484521['y']+'px';const _0x29f896=_0x414332[_0x4b1a91(0x163)](),_0x2ed189=_0x414332[_0x4b1a91(0x1b1)](_0x29f896[_0x4b1a91(0x168)]());L[_0x4b1a91(0x150)][_0x4b1a91(0x15a)](_0x2f5cc7,_0x2ed189);}[_0x122d77(0x14d)](){const _0x4019b1=_0x122d77;this[_0x4019b1(0x13e)](),this[_0x4019b1(0x131)]();}[_0x122d77(0x1a1)](){const _0x28af33=_0x122d77;this[_0x28af33(0x13e)](),this[_0x28af33(0x131)]();}[_0x122d77(0x131)](){const _0x1aa118=_0x122d77;this[_0x1aa118(0x11c)]();}}function _0x39fe(_0x556583,_0x1bc880){const _0x1b443b=_0x1b44();return _0x39fe=function(_0x39feb6,_0x2b6b2d){_0x39feb6=_0x39feb6-0x11a;let _0x2bd039=_0x1b443b[_0x39feb6];if(_0x39fe['xLvSQH']===undefined){var _0x45397c=function(_0x40aeb6){const _0x377d06='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3018c7='',_0x6e5b16='';for(let _0xec514e=0x0,_0x541c55,_0x11a5c0,_0x310e2f=0x0;_0x11a5c0=_0x40aeb6['charAt'](_0x310e2f++);~_0x11a5c0&&(_0x541c55=_0xec514e%0x4?_0x541c55*0x40+_0x11a5c0:_0x11a5c0,_0xec514e++%0x4)?_0x3018c7+=String['fromCharCode'](0xff&_0x541c55>>(-0x2*_0xec514e&0x6)):0x0){_0x11a5c0=_0x377d06['indexOf'](_0x11a5c0);}for(let _0x7d62af=0x0,_0x657bb2=_0x3018c7['length'];_0x7d62af<_0x657bb2;_0x7d62af++){_0x6e5b16+='%'+('00'+_0x3018c7['charCodeAt'](_0x7d62af)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x6e5b16);};_0x39fe['lrINZE']=_0x45397c,_0x556583=arguments,_0x39fe['xLvSQH']=!![];}const _0x2e7a2c=_0x1b443b[0x0],_0x2a0977=_0x39feb6+_0x2e7a2c,_0x565515=_0x556583[_0x2a0977];return!_0x565515?(_0x2bd039=_0x39fe['lrINZE'](_0x2bd039),_0x556583[_0x2a0977]=_0x2bd039):_0x2bd039=_0x565515,_0x2bd039;},_0x39fe(_0x556583,_0x1bc880);}function _0x1b44(){const _0x376a5f=['C2nHBgu','y2fUDMfZtgf5zxi','BgvMDa','y3jLyxrLrwXLBwvUDa','Aw5PDerHDgfsyw5Nzq','x21VDMvfBMrfDMvUDa','C3rLChnsyw5Nzq','mta0tvjUwePr','Bw91C2vTB3zL','x3PVB21tDgfYDev2zw50','A2v5CW','x3jLC2L6zq','mZm3ntzhzhPPB2m','mtmYmJe2we1ktw9u','CMvNAxn0zxi','BgvHzMXLDc1SyxLLCIbSzwfMBgv0lxPVB20Tyw5PBwf0zwq','Bw92zvn0yxj0rxzLBNq','ywrKqw5PBwf0B3jfDMvUDa','BwfW','CMvTB3zLrgf0yq','C2v0','zM9YrwfJAa','Dw5KzwzPBMvK','q09mt1jFqLvgrKvsx0jjva','x21HCfzszw5KzxjLCG','zhjHDW','x3jLC2v0','x19WCM90B19F','ndvOsvrtwgy','rg9TvxrPBa','yMLUza','Bg9N','y2XPy2TfDMvUDa','CMDIysGWlcaWlcaWlcaUmsK','ywrKrgf0yq','zgf0yvnLDa','DgLTzq','zgv2AwnLugL4zwXsyxrPBW','z2v0ugfUzq','C2v0ug9ZAxrPB24','y2XLyxjeyxrH','Bwf4wM9VBq','BwLUwM9VBq','EM9VBvn0yxj0rxzLBNq','z2v0tM9YDgG','D2LKDgG','C3rHBxa','z2XVyMfSq29TCg9ZAxrLt3bLCMf0Aw9U','z2v0qM91BMrZ','yMLUzev2zw50','yw5PBwf0B3i','AgvPz2H0','z2v0q29UDgfPBMvY','z2v0tM9YDgHxzxn0','Cg9ZAxrPB24','tgf5zxi','rgf0yvnLDa','yxbWzw5Kq2HPBgq','mZCWDu5ZA25h','y29UDgfPBMvY','C3r5Bgu','x2HPzgu','AxnbzgrLza','tgf5zxjvDgLS','C3rHCNq','zgf0yq','Bw92zxn0yxj0','Bg9HzgvK','zhjHD0nVBNrLEhq','zgvMyxvSDfzHBhvL','ywjZB2X1Dgu','B3b0Aw9UCW','B2zM','y2XLyxi','Bw92zuvUzev2zw50','AxnfBMfIBgvKvgLTzq','y3jLyxrL','Cg9PBNrLCKv2zw50CW','mtq5nZqYCNbKtvnQ','DxbKyxrLq2fSBgjHy2S','x2XLywzSzxrFAwq','mhb4','x21HCa','C3rVCa','Bgf0tg5N','Bgf0tg5Nvg9by2n1CMf0zunVBNrHAw5LCLbVAw50','B25szw1VDMu','DxbKyxrL','z2v0q29UDgv4Da','BwfWDG','y2fUDMfZ','zgLZCgXHEq','C3rLCa','zNvUy3rPB24','EKLUzgv4','CMvZDg9Yzq','DhjHAwXZ','Dg9W','z2v0','zgvZDhjVEq','z2v0u2L6zq','zgvMAw5LuhjVCgvYDhK','zgL2','Bw92zwvUza','z2v0u291DgG','EM9VBxn0yxj0','BwfWDUA4SUAFK+w8GUw4Ua','Aw5PDefUAw1HDg9Y','BM9Uzq','yMfPzhvnyxbmyxLLCG','CMvKCMf3','z2v0q2fUDMfZ','yw5PBwf0Aw9U','AgfZt3DUuhjVCgvYDhK','C2v0wKLUzgv4','Bw91C2vTB3zLrxzLBNq','z2v0rgf0yq','mti1mZCXmNH0vwDQsW','y2XPy2S','Bg5N','y29UDgv4Da','Bwv0Ag9KCW','DxvPza','Dw5IAw5KrxzLBNq','yMXVy2S','Bgf5zxjqB2LUDa','Bgf0tg5Nvg9myxLLCLbVAw50','zgvZDgLUyxrPB24TB3v0','yxjNq2HLy2S','C3rLChm','BMfTzq','CMvUzgvY','zMLSDgvY','x2nYzwf0zunHBNzHCW','Bgf0','x3nOB3C','AgfZtgf5zxi','z2v0vg9WtgvMDa','x21VDMvtDgfYDev2zw50','mJaWnZy3rMPNvhPW','zgvMyxvSDa','vxrPBa','mZu4otyYr0zHt2no','Aw5PDa','ntG2odzXAfjJD3e','CgfUzq','twfWvKXHEwvY','CgLK','y2XLyxjszwn0','y29UDgfPBMvYug9PBNruB0XHEwvYug9PBNq','zMLYzq','z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9Y','x3jLBMrLCG','z2v0wM9VBq'];_0x1b44=function(){return _0x376a5f;};return _0x1b44();}mars2d__namespace['layer'][_0x122d77(0x12b)]=MapVLayer,mars2d__namespace[_0x122d77(0x172)][_0x122d77(0x141)](_0x122d77(0x18c),MapVLayer),exports[_0x122d77(0x12b)]=MapVLayer,Object['keys'](mapv)['forEach'](function(_0x1896be){const _0x1ab1cd=_0x122d77;if(_0x1896be!==_0x1ab1cd(0x125)&&!exports[_0x1ab1cd(0x1a4)](_0x1896be))Object[_0x1ab1cd(0x198)](exports,_0x1896be,{'enumerable':!![],'get':function(){return mapv[_0x1896be];}});}),Object[_0x122d77(0x198)](exports,'__esModule',{'value':!![]}); | ||
})); |
{ | ||
"name": "mars2d-mapv", | ||
"version": "3.0.9", | ||
"version": "3.0.11", | ||
"description": "Mars2D平台插件,结合mapv可视化功能插件", | ||
@@ -13,28 +13,6 @@ "main": "dist/mars2d-mapv.js", | ||
"devDependencies": { | ||
"mars2d": "^3.0.9", | ||
"@babel/core": "^7.14.3", | ||
"@babel/eslint-parser": "^7.14.3", | ||
"@babel/plugin-proposal-class-properties": "^7.14.3", | ||
"@babel/plugin-transform-runtime": "^7.14.3", | ||
"@babel/preset-env": "^7.14.3", | ||
"babel-eslint": "^10.1.0", | ||
"babel-loader": "^8.2.2", | ||
"eslint": "^7.26.0", | ||
"eslint-config-prettier": "^7.2.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-prettier": "^3.3.1", | ||
"eslint-plugin-promise": "^4.3.1", | ||
"prettier": "^2.2.1", | ||
"webpack": "^4.46.0", | ||
"webpack-cli": "^3.3.12", | ||
"javascript-obfuscator": "^2.18.1", | ||
"webpack-obfuscator": "^2.6.0" | ||
"mars2d": "^3.0.11" | ||
}, | ||
"scripts": { | ||
"build": "webpack --env.prod --env.min --progress --profile --colors --config ./scripts/webpack.config.js && webpack --env.prod --progress --profile --colors --config ./scripts/webpack.config.js --devtool source-map", | ||
"build-src": "webpack --env.prod --progress --profile --colors --config ./scripts/webpack.config.js --devtool source-map", | ||
"build-min": "webpack --env.prod --env.min --progress --profile --colors --config ./scripts/webpack.config.js", | ||
"build-npm": "webpack --env.prod --env.min --progress --profile --colors --config ./scripts/webpack.npm.js && node scripts/npm/buildNpm.js", | ||
"push": "npm publish --registry=https://registry.npmjs.org" | ||
"lint": "eslint ./src/**/*.{js,ts} --fix" | ||
}, | ||
@@ -59,3 +37,12 @@ "repository": { | ||
"license": "Apache-2.0", | ||
"homepage": "http://mars2d.cn" | ||
"homepage": "http://mars2d.cn", | ||
"build": { | ||
"plugin": true, | ||
"globals": { | ||
"leaflet": "L", | ||
"mars2d": "mars2d", | ||
"mapv": "mapv" | ||
}, | ||
"minify": "obfuscator" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Obfuscated code
Supply chain riskObfuscated files are intentionally packed to hide their behavior. This could be a sign of malware.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1
90
0
22457
1