{ "pandav:/index.js": { "cubeCode": "Cube('pandav:/com/panda-amap/1.0.20',['pandav:/npm/bcore/0.0.18/event','pandav:/npm/react/17.0.2','pandav:/npm/react-dom/17.0.2','pandav:/com/panda-amap/1.0.20/AMapContainer','pandav:/npm/@amap/amap-jsapi-loader/1.0.1/dist','pandav:/npm/jquery/2.1.4'],function(a,b,c){function d(a){return a&&a.__esModule?a:{default:a}}var e=d(c('pandav:/npm/bcore/0.0.18/event')),f=d(c('pandav:/npm/react/17.0.2')),g=d(c('pandav:/npm/react-dom/17.0.2')),h=d(c('pandav:/com/panda-amap/1.0.20/AMapContainer')),i=d(c('pandav:/npm/@amap/amap-jsapi-loader/1.0.1/dist')),j=d(c('pandav:/npm/jquery/2.1.4'));return a.exports=e.default.extend(function(a,b){this.config={},this.container=a,this.childrenConfig=[],this._data=[],this.wmtsUrl=null,this.componentStatus='',this.wmtsInfo={},this.apis=b.apis,this.containSize={boxWidth:(0,j.default)(a)&&(0,j.default)(a).width(),boxHeight:(0,j.default)(a)&&(0,j.default)(a).height()},this.init(b)},{init:function(a){this.mergeConfig(a)},add:function(a,b){a.addTo(this,b)},updateWMTSUrl:function(a,b){this.wmtsUrl=a,this.wmtsInfo=b,this.render(this._data,this.config)},getL7Instance:function(){return this.L7Instance},getMapInstance:function(){return this.mapInstance},updateChildOptions:function(a){if(0\\n '),(0,y.default)('L7-amap-box_'.concat(this.props.id)).ready(function(){function b(){var c=0a.length)&&(b=a.length);for(var c=0,d=Array(b);cul{margin:0;padding:0;list-style:none}.Rightclickwriper>ul li{display:flex;height:30px;color:#fff;line-height:30px;background-color:rgba(28,52,76,.7);border-bottom:1px solid #3a628e}.Rightclickwriper>ul li:hover{background-color:rgba(22,133,255,.7)}.Rightclickwriper>ul li>span:nth-child(2){margin-left:15px}\";return m.exports});", "requires": [], "buildLevel": 0, "outputDir": "/com/panda-amap/1.0.20/lib/Basic/RightClick", "outputPath": "/com/panda-amap/1.0.20/lib/Basic/RightClick/index.css.js", "fileName": "/lib/Basic/RightClick/index.css" }, "pandav:/lib/Basic/RightClick/index.js": { "cubeCode": "Cube('pandav:/com/panda-amap/1.0.20/lib/Basic/RightClick',['pandav:/npm/@babel/runtime/7.18.3/helpers/interopRequireWildcard','pandav:/npm/react/17.0.2','pandav:/com/panda-amap/1.0.20/lib/Basic/RightClick/index.css','pandav:/com/panda-amap/1.0.20/lib/Class/Utils/AMapDrawTool'],function(a,b,c){var d=c('pandav:/npm/@babel/runtime/7.18.3/helpers/interopRequireWildcard').default;Object.defineProperty(b,'__esModule',{value:!0}),b.default=void 0;var e=d(c('pandav:/npm/react/17.0.2'));c('pandav:/com/panda-amap/1.0.20/lib/Basic/RightClick/index.css','');var f=c('pandav:/com/panda-amap/1.0.20/lib/Class/Utils/AMapDrawTool');return b.default=function(a){var b=a.map,c=a.pipeLyr,d=function(a){var e,f,b=Math.atan,c=Math.exp,d=Math.PI,g={X:0,Y:0};return e=180*(a.x/20037508.34),f=180*(a.y/20037508.34),f=180/d*(2*b(c(f*d/180))-d/2),g.X=e,g.Y=f,g},g=function(){var a=c.extent?c.extent.split(','):[0,0,0,0];if(4==a.length){var e=d({x:a[0],y:a[1]}),f=d({x:a[2],y:a[3]}),g=new AMap.LngLat(e.X,e.Y),h=new AMap.LngLat(f.X,f.Y),i=new AMap.Bounds(g,h);b.setBounds(i)}},h=function(a){var c=new f.AMapDrawTool({map:b,Amap:AMap});c.draw({drawMethod:'repeat',drawEnd:function(c){var d=b.getZoom();a?b.setZoomAndCenter(++d,c.getCenter()):b.setZoomAndCenter(--d,c.getCenter())},saveOverlayStatus:'saveNot',type:'Rectangle'})},i=function(c){switch(c){case'recover':g(),a.cancelright();break;case'amplification':h(!0),a.cancelright();break;case'narrow':h(!1),a.cancelright();break;case'clickQuery':var d=new f.AMapDrawTool({map:b,Amap:AMap});d.draw({drawMethod:'repeat',saveOverlayStatus:'saveNot'}),a.cancelright();break;default:}};return e.createElement('div',{className:'Rightclickwriper'},e.createElement('ul',null,e.createElement('li',{onClick:function(){return i('recover')}},e.createElement('span',null),e.createElement('span',null,'\\u5730\\u56FE\\u590D\\u4F4D')),e.createElement('li',{onClick:function(){return i('amplification')}},e.createElement('span',null),e.createElement('span',null,'\\u5730\\u56FE\\u653E\\u5927')),e.createElement('li',{onClick:function(){return i('narrow')}},e.createElement('span',null),e.createElement('span',null,'\\u5730\\u56FE\\u7F29\\u5C0F')),e.createElement('li',{onClick:function(){return i('clickQuery')}},e.createElement('span',null),e.createElement('span',null,'\\u70B9\\u51FB\\u67E5\\u8BE2'))))},a.exports});", "requires": [ "pandav:/lib/Basic/RightClick/index.css.js", "pandav:/lib/Class/Utils/AMapDrawTool.js" ], "buildLevel": 0, "outputDir": "/com/panda-amap/1.0.20/lib/Basic/RightClick", "outputPath": "/com/panda-amap/1.0.20/lib/Basic/RightClick/index.js", "fileName": "/lib/Basic/RightClick/index.js" }, "pandav:/lib/Class/AmapLoader/index.js": { "cubeCode": "Cube('pandav:/com/panda-amap/1.0.20/lib/Class/AmapLoader',[],function(a,b,c,d){function e(a){var b=[];return a.AMapUI&&b.push(f(a.AMapUI)),a.Loca&&b.push(g(a.Loca)),Promise.all(b)}function f(a){return new Promise(function(b,c){var d=[];if(a.plugins)for(var e=0;e'),a.marker.setOffset(b)}},this.options));break;case 3:this.cluster=new this.AMap.MarkerClusterer(this.map,this.datas,Object.assign({},{gridSize:60,renderClusterMarker:function(d){var e,f=c.datas.length,g=d.count,h=document.createElement('div'),i=['204,235,197','168,221,181','123,204,196','78,179,211','43,140,190'];0<=g&&10>g?e=i[0]:10<=g&&100>g?e=i[1]:100<=g&&1e3>g?e=i[2]:1e3<=g&&1e4>g?e=i[3]:1e4<=g&&(e=i[4]),h.style.backgroundColor='rgba('+e+',.5)';var j=a(25+40*b(g/f,1/5));h.style.width=h.style.height=j+'px',h.style.border='solid 1px rgba('+e+',1)',h.style.borderRadius=j/2+'px',h.innerHTML=d.count,h.style.lineHeight=j+'px',h.style.color='#ffffff',h.style.fontSize='12px',h.style.textAlign='center',d.marker.setOffset(new c.AMap.Pixel(-j/2,-j/2)),d.marker.setContent(h)},renderMarker:function(a){var b=new c.AMap.Pixel(-9,-9);a.marker.setContent('
'),a.marker.setOffset(b)}},this.options));break;default:this.cluster=new this.AMap.MarkerCluster(this.map,this.datas,{gridSize:60})}}},{key:'destroy',value:function(){var a;this.cluster&&(this.cluster.setData([]),this.cluster.setMap(null),this.cluster=null),null===(a=this.map)||void 0===a?void 0:a.remove(this.datas)}}]),a}();return b.MarkerClusterer=g,a.exports});", "requires": [], "buildLevel": 0, "outputDir": "/com/panda-amap/1.0.20/lib/Class/Basic/Layer/PointLayer", "outputPath": "/com/panda-amap/1.0.20/lib/Class/Basic/Layer/PointLayer/clustererLayer.js", "fileName": "/lib/Class/Basic/Layer/PointLayer/clustererLayer.js" }, "pandav:/lib/Class/Basic/Layer/ImageLayer/index.js": { "cubeCode": "Cube('pandav:/com/panda-amap/1.0.20/lib/Class/Basic/Layer/ImageLayer',['pandav:/npm/@babel/runtime/7.18.3/helpers/interopRequireDefault','pandav:/npm/@babel/runtime/7.18.3/helpers/classCallCheck','pandav:/npm/@babel/runtime/7.18.3/helpers/createClass'],function(a,b,c){var d=c('pandav:/npm/@babel/runtime/7.18.3/helpers/interopRequireDefault').default;Object.defineProperty(b,'__esModule',{value:!0}),b.ImageLayer=void 0;var e=d(c('pandav:/npm/@babel/runtime/7.18.3/helpers/classCallCheck')),f=d(c('pandav:/npm/@babel/runtime/7.18.3/helpers/createClass')),g=function(){function a(b){(0,e.default)(this,a);var c=b.Amap,d=b.map,f=b.url,g=b.title;this.Amap=c,this.map=d,this.url=f,this.title=g,this.layerIds=[],this.num=0}return(0,f.default)(a,[{key:'createImageLayer',value:function(a,b,c,d){var e=this;this.num+=1;var f=c||this.map,g=d||this.Amap;this.layerIds=a,1===this.num&&f&&g&&(this.image=new g.ImageLayer({url:this.getImageUrl(a,b,f),bounds:null===f||void 0===f?void 0:f.getBounds(),zooms:[2,20],opacity:1,type:'export'}),this.map.add(this.image),this.image.on('complete',function(){var a=e.map.getLayers(),b=a.filter(function(a){return'AMap.ImageLayer'===a.CLASS_NAME&&'export'==a._opts.type});1\\n .info-window-container {\\n padding: 3px;\\n border-radius: 6px;\\n background-color: #419af8;\\n color:white;\\n white-space: nowrap;\\n z-index: 3;\\n }\\n \\n
'.concat(a,'
\\n ')}},{key:'addToolTip',value:function(a){this.infoWindow=new AMap.Marker({content:this.tipTemp(a),anchor:'top-left',offset:new this.AMap.Pixel(2,22),style:{padding:'3px',\"border-radius\":'6px',\"background-color\":'#419af8',color:'white',\"z-index\":3}}),this.infoWindow.setMap(this.map)}},{key:'updateTip',value:function(a){this.infoWindow.setContent(this.tipTemp(a))}},{key:'getTipContent',value:function(){return this.infoWindow.getContent()}},{key:'addOverlayGroup',value:function(){this.overlayGroup=new this.AMap.OverlayGroup,this.overlayGroup.setMap(this.map)}},{key:'destoryOverlayGroup',value:function(){this.overlayGroup&&(this.overlayGroup.setMap(null),this.overlayGroup=null)}},{key:'destory',value:function(){this.destoryTip(),this.destoryEvents(),this.destoryOverlayGroup(),this.relaseMapDrag()}},{key:'destoryEvents',value:function(){var a=this;this.drawHandles&&this.drawHandles.map(function(b){var c=b.type,d=b.hook;a.map.off(c,d)}),this.drawHandles=[]}},{key:'destoryTip',value:function(){this.infoWindow&&(this.infoWindow.setMap(null),this.infoWindow=null)}},{key:'hideTip',value:function(){this.infoWindow&&(this.infoWindow.setPosition([0,0]),this.infoWindow.hide())}},{key:'showTip',value:function(a){this.infoWindow&&(this.infoWindow.setPosition(a),this.infoWindow.show())}},{key:'pause',value:function(){this.relaseMapDbClick(),this.relaseMapDrag(),this.hideTip(),this.isDrawing=!1}},{key:'resume',value:function(a){this.showTip(a),this.isDrawing=!0,this.stopMapDbClick(),this.stopMapDrag()}},{key:'cancelDraw',value:function(a){this.hideTip(),this.destoryEvents(),this.relaseMapDrag(),this.relaseMapDbClick(),a&&this.overlayGroup.clearOverlays()}},{key:'drawBeforeEvent',value:function(){this.relaseMapDrag(),this.overlayGroup.clearOverlays(),this.destoryEvents(),this.isDrawing=!0,this.AMap._rightMenu&&(this.AMap._rightMenu.enable=!1)}},{key:'drawAfterEvent',value:function(){setTimeout(function(){this.AMap._rightMenu&&(this.AMap._rightMenu.enable=!0)}.bind(this),20),this.relaseMapDrag()}},{key:'draw',value:function(a){this.map.setrightclick(!1),this.cancelDraw(!0),this.initDrawOpts(a);var b=a.drawEnd||function(){},c=a.rightClick||function(){},d=a.drawPoint||function(){},e=a.drawing||function(){},f=a.drawStart||function(){},g=a.escEvent||function(){};switch(this.updateTip(this.toolTip),this.drawBeforeEvent(),this.type){case'Circle':this.pointAddListener(b,c);break;case'Polyline':this.repaintDrawpolyline=!0,this.polylineAddListener({drawEnd:b,drawing:e,rightClick:c,escEvent:g,drawPoint:d,drawStart:f});break;case'Rectangle':this.rectangleAddListener({drawEnd:b,drawing:e,rightClick:c,drawStart:f});break;case'Polygon':this.repaintDrawpolygon=!0,this.polygonAddListener({drawEnd:b,drawing:e,rightClick:c,escEvent:g,drawPoint:d,drawStart:f});default:}this.map.setDefaultCursor(this.cursor)}},{key:'pointAddListener',value:function(a,b){var c=this.bindToFun(this.pointMouseDrawEndHandler,a),d=this.bindToFun(this.pointMouseRightClickHandler,b),e=this.pointMouseMoveHandler.bind(this);this.map.on('click',c),this.map.on('mousemove',e),this.map.on('rightclick',d),this.drawHandles.push({type:'click',hook:c},{type:'mousemove',hook:e},{type:'rightclick',hook:d})}},{key:'polylineAddListener',value:function(a){var b=a.drawEnd,c=a.drawing,d=a.rightClick,e=a.escEvent,f=a.drawPoint,g=a.drawStart,h=this.bindToFun(this.polylineMouseDbClickHandler,b),i=this.bindToFun(this.polylineMouseMoveHandler,c),j=this.bindToFun(this.polylineMouseRightClickHandler,d),k=this.bindToFun(this.polylineKeyupHandler,e),l=this.bindToFun(this.polylineMouseClickHandler,f,g);this.map.on('dblclick',h),this.map.on('mousemove',i),this.map.on('rightclick',j),this.map.on('click',l),this.map.on('keyup',k),this.drawHandles.push({type:'click',hook:l},{type:'mousemove',hook:i},{type:'rightclick',hook:j},{type:'dblclick',hook:h},{type:'keyup',hook:k})}},{key:'rectangleAddListener',value:function(a){var b=a.drawEnd,c=a.drawing,d=a.rightClick,e=a.drawStart,f=this.bindToFun(this.rectangleMouseDownHandler,e),g=this.bindToFun(this.rectangleMouseMoveHandler,c),h=this.bindToFun(this.rectangleMouseRightClickHandler,d),i=this.bindToFun(this.rectangleMouseUpHandler,b);this.map.on('mousedown',f),this.map.on('mousemove',g),this.map.on('rightclick',h),this.map.on('mouseup',i),this.drawHandles.push({type:'mousedown',hook:f},{type:'mousemove',hook:g},{type:'rightclick',hook:h},{type:'mouseup',hook:i})}},{key:'polygonAddListener',value:function(a){var b=a.drawEnd,c=a.drawing,d=a.rightClick,e=a.escEvent,f=a.drawPoint,g=a.drawStart,h=this.bindToFun(this.polygonMouseDbClickHandler,b),i=this.bindToFun(this.polygonMouseMoveHandler,c),j=this.bindToFun(this.polygonMouseRightClickHandler,d),k=this.bindToFun(this.polygonKeyupHandler,e),l=this.bindToFun(this.polygonMouseClickHandler,f,g);this.map.on('dblclick',h),this.map.on('mousemove',i),this.map.on('rightclick',j),this.map.on('click',l),this.map.on('keyup',k),this.drawHandles.push({type:'click',hook:l},{type:'mousemove',hook:i},{type:'rightclick',hook:j},{type:'dblclick',hook:h},{type:'keyup',hook:k})}},{key:'bindToFun',value:function(a){for(var b=arguments.length,c=Array(1e.northEast.lng?(f.lng=e.northEast.lng,g.lng=e.southWest.lng):(f.lng=e.southWest.lng,g.lng=e.northEast.lng),e.southWest.lat>e.northEast.lat?(f.lat=e.northEast.lat,g.lat=e.southWest.lat):(f.lat=e.southWest.lat,g.lat=e.northEast.lat),d.setBounds(new this.AMap.Bounds(new this.AMap.LngLat(f.lng,f.lat),new this.AMap.LngLat(g.lng,g.lat))),a(d)}}},{key:'rectangleMouseRightClickHandler',value:function(a){this.mouseEventStopAction()||this.rightClickCommon(a)}},{key:'polygonMouseClickHandler',value:function(a,b,c){if(!this.mouseEventStopAction()){this.commonMouseClickHander(this.repaintDrawpolygon,c);var d=this.overlayGroup.getOverlays();if(this.repaintDrawpolygon){this.repaintDrawpolygon=!1;var e=[[c.lnglat.lng,c.lnglat.lat],[c.lnglat.lng,c.lnglat.lat]],f=h.extend(this.geometrySymbol,{path:e,extData:{lng:c.lnglat.lng,lat:c.lnglat.lat},bubble:!0}),g=this.addOverlay({type:'Polygon',options:f});b(g,d.length+1),a(g)}else{var i=d[d.length-1],j=i.getPath();j.push(c.lnglat),i.setPath(j),a(i)}}}},{key:'polygonMouseMoveHandler',value:function(a,b){if(!this.mouseEventStopAction()){this.mouseMoveTipHandler(b);var c=this.overlayGroup.getOverlays();if(c&&c[c.length-1]&&!this.repaintDrawpolygon){var d=c[c.length-1],e=d.getPath();e.pop(),e.push(b.lnglat),d.setPath(e),a(d)}}}},{key:'polygonMouseDbClickHandler',value:function(a){if(!this.mouseEventStopAction()){this.relaseMapDrag();var b=this.overlayGroup.getOverlays(),c=b[b.length-1];if(this.handleRepeatPath(c),'once'==this.drawMethod)'saveNot'==this.saveOverlayStatus&&this.overlayGroup.clearOverlays(),this.cancelDraw(),this.drawAfterEvent();else if('repeat'==this.drawMethod){switch(this.saveOverlayStatus){case'saveNot':this.overlayGroup.clearOverlays();break;case'saveOnce':break;case'saveMore':break;default:}this.repaintDrawpolygon=!0}a(c)}}},{key:'polygonMouseRightClickHandler',value:function(a){this.mouseEventStopAction()||this.rightClickCommon(a)}},{key:'polygonKeyupHandler',value:function(a,b){if(!this.mouseEventStopAction()&&('Escape'==b.key||27==b.keyCode)){var c=this.overlayGroup.getOverlays();if(0==c.length)return;this.repaintDrawpolygon=!1;var d=c[c.length-1],e=d.getPath();if(0==e.length&&2<=c.length)return this.overlayGroup.removeOverlay(d);if(3<=e.length){var f=e[e.length-1],g=e[e.length-2];f.lng==g.lng&&f.lat==g.lat&&e.pop()}if(e.pop(),1==e.length&&'repeat'==this.drawMethod)return 1c?(a(),e=f):(clearTimeout(d),d=setTimeout(function(){a(),e=null},b))}};b.throttle=o;var p=function(){function a(b){(0,g.default)(this,a);var c=b.options,d=b.id,e=b.theme,f=b.callback,h=b.key,i=b.isLoca,j=b.showLayers,l=b.mapMoveEnd,n=c.pandaMapOption,o=c.mapOptions,p=c.gotoInitPoint;this.isLoca=i||!1;var q=k.extend({viewMode:'2D',zooms:[2,20],expandZoomRange:!0,mapStyle:'dark'===e?'amap://styles/74fae00a851749793870b658f9f22d55':'light'===e?'':e,features:['bg','road','building','point']},o);if(this.key=h||'e83f64300a2a55a33fa8e4ab9a46bca6',this.options=q,this.theme=e||'',this.mapSettings=n,this.gotoInitPoint=!1!==p||p,this.plugins=(null===o||void 0===o?void 0:o.plugins)||[],this.clear(),this.mapSettings&&0