1234567 |
- /*!
- *
- * iclient9-plot-leaflet.(http://iclient.supermap.io)
- * Copyright© 2000 - 2019 SuperMap Software Co.Ltd
- * version: v9.1.2
- *
- */!function(t){var e={};function i(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=e,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(o,n,function(e){return t[e]}.bind(null,n));return o},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=166)}([function(t,e,i){"use strict";i(0),L.supermap.plotting=L.supermap.plotting||{}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicObject=void 0,i(0);var o=i(4),n=i(7),l=i(16),a=e.GraphicObject=o.PlottingObject.extend({surroundLineType:null,scaleByMap:null,latLngs:[],initialize:function(t,e,i,n){this.geoSymbolTexts=[],this.subAssociatedUuids=[],this.latLngs=i||[],o.PlottingObject.prototype.initialize.call(this,t,e,i,n),null===this.surroundLineType&&(this.surroundLineType=SuperMap.Plot.AlgoSurroundLineType.NONE)},destroy:function(){o.PlottingObject.prototype.destroy.call(this),this.surroundLineType=null,this.scaleByMap=null,this.latLngs=[]},setLatLngs:function(t){return this.latLngs=t,this.redraw()},getLatLngs:function(){return this.latLngs},addLatLng:function(t){if(this.latLngs[this.latLngs.length-1].lat!==t.lat||this.latLngs[this.latLngs.length-1].lng!==t.lng)return this.latLngs.push(t),this.redraw()},setScaleByMap:function(t){this.scaleByMap=t},getScaleByMap:function(){return this.scaleByMap},getSurroundLineType:function(){return this.surroundLineType},setSurroundLineType:function(){},_resizeLatLngs:function(t,e,i,o){if(this.symbolType!==SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS){var n=this._resizeBounds(t,e,i);if(!(SuperMap.Plot.PlottingUtil.equalFuzzy(n.getWest(),n.getEast())&&SuperMap.Plot.PlottingUtil.equalFuzzy(n.getNorth(),n.getSouth())||SuperMap.Plot.PlottingUtil.equalFuzzy(i.getWest(),i.getEast())&&SuperMap.Plot.PlottingUtil.equalFuzzy(i.getNorth(),i.getSouth()))){var l=SuperMap.Plot.PlottingUtil.equalFuzzy(i.getWest(),i.getEast())?0:(n.getEast()-n.getWest())/(i.getEast()-i.getWest()),a=SuperMap.Plot.PlottingUtil.equalFuzzy(i.getNorth(),i.getSouth())?0:(n.getNorth()-n.getSouth())/(i.getNorth()-i.getSouth()),s=L.latLng((i.getNorth()+i.getSouth())/2,(i.getWest()+i.getEast())/2),r=L.latLng((n.getNorth()+n.getSouth())/2,(n.getWest()+n.getEast())/2);if(this.symbolType===SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL||this.symbolType===SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM||this.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXTBOX||this.symbolType===SuperMap.Plot.SymbolType.LINEMARKING)this.latLngs[0].lng=r.lng+(o[0].lng-s.lng)*l,this.latLngs[0].lat=r.lat+(o[0].lat-s.lat)*a,this.latLngs[1].lng=r.lng+(o[1].lng-s.lng)*l,this.latLngs[1].lat=r.lat+(o[1].lat-s.lat)*a;else if(this.symbolType===SuperMap.Plot.SymbolType.CONCENTRICCIRCLE)if(2===e||4===e||5===e||7===e){1===l&&(l=0),1===a&&(a=0);for(var u=Math.sqrt(l*l+a*a),p=L.Util.latLngsToSuperMapPoints(o),h=1;h<p.length;h++)p[h]=SuperMap.Plot.PlottingUtil.findPointInLine(p[0],p[h],SuperMap.Plot.PlottingUtil.distance(p[0],p[h])*u);this.latLngs=L.Util.superMapPointsToLatLngs(p)}else{for(var c=Math.sqrt(l*l+a*a)/Math.sqrt(2),y=L.Util.latLngsToSuperMapPoints(o),f=1;f<y.length;f++)y[f]=SuperMap.Plot.PlottingUtil.findPointInLine(y[0],y[f],SuperMap.Plot.PlottingUtil.distance(y[0],y[f])*c);this.latLngs=L.Util.superMapPointsToLatLngs(y)}else for(var S=0;S<o.length;S++)this.latLngs[S].lng=r.lng+(o[S].lng-s.lng)*l,this.latLngs[S].lat=r.lat+(o[S].lat-s.lat)*a}}},_getLatLng:function(t,e,i){var o=0,n=0;switch(t){case 1:o=e.getWest()+i.lng,n=e.getNorth()+i.lat;break;case 3:o=e.getEast()+i.lng,n=e.getNorth()+i.lat;break;case 6:o=e.getWest()+i.lng,n=e.getSouth()+i.lat;break;case 8:o=e.getEast()+i.lng,n=e.getSouth()+i.lat;break;case 2:o=(e.getEast()+e.getWest())/2,n=e.getNorth()+i.lat;break;case 4:o=e.getWest()+i.lng,n=(e.getNorth()+e.getSouth())/2;break;case 5:o=e.getEast()+i.lng,n=(e.getNorth()+e.getSouth())/2;break;case 7:o=(e.getEast()+e.getWest())/2,n=e.getSouth()+i.lat}return L.latLng(n,o)},_setSymbolData:function(t){if(o.PlottingObject.prototype._setSymbolData.call(this,t),this.symbolData){SuperMap.Plot.AnalysisSymbol.setStyle(this.style,this.symbolData,!0),this.symbolData.scaleByMap=this.scaleByMap,this.symbolData.surroundLineType=this.surroundLineType,this.symbolData.algoMaxEditPts=this.maxEditPts,this.symbolData.algoMinEditPts=this.minEditPts,this.symbolData.hasOwnProperty("localePoints")||(this.symbolData.localePoints=[]);var e=this.getLatLngs().length;this.symbolType===SuperMap.Plot.SymbolType.ELLIPSESYMBOL&&(e=3);for(var i=0;i<e;i++)this.symbolData.localePoints.length>i?(this.symbolData.localePoints[i].x=this.getLatLngs()[i].lng,this.symbolData.localePoints[i].y=this.getLatLngs()[i].lat):this.symbolData.localePoints.push({x:this.getLatLngs()[i].lng,y:this.getLatLngs()[i].lat,z:0})}},_parseSymbolData:function(){if(o.PlottingObject.prototype._parseSymbolData.call(this),null!==this.symbolData&&(this.style=SuperMap.Plot.AnalysisSymbol.getStyle(this.symbolData,!0),this.maxEditPts=this.symbolData.algoMaxEditPts,this.minEditPts=this.symbolData.algoMinEditPts,void 0!==this.symbolData.isEdit&&(this.isEdit=this.symbolData.isEdit),void 0!==this.symbolData.scaleByMap&&(this.scaleByMap=this.symbolData.scaleByMap),this.surroundLineType=this.symbolData.surroundLineType,this.symbolData.localePoints)){this.latLngs=[];for(var t=0;t<this.symbolData.localePoints.length;t++)this.latLngs.push(L.latLng(this.symbolData.localePoints[t].y,this.symbolData.localePoints[t].x))}},_modifyPoint:function(){},_transSymbolCellsToLayers:function(t){var e=[],i="";null!==this._map&&this._map instanceof L.Map&&(i=this._map.options.crs.code);for(var o=0;o<t.length;o++){L.Util.isMercatorProjection(i)&&(t[o].positionPoints=L.Util.conventProjectPts(L.Util.superMapPointsToLatLngs(t[o].positionPoints)));var n={type:t[o].type,positionPoints:SuperMap.Plot.PlottingUtil.clonePoints(t[o].positionPoints),style:SuperMap.Util.cloneObject(t[o].style),angle:t[o].angle,isCalculate:t[o].isCalculate,textContent:t[o].textContent};1===this.symbolType?n.positionPoints=SuperMap.Plot.Primitives.getSpatialData(n.type,n.positionPoints,n.angle,!1):n.positionPoints=SuperMap.Plot.Primitives.getSpatialData(n.type,n.positionPoints,n.angle,n.isCalculate),e.push(n)}0!==e.length&&this._addSurroundLineCells(e);for(var l=0;l<e.length;l++)L.Util.isMercatorProjection(i)?e[l].positionPoints=L.Util.unConventProjectPts(e[l].positionPoints):e[l].positionPoints=L.Util.superMapPointsToLatLngs(e[l].positionPoints),this._createAndDrawLayer(e[l].type,e[l].positionPoints,e[l].style,e[l].textContent)},_isPolylineType:function(t){switch(t){case 24:case 44:case 48:case 290:case 400:case 590:return!0;default:return!1}},_createAndDrawLayer:function(t,e,i,o,n){var l=this._createLayer(t,e,o,n);this._isPolylineType(t)&&(i.fillLimit=!0,i.fill=!1);var a={};if(a=SuperMap.Util.copyAttributes(a,i),this._copyStyleForCell(a,this.style,l),34===t&&!1===i.sizeFixed){var s=this._map.latLngToLayerPoint(e[0]),r=this._map.latLngToLayerPoint(L.latLng(e[0].lat+a.fontSize,e[0].lng));a.fontSize=Math.abs(r.y-s.y)}return L.setOptions(l,a),this._addComponents(l),l},_createLayer:function(t,e,i,o){var n=null;switch(t){case 24:case 44:case 48:case 290:case 400:case 590:n=L.polyline(e,{smoothFactor:0});break;case 29:case 31:case 32:case 28:case 410:case 370:case 380:case 390:case 320:case 321:case 350:case 360:n=L.polygon(e,{smoothFactor:0});break;case 26:n=L.rectangle(e);break;case 34:n=L.supermap.plotting.text(e,{text:i});break;case 2e3:n=L.circle(e[0],o)}return n},_addSurroundLineCells:function(t){if(this.symbolType!==SuperMap.Plot.SymbolType.DOTSYMBOL){if(this.symbolType===SuperMap.Plot.SymbolType.TEXTSYMBOL)return null;if(this._map){var e,i=[],o=[],n={},l={},a={},s={},r=this.surroundLineType===SuperMap.Plot.AlgoSurroundLineType.OUT?1:-1,u=this.style.surroundLineWidth/2+this.style.weight/2,p=this._map.layerPointToLatLng(L.point(0,0)),h=this._map.layerPointToLatLng(L.point(u,0)),c=new SuperMap.Geometry.Point(p.lng,p.lat),y=new SuperMap.Geometry.Point(h.lng,h.lat);e=SuperMap.Plot.PlottingUtil.distance(c,y),(n=SuperMap.Util.cloneObject(this.style)).surroundLineFlag=!0,n.fill=!1,n.fillLimit=!0,n.fillColorLimit=!0;for(var f=0,S=t.length;f<S;f++)if((!t[f].style.lineWidthLimit||0!==t[f].style.weight)&&(!0!==t[f].style.surroundLineLimit?t[f].style.surroundLineType=this.surroundLineType:void 0===t[f].style.surroundLineType&&(t[f].style.surroundLineType=SuperMap.Plot.AlgoSurroundLineType.NONE),t[f].style.surroundLineType!==SuperMap.Plot.AlgoSurroundLineType.NONE&&t[f].type!==SuperMap.Plot.SymbolType.TEXTSYMBOL)){if(t[f].style.surroundLineType===SuperMap.Plot.AlgoSurroundLineType.INNER||t[f].style.surroundLineType===SuperMap.Plot.AlgoSurroundLineType.OUT){var g=SuperMap.Plot.PlottingUtil.innerOutlineDir(t[f].positionPoints)*r*e;if(this._isPolylineType(t[f].type)||t[f].positionPoints.push(t[f].positionPoints[0]),0===(i=SuperMap.Plot.PlottingUtil.getSurroundLinePts(t[f].positionPoints,g)).length)continue;l={type:t[f].type,positionPoints:i,style:n},t.splice(++f,0,l),++S}if(t[f].style.surroundLineType===SuperMap.Plot.AlgoSurroundLineType.ALL){if(0===(i=SuperMap.Plot.PlottingUtil.clonePoints(t[f].positionPoints)).length)continue;if(l={type:t[f].type,positionPoints:i,style:n},t.splice(++f,0,l),++S,0===(o=SuperMap.Plot.PlottingUtil.clonePoints(t[f].positionPoints)).length)continue;(s=SuperMap.Util.copyAttributes(this.style)).surroundLineFlag=!1,s.fill=!1,s.fillLimit=!0,s.fillColorLimit=!0,a={type:t[f].type,positionPoints:o,style:s},t.splice(++f,0,a),++S}}}}},_updateSymbolTexts:function(){for(var t=0;t<this.geoSymbolTexts.length;t++){var e=this.geoSymbolTexts[t];if(null===e||void 0===e)return;e.redraw()}},_updateCanvasFills:function(){for(var t=0,e=this.components.length;t<e;t++)!1!==this.components[t].options.fillLimit&&!1!==Boolean(this.components[t].options.fillLimit)||(!0!==this.components[t].options.fill||"LINEAR"!==this.style.fillGradientMode&&"RADIAL"!==this.style.fillGradientMode?this.components[t].options.fillSymbolID>=2&&new SuperMap.Plot.CalculateCanvasGradient(this,this.components[t].getBounds()).createFillMode(this.components[t].options):this._computeGradientInCanvas(this.components[t],this.components[t].options,this.style))},_rotate:function(t,e){for(var i in this.components)this.components[i]instanceof a?this.components[i]._rotate(t,e):(this.components[i]instanceof l.PointImage&&(this.components[i].options.rotation+=-t),this.components[i]instanceof n.Text&&(this.components[i].options.labelRotation?(this.components[i].options.labelRotation+=-t,this.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL&&0===this.components[i].options.labelRotation&&(this.components[i].options.labelRotation=360)):this.components[i].options.labelRotation=-t),L.Util.rotateLatLngs(this.components[i].getLatLngs(),e,t),this.components[i].setLatLngs(this.components[i].getLatLngs()));L.Util.rotateLatLngs(this.getLatLngs(),e,t)},_move:function(t,e){for(var i=0,o=this.components.length;i<o;i++)L.Util.moveLatLngs(this.components[i].getLatLngs(),t,e),this.components[i].setLatLngs(this.components[i].getLatLngs());this._renderer instanceof L.Canvas&&this._updateCanvasFills(),L.Util.moveLatLngs(this.getLatLngs(),t,e)},_resize:function(t,e){for(var i in isNaN(t)&&(t=1),this.symbolType===SuperMap.Plot.SymbolType.TEXTSYMBOL&&(this.style.fontSize*=t),this.components)this.components[i]instanceof a?this.components[i]._resize(t,e):(this.components[i]instanceof l.PointImage&&(this.components[i].options.graphicWidth*=t,this.components[i].options.graphicHeight*=t),this.components[i]instanceof n.Text&&(this.components[i].options.fontSize*=t),L.Util.resizeLatLngs(this.components[i].getLatLngs(),e,t),this.components[i].setLatLngs(this.components[i].getLatLngs()));L.Util.resizeLatLngs(this.getLatLngs(),e,t)},_computeGradientInCanvas:function(t,e){t.getBounds().isValid()&&(e.fillColor=new SuperMap.Plot.CalculateCanvasGradient(this,t.getBounds()).createGradient())},_computeGradientInSVG:function(t){t.fillColor="url(#"+new SuperMap.Plot.CalculateSVGGradient(this).createGradient()+")"},_dashArray:function(t,e){return 1===t?[2*e,2*e].join():2===t?[0,2*e].join():3===t?[2*e,2*e,0,2*e].join():4===t?[2*e,2*e,0,2*e,0,2*e].join():null},_copyStyleForCell:function(t,e,i){if(e.display&&"none"===e.display)t.display=e.display;else{if(!0===t.surroundLineFlag)this.surroundLineType===SuperMap.Plot.AlgoSurroundLineType.ALL?t.weight=2*e.surroundLineWidth+e.weight:t.weight=e.surroundLineWidth,t.color=e.surroundLineColor,t.opacity=e.surroundLineColorOpacity,t.dashArray=null;else{if(t.lineWidthLimit||(t.weight=e.weight),t.lineColorLimit||(t.color=e.color,t.opacity=e.opacity),!t.lineTypeLimit){if(void 0!==e.lineSymbolID){e.lineSymbolID=parseInt(e.lineSymbolID);var o=e.weight;e.dashArray=this._dashArray(e.lineSymbolID,o)}t.dashArray=e.dashArray,t.linecap||void 0===e.linecap||(t.linecap=e.linecap),t.linejoin||void 0===e.linejoin||(t.linejoin=e.linejoin)}if(t.lineSymbolID){var l=t.weight;t.dashArray=this._dashArray(parseInt(t.lineSymbolID),l),delete t.lineSymbolID}}if(t.fillLimit||i instanceof n.Text)1===t.fillSymbolID?t.fill=!1:0===t.fillSymbolID&&(t.fill=!0),t.fillColorLimit||(t.fillColor=t.strokeColor,t.fillOpacity=t.strokeOpacity);else if("LINEAR"===e.fillGradientMode||"RADIAL"===e.fillGradientMode)t.fillOpacity=1,this._map.getRenderer(this.layer)instanceof L.Canvas?this._computeGradientInCanvas(i,t):this._map.getRenderer(this.layer)instanceof L.SVG&&(t.fillOpacity=1,this._computeGradientInSVG(t));else if(this._map.getRenderer(this.layer)instanceof L.SVG)new SuperMap.Plot.CalculateSVGGradient(this).createFillMode(t);else new SuperMap.Plot.CalculateCanvasGradient(this,i.getBounds()).createFillMode(t);t.fontSizeLimit&&!1!==t.fontSizeLimit||(t.fontSize=e.fontSize),t.fontColorLimit&&!1!==t.fontColorLimit||(t.fontColor=e.fontColor),void 0===t.labelAlign&&void 0!==e.labelAlign&&(t.labelAlign=e.labelAlign),void 0===t.labelRotation&&void 0!==e.labelRotation&&(t.labelRotation=e.labelRotation),!0!==t.fontSizeLimit&&!0!==t.fontColorLimit&&(void 0!==e.fontWeight&&(t.fontWeight=e.fontWeight),void 0!==e.fontStyle&&(t.fontStyle=e.fontStyle),void 0!==e.fontStroke&&(t.fontStroke=e.fontStroke),void 0!==!e.fontStrokeColor&&(t.fontStrokeColor=e.fontStrokeColor),void 0!==e.fontStrokeWidth&&(t.fontStrokeWidth=e.fontStrokeWidth),void 0!==e.fontBackground&&(t.fontBackground=e.fontBackground),void 0!==e.fontBackgroundColor&&(t.fontBackgroundColor=e.fontBackgroundColor),void 0!==e.fontShadow&&(t.fontShadow=e.fontShadow),void 0!==e.fontShadowColor&&(t.fontShadowColor=e.fontShadowColor),void 0!==e.fontShadowOffsetX&&(t.fontShadowOffsetX=e.fontShadowOffsetX),void 0!==e.fontShadowOffsetY&&(t.fontShadowOffsetY=e.fontShadowOffsetY),void 0!==e.fontSpace&&(t.fontSpace=e.fontSpace),void 0!==e.fontPercent&&(t.fontPercent=e.fontPercent),void 0!==e.fontFamily&&(t.fontFamily=e.fontFamily),void 0!==e.fontOpacity&&(t.fontOpacity=e.fontOpacity)),"none"===e.display?t.display=e.display:t.display="display",t.graphicWidth<0&&(t.graphicWidth=Math.abs(t.graphicWidth)),t.graphicHeight<0&&(t.graphicHeight=Math.abs(t.graphicHeight)),t.fontSize<0&&(t.fontSize=Math.abs(t.fontSize))}}});L.supermap.plotting.GraphicObject=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GOAnimation=void 0,i(0);var o=e.GOAnimation=L.Evented.extend({startTime:0,duration:5,repeat:!1,name:null,animationState:SuperMap.Plot.GOAnimationState.UNKNOWN,goFeature:null,animationGOFeature:null,innerStartTime:0,lastExecute:!1,pauseTime:0,ratio:0,symbolTexts:[],initialize:function(t){SuperMap.Util.extend(this,t)},destroy:function(){this.showAnimationFeature(!1),this.removeAnimationFeature(),this.goFeature=null,this.animationGOFeature=null,this.name=null,this.animationState=SuperMap.Plot.GOAnimationState.UNKNOWN;for(var t=0;t<this.symbolTexts.length;t++)this.symbolTexts[t]=null;this.symbolTexts=[]},setGOFeature:function(t){if(void 0===t||null===t||null===t.layer)return!1;var e=L.supermap.plotting.getControl().getGOAnimationManager();if(null===e.goAnimationLayer)return!1;if(this.goFeature=t,this.animationGOFeature=this.cloneGOFeature(t),null===this.animationGOFeature)return!1;if(e.goAnimationLayer.addFeatures(this.animationGOFeature),this.getGOAnimationType()===SuperMap.Plot.GOAnimationType.ANIMATION_WAY&&0!==t.geoSymbolTexts.length)for(var i=0;i<t.geoSymbolTexts.length;i++){var o=t.geoSymbolTexts[i];if(null!==o){var n=o.getSymbolData();n.associatedUuid=this.animationGOFeature.uuid;var l={symbolData:n,map:o.map,serverUrl:o.serverUrl},a=L.supermap.plotting.PlottingObject.createSymbol(o.libID,o.code,null,l,null);this.symbolTexts.push(a),e.goAnimationLayer.addFeatures(a)}}return this.showAnimationFeature(!1),!0},getGOFeature:function(){return this.goFeature},play:function(){var t=new Date;this.animationState===SuperMap.Plot.GOAnimationState.PAUSE?this.innerStartTime+=t.getTime()/1e3-this.pauseTime:this.innerStartTime=t.getTime()/1e3,this.lastExecute=!1,this.animationState=SuperMap.Plot.GOAnimationState.PLAYING;var e=L.supermap.plotting.getControl().getGOAnimationManager();this.goFeature.isSelected&&e.map.getPlotEditControl()&&e.map.getPlotEditControl().unselectFeatures(this.goFeature),this.showAnimationFeature(!0)},stop:function(){this.animationState=SuperMap.Plot.GOAnimationState.STOP},pause:function(){this.animationState=SuperMap.Plot.GOAnimationState.PAUSE;var t=new Date;this.pauseTime=t.getTime()/1e3},reset:function(){this.animationState=SuperMap.Plot.GOAnimationState.RESET,this.showAnimationFeature(!1)},execute:function(){return!1},canExecute:function(){if(this.animationState!==SuperMap.Plot.GOAnimationState.PLAYING)return!1;var t=(new Date).getTime()/1e3;if(this.innerStartTime+this.startTime>t)return!1;var e=this.getRatioByTime();return!(e>1&&this.lastExecute||e<0)},getRatioByTime:function(){if(this.animationState!==SuperMap.Plot.GOAnimationState.PLAYING)return 0;var t=(new Date).getTime()/1e3;if(this.innerStartTime+this.startTime>t)return 0;var e=(t-this.innerStartTime-this.startTime)/this.duration;return e>=1&&!this.lastExecute?this.repeat?(this.innerStartTime=(new Date).getTime()/1e3,e=0,this.lastExecute=!1,this.animationState=SuperMap.Plot.GOAnimationState.PLAYING):(e=1,this.lastExecute=!0,this.animationState=SuperMap.Plot.GOAnimationState.STOP):e<0&&(e=0),this.ratio=e,e},showAnimationFeature:function(t){if(null!==this.animationGOFeature&&null!==this.animationGOFeature.style&&(this.resetAnimationFeature(t),this.animationGOFeature.redraw()),null!==this.goFeature&&null!==this.goFeature.style){if(t){this.goFeature.style.display="none";for(var e=0;e<this.goFeature.geoSymbolTexts.length;e++)this.goFeature.geoSymbolTexts[e].style.display="none"}else{this.goFeature.style.display="display";for(var i=0;i<this.goFeature.geoSymbolTexts.length;i++)this.goFeature.geoSymbolTexts[i].style.display="display"}this.goFeature.redraw();for(var o=0;o<this.goFeature.geoSymbolTexts.length;o++)this.goFeature.geoSymbolTexts[o].redraw()}},resetAnimationFeature:function(t){if(this.animationGOFeature.symbolData=SuperMap.Plot.PlottingUtil.cloneObject(this.goFeature.getSymbolData()),this.animationGOFeature.symbolData.uuid=this.animationGOFeature.uuid,SuperMap.Plot.AnalysisSymbol.parseSymbolData(this.animationGOFeature,this.animationGOFeature.symbolData,!0),t){this.animationGOFeature.style.display="display";for(var e=0;e<this.symbolTexts.length;e++)this.symbolTexts[e].style.display="display",this.symbolTexts[e].redraw()}else{this.animationGOFeature.style.display="none";for(var i=0;i<this.symbolTexts.length;i++)this.symbolTexts[i].style.display="none",this.symbolTexts[i].redraw();this.getGOAnimationType()===SuperMap.Plot.GOAnimationType.ANIMATION_WAY&&null!==this.pathFeature&&(this.pathFeature.options.opacity=0,this.pathFeature.redraw())}},cloneGOFeature:function(t){var e=null,i=L.supermap.plotting.getControl().getGOAnimationManager().goAnimations;if(null!==i)for(var o=0;o<i.length;o++){var n=i[o];if(n.goFeature===t){e=n.animationGOFeature;break}}return null===e&&((e=t.clone()).enableEdit=!1),e},removeAnimationFeature:function(){if(null!==this.animationGOFeature){var t=L.supermap.plotting.getControl().getGOAnimationManager(),e=t.goAnimations,i=!1;if(null!==e)for(var o=0;o<e.length;o++){var n=e[o];if(n!==this&&n.animationGOFeature===this.animationGOFeature){i=!0;break}}if(!i){t.goAnimationLayer.removeFeatures(this.animationGOFeature);for(;0<this.symbolTexts.length;)t.goAnimationLayer.removeFeatures(symbolTexts[0])}}},getJSONData:function(){var t={};return t.goFeatureUuid=this.goFeature.uuid,t.name=this.name,t.startTime=this.startTime,t.duration=this.duration,t.repeat=this.repeat,t.type=this.getGOAnimationType(),t},fromJSONData:function(t){this.startTime=t.startTime,this.duration=t.duration,this.repeat=t.repeat}});L.supermap.plotting.GOAnimation=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Route=void 0,i(0);var o=i(4),n=i(6),l=i(5),a=i(15),s=i(73),r=i(14),u=e.Route=o.PlottingObject.extend({routeNodes:[],nextRouteNodeType:SuperMap.Plot.RouteNodeType.TURNING,arrRoutePts:[],initialize:function(t,e,i,n){this.scaleByMap=!0,this.minEditPts=1,this.maxEditPts=9999,this.routeNodes=[],this.arrRoutePts=[],o.PlottingObject.prototype.initialize.call(this,t,e,i,n)},destroy:function(){this.routeNodes=null,this.arrRoutePts=null,o.PlottingObject.prototype.destroy.apply(this,arguments)},highlight:function(t){for(var e in this.highlightFlag=!0,this.highlightStyle=t,this.components)if(this.components[e]instanceof l.AlgoSymbol){var i=SuperMap.Util.copyAttributes(this.components[e].style,t);this.components[e].setStyle(i)}},unhighlight:function(){for(var t in this.components)if(this.components[t]instanceof l.AlgoSymbol){var e=SuperMap.Util.copyAttributes(this.components[t].style,this.style);this.components[t].setStyle(e)}this.highlightFlag=!1,this.highlightStyle=null},blinkRoute:function(t,e,i,o){void 0===i&&(i=2),void 0===t&&(t={color:"#ff0000"}),void 0===e&&(e={color:"#0000ff"}),void 0===o&&(o=300);for(var n=[],a=0;a<i;a++)n.push(t),n.push(e);!0===this.highlightFlag&&this.highlightStyle&&null!==this.highlightStyle?n.push(this.highlightStyle):n.push(this.lineStyle);for(var s=this,r=n.length,u=0;u<r;u++)setTimeout(function(){for(var t in s.components)if(s.components[t]instanceof l.AlgoSymbol){var e=SuperMap.Util.copyAttributes(s.components[t].style,n[0]);s.components[t].setStyle(e)}n.splice(0,1)},o*u)},applyTextStyle:function(t){var e;for(var i in this.components)(this.components[i]instanceof a.LiterateSign||this.components[i]instanceof s.PathText)&&(this.components[i].setStyle(SuperMap.Util.copyAttributes(this.components[i].style,t)),e=this.components[i].style);for(var o=0;o<this.routeNodes.length;o++)for(var n=0;n<this.routeNodes[o].towardNodes.length;n++)this.routeNodes[o].towardNodes[n].style=SuperMap.Util.copyAttributes(this.routeNodes[o].towardNodes[n].style,e)},applyLineStyle:function(t){for(var e in this.components)this.components[e]instanceof a.LiterateSign||this.components[e]instanceof s.PathText||this.components[e]instanceof r.GeoRouteNode||this.components[e].setStyle(SuperMap.Util.copyAttributes(this.components[e].style,t));this.style=SuperMap.Util.copyAttributes(this.style,t)},applyNodeStyle:function(t){for(var e in this.components)this.components[e]instanceof r.GeoRouteNode&&this.components[e].setStyle(SuperMap.Util.copyAttributes(this.components[e].style,t));for(var i=0;i<this.routeNodes.length;i++)this.routeNodes[i].style=SuperMap.Util.copyAttributes(this.routeNodes[i].style,t)},deleteRouteNode:function(t){if(null!==this._getNodeByUuid(t.id)){var e=this._getNodeFeature(t);e.isSelected&&null!==this._map.getPlotEditControl()&&this._map.getPlotEditControl().unselectFeatures(e),this.arrRoutePts=[];for(var i=0;i<this.routeNodes.length;i++)for(var o=0;o<this.routeNodes[i].towardNodes.length;o++)if(this.routeNodes[i].towardNodes[o].routeNodeId!==t.id);else{this.routeNodes[i].towardNodes.splice(o,1);for(var n=0;n<t.towardNodes.length;n++)t.towardNodes[n].routeNodeId!==this.routeNodes[i].id&&this.routeNodes[i].towardNodes.push(t.towardNodes[n])}for(var l=0;l<this.routeNodes.length;l++)this.routeNodes[l].id===t.id&&this.routeNodes.splice(l,1);this.redraw()}},updateRouteNode:function(t){if(0!==this.arrRoutePts.length){this.arrRoutePts=[];var e=this._getNodeByUuid(t.id);if(null!==e?e=t:this.routeNodes.push(t),this.redraw(),this.highlightFlag){var i=SuperMap.Util.cloneObject(this.highlightStyle);this.highlightStyle&&SuperMap.Util.copyAttributes(i,this.highlightStyle),this.highlight(i)}}else{var o=this._getNodeFeature(t);if(null!==o){o.routeNode=t,o.redraw();for(var n=this._getFeatureStartWith(t),l=0;l<n.length;l++)n[l].latLngs[0]=L.latLng(t.y,t.x),n[l].redraw();for(var a=this._getFeatureEndWith(t),s=0;s<a.length;s++)a[s].latLngs[1]=L.latLng(t.y,t.x),a[s].redraw();return}}},insertRouteNode:function(t,e,i,o,n,l,a,s){if(void 0===o&&(o=!0),this.arrRoutePts=[],o&&i)for(var r=0;r<e.towardNodes.length;r++)e.towardNodes[r].routeNodeId===i.id&&e.towardNodes.splice(r,1);if(null===this._getNodeByUuid(t.id)&&this.routeNodes.push(t),e){for(var u=!1,p=0;p<e.towardNodes.length;p++)e.towardNodes[p].routeNodeId===t.id&&(u=!0);if(!1===u){var h=new SuperMap.Plot.TowardNode;h.routeNodeId=t.id,void 0!==n&&(h.textContent=n),void 0!==l&&(h.relLineText=l),e.towardNodes.push(h)}}if(i){for(var c=!1,y=0;y<t.towardNodes.length;y++)t.towardNodes[y].routeNodeId===i.id&&(c=!0);if(!1===c){var f=new SuperMap.Plot.TowardNode;f.routeNodeId=i.id,void 0!==a&&(f.textContent=a),void 0!==s&&(f.relLineText=s),t.towardNodes.push(f)}}this.redraw()},addRouteNode:function(t,e,i,o){if(null===this._getNodeByUuid(t.id)&&(this.arrRoutePts=[],this.routeNodes.push(t)),e){for(var n=!1,l=0;l<e.towardNodes.length;l++)e.towardNodes[l].routeNodeId===t.id&&(n=!0);if(!1===n){var a=new SuperMap.Plot.TowardNode;a.routeNodeId=t.id,void 0!==i&&(a.textContent=i),void 0!==o&&(a.relLineText=o),e.towardNodes.push(a)}}this.redraw()},_addRouteNodeByNode:function(t,e,i){if(null===this._getNodeByUuid(t.id))return null;var o=new SuperMap.Plot.RouteNode;if(o.x=t.x,o.y=t.y,o.name="",o.type=this.nextRouteNodeType,!0===e){var n=new SuperMap.Plot.TowardNode;n.routeNodeId=t.id,o.towardNodes.push(n)}else if(!0===i){var l=new SuperMap.Plot.TowardNode;l.routeNodeId=o.id,t.towardNodes.push(l)}return this.routeNodes.push(o),this.redraw(),this._getNodeFeature(o)},_addRouteNodeByPosWithoutLast:function(t,e){for(var i=0;i<this.routeNodes.length;i++){var o=this.routeNodes[i];if(null!==o&&(o.towardNodes&&null!==o.towardNodes))for(var n=0;n<o.towardNodes.length;n++){var l=this._getNodeByUuid(o.towardNodes[n].routeNodeId);if(null!==l){var a=SuperMap.Plot.PlottingUtil.computePointToLineMinDis({x:t.lng,y:t.lat},[{x:o.x,y:o.y},{x:l.x,y:l.y}]);if(-1!==a.index&&a.minDis<e){var s=new SuperMap.Plot.RouteNode;s.x=t.lng,s.y=t.lat,s.type=this.nextRouteNodeType,s.name="",s.towardNodes.push(o.towardNodes[n]),o.towardNodes.splice(n,1);var r=new SuperMap.Plot.TowardNode;return r.routeNodeId=s.id,o.towardNodes.push(r),this.arrRoutePts=[],this.routeNodes.push(s),this.redraw(),this._getNodeFeature(s)}}}}return null},_addRouteNodeByPos:function(t,e){for(var i=[],o=0;o<this.routeNodes.length;o++){var n=this.routeNodes[o];if(null!==n&&(n.towardNodes&&null!==n.towardNodes)){0===n.towardNodes.length&&i.push(n);for(var l=0;l<n.towardNodes.length;l++){var a=this._getNodeByUuid(n.towardNodes[l].routeNodeId);if(null!==a){var s=SuperMap.Plot.PlottingUtil.computePointToLineMinDis({x:t.lng,y:t.lat},[{x:n.x,y:n.y},{x:a.x,y:a.y}]);if(-1!==s.index&&s.minDis<e){var r=new SuperMap.Plot.RouteNode;r.x=t.lng,r.y=t.lat,r.type=this.nextRouteNodeType,r.name=(this.routeNodes.length+1).toString(),r.towardNodes.push(n.towardNodes[l]),n.towardNodes.splice(l,1);var u=new SuperMap.Plot.TowardNode;return u.routeNodeId=r.id,n.towardNodes.push(u),this.arrRoutePts=[],this.routeNodes.push(r),void this.redraw()}}}}}var p=new SuperMap.Plot.RouteNode;if(p.x=t.lng,p.y=t.lat,0!==this.routeNodes.length?p.type=this.nextRouteNodeType:p.type=SuperMap.Plot.RouteNodeType.AIMING,p.name=(this.routeNodes.length+1).toString(),0!==i.length){var h=new SuperMap.Plot.TowardNode;h.routeNodeId=p.id,i[0].towardNodes.push(h)}this.routeNodes.push(p),this.redraw()},setNextRouteNodeType:function(t){this.nextRouteNodeType=t},_getNodeFeature:function(t){for(var e in this.components)if(this.components[e]instanceof r.GeoRouteNode&&this.components[e].routeNode.id===t.id)return this.components[e];return null},_getFeatureStartWith:function(t){var e=[];for(var i in this.components)this.components[i]._startRouteNode&&this.components[i]._startRouteNode===t.id&&e.push(this.components[i]);return e},_getFeatureEndWith:function(t){var e=[];for(var i in this.components)this.components[i]._endRouteNode&&this.components[i]._endRouteNode===t.id&&e.push(this.components[i]);return e},_selectNodeLayer:function(t){for(var e in L.Util.isArray(t)||(t=[t]),this.components)if((this.components[e]instanceof r.GeoRouteNode||this.components[e]instanceof a.LiterateSign)&&this.components[e].getBounds().contains(t))return this.components[e];return null},redraw:function(){if(this._initRoute(),this.arrRoutePts&&0!==this.arrRoutePts.length)for(var t=0;t<this.arrRoutePts.length;t++){var e=this.arrRoutePts[t];if(!(e.length<2)){var i=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.POLYLINESYMBOL,e,{enableEdit:!1},this.style);i.route=this,this._addComponents(i)}}for(var o=0;o<this.routeNodes.length;o++){var n=this.routeNodes[o];if(null!==n&&(n.towardNodes&&null!==n.towardNodes)){for(var l=0;l<n.towardNodes.length;l++){var a=this._getNodeByUuid(n.towardNodes[l].routeNodeId);if(null!==a){var s=[];if(s.push(L.latLng(n.y,n.x)),s.push(L.latLng(a.y,a.x)),0===this.arrRoutePts.length){var r=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.POLYLINESYMBOL,s,{enableEdit:!1},this.style);this._addComponents(r),r._startRouteNode=n.id,r._endRouteNode=a.id}var u=n.towardNodes[l].textContent;if(null!==u){var p=n.towardNodes[l].relLineText;void 0!==p&&null!==p||(p=SuperMap.Plot.RelLineText.ONLEFTLINE);var h=SuperMap.Util.copyAttributes(SuperMap.Plot.PlottingUtil.cloneObject(this.style),n.towardNodes[l].style),c=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.PATHTEXT,s,{relLineText:p,showPathLine:!1,textContent:u,enableEdit:!1},h);this._addComponents(c),c._startRouteNode=n.id,c._endRouteNode=a.id}}}this._createRouteNode(n)}}this._finishRoute()},_initRoute:function(){this.prevRouteNode=[],this.prevLiterateSign=[];for(var t=0;t<this.components.length;t++)this.components[t]instanceof r.GeoRouteNode?this.prevRouteNode.push(this.components[t]):this.components[t]instanceof a.LiterateSign?this.prevLiterateSign.push(this.components[t]):this.components[t]._clearComponents();this.components=[]},_finishRoute:function(){for(var t=0;t<this.prevRouteNode.length;t++)this.prevRouteNode[t]._clearComponents();for(var e=0;e<this.prevLiterateSign.length;e++)this.prevLiterateSign[e]._clearComponents();this.prevRouteNode=[],this.prevLiterateSign=[]},_createRouteNode:function(t){if(SuperMap.Util.applyDefaults(t.style,this._defaultStyle),null!==t){for(var e=0;e<this.prevRouteNode.length;){if(this.prevRouteNode[e].routeNode.id===t.id)return this.prevRouteNode[e].routeNode=t,this.prevRouteNode[e].redraw(),this.components.push(this.prevRouteNode[e]),void this.prevRouteNode.splice(e,1);e++}var i=SuperMap.Util.copyAttributes(SuperMap.Plot.PlottingUtil.cloneObject(this.style),t.style),o=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.ROUTENODE,[L.latLng(t.y,t.x)],{routeNode:t,route:this},i);this._addComponents(o)}},_addComponents:function(t){n.GroupObject.prototype._addComponents.call(this,t)},_clearComponents:function(){n.GroupObject.prototype._clearComponents.call(this)},clone:function(){var t=SuperMap.Plot.PlottingUtil.cloneObject(this.getSymbolData());return t.uuid=SuperMap.Plot.PlottingUtil.generateUuid(),L.supermap.plotting.PlottingObject.createSymbol(this.libID,this.code,null,{symbolData:t,serverUrl:this.serverUrl})},_parseSymbolData:function(){if(o.PlottingObject.prototype._parseSymbolData.call(this),this.symbolData){this.routeNodes=this.symbolData.routeNodes,this.routeNodes=[];for(var t=0;t<this.symbolData.routeNodes.length;t++){var e=new SuperMap.Plot.RouteNode;null===this.symbolData.routeNodes[t].id&&void 0===this.symbolData.routeNodes[t].id||(e.id=this.symbolData.routeNodes[t].id),e.type=this.symbolData.routeNodes[t].type,e.name=this.symbolData.routeNodes[t].name,e.rotate=this.symbolData.routeNodes[t].rotate,this.symbolData.routeNodes[t].hasOwnProperty("positionPoint")?(e.x=this.symbolData.routeNodes[t].positionPoint.x,e.y=this.symbolData.routeNodes[t].positionPoint.y):(e.x=this.symbolData.routeNodes[t].x,e.y=this.symbolData.routeNodes[t].y),e.towardNodes=[];for(var i=0;i<this.symbolData.routeNodes[t].towardNodes.length;i++){var n=new SuperMap.Plot.TowardNode;n.routeNodeId=this.symbolData.routeNodes[t].towardNodes[i].routeNodeId,n.relLineText=this.symbolData.routeNodes[t].towardNodes[i].relLineText,n.textContent=this.symbolData.routeNodes[t].towardNodes[i].textContent,n.offsetX=this.symbolData.routeNodes[t].towardNodes[i].offsetX,n.offsetY=this.symbolData.routeNodes[t].towardNodes[i].offsetY,n.style=this.symbolData.routeNodes[t].towardNodes[i].style,e.towardNodes.push(n)}e.style=this.symbolData.routeNodes[t].style,this.routeNodes.push(e)}this.arrRoutePts=[];for(var l=0;l<this.symbolData.arrRoutePts.length;l++){for(var a=[],s=0;s<this.symbolData.arrRoutePts[l].length;s++)this.symbolData.arrRoutePts[l][s].hasOwnProperty("x")&&this.symbolData.arrRoutePts[l][s].hasOwnProperty("y")?a.push(L.latLng(this.symbolData.arrRoutePts[l][s].y,this.symbolData.arrRoutePts[l][s].x)):a.push(L.latLng(this.symbolData.arrRoutePts[l][s].lat,this.symbolData.arrRoutePts[l][s].lng));this.arrRoutePts.push(a)}this.lineStyle=this.symbolData.lineStyle}},_setSymbolData:function(){o.PlottingObject.prototype._setSymbolData.call(this),this.symbolData&&(this.symbolData.routeNodes=this.routeNodes,this.symbolData.arrRoutePts=this.arrRoutePts,this.symbolData.lineStyle=this.lineStyle)},_getNodeByUuid:function(t){for(var e=0;e<this.routeNodes.length;e++)if(this.routeNodes[e].id===t)return this.routeNodes[e];return null},_reView:function(){if(this.fromZoom!==this._map.getZoom())for(var t in this.components)this.components[t].symbolType!==SuperMap.Plot.SymbolType.POLYLINESYMBOL&&this.components[t]._reView();this.fromZoom=this._map.getZoom(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)}});L.supermap.plotting.Route=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PlottingObject=void 0,i(0);var o=i(10),n=i(7),l=e.PlottingObject=L.Evented.extend({dragging:null,uuid:null,libID:null,code:null,minEditPts:1,maxEditPts:1,symbolType:null,symbolName:null,isSelected:!1,enableEdit:!0,note:"",extendProperty:null,custom:null,symbolData:null,dRotate:null,dScale:null,textContent:null,annotationPosition:4,subSymbols:null,fromZoom:null,style:null,isLocked:!1,anchorPoint:null,avoidRegions:null,ownerGroup:null,geoSymbolTexts:null,isEdit:!1,components:null,options:{},_defaultStyle:{display:"display",color:"#ff0000",lineSymbolID:0,opacity:"1.00",weight:2,strokelinecap:"square",strokelinejoin:"square",surroundLineColor:"#ffff00",surroundLineColorOpacity:"1.00",surroundLineWidth:4,fillSymbolID:1,fillColor:"#ff0000",fillOpacity:"0.31",fillBackColor:"#ff0000",fillBackOpacity:"1.00",fillGradientMode:"NONE",fontColor:"#000000",fontFamily:"Microsoft YaHei",fontSize:"12",fontStroke:!1,fontStrokeColor:"#ff0000",fontStrokeWidth:"2px",fontBackground:!1,fontBackgroundColor:"#ff0000",fontShadow:!1,fontShadowColor:"#ff0000",fontShadowOffsetX:0,fontShadowOffsetY:0,fontSpace:0,fontPercent:100,sizeFixed:!0,labelAlign:"lt",labelRotation:-0,labelXOffset:0,labelYOffset:0,fillAngle:0,fillCenterOffsetX:0,fillCenterOffsetY:0},initialize:function(t,e,i,o){this.components=[],this.libID=t,this.code=e,this.extendProperty=new SuperMap.Plot.ExtendProperty,this.avoidRegions=[],this.subSymbols=[],this.geoSymbolTexts=[],this.dRotate=0,this.dScale=1,this.textContent="",this.associatedUuid="",o&&o.symbolData&&(this._removeRedundancySymbolData(o.symbolData),this.symbolData=SuperMap.Plot.PlottingUtil.cloneObject(o.symbolData),SuperMap.Plot.AnalysisSymbol.parseSymbolData(this,this.symbolData,!0),SuperMap.Util.applyDefaults(this.style,this._defaultStyle),delete o.symbolData),this._mergeDefaultStyle(),SuperMap.Util.extend(this,o),null===this.uuid&&(this.uuid=SuperMap.Plot.PlottingUtil.generateUuid()),null===this.style?this.style=SuperMap.Plot.PlottingUtil.cloneObject(this._defaultStyle):this.hasOwnProperty("isGeoJSONData")||!0===this.isGeoJSONData||(this.style.fontSize=this._defaultStyle.fontSize);for(var n=0;n<this.avoidRegions.length;n++)this.avoidRegions[n].associatedUuid=this.uuid},onAdd:function(t){this.layer=t,this._renderer=t._renderer,this._map=t._map,this.redraw(),this.isEdit=!0,o.PlottingObjectDrag&&(this.dragging||(this.dragging=new o.PlottingObjectDrag(this))),null===this.fromZoom&&(this.fromZoom=this._map.getZoom())},_clearComponents:function(){for(var t=0;t<this.components.length;t++)this.components[t].removeEventParent(this),this.components[t]instanceof l?this.components[t]._clearComponents():(this.components[t].onRemove(),delete this.components[t]);this.components=[],this._map&&this.layer&&this._map.getRenderer(this.layer)instanceof L.SVG&&this._removeGradientNodeInSVG()},_removeGradientNodeInSVG:function(){if(this.uuid&&this.layer._renderer._container.defs){var t=document.getElementById("linearGradient_"+this.uuid);null!==t&&this.layer._renderer._container.defs.removeChild(t),null!==(t=document.getElementById("radialGradient_"+this.uuid))&&this.layer._renderer._container.defs.removeChild(t),null!==(t=document.getElementById("patternFill_"+this.uuid))&&this.layer._renderer._container.defs.removeChild(t)}},_addComponents:function(t){t._map=this._map,t._renderer=this._renderer,t.addEventParent(this),t instanceof l?t.onAdd(this.layer):t.onAdd(),this.components.push(t)},_project:function(){var t=this;t._pxBounds=new L.Bounds,t.components.map(function(e){return e instanceof l&&e._project(),e._pxBounds&&e._pxBounds.isValid()&&(t._pxBounds.extend(e._pxBounds.min),t._pxBounds.extend(e._pxBounds.max)),e})},getBounds:function(){var t=this;return t._bounds=new L.LatLngBounds,t.components.map(function(e){return t._bounds.extend(e.getBounds()),e}),t._bounds},clone:function(){this.symbolData=this.getSymbolData();var t=SuperMap.Plot.PlottingUtil.toJSON(this.symbolData),e=JSON.parse(t);e.uuid=SuperMap.Plot.PlottingUtil.generateUuid();var i=SuperMap.Plot.PlottingUtil.cloneObject(this.style);return L.supermap.plotting.PlottingObject.createSymbol(this.libID,this.code,null,{symbolData:e,serverUrl:this.serverUrl},i)},setStyle:function(t){if(SuperMap.Util.extend(this.style,t),this.redraw(),this.symbolType===SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL&&this.ownerGroup&&(this.ownerGroup.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT||this.ownerGroup.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT))for(var e in this.ownerGroup.subObjects)this.ownerGroup.subObjects[e].redraw();this.symbolType===SuperMap.Plot.SymbolType.TEXTSYMBOL&&this.isSelected&&"none"!==this.style.display&&this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)},setScale:function(){},setRotate:function(){},setTextPosition:function(){},setTextContent:function(t){this.textContent=t,this.redraw(),this.symbolType===SuperMap.Plot.SymbolType.TEXTSYMBOL&&this.isSelected&&this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)},getLocked:function(){return this.isLocked},setLocked:function(t){if(this.isLocked!==t){if(this.isLocked=t,this.symbolType===SuperMap.Plot.SymbolType.GROUPOBJECT)for(var e=0;e<this.components.length;e++)this.components[e].isLocked=t;this.fire(SuperMap.Plot.Event.reseteditmarkers)}},getScale:function(){return this.dScale},getScaleValues:function(){return this.scaleValues},setScaleValues:function(t){t&&null!==t&&(L.Util.isArray(t)||(t=[t]),this.scaleValues=t,this._calculateParts(),this.fire(SuperMap.Plot.Event.reseteditmarkers))},getRotate:function(){return this.dRotate},getSubSymbols:function(){return 0===this.libID&&this.code===SuperMap.Plot.SymbolType.NODECHAIN&&0===this.subSymbols.length?this.subSymbols.push(new SuperMap.Plot.SubSymbol(-1,-1)):(100!==this.libID||25200!==this.code&&3020901!==this.code&&23400!==this.code&&30800!==this.code&&26400!==this.code||0!==this.subSymbols.length)&&(123!==this.libID||5030101!==this.code&&5020801!==this.code&&50208!==this.code&&50331!==this.code||0!==this.subSymbols.length)||this.subSymbols.push(new SuperMap.Plot.SubSymbol(-1,-1)),this.subSymbols},getTextPosition:function(){return this.annotationPosition},getTextContent:function(){return this.textContent},getExtendProperty:function(){return this.extendProperty},addAvoidRegion:function(t){t.symbolType===SuperMap.Plot.SymbolType.AVOIDREGION&&(this.avoidRegions.push(t),t.associatedUuid=this.uuid,this.redraw())},removeAvoidRegions:function(t){void 0===t&&(t=this.avoidRegions.slice()),SuperMap.Util.isArray(t)||(t=[t]);for(var e=0;e<t.length;e++){var i=t[e];if(i.symbolType===SuperMap.Plot.SymbolType.AVOIDREGION)for(var o=0;o<this.avoidRegions.length;o++)if(this.avoidRegions[o]===i){this.avoidRegions.splice(o,1);break}}this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)},getSymbolData:function(){return SuperMap.Plot.AnalysisSymbol.setSymbolData(this,this.symbolData,!0),this.symbolData},redraw:function(){this._clearComponents(),this._redrawComponents()},_redrawComponents:function(){"none"!==this.style.display?(this._calculateParts(),this._calculateAvoidRegions()):this.symbolType!==SuperMap.Plot.SymbolType.DOTSYMBOL&&this.symbolType!==SuperMap.Plot.SymbolType.AlgoSymbol&&0!==this.libID||this._updateSymbolTexts()},_calculateAvoidRegions:function(){if(0!==this.avoidRegions.length){for(var t=this.components.slice(),e=0;e<this.components.length;e++)this.components[e].removeEventParent(this),this.components[e]instanceof l||(this.components[e].onRemove(),delete this.components[e]);this.components=[];for(var i=0;i<this.avoidRegions.length;i++)if(0!==this.avoidRegions[i].getLatLngs().length){var o=this.avoidRegions[i];t=this._layersWithoutAvoidRegion(o,t)}for(var n=0;n<t.length;n++)this._addComponents(t[n])}},_layersWithoutAvoidRegion:function(t,e){for(var i=[],o=0;o<e.length;o++){var a=e[o];if(a instanceof l)i=i.concat(this._layersWithoutAvoidRegion(t,a.components)),a._clearComponents();else{if(1===t._relationToLayer(a))continue;if(a instanceof n.Text||0!==t._relationToLayer(a))i.push(a);else if(a instanceof L.Polygon){var s={};s=SuperMap.Util.copyAttributes(s,a.options);var r=L.Util.latLngsToSuperMapPoints(a.getLatLngs()[0][0]),u=L.Util.latLngsToSuperMapPoints(a.getLatLngs()[0][a.getLatLngs()[0].length-1]);SuperMap.Plot.PlottingUtil.isSamePt(r[0],u[0])||a.getLatLngs()[0].push(a.getLatLngs()[0][0]),r=L.Util.latLngsToSuperMapPoints(a.getLatLngs()[0][0]),u=L.Util.latLngsToSuperMapPoints(a.getLatLngs()[0][a.getLatLngs()[0].length-1]),SuperMap.Plot.PlottingUtil.isSamePt(r[0],u[0])||a.getLatLngs()[0].push(a.getLatLngs()[0][0]);for(var p=0;p<a.getLatLngs().length;p++)for(var h=t._getWithoutPts(a.getLatLngs()[p],!0),c=0;c<h.length;c++){var y=L.polyline(L.Util.superMapPointsToLatLngs(h[c]),s);i.push(y)}}else if(a instanceof L.Polyline){var f={};f=SuperMap.Util.copyAttributes(f,a.options);for(var S=t._getWithoutPts(a.getLatLngs(),!1),g=0;g<S.length;g++){f.fill=!1;var P=L.polyline(L.Util.superMapPointsToLatLngs(S[g]),f);i.push(P)}}}}return i},_isDot:function(){return this.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL||this.symbolType===SuperMap.Plot.SymbolType.GROUPOBJECT||this.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP||this.symbolType===SuperMap.Plot.SymbolType.ROUTENODE||this.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT||this.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT},_resizeOffset:function(t,e,i){var o=L.latLng(0,0);switch(e){case 1:o.lng=t.lng-i.getWest(),o.lat=t.lat-i.getNorth();break;case 3:o.lng=t.lng-i.getEast(),o.lat=t.lat-i.getNorth();break;case 6:o.lng=t.lng-i.getWest(),o.lat=t.lat-i.getSouth();break;case 8:o.lng=t.lng-i.getEast(),o.lat=t.lat-i.getSouth();break;case 2:o.lng=0,o.lat=t.lat-i.getNorth();break;case 4:o.lng=t.lng-i.getWest(),o.lat=0;break;case 5:o.lng=t.lng-i.getEast(),o.lat=0;break;case 7:o.lng=0,o.lat=t.lat-i.getSouth()}return o},_resizeBounds:function(t,e,i){var o=i.getWest(),n=i.getEast(),l=i.getNorth(),a=i.getSouth();switch(e){case 1:l=t.lat,o=t.lng;break;case 3:l=t.lat,n=t.lng;break;case 6:o=t.lng,a=t.lat;break;case 8:n=t.lng,a=t.lat;break;case 2:l=t.lat;break;case 4:o=t.lng;break;case 5:n=t.lng;break;case 7:a=t.lat}var s=new L.LatLngBounds;return s._southWest=L.latLng(a,o),s._northEast=L.latLng(l,n),s},_getHandleCount:function(){switch(this.symbolType){case SuperMap.Plot.SymbolType.ELLIPSESYMBOL:case SuperMap.Plot.SymbolType.CIRCLESYMBOL:case SuperMap.Plot.SymbolType.ARCSYMBOL:case SuperMap.Plot.SymbolType.CHORDSYMBOL:case SuperMap.Plot.SymbolType.PIESYMBOL:case SuperMap.Plot.SymbolType.AVOIDREGION:case SuperMap.Plot.SymbolType.LINERELATION:case SuperMap.Plot.SymbolType.SYMBOLTEXT:case SuperMap.Plot.SymbolType.SYMBOLTEXT1:return this.getLatLngs().length+9;default:return 9}},_getHandlePointsByBounds:function(t){if(void 0!==t&&null!==t||(t=this.getBounds()),null!==t){var e=this._map.latLngToLayerPoint(L.latLng(t.getNorth(),t.getEast()));e.x+=5,e.y-=5;var i=this._map.latLngToLayerPoint(L.latLng(t.getNorth(),t.getWest()));i.x-=5,i.y-=5;var o=this._map.latLngToLayerPoint(L.latLng(t.getSouth(),t.getEast()));o.x+=5,o.y+=5;var n=this._map.latLngToLayerPoint(L.latLng(t.getSouth(),t.getWest()));n.x-=5,n.y+=5;for(var l=L.point((e.x+i.x)/2,e.y),a=L.point(e.x,(e.y+o.y)/2),s=L.point((o.x+n.x)/2,o.y),r=L.point(i.x,(i.y+n.y)/2),u=this._map.layerPointToLatLng(e),p=this._map.layerPointToLatLng(i),h=this._map.layerPointToLatLng(o),c=this._map.layerPointToLatLng(n),y=this._map.layerPointToLatLng(a),f=this._map.layerPointToLatLng(s),S=this._map.layerPointToLatLng(r),g=this._map.layerPointToLatLng(l),P=[p.clone(),g.clone(),u.clone(),S.clone(),y.clone(),c.clone(),f.clone(),h.clone()],d=1,m=0;m<P.length;m++)P[m].nHandle=d++;return P}},_getHandleAndRotatePoints:function(){var t={handlePoints:[],rotatePoints:[]},e=this.getBounds();if(!e.isValid())return t;this._getHandleCount()>9?this.symbolType===SuperMap.Plot.SymbolType.REGULARPOLYGON?(t.handlePoints.push(this.getLatLngs()[0].clone()),t.handlePoints.push(this.getLatLngs()[this.getLatLngs().length-1].clone())):t.handlePoints=L.Util.cloneLatLngs(this.getLatLngs()):t.handlePoints=this._getHandlePointsByBounds(e);for(var i=0;i<t.handlePoints.length;i++)t.handlePoints[i].tag=i;if(!0===this.getLocked())return t;if(this.symbolType!==SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL&&this.symbolType!==SuperMap.Plot.SymbolType.LINERELATION&&this.symbolType!==SuperMap.Plot.SymbolType.SYMBOLTEXT&&this.symbolType!==SuperMap.Plot.SymbolType.SYMBOLTEXT1&&this.symbolType!==SuperMap.Plot.SymbolType.SYMBOLTEXTBOX&&this.symbolType!==SuperMap.Plot.SymbolType.LINEMARKING&&this.symbolType!==SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM&&this.symbolType!==SuperMap.Plot.SymbolType.ROUTENODE&&this.symbolType!==SuperMap.Plot.SymbolType.LITERATESIGN&&this.symbolType!==SuperMap.Plot.SymbolType.SATELLITE&&this.symbolType!==SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS&&this.symbolType!==SuperMap.Plot.SymbolType.AVOIDREGION&&this.symbolType!==SuperMap.Plot.SymbolType.NAVYDEPLOYMENT&&this.symbolType!==SuperMap.Plot.SymbolType.RECTANGLESYMBOL&&this.symbolType!==SuperMap.Plot.SymbolType.AIRDEPLOYMENT){var o=this._map.latLngToLayerPoint(L.latLng(e.getNorth(),e.getEast())),n=L.point(o.x+15,o.y-15),l=this._map.layerPointToLatLng(n);l.isRotatePoint=!0,t.rotatePoints=[l]}return t},_parseSymbolData:function(){if(null!==this.symbolData){if(this.libID=parseInt(this.symbolData.libID),this.code=parseInt(this.symbolData.code),this.symbolType=this.symbolData.symbolType,this.symbolName=this.symbolData.symbolName,this.textContent=this.symbolData.textContent,void 0!==this.symbolData.dScale?this.dScale=this.symbolData.dScale:this.dScale=this.symbolData.scale2D.x,void 0!==this.symbolData.dRotate?this.dRotate=this.symbolData.dRotate:this.dRotate=this.symbolData.rotate2D.x,void 0!==this.symbolData.uuid&&(this.uuid=this.symbolData.uuid),void 0!==this.symbolData.associatedUuid&&(this.associatedUuid=this.symbolData.associatedUuid),void 0!==this.symbolData.annotationPosition&&(this.annotationPosition=this.symbolData.annotationPosition),void 0!==this.symbolData.isLocked&&(this.isLocked=this.symbolData.isLocked),void 0!==this.symbolData.note&&(this.note=this.symbolData.note),void 0!==this.symbolData.custom&&(this.custom=this.symbolData.custom),this.symbolData.extendProperty)for(var t=0;t<this.symbolData.extendProperty.length;t++){var e=this.symbolData.extendProperty[t];this.extendProperty.addProperty(e.key,e.value)}if(this.symbolData.hasOwnProperty("subSymbols")&&this.symbolData.subSymbols&&0!==this.symbolData.subSymbols.length){this.subSymbols=[];for(var i=0;i<this.symbolData.subSymbols.length;i++){var o=this.symbolData.subSymbols[i].libID;void 0===o&&(o=this.libID);var n=this.symbolData.subSymbols[i].code;if(void 0!==n){var l={};void 0!==this.symbolData.subSymbols[i]&&(l.symbolData=this.symbolData.subSymbols[i].symbolData),void 0!==this.symbolData.subSymbols[i].textContent&&(l.textContent=this.symbolData.subSymbols[i].textContent),void 0!==this.symbolData.subSymbols[i].totalNum&&(l.totalNum=this.symbolData.subSymbols[i].totalNum),this.subSymbols.push(new SuperMap.Plot.SubSymbol(o,n,l))}}}if(this.symbolData.avoidRegions&&0!==this.symbolData.avoidRegions.length)for(var a=0;a<this.symbolData.avoidRegions.length;a++){var s={libID:0,code:SuperMap.Plot.SymbolType.AVOIDREGION,map:this._map,symbolData:this.symbolData.avoidRegions[a][0]},r=L.supermap.plotting.avoidRegion(0,SuperMap.Plot.SymbolType.AVOIDREGION,[],s);r.style=SuperMap.Plot.AnalysisSymbol.getStyle(this.symbolData.avoidRegions[a][1],!0),this.avoidRegions.push(r)}}},_setSymbolData:function(t){if(void 0===t&&(t=!0),null===this.symbolData&&(this.symbolData={}),this.symbolData.hasOwnProperty("type")||(this.symbolData.type="GRAPHICOBJECT"),this.symbolData.hasOwnProperty("rotate2D")?this.symbolData.rotate2D.x=this.dRotate:this.symbolData.rotate2D={x:this.dRotate,y:0,z:0},this.symbolData.hasOwnProperty("scale2D")?this.symbolData.scale2D.x=this.dScale:this.symbolData.scale2D={x:this.dScale,y:0,z:0},this.symbolData.libID=this.libID,this.symbolData.code=this.code,this.symbolData.isEdit=!0,this.symbolData.uuid=this.uuid,this.symbolData.symbolType=this.symbolType,this.symbolData.symbolName=this.symbolName,this.symbolData.associatedUuid=this.associatedUuid,this.symbolData.annotationPosition=this.annotationPosition,this.symbolData.textContent=this.textContent,this.symbolData.isLocked=this.isLocked,this.symbolData.note=this.note,this.symbolData.custom=this.custom,this.symbolType!==SuperMap.Plot.SymbolType.DOTSYMBOL&&this.symbolType!==SuperMap.Plot.SymbolType.GROUPOBJECT){this.symbolData.subSymbols=[];for(var e=0;e<this.getSubSymbols().length;e++){var i=this.getSubSymbols()[e];t?this.symbolData.subSymbols.push({libID:i.libID,code:i.code,symbolData:i.symbolData,textContent:i.textContent,totalNum:i.totalNum}):this.symbolData.subSymbols.push({libID:i.libID,code:i.code,textContent:i.textContent,totalNum:i.totalNum})}}this.symbolData.extendProperty=[];for(var o=this.getExtendProperty().getPropertyCount(),n=0;n<o;n++){var l=this.getExtendProperty().getPropertyByIndex(n);this.symbolData.extendProperty.push({key:l.key,value:l.value})}this.symbolData.avoidRegions=[];for(var a=0;a<this.avoidRegions.length;a++){var s={};SuperMap.Plot.AnalysisSymbol.setStyle(this.avoidRegions[a].style,s,!0),this.symbolData.avoidRegions.push([this.avoidRegions[a].getSymbolData(),s])}},_getSymbolWayType:function(){return 22===this.libID&&1016===this.code?0===this.getArrowBodyType()?SuperMap.Plot.AddPoint_WayType.POLYLINE:SuperMap.Plot.AddPoint_WayType.CURVE:SuperMap.Plot.AlgoSymbolFactory.getSymbolWayType(this.libID,this.code)},_reView:function(){},_mergeDefaultStyle:function(){var t=L.supermap.plotting.getControl(this._map,this.serverUrl).getDefaultStyle();if(t&&!0===t.defaultFlag&&!1===this.isEdit){if(this.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL){if(-1!==t.dotSymbolSize){var e=this.symbolSizeInLib.w;if(this.symbolSizeInLib.h>this.symbolSizeInLib.w&&(e=this.symbolSizeInLib.h),0===e||0===t.dotSymbolSize)0!==this.symbolSize.w&&0!==this.symbolSize.h||(this.symbolSize.w=this.symbolSizeInLib.w,this.symbolSize.h=this.symbolSizeInLib.h);else{var i=t.dotSymbolSize/e;this.symbolSize.w=i*this.symbolSizeInLib.w,this.symbolSize.h=i*this.symbolSizeInLib.h}}-1!==t.dotTextSpace&&(this.space=t.dotTextSpace),-1!==t.flagTextSize&&(this.flagTextSize=t.flagTextSize)}this.symbolType!==SuperMap.Plot.SymbolType.DOTSYMBOL&&this.symbolType!==SuperMap.Plot.SymbolType.ALGOSYMBOL||(-1!==t.maxScale&&(this.maxScale=t.maxScale),-1!==t.minScale&&(this.minScale=t.minScale)),-1!==t.scaleByMap&&(this.scaleByMap=t.scaleByMap)}},_removeRedundancySymbolData:function(t){null!==t&&(t.hasOwnProperty("center")&&delete t.center,t.hasOwnProperty("id")&&delete t.id,t.hasOwnProperty("parts")&&delete t.parts,t.hasOwnProperty("points")&&delete t.points,t.hasOwnProperty("position")&&delete t.position,t.hasOwnProperty("prjCoordSys")&&delete t.prjCoordSys,t.hasOwnProperty("rotationX")&&delete t.rotationX,t.hasOwnProperty("rotationY")&&delete t.rotationY,t.hasOwnProperty("rotationZ")&&delete t.rotationZ,t.hasOwnProperty("scaleX")&&delete t.scaleX,t.hasOwnProperty("scaleY")&&delete t.scaleY,t.hasOwnProperty("scaleZ")&&delete t.scaleZ)},destroy:function(){this.dragging=null,this.uuid=null,this.libID=null,this.code=null,this.minEditPts=0,this.maxEditPts=0,this.symbolType=null,this.symbolName=null,this.isSelected=!1,this.enableEdit=!1,this.note="",this.extendProperty=null,this.custom=null,this.symbolData=null,this.dScale=null,this.textContent=null,this.annotationPosition=null,this.subSymbols=null,this.fromZoom=null,this.style=null,this.isLocked=!1,this.anchorPoint=null,this.avoidRegions=null,this.ownerGroup=null,this.geoSymbolTexts=null,this.isEdit=null,this.layer.removeFeatures(this),this._render=null,this.layer=null},toGeoJsonStr:function(){return this.getSymbolData(),SuperMap.Plot.PlottingUtil.toJSON(this.symbolData)}});L.supermap.plotting.PlottingObject=l,l.prototype._containsPoint=function(t){if(this.symbolType!==SuperMap.Plot.SymbolType.TEXTSYMBOL)return!1;for(var e in this.components)if(this.components[e]._containsPoint(t))return!0;return!1},L.supermap.plotting.PlottingObject.createSymbol=function(t,e,i,o,n,l){o||(o={}),o.custom=l;var a=null;if(o&&o.symbolData&&o.symbolData.textStyle2D&&(o.symbolData.textStyle2D.sizeFixed=!0),0===t)switch(e){case SuperMap.Plot.SymbolType.ARCREGION:a=L.supermap.plotting.arcRegion(t,e,i,o);break;case SuperMap.Plot.SymbolType.MISSILEROUTE:a=L.supermap.plotting.missileRoute(t,e,i,o);break;case SuperMap.Plot.SymbolType.NAVYROUTE:a=L.supermap.plotting.navyRoute(t,e,i,o);break;case SuperMap.Plot.SymbolType.AIRROUTE:a=L.supermap.plotting.airRoute(t,e,i,o);break;case SuperMap.Plot.SymbolType.LITERATESIGN:a=L.supermap.plotting.literateSign(t,e,i,o);break;case SuperMap.Plot.SymbolType.ROUTENODE:a=L.supermap.plotting.routeNode(t,e,i,o);break;case SuperMap.Plot.SymbolType.PATHTEXT:a=L.supermap.plotting.pathText(t,e,i,o);break;case SuperMap.Plot.SymbolType.LINERELATION:a=L.supermap.plotting.lineRelation(t,e,i,o);break;case SuperMap.Plot.SymbolType.GROUPOBJECT:a=L.supermap.plotting.groupObject(t,e,i,o);break;case SuperMap.Plot.SymbolType.INTERFERENCEBEAM:a=L.supermap.plotting.interferenceBeam(t,e,i,o);break;case SuperMap.Plot.SymbolType.SATELLITE:a=L.supermap.plotting.satellite(t,e,i,o);break;case SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS:a=L.supermap.plotting.satelliteTimeWindows(t,e,i,o);break;case SuperMap.Plot.SymbolType.SYMBOLTEXT:a=L.supermap.plotting.symbolText(t,e,i,o);break;case SuperMap.Plot.SymbolType.SYMBOLTEXT1:a=L.supermap.plotting.symbolText1(t,e,i,o);break;case SuperMap.Plot.SymbolType.FLAGGROUP:a=L.supermap.plotting.flagGroup(t,e,i,o);break;case SuperMap.Plot.SymbolType.NAVYDEPLOYMENT:a=L.supermap.plotting.navyDeployment(t,e,i,o);break;case SuperMap.Plot.SymbolType.AIRDEPLOYMENT:a=L.supermap.plotting.airDeployment(t,e,i,o);break;case SuperMap.Plot.SymbolType.AVOIDREGION:return L.supermap.plotting.avoidRegion(t,e,i,o);default:a=L.supermap.plotting.algoSymbol(t,e,i,o)}else a=o.symbolData&&o.symbolData.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL?L.supermap.plotting.dotSymbol(t,e,i,o):L.supermap.plotting.algoSymbol(t,e,i,o);var s=L.supermap.plotting.getControl().getDefaultStyle();return SuperMap.Plot.AnalysisSymbol.mergeDefaultStyleToFeature(a,s,!0),n&&SuperMap.Util.extend(a.style,n),i&&null!==i&&(SuperMap.Util.isArray(i)||(i=[i]),i.length>a.maxEditPts&&(i=i.slice(0,a.maxEditPts)),a.latLngs=L.Util.cloneLatLngs(i)),a}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.algoSymbol=e.AlgoSymbol=void 0,i(0);var o=i(1),n=i(7),l=e.AlgoSymbol=o.GraphicObject.extend({superMapAlgoSymbol:null,scalePoints:null,scaleValues:null,polylineConnectLocationPoint:!1,islocationCircle:!1,roundBox:!1,textBoxType:null,arrowHeadType:0,arrowBodyType:0,arrowTailType:0,initialize:function(t,e,i,n){if(this.scalePoints=[],this.scaleValues=[],this.symbolType=0===t?e:SuperMap.Plot.SymbolType.ALGOSYMBOL,o.GraphicObject.prototype.initialize.call(this,t,e,i,n),0===this.libID&&this.symbolType===SuperMap.Plot.SymbolType.ARROWLINE)null!==this.arrowTypeStart&&void 0!==this.arrowTypeStart&&(this.scaleValues[1]=this.arrowTypeStart,delete this.arrowTypeStart),null!==this.arrowTypeEnd&&void 0!==this.arrowTypeEnd&&(this.scaleValues[2]=this.arrowTypeEnd,delete this.arrowTypeEnd);else if(0===this.libID&&this.symbolType===SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE){if(null!=this.radius&&this.radius.length>0){for(var l in this.radius)this.scaleValues[l]=this.radius[l];delete this.radius}}else 0===this.libID&&this.symbolType===SuperMap.Plot.SymbolType.CONCENTRICCIRCLE?(null!==this.startAngle&&void 0!==this.startAngle&&(this.scaleValues[0]=this.startAngle,delete this.startAngle),null!==this.endAngle&&void 0!==this.endAngle&&(this.scaleValues[1]=this.endAngle,delete this.endAngle)):0===this.libID&&this.symbolType===SuperMap.Plot.SymbolType.POLYGONREGION&&(this.annotationPosition>this.getLatLngs()?this.scaleValues[1]=0:null==this.scaleValues[1]&&(this.scaleValues[1]=this.annotationPosition));SuperMap.Plot.AlgoSymbolFactory.isAccessServer(this.libID,this.code)||(this.minEditPts=SuperMap.Plot.AlgoSymbolFactory.getMinEditPts(this.libID,this.code),this.maxEditPts=SuperMap.Plot.AlgoSymbolFactory.getMaxEditPts(this.libID,this.code),0===this.subSymbols.length&&(this.subSymbols=SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols(this.libID,this.code)),null!==this.style&&!1===this.isEdit&&(this.style=SuperMap.Plot.PlottingUtil.copyAttributes(this.style,SuperMap.Plot.AlgoSymbolFactory.getDefaultStyle(this.libID,this.code))),this.controlPoints=L.Util.latLngsToSuperMapPoints(this.latLngs),this.superMapAlgoSymbol=SuperMap.Plot.AlgoSymbolFactory.getAlgoSymbol(this),this.scaleValues=this.superMapAlgoSymbol.scaleValues,0!==this.libID||this.symbolType!==SuperMap.Plot.SymbolType.SYMBOLTEXTBOX&&this.symbolType!==SuperMap.Plot.SymbolType.LINEMARKING||(this.textBoxType=this.superMapAlgoSymbol.textBoxType),delete this.controlPoints),this._setBasicSymbolName()},onAdd:function(t){this.superMapAlgoSymbol&&(this.superMapAlgoSymbol.map=t._map),o.GraphicObject.prototype.onAdd.call(this,t)},getTextContent:function(){return this.textContent},getArrowHeadType:function(){return this.arrowHeadType},setArrowHeadType:function(t){1016===this.code&&this.arrowHeadType!==t&&(this.arrowHeadType=t,this.redraw())},getArrowTailType:function(){return this.arrowTailType},setArrowTailType:function(t){1016===this.code&&this.arrowTailType!==t&&(this.arrowTailType=t,this.redraw())},getArrowBodyType:function(){return this.arrowBodyType},setArrowBodyType:function(t){1016===this.code&&this.arrowBodyType!==t&&(this.arrowBodyType=t,this.redraw())},setRotate:function(t){this.dRotate+=t,0!==this.textContent.length&&(void 0===this.style.labelRotation?this.style.labelRotation=-t:this.style.labelRotation+=-t),null===this.anchorPoint&&this.symbolType!==SuperMap.Plot.SymbolType.TEXTSYMBOL&&this.symbolType!==SuperMap.Plot.SymbolType.CONCENTRICCIRCLE?this.anchorPoint=this.getBounds().getCenter():null===this.anchorPoint&&(this.anchorPoint=L.latLng(this.latLngs[0].lat,this.latLngs[0].lng)),this._rotate(t,this.anchorPoint);for(var e=0,i=this.avoidRegions.length;e<i;e++)L.Util.rotateLatLngs(this.avoidRegions[e].getLatLngs(),this.anchorPoint,t)},getScaleByMap:function(){return this.scaleByMap},setScaleByMap:function(t){this.scaleByMap=t},setSurroundLineType:function(t){this.surroundLineType=t,this.redraw()},setSubSymbol:function(t,e,i){if(null!==i&&void 0!==i||(i=this.libID),e<this.subSymbols.length)this.subSymbols[e].libID=i,this.subSymbols[e].code=t;else{if(this.subSymbols.length!==e)return;this.subSymbols.push(new SuperMap.Plot.SubSymbol(i,t))}if(this.superMapAlgoSymbol){var o=new SuperMap.GetSymbolInfoParameters;o.libID=this.subSymbols[e].libID,o.code=this.subSymbols[e].code,L.supermap.symbolInfoService(this.serverUrl).getSymbolInfo(o,function(t){this.subSymbols[e].symbolData=t.result,this.redraw()},this)}else{var n=new SuperMap.GetSymbolInfoParameters;n.libID=this.libID,n.code=this.code,n.inputPoints=L.Util.latLngsToSuperMapPoints(this.getLatLngs()),n.subSymbols=this.subSymbols,L.supermap.symbolInfoService(this.serverUrl).getSymbolInfo(n,function(t){this.symbolData.innerCells=t.result.innerCells,this.redraw()},this)}},move:function(t,e){if(this.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXTBOX||this.symbolType===SuperMap.Plot.SymbolType.LINEMARKING||this.symbolType===SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM||this.symbolType===SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL)L.Util.moveLatLngs(this.getLatLngs()[0],t,e),L.Util.moveLatLngs(this.getLatLngs()[1],t,e),this.setLatLngs(this.getLatLngs());else{if(o.GraphicObject.prototype._move.call(this,t,e),0!==this.scalePoints.length&&L.Util.moveLatLngs(this.scalePoints,t,e),null!==this.symbolData&&this.symbolData.innerCells)for(var i=0;i<this.symbolData.innerCells.length;i++)for(var n=0;n<this.symbolData.innerCells[i].positionPoints.length;n++)this.symbolData.innerCells[i].positionPoints[n].x+=e,this.symbolData.innerCells[i].positionPoints[n].y+=t;if(null!==this.symbolData&&this.symbolData.innerCells)for(var l=0;l<this.symbolData.scalePoints.length;l++)this.symbolData.scalePoints[l].x+=e,this.symbolData.scalePoints[l].y+=t}for(var a=0,s=this.avoidRegions.length;a<s;a++)L.Util.moveLatLngs(this.avoidRegions[a].getLatLngs(),t,e);this._updateSymbolTexts()},_parseSymbolData:function(){if(o.GraphicObject.prototype._parseSymbolData.call(this),null!==this.symbolData){if(void 0!==this.symbolData.subSymbolScaleValue&&null!==this.symbolData.subSymbolScaleValue&&(this.subSymbolScaleValue=this.symbolData.subSymbolScaleValue),void 0!==this.symbolData.strokeWidth&&null!==this.symbolData.strokeWidth&&(this.strokeWidth=this.symbolData.strokeWidth),void 0!==this.symbolData.constantSize&&null!==this.symbolData.constantSize&&(this.constantSize=this.symbolData.constantSize),void 0!==this.symbolData.baseScale&&null!==this.symbolData.baseScale&&(this.baseScale=this.symbolData.baseScale),this.symbolData.scaleValues&&0!==this.symbolData.scaleValues.length){this.scaleValues=[];for(var t=0;t<this.symbolData.scaleValues.length;t++)this.scaleValues.push(this.symbolData.scaleValues[t])}this.symbolData.hasOwnProperty("arrowTailType")&&(this.arrowTailType=this.symbolData.arrowTailType),this.symbolData.hasOwnProperty("arrowBodyType")&&(this.arrowBodyType=this.symbolData.arrowBodyType),this.symbolData.hasOwnProperty("arrowHeadType")&&(this.arrowHeadType=this.symbolData.arrowHeadType)}},_setSymbolData:function(t){if(o.GraphicObject.prototype._setSymbolData.call(this,t),null!==this.symbolData&&this.superMapAlgoSymbol){if(this.symbolData.subSymbolScaleValue=this.subSymbolScaleValue,this.symbolData.baseScale=this.baseScale,this.symbolData.strokeWidth=this.strokeWidth,this.symbolData.constantSize=this.constantSize,null!==this.annotationPosition&&void 0!==this.annotationPosition&&(this.symbolData.annotationPosition=this.annotationPosition),this.symbolData.hasOwnProperty("scaleValues")&&null!==this.symbolData.scaleValues)for(var e=0;e<this.scaleValues.length;e++)this.symbolData.scaleValues.length>e?this.symbolData.scaleValues[e]=this.scaleValues[e]:this.symbolData.scaleValues.push(this.scaleValues[e]);else this.symbolData.scaleValues=[],this.symbolData.scaleValues=this.scaleValues;1016===this.code&&(this.symbolData.arrowTailType=this.arrowTailType,this.symbolData.arrowBodyType=this.arrowBodyType,this.symbolData.arrowHeadType=this.arrowHeadType)}},_calculateParts:function(){if("none"!==this.style.display)if(this.textContent&&""!==this.textContent&&"???"!==this.textContent||this.symbolType!==SuperMap.Plot.SymbolType.TEXTSYMBOL||(this.textContent="请输入文本"),0!==this.textContent.length&&this.dRotate!==this.style.labelRotation&&(this.style.labelRotation=-this.dRotate),this.superMapAlgoSymbol&&0!==this.getLatLngs().length){if(this.superMapCalculateParts(),this._setBasicSymbolText(),this.symbolType===SuperMap.Plot.SymbolType.ELLIPSESYMBOL){if(3===this.superMapAlgoSymbol.controlPoints.length){var t=new SuperMap.Geometry.Point(2*this.superMapAlgoSymbol.controlPoints[0].x-this.superMapAlgoSymbol.controlPoints[1].x,2*this.superMapAlgoSymbol.controlPoints[0].y-this.superMapAlgoSymbol.controlPoints[1].y);this.superMapAlgoSymbol.controlPoints.push(t);var e=new SuperMap.Geometry.Point(2*this.superMapAlgoSymbol.controlPoints[0].x-this.superMapAlgoSymbol.controlPoints[2].x,2*this.superMapAlgoSymbol.controlPoints[0].y-this.superMapAlgoSymbol.controlPoints[2].y);this.superMapAlgoSymbol.controlPoints.push(e)}else if(5===this.superMapAlgoSymbol.controlPoints.length){var i=new SuperMap.Geometry.Point(2*this.superMapAlgoSymbol.controlPoints[0].x-this.superMapAlgoSymbol.controlPoints[2].x,2*this.superMapAlgoSymbol.controlPoints[0].y-this.superMapAlgoSymbol.controlPoints[2].y);this.superMapAlgoSymbol.controlPoints[4].x=i.x,this.superMapAlgoSymbol.controlPoints[4].y=i.y}this.latLngs=L.Util.superMapPointsToLatLngs(this.superMapAlgoSymbol.controlPoints)}}else!this.superMapAlgoSymbol&&this.getLatLngs().length>=this.minEditPts&&(this._calAccessServerSymbol(),this._setBasicSymbolText())},_calAccessServerSymbol:function(){for(var t=SuperMap.Plot.AnalysisSymbol.analysisSymbolCells(this.symbolData,!0),e=0;e<t.length;e++)t[e].type===SuperMap.Plot.SymbolType.TEXTSYMBOL&&(t[e].style.fontSize*=2);this._transSymbolCellsToLayers(t),this._analysisAlgoBasicInfo(!1),0!==this.symbolData.subSymbols.length&&this.subSymbols.length!==this.symbolData.subSymbols.length&&this._analysisAlgoBasicInfo(!0)},_analysisAlgoBasicInfo:function(t){if(this.symbolData.scaleValues&&0!==this.symbolData.scaleValues.length){this.scaleValues=[];for(var e=0;e<this.symbolData.scaleValues.length;e++)this.scaleValues.push(this.symbolData.scaleValues[e])}if(t&&this.symbolData.subSymbols){this.subSymbols=[];for(var i=0;i<this.symbolData.subSymbols.length;i++)this.subSymbols.push(new SuperMap.Plot.SubSymbol(this.symbolData.libID,this.symbolData.subSymbols[i]))}if(this.symbolData.scalePoints&&0!==this.symbolData.scalePoints.length){this.scalePoints=[];for(var o=0;o<this.symbolData.scalePoints.length;o++)this.scalePoints.push(L.latLng(this.symbolData.scalePoints[o].y,this.symbolData.scalePoints[o].x))}},_modifyPoint:function(t,e){if((e=new SuperMap.Geometry.Point(e.lng,e.lat)).isScalePoint=!0,this._clearComponents(),this.superMapModifyPoint(t,e),this.symbolType===SuperMap.Plot.SymbolType.ELLIPSESYMBOL){if(this.isCalculate=!1,this.superMapAlgoSymbol.calculateParts(),this._transSymbolCellsToLayers(this.superMapAlgoSymbol.components),this.symbolType===SuperMap.Plot.SymbolType.ELLIPSESYMBOL)for(var i=0;i<this.superMapAlgoSymbol.components.length;i++)this.superMapAlgoSymbol.components[i].isCalculate=this.isCalculate;if(3===this.superMapAlgoSymbol.controlPoints.length){var o=new SuperMap.Geometry.Point(2*this.superMapAlgoSymbol.controlPoints[0].x-this.superMapAlgoSymbol.controlPoints[1].x,2*this.superMapAlgoSymbol.controlPoints[0].y-this.superMapAlgoSymbol.controlPoints[1].y);this.superMapAlgoSymbol.controlPoints.push(o);var n=new SuperMap.Geometry.Point(2*this.superMapAlgoSymbol.controlPoints[0].x-this.superMapAlgoSymbol.controlPoints[2].x,2*this.superMapAlgoSymbol.controlPoints[0].y-this.superMapAlgoSymbol.controlPoints[2].y);this.superMapAlgoSymbol.controlPoints.push(n)}else if(5===this.superMapAlgoSymbol.controlPoints.length){var l=new SuperMap.Geometry.Point(2*this.superMapAlgoSymbol.controlPoints[0].x-this.superMapAlgoSymbol.controlPoints[2].x,2*this.superMapAlgoSymbol.controlPoints[0].y-this.superMapAlgoSymbol.controlPoints[2].y);this.superMapAlgoSymbol.controlPoints[4].x=l.x,this.superMapAlgoSymbol.controlPoints[4].y=l.y}this.latLngs=L.Util.superMapPointsToLatLngs(this.superMapAlgoSymbol.controlPoints)}this._calculateAvoidRegions()},_reView:function(){if(void 0!==this.prevStrokeWidth&&this.prevStrokeWidth!==this.style.weight&&(this.strokeWidth=this.style.weight),this.fromZoom!==this._map.getZoom()){var t=this.getBounds();if(!0===this.isEdit&&t.isValid()){var e=this._map.getZoomScale(this._map.getZoom(),this.fromZoom);if(this.dScale*=e,void 0!==this.strokeWidth&&null!==this.strokeWidth||(this.strokeWidth=this.style.weight),void 0===this.baseScale){var i=Math.abs(t.getEast()-t.getWest()),o=Math.abs(t.getNorth()-t.getSouth());i<o&&(i=o);var l=this.strokeWidth/.5*5,a=this._map.layerPointToLatLng(L.point(0,0)),s=this._map.layerPointToLatLng(L.point(l,0)),r=Math.sqrt((a.lat-s.lat)*(a.lat-s.lat)+(a.lng-s.lng)*(a.lng-s.lng));this.baseScale=r/i}if(this.dScale<=this.baseScale){this.scaleStrokeWidth=!0;var u=this.strokeWidth/.5*5,p=this.dScale*u/this.baseScale;this.style.weight=Math.round(p/10),this.style.weight>=this.strokeWidth&&(this.style.weight=this.strokeWidth),this.style.weight<=.5&&(this.style.weight=.5)}else!0===this.scaleStrokeWidth&&(this.style.weight=this.strokeWidth,this.scaleStrokeWidth=!1),this.strokeWidth=this.style.weight;if(this.prevStrokeWidth=this.style.weight,34===this.symbolType&&!1===this.style.sizeFixed||34!==this.symbolType)for(var h in this.textContent.length>0&&(this.style.fontSize*=e),this.components)this.components[h]instanceof n.Text&&(this.components[h].options.fontSize*=e);22!==this.libID||1012!==this.code&&1013!==this.code&&1014!==this.code&&1015!==this.code||this.dScale>=1&&this.redraw(),this.layer._map.getRenderer(this.layer)instanceof L.Canvas&&this._updateCanvasFills(),this._updateSymbolTexts(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)}this.fromZoom=this._map.getZoom(),(1===this.surroundLineType||2===this.surroundLineType||SuperMap.Plot.AlgoSymbolFactory.zoomCalSymbol(this.libID,this.code))&&this.redraw(),this.symbolType===SuperMap.Plot.SymbolType.TEXTSYMBOL&&this.isSelected&&this._map.getPlotEditControl()&&this._map.getPlotEditControl().fire(SuperMap.Plot.Event.featuresmodified,{features:[this]})}},_rotate:function(t,e){if(this.symbolType===SuperMap.Plot.SymbolType.TEXTSYMBOL)for(var i in this.components)this.components[i].options.labelRotation=this.style.labelRotation,this.components[i].redraw();if(L.Util.rotateLatLngs(this.getLatLngs(),e,t),L.Util.rotateLatLngs(this.scalePoints,e,t),this.symbolType!==SuperMap.Plot.SymbolType.CONCENTRICCIRCLE||SuperMap.Plot.PlottingUtil.equalFuzzy(Math.abs(this.scaleValues[0]-this.scaleValues[1]),360)||(this.scaleValues[0]+=t,this.scaleValues[1]+=t),SuperMap.Plot.AlgoSymbolFactory.isAccessServer(this.libID,this.code)){var o=new SuperMap.GetSymbolInfoParameters;o.libID=this.libID,o.code=this.code,o.inputPoints=L.Util.latLngsToSuperMapPoints(this.getLatLngs()),o.scaleValues=this.scaleValues,o.subSymbols=this.subSymbols,L.supermap.symbolInfoService(this.serverUrl).getSymbolInfo(o,function(t){this.symbolData.innerCells=t.result.innerCells,this.symbolData.scalePoints=t.result.scalePoints,this.symbolData.scaleValues=t.result.scaleValues,this.redraw(),this._updateSymbolTexts()},this)}else this.superMapAlgoSymbol;this.redraw(),this._updateSymbolTexts()},_resize:function(t,e){o.GraphicObject.prototype._resize.call(this,t,e);var i=new SuperMap.Geometry.Point(e.lng,e.lat);if(this.superMapAlgoSymbol){for(var n=0;n<this.superMapAlgoSymbol.controlPoints.length;n++)SuperMap.Plot.PlottingUtil.resize(i,t,this.superMapAlgoSymbol.controlPoints[n]);for(var l=0;l<this.superMapAlgoSymbol.scalePoints.length;l++)SuperMap.Plot.PlottingUtil.resize(i,t,this.superMapAlgoSymbol.scalePoints[l])}else{for(var a=0;a<this.symbolData.innerCells.length;a++)for(var s=0;s<this.symbolData.innerCells[a].positionPoints.length;s++){var r=new SuperMap.Geometry.Point(this.symbolData.innerCells[a].positionPoints[s].x,this.symbolData.innerCells[a].positionPoints[s].y);SuperMap.Plot.PlottingUtil.resize(i,t,r),this.symbolData.innerCells[a].positionPoints[s].x=r.x,this.symbolData.innerCells[a].positionPoints[s].y=r.y}for(var u=0;u<this.symbolData.scalePoints.length;u++){var p=new SuperMap.Geometry.Point(this.symbolData.scalePoints[u].x,this.symbolData.scalePoints[u].y);SuperMap.Plot.PlottingUtil.resize(i,t,p),this.symbolData.scalePoints[u].x=p.x,this.symbolData.scalePoints[u].y=p.y}}},_setBasicSymbolName:function(){if(0===this.libID)this.symbolName=SuperMap.Plot.AlgoSymbolFactory.getSymbolName(this.libID,this.code);else{var t=L.supermap.plotting.getControl(this._map,this.serverUrl).getSymbolLibManager();this.symbolName=t.getSymbolName(this.libID,this.code)}},_setBasicSymbolText:function(){if(0===this.libID&&this.code===SuperMap.Plot.SymbolType.CIRCLESYMBOL||this.code===SuperMap.Plot.SymbolType.RECTANGLESYMBOL||this.code===SuperMap.Plot.SymbolType.ARCSYMBOL||this.code===SuperMap.Plot.SymbolType.CHORDSYMBOL||this.code===SuperMap.Plot.SymbolType.PIESYMBOL||this.code===SuperMap.Plot.SymbolType.ELLIPSESYMBOL||this.code===SuperMap.Plot.SymbolType.PARALLELOGRAM||this.code===SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL||this.code===SuperMap.Plot.SymbolType.POLYLINESYMBOL||this.code===SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL||this.code===SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL||this.code===SuperMap.Plot.SymbolType.PARALLELLINE||this.code===SuperMap.Plot.SymbolType.KIDNEY||this.code===SuperMap.Plot.SymbolType.REGULARPOLYGON||this.code===SuperMap.Plot.SymbolType.RUNWAY||this.code===SuperMap.Plot.SymbolType.CURVEEIGHT||this.code===SuperMap.Plot.SymbolType.BRACESYMBOL||this.code===SuperMap.Plot.SymbolType.ARROWLINE||this.code===SuperMap.Plot.SymbolType.CONCENTRICCIRCLE||this.code===SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE||this.code===SuperMap.Plot.SymbolType.FREECURVE||this.code===SuperMap.Plot.SymbolType.NODECHAIN||this.code===SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL){this.textContent=SuperMap.Plot.PlottingUtil.trim(this.textContent);var t=this.getBounds();if(this.textContent&&null!==this.textContent&&0!==this.textContent.length&&null!==t&&t.isValid()){var e=L.latLng((t.getSouth()+t.getNorth())/2,(t.getEast()+t.getWest())/2),i=SuperMap.Plot.PlottingUtil.cloneObject(this.style);i.surroundLineFlag=!1,i.labelAlign="cm",i.fontSize=this.style.fontSize,i.fontSizeLimit=!1,this._createAndDrawLayer(34,[e],i,this.textContent)}}},superMapCalculateParts:function(){this.toSuperMapAlgorithms(),this.superMapAlgoSymbol.calculateParts(),this.fromSuperMapAlgorithms()},superMapModifyPoint:function(t,e){this.toSuperMapAlgorithms(),this.superMapAlgoSymbol.modifyPoint(t,e),this.fromSuperMapAlgorithms()},toSuperMapAlgorithms:function(){this.superMapAlgoSymbol.isEdit=this.isEdit,this.superMapAlgoSymbol.controlPoints=L.Util.latLngsToSuperMapPoints(this.getLatLngs()),this.superMapAlgoSymbol.subSymbols=this.subSymbols,this.superMapAlgoSymbol.scaleValues=this.scaleValues,this.superMapAlgoSymbol.scalePoints=L.Util.latLngsToSuperMapPoints(this.scalePoints),this.superMapAlgoSymbol.polylineConnectLocationPoint=this.polylineConnectLocationPoint,this.superMapAlgoSymbol.textContent=this.textContent,this.superMapAlgoSymbol.style=this.style,22===this.libID&&1016===this.code&&(this.superMapAlgoSymbol.arrowHeadType=this.arrowHeadType,this.superMapAlgoSymbol.arrowBodyType=this.arrowBodyType,this.superMapAlgoSymbol.arrowTailType=this.arrowTailType),0===this.libID&&this.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXTBOX&&(this.superMapAlgoSymbol.textBoxType=this.textBoxType,this.superMapAlgoSymbol.roundBox=this.roundBox),0===this.libID&&this.symbolType===SuperMap.Plot.SymbolType.LINEMARKING&&(this.superMapAlgoSymbol.textBoxType=this.textBoxType,this.superMapAlgoSymbol.islocationCircle=this.islocationCircle)},fromSuperMapAlgorithms:function(){this._transSymbolCellsToLayers(this.superMapAlgoSymbol.components),this.scalePoints=L.Util.superMapPointsToLatLngs(this.superMapAlgoSymbol.scalePoints),this.scaleValues=this.superMapAlgoSymbol.scaleValues,this.subSymbols.length!==this.superMapAlgoSymbol.subSymbols.length&&(this.subSymbols=this.superMapAlgoSymbol.subSymbols),(this.latLngs.length!==this.superMapAlgoSymbol.controlPoints.length||100===this.libID&&13700===this.code)&&(this.latLngs=L.Util.superMapPointsToLatLngs(this.superMapAlgoSymbol.controlPoints))},setTextBoxType:function(t){this.textBoxType!==t&&(this.textBoxType=t,this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues))},getTextBoxType:function(){return this.textBoxType},setRoundBox:function(t){this.roundBox!==t&&(this.roundBox=t,this.textBoxType!==SuperMap.Plot.TextBoxType.NONEBOX&&(this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)))},getRoundBox:function(){return this.roundBox},setLocationCircle:function(t){this.islocationCircle!==t&&(this.islocationCircle=t,this.textBoxType!==SuperMap.Plot.TextBoxType.NONEBOX&&(this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)))},getLocationCircle:function(){return this.islocationCircle},canPolylineConnectLocationPoint:function(){return SuperMap.Plot.AlgoSymbolFactory.canPolylineConnect(this.libID,this.code)},getPolylineConnectLocationPoint:function(){return this.polylineConnectLocationPoint},setPolylineConnectLocationPoint:function(t){this.polylineConnectLocationPoint!==t&&SuperMap.Plot.AlgoSymbolFactory.canPolylineConnect(this.libID,this.code)&&(this.polylineConnectLocationPoint=t,this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues))},getStartArrowType:function(){return this.scaleValues[1]},setStartArrowType:function(t){this.scaleValues[1]!==t&&(this.scaleValues[1]=t,this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues))},getEndArrowType:function(){return this.scaleValues[2]},setEndArrowType:function(t){this.scaleValues[2]!==t&&(this.scaleValues[2]=t,this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues))},setFontAlign:function(t){this.style.labelAlign!==t&&(this.style.labelAlign=t,this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues))},getTextPosition:function(){if(this.symbolType===SuperMap.Plot.SymbolType.POLYGONREGION)return this.scaleValues[1]},setTextPosition:function(t){this.symbolType===SuperMap.Plot.SymbolType.POLYGONREGION&&this.scaleValues[1]!==t&&(this.scaleValues[1]=t,0!==this.textContent.length&&this.redraw())}}),a=e.algoSymbol=function(t,e,i,o){return new l(t,e,i,o)};L.supermap.plotting.algoSymbol=a,L.supermap.plotting.AlgoSymbol=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.groupObject=e.GroupObject=void 0,i(0);var o=i(4),n=i(10),l=e.GroupObject=o.PlottingObject.extend({subObjects:[],initialize:function(t,e,i,n){this.subObjects=[],this.symbolName="组合对象",this.libID=0,this.code=SuperMap.Plot.SymbolType.GROUPOBJECT,this.symbolType=SuperMap.Plot.SymbolType.GROUPOBJECT,o.PlottingObject.prototype.initialize.call(this,t,e,i,n)},_addComponents:function(t){o.PlottingObject.prototype._addComponents.call(this,t),t.layer=this.layer,t.isEdit=!0,n.PlottingObjectDrag&&(t.dragging||(t.dragging=new n.PlottingObjectDrag(t))),null===t.fromZoom&&(t.fromZoom=this._map.getZoom()),this._map&&this._map.getPlotEditControl()&&t.enableEdit&&this._map.getPlotEditControl().enableEditFeatures(t)},_clearComponents:function(){this._map&&this._map.getPlotEditControl()&&this._map.getPlotEditControl().disableEditFeatures(this.components),o.PlottingObject.prototype._clearComponents.call(this)},_reView:function(){for(var t in this.components)this.components[t]._reView();this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)},move:function(t,e){for(var i in this.subObjects)this.subObjects[i].move(t,e)},redraw:function(){if("none"!==this.style.display){if(0!==this.subObjects.length&&0===this.components.length)for(var t=0,e=this.subObjects.length;t<e;t++)void 0!==this.subObjects[t].layer&&this.subObjects[t].layer.removeFeatures(this.subObjects[t]),this.subObjects[t].ownerGroup=this,this.subObjects[t].enableEdit=!0,this._addComponents(this.subObjects[t])}else this._clearComponents()},setRotate:function(t){null===this.anchorPoint&&(this.anchorPoint=this.getBounds().getCenter()),this._rotate(t,this.anchorPoint),this.dRotate=t,this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)},setScale:function(t){null===this.anchorPoint&&(this.anchorPoint=this.getBounds().getCenter()),this._resize(t/this.dScale,this.anchorPoint),this.dScale=t,this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)},_unGroupObject:function(){var t=null;if(0!==this.subObjects.length){t=this.subObjects.slice(),this._clearComponents();for(var e=0,i=t.length;e<i;e++)this.layer.addFeatures(t[e]),t[e].ownerGroup=null}return t},removeComponents:function(t){SuperMap.Util.isArray(t)||(t=[t]);for(var e=[],i=0;i<t.length;i++){this.subObjects.splice(SuperMap.Util.indexOf(this.subObjects,t[i]),1);var o=SuperMap.Util.indexOf(this.components,t[i]);-1!==o&&(this.components[o]._clearComponents(),this.components.splice(o,1)),e.push(t[i])}for(var n=0;n<e.length;n++)e[n].addTo(this._map),e[n].ownerGroup=null;return e},setStyle:function(t){for(var e in SuperMap.Util.extend(this.style,t),this.components)this.components[e].symbolType===SuperMap.Plot.SymbolType.TEXTSYMBOL&&(t.labelAlign=this.components[e].style.labelAlign),this.components[e].setStyle(t)},_parseSymbolData:function(){if(null!==this.symbolData&&(o.PlottingObject.prototype._parseSymbolData.call(this),this.symbolData&&this.symbolData.subFeatures)){for(var t=[],e=0;e<this.symbolData.subFeatures.length;e++){var i=this.symbolData.subFeatures[e];i.uuid=SuperMap.Plot.PlottingUtil.generateUuid();var n=L.supermap.plotting.PlottingObject.createSymbol(i.libID,i.code,null,{symbolData:i});t.push(n)}this.subObjects=t}},_setSymbolData:function(){if(o.PlottingObject.prototype._setSymbolData.call(this),this.symbolData){this.symbolData.subFeatures=[];for(var t=0;t<this.subObjects.length;t++)this.symbolData.subFeatures.push(this.subObjects[t].getSymbolData())}},_rotate:function(t,e){for(var i=0;i<this.components.length;i++)this.components[i]._rotate(t,e),this.components[i].dRotate+=t},_resize:function(t,e){for(var i=0;i<this.components.length;i++)this.components[i]instanceof l?this.components[i]._resize(t,e):0!==this.components[i].avoidRegions.length?(this.components[i]._resize(t,this.anchorPoint),this.components[i].redraw()):this.components[i]._resize(t,this.anchorPoint)},destroy:function(){o.PlottingObject.prototype.destroy.call(this),this.subObjects=[]}}),a=e.groupObject=function(t,e,i,o){return new l(t,e,i,o)};L.supermap.plotting.groupObject=a,L.supermap.plotting.GroupObject=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Text=void 0,i(0);var o=e.Text=L.Path.extend({options:{text:"",labelAlign:"cm",labelRotation:0,fontColor:"#000000",fontSize:14,fontOpacity:1,fontFamily:"微软雅黑",fontWeight:"normal",fontStyle:"",fontSpace:0,fontPercent:100,fontStroke:!1,fontStrokeColor:"#ff0000",fontStrokeWidth:2,fontBackground:!1,fontBackgroundColor:"#ff0000",fontShadow:!1,fontShadowColor:"#ff0000",fontShadowOffsetX:0,fontShadowOffsetY:0,interactive:!0},_textNode:null,_backgroundTextNode:null,_shadowTextNode:null,_tspanNodeObj:null,initialize:function(t,e){L.setOptions(this,e),this._latlng=L.latLng(t[0]),this._text=this.options.text,this._tspanNodeObj={}},onAdd:function(){L.Path.prototype.onAdd.call(this)},onRemove:function(){this._removeNode(),L.Path.prototype.onRemove.call(this)},_removeNode:function(){this._textNode&&this._textNode.parentNode&&(L.DomUtil.remove(this._textNode),this.removeInteractiveTarget(this._textNode),delete this._textNode,this._textNode=null),this._backgroundTextNode&&this._backgroundTextNode.parentNode&&(this._renderer._rootGroup.removeChild(this._backgroundTextNode),delete this._backgroundTextNode,this._backgroundTextNode=null),this._shadowTextNode&&this._shadowTextNode.parentNode&&(this._renderer._rootGroup.removeChild(this._shadowTextNode),delete this._shadowTextNode,this._shadowTextNode=null),this._tspanNodeObj={},this._textNode&&(L.DomUtil.remove(this._textNode),this.removeInteractiveTarget(this._textNode),delete this._textNode,this._textNode=null),this._backgroundTextNode&&(delete this._backgroundTextNode,this._backgroundTextNode=null),this._shadowTextNode&&(delete this._shadowTextNode,this._shadowTextNode=null)},setLatLngs:function(t){return this._latlng=L.latLng(t[0]),this.redraw(),this.fire("move",{latlng:this._latlng})},getLatLngs:function(){return[this._latlng]},setText:function(t){return this.options.text=this._text=t,this.redraw()},getText:function(){return this._text},setStyle:function(t){var e=t&&t.text||this._text;return L.Path.prototype.setStyle.call(this,t),this.setText(e),this},getBounds:function(){return this._updateBounds(),this._bounds},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},getPxBounds:function(t){var e=1;this.options.fontPercent&&100!==this.options.fontPercent&&(e=this.options.fontPercent/100);var i=0,o=0,n=this.options.text.split("\n"),l=n.length;if(this._renderer instanceof L.Canvas){var a=[this.options.fontStyle?this.options.fontStyle:"normal","normal",this.options.fontWeight?this.options.fontWeight:"normal",this.options.fontSize?this.options.fontSize+"px":"1em",this.options.fontFamily?this.options.fontFamily:"sans-serif"].join(" ");this._renderer._ctx.font=a,this.options.fontSize=parseFloat(this.options.fontSize);var s=L.Canvas.LABEL_FACTOR[this.options.labelAlign[1]];null==s&&(s=-.5);var r=this._renderer._ctx.measureText("Mg").height||this._renderer._ctx.measureText("xx").width;o=r*s*(l-1)+r*l;for(var u=0;u<l;u++)if(this.options.fontSpace&&0!=this.options.fontSpace||this.options.fontPercent&&100!=this.options.fontPercent){var p=(this._renderer._ctx.measureText(n[u]).width+this.options.fontSpace*(n[u].length-1))*e;i<p&&(i=p)}else{var h=this._renderer._ctx.measureText(n[u]).width;i<h&&(i=h)}}else if(this._renderer instanceof L.SVG){var c=L.SVG.LABEL_VFACTOR[this.options.labelAlign[1]];null==c&&(c=-.5);var y=this.options.fontSize;o=y*c*(l-1)+y*l;for(var f=0;f<l;f++){var S=SuperMap.Plot.PlottingUtil.getTextWidth(this.options,n[f]);i<S&&(i=S)}}this.options.fontSize<6&&(i=0);var g=0,P=0,d=0,m=0,b=this.options.labelAlign||"cm";for(var M in"lt"===b?(g=this._point.x,P=this._point.y,d=this._point.x+i,m=this._point.y+o):"ct"===b?(g=this._point.x-i/2,P=this._point.y,d=this._point.x+i/2,m=this._point.y+o):"rt"===b?(g=this._point.x-i,P=this._point.y,d=this._point.x,m=this._point.y+o):"lb"===b?(g=this._point.x,P=this._point.y-o,d=this._point.x+i,m=this._point.y):"cb"===b?(g=this._point.x-i/2,P=this._point.y-o,d=this._point.x+i/2,m=this._point.y):"rb"===b?(g=this._point.x-i,P=this._point.y-o,d=this._point.x,m=this._point.y):"lm"===b?(g=this._point.x,P=this._point.y-o/2,d=this._point.x+i,m=this._point.y+o/2):"cm"===b?(g=this._point.x-i/2,P=this._point.y-o/2,d=this._point.x+i/2,m=this._point.y+o/2):"rm"===b&&(g=this._point.x-i,P=this._point.y-o/2,d=this._point.x,m=this._point.y+o/2),t&&this.options.fontShadow&&(0!==this.options.fontShadowOffsetX||0!==this.options.fontShadowOffsetY)&&(this.options.fontShadowOffsetX>0?d+=this.options.fontShadowOffsetX:g+=this.options.fontShadowOffsetX,this.options.fontShadowOffsetY>0?m+=this.options.fontShadowOffsetY:P+=this.options.fontShadowOffsetY),this._eventParents)if(this._eventParents[M].symbolType===SuperMap.Plot.SymbolType.TEXTSYMBOL&&0===this.options.fontPercent&&0===this.options.fontPercent){var v=d-g,T=(v+this.options.fontSpace*(this.options.text.length-1))*this.options.fontPercent/100-v;switch(b){case"lt":case"lm":case"lb":d+=T;break;case"rt":case"rm":case"rb":g-=T;break;case"ct":case"cm":case"cb":g-=T/2,d+=T/2}}var A=new L.Bounds;if(this.options.labelRotation&&0!==this.options.labelRotation){var _=[];_.push(L.point(g,P)),_.push(L.point(g,m)),_.push(L.point(d,P)),_.push(L.point(d,m));for(var O=this.options.labelRotation*(Math.PI/180),x=0;x<_.length;x++)SuperMap.Plot.PlottingUtil.rotateAngle(this._point,O,_[x]),A.extend(_[x])}else A=L.bounds(L.point(g,P),L.point(d,m));return A},_updateBounds:function(){this._pxBounds=this.getPxBounds(!0);var t=this._map.layerPointToLatLng(this._pxBounds.min),e=this._map.layerPointToLatLng(this._pxBounds.max);this._bounds=L.latLngBounds(t,e)},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateText(this)},_empty:function(){return this._text&&!this._renderer._bounds.intersects(this._pxBounds)}});L.supermap.plotting.text=function(t,e){return new o(t,e)},L.supermap.plotting.Text=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PlottingLayerBase=void 0;var o=i(6),n=i(4),l=i(32),a=i(3);e.PlottingLayerBase=L.Path.extend({name:"",serverUrl:null,features:null,initialize:function(t,e,i){i=i||{},L.setOptions(this,i),this.name=t,this.serverUrl=e,this.features=[]},destroy:function(){this.name="",this.serverUrl=null,this.features=null},beforeAdd:function(t){L.Path.prototype.beforeAdd.call(this,t)},onAdd:function(t){L.Path.prototype.onAdd.call(this,t),this._map=t;var e=this;this._map.on("zoomend",function(){for(var t=0;t<e.features.length;t++)e.features[t]._reView()})},onRemove:function(){L.Path.prototype.onRemove.call(this),this.removeAllFeatures()},addFeatures:function(t){SuperMap.Util.isArray(t)||(t=[t]);for(var e=0;e<t.length;)t[e]instanceof n.PlottingObject||t[e]instanceof l.AvoidRegion?(this.features.push(t[e]),t[e].onAdd(this),e++):t.splice(e,1)},removeFeatures:function(t){SuperMap.Util.isArray(t)||(t=[t]);for(var e=0,i=t.length;e<i;e++){var s=t[e];if(s instanceof n.PlottingObject||t[e]instanceof l.AvoidRegion){(s instanceof o.GroupObject||s instanceof a.Route)&&this._map&&this._map.getPlotEditControl()&&this._map.getPlotEditControl().disableEditFeatures(s.components),this._map&&this._map.getPlotEditControl()&&this._map.getPlotEditControl().disableEditFeatures(s),s.symbolType===SuperMap.Plot.SymbolType.ROUTENODE&&s.route&&s.route.deleteRouteNode(s.routeNode),s.symbolType!==SuperMap.Plot.SymbolType.SYMBOLTEXT&&s.symbolType!==SuperMap.Plot.SymbolType.SYMBOLTEXT1||s.removeSymbolTextsFromDotSymbol(s.associatedUuid),s.symbolType===SuperMap.Plot.SymbolType.LINERELATION&&(s.startAssociatedUuid&&s.removeJoinLineFromDotSymbol(s.startAssociatedUuid),s.endAssociatedUuid&&s.removeJoinLineFromDotSymbol(s.endAssociatedUuid)),s.ownerGroup?(s.ownerGroup.removeComponents(),this.removeFeatures(s)):(s._clearComponents(),s.geoSymbolTexts&&s.geoSymbolTexts.length>0&&this.removeFeatures(s.geoSymbolTexts));var r=SuperMap.Util.indexOf(this.features,s);-1!==r&&this.features.splice(r,1)}}this._update()},getFeatures:function(){return this.features.slice()},removeAllFeatures:function(){this.removeFeatures(this.features.slice()),this.features=[]},_setCursorStyle:function(t){void 0===t&&(t="");var e=!1;if(this._map.getPlottingLayers().length>1){var i=this._map.getPlottingLayers();for(var o in i)if(i[o]._renderer instanceof L.Canvas)i[o]._renderer._container.style.cursor=t;else if(i[o]._renderer instanceof L.SVG)for(var n=0;n<i[o]._renderer._rootGroup.childNodes.length;n++)i[o]._renderer._rootGroup.childNodes[n].style.cursor=t;e=!0}if(!e)if(this._renderer instanceof L.Canvas)this._renderer._container.style.cursor=t;else if(this._renderer instanceof L.SVG&&!L.Browser.ie){for(var l=0;l<this._renderer._rootGroup.childNodes.length;l++)this._renderer._rootGroup.childNodes[l].style.cursor=t;this._map._panes.overlayPane.style.cursor=t,this._map._panes.overlayPane.style.width=this._renderer._svgSize.x+"px",this._map._panes.overlayPane.style.height=this._renderer._svgSize.y+"px"}},_update:function(){this._map&&this._updatePath()},_containsPoint:function(){return!1},_updatePath:function(){this._renderer._drawPlottingLayers(this._getLayersInBounds())},_project:function(){var t=this;t._pxBounds=L.bounds(L.point(0,0),L.point(0,0)),t._getLayersInBounds().map(function(e){return e._project(),t._pxBounds.extend(e._pxBounds.min),t._pxBounds.extend(e._pxBounds.max),e})},_getLayersInBounds:function(){var t=[],e=this._map.getBounds();return this.features.map(function(i){var o=i.getBounds();return o.isValid()&&e.contains(o)&&t.push(i),i}),t},bringToBack:function(){return L.Path.prototype.beforeAdd.call(this),this._map&&(L.DomUtil.toBack(this._getContainer()),this._setAutoZIndex(Math.max)),this},bringToFront:function(){return L.Path.prototype.bringToFront.call(this),this._map&&(L.DomUtil.toFront(this._getContainer()),this._setAutoZIndex(Math.min)),this},_setAutoZIndex:function(t){for(var e,i=this.getPane().children,o=-t(-1/0,1/0),n=0,l=i.length;n<l;n++)e=i[n].style.zIndex,i[n]!==this._container&&e&&(o=t(o,+e));isFinite(o)&&(this.options.zIndex=o+t(-1,1),this._updateZIndex())},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_getContainer:function(){return this._renderer._container}})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.plottingLayer=e.PlottingLayer=void 0,i(70),i(0),i(69),i(68);var o=i(6),n=i(1),l=i(13),a=i(8),s=i(12),r=i(4),u=i(3),p=e.PlottingLayer=a.PlottingLayerBase.extend({tolerancePixel:5,isLocked:!1,isEditable:!0,isSelected:!0,visibility:!0,getSelected:function(){return this.isSelected},setSelected:function(t){this.isSelected!==t&&(this.isSelected=t,this._map&&this._map.getPlotEditControl()&&(this.isSelected?this._map.getPlotEditControl().enableEditFeatures(this.features):this._map.getPlotEditControl().disableEditFeatures(this.features)))},getEditable:function(){return this.isEditable},setEditable:function(t){if(this.isEditable!==t&&(this.isEditable=t,this._map&&this._map.getPlotEditControl())){var e=this._map.getPlotEditControl().getSelectedFeatures();this._map.getPlotEditControl().unselectFeatures(this.features),this._map.getPlotEditControl().selectFeatures(e)}},getLocked:function(){return this.isLocked},setLocked:function(t){if(this.isLocked!==t&&(this.isLocked=t,this._map&&this._map.getPlotEditControl())){var e=this._map.getPlotEditControl().getSelectedFeatures();this._map.getPlotEditControl().unselectFeatures(this.features),this._map.getPlotEditControl().selectFeatures(e)}},getVisibility:function(){return this.visibility},setVisibility:function(t){this.visibility!==t&&(this.visibility=t,this.visibility?this._renderer._container.style.display="block":this._renderer._container.style.display="none")},initialize:function(t,e,i){a.PlottingLayerBase.prototype.initialize.call(this,t,e,i),this.setVisibility(this.visibility)},getFeatureByUuid:function(t){for(var e=0;e<this.features.length;e++){if(this.features[e].uuid===t)return this.features[e];if(this.features[e]instanceof L.supermap.plotting.GroupObject||this.features[e]instanceof L.supermap.plotting.Route)for(var i=0;i<this.features[e].components.length;i++)if(this.features[e].components[i].uuid===t)return this.features[e].components[i]}return null},addFeatures:function(t){SuperMap.Util.isArray(t)||(t=[t]),a.PlottingLayerBase.prototype.addFeatures.call(this,t),this._map.getPlotEditControl()&&this.isSelected&&this._map.getPlotEditControl().enableEditFeatures(t)},createSymbol:function(t,e,i,o,n,l,a,s){var r;if(l||(l={}),l.uuid=o,l.serverUrl=this.serverUrl,void 0!==l.symbolData&&null!==l.symbolData||!SuperMap.Plot.AlgoSymbolFactory.isAccessServer(t,e))if((r=L.supermap.plotting.PlottingObject.createSymbol(t,e,i,l,n,s)).subSymbols&&0!==r.subSymbols.length&&!SuperMap.Plot.AlgoSymbolFactory.isAccessServer(t,e)){for(var u=[],p=0,h=r.subSymbols.length;p<h;p++)null===r.subSymbols[p].symbolData&&(r.subSymbols[p].symbolData=this._getSymbolDataFromCache(r.subSymbols[p].libID,r.subSymbols[p].code),null===r.subSymbols[p].symbolData&&-1===SuperMap.Util.indexOf(u,r.subSymbols[p])&&u.push(r.subSymbols[p]));for(var c=u.slice(),y=0;y<u.length;y++){var f=new SuperMap.GetSymbolInfoParameters({libID:u[y].libID,code:u[y].code});L.supermap.symbolInfoService(this.serverUrl).getSymbolInfo(f,function(t){this._cacheSymbolData(t.result);for(var e=0,i=r.subSymbols.length;e<i;e++)if(null===r.subSymbols[e].symbolData&&r.subSymbols[e].libID===t.result.libID&&r.subSymbols[e].code===t.result.code){var o=SuperMap.Util.indexOf(c,r.subSymbols[e]);-1!==o&&c.splice(o,1),r.subSymbols[e].symbolData=SuperMap.Plot.PlottingUtil.cloneObject(t.result)}0===c.length&&(r.isEdit=!1,this.addFeatures(r),"function"==typeof a&&a({feature:r}))},this)}if(0===u.length)return this.addFeatures(r),"function"==typeof a&&a({feature:r}),r}else{if(!SuperMap.Plot.AlgoSymbolFactory.isAccessServer(t,e)||r.symbolData.innerCells)return this.addFeatures(r),"function"==typeof a&&a({feature:r}),r;var S=Math.floor(1e3*Math.random()),g=void 0,P=void 0,d=(new Date).getTime(),m=new SuperMap.GetSymbolInfoParameters({libID:r.libID,code:r.code,surroundLineType:r.surroundLineType,scaleValues:r.scaleValues,subSymbols:r.subSymbols});m.inputPoints=L.Util.latLngsToSuperMapPoints(r.getLatLngs()),m.dynamicToken=S,L.supermap.symbolInfoService(this.serverUrl).getSymbolInfo(m,function(t){t.result.dynamicToken&&(P=parseInt(t.result.dynamicToken,16),g=P-S),g&&g-d<6e4&&(r.symbolData.innerCells=t.result.innerCells,this.addFeatures(r))},this)}else{var b=null,M=!1;if(l.hasOwnProperty("negativeImage")||l.hasOwnProperty("symbolRank")||l.hasOwnProperty("surroundLineType")?M=!0:b=this._getSymbolDataFromCache(t,e),!b||M){var v=new SuperMap.GetSymbolInfoParameters({libID:t,code:e});i&&(v.inputPoints=L.Util.latLngsToSuperMapPoints(i)),l.hasOwnProperty("negativeImage")&&(v.negativeImage=l.negativeImage),l.hasOwnProperty("symbolRank")&&(v.symbolRank=l.symbolRank),l.hasOwnProperty("surroundLineType")&&(v.surroundLineType=l.surroundLineType);var T,A,_=Math.floor(1e3*Math.random()),O=(new Date).getTime();v.dynamicToken=_,L.supermap.symbolInfoService(this.serverUrl).getSymbolInfo(v,function(o){o.result.dynamicToken&&(A=parseInt(o.result.dynamicToken,16),T=A-_),T&&T-O<6e4&&(M||o.result.symbolType!==SuperMap.Plot.SymbolType.DOTSYMBOL||(delete o.result.dynamicToken,this._cacheSymbolData(o.result)),l.symbolData=SuperMap.Plot.PlottingUtil.cloneObject(o.result),r=L.supermap.plotting.PlottingObject.createSymbol(t,e,i,l,n,s),this.addFeatures(r),"function"==typeof a&&a({feature:r}))},this)}else l.symbolData=b,r=L.supermap.plotting.PlottingObject.createSymbol(t,e,i,l,n,s),this.addFeatures(r),"function"==typeof a&&a({feature:r})}},createGroupObject:function(t,e){var i=[];for(var l in t)t[l]&&t[l]instanceof n.GraphicObject&&i.push(t[l]);if(i.length>1){var a=new o.GroupObject(0,SuperMap.Plot.SymbolType.GROUPOBJECT,[],{subObjects:i,uuid:e});return this.addFeatures(a),a}return null},unGroupObject:function(t){var e=[];return t.symbolType===SuperMap.Plot.SymbolType.GROUPOBJECT||t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP?(e=t._unGroupObject(),this.removeFeatures(t),t.destroy()):e.push(t),e},createInterferenceBeam:function(t,e,i,o,n,l){n||(n={}),n.associatedUuid=t,n.uuid=i,n.custom=l;var a=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.INTERFERENCEBEAM,e,n,o,l);return this.addFeatures(a),a},createSatellite:function(t,e,i,o,n,l,a,s,r){var u=this._getSymbolDataFromCache(t,e);if(null===u){var p=new SuperMap.GetSymbolInfoParameters({libID:t,code:e});L.supermap.symbolInfoService(this.serverUrl).getSymbolInfo(p,function(u){this._cacheSymbolData(u.result),a||(a={}),a.serverUrl=this.serverUrl,a.orbitPoints=i,a.textContent=o,a.uuid=n,a.custom=r,a.subSymbols=[{libID:t,code:e,symbolData:SuperMap.Plot.PlottingUtil.cloneObject(u.result),textContent:o}];var p=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.SATELLITE,[],a,l,r);this.addFeatures(p),"function"==typeof s&&s({feature:p})},this)}else{a||(a={}),a.serverUrl=this.serverUrl,a.orbitPoints=i,a.textContent=o,a.uuid=n,a.custom=r,a.subSymbols=[{libID:t,code:e,symbolData:u,textContent:o}];var h=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.SATELLITE,[],a,l,r);this.addFeatures(h),"function"==typeof s&&s({feature:h})}},createSatelliteTimeWindows:function(t,e,i,o,n,l){n||(n={}),n.associatedUuid=t,n.timeWindows=e,n.custom=l,n.uuid=i;var a=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS,[],n,o,l);return this.addFeatures(a),a},createSatelliteTimeWindows1:function(t,e,i,o,n,l){n||(n={}),n.associatedUuid=t;for(var a=0;a<e.length;a++)e[a].type="Number";n.timeWindows=e,n.custom=l,n.uuid=i;var s=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS,[],n,o,l);return this.addFeatures(s),s},createSatelliteTimeWindows2:function(t,e,i,o,n,l){n||(n={}),n.associatedUuid=t;for(var a=0;a<e.length;a++)e[a].type="Time";n.timeWindows=e,n.custom=l,n.uuid=i;var s=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS,[],n,o,l);return this.addFeatures(s),s},createSymbolText:function(t,e,i,o,n,l){n||(n={}),n.associatedUuid=t,n.symbolTexts=e,n.custom=l,n.uuid=i;var a=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.SYMBOLTEXT,[],n,o,l);return this.addFeatures(a),a},createSymbolText1:function(t,e,i,o,n,l){n||(n={}),n.associatedUuid=t,n.textContent=e,n.custom=l,n.uuid=i;var a=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.SYMBOLTEXT1,[],n,o,l);return this.addFeatures(a),a},createNavyDeployment:function(t,e,i,o,n,l,a){if(n||(n={}),n.associatedUuid=t,n.custom=a,n.serverUrl=this.serverUrl,e&&0!==e.length){for(var s=[],r=0,u=e.length;r<u;r++)null===e[r].symbolData&&(e[r].symbolData=this._getSymbolDataFromCache(e[r].libID,e[r].code),null===e[r].symbolData&&-1===SuperMap.Util.indexOf(s,e[r])&&s.push(e[r]));if(0!==s.length)for(var p=s.slice(),h=0;h<s.length;h++){var c=new SuperMap.GetSymbolInfoParameters({libID:s[h].libID,code:s[h].code});L.supermap.symbolInfoService(this.serverUrl).getSymbolInfo(c,function(t){this._cacheSymbolData(t.result);for(var i=0,s=e.length;i<s;i++)if(null===e[i].symbolData&&e[i].libID===t.result.libID&&e[i].code===t.result.code){var r=SuperMap.Util.indexOf(p,e[i]);-1!==r&&p.splice(r,1),e[i].symbolData=SuperMap.Plot.PlottingUtil.cloneObject(t.result)}if(0===p.length){n.subSymbols=e;var u=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.NAVYDEPLOYMENT,[],n,o,a);this.addFeatures(u),"function"==typeof l&&l({feature:u})}},this)}else{n.subSymbols=e;var y=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.NAVYDEPLOYMENT,[],n,o,a);this.addFeatures(y),"function"==typeof l&&l({feature:y})}}},createAirDeployment:function(t,e,i,o,n,l,a){if(n||(n={}),n.associatedUuid=t,n.custom=a,n.serverUrl=this.serverUrl,e&&0!==e.length){for(var s=[],r=0,u=e.length;r<u;r++)null===e[r].symbolData&&(e[r].symbolData=this._getSymbolDataFromCache(e[r].libID,e[r].code),null===e[r].symbolData&&-1===SuperMap.Util.indexOf(s,e[r])&&s.push(e[r]));if(0!==s.length)for(var p=s.slice(),h=0;h<s.length;h++){var c=new SuperMap.GetSymbolInfoParameters({libID:s[h].libID,code:s[h].code});L.supermap.symbolInfoService(this.serverUrl).getSymbolInfo(c,function(t){this._cacheSymbolData(t.result);for(var i=0,s=e.length;i<s;i++)if(null===e[i].symbolData&&e[i].libID===t.result.libID&&e[i].code===t.result.code){var r=SuperMap.Util.indexOf(p,e[i]);-1!==r&&p.splice(r,1),e[i].symbolData=SuperMap.Plot.PlottingUtil.cloneObject(t.result)}if(0===p.length){n.subSymbols=e;var u=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.AIRDEPLOYMENT,[],n,o,a);this.addFeatures(u),"function"==typeof l&&l({feature:u})}},this)}else{n.subSymbols=e;var y=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.AIRDEPLOYMENT,[],n,o,a);this.addFeatures(y),"function"==typeof l&&l({feature:y})}}},createNavyRoute:function(t,e,i,o,n,l){n||(n={}),n.routeNodes=e,n.uuid=i,n.custom=l,n.arrRoutePts=t;var a=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.NAVYROUTE,[],n,o,l);return this.addFeatures(a),a},createMissileRoute:function(t,e,i,o,n,l){n||(n={}),n.routeNodes=e,n.uuid=i,n.custom=l,n.arrRoutePts=t;var a=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.MISSILEROUTE,[],n,o,l);return this.addFeatures(a),a},createAirRoute:function(t,e,i,o,n,l){n||(n={}),n.routeNodes=e,n.uuid=i,n.custom=l,n.arrRoutePts=t;var a=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.AIRROUTE,[],n,o,l);return this.addFeatures(a),a},createFlags:function(t,e,i){for(var o=[],n=0;n<t.length;n++)100===t[n].libID&&t[n].code>=2800&&t[n].code<=2900&&o.push(t[n]);var a=null;return o.length>1&&(a=new l.FlagGroup(0,SuperMap.Plot.SymbolType.FLAGGROUP,[],{subObjects:o,ratio:e,uuid:i}),this.addFeatures(a)),a},createArcRegion:function(t,e,i,o,n,l,a,s,r,u,p){r||(r={}),r.centerPoint=t,r.radius=e,r.startAngle=i,r.endAngle=o,r.textContent=n,r.textPosition=l,r.uuid=a,r.custom=p,r.spatialAnalystUrl=this.spatialAnalystUrl;var h=new SuperMap.BufferDistance({value:1e3*r.radius}),c=new SuperMap.BufferSetting({endType:SuperMap.BufferEndType.ROUND,leftDistance:h,rightDistance:h,semicircleLineSegment:36}),y=new SuperMap.GeometryBufferAnalystParameters({sourceGeometry:L.marker(r.centerPoint),sourceGeometrySRID:parseInt(this._map.options.crs.code.split(":")[1]),bufferSetting:c}),f=this;L.supermap.spatialAnalystService(this.spatialAnalystUrl).bufferAnalysis(y,function(t){r.circlePts=[];for(var e=t.result.resultGeometry.points,i=0,o=e.length;i<o;i++)r.circlePts.push(new SuperMap.Geometry.Point(e[i].x,e[i].y));var n=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.ARCREGION,[],r,s,p);f.addFeatures(n),"function"==typeof u&&u({feature:n})},SuperMap.DataFormat.ISERVER)},geoJsonToFeature:function(t,e){var i=JSON.parse(t),o=parseInt(i.libID),n=parseInt(i.code);if(i.isEdit=!0,SuperMap.Plot.AlgoSymbolFactory.isAccessServer(o,n)){var l={};l.negativeImage=i.negativeImage,l.symbolRank=parseInt(i.symbolRank),l.surroundLineType=parseInt(i.surroundLineType);var a=!1;(l.negativeImage||0!==l.surroundLineType||0!==l.symbolRank)&&(a=!0);var s=this._getSymbolDataFromCache(o,n);if(a||null===s){var r=new SuperMap.GetSymbolInfoParameters({libID:o,code:n,negativeImage:l.negativeImage,symbolRank:l.symbolRank,surroundLineType:l.surroundLineType,inputPoints:i.localePoints,subSymbols:i.subSymbols});L.supermap.symbolInfoService(this.serverUrl).getSymbolInfo(r,function(t){if(t.result.libID&&t.result.code){t.result.symbolType!==SuperMap.Plot.SymbolType.DOTSYMBOL||a||this._cacheSymbolData(t.result),s=SuperMap.Util.cloneObject(t.result),SuperMap.Plot.AnalysisSymbol.mergeSymbolDataAndServerData(i,s);var l={symbolData:i,serverUrl:this.serverUrl,isGeoJSONData:!0},r=L.supermap.plotting.PlottingObject.createSymbol(o,n,null,l);this.addFeatures(r),"function"==typeof e&&e({feature:r})}},this)}else{SuperMap.Plot.AnalysisSymbol.mergeSymbolDataAndServerData(i,s);var u={symbolData:i,serverUrl:this.serverUrl,isGeoJSONData:!0},p=L.supermap.plotting.PlottingObject.createSymbol(o,n,null,u);this.addFeatures(p),"function"==typeof e&&e({feature:p})}}else if(i.subSymbols&&0!==i.subSymbols.length){for(var h=[],c=0,y=i.subSymbols.length;c<y;c++)if(!i.subSymbols[c].symbolData){var f=L.supermap.plotting.getControl(this._map,this.serverUrl).getSymbolLibManager().getSymbolLibByLibId(i.subSymbols[c].libID);if(f)f.querySymbolbyKey(n.toString()).length>0&&(i.subSymbols[c].symbolData=this._getSymbolDataFromCache(i.subSymbols[c].libID,i.subSymbols[c].code),null===i.subSymbols[c].symbolData&&-1===SuperMap.Util.indexOf(h,i.subSymbols[c])&&h.push(i.subSymbols[c]))}for(var S=h.slice(),g=0;g<h.length;g++){var P=new SuperMap.GetSymbolInfoParameters({libID:h[g].libID,code:h[g].code});L.supermap.symbolInfoService(this.serverUrl).getSymbolInfo(P,function(t){this._cacheSymbolData(t.result);for(var l=0,a=i.subSymbols.length;l<a;l++)if(null===i.subSymbols[l].symbolData&&i.subSymbols[l].libID===t.result.libID&&i.subSymbols[l].code===t.result.code){var s=SuperMap.Util.indexOf(S,i.subSymbols[l]);-1!==s&&S.splice(s,1),i.subSymbols[l].symbolData=SuperMap.Plot.PlottingUtil.cloneObject(t.result)}if(0===S.length){var r={symbolData:i,serverUrl:this.serverUrl,symbolType:i.symbolType,isGeoJSONData:!0},u=L.supermap.plotting.PlottingObject.createSymbol(o,n,null,r);this.addFeatures(u),"function"==typeof e&&e({feature:u})}},this)}if(0===h.length){var d={symbolData:i,serverUrl:this.serverUrl,symbolType:i.symbolType,isGeoJSONData:!0},m=L.supermap.plotting.PlottingObject.createSymbol(o,n,null,d);this.addFeatures(m),"function"==typeof e&&e({feature:m})}}else{var b={symbolData:i,serverUrl:this.serverUrl,symbolType:i.symbolType,isGeoJSONData:!0},M=L.supermap.plotting.PlottingObject.createSymbol(o,n,null,b);this.addFeatures(M),"function"==typeof e&&e({feature:M})}},_getFeatureFromEvent:function(t){var e=null;if(!this._map)return e;if(this.isSelected)for(var i=this._map.layerPointToLatLng(L.point(0,0)),o=this._map.layerPointToLatLng(L.point(this._clickTolerance(),0)),n=new SuperMap.Geometry.Point(i.lng,i.lat),l=new SuperMap.Geometry.Point(o.lng,o.lat),a=SuperMap.Plot.PlottingUtil.distance(n,l),s=this.features.length-1;s>=0&&null===(e=this._selectFeature(this.features[s],t.latlng,a));s--);return e},_getSymbolDataFromCache:function(t,e){var i=L.supermap.plotting.getControl(this._map,this.serverUrl).getSymbolLibManager().getSymbolLibByLibId(t);return null!==i?i.getSymbolData(e):null},_cacheSymbolData:function(t){var e=L.supermap.plotting.getControl(this._map,this.serverUrl).getSymbolLibManager().getSymbolLibByLibId(t.libID);null!==e&&e.cacheSymbolData(t)},_isAvoidRegion:function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];if(0!==e.length){var o=null;if(0===e[0].avoidRegions.length)return e[0];if(o=new s.AvoidRegionControl(e[0]),this._map.addControl(o),!0){for(var n=0,l=e[0].avoidRegions.length;n<l;n++)this.removeFeatures(e[0].avoidRegions[n]);return this._map.removeControl(o),!1,e[0]}}},_selectFeature:function(t,e,i){if(null==t)return null;if(void 0!==t.style&&null!==t.style&&"none"===t.style.display)return null;if(!(t instanceof r.PlottingObject))return null;if(t instanceof o.GroupObject){for(var n=0;n<t.components.length;n++)if(this._selectFeature(t.components[n],e,i))return t.isSelected?t.components[n]:t}else if(t instanceof u.Route){for(var l=0;l<t.components.length;l++)if(this._selectFeature(t.components[l],e,i))return t.components[l]===SuperMap.Plot.SymbolType.ROUTENODE||t.components[l]===SuperMap.Plot.SymbolType.LITERATESIGN?t.components[l]:t}else if(t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT){for(var a=0;a<t.components.length;a++)if(this._selectFeature(e,i,t.components[a]))return t}else if(t.symbolType===SuperMap.Plot.SymbolType.ROUTENODE||t.symbolType===SuperMap.Plot.SymbolType.LITERATESIGN){var s=t.getBounds();if(s&&s.isValid()&&e.lng>=s.getWest()&&e.lng<=s.getEast()&&e.lat>=s.getSouth()&&e.lat<=s.getNorth())return t}else for(var p=this._map.latLngToLayerPoint(e),h=0,c=t.components.length;h<c;h++)if(t.components[h]._containsPoint&&t.components[h]._containsPoint(p))return t;return null}}),h=e.plottingLayer=function(t,e,i){return new p(t,e,i)};L.supermap.plotting.plottingLayer=h},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},n={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"};var l=e.PlottingObjectDrag=L.Handler.extend({statics:{DRAGGING_CLS:"leaflet-plottingObject-draggable"},initialize:function(t){this._plottingObject=t,this._startPoint=null,this._dragStartPoint=null,this._mapDraggingWasEnabled=!1},addHooks:function(){this._plottingObject.on("mousedown",this._onDragStart,this),this._plottingObject.options.className=this._plottingObject.options.className?this._plottingObject.options.className+" "+l.DRAGGING_CLS:l.DRAGGING_CLS,this._plottingObject._plottingObject&&L.DomUtil.addClass(this._plottingObject._plottingObject,l.DRAGGING_CLS)},removeHooks:function(){this._plottingObject.off("mousedown",this._onDragStart,this),this._plottingObject.options.className=this._plottingObject.options.className.replace(new RegExp("\\s+"+l.DRAGGING_CLS),""),this._plottingObject._plottingObject&&L.DomUtil.removeClass(this._plottingObject._plottingObject,l.DRAGGING_CLS)},moved:function(){return this._plottingObject._dragMoved},_onDragStart:function(t){var e=t.originalEvent._simulated?"touchstart":t.originalEvent.type;this._mapDraggingWasEnabled=!1,this._startPoint=t.latlng.clone(),this._dragStartPoint=t.latlng.clone(),L.DomEvent.stop(t.originalEvent),L.DomUtil.addClass(this._plottingObject._map._container,"leaflet-dragging"),L.DomEvent.on(document,n[e],this._onDrag,this).on(document,o[e],this._onDragEnd,this),this._plottingObject._map.dragging.enabled()&&(this._plottingObject._map.dragging.disable(),this._mapDraggingWasEnabled=!0),this._plottingObject._dragMoved=!1},_onDrag:function(t){L.DomEvent.stop(t);var e=t.touches&&t.touches.length>=1?t.touches[0]:t,i=this._plottingObject._map.mouseEventToLatLng(e);if("touchmove"===t.type&&!this._plottingObject._dragMoved){var o=this._plottingObject._map.latLngToLayerPoint(this._dragStartPoint),n=this._plottingObject._map.mouseEventToContainerPoint(e);if(o.distanceTo(n)<=this._plottingObject._map.options.tapTolerance)return}var l=i.lat,a=i.lng,s=l-this._startPoint.lat,r=a-this._startPoint.lng;(s||r)&&(this._plottingObject._dragMoved||(this._plottingObject._dragMoved=!0,this._plottingObject.fire("dragstart",t)),this._startPoint.lat=l,this._startPoint.lng=a,this._plottingObject.fire("predrag",t),t.dLat=s,t.dLng=r,this._plottingObject.fire("drag",t))},_onDragEnd:function(t){var e,i,o,n,l=this._plottingObject._map.mouseEventToLatLng(t),a=this.moved();if(a&&L.DomEvent.stop(t),L.DomEvent.off(document,"mousemove touchmove",this._onDrag,this),L.DomEvent.off(document,"mouseup touchend",this._onDragEnd,this),a){this._plottingObject.fire("dragend",{distance:(e=this._dragStartPoint,i=l,o=e.x-i.x,n=e.y-i.y,Math.sqrt(o*o+n*n))});var s=this._plottingObject._containsPoint;this._plottingObject._containsPoint=L.Util.falseFn,L.Util.requestAnimFrame(function(){L.DomEvent.skipped({type:"click"}),this._plottingObject._containsPoint=s},this)}this._startPoint=null,this._dragStartPoint=null,this._plottingObject._dragMoved=!1,this._mapDraggingWasEnabled&&(a&&L.DomEvent.fakeStop({type:"click"}),this._plottingObject._map.dragging.enable()),a&&(this._plottingObject.moveend=!0)}})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PlotControl=void 0,i(0);e.PlotControl=L.Evented.extend({options:{position:"topright"},initialize:function(t){L.setOptions(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),o=t._controlCorners[i];return L.DomUtil.addClass(e,"leaflet-control"),-1!==i.indexOf("bottom")?o.insertBefore(e,o.firstChild):o.appendChild(e),this},remove:function(){return this._map?(L.DomUtil.remove(this._container),this.onRemove&&this.onRemove(this._map),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}});L.Map.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=L.DomUtil.create("div",e+"control-container",this._container);function o(o,n){var l=e+o+" "+e+n;t[o+n]=L.DomUtil.create("div",l,i)}o("top","left"),o("top","right"),o("bottom","left"),o("bottom","right")},_clearControlPos:function(){L.DomUtil.remove(this._controlContainer)}})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AvoidRegionControl=void 0,i(0);var o=i(8);e.AvoidRegionControl=L.Control.extend({_mouseTolerance:10,_editMarkers:null,_editMode:SuperMap.Plot.EditMode.EDITCIRCUMRECTANGLE,feature:null,_temportary:null,options:{avoidRegionStyle:{fill:!1,color:"#0000ff",dashArray:"2, 2",opacity:1,weight:1},draggable:!0,avoidIcon:L.divIcon({className:"leaflet-supermap-plot-avoid-icon-path",iconSize:[8,8]}),icon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"})},initialize:function(t,e){if(L.version<"0.7")throw new Error("Leaflet.draw 0.2.3+ requires Leaflet 0.7.0+. Download latest from https://github.com/Leaflet/Leaflet/");L.Control.prototype.initialize.call(this,e),L.setOptions(this,e),this._temportary=new o.PlottingLayerBase("avoidRegionControl-temportary",this.serverUrl),this._editMarkers={},this.feature=t},onAdd:function(t){if(this.feature&&!this.feature.getLocked())return this.controlDiv=L.DomUtil.create("div","supermap-iclient-avoidregion"),this._map=t,this._markers=[],this._latlngs=[],this._markerGroup=new L.LayerGroup,this._map.addLayer(this._markerGroup),this._map.addLayer(this._temportary),this._map.on("mousemove",this._onMouseMove,this).on("click",this._onMapClick,this),this._showAvoidRegions(),this.controlDiv},onRemove:function(){this._hideAvoidRegions(),this._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers,delete this._latlngs,this.plotting&&(this._temportary.removeFeatures(this.plotting),delete this.plotting,this.plotting=null),this._map.removeLayer(this._temportary),delete this._temportary,this._map.off("mousemove",this._onMouseMove,this).off("click",this._onMapClick,this),this._map=null},_showAvoidRegions:function(){for(var t=0;t<this.feature.avoidRegions.length;t++){var e=this.feature.avoidRegions[t];this._temportary.addFeatures(e),this._selectFeature(e)}},_hideAvoidRegions:function(){for(var t=0;t<this.feature.avoidRegions.length;t++){var e=this.feature.avoidRegions[t];this._unselectFeature(e),this._temportary.removeFeatures(e)}},_selectFeature:function(t){t.symbolType===SuperMap.Plot.SymbolType.AVOIDREGION&&(this._collectEditMarkers(t),t.on("mousemove",this._onMouseMove,this).on("mouseout",this._onMouseOut,this).on("dragstart",this._onDragStart,this).on("drag",this._onDrag,this).on("dragend",this._onDragEnd,this),t.dragging.enable())},_unselectFeature:function(t){t.symbolType===SuperMap.Plot.SymbolType.AVOIDREGION&&(this._removeMarkers(t),t.off("mousemove",this._onMouseMove,this).off("mouseout",this._onMouseOut,this).off("dragstart",this._onDragStart,this).off("drag",this._onDrag,this).off("dragend",this._onDragEnd,this),t.dragging.disable())},_onMouseOut:function(t){t.target.layer._renderer._container.style.cursor=""},_onMapClick:function(t){if(this.moveend)this.moveend=!1;else{var e=this._map.mouseEventToLayerPoint(t.originalEvent),i=this._map.layerPointToLatLng(e);this.plotting?this._addVertex(i):(this.plotting=L.supermap.plotting.avoidRegion(0,SuperMap.Plot.SymbolType.AVOIDREGION,[],{style:this.options.avoidRegionStyle}),this._temportary.addFeatures(this.plotting),this._addVertex(i)),L.DomEvent.preventDefault(t.originalEvent)}},_collectEditMarkers:function(t){var e=[];if(t.symbolType===SuperMap.Plot.SymbolType.AVOIDREGION)for(var i in t.getLatLngs()){var o=new L.LatLng(t.getLatLngs()[i].lat,t.getLatLngs()[i].lng),n=L.supermap.plotting.editMarker(o,{icon:this.options.avoidIcon,nHandle:-1,tag:i});this._addToMapAndBindMarker(n),e.push(n),n.owner=t}this._editMarkers[t.uuid]=e},_removeMarkers:function(t){var e=this._editMarkers[t.uuid];for(var i in e)this._unbindMarkerEvents(e[i]),this._map.removeLayer(e[i]);delete this._editMarkers[t.uuid]},_unbindMarkerEvents:function(t){t.off("mousemove",this._moveMove,this),t.off("mouseout",this._moveOut,this),t.off("click",this._removePoint,this),t.off("drag",this.redraw,this),t.dragging.disable()},_addToMapAndBindMarker:function(t){t.addTo(this._map),t.on("mousemove",this._moveMove,this),t.on("mouseout",this._moveOut,this),t.on("click",this._removePoint,this),t.on("drag",this._dragPoint,this),t.dragging.enable()},_removePoint:function(t){if(this._editMode===SuperMap.Plot.EditMode.ADDCONTROLPOINT&&t.target.owner.isSelected){var e=this._editMarkers[t.target.owner.uuid],i=e.indexOf(t.target);this._map.removeLayer(e[i]),e.splice(i,1),t.target.owner.latLngs.splice(i,1),t.target.owner.redraw()}},_dragPoint:function(t){var e=t.target.owner;if(e.symbolType===SuperMap.Plot.SymbolType.AVOIDREGION){var i=this._editMarkers[e.uuid],o=SuperMap.Util.indexOf(i,t.target);e.getLatLngs()[o]=t.latlng,e._modifyPoint(),this.moveend=!0}},_moveMove:function(t){t.target._icon.style.cursor="pointer"},_moveOut:function(t){t.target._icon.style.cursor=""},_addVertex:function(t){var e=new L.Marker(t,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset});this._markerGroup.addLayer(e),this._markers.push(e),this._latlngs.push(t),this.plotting.setLatLngs(this._latlngs);var i=this._markers.length;i>1&&this._markers[i-1].on("click",this._finishShape,this),i>2&&this._markers[i-2].off("click",this._finishShape,this)},_finishShape:function(){this._markers.length>1&&this._markers[this._markers.length-1].off("click",this._finishShape,this);var t=this.plotting.clone();this._markerGroup.clearLayers(),this._markers=[],this._latlngs=[],this._temportary.removeFeatures(this.plotting),delete this.plotting,this.plotting=null,this._temportary.addFeatures(t),this.feature.addAvoidRegion(t),this._selectFeature(t);var e=new SuperMap.Plot.Transaction;e.transType=SuperMap.Plot.TransactionType.EDIT;var i=new SuperMap.Plot.TransactionInfo;i.layerId=this.feature.layer._leaflet_id,i.uuid=this.feature.uuid,i.functionName="addAvoidRegion",i.undoParams=[t],i.redoParams=[t],e.transInfos.push(i),L.supermap.plotting.getControl().getTransManager().add(e),t.on("contextmenu",function(){})},_onDragStart:function(t){var e=t.target,i=this._editMarkers[e.uuid];for(var o in i)i[o].setOpacity(0)},_onDrag:function(t){t.target.move(t.dLat,t.dLng)},_onDragEnd:function(t){var e=t.target;this._collectEditMarkers(e),this.moveend=!0},_onMouseMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent),i=this._map.layerPointToLatLng(e);if(this.plotting){var o=L.Util.cloneLatLngs(this._latlngs);0===o.length?o.push(i):o[o.length-1].lat===i.lat&&o[o.length-1].lng===i.lng||o.push(i),this.plotting.setLatLngs(o)}L.DomEvent.preventDefault(t.originalEvent)}})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.flagGroup=e.FlagGroup=void 0,i(0);var o=i(6),n=e.FlagGroup=o.GroupObject.extend({ratio:null,scalePoints:null,scaleValues:null,initialize:function(t,e,i,n){o.GroupObject.prototype.initialize.call(this,t,e,i,n),this.libID=0,this.code=SuperMap.Plot.SymbolType.FLAGGROUP,this.symbolType=SuperMap.Plot.SymbolType.FLAGGROUP,this.symbolName="多旗",n.subObjects&&(this.subObjects=n.subObjects),null===this.ratio&&(this.ratio=.8)},destroy:function(){o.GroupObject.prototype.destroy.call(this),this.ratio=[]},setRotate:function(t){isNaN(t)||(this.dRotate+=t,this.redraw())},redraw:function(){if("none"!==this.style.display){if(L.Util.isArray(this.ratio)||(this.ratio=[this.ratio]),0===this.components.length&&0!==this.subObjects.length)for(var t=0,e=this.subObjects.length;t<e;t++)this.layer&&this.layer.removeFeatures(this.subObjects[t]),this.subObjects[t].enableEdit=!0,this.subObjects[t].ownerGroup=this,this._addComponents(this.subObjects[t]);if(0!==this.components.length){this.scalePoints=[],this.components[0].setRotate(this.dRotate);var i=L.latLng(this.components[0].getLatLngs()[0].lat,this.components[0].getLatLngs()[0].lng),o=this._map.latLngToLayerPoint(i);!0===this.components[0].positionOffset&&(o.x+=this.components[0].positionOffsetX,o.y+=this.components[0].positionOffsetY),i=this._map.layerPointToLatLng(o),this.anchorPoint=i.clone();var n=new L.latLng(i);n.tag=0,this.scalePoints.push(n);for(var l=1,a=this.components.length;l<a;l++){for(;this.ratio.length<l;)this.ratio.push(this.ratio[this.ratio.length-1]);var s=this.ratio[l-1],r=this.components[l-1],u=this._calculateFlagTop(r),p=L.Util.cloneLatLngs(r.getLatLngs())[0],h=this._map.latLngToLayerPoint(p);!0===r.positionOffset&&(h.x+=r.positionOffsetX,h.y+=r.positionOffsetY),p=this._map.layerPointToLatLng(h),u=this._pointRotate(this.dRotate,p,u);var c=this._findPointOnLineByRatio(s,p,u);this.components[l].dRotate=this.dRotate,this.components[l].setLatLngs([c]);var y=new L.latLng(c);y.tag=l,this.scalePoints.push(y)}}}else this._clearComponents()},_pointRotate:function(t,e,i){t*=Math.PI/180;var o=Math.sqrt(Math.pow(e.lng-i.lng,2)+Math.pow(e.lat-i.lat,2)),n=t+Math.atan2(i.lat-e.lat,i.lng-e.lng);return i.lng=e.lng+o*Math.cos(n),i.lat=e.lat+o*Math.sin(n),i},_findPointOnLineByRatio:function(t,e,i){var o=new L.latLng(0,0);return o.lng=e.lng+(i.lng-e.lng)*t,o.lat=e.lat+(i.lat-e.lat)*t,o},_calculateFlagTop:function(t){var e=t.dRotate;t.dRotate=0,0===t.dRotate&&(t.isNotRedrawText=!0,t.redraw(),delete t.isNotRedrawText);var i=t.getBounds();return t.dRotate=e,t.redraw(),t.initialScale.x>=0?t.negativeImage?new L.latLng(i.getNorth(),i.getEast()):new L.latLng(i.getNorth(),i.getWest()):t.negativeImage?new L.latLng(i.getSouth(),i.getWest()):new L.latLng(i.getSouth(),i.getEast())},_projectPoint:function(t,e,i){if(e===i)return e;var o=new L.latLng(0,0),n=i.lng-e.lng,l=e.lat-i.lat,a=n*n,s=l*l,r=n*l,u=n*n+l*l;return o.lng=(r*(e.lat-t.lat)+e.lng*s+t.lng*a)/u,o.lat=(r*(e.lng-t.lng)+e.lat*a+t.lat*s)/u,o},_modifyPoint:function(t,e){if(0===t)this.subObjects[0].setLatLngs([e]);else{var i=this.subObjects[t-1].latLngs[0],o=this._calculateFlagTop(this.subObjects[t-1]);o=this._pointRotate(this.dRotate,this.subObjects[0].latLngs[0],o);var n=Math.sqrt(Math.pow(i.lng-o.lng,2)+Math.pow(i.lat-o.lat,2)),l=this._projectPoint(e,i,o),a=Math.sqrt(Math.pow(i.lng-l.lng,2)+Math.pow(i.lat-l.lat,2));this.ratio[t-1]=a/n}this.redraw()},_reView:function(){for(var t in this.components)this.components[t].scaleByMap=this.scaleByMap,this.components[t]._reView();this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)},_parseSymbolData:function(){o.GroupObject.prototype._parseSymbolData.call(this),this.symbolData&&(this.ratio=this.symbolData.ratio)},_setSymbolData:function(){o.GroupObject.prototype._setSymbolData.call(this),this.symbolData&&(this.symbolData.ratio=this.ratio)}}),l=e.flagGroup=function(t,e,i,o){return new n(t,e,i,o)};L.supermap.plotting.flagGroup=l,L.supermap.plotting.FlagGroup=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.geoRouteNode=e.GeoRouteNode=void 0,i(0);var o=i(1),n=i(15),l=e.GeoRouteNode=o.GraphicObject.extend({route:null,routeNode:null,_isFirstNode:function(){for(var t=0;t<this.route.routeNodes.length;t++)for(var e=0;e<this.route.routeNodes[t].towardNodes.length;e++)if(this.route.routeNodes[t].towardNodes[e].routeNodeId===this.routeNode.id)return!1;return!0},_isLastNode:function(){return 0===this.routeNode.towardNodes.length},setType:function(t){this.routeNode.type=t,this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)},setName:function(t){this.routeNode.name=t,this.redraw()},setPosition:function(t,e){this.routeNode.y=this.latLngs[0].lat=t,this.routeNode.x=this.latLngs[0].lng=e;for(var i=0;i<this.route.routeNodes.length;i++)this.route.routeNodes[i].routeNodeId===this.routeNode.id&&(this.route.routeNodes[i].x=this.routeNode.x,this.route.routeNodes[i].y=this.routeNode.y);if(0!==this.route.arrRoutePts.length){if(this.route.arrRoutePts=[],this.route.redraw(),this.route.highlightFlag){var o=SuperMap.Util.cloneObject(this.route.highlightStyle);this.route.highlightStyle&&SuperMap.Util.copyAttributes(o,this.route.highlightStyle),this.route.highlight(o)}}else{for(var l=this.route._getFeatureStartWith(this.routeNode),a=0;a<l.length;a++)l[a]instanceof n.LiterateSign||(l[a].latLngs[0]=L.latLng(t,e)),l[a].redraw();for(var s=this.route._getFeatureEndWith(this.routeNode),r=0;r<s.length;r++)s[r]instanceof n.LiterateSign||(s[r].latLngs[1]=L.latLng(t,e)),s[r].redraw();this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)}},setRotate:function(t){this.routeNode.type===SuperMap.Plot.RouteNodeType.STANDBY&&this.routeNode.rotate!==t&&(this.routeNode.rotate=t,this.redraw())},getRotate:function(){return this.routeNode.rotate},initialize:function(t,e,i,n){o.GraphicObject.prototype.initialize.call(this,t,e,i,n),this.symbolName=SuperMap.Plot.RouteNodePrimitives.getRouteNodeNameByType(this.routeNode.type),this.symbolType=SuperMap.Plot.SymbolType.ROUTENODE,this.anchorPoint=L.latLng(0,0)},destroy:function(){this.route=null,this.routeNode=null,o.GraphicObject.prototype.destroy.call(this)},_calculateParts:function(){if(0===this.getLatLngs().length?this.latLngs=[L.latLng(this.routeNode.y,this.routeNode.x)]:(this.latLngs[0].lat=this.routeNode.y,this.latLngs[0].lng=this.routeNode.x),this.latLngs.length>=this.minEditPts){if(this.routeNode.type===SuperMap.Plot.RouteNodeType.STANDBY){var t=SuperMap.Plot.RouteNodePrimitives.getRouteNodeCells(this.routeNode.type,!1,this.routeNode.rotate);this._transformSymbolCellsToGeometrys(t);var e=SuperMap.Plot.RouteNodePrimitives.getRouteNodeCells(this.routeNode.type,!0);this._transformSymbolCellsToGeometrys(e)}else{var i=SuperMap.Plot.RouteNodePrimitives.getRouteNodeCells(this.routeNode.type);this._transformSymbolCellsToGeometrys(i)}if(this.routeNode.style=this.style,null!==this.routeNode.name&&""!==this.routeNode.name){var o=this.getBounds(),n=L.latLng(o.getNorth(),o.getEast()),l=this.routeNode.style;l.labelAlign="lb",this._createAndDrawLayer(SuperMap.Plot.SymbolType.TEXTSYMBOL,[n],l,this.routeNode.name).isNameLayer=!0}}},_transformSymbolCellsToGeometrys:function(t){for(var e=this._map.latLngToLayerPoint(this.latLngs[0]),i=0;i<t.length;i++){var o=t[i];o.type===SuperMap.Plot.SymbolType.TEXTSYMBOL&&(o.style.fontSize=this.dScale*o.style.fontSize,o.style.labelRotation+=-this.dRotate);for(var n=0;n<o.positionPoints.length;n++){o.positionPoints[n].x=o.positionPoints[n].x*this.dScale,o.positionPoints[n].y=o.positionPoints[n].y*this.dScale;var l=this.dRotate*(Math.PI/180);SuperMap.Plot.PlottingUtil.rotateAngle({x:this.anchorPoint.lng,y:this.anchorPoint.lat},l,o.positionPoints[n]),o.positionPoints[n]=this._transitionPoint(o.positionPoints[n],e)}o.positionPoints=L.Util.latLngsToSuperMapPoints(o.positionPoints)}this._transSymbolCellsToLayers(t)},_transitionPoint:function(t,e){var i=e.x+t.x*(96/254),o=e.y-t.y*(96/254);return this._map.layerPointToLatLng(L.point(i,o))},move:function(t,e){this.routeNode.x+=e,this.routeNode.y+=t,this.setPosition(this.routeNode.y,this.routeNode.x)},getBounds:function(){var t=new L.LatLngBounds;for(var e in this.components){var i=this.components[e];i.isNameLayer||t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t},_reView:function(){this.fromZoom!==this._map.getZoom()&&(this.scaleByMap&&!1!==this.scaleByMap?(this.dScale*=this._map.getZoomScale(this._map.getZoom(),this.fromZoom),this.dScale>5?this.dScale=5:this.dScale<1&&(this.dScale=1),this.redraw()):this.redraw(),this.fromZoom=this._map.getZoom(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues))}}),a=e.geoRouteNode=function(t,e,i,o){return new l(t,e,i,o)};L.supermap.plotting.routeNode=a,L.supermap.plotting.RouteNode=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.literateSign=e.LiterateSign=void 0,i(0);var o=i(1),n=e.LiterateSign=o.GraphicObject.extend({route:null,towardNode:null,startRouteNode:null,textAnchor:null,space:null,inner:null,setPosition:function(t){this.textPosition=t,this._calculateOffset()},initialize:function(t,e,i,n){this.symbolName="标牌文字",this.symbolType=SuperMap.Plot.SymbolType.LITERATESIGN,o.GraphicObject.prototype.initialize.call(this,t,e,i,n)},destroy:function(){this.space=null,this.inner=null,this.textAnchor=null,o.GraphicObject.prototype.destroy.call(this)},_calculateParts:function(){if(null!==this.startRouteNode&&null!==this.towardNode&&null!==this.towardNode.textContent&&0!==this.towardNode.textContent.length){for(var t=this.route._getNodeByUuid(this.towardNode.routeNodeId),e=new SuperMap.Geometry.Point(this.startRouteNode.x,this.startRouteNode.y),i=new SuperMap.Geometry.Point(t.x,t.y),o=L.latLng((e.y+i.y)/2,(e.x+i.x)/2),n=SuperMap.Plot.PlottingUtil.getTextCount(this.towardNode.textContent[0]),l=1;l<this.towardNode.textContent.length;l++){var a=SuperMap.Plot.PlottingUtil.getTextCount(this.towardNode.textContent[l]);n<a&&(n=a)}if(null===this.towardNode.offsetX||null===this.towardNode.offsetY){var s=this.space+(this.dScale*this.style.fontSize+1)*n/2,r=this._innerOutlineDir(),u=this._map.layerPointToLatLng(L.point(0,0)),p=this._map.layerPointToLatLng(L.point(s,0)),h=new SuperMap.Geometry.Point(u.lng,u.lat),c=new SuperMap.Geometry.Point(p.lng,p.lat),y=r*SuperMap.Plot.PlottingUtil.distance(h,c);!0===this.inner&&(y=-y);var f=SuperMap.Plot.PlottingUtil.parallel([e,i],y);this.latLngs=[];var S=L.latLng((f[0].y+f[1].y)/2,(f[0].x+f[1].x)/2);this.latLngs.push(S);var g=this._map.latLngToLayerPoint(o),P=this._map.latLngToLayerPoint(S);this.towardNode.offsetX=P.x-g.x,this.towardNode.offsetY=P.y-g.y}else{var d=this._map.latLngToLayerPoint(o),m=L.point(d.x+this.towardNode.offsetX,d.y+this.towardNode.offsetY),b=this._map.layerPointToLatLng(m);0===this.latLngs.length?this.latLngs.push(b):this.latLngs[0]=b}var M=180*SuperMap.Plot.PlottingUtil.radian(e,i)/Math.PI,v=this._getTextContentsCells(n),T="";null!==this._map&&this._map instanceof L.Map&&(T=this._map.options.crs.code);for(var A=0;A<v.length;A++){var _=v[A];L.Util.isMercatorProjection(T)&&(_.positionPoints=L.Util.conventProjectPts(L.Util.superMapPointsToLatLngs(_.positionPoints))),_.positionPoints=SuperMap.Plot.Primitives.getSpatialData(_.type,_.positionPoints,_.angle);for(var O=[],x=0;x<_.positionPoints.length;x++)O.push(SuperMap.Plot.PlottingUtil.coordinateTrans(new SuperMap.Geometry.Point(this.latLngs[0].lng,this.latLngs[0].lat),_.positionPoints[x],M));var w=null;if(L.Util.isMercatorProjection(T)){for(var I=[],D=0,E=(w=L.Util.unConventProjectPts(O)).length;D<E;D++)I.push(SuperMap.Plot.PlottingUtil.coordinateTrans(new SuperMap.Geometry.Point(this.latLngs[0].lng,this.latLngs[0].lat),L.Util.latLngsToSuperMapPoints(w[D])[0],0));w=L.Util.superMapPointsToLatLngs(I)}else w=L.Util.superMapPointsToLatLngs(O);_.type===SuperMap.Plot.SymbolType.TEXTSYMBOL?0!==_.textContent.length&&(_.style.labelRotation=90-M,this._createAndDrawLayer(SuperMap.Plot.SymbolType.TEXTSYMBOL,w,_.style,_.textContent)):this._createAndDrawLayer(_.type,w,_.style,_.textContent)}}},_innerOutlineDir:function(){for(var t=[],e=0;e<this.route.routeNodes.length;e++)t.push(new SuperMap.Geometry.Point(this.route.routeNodes[e].x,this.route.routeNodes[e].y));return SuperMap.Plot.PlottingUtil.innerOutlineDir(t)},move:function(t,e){for(var i in this.components)L.Util.moveLatLngs(this.components[i].getLatLngs(),t,e),this.components[i].setLatLngs(this.components[i].getLatLngs());L.Util.moveLatLngs(this.getLatLngs(),t,e),this._calculateOffset()},_reView:function(){this.scaleByMap&&!1!==this.scaleByMap?(this.dScale*=this._map.getZoomScale(this._map.getZoom(),this.fromZoom),this.dScale>5?this.dScale=5:this.dScale<1&&(this.dScale=1),this.redraw()):this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues),this.fromZoom=this._map.getZoom()},_calculateOffset:function(){var t=this.route._getNodeByUuid(this.towardNode.routeNodeId),e=L.latLng((this.startRouteNode.y+t.y)/2,(this.startRouteNode.x+t.x)/2),i=this._map.latLngToLayerPoint(e),o=this._map.latLngToLayerPoint(this.latLngs[0]);this.towardNode.offsetX=o.x-i.x,this.towardNode.offsetY=o.y-i.y},_getTextContentsCells:function(t){var e=this.towardNode.textContent,i=this.dScale*this.style.fontSize+1,o=this._map.layerPointToLatLng(L.point(0,0)),n=this._map.layerPointToLatLng(L.point(i,0)),l=SuperMap.Plot.PlottingUtil.distance({x:o.lng,y:o.lat},{x:n.lng,y:n.lat}),a=l,s=l*t,r=e.length+2,u=[],p=r*a*.5,h=new Object;h.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,h.positionPoints=[],h.positionPoints.push(new SuperMap.Geometry.Point(p,0)),h.positionPoints.push(new SuperMap.Geometry.Point(-2*a+p,.5*s)),h.positionPoints.push(new SuperMap.Geometry.Point(-r*a+p,.5*s)),h.positionPoints.push(new SuperMap.Geometry.Point(-r*a+p,-.5*s)),h.positionPoints.push(new SuperMap.Geometry.Point(-2*a+p,-.5*s)),h.style={surroundLineFlag:!1,fontSize:12},u.push(h);for(var c=1;c<=e.length;c++){var y=new Object;y.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,y.positionPoints=[],y.positionPoints.push(new SuperMap.Geometry.Point(-(c+1)*a+p,.5*s)),y.positionPoints.push(new SuperMap.Geometry.Point(-(c+1)*a+p,-.5*s)),y.style={surroundLineFlag:!1,fontSize:12},u.push(y);var f=new Object;f.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,f.positionPoints=[],f.positionPoints.push(new SuperMap.Geometry.Point(-(.5+c+1)*a+p,0)),f.textContent=e[c-1],f.style={surroundLineFlag:!1,fontSize:12,fontFamily:"Microsoft YaHei"},f.style.labelAlign="cm",u.push(f)}var S=new SuperMap.Geometry.Point(-1.4*a+p,0),g=new Object;g.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,g.positionPoints=[],g.positionPoints.push(S),g.textContent=this.towardNode.index.toString(),g.style={surroundLineFlag:!1,fontSize:12,fontSizeLimit:!0,fontFamily:"Microsoft YaHei"},g.style.labelAlign="cm",u.push(g);var P=new Object;return P.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,P.positionPoints=[],P.positionPoints.push(S),P.positionPoints.push(new SuperMap.Geometry.Point(S.x,.4*a)),P.style={surroundLineFlag:!1,fontSize:12},u.push(P),u}}),l=e.literateSign=function(t,e,i,o){return new n(t,e,i,o)};L.supermap.plotting.literateSign=l,L.supermap.plotting.LiterateSign=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PointImage=void 0,i(0);var o=e.PointImage=L.Path.extend({options:{externalGraphic:"",graphicWidth:0,graphicHeight:0,graphicOpacity:1,graphicXOffset:void 0,graphicYOffset:void 0,rotation:0,graphicTitle:"",interactive:!0},_imageNode:null,initialize:function(t,e){L.setOptions(this,e),this._latlng=L.latLng(t[0])},onRemove:function(){this._imageNode&&this._imageNode.parentNode&&(this._renderer._rootGroup.removeChild(this._imageNode),delete this._imageNode,this._imageNode=null),this._imageNode&&(delete this._imageNode,this._imageNode=null),L.Path.prototype.onRemove.call(this)},setLatLngs:function(t){return this._latlng=L.latLng(t[0]),this.redraw(),this.fire("move",{latlng:this._latlng})},getLatLngs:function(){return[this._latlng]},getBounds:function(){return this._updateBounds()},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},getPxBounds:function(){var t=void 0!=this.options.graphicXOffset?this.options.graphicXOffset:-.5*this.options.graphicWidth,e=void 0!=this.options.graphicYOffset?this.options.graphicYOffset:-.5*this.options.graphicHeight,i=this._point.x+t,o=this._point.y+e,n=i+this.options.graphicWidth,l=o+this.options.graphicHeight,a=new L.Bounds;if(this.options.rotation&&0!==this.options.rotation){var s=[];s.push(L.point(i,o)),s.push(L.point(i,l)),s.push(L.point(n,o)),s.push(L.point(n,l));for(var r=this.options.rotation*(Math.PI/180),u=0;u<s.length;u++)SuperMap.Plot.PlottingUtil.rotateAngle(this._point,r,s[u]),a.extend(s[u])}else a=L.bounds(L.point(i,o),L.point(n,l));return a},_updateBounds:function(){this._pxBounds=this.getPxBounds();var t=this._map.layerPointToLatLng(this._pxBounds.min),e=this._map.layerPointToLatLng(this._pxBounds.max);this._bounds=L.latLngBounds(t,e)},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateImage(this)},_empty:function(){return this.options.externalGraphic&&!this._renderer._bounds.intersects(this._pxBounds)}});L.supermap.plotting.pointImage=function(t,e){return new o(t,e)},L.supermap.plotting.PointImage=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.symbolLib=e.SymbolLib=void 0,i(0);var o=e.SymbolLib=L.Evented.extend({url:null,libID:null,symbolLibData:null,cachedSymbolList:null,needCacheList:null,symbolNames:null,initialize:function(t){this.cachedSymbolList={},this.needCacheList=[],t&&SuperMap.Util.extend(this,t),t&&t.url&&t.libID?(this.url=t.url,this.libID=t.libID):t&&t.symbolLibData&&(this.symbolLibData=t.symbolLibData,this.libID=this.symbolLibData.libID,this.initNeedCacheList())},destroy:function(){this.url=null,this.libID=null,this.symbolLibData=null},initializeAsync:function(){var t=new SuperMap.GetLibInfoParameter;t.libID=this.libID,L.supermap.symbolLibService(this.url).getLibInfo(t,function(t){t.result.succeed?(this.symbolLibData=t.result,this.libID=this.symbolLibData.libID,this.initNeedCacheList(),this.fire(SuperMap.Plot.Event.initializecompleted,{success:!0})):(this.libID=-1,this.fire(SuperMap.Plot.Event.initializecompleted,{success:!1}))},this)},getSymbolLibName:function(){return null===this.symbolLibData?null:this.symbolLibData.symbolLibName},getSymbolName:function(t){return null===this.symbolLibData?"":(null===this.symbolNames&&(this.symbolNames={},this.getSymbolNameFromList(this.symbolLibData.rootSymbolLibNode)),this.symbolNames[t])},getSymbolNameFromList:function(t){for(var e=0;e<t.childNodeCount;e++)"SYMBOL_GROUP"===t.childNodes[e].symbolNodeType?this.getSymbolNameFromList(t.childNodes[e]):"SYMBOL_NODE"===t.childNodes[e].symbolNodeType&&(this.symbolNames[t.childNodes[e].symbolCode]=t.childNodes[e].symbolName);return""},initNeedCacheList:function(){if(null===this.symbolLibData)return!1;this.initNeedCacheListForNode(this.symbolLibData.rootSymbolLibNode)},initNeedCacheListForNode:function(t){for(var e=0;e<t.childNodeCount;e++)"SYMBOL_GROUP"===t.childNodes[e].symbolNodeType?this.initNeedCacheListForNode(t.childNodes[e]):"SYMBOL_NODE"===t.childNodes[e].symbolNodeType&&"SYMBOL_DOT"===t.childNodes[e].symbolType&&this.needCacheList.push(t.childNodes[e].symbolCode)},cachedSymbols:function(){if(0!==this.needCacheList.length){for(var t=this.needCacheList.slice(),e=0,i=t.length;e<i;e++){var o,n,l=Math.floor(1e3*Math.random()),a=(new Date).getTime(),s=new SuperMap.GetSymbolInfoParameters;s.libID=this.libID,s.code=t[e],s.dynamicToken=l,L.supermap.symbolInfoService(this.url).getSymbolInfo(s,function(t){if(t.result.succeed){if(t.result.dynamicToken&&(n=parseInt(t.result.dynamicToken,16),o=n-l),o&&o-a<6e4)delete t.result.dynamicToken,this.cacheSymbolData(t.result);else{var e=SuperMap.Util.indexOf(this.needCacheList,t.result.code);-1!==e&&this.needCacheList.splice(e,1)}0===this.needCacheList.length&&this.fire(SuperMap.Plot.Event.cachecompleted,{success:!0})}},this)}this.cachedSymbolOK=!0}else this.fire(SuperMap.Plot.Event.cachecompleted,{success:!0})},getSymbolLibID:function(){return this.libID},getSymbolData:function(t){var e=null;return this.cachedSymbolList.hasOwnProperty(t)&&(e=SuperMap.Plot.PlottingUtil.cloneObject(this.cachedSymbolList[t])),e},cacheSymbolData:function(t){var e=SuperMap.Util.indexOf(this.needCacheList,t.code);-1!==e&&(this.cachedSymbolList[t.code]=SuperMap.Plot.PlottingUtil.cloneObject(t),this.needCacheList.splice(e,1))},getSymbolCount:function(){return null===this.symbolLibData?null:this.symbolLibData.symbolCount},querySymbolbyKey:function(t){return this.querySymbol(t,this.getRootSymbolInfo(),this.getRootSymbolIconUrl())},getClassFication:function(){return null===this.symbolLibData?null:this.symbolLibData.classFication},getCreateTime:function(){return null===this.symbolLibData?null:this.symbolLibData.createTime},getCreator:function(){return null===this.symbolLibData?null:this.symbolLibData.creator},getModifyTime:function(){return null===this.symbolLibData?null:this.symbolLibData.modifyTime},getRootSymbolIconUrl:function(){return null===this.symbolLibData?null:this.symbolLibData.rootSymbolIconUrl},getVersion:function(){return null===this.symbolLibData?null:this.symbolLibData.version},getRootSymbolInfo:function(){return null===this.symbolLibData?null:this.symbolLibData.rootSymbolLibNode},querySymbol:function(t,e,i){var o=[];if("SYMBOL_GROUP"===e.symbolNodeType)for(var n=0;n<e.childNodes.length;n++)for(var l=i+"/"+e.symbolName,a=this.querySymbol(t,e.childNodes[n],l),s=0;s<a.length;s++)o.push(a[s]);else t===e.symbolCode.toString()?(e.icon=i+"/"+e.symbolCode+".png",o.push(e)):-1!==e.symbolName.indexOf(t)&&(e.icon=i+"/"+e.symbolCode+".png",o.push(e));return o}}),n=e.symbolLib=function(t){return new o(t)};L.supermap.plotting.symbolLib=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.symbolLibManager=e.SymbolLibManager=void 0,i(0);var o=i(17),n=e.SymbolLibManager=L.Evented.extend({url:null,libIDs:null,symbolLibs:null,symbolLibJsons:null,isInializeOK:!1,initialize:function(t,e){n.prototype.url=t,null===this.libIDs&&(n.prototype.libIDs=[]),null===this.symbolLibs&&(n.prototype.symbolLibs=[]),null===this.symbolLibJsons&&(n.prototype.symbolLibJsons=[]),e&&SuperMap.Util.extend(this,e)},destroy:function(){n.prototype.url=null,n.prototype.libIDs=null,n.prototype.symbolLibs=null,n.prototype.symbolLibJsons=null,n.prototype.isInializeOK=!1,n.prototype.isInitialize=!1},initializeAsync:function(){this.isInitializeOK()?this.fire(SuperMap.Plot.Event.initializecompleted,{success:!0,libIDs:this.libIDs}):this.isInitialize||(n.prototype.isInitialize=!0,L.supermap.symbolLibService(this.url).getLibIDs(function(t){if(t.result.succeed){if(null!==this.libIDs&&0!==this.libIDs.length)for(var e=0;e<this.libIDs.length;e++){for(var i=!1,o=0;o<t.result.length;o++)if(n.prototype.libIDs[e]===t.result[o]){i=!0;break}!1===i&&n.prototype.libIDs.slice(e,1)}else n.prototype.libIDs=t.result;this.initializeSymbolLib()}else n.prototype.libIDs=[]},this))},initializeSymbolLib:function(){for(var t=this.libIDs.slice(),e=0,i=this.libIDs.length;e<i;e++){var l=new SuperMap.GetLibInfoParameter;l.libID=this.libIDs[e],L.supermap.symbolLibService(this.url).getLibInfo(l,function(e){if(e.result.succeed){var i=SuperMap.Util.indexOf(t,e.result.libID);-1!==i&&(t.splice(i,1),n.prototype.symbolLibJsons.push(e.result),n.prototype.symbolLibs.push(new o.SymbolLib({symbolLibData:e.result})),this.symbolLibs[this.symbolLibs.length-1].url=this.url),0===t.length&&(n.prototype.isInializeOK=!0,this.fire(SuperMap.Plot.Event.initializecompleted,{success:!0,libIDs:this.libIDs}))}},this)}},isInitializeOK:function(){return this.isInializeOK},getSymbolLibNumber:function(){return this.libIDs.length},getSymbolLibID:function(t){return t>=this.libIDs.length?-1:this.libIDs[t]},getSymbolLibJSONInfo:function(t){return t>=this.libIDs.length?null:this.symbolLibJsons[t]},getSymbolLibByIndex:function(t){return t>=this.libIDs.length?null:this.symbolLibs[t]},getSymbolLibByLibId:function(t){for(var e=0;e<this.symbolLibs.length;e++)if(t===this.symbolLibs[e].libID)return this.symbolLibs[e];return null},cacheSymbolData:function(t){var e=t.libID,i=this.getSymbolLibByLibId(e);if(null===i)for(var n in i=new o.SymbolLib({libID:e}),this.symbolLibs.push(i),t)n!==e&&(i.cachedSymbolList[n]=SuperMap.Plot.PlottingUtil.cloneObject(t[n]))},cacheSymbolLib:function(t){var e=this.getSymbolLibByLibId(t);null!==e&&(e.on(SuperMap.Plot.Event.cachecompleted,function t(){this.fire(SuperMap.Plot.Event.cachecompleted,{success:!0}),e.off(SuperMap.Plot.Event.cachecompleted,t)},this),e.cachedSymbols())},getSymbolName:function(t,e){var i=this.getSymbolLibByLibId(t);return null===i?"":i.getSymbolName(e)},findSymbolByName:function(t){for(var e=[],i=0;i<this.libIDs.length;i++)for(var o=this.getSymbolLibByLibId(this.libIDs[i]).querySymbolbyKey(t),n=0;n<o.length;n++)e.push(o[n]);return e},findSymbolByCode:function(t){for(var e=[],i=0;i<this.libIDs.length;i++)for(var o=this.getSymbolLibByLibId(this.libIDs[i]).querySymbolbyKey(t.toString()),n=0;n<o.length;n++)e.push(o[n]);return e}}),l=e.symbolLibManager=function(t,e){return new n(t,e)};L.supermap.plotting.symbolLibManager=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sitDataManager=e.SitDataManager=void 0,i(0);var o=e.SitDataManager=L.Evented.extend({map:null,serverUrl:null,smlInfo:null,smlFileName:null,initialize:function(t,e,i){i&&SuperMap.Util.extend(this,i),t&&null!==t&&null===this.map&&(o.prototype.map=t),e&&null===this.serverUrl&&(o.prototype.serverUrl=e),null===this.smlInfo&&(o.prototype.smlInfo=new SuperMap.Plot.SMLInfoStruct),null===this.smlFileName&&(o.prototype.smlFileName="situationMap")},destroy:function(){o.prototype.map=null,o.prototype.smlInfo.destroy(),o.prototype.smlInfo=null,o.prototype.smlFileName=null,o.prototype.serverUrl=null},getSitDataLayers:function(){return this.map.getPlottingLayers()},openSmlData:function(t){if(this.smlInfo.fromJSON(t.smlInfo),t.mapInfo){var e=new SuperMap.Plot.MapInfoStruct;e.fromJSON(t.mapInfo),null!==e.zoom&&null!==e.centerX&&null!==e.centerY&&this.map.setView(L.latLng(e.centerY,e.centerX),e.zoom,{reset:!0})}var i,o=t.layerDatas;this.map.clearPlottingLayers();for(var n=0,l=o.length;n<l;n++)(i=o[n].useCanvas||o[n].useCanvas2?L.supermap.plotting.plottingLayer(o[n].layerName,this.serverUrl,{renderer:L.canvas()}):L.supermap.plotting.plottingLayer(o[n].layerName,this.serverUrl,{renderer:L.svg()})).spatialAnalystUrl=o[n].spatialAnalystUrl,this.map.addLayer(i),this._load(o[n],i),void 0!==o[n].isEditable&&null!==o[n].isEditable&&i.setEditable(o[n].isEditable),void 0!==o[n].isLocked&&null!==o[n].isLocked&&i.setLocked(o[n].isLocked),void 0!==o[n].visibility&&null!==o[n].visibility&&i.setVisibility(o[n].visibility)},addSmlData:function(t,e){this.smlInfo.fromJSON(t.smlInfo);for(var i=t.layerDatas,o=null,n=!1,l=0;l<i.length;l++)if(null!==i[l].layerName){var a=this.map.getLayersByName(i[l].layerName);if(0!==a.length?o=a[0]:e&&((o=L.supermap.plotting.plottingLayer(i[l].layerName,this.serverUrl)).spatialAnalystUrl=i[l].spatialAnalystUrl,this.map.addLayer(o)),t.mapInfo&&o&&!n){var s=new SuperMap.Plot.MapInfoStruct;s.fromJSON(t.mapInfo),null!==s.zoom&&null!==s.centerX&&null!==s.centerY&&this.map.setView(L.latLng(s.centerY,s.centerX),s.zoom,{reset:!0}),n=!0}null!==o&&this._load(i[l],o)}},addSmlDataToLayer:function(t,e){this.smlInfo.fromJSON(t.smlInfo);var i=t.layerDatas,o=null,n=this.map.getLayersByName(e);if(0!==n.length?o=n[0]:(o=L.supermap.plotting.plottingLayer(e,this.serverUrl),this.map.addLayer(o)),t.mapInfo&&o){var l=new SuperMap.Plot.MapInfoStruct;l.fromJSON(t.mapInfo),null!==l.zoom&&null!==l.centerX&&null!==l.centerY&&this.map.setView(L.latLng(l.centerY,l.centerX),l.zoom,{reset:!0})}for(var a=0;a<i.length;a++)this._load(i[a],o)},openSmlFile:function(t,e){var i=this.serverUrl+"smlInfos/",o=document.getElementById(t).value.split("\\"),n=o[o.length-1];i+=n;var l=this;""!==n&&$.ajaxFileUpload({url:i,secureuri:!1,fileElementId:t,dataType:"json",timeout:36e5,success:function(){l.openSmlFileOnServer(n,e)},error:function(){e({success:!1,message:"打开本地态势图文件失败"})}})},addSmlFile:function(t,e,i){var o=this.serverUrl+"smlInfos/",n=document.getElementById(t).value.split("\\"),l=n[n.length-1];o+=l;var a=this;""!==l&&$.ajaxFileUpload({url:o,secureuri:!1,fileElementId:t,dataType:"json",timeout:36e5,success:function(){a.addSmlFileOnServer(l,e,i)},error:function(){i({success:!1,message:"叠加本地态势图文件失败"})}})},uploadSmlFile:function(t,e){var i=this.serverUrl+"smlInfos/",o=document.getElementById(t).value.split("\\"),n=o[o.length-1];i+=n,""!==n&&$.ajaxFileUpload({url:i,secureuri:!1,fileElementId:t,dataType:"json",timeout:36e5,success:function(){e({success:!0,message:"上传态势图文件成功"})},error:function(){e({success:!1,message:"上传态势图文件失败"})}})},addSmlFileToLayer:function(t,e,i){var o=this.serverUrl+"smlInfos/",n=document.getElementById(t).value.split("\\"),l=n[n.length-1];o+=l;var a=this;""!==l&&$.ajaxFileUpload({url:o,secureuri:!1,fileElementId:t,dataType:"json",timeout:36e5,success:function(){a.addSmlFileToLayerOnServer(l,e,i)},error:function(){i({success:!1,message:"打开本地文件失败"})}})},addSmlFileOnServer:function(t,e,i){var o=new SuperMap.EditSmlFileParameters;o.method="GET",o.smlFileName=t,L.supermap.smlFileService(this.serverUrl).editSMLFile(o,function(t){if(t.result.succeed){var o=t.result;this.smlInfo.fromJSON(o.smlInfo);for(var n=o.layerDatas,l=null,a=!1,s=0;s<n.length;s++){var r=[];if(n[s].layerName&&(r=this.map.getLayersByName(n[s].layerName)),0!==r.length?l=r[0]:e&&((l=L.supermap.plotting.plottingLayer(n[s].layerName,this.serverUrl)).spatialAnalystUrl=n[s].spatialAnalystUrl,this.map.addLayer(l)),o.mapInfo&&l&&!a){var u=new SuperMap.Plot.MapInfoStruct;u.fromJSON(o.mapInfo),null!==u.zoom&&null!==u.centerX&&null!==u.centerY&&this.map.setView(L.latLng(u.centerY,u.centerX),u.zoom,{reset:!0}),a=!0}null!==l&&this._load(n[s],l)}null!==l&&"function"==typeof i?i({success:!0,smlFileName:this.smlFileName,sitDataLayers:this.map.getPlottingLayers()}):"function"==typeof i&&i({success:!1,message:"态势图文件不存在与当前态势图同名的图层"})}else"function"==typeof i&&i({success:!1,message:"从服务器上获取态势图文件失败"})},this)},addSmlFileToLayerOnServer:function(t,e,i){var o=new SuperMap.EditSmlFileParameters;o.method="GET",o.smlFileName=t,L.supermap.smlFileService(this.serverUrl).editSMLFile(o,function(t){if(t.result.succeed){var o=t.result;this.smlInfo.fromJSON(o.smlInfo);var n=o.layerDatas,l=null,a=this.map.getLayersByName(e);if(0!==a.length?l=a[0]:(l=L.supermap.plotting.plottingLayer(e,this.serverUrl),this.map.addLayer(l)),o.mapInfo&&l){var s=new SuperMap.Plot.MapInfoStruct;s.fromJSON(o.mapInfo),null!==s.zoom&&null!==s.centerX&&null!==s.centerY&&this.map.setView(L.latLng(s.centerY,s.centerX),s.zoom,{reset:!0})}for(var r=0;r<n.length;r++)this._load(n[r],l);"function"==typeof i&&i({success:!0,smlFileName:this.smlFileName,sitDataLayers:this.map.getPlottingLayers()})}else"function"==typeof i&&i({success:!1,message:"从服务器上获取态势图失败"})},this)},downloadSmlFileURL:function(t){return"smlFileDownload/"+t+".sml"},newSmlFile:function(){this.smlFileName="",this.smlInfo.destroy(),this.map.clearPlottingLayers()},saveSmlFile:function(t){var e=this.map.getPlottingLayers();this._save(this.smlFileName,e,!0,t)},saveAsSmlFile:function(t,e){var i=this.map.getPlottingLayers();this._save(t,i,!1,e)},getSMLInfo:function(t,e){var i=new SuperMap.EditSmlFileParameters;i.method="GET",i.smlFileName=t,L.supermap.smlFileService(this.serverUrl).editSMLFile(i,function(t){t.result.succeed&&"function"==typeof e?e({success:!0,smlInfo:t.result.smlInfo}):"function"==typeof e&&e({success:!1})},this)},getSMLInfos:function(t,e,i){var o=t*e,n=e,l=new SuperMap.GetSMLInfosParameters;l.start=o,l.count=n,L.supermap.smlFileService(this.serverUrl).getSMLInfos(l,function(t){t.result.succeed&&"function"==typeof i?i({success:!0,smlInfoList:t.result}):"function"==typeof i&&i({success:!1})},this)},_getCompletedInit:function(t,e){if(this.smlFileName=e,this.smlInfo.fromJSON(t.smlInfo),t.mapInfo){var i=new SuperMap.Plot.MapInfoStruct;i.fromJSON(t.mapInfo),null!==i.zoom&&null!==i.centerX&&null!==i.centerY&&this.map.setView(L.latLng(i.centerY,i.centerX),i.zoom,{reset:!0})}var o,n=t.layerDatas;this.map.clearPlottingLayers();for(var l=0,a=n.length;l<a;l++)(o=n[l].useCanvas||n[l].useCanvas2?L.supermap.plotting.plottingLayer(n[l].layerName,this.serverUrl,{renderer:L.canvas()}):L.supermap.plotting.plottingLayer(n[l].layerName,this.serverUrl,{renderer:L.svg()})).spatialAnalystUrl=n[l].spatialAnalystUrl,this.map.addLayer(o),this._load(n[l],o),void 0!==n[l].isEditable&&null!==n[l].isEditable&&o.setEditable(n[l].isEditable),void 0!==n[l].isLocked&&null!==n[l].isLocked&&o.setLocked(n[l].isLocked),void 0!==n[l].visibility&&null!==n[l].visibility&&o.setVisibility(n[l].visibility)},openSmlFileOnServer:function(t,e){var i=new SuperMap.EditSmlFileParameters;i.method="GET",i.smlFileName=t,L.supermap.smlFileService(this.serverUrl).editSMLFile(i,function(i){i.result.succeed?(this._getCompletedInit(i.result,t),"function"==typeof e&&e({success:!0,smlFileName:this.smlFileName,sitDataLayers:this.map.getPlottingLayers()})):"function"==typeof e&&e({success:!1,message:"打开已发布的态势图文件失败"})},this)},deleteSmlFileOnServer:function(t,e){var i=new SuperMap.EditSmlFileParameters;i.method="DELETE",i.smlFileName=t,L.supermap.smlFileService(this.serverUrl).editSMLFile(i,function(t){t.result.succeed&&"function"==typeof e?e({success:!0}):"function"==typeof e&&e({success:!1})},this)},_save:function(t,e,i,o){var n=new SuperMap.Plot.SitDataStruct;n.smlInfo=this.smlInfo;var l=new SuperMap.Plot.MapInfoStruct;l.zoom=this.map.getZoom(),l.centerX=this.map.getCenter().lng,l.centerY=this.map.getCenter().lat,n.mapInfo=l,n.layerDatas=[];for(var a=0;a<e.length;a++){var s=e[a].features,r=new SuperMap.Plot.LayerDataStruct;r.layerName=e[a].name,r.spatialAnalystUrl=e[a].spatialAnalystUrl,this.map instanceof L.Map?this.map.getRenderer(e[a])instanceof L.Canvas&&(r.useCanvas=!0):(r.useCanvas=e[a].useCanvas,r.useCanvas2=e[a].useCanvas2),r.isEditable=e[a].getEditable(),r.isLocked=e[a].getLocked(),r.visibility=e[a].getVisibility(),r.features=s,n.layerDatas.push(r)}var u=new SuperMap.EditSmlFileParameters;u.method="POST",u.sitData=n,u.smlFileName=t,u.isCover=i,L.supermap.smlFileService(this.serverUrl).editSMLFile(u,function(t){t.result.succeed&&"function"==typeof o?o({success:!0}):"function"==typeof o&&o({success:!1})},this)},_load:function(t,e){e.spatialAnalystUrl=t.spatialAnalystUrl;for(var i=0,o=t.features.length;i<o;i++){var n=t.features[i];if(null!==n){var l;n.resolution?l=this.map.getZoom():n.fromZoom&&(l=n.fromZoom),!1===n.scaleByMap&&(l=this.map.getZoom()),n.hasOwnProperty("isEdit")||(n.isEdit=!0);var a=n.uuid;e.createSymbol(n.libID,n.code,void 0,a,{},{serverUrl:this.serverUrl,symbolData:n,fromZoom:l,map:this.map})}}}}),n=e.sitDataManager=function(t,e,i){return new o(t,e,i)};L.supermap.plotting.sitDataManager=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.goAnimationManager=e.GOAnimationManager=void 0,i(0);var o=i(31),n=i(30),l=i(29),a=i(28),s=i(27),r=i(26),u=i(25),p=i(5),h=e.GOAnimationManager=L.Evented.extend({serverUrl:null,goAnimations:null,map:null,goAnimationLayer:null,initialize:function(t,e){null===this.goAnimations&&(this.goAnimations=[]),t&&null!==t&&null===this.map&&this.setMap(t),e&&null===this.serverUrl&&(h.prototype.serverUrl=e)},destroy:function(){h.prototype.goAnimations=null,h.prototype.map.removeLayer(this.goAnimationLayer),this.goAnimationLayer.destroy(),h.prototype.goAnimationLayer=null,h.prototype.map=null,h.prototype.serverUrl=null},setMap:function(t){if(null===t)return!1;h.prototype.map=t;null===this.goAnimationLayer&&(h.prototype.goAnimationLayer=L.supermap.plotting.animationLayer("animation",{displayInLayerSwitcher:!1})),this.map.addLayer(this.goAnimationLayer)},createGOAnimation:function(t,e,i){var o,n=this.createGOAnimationByType(t,e);if(null===n)return null;if(i._eventParents)for(var l in i._eventParents)o=i._eventParents[l];return i instanceof L.supermap.plotting.Route||o instanceof L.supermap.plotting.Route?null:n.setGOFeature(i)?(this.goAnimations.push(n),n):null},findGOAnimationByName:function(t){if(null===this.goAnimations||null===t||""===t)return null;for(var e=null,i=0;i<this.goAnimations.length;i++)if(this.goAnimations[i].name===t){e=this.goAnimations[i];break}return e},findGOAnimationsByFeature:function(t){var e=[];if(null===this.goAnimations||"undefined"===t||null===t)return e;for(var i=0;i<this.goAnimations.length;i++)this.goAnimations[i].getGOFeature()===t&&e.push(this.goAnimations[i]);return e},findGOAnimationsByUuid:function(t){if(null===this.goAnimations||"undefined"===t||null===t)return[];var e=this.map.getFeatureByUuid(t);return this.findGOAnimationsByFeature(e)},removeGOAnimationByName:function(t){if(null===this.goAnimations||null===t||""===t)return!1;var e=this.findGOAnimationByName(t);return this.removeGOAnimation(e)},removeGOAnimation:function(t){if(null===this.goAnimations||null===t)return!1;for(var e=0;e<this.goAnimations.length;e++)if(this.goAnimations[e]===t){t.reset(),this.goAnimations.splice(e,1),t.destroy();break}return!0},removeAllGOAnimation:function(){if(null!==this.goAnimations){for(var t=0;t<this.goAnimations.length;t++)this.removeGOAnimation(this.goAnimations[t]);this.goAnimations=[]}},execute:function(){if(0===this.goAnimations.length)return!1;for(var t=0;t<this.goAnimations.length;t++)this.goAnimations[t].execute();if(this.hasGrowAnimation())for(var e=0;e<this.goAnimations.length;e++)this.redrawFeature(this.goAnimations[e].animationGOFeature);return 0!==this.goAnimations.length||void 0},hasGrowAnimation:function(){if(null===this.goAnimations)return!1;for(var t=0;t<this.goAnimations.length;t++)if(!0===this.goAnimations[t].animationGOFeature.grow&&this.goAnimations[t].canExecute())return!0},redrawFeature:function(t){if(!(t.grow&&t instanceof p.AlgoSymbol))return!0;var e=new SuperMap.GetSymbolInfoParameters;e.libID=t.libID,e.code=t.code,e.surroundLineType=t.surroundLineType,e.inputPoints=L.Util.latLngsToSuperMapPoints(t.getLatLngs()),e.subSymbols=t.subSymbols,e.scaleValues=t.scaleValues,L.supermap.symbolInfoService(t.serverUrl).getSymbolInfo(e,function(e){t.symbolData.innerCells=e.result.innerCells,t.redraw()},this)},play:function(){if(0!==this.goAnimations.length)for(var t=0;t<this.goAnimations.length;t++)this.goAnimations[t].play()},stop:function(){if(0!==this.goAnimations.length)for(var t=0;t<this.goAnimations.length;t++)this.goAnimations[t].stop()},pause:function(){if(0!==this.goAnimations.length)for(var t=0;t<this.goAnimations.length;t++)this.goAnimations[t].pause()},reset:function(){if(0!==this.goAnimations.length)for(var t=0;t<this.goAnimations.length;t++)this.goAnimations[t].reset()},createGOAnimationByType:function(t,e){if(null===e||""===e||null===this.goAnimationLayer)return null;if(null!==this.findGOAnimationByName(e))return null;var i=null;switch(t){case SuperMap.Plot.GOAnimationType.ANIMATION_WAY:i=new u.GOAnimationWay;break;case SuperMap.Plot.GOAnimationType.ANIMATION_BLINK:i=new n.GOAnimationBlink;break;case SuperMap.Plot.GOAnimationType.ANIMATION_ATTRIBUTE:i=new o.GOAnimationAttribute;break;case SuperMap.Plot.GOAnimationType.ANIMATION_SHOW:i=new r.GOAnimationShow;break;case SuperMap.Plot.GOAnimationType.ANIMATION_ROTATE:i=new a.GOAnimationRotate;break;case SuperMap.Plot.GOAnimationType.ANIMATION_SCALE:i=new s.GOAnimationScale;break;case SuperMap.Plot.GOAnimationType.ANIMATION_GROW:i=new l.GOAnimationGrow;break;default:return null}return null!==i&&(i.name=e),i},getJSONData:function(){for(var t={animations:[]},e=0;e<this.goAnimations.length;e++)t.animations.push(this.goAnimations[e].getJSONData());return t},fromJSONData:function(t){for(var e=0;e<t.animations.length;e++){var i=t.animations[e],o=i.goFeatureUuid,n=this.map.getFeatureByUuid(o),l=i.name,a=i.type;if(n&&l&&-1!==a){var s=this.createGOAnimation(a,l,n);null!==s&&s.fromJSONData(i)}}},saveEvoFile:function(){},openEvoFileOnServer:function(){}}),c=e.goAnimationManager=function(t,e,i){return new h(t,e,i)};L.supermap.plotting.goAnimationManager=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.navyDeployment=e.NavyDeployment=void 0,i(0);var o=i(6),n=e.NavyDeployment=o.GroupObject.extend({colNum:null,space:null,initialize:function(t,e,i,n){o.GroupObject.prototype.initialize.call(this,t,e,i,n),this.libID=0,this.code=SuperMap.Plot.SymbolType.NAVYDEPLOYMENT,this.symbolType=SuperMap.Plot.SymbolType.NAVYDEPLOYMENT,this.symbolName="海军兵力部署",null===this.colNum&&(this.colNum=1),null===this.space&&(this.space=10),null===this.scaleByMap&&(this.scaleByMap=!0)},destroy:function(){this.space=null,this.colNum=null,o.GroupObject.prototype.destroy.call(this)},redraw:function(){"none"!==this.style.display?this._redrawComponents():this._clearComponents()},_calculateParts:function(){var t=this.layer.getFeatureByUuid(this.associatedUuid);if(null!==t&&t.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL&&0!==t.latLngs.length){for(var e=!1,i=0;i<t.deployments.length;i++)if(this===t.deployments[i]){e=!0;break}if(e||t.deployments.push(this),0!==this.subObjects.length&&0===this.components.length)for(var o=0,n=this.subObjects.length;o<n;o++)this.subObjects[o].ownerGroup=this,this.subObjects[o].enableEdit=!0,this._addComponents(this.subObjects[o]);if(0===this.components.length){for(var l=L.Util.cloneLatLngs(t.latLngs[0]),a=this._map.latLngToLayerPoint(L.latLng(l[0].lat,l[0].lng)),s=this._transitionPoint(new SuperMap.Geometry.Point(this.space,0),a),r=Math.abs(s.lng-l[0].lng),u=new SuperMap.Geometry.Point(0,0),p=this._transitionPoint(u,a),h=new SuperMap.Geometry.Point(100,100),c=this._transitionPoint(h,a),y=new L.LatLngBounds(L.latLng(p.lat,p.lng),L.latLng(c.lat,c.lng)),f=Math.ceil(this._getSubSymbolCount(this.subSymbols.length-1)/this.colNum),S=Math.abs(y.getNorth()-y.getSouth())*f+r*(f+1),g=L.latLng(l[0].lat+S/2,l[0].lng-5*r),P=0;P<this.subSymbols.length;P++)for(var d=0;d<this.subSymbols[P].totalNum;d++){var m=this._getSubSymbolCount(P-1)+d+1,b=Math.ceil(m/f),M=m-f*(b-1);if(1!==b&&1===M){var v=this._calculateBounds();g.lng=v.getWest()}this.subSymbols[P].symbolData.textContent=this.subSymbols[P].textContent;for(var T=g.lng-(r+Math.abs(y.getWest()-y.getEast())/3),A=g.lat-M*(Math.abs(y.getNorth()-y.getSouth())+r),_=0,O=0,x=0,w=0,I=0;I<this.subSymbols[P].symbolData.innerCells.length;I++)for(var D=0;D<this.subSymbols[P].symbolData.innerCells[I].positionPoints.length;D++)_<=this.subSymbols[P].symbolData.innerCells[I].positionPoints[D].x&&(_=this.subSymbols[P].symbolData.innerCells[I].positionPoints[D].x),O>=this.subSymbols[P].symbolData.innerCells[I].positionPoints[D].x&&(O=this.subSymbols[P].symbolData.innerCells[I].positionPoints[D].x),x<=this.subSymbols[P].symbolData.innerCells[I].positionPoints[D].y&&(x=this.subSymbols[P].symbolData.innerCells[I].positionPoints[D].y),w>=this.subSymbols[P].symbolData.innerCells[I].positionPoints[D].y&&(w=this.subSymbols[P].symbolData.innerCells[I].positionPoints[D].y);var E=L.latLng(A,T),C=this._map.latLngToLayerPoint(L.latLng(A,T)),R=new SuperMap.Geometry.Point(_,(x+w)/2),N=new SuperMap.Geometry.Point(R.x,R.y),U=new SuperMap.Geometry.Point(this.subSymbols[P].symbolData.anchorPoint.x,this.subSymbols[P].symbolData.anchorPoint.y),G=this._transitionPoint(N,C),B=this._transitionPoint(U,C);E.lat+=B.lat-G.lat,E.lng+=B.lng-G.lng;var k=this.subSymbols[P].symbolData.libID,F=this.subSymbols[P].symbolData.code;this.subSymbols[P].symbolData.annotationPosition=6;var z=SuperMap.Util.cloneObject(this.subSymbols[P].symbolData),j=L.supermap.plotting.PlottingObject.createSymbol(k,F,E,{serverUrl:this.serverUrl,symbolData:z,scaleByMap:!0,minScale:0,maxScale:2048,space:0});j.enableEdit=!0,j.ownerGroup=this,this._addComponents(j),this.bounds=this._calculateBounds(),this.subObjects.push(j)}if(this.bounds=new L.LatLngBounds,this.bounds=this._calculateBounds(),null!==this.textContent&&0!==this.textContent.length){var Y=L.latLng(l[0].lat+S/2+r,l[0].lng-5*r),V=L.supermap.plotting.PlottingObject.createSymbol(0,34,[Y],{textContent:this.textContent,serverUrl:this.serverUrl});V.style.labelAlign="rb",V.style.scaleByMap=!0,V.enableEdit=!0,V.ownerGroup=this,this._addComponents(V),this.bounds.extend(V.getBounds()),this.subObjects.push(V)}var W=new L.LatLngBounds(L.latLng(this.bounds.getSouth()-r,this.bounds.getWest()-r),L.latLng(this.bounds.getNorth()+r,this.bounds.getEast()+r)),H=[];H.push(L.latLng(W.getNorth(),W.getWest())),H.push(L.latLng(W.getSouth(),W.getEast()));var X=L.latLng(l[0].lat,l[0].lng);X.isFixedPos=!0,H.push(X);var J=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL,H,{serverUrl:this.serverUrl});for(var q in J.enableEdit=!0,J.ownerGroup=this,this.subObjects.splice(0,0,J),this._addComponents(J),this._clearComponents(),this.subObjects)this.subObjects[q].ownerGroup=this,this.subObjects[q].enableEdit=!0,this._addComponents(this.subObjects[q])}}},_reView:function(){for(var t in this.subObjects)this.subObjects[t].layer&&this.subObjects[t]._reView();this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)},move:function(t,e){for(var i in this.subObjects)this.subObjects[i].move(t,e);this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)},_resize:function(t,e){for(var i in this.subObjects)this.subObjects[i]._resize(t,e)},_transitionPoint:function(t,e){var i=e.x+t.x*(96/254),o=e.y-t.y*(96/254);return this._map.layerPointToLatLng(L.point(i,o))},_getSubSymbolCount:function(t){var e=0;if(t<0)return e;t>this.subSymbols.length-1&&(t=this.subSymbols.length-1);for(var i=0;i<=t;i++)e+=this.subSymbols[t].totalNum;return e},_calculateBounds:function(){for(var t in this.bounds=new L.LatLngBounds,this.components)this.components[t].symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL&&this.bounds.extend(this.components[t].getBoundsWithText());return this.bounds},setTextContent:function(t){if(this.textContent!==t){this.textContent=t;for(var e=0;e<this.subObjects.length;e++)this.subObjects[e].symbolType===SuperMap.Plot.SymbolType.TEXTSYMBOL&&(this.subObjects[e].textContent=this.textContent,this.subObjects[e].redraw())}}}),l=e.navyDeployment=function(t,e,i,o){return new n(t,e,i,o)};L.supermap.plotting.navyDeployment=l,L.supermap.plotting.NavyDeployment=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lineRelation=e.LineRelation=void 0,i(0);var o=i(5),n=i(23),l=e.LineRelation=o.AlgoSymbol.extend({startAssociatedUuid:null,endAssociatedUuid:null,lineRelationType:SuperMap.Plot.LineRelationType.ARROW,setLineRelationType:function(t){this.lineRelationType!==t&&(this.lineRelationType=t,this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues))},getLineRelationType:function(){return this.lineRelationType},initialize:function(t,e,i,n){this.libID=0,this.code=SuperMap.Plot.SymbolType.LINERELATION,this.symbolType=SuperMap.Plot.SymbolType.LINERELATION,this.symbolName="连接线",o.AlgoSymbol.prototype.initialize.call(this,t,e,i,n)},onAdd:function(t){o.AlgoSymbol.prototype.onAdd.call(this,t),this.setJoinLineToDotSymbol(this.startAssociatedUuid),this.setJoinLineToDotSymbol(this.endAssociatedUuid)},setStartFeature:function(t){null!==this.startAssociatedUuid&&(this.removeJoinLineFromDotSymbol(this.startAssociatedUuid),this.startAssociatedUuid=null);var e=this._map.getFeatureByUuid(t);null!=e&&e instanceof n.DotSymbol&&(null!==this.endAssociatedUuid&&t===this.endAssociatedUuid||(this.startAssociatedUuid=t,this.setJoinLineToDotSymbol(this.startAssociatedUuid),null!==this.endAssociatedUuid&&this.setFeatures(this.startAssociatedUuid,this.endAssociatedUuid)))},setEndFeature:function(t){null!==this.endAssociatedUuid&&(this.removeJoinLineFromDotSymbol(this.endAssociatedUuid),this.endAssociatedUuid="");var e=this._map.getFeatureByUuid(t);null!==e&&e instanceof n.DotSymbol&&(null!==this.startAssociatedUuid&&t===this.startAssociatedUuid||(this.endAssociatedUuid=t,this.setJoinLineToDotSymbol(this.endAssociatedUuid),null!==this.startAssociatedUuid&&this.setFeatures(this.startAssociatedUuid,this.endAssociatedUuid)))},setFeatures:function(t,e){var i=this._map.getFeatureByUuid(t),o=this._map.getFeatureByUuid(e);null!==i&&null!==o&&i instanceof n.DotSymbol&&o instanceof n.DotSymbol&&(this.startAssociatedUuid=t,this.endAssociatedUuid=e,this.setJoinLineToDotSymbol(this.startAssociatedUuid),this.setJoinLineToDotSymbol(this.endAssociatedUuid),this.redraw())},destroy:function(){this.startFeature=null,this.endFeature=null,o.AlgoSymbol.prototype.destroy.call(this)},_calculateParts:function(){var t=null,e=this._map.getFeatureByUuid(this.startAssociatedUuid);if(null!==e){var i=L.Util.latLngsToSuperMapPoints(e.latLngs);null!==i&&0<i.length&&(t=i[0])}var o=null,n=this._map.getFeatureByUuid(this.endAssociatedUuid);if(null!==n){var l=L.Util.latLngsToSuperMapPoints(n.latLngs);null!==l&&0<l.length&&(o=l[0])}if(this.superMapAlgoSymbol.controlPoints=L.Util.latLngsToSuperMapPoints(this.latLngs),this.superMapAlgoSymbol.lineRelationType=this.lineRelationType,null!==t&&(0===this.superMapAlgoSymbol.controlPoints.length?this.superMapAlgoSymbol.controlPoints.push(t):this.superMapAlgoSymbol.controlPoints[0]=t),null!==o){if(0===this.superMapAlgoSymbol.controlPoints.length)return;1===this.superMapAlgoSymbol.controlPoints.length?this.superMapAlgoSymbol.controlPoints.push(o):this.superMapAlgoSymbol.controlPoints[this.superMapAlgoSymbol.controlPoints.length-1]=o}this.superMapAlgoSymbol.calculateParts(),this.latLngs=L.Util.superMapPointsToLatLngs(this.superMapAlgoSymbol.controlPoints),this._transSymbolCellsToLayers(this.superMapAlgoSymbol.components)},move:function(t,e){if(null!==t&&null!==e){for(var i in this.getLatLngs())this.getLatLngs()[i].lat+=t,this.getLatLngs()[i].lng+=e;for(var o=0,n=this.avoidRegions.length;o<n;o++)this.avoidRegions[o].move(t,e);this.redraw()}},_modifyPoint:function(t,e){if(0===t){var i=this.getFeatureByPoint(e);null!==i?this.setStartFeature(i.uuid):this.setStartFeature(null)}else if(this.getLatLngs().length-1===t){var o=this.getFeatureByPoint(e);null!==o?this.setEndFeature(o.uuid):this.setEndFeature(null)}this.redraw()},getFeatureByPoint:function(t){var e=this._map.latLngToLayerPoint(t),i=this.layer.features;for(var o in i){if(i[o]instanceof n.DotSymbol)if(this._map.latLngToLayerPoint(i[o].getLatLngs()[0]).distanceTo(e)<5)return i[o]}return null},setJoinLineToDotSymbol:function(t){var e=this._map.getFeatureByUuid(t);if(null!=e&&e instanceof n.DotSymbol){for(var i=!1,o=0;o<e.joinLines.length;o++)if(this===e.joinLines[o]){i=!0;break}i||e.joinLines.push(this)}},removeJoinLineFromDotSymbol:function(t){if(t&&"[object String]"===Object.prototype.toString.call(t)){var e=this._map.getFeatureByUuid(t);if(null!==e&&e instanceof n.DotSymbol)for(var i=0,o=e.joinLines.length;i<o;i++)if(this===e.joinLines[i]){e.joinLines.splice(i,1);break}}},_parseSymbolData:function(){o.AlgoSymbol.prototype._parseSymbolData.call(this),this.symbolData&&(this.symbolData.hasOwnProperty("startAssociatedUuid")&&(this.startAssociatedUuid=this.symbolData.startAssociatedUuid),this.symbolData.hasOwnProperty("endAssociatedUuid")&&(this.endAssociatedUuid=this.symbolData.endAssociatedUuid),this.symbolData.hasOwnProperty("lineRelationType")&&(this.lineRelationType=this.symbolData.lineRelationType))},_setSymbolData:function(){o.AlgoSymbol.prototype._setSymbolData.call(this),this.symbolData&&(this.symbolData.endAssociatedUuid=this.endAssociatedUuid,this.symbolData.lineRelationType=this.lineRelationType,this.symbolData.startAssociatedUuid=this.startAssociatedUuid)}}),a=e.lineRelation=function(t,e,i,o){return new l(t,e,i,o)};L.supermap.plotting.lineRelation=a,L.supermap.plotting.LineRelation=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dotSymbol=e.DotSymbol=void 0,i(0);var o=i(1),n=i(22),l=i(7),a=e.DotSymbol=o.GraphicObject.extend({symbolSizeInLib:null,dRotate:0,initialScale:null,textDisplay:!0,symbolSize:null,positionOffset:!1,positionOffsetType:null,positionOffsetX:null,positionOffsetY:null,symbolRank:null,negativeImage:null,middleMarkBounds:null,flagTextSize:60,maxScale:5,minScale:1,space:7,deployments:null,joinLines:null,limitWidthHeight:!0,initialize:function(t,e,i,n){if(this.symbolType=SuperMap.Plot.SymbolType.DOTSYMBOL,this.minEditPts=1,this.maxEditPts=1,this.joinLines=[],this.deployments=[],this.symbolSizeInLib=new SuperMap.Size(0,0),this.symbolSize=new SuperMap.Size(0,0),null===this.initialScale&&(this.initialScale={}),o.GraphicObject.prototype.initialize.call(this,t,e,i,n),null===this.positionOffsetType&&(this.positionOffsetType=SuperMap.Plot.PositionOffsetType.LINE),null===this.positionOffsetX&&(this.positionOffsetX=0),null===this.positionOffsetY&&(this.positionOffsetY=0),void 0===this.actualScale&&(this.actualScale=this.dScale),this.dScale>this.maxScale?this.dScale=this.maxScale:this.dScale<this.minScale&&(this.dScale=this.minScale),(this.symbolSize==={}||0===this.symbolSize.w&&0===this.symbolSize.h)&&(this.symbolSize.w=this.symbolSizeInLib.w,this.symbolSize.h=this.symbolSizeInLib.h),!this.initialScale.x){var l=this.symbolSizeInLib.w,a=this.symbolSize.w;this.symbolSizeInLib.w<this.symbolSizeInLib.h&&(l=this.symbolSizeInLib.h,a=this.symbolSize.h),this.initialScale.x=a/l,isNaN(this.initialScale.x)||this.initialScale.x===1/0||(!0===this.limitWidthHeight?(this.symbolSize.w=this.initialScale.x*this.dScale*this.symbolSizeInLib.w,this.symbolSize.h=this.initialScale.x*this.dScale*this.symbolSizeInLib.h):(this.symbolSize.w=this.initialScale.x*this.dScale*this.symbolSizeInLib.w,this.symbolSize.h=this.initialScale.y*this.dScale*this.symbolSizeInLib.h),void 0===this.fontSize&&(void 0===this.style.fontSize&&(this.style.fontSize=12),this.fontSize=this.style.fontSize/this.initialScale.x))}},destroy:function(){if(this.symbolRank=null,this.negativeImage=null,this.annotationIndex=-1,this.textPosition=null,this.symbolSizeInLib=null,this.symbolSize=null,this.middleMarkBounds=null,this.positionOffsetX=null,this.positionOffsetY=null,null!==this.joinLines&&void 0!==this.joinLines)for(var t=0;t<this.joinLines.length;t++)null!==this.joinLines[t]&&(this.joinLines[t].startAssociatedUuid===this.uuid&&(this.joinLines[t].startAssociatedUuid=null),this.joinLines[t].endAssociatedUuid===this.uuid&&(this.joinLines[t].endAssociatedUuid=null));this.joinLines=[],this.deployments=[],o.GraphicObject.prototype.destroy.call(this)},_reView:function(){if(void 0!==this.prevStrokeWidth&&this.prevStrokeWidth!==this.style.weight&&(this.strokeWidth=this.style.weight,this.prevStrokeWidth=this.style.weight),void 0!==this.prevFontSize&&this.prevFontSize!==this.style.fontSize&&(this.fontSize=this.style.fontSize/this.dScale/this.initialScale.x,this.prevFontSize=this.style.fontSize),void 0!==this.prevSpace&&this.prevSpace*this.dScale!==this.space&&(this.prevSpace=this.space/this.dScale),this.fromZoom!==this._map.getZoom()){if(this.scaleByMap&&!1!==this.scaleByMap)if(void 0===this.actualScale&&(this.actualScale=this.dScale),void 0===this.prevScale&&(this.prevScale=this.dScale),this.actualScale*=this._map.getZoomScale(this._map.getZoom(),this.fromZoom),this.actualScale>this.maxScale?this.dScale=this.maxScale:this.actualScale<this.minScale?this.dScale=this.minScale:this.dScale=this.actualScale,this.dScale!==this.prevScale){var t=this.initialScale.x*this.dScale;!0===this.limitWidthHeight?(this.symbolSize.w=t*this.symbolSizeInLib.w,this.symbolSize.h=t*this.symbolSizeInLib.h):this.prevScale?(this.symbolSize.w=this.initialScale.x*this.dScale*this.symbolSizeInLib.w/this.prevScale,this.symbolSize.h=this.initialScale.y*this.dScale*this.symbolSizeInLib.h/this.prevScale):(this.symbolSize.w=this.initialScale.x*this.dScale*this.symbolSizeInLib.w,this.symbolSize.h=this.initialScale.y*this.dScale*this.symbolSizeInLib.h),void 0===this.prevSpace&&(this.prevSpace=this.space),void 0===this.strokeWidth&&(this.strokeWidth=this.style.weight);var e=this.strokeWidth/.5*5;if(this.symbolSize.w<e&&this.symbolSize.h<e){this.scaleStrokeWidth=!0;var i=this.symbolSize.w>this.symbolSize.h?this.symbolSize.w:this.symbolSize.h;this.style.weight=Math.round(i/10),this.style.weight>=this.weight&&(this.style.weight=this.weight),this.style.weight<=.5&&(this.style.weight=.5)}else!0===this.scaleStrokeWidth&&(this.scaleStrokeWidth=!1),this.style.weight=this.strokeWidth;if(this.prevStrokeWidth=this.style.weight,this.style.fontSize=this.style.fontSize*this._map.getZoomScale(this._map.getZoom(),this.fromZoom),this.prevFontSize=this.style.fontSize,0!==this.textContent.length&&8===this.annotationPosition){var o;!0===this.limitWidthHeight?o=this.middleMarkBounds.scale(this.dScale*this.initialScale.x,this.anchorPoint):this._widthHeightLimitScale();var n=96*o.getWidth()/25.4/10,a=96*o.getHeight()/25.4/10;this.components[this._annotationId].options.graphicWidth=n,this.components[this._annotationId].options.graphicHeight=a}for(var s in this.components)s===this._annotationId&&this.components[s]instanceof l.Text?this.components[s].options.fontSize=this.style.fontSize:s!==this._annotationId&&this.components[s]instanceof l.Text?this.components[s].options.fontSize=t*(this.components[s].options.fontSize/this.prevScale/this.initialScale.x):s!==this._annotationId&&!0!==this.components[s].isLeadLine&&(this.components[s].options.weight=this.style.weight);for(var r=0;r<this.geoSymbolTexts.length;r++){var u=this.geoSymbolTexts[r];null!==u&&u._calculateParts()}var p=this.dScale/this.prevScale,h=this._map.getZoomScale(this._map.getZoom(),this.fromZoom);p!==h&&this._resizeCells(p*(1/h),this.getLatLngs()[0]),this._renderer instanceof L.Canvas&&p===h&&!0===this.positionOffset&&(this._clearComponents(),this._calculateParts()),this.prevScale=this.dScale}else{var c=this._map.getZoomScale(this.fromZoom,this._map.getZoom());this._resizeCells(c,this.getLatLngs()[0])}else{for(var y=0;y<this.geoSymbolTexts.length;y++)this.geoSymbolTexts[y].fromZoom=this._map.getZoom();var f=this._map.getZoomScale(this.fromZoom,this._map.getZoom()),S=this.getLatLngs()[0];this._resizeCells(f,S)}this.fromZoom=this._map.getZoom(),this.layer._map.getRenderer(this.layer)instanceof L.Canvas&&this._updateCanvasFills(),this._updateSymbolTexts();var g="";null!==this._map&&this._map instanceof L.Map&&(g=this._map.options.crs.code,L.Util.isMercatorProjection(g)&&this.redraw()),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues),this.isSelected&&this._map.getPlotEditControl()&&this._map.getPlotEditControl().fire(SuperMap.Plot.Event.featuresmodified,{features:[this]})}},setLatLngs:function(t){for(var e=0;e<this.deployments.length;e++){var i=this.deployments[e];null!==i&&(i.symbolType!==SuperMap.Plot.SymbolType.NAVYDEPLOYMENT&&i.symbolType!==SuperMap.Plot.SymbolType.AIRDEPLOYMENT||(i.style.display=this.style.display,i.redraw()))}for(var o=0;o<this.joinLines.length;o++){var n=this.joinLines[o];null!==n&&(n.style.display=this.style.display,n.redraw())}for(var l=0;l<this.geoSymbolTexts.length;l++){var a=this.geoSymbolTexts[l];null!==a&&(a.style.display=this.style.display,a.redraw())}return this.latLngs=t,this.redraw()},getSpace:function(){return this.space},setSpace:function(t){this.space!==t&&(this.space=t,0!==this.textContent.length&&this._handleAnnotation())},setRotate:function(t){if(!isNaN(t)){var e=t-this.dRotate;this.dRotate=t;for(var i=0,o=this.avoidRegions.length;i<o;i++)L.Util.rotateLatLngs(this.avoidRegions[i].getLatLngs(),this.getLatLngs()[0],e);this.redraw(),this._updateSymbolTexts(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)}},getScale:function(){return!0===this.limitWidthHeight?this.initialScale.x:this.initialScale={x:this.symbolSize.w/this.symbolSizeInLib.w,y:this.symbolSize.h/this.symbolSizeInLib.h}},setScale:function(t,e){isNaN(t)||(!0===this.limitWidthHeight?(this.initialScale.x=t,this.symbolSize.w=this.initialScale.x*this.dScale*this.symbolSizeInLib.w,this.symbolSize.h=this.initialScale.x*this.dScale*this.symbolSizeInLib.h):(this.symbolSize.w=t*this.symbolSizeInLib.w,this.symbolSize.h=e*this.symbolSizeInLib.h),this.style.fontSize=this.fontSize*this.dScale*this.initialScale.x,this.prevFontSize=this.style.fontSize,this.redraw(),this._updateSymbolTexts())},setPositionOffset:function(t){this.positionOffset!==t&&(this.positionOffset=t,!1===this.positionOffset&&(this.positionOffsetX=0,this.positionOffsetY=0),this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues))},getPositionOffset:function(){return this.positionOffset},setPositionOffsetType:function(t){this.positionOffsetType!==t&&(this.positionOffsetType=t,this.positionOffset&&(this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)))},getPositionOffsetType:function(){return this.positionOffsetType},setTextContent:function(t){this.textContent=t,this._handleAnnotation()},middleMarkExist:function(){return this.symbolData.middleMarkExist},setTextPosition:function(t){8===t&&!1===this.symbolData.middleMarkExist||this.annotationPosition!==t&&(this.annotationPosition=t,this._handleAnnotation())},getSymbolSize:function(){return this.symbolSize},setSymbolSize:function(t,e){if(0===this.symbolSizeInLib.w||0===this.symbolSizeInLib.h)this.initialScale.x=1;else{null===this.symbolSize&&(this.symbolSize=new SuperMap.Size(0,0));var i=t/this.dScale/this.symbolSizeInLib.w,o=e/this.dScale/this.symbolSizeInLib.h;!0===this.limitWidthHeight?(this.initialScale.x!==i?this.initialScale.x=i:this.initialScale.x!==o&&(this.initialScale.x=o),this.symbolSize.w=this.initialScale.x*this.dScale*this.symbolSizeInLib.w,this.symbolSize.h=this.initialScale.x*this.dScale*this.symbolSizeInLib.h):(this.initialScale.x=i,this.initialScale.y=o,this.symbolSize.w=this.initialScale.x*this.dScale*this.symbolSizeInLib.w,this.symbolSize.h=this.initialScale.y*this.dScale*this.symbolSizeInLib.h)}var n;n=!1===this.limitWidthHeight?this.initialScale.x<this.initialScale.y?this.initialScale.x:this.initialScale.y:this.initialScale.x,void 0===this.fontSize?this.fontSize=this.style.fontSize/this.dScale/n:this.style.fontSize=this.fontSize*this.dScale*n,this.prevFontSize=this.style.fontSize,this._map&&(this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues))},setSurroundLineType:function(t){if(this.surroundLineType!==t){var e=new SuperMap.GetSymbolInfoParameters;e.libID=this.libID,e.code=this.code,e.negativeImage=this.negativeImage,e.symbolRank=this.symbolRank,e.surroundLineType=t,L.supermap.symbolInfoService(this.serverUrl).getSymbolInfo(e,function(t){this.symbolData.innerCells=t.result.innerCells,this.surroundLineType=t.result.surroundLineType,this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues),this._map&&this._map.getPlotEditControl()&&this._map.getPlotEditControl().fire(SuperMap.Plot.Event.featuresmodified,{features:[this]})},this)}},getSymbolRanks:function(){return this.symbolData.symbolRanks},getSymbolRank:function(){return this.symbolRank},setSymbolRank:function(t){if(this.symbolRank!==t){var e=new SuperMap.GetSymbolInfoParameters;e.libID=this.libID,e.code=this.code,e.symbolRank=t,e.negativeImage=this.negativeImage,e.surroundLineType=this.surroundLineType,L.supermap.symbolInfoService(this.serverUrl).getSymbolInfo(e,function(t){this.symbolData.innerCells=t.result.innerCells,this.symbolRank=t.result.symbolRank,this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues),this._map&&this._map.getPlotEditControl()&&this._map.getPlotEditControl().fire(SuperMap.Plot.Event.featuresmodified,{features:[this]})},this)}},getNegativeImage:function(){return this.negativeImage},setNegativeImage:function(t){if(this.negativeImage!==t){var e=new SuperMap.GetSymbolInfoParameters;e.libID=this.libID,e.code=this.code,e.negativeImage=t,e.symbolRank=this.symbolRank,e.surroundLineType=this.surroundLineType,L.supermap.symbolInfoService(this.serverUrl).getSymbolInfo(e,function(t){this.symbolData.innerCells=t.result.innerCells,this.negativeImage=t.result.negativeImage,this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues),this._map&&this._map.getPlotEditControl()&&this._map.getPlotEditControl().fire(SuperMap.Plot.Event.featuresmodified,{features:[this]})},this)}},move:function(t,e){if(this.hasOwnProperty("_eventParents")&&null!==this._eventParents)for(var i in this._eventParents){var l=this._eventParents[i];if(l.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP&&!1===l.isSelected)return void this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)}if(this.positionOffset){var a=this._map.latLngToLayerPoint(L.latLng(this.getLatLngs()[0].lat+t,this.getLatLngs()[0].lng+e)),s=this._map.latLngToLayerPoint(this.getLatLngs()[0]);this.positionOffsetX+=(a.x-s.x)/this.dScale,this.positionOffsetY+=(a.y-s.y)/this.dScale,this.redraw()}else o.GraphicObject.prototype._move.call(this,t,e);if(null!==this.joinLines&&0<this.joinLines.length)for(var r=0;r<this.joinLines.length;r++){var u=this.joinLines[r];null!==u&&(u instanceof n.LineRelation&&u.redraw())}if(null!==this.deployments&&0<this.deployments.length)for(var p=0;p<this.deployments.length;p++){var h=this.deployments[p];if(null!==h&&(h.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT||h.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT)){for(var c in h.components)h.components[c].symbolType===SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL&&(h.components[c].latLngs[2]=this.latLngs[0],h.components[c].redraw());for(var y in h.subObjects)h.subObjects[y].redraw()}}for(var f=0,S=this.avoidRegions.length;f<S;f++)L.Util.moveLatLngs(this.avoidRegions[f].getLatLngs(),t,e);var g="";null!==this._map&&this._map instanceof L.Map&&(g=this._map.options.crs.code,L.Util.isMercatorProjection(g)&&this.redraw()),this._updateSymbolTexts()},getBounds:function(){var t=new L.LatLngBounds;for(var e in this.components){var i=this.components[e];i.isLeadLine||i.isAnnotation||t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t},getBoundsWithText:function(){var t=new L.LatLngBounds;for(var e in this.components){var i=this.components[e];i.isLeadLine||t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t},_setSymbolData:function(t){if(o.GraphicObject.prototype._setSymbolData.call(this,t),this.symbolData){this.symbolData.hasOwnProperty("type")||(this.symbolData.type="GRAPHICOBJECT"),this.symbolData.symbolRank=this.symbolRank,this.symbolData.negativeImage=this.negativeImage,this.symbolData.space=this.space,this.symbolData.flagTextSize=this.flagTextSize,this.symbolData.maxScale=this.maxScale,this.symbolData.minScale=this.minScale,this.symbolData.textDisplay=this.textDisplay,this.symbolData.initialScale=this.initialScale,this.symbolData.actualScale=this.actualScale,void 0!==this.fontSize&&(this.symbolData.fontSize=this.fontSize),void 0!==this.strokeWidth&&(this.symbolData.strokeWidth=this.strokeWidth);var e=25.4*this.symbolSize.w*10/96,i=25.4*this.symbolSize.h*10/96;this.symbolData.symbolSize={x:e,y:i};var n=25.4*this.symbolSizeInLib.w*10/96,l=25.4*this.symbolSizeInLib.h*10/96;this.symbolData.symbolSizeInLib={x:n,y:l},this.symbolData.positionOffset=this.positionOffset,this.symbolData.positionOffsetType=this.positionOffsetType,this.symbolData.positionOffsetX=this.positionOffsetX,this.symbolData.positionOffsetY=this.positionOffsetY}},_parseBasicData:function(){if(this.symbolName=this.symbolData.symbolName,void 0!==this.symbolData.symbolSizeInLib?(this.symbolSizeInLib.w=Math.round(96*this.symbolData.symbolSizeInLib.x/25.4/10),this.symbolSizeInLib.h=Math.round(96*this.symbolData.symbolSizeInLib.y/25.4/10)):void 0!==this.symbolData.symbolSize&&(this.symbolSizeInLib.w=Math.round(96*this.symbolData.symbolSize.x/25.4/10),this.symbolSizeInLib.h=Math.round(96*this.symbolData.symbolSize.y/25.4/10)),null===this.initialScale||isNaN(this.initialScale)||this.initialScale===1/0){var t=L.supermap.plotting.getControl(this.map,this.serverUrl).getDefaultStyle();if(t&&!0===t.defaultFlag&&this.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL&&-1!==t.dotSymbolSize){var e=this.symbolSizeInLib.w;if(this.symbolSizeInLib.h>this.symbolSizeInLib.w&&(e=this.symbolSizeInLib.h),0===e||0===t.dotSymbolSize)this.symbolSize.w=this.symbolSizeInLib.w,this.symbolSize.h=this.symbolSizeInLib.h;else if(0!==this.symbolSize.w||0===this.symbolData.symbolSize.x||0!==this.symbolSize.h||0===this.symbolData.symbolSize.y||this.minEditPts)if(0!==this.symbolSize.w||0!==this.symbolSize.h);else{var i=t.dotSymbolSize/e;this.symbolSize.w=i*this.symbolSizeInLib.w,this.symbolSize.h=i*this.symbolSizeInLib.h}else{this.symbolSize.w=96*this.symbolData.symbolSize.x/25.4/10,this.symbolSize.h=96*this.symbolData.symbolSize.y/25.4/10;var o=this.symbolSize.w/this.dScale/this.symbolSizeInLib.w,n=this.symbolSize.h/this.dScale/this.symbolSizeInLib.h;this.initialScale!==o?this.initialScale=o:this.initialScale!==n&&(this.initialScale=n),this.symbolSize.w=this.initialScale*this.dScale*this.symbolSizeInLib.w,this.symbolSize.h=this.initialScale*this.dScale*this.symbolSizeInLib.h}}var l=this.symbolSizeInLib.w,a=this.symbolSize.w;this.symbolSizeInLib.w<this.symbolSizeInLib.h&&(l=this.symbolSizeInLib.h,a=this.symbolSize.h),this.initialScale=a/l,this.symbolSize.w=this.initialScale*this.dScale*this.symbolSizeInLib.w,this.symbolSize.h=this.initialScale*this.dScale*this.symbolSizeInLib.h,(void 0===this.fontSize||isNaN(this.fontSize))&&(void 0===this.style.fontSize&&(this.style.fontSize=12),this.fontSize=this.style.fontSize/this.initialScale)}this.anchorPoint=new SuperMap.Geometry.Point(this.symbolData.anchorPoint.x,this.symbolData.anchorPoint.y),this.middleMarkBounds=new SuperMap.Bounds(this.symbolData.middleMarkBounds.leftBottom.x,this.symbolData.middleMarkBounds.leftBottom.y,this.symbolData.middleMarkBounds.rightTop.x,this.symbolData.middleMarkBounds.rightTop.y),this.symbolRank=this.symbolData.symbolRank,this.negativeImage=this.symbolData.negativeImage},_parseSymbolData:function(){if(o.GraphicObject.prototype._parseSymbolData.call(this),null!==this.symbolData){if(void 0!==this.symbolData.symbolSizeInLib?(this.symbolSizeInLib.w=Math.round(96*this.symbolData.symbolSizeInLib.x/25.4/10),this.symbolSizeInLib.h=Math.round(96*this.symbolData.symbolSizeInLib.y/25.4/10)):this.symbolData.innerCells&&(this.symbolSizeInLib.w=Math.round(96*this.symbolData.symbolSize.x/25.4/10),this.symbolSizeInLib.h=Math.round(96*this.symbolData.symbolSize.y/25.4/10)),this.symbolRank=this.symbolData.symbolRank,this.negativeImage=this.symbolData.negativeImage,void 0!==this.symbolData.anchorPoint&&(this.anchorPoint=new SuperMap.Geometry.Point(this.symbolData.anchorPoint.x,this.symbolData.anchorPoint.y)),void 0!==this.symbolData.middleMarkBounds&&null!==this.symbolData.middleMarkBounds&&(this.middleMarkBounds=new SuperMap.Bounds(this.symbolData.middleMarkBounds.leftBottom.x,this.symbolData.middleMarkBounds.leftBottom.y,this.symbolData.middleMarkBounds.rightTop.x,this.symbolData.middleMarkBounds.rightTop.y)),void 0!==this.symbolData.actualScale&&null!==this.symbolData.actualScale&&(this.actualScale=this.symbolData.actualScale),void 0!==this.symbolData.fontSize&&null!==this.symbolData.fontSize&&(this.fontSize=this.symbolData.fontSize),void 0!==this.symbolData.strokeWidth&&void 0!==this.symbolData.strokeWidth&&(this.strokeWidth=this.symbolData.strokeWidth),void 0!==this.symbolData.space&&null!==this.symbolData.space&&(this.space=this.symbolData.space),void 0!==this.symbolData.flagTextSize&&null!==this.symbolData.flagTextSize&&(this.flagTextSize=this.symbolData.flagTextSize),void 0!==this.symbolData.maxScale&&null!==this.symbolData.maxScale&&(this.maxScale=this.symbolData.maxScale),void 0!==this.symbolData.minScale&&null!==this.symbolData.minScale&&(this.minScale=this.symbolData.minScale),void 0!==this.symbolData.textDisplay&&null!==this.symbolData.textDisplay&&(this.textDisplay=this.symbolData.textDisplay),void 0!==this.symbolData.initialScale&&null!==this.symbolData.initialScale){this.initialScale=this.symbolData.initialScale;var t=this.initialScale*this.symbolSizeInLib.w*this.dScale,e=this.initialScale*this.symbolSizeInLib.h*this.dScale;this.symbolSize=new SuperMap.Size(t,e),this.symbolSize.w=t,this.symbolSize.h=e}else if(!1!==this.isEdit){var i=96*this.symbolData.symbolSize.x/25.4/10,n=96*this.symbolData.symbolSize.y/25.4/10;this.setSymbolSize(i,n)}void 0!==this.symbolData.positionOffset&&null!==this.symbolData.positionOffset&&(this.positionOffset=this.symbolData.positionOffset),void 0!==this.symbolData.positionOffsetType&&null!==this.symbolData.positionOffsetType&&(this.positionOffsetType=this.symbolData.positionOffsetType),void 0!==this.symbolData.positionOffsetX&&null!==this.symbolData.positionOffsetX&&(this.positionOffsetX=this.symbolData.positionOffsetX),void 0!==this.symbolData.positionOffsetY&&null!==this.symbolData.positionOffsetY&&(this.positionOffsetY=this.symbolData.positionOffsetY)}},_calculateParts:function(){if(!(this.getLatLngs().length<this.minEditPts)&&"none"!==this.style.display){var t=SuperMap.Plot.AnalysisSymbol.analysisSymbolCells(this.symbolData,!0),e=this._map.latLngToLayerPoint(this.getLatLngs()[0]);if(!0===this.positionOffset&&(e.x+=this.positionOffsetX*this.dScale,e.y+=this.positionOffsetY*this.dScale),!0===this.limitWidthHeight)var i=this.initialScale.x*this.dScale;for(var o=0,n=t.length;o<n;o++){var l=t[o];if(0!==this.surroundLineType||!0!==l.surroundLineFlag){l.type===SuperMap.Plot.SymbolType.TEXTSYMBOL&&(l.style.fontSize=i*(l.style.fontSize/10),l.style.fontSize<6&&(l.style.fontSize=6),l.style.labelRotation+=-this.dRotate),null!=l.isPolybezierClose&&(l.type===SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL||l.type===SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL?(l.type,SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL,l.positionPoints=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(l.positionPoints),l.isClosed&&l.positionPoints[0]!==l.positionPoints[l.positionPoints.length-1]&&l.positionPoints.push(l.positionPoints[0])):l.type===SuperMap.Plot.SymbolType.KIDNEY&&(l.positionPoints=SuperMap.Plot.Primitives.getSpatialData(l.type,l.positionPoints)));for(var a=0,s=l.positionPoints.length;a<s;a++){l.positionPoints[a].x-=this.symbolData.anchorPoint.x,l.positionPoints[a].y-=this.symbolData.anchorPoint.y,!0===this.limitWidthHeight?(l.positionPoints[a].x=l.positionPoints[a].x*i,l.positionPoints[a].y=l.positionPoints[a].y*i):(l.positionPoints[a].x=l.positionPoints[a].x*this.symbolSize.w/this.symbolSizeInLib.w,l.positionPoints[a].y=l.positionPoints[a].y*this.symbolSize.h/this.symbolSizeInLib.h);var r=this.dRotate*(Math.PI/180);SuperMap.Plot.PlottingUtil.rotateAngle({x:0,y:0},r,l.positionPoints[a]),l.positionPoints[a]=this._transitionPoint(l.positionPoints[a],e)}l.positionPoints=L.Util.latLngsToSuperMapPoints(l.positionPoints)}}this._transSymbolCellsToLayers(t),this._generateLeadLine(),this._annotationId=-1,this.isNotRedrawText||void 0!==this.isNotRedrawText||this._handleAnnotation(),this._updateSymbolTexts(),this._bounds=this.getBounds()}},_generateLeadLine:function(){if(this.positionOffset)if(this.positionOffsetType===SuperMap.Plot.PositionOffsetType.LINE){var t=this._map.latLngToLayerPoint(this.getLatLngs()[0]),e=L.point(t.x+this.positionOffsetX*this.dScale,t.y+this.positionOffsetY*this.dScale),i=this._map.layerPointToLatLng(e),o=[this.getLatLngs()[0].clone(),i];this._createAndDrawLayer(24,o,{surroundLineFlag:!1,lineTypeLimit:!0}).isLeadLine=!0}else{var n,l,a=this._map.latLngToLayerPoint(this.getLatLngs()[0]),s=L.point(a.x+this.positionOffsetX*this.dScale,a.y+this.positionOffsetY*this.dScale),r=this._map.layerPointToLatLng(s),u=new SuperMap.Geometry.Point(this.getLatLngs()[0].lng,this.getLatLngs()[0].lat),p=new SuperMap.Geometry.Point(r.lng,r.lat),h=180*SuperMap.Plot.PlottingUtil.radian(u,p)/Math.PI;if(h>45&&h<135||h>225&&h<315){var c=L.point(s.x-this.style.weight/2,s.y),y=L.point(s.x+this.style.weight/2,s.y);n=this._map.layerPointToLatLng(c),l=this._map.layerPointToLatLng(y)}else{var f=L.point(s.x,s.y-this.style.weight/2),S=L.point(s.x,s.y+this.style.weight/2);n=this._map.layerPointToLatLng(f),l=this._map.layerPointToLatLng(S)}var g=[this.getLatLngs()[0],n,l];this._createAndDrawLayer(32,g,{surroundLineFlag:!1,lineWidthLimit:!0,weight:0,fillLimit:!0,fill:!0}).isLeadLine=!0}},_handleAnnotation:function(){-1!==this._annotationId&&(this.components[this._annotationId].removeEventParent(this),this.components[this._annotationId].onRemove(),delete this.components[this._annotationId],this.components.splice(this._annotationId,1),this._annotationId=-1),this.textContent=SuperMap.Plot.PlottingUtil.trim(this.textContent);var t=this.getBounds();if(this.textContent&&null!==this.textContent&&0!==this.textContent.length&&null!==t&&t.isValid()){var e=SuperMap.Plot.PlottingUtil.cloneObject(this.style),i=this.space*this.dScale,o=null;if(0===this.annotationPosition){e.labelAlign="rb";var n=L.latLng(t.getNorth(),t.getWest()),l=this._map.latLngToLayerPoint(n);l.x-=i,o=this._map.layerPointToLatLng(l)}else if(1===this.annotationPosition){e.labelAlign="rt";var a=L.latLng(t.getSouth(),t.getWest()),s=this._map.latLngToLayerPoint(a);s.x-=i,o=this._map.layerPointToLatLng(s)}else if(2===this.annotationPosition){e.labelAlign="lb";var r=L.latLng(t.getNorth(),t.getEast()),u=this._map.latLngToLayerPoint(r);u.x+=i,o=this._map.layerPointToLatLng(u)}else if(3===this.annotationPosition){e.labelAlign="lt";var p=L.latLng(t.getSouth(),t.getEast()),h=this._map.latLngToLayerPoint(p);h.x+=i,o=this._map.layerPointToLatLng(h)}else if(4===this.annotationPosition){e.labelAlign="cb";var c=L.latLng(t.getNorth(),(t.getWest()+t.getEast())/2),y=this._map.latLngToLayerPoint(c);y.y-=i,o=this._map.layerPointToLatLng(y)}else if(5===this.annotationPosition){e.labelAlign="ct";var f=L.latLng(t.getSouth(),(t.getWest()+t.getEast())/2),S=this._map.latLngToLayerPoint(f);S.y+=i,o=this._map.layerPointToLatLng(S)}else if(6===this.annotationPosition){e.labelAlign="rm";var g=L.latLng((t.getSouth()+t.getNorth())/2,t.getWest()),P=this._map.latLngToLayerPoint(g);P.x-=i,o=this._map.layerPointToLatLng(P)}else if(7===this.annotationPosition){e.labelAlign="lm";var d=L.latLng((t.getSouth()+t.getNorth())/2,t.getEast()),m=this._map.latLngToLayerPoint(d);m.x+=i,o=this._map.layerPointToLatLng(m)}else if(8===this.annotationPosition&&this.symbolData.middleMarkExist){var b;b=!0===this.limitWidthHeight?this.middleMarkBounds.scale(this.dScale*this.initialScale.x,this.anchorPoint):this._widthHeightLimitScale();var M=new SuperMap.Geometry.Point((b.left+b.right)/2,(b.top+b.bottom)/2);if(this.negativeImage){var v=SuperMap.Plot.PlottingUtil.projectPoint(M,new SuperMap.Geometry.Point(this.anchorPoint.x,100),new SuperMap.Geometry.Point(this.anchorPoint.x,this.anchorPoint.y));SuperMap.Plot.PlottingUtil.rotateAngle(v,Math.PI,M)}M.x-=this.anchorPoint.x,M.y-=this.anchorPoint.y;var T=this.dRotate*(Math.PI/180);SuperMap.Plot.PlottingUtil.rotateAngle(new SuperMap.Geometry.Point(0,0),T,M);var A=this._map.latLngToLayerPoint(this.getLatLngs()[0]);!0===this.positionOffset&&(A.x+=this.positionOffsetX*this.dScale,A.y+=this.positionOffsetY*this.dScale);var _=96*b.getWidth()/25.4/10,O=96*b.getHeight()/25.4/10;e.graphicWidth=_,e.graphicHeight=O,o=this._transitionPoint(M,A)}if(8===this.annotationPosition&&this.symbolData.middleMarkExist){e.rotation=-this.dRotate,e.labelAlign="cm",e.graphicOpacity=1,e.fontColor=this.style.fontColor,e.fontFamily=this.style.fontFamily,e.fontWeight=this.style.fontWeight,e.fontStyle=this.style.fontStyle,e.externalGraphic=this._getTextGraphic(this.textContent,e);var x={externalGraphic:e.externalGraphic,graphicWidth:e.graphicWidth,graphicHeight:e.graphicHeight,rotation:-this.dRotate},w=L.supermap.plotting.pointImage([o],x);this._annotationId=this.components.length,this._addComponents(w)}else if(8!==this.annotationPosition){if(!1===this.limitWidthHeight)var I=this.initialScale.x<this.initialScale.y?this.initialScale.x:this.initialScale.y;void 0!==this.prevFontSize&&this.prevFontSize!==this.style.fontSize&&(!0===this.limitWidthHeight?this.fontSize=this.style.fontSize/this.dScale/this.initialScale.x:this.fontSize=this.style.fontSize/this.dScale/I,this.prevFontSize=this.style.fontSize),void 0!==this.fontSize?(!0===this.limitWidthHeight?this.style.fontSize=this.fontSize*this.dScale*this.initialScale.x:this.style.fontSize=this.fontSize*this.dScale*I,this.prevFontSize=this.style.fontSize):(!0===this.limitWidthHeight?this.fontSize=this.style.fontSize/this.dScale/this.initialScale.x:this.fontSize=this.style.fontSize/this.dScale/I,this.prevFontSize=this.style.fontSize),e.fontSize=this.style.fontSize,e.fontSizeLimit=!1,e.labelRotation=0,this._annotationId=this.components.length,this._createAndDrawLayer(34,[o],e,this.textContent).isAnnotation=!0}}},_getTextGraphic:function(t,e){var i=SuperMap.Plot.PlottingUtil.cloneObject(e);i.fontPercent=100,i.fontSpace=0,void 0!==this.flagTextSize?i.fontSize=this.flagTextSize:i.fontSize=60,i.labelAlign="cm";var o=document.createElement("canvas"),n=SuperMap.Plot.PlottingUtil.getTextWidth(i,t);o.width=n+20,o.height=parseFloat(i.fontSize)+10,document.body.appendChild(o);var l=o.getContext("2d");l.fillStyle=i.fontColor,l.globalAlpha=i.fontOpacity||1;var a=[i.fontStyle?i.fontStyle:"normal","normal",i.fontWeight?i.fontWeight:"normal",i.fontSize?new String(i.fontSize)+"px":"1em",i.fontFamily?i.fontFamily:"sans-serif"].join(" ");if(l.fillText)l.font=a,l.textAlign="center",l.textBaseline="middle",l.fillText(t,o.width/2,o.height/2);else if(l.mozDrawText){l.mozTextStyle=a;var s=-.5;L.PlotCanvas.LABEL_FACTOR[e.labelAlign[0]],null==s&&(s=-.5);var r=-.5;L.PlotCanvas.LABEL_FACTOR[e.labelAlign[1]],null==r&&(r=-.5);var u=[0,0],p=l.mozMeasureText("xx");u[1]+=p*(1+r*numRows);var h=u[0]+s*l.mozMeasureText(t),c=u[1]+p;l.translate(h,c),l.mozDrawText(t),l.translate(-h,-c)}var y=o.toDataURL("image/png","image/octet-stream");return document.body.removeChild(o),y},_transitionPoint:function(t,e){var i=e.x+t.x*(96/254),o=e.y-t.y*(96/254);return this._map.layerPointToLatLng(L.point(i,o))},_resizeCells:function(t,e){for(var i in this.components)L.Util.resizeLatLngs(this.components[i].getLatLngs(),e,t),this.components[i].setLatLngs(this.components[i].getLatLngs());this._renderer instanceof L.Canvas&&this._updateCanvasFills()},_rotate:function(t,e){o.GraphicObject.prototype._rotate.call(this,t,e),this.dRotate+=t},_resize:function(t,e){o.GraphicObject.prototype._resize.call(this,t,e),!0===this.limitWidthHeight?(this.initialScale.x*=t,this.symbolSize.w=this.initialScale.x*this.dScale*this.symbolSizeInLib.w,this.symbolSize.h=this.initialScale.x*this.dScale*this.symbolSizeInLib.h):(this.symbolSize.w=this.initialScale.x*this.dScale*this.symbolSizeInLib.w,this.symbolSize.h=this.initialScale.y*this.dScale*this.symbolSizeInLib.h),this.style.fontSize=this.fontSize*this.dScale*this.initialScale.x,this.prevFontSize=this.style.fontSize},_widthHeightLimitScale:function(){var t=this.initialScale.x,e=this.initialScale.y,i=this.anchorPoint.x,o=this.anchorPoint.y,n=(this.middleMarkBounds.left-i)*t+i,l=(this.middleMarkBounds.bottom-o)*e+o,a=(this.middleMarkBounds.right-i)*t+i,s=(this.middleMarkBounds.top-o)*e+o;return new SuperMap.Bounds(n,l,a,s)},setWidthHeightLimit:function(t){this.limitWidthHeight!==t&&(t.constructor===Boolean&&(this.limitWidthHeight=t),!1===this.limitWidthHeight?(this.initialScale.x=this.symbolSize.w/this.symbolSizeInLib.w,this.initialScale.y=this.symbolSize.h/this.symbolSizeInLib.h):!0===this.limitWidthHeight&&(this.initialScale.x=this.initialScale.x<this.initialScale.y?this.initialScale.y:this.initialScale.x,this.redraw()))},getWidthHeightLimit:function(){return this.limitWidthHeight}}),s=e.dotSymbol=function(t,e,i,o){return new a(t,e,i,o)};L.supermap.plotting.dotSymbol=s,L.supermap.plotting.DotSymbol=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DrawGraphicObject=void 0,i(0);var o=i(3),n=i(1),l=i(8);e.DrawGraphicObject=L.Handler.extend({symbolData:null,plotting:null,_isDrawing:!1,libID:0,code:24,serverUrl:"",isFreeCure:!1,_drawingLayer:null,_tempDrawingLayer:null,_control:null,options:{tolerancePixel:6,allowIntersection:!0,repeatMode:!0,icon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),guidelineDistance:20,maxGuideLineLength:4e3,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!1,clickable:!0},metric:!0,feet:!0,nautic:!1,showLength:!0,zIndexOffset:2e3},initialize:function(t,e,i){this._map=t,this._drawingLayer=e,this._tempDrawingLayer=new l.PlottingLayerBase("drawControl-temportary"),this._container=t._container,this._overlayPane=t._panes.overlayPane,L.setOptions(this,i)},addHooks:function(){this._map&&(this._isDrawing=!1,this._markers=[],this._latlngs=[],this._markerGroup=new L.LayerGroup,this._map.addLayer(this._markerGroup),this._map.addLayer(this._tempDrawingLayer),this._mouseMarker||(this._mouseMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("mousedown",this._onMouseDown,this).on("mouseup",this._onMouseUp,this).addTo(this._map),this._map.on("mouseup",this._onMouseUp,this).on("mousemove",this._onMouseMove,this).on("zoomlevelschange",this._onZoomEnd,this).on("touchstart",this._onTouch,this).on("zoomend",this._onZoomEnd,this),this._map.getPlotEditControl()&&this._map.getPlotEditControl()._avoidEditing&&this._map.getPlotEditControl().avoidEdit(!1))},removeHooks:function(){this._isDrawing=!1,this._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers,delete this._latlngs,delete this.isFreeCure,this.plotting&&(this._tempDrawingLayer.removeFeatures(this.plotting),delete this.plotting,this.plotting=null),this._map.removeLayer(this._tempDrawingLayer),this._mouseMarker.off("mousedown",this._onMouseDown,this).off("mouseup",this._onMouseUp,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._map.off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._onZoomEnd,this).off("zoomend",this._onZoomEnd,this).off("touchstart",this._onTouch,this).off("click",this._onTouch,this)},deleteLastVertex:function(){if(!(this._markers.length<=1)){this._latlngs.pop();var t=this._markers.pop(),e=this.plotting.getLatLngs(),i=e.splice(-1,1)[0];this.plotting.setLatLngs(e),this._markerGroup.removeLayer(t),this.plotting.getLatLngs().length<2&&this._tempDrawingLayer.removeFeatures(this.plotting),this._vertexChanged(i,!1)}},addVertex:function(t){if(this._markers.push(this._createMarker(t)),this._latlngs.push(t),this.plotting&&0===this.libID&&1023===this.code&&!0===this.isFreeCure)this.plotting.addLatLng(t);else if(this.plotting&&SuperMap.Plot.AlgoSymbolFactory.isAccessServer(this.plotting.libID,this.plotting.code)&&this._latlngs.length>=this.plotting.minEditPts){var e=new SuperMap.GetSymbolInfoParameters({libID:this.libID,code:this.code});e.inputPoints=L.Util.latLngsToSuperMapPoints(this._latlngs),L.supermap.symbolInfoService(this._drawingLayer.serverUrl).getSymbolInfo(e,function(t){this.plotting.symbolData=t.result,this.plotting.setLatLngs(this._latlngs)},this)}else if(this.plotting&&this.plotting instanceof o.Route){var i=this._map.layerPointToLatLng(L.point(0,0)),n=this._map.layerPointToLatLng(L.point(this.options.tolerancePixel,0)),l=SuperMap.Plot.PlottingUtil.distance({x:i.lng,y:i.lat},{x:n.lng,y:n.lat});this.plotting._addRouteNodeByPos(t,l)}else this.plotting&&this.plotting.setLatLngs(this._latlngs);this._vertexChanged(t,!0)},_finishShape:function(){this._markers.length>1&&this._markers[this._markers.length-1].off("click",this._finishShape,this),0===this.libID&&this.code===SuperMap.Plot.SymbolType.FREECURVE&&!0===this.isFreeCure&&(this.plotting.latLngs=L.Util.superMapPointsToLatLngs(this.plotting.superMapAlgoSymbol.controlPoints),this.isFreeCure=!1),-1===this.plotting.libID&&(this.plotting.libID=this.libID,this.plotting.code=this.code);var t=this.plotting.clone();this._markerGroup.clearLayers(),this._markers=[],this._latlngs=[],this._tempDrawingLayer.removeFeatures(this.plotting),delete this.plotting,this._drawingLayer.addFeatures(t),this._drawingLayer._renderer instanceof L.SVG&&(t.isFirstAdd=!0),this._control.fire(SuperMap.Plot.Event.featureadded,{feature:t}),this._isDrawing=!1,this.options.repeatMode||this.disable();var e=new SuperMap.Plot.Transaction;e.transType=SuperMap.Plot.TransactionType.CREATE;var i=new SuperMap.Plot.TransactionInfo;i.layerId=t.layer._leaflet_id,i.feature=t,e.transInfos.push(i),L.supermap.plotting.getControl(this._map,this.serverUrl).getTransManager().add(e)},_onZoomEnd:function(){this._markers},_onMouseMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent),i=this._map.layerPointToLatLng(e);if(this._currentLatLng=i,!this.plotting||!0!==this._isDrawing||this.plotting instanceof o.Route){if(!1===this._isDrawing)if(this._isDrawing=!0,SuperMap.Plot.AlgoSymbolFactory.isAccessServer(this.libID,this.code))if(this.symbolData=this._drawingLayer._getSymbolDataFromCache(this.libID,this.code),null===this.symbolData){var n,l,a=Math.floor(1e3*Math.random()),s=(new Date).getTime(),r=new SuperMap.GetSymbolInfoParameters({libID:this.libID,code:this.code});r.dynamicToken=a,L.supermap.symbolInfoService(this._drawingLayer.serverUrl).getSymbolInfo(r,function(t){t.result.dynamicToken&&(l=parseInt(t.result.dynamicToken,16),n=l-a),!n||n-s>6e4?this.symbolData=null:this.libID!==t.result.libID||this.code!==t.result.code?this.symbolData=null:(this._drawingLayer._cacheSymbolData(t.result),this.symbolData=t.result,this.plotting=L.supermap.plotting.PlottingObject.createSymbol(this.libID,this.code,[],{symbolData:this.symbolData,serverUrl:this._drawingLayer.serverUrl,map:this._map}),this._control.fire(SuperMap.Plot.Event.beforefeatureadded,{feature:this.plotting}),this._tempDrawingLayer.addFeatures(this.plotting),this.plotting.isEdit=!1)},this)}else this.plotting=L.supermap.plotting.PlottingObject.createSymbol(this.libID,this.code,[],{symbolData:this.symbolData,serverUrl:this._drawingLayer.serverUrl,map:this._map}),this._control.fire(SuperMap.Plot.Event.beforefeatureadded,{feature:this.plotting}),this._tempDrawingLayer.addFeatures(this.plotting),this.plotting.isEdit=!1;else if(this.plotting=L.supermap.plotting.PlottingObject.createSymbol(this.libID,this.code,[],{serverUrl:this._drawingLayer.serverUrl,spatialAnalystUrl:this._drawingLayer.spatialAnalystUrl,map:this._map}),this.plotting.subSymbols&&0!==this.plotting.subSymbols.length){for(var u=[],p=0,h=this.plotting.subSymbols.length;p<h;p++)null===this.plotting.subSymbols[p].symbolData&&(this.plotting.subSymbols[p].symbolData=this._drawingLayer._getSymbolDataFromCache(this.plotting.subSymbols[p].libID,this.plotting.subSymbols[p].code),null===this.plotting.subSymbols[p].symbolData&&-1===SuperMap.Util.indexOf(u,this.plotting.subSymbols[p])&&u.push(this.plotting.subSymbols[p]));for(var c=u.slice(),y=0;y<u.length;y++){var f=new SuperMap.GetSymbolInfoParameters({libID:u[y].libID,code:u[y].code});L.supermap.symbolInfoService(this.serverUrl).getSymbolInfo(f,function(t){this._drawingLayer._cacheSymbolData(t.result);for(var e=0,i=this.plotting.subSymbols.length;e<i;e++)if(null===this.plotting.subSymbols[e].symbolData&&this.plotting.subSymbols[e].libID===t.result.libID&&this.plotting.subSymbols[e].code===t.result.code){var o=SuperMap.Util.indexOf(c,this.plotting.subSymbols[e]);-1!==o&&c.splice(o,1),this.plotting.subSymbols[e].symbolData=SuperMap.Plot.PlottingUtil.cloneObject(t.result)}0===c.length&&(this._control.fire(SuperMap.Plot.Event.beforefeatureadded,{feature:this.plotting}),this._tempDrawingLayer.addFeatures(this.plotting),this.plotting.isEdit=!1)},this)}0===u.length&&(this._control.fire(SuperMap.Plot.Event.beforefeatureadded,{feature:this.plotting}),this._tempDrawingLayer.addFeatures(this.plotting),this.plotting.isEdit=!1)}else this._control.fire(SuperMap.Plot.Event.beforefeatureadded,{feature:this.plotting}),this._tempDrawingLayer.addFeatures(this.plotting),this.plotting.isEdit=!1}else{var S=L.Util.cloneLatLngs(this._latlngs);if(0===S.length?S.push(i):S[S.length-1].lat===i.lat&&S[S.length-1].lng===i.lng||S.push(i),0===this.libID&&this.code===SuperMap.Plot.SymbolType.FREECURVE&&!0===this.isFreeCure)this.plotting.addLatLng(i);else if(this.plotting.symbolType!==SuperMap.Plot.SymbolType.DOTSYMBOL&&SuperMap.Plot.AlgoSymbolFactory.isAccessServer(this.plotting.libID,this.plotting.code)&&S.length>=this.plotting.minEditPts){var g=new SuperMap.GetSymbolInfoParameters({libID:this.libID,code:this.code});g.inputPoints=L.Util.latLngsToSuperMapPoints(S),L.supermap.symbolInfoService(this._drawingLayer.serverUrl).getSymbolInfo(g,function(t){this.plotting.symbolData=t.result,this.plotting.setLatLngs(S)},this)}else this.plotting.setLatLngs(S)}this._mouseMarker.setLatLng(i),L.DomEvent.preventDefault(t.originalEvent)},_vertexChanged:function(){var t=this._markers.length;t>1&&this._markers[t-1].on("click",this._finishShape,this),t>2&&this._markers[t-2].off("click",this._finishShape,this)},_onMouseDown:function(t){if((!t||2!==t.originalEvent.button)&&!this._clickHandled&&!this._touchHandled&&!this._disableMarkers&&this._drawingLayer&&this._drawingLayer.isEditable&&this._drawingLayer._map){this._onMouseMove(t),this._clickHandled=!0,this._disableNewMarkers();var e=t.originalEvent,i=e.clientX,o=e.clientY;this._startPoint.call(this,i,o)}},_startPoint:function(t,e){0===this.libID&&this.code===SuperMap.Plot.SymbolType.FREECURVE&&(this.isFreeCure=!0),this._mouseDownOrigin=L.point(t,e)},_onMouseUp:function(t){!L.Browser.ie||null!==this._mouseDownOrigin&&void 0!==this._mouseDownOrigin||this._onMouseDown.call(this,t);var e=t.originalEvent,i=e.clientX,o=e.clientY;this._endPoint.call(this,i,o,t),this._clickHandled=null,L.DomEvent.stopPropagation(t)},_endPoint:function(t,e,i){if(this._mouseDownOrigin){var o=L.point(t,e).distanceTo(this._mouseDownOrigin),l=this._calculateFinishDistance(i.latlng);(this.plotting instanceof n.GraphicObject||this.plotting instanceof L.supermap.plotting.Route)&&(this._latlngs.length+1>=this.plotting.maxEditPts||l<10&&L.Browser.touch)?this._finishShape():Math.abs(o)<9*(window.devicePixelRatio||1)&&this.addVertex(i.latlng),this._enableNewMarkers()}this._mouseDownOrigin=null},_onTouch:function(t){var e,i,o=t.originalEvent;!o.touches||!o.touches[0]||this._clickHandled||this._touchHandled||this._disableMarkers||(e=o.touches[0].clientX,i=o.touches[0].clientY,this._disableNewMarkers(),this._touchHandled=!0,this._startPoint.call(this,e,i),this._endPoint.call(this,e,i,t),this._touchHandled=null),this._clickHandled=null},_calculateFinishDistance:function(t){var e;if(this._markers.length>0){var i=this._markers[this._markers.length-1],o=this._map.latLngToContainerPoint(i.getLatLng()),n=new L.Marker(t,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset}),l=this._map.latLngToContainerPoint(n.getLatLng());e=o.distanceTo(l)}else e=1/0;return e},_createMarker:function(t){var e=new L.Marker(t,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset});return this._markerGroup.addLayer(e),e},_disableNewMarkers:function(){this._disableMarkers=!0},_enableNewMarkers:function(){setTimeout(function(){this._disableMarkers=!1}.bind(this),50)}})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GOAnimationWay=void 0,i(0);var o=i(2),n=e.GOAnimationWay=o.GOAnimation.extend({showPath:!1,tangentDirection:!1,pathWidth:.5,pathColor:"#00FFFF",currentPt:null,pathType:SuperMap.Plot.WayPathType.POLYLINE,wayPoints:null,shapePoints:null,pathFeature:null,pathLength:0,destroy:function(){null!==this.pathFeature&&(L.supermap.plotting.getControl().getGOAnimationManager().map.removeLayer(this.pathFeature),this.pathFeature=null);o.GOAnimation.prototype.destroy.call(this)},getGOAnimationType:function(){return SuperMap.Plot.GOAnimationType.ANIMATION_WAY},setShowPath:function(t){this.showPath=t},resetAnimationFeature:function(t){o.GOAnimation.prototype.resetAnimationFeature.call(this,t);var e=this.goFeature.dRotate,i=this.animationGOFeature.dRotate;this.animationGOFeature._rotate(e-i,this.animationGOFeature.getLatLngs()[0]),t&&(null!==this.pathFeature&&null!==this.shapePoints||(this._makePath(),this.pathColor&&(this.pathFeature.options.color=this.pathColor),this.pathWidth&&(this.pathFeature.options.weight=this.pathWidth)),this.pathFeature.options.opacity=0,1!==this.animationGOFeature.symbolType&&(this.pathFeature.options.opacity=0),this.pathFeature.setStyle())},execute:function(){if(this.goFeature.symbolType!==SuperMap.Plot.SymbolType.DOTSYMBOL)return null!==this.pathFeature&&(this.pathFeature.options.opacity=0),!1;if(!this.canExecute())return!1;this.showPath&&0===this.pathFeature.options.opacity&&(this.pathFeature.options.opacity=1,this.pathFeature.setStyle());var t=this.ratio,e=t*this.pathLength,i=new Object,o=this._findPos(e,this.shapePoints,i);this.currentPt=o.clone();var n=this.animationGOFeature.getLatLngs()[0],l=o.y-n.lat,a=o.x-n.lng;if(this.animationGOFeature.move(l,a),this.tangentDirection){var s=i.angle;1===t&&(s=0);var r=this.animationGOFeature.dRotate;this.animationGOFeature._rotate(s-r,this.animationGOFeature.getLatLngs()[0])}return!0},setWayPoints:function(t){((!t||!SuperMap.Util.isArray(t)||2>t.length)&&(t=[this.goFeature.getLatLngs()[0],this.goFeature.getLatLngs()[0]]),this.wayPoints=[],this.wayPoints=L.Util.cloneLatLngs(t),null!==this.pathFeature)&&(L.supermap.plotting.getControl().getGOAnimationManager().map.removeLayer(this.pathFeature),this.pathFeature.destroy(),this.pathFeature=null)},getWayPoints:function(){return this.wayPoints},getCurrentPt:function(){return this.currentPt},setPathColor:function(t){t&&(this.pathColor=t,this.pathFeature&&null!==this.pathFeature&&(this.pathFeature.options.color=this.pathColor,this.pathFeature.setStyle(this.pathFeature.options)))},getPathColor:function(){return this.pathColor},setPathWidth:function(t){t&&(this.pathWidth=t,this.pathFeature&&null!==this.pathWidth&&(this.pathFeature.options.weight=this.pathWidth,this.pathFeature.setStyle(this.pathFeature.options)))},getPathWidth:function(){return this.pathWidth},setPathType:function(t){void 0!==t&&null!==t&&(this.pathType!==t&&(this.pathType=t,null!==this.pathFeature&&(L.supermap.plotting.getControl().getGOAnimationManager().map.removeLayer(this.pathFeature),this.pathFeature.destroy(),this.pathFeature=null)))},getPathType:function(){return this.pathType},_makePath:function(){((null===this.wayPoints||2>this.wayPoints.length)&&(this.wayPoints=[this.goFeature.getLatLngs()[0],this.goFeature.getLatLngs()[0]]),null===this.pathFeature)&&(this.pathType===SuperMap.Plot.WayPathType.POLYLINE?this.shapePoints=L.Util.latLngsToSuperMapPoints(this.wayPoints):this.shapePoints=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(L.Util.latLngsToSuperMapPoints(this.wayPoints)),this.pathFeature=L.polyline(L.Util.superMapPointsToLatLngs(this.shapePoints),SuperMap.Plot.PlottingUtil.cloneObject(this.animationGOFeature.style)),L.supermap.plotting.getControl().getGOAnimationManager().map.addLayer(this.pathFeature));this.pathLength=0;for(var t=1;t<this.shapePoints.length;t++)this.pathLength+=SuperMap.Plot.PlottingUtil.distance(this.shapePoints[t-1],this.shapePoints[t]);return this.pathFeature},_findPos:function(t,e,i){var o,n=0,l=0;for(o=1;o<e.length&&!(n+(l=SuperMap.Plot.PlottingUtil.distance(e[o-1],e[o]))>=t);o++)n+=l;var a=SuperMap.Plot.PlottingUtil.findPoint(e[o-1],e[o],t-n,0);return this.tangentDirection&&(i.angle=SuperMap.Plot.PlottingUtil.radian(a,e[o])/Math.PI*180),a},getJSONData:function(){var t=o.GOAnimation.prototype.getJSONData.call(this);t.showPath=this.showPath,t.tangentDirection=this.tangentDirection,t.pathType=this.pathType,t.pathWidth=this.pathWidth,t.pathColor=this.pathColor,t.wayPoints=[];for(var e=0;e<this.wayPoints.length;e++)t.wayPoints.push({x:this.wayPoints[e].lng,y:this.wayPoints[e].lat});return t},fromJSONData:function(t){o.GOAnimation.prototype.fromJSONData.call(this,t),this.showPath=t.showPath,this.tangentDirection=t.tangentDirection,this.pathType=t.pathType,this.pathWidth=t.pathWidth,this.pathColor=t.pathColor;for(var e=[],i=0;i<t.wayPoints.length;i++)e.push(L.latLng(t.wayPoints[i].y,t.wayPoints[i].x));this.setWayPoints(e)}});L.supermap.plotting.GOAnimationWay=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GOAnimationShow=void 0,i(0);var o=i(2),n=e.GOAnimationShow=o.GOAnimation.extend({showEffect:!1,finalDisplay:!1,getGOAnimationType:function(){return SuperMap.Plot.GOAnimationType.ANIMATION_SHOW},execute:function(){if(!this.canExecute())return!1;var t=this.ratio;return this.showEffect?this._executeHaveEffect(t):this._executeNoEffect(t),!0},_executeNoEffect:function(t){this.finalDisplay?this.animationGOFeature.style.display=1-t<.01?"display":"none":this.animationGOFeature.style.display=1-t<.01?"none":"display",this.animationGOFeature.redraw()},_executeHaveEffect:function(t){this.finalDisplay||(t=1-t);var e=parseFloat(t)<0||parseFloat(t);e=parseFloat(t)>1?1:parseFloat(t),this.animationGOFeature.style.display="display",this.animationGOFeature.style.opacity=e,this.animationGOFeature.style.fontOpacity=e,this.animationGOFeature.style.surroundLineColorOpacity=this.goFeature.style.surroundLineColorOpacity*t,this.animationGOFeature.style.fill&&(this.animationGOFeature.style.fillOpacity=this.goFeature.style.fillOpacity*t,this.animationGOFeature.style.fillBackOpacity=this.goFeature.style.fillBackOpacity*t),this.animationGOFeature.redraw()},getJSONData:function(){var t=o.GOAnimation.prototype.getJSONData.call(this);return t.showEffect=this.showEffect,t.finalDisplay=this.finalDisplay,t},fromJSONData:function(t){o.GOAnimation.prototype.fromJSONData.call(this,t),this.showEffect=t.showEffect,this.finalDisplay=t.finalDisplay}});L.supermap.plotting.GOAnimationShow=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GOAnimationScale=void 0,i(0);var o=i(2),n=e.GOAnimationScale=o.GOAnimation.extend({startScale:0,endScale:1,lastScale:null,getGOAnimationType:function(){return SuperMap.Plot.GOAnimationType.ANIMATION_SCALE},resetAnimationFeature:function(t){this.lastScale=null,this.animationGOFeature._resize(this.goFeature.initialScale.x/this.animationGOFeature.initialScale.x,this.animationGOFeature.getLatLngs()[0]),o.GOAnimation.prototype.resetAnimationFeature.call(this,t)},execute:function(){if(this.goFeature.symbolType!==SuperMap.Plot.SymbolType.DOTSYMBOL)return!1;if(!this.canExecute())return!1;this.lastScale=this.animationGOFeature.initialScale.x;var t=this.startScale;0===t&&(t=.1);var e=this.endScale;0===e&&(e=.1);var i=this.goFeature.initialScale.x*(t+this.ratio*(e-t));return this.animationGOFeature._resize(i/this.lastScale,this.animationGOFeature.getLatLngs()[0]),!0},getJSONData:function(){var t=o.GOAnimation.prototype.getJSONData.call(this);return t.startScale=this.startScale,t.endScale=this.endScale,t},fromJSONData:function(t){o.GOAnimation.prototype.fromJSONData.call(this,t),this.startScale=t.startScale,this.endScale=t.endScale}});L.supermap.plotting.GOAnimationScale=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GOAnimationRotate=void 0,i(0);var o=i(2),n=e.GOAnimationRotate=o.GOAnimation.extend({rotateDirection:SuperMap.Plot.RotateDirection.ClockWise,startAngle:0,endAngle:360,getGOAnimationType:function(){return SuperMap.Plot.GOAnimationType.ANIMATION_ROTATE},resetAnimationFeature:function(t){this.animationGOFeature._rotate(this.goFeature.dRotate-this.animationGOFeature.dRotate,this.animationGOFeature.getLatLngs()[0]),o.GOAnimation.prototype.resetAnimationFeature.call(this,t)},execute:function(){if(this.goFeature.symbolType!==SuperMap.Plot.SymbolType.DOTSYMBOL)return!1;if(!this.canExecute())return!1;var t=this.ratio,e=this._getCurrentAngle(this.startAngle,this.endAngle,t),i=this.animationGOFeature.dRotate;return this.animationGOFeature._rotate(e-i,this.animationGOFeature.getLatLngs()[0]),!0},_getCurrentAngle:function(t,e,i){var o=0,n=e-t,l=parseInt(Math.abs(n/360));if(t!==e)if(this.rotateDirection===SuperMap.Plot.RotateDirection.AntiClockWise)n<0&&(n+=360*(2*l+1)),o=t+n*i;else{var a=0;o=t+(360-(n=0===(a=n<0?n+360*(l+1):n-360*l)?360*l:360-a+360*l)*i)}return o},getJSONData:function(){var t=o.GOAnimation.prototype.getJSONData.call(this);return t.rotateDirection=this.rotateDirection,t.startAngle=this.startAngle,t.endAngle=this.endAngle,t},fromJSONData:function(t){o.GOAnimation.prototype.fromJSONData.call(this,t),this.rotateDirection=t.rotateDirection,this.startAngle=t.startAngle,this.endAngle=t.endAngle}});L.supermap.plotting.GOAnimationRotate=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GOAnimationGrow=void 0,i(0);var o=i(2),n=i(5),l=e.GOAnimationGrow=o.GOAnimation.extend({startScale:0,endScale:1,timeSpace:50,lastDrawTime:0,lineLength:0,controlPoints:[],initialize:function(t){o.GOAnimation.prototype.initialize.call(this,t),this.controlPoints=[],this.lineLength=0},getGOAnimationType:function(){return SuperMap.Plot.GOAnimationType.ANIMATION_GROW},_execute_1004:function(t){if(0===this.lineLength){this.controlPoints=L.Util.latLngsToSuperMapPoints(this.goFeature.getLatLngs());var e=new SuperMap.Geometry.Point((this.controlPoints[0].x+this.controlPoints[1].x)/2,(this.controlPoints[0].y+this.controlPoints[1].y)/2);this.lineLength+=SuperMap.Plot.PlottingUtil.distance(e,this.controlPoints[2]);for(var i=3;i<this.controlPoints.length;i++)this.lineLength+=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[i-1],this.controlPoints[i])}if(0===t)return this._executeAndRatioIsZero(),!0;var o=[],n=[];e=new SuperMap.Geometry.Point((this.controlPoints[0].x+this.controlPoints[1].x)/2,(this.controlPoints[0].y+this.controlPoints[1].y)/2),n.push(e);for(var l=2;l<this.controlPoints.length;l++)n.push(this.controlPoints[l].clone());o.push(this.controlPoints[0]),o.push(this.controlPoints[1]);for(var a=this._findPos(this.lineLength*t,n),s=1;s<=a.pos;s++)o.push(n[s]);return o.push(a.pts),this.animationGOFeature.setLatLngs(L.Util.superMapPointsToLatLngs(o)),!0},_execute_1006:function(t){if(0===this.controlPoints.length){var e=L.Util.latLngsToSuperMapPoints(this.goFeature.getLatLngs());this.controlPoints=SuperMap.Plot.PlottingUtil.operateControlPoints(e)}if(0===t)return this._executeAndRatioIsZero(),!0;var i=this.controlPoints;if(4!=i.length)return!1;var o=i[0],n=i[1],l=i[2],a=i[3],s=SuperMap.Plot.PlottingUtil.distance(o,a),r=SuperMap.Plot.PlottingUtil.distance(n,l),u=SuperMap.Plot.PlottingUtil.linePnt(o,a,s*t),p=SuperMap.Plot.PlottingUtil.linePnt(n,l,r*t),h=[];return h.push(o),h.push(n),h.push(p),h.push(u),null!==this.animationGOFeature.superMapAlgoSymbol&&this.animationGOFeature.superMapAlgoSymbol.hasOwnProperty("m_bIsAnimation")&&(this.animationGOFeature.superMapAlgoSymbol.m_bIsAnimation=!0),this.animationGOFeature.setLatLngs(L.Util.superMapPointsToLatLngs(h)),this.animationGOFeature.superMapAlgoSymbol.m_bIsAnimation=!1,!0},_execute_1002:function(t){if(0===this.lineLength&&(this.controlPoints=L.Util.latLngsToSuperMapPoints(this.goFeature.getLatLngs()),this.lineLength=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints)),0===t)return this._executeAndRatioIsZero(),!0;for(var e=[],i=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=this._findPos(this.lineLength*t,i),n=0;n<=o.pos;n++)e.push(i[n]);e.push(o.pts);var l=[];return e.length<3&&(l.push(e[0].clone()),l.push(new SuperMap.Geometry.Point((e[0].x+e[1].x)/2,(e[0].y+e[1].y)/2)),l.push(e[1].clone()),e=l),SuperMap.Plot.AlgoSymbolFactory.isAccessServer(this.animationGOFeature.libID,this.animationGOFeature.code)&&this.goFeature.symbolData.algoMinEditPts>e.length?(this._executeAndRatioIsZero(),!0):(this.animationGOFeature.setLatLngs(L.Util.superMapPointsToLatLngs(e)),!0)},_execute_Generalization:function(t){if(0===this.lineLength&&(this.controlPoints=L.Util.latLngsToSuperMapPoints(this.goFeature.getLatLngs()),this.lineLength=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints)),0===t)return this._executeAndRatioIsZero(),!0;for(var e=[],i=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=this._findPos(this.lineLength*t,i),n=0;n<=o.pos;n++)e.push(i[n]);return e.push(o.pts),SuperMap.Plot.AlgoSymbolFactory.isAccessServer(this.animationGOFeature.libID,this.animationGOFeature.code)&&this.goFeature.symbolData.algoMinEditPts>e.length?(this._executeAndRatioIsZero(),!0):(this.animationGOFeature.latLngs=L.Util.superMapPointsToLatLngs(e),this.animationGOFeature.redraw(),!0)},_execute_Rect:function(t){0===this.controlPoints.length&&(this.controlPoints=L.Util.latLngsToSuperMapPoints(this.goFeature.getLatLngs()));var e=new SuperMap.Geometry.Point((this.controlPoints[0].x+this.controlPoints[1].x)/2,(this.controlPoints[0].y+this.controlPoints[1].y)/2),i=Math.abs(this.controlPoints[0].x-this.controlPoints[1].x)/2*t,o=Math.abs(this.controlPoints[0].y-this.controlPoints[1].y)/2*t,n=new SuperMap.Geometry.Point(e.x-i,e.y+o),l=new SuperMap.Geometry.Point(e.x+i,e.y-o);return this.animationGOFeature.setLatLngs(L.Util.superMapPointsToLatLngs([n,l])),!0},_execute_Circle:function(t){0===this.controlPoints.length&&(this.controlPoints=L.Util.latLngsToSuperMapPoints(this.goFeature.getLatLngs()));var e=this.controlPoints[0].clone(),i=t*Math.sqrt((this.controlPoints[0].x-this.controlPoints[1].x)*(this.controlPoints[0].x-this.controlPoints[1].x)+(this.controlPoints[0].y-this.controlPoints[1].y)*(this.controlPoints[0].y-this.controlPoints[1].y));return this.animationGOFeature.setLatLngs(L.Util.superMapPointsToLatLngs([e,new SuperMap.Geometry.Point(e.x+i,e.y)])),!0},_execute_Kidney:function(t){if(0===this.controlPoints.length&&(this.controlPoints=L.Util.latLngsToSuperMapPoints(this.goFeature.getLatLngs())),0===t)return this._executeAndRatioIsZero(),!0;var e=[],i=this.controlPoints.length,o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(this.controlPoints);if(null===o)return this._executeAndRatioIsZero(),!0;for(var n=0;n<i;n++){var l=SuperMap.Plot.PlottingUtil.distance(o,this.controlPoints[n]),a=l*t;if(a>l)return!1;var s=SuperMap.Plot.PlottingUtil.linePnt(o,this.controlPoints[n],a);e.push(s)}return this.animationGOFeature.setLatLngs(L.Util.superMapPointsToLatLngs(e)),!0},_execute_RegularPloygon:function(t){if(0===this.controlPoints.length&&(this.controlPoints=L.Util.latLngsToSuperMapPoints(this.goFeature.getLatLngs())),0===t)return this._executeAndRatioIsZero(),!0;var e=this.controlPoints.length,i=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[this.controlPoints.length-1])*t,o=new SuperMap.Geometry.Point(this.controlPoints[0].x+i,this.controlPoints[0].y),n=2*Math.PI/(e+1),l=Math.PI/2+this.animationGOFeature.dRotate,a=o;SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],l,a);var s=[];s.push(this.controlPoints[0].clone()),s.push(a);for(var r=a.clone(),u=1;u<e-1;u++)SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],n,r),s.push(r.clone());return this.animationGOFeature.setLatLngs(L.Util.superMapPointsToLatLngs(s)),!0},_execute_Ellipse:function(t){0===this.controlPoints.length&&(this.controlPoints=L.Util.latLngsToSuperMapPoints(this.goFeature.getLatLngs()));var e=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(t,this.controlPoints[0],this.controlPoints[1]),i=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(t,this.controlPoints[0],this.controlPoints[2]);return this.animationGOFeature.latLngs[1]=L.latLng(e.y,e.x),this.animationGOFeature.latLngs[2]=L.latLng(i.y,i.x),this.animationGOFeature.redraw(),!0},_execute_ArbitraryPolygon:function(t){0===this.controlPoints.length&&(this.controlPoints=L.Util.latLngsToSuperMapPoints(this.goFeature.getLatLngs()));var e=this.controlPoints.length,i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(this.controlPoints);if(null===i)return this._executeAndRatioIsZero(),!0;for(var o=[],n=0;n<e;n++){var l=SuperMap.Plot.PlottingUtil.distance(i,this.controlPoints[n])*t,a=SuperMap.Plot.PlottingUtil.linePnt(i,this.controlPoints[n],l);o.push(a)}return this.animationGOFeature.setLatLngs(L.Util.superMapPointsToLatLngs(o)),!0},_execute_ParallelLine:function(t){if(0===this.lineLength){this.controlPoints=L.Util.latLngsToSuperMapPoints(this.goFeature.getLatLngs());for(var e=2;e<this.controlPoints.length;e++)this.lineLength+=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[e-1],this.controlPoints[e])}for(var i=[],o=[],n=1;n<this.controlPoints.length;n++)o.push(this.controlPoints[n].clone());var l=this._findPos(this.lineLength*t,o);i.push(this.controlPoints[0].clone());for(var a=0;a<=l.pos;a++)i.push(o[a]);return i.push(l.pts),this.animationGOFeature.setLatLngs(L.Util.superMapPointsToLatLngs(i)),!0},_execute_Polybezier:function(t){if(0===this.lineLength){this.controlPoints=L.Util.latLngsToSuperMapPoints(this.goFeature.getLatLngs());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(this.controlPoints);this.lineLength+=SuperMap.Plot.PlottingUtil.polylineDistance(e)}var i=[];e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(this.controlPoints,[]);for(var o=this._findPos(this.lineLength*t,e),n=0;n<=o.pos;n++)i.push(e[n].clone());return i.push(o.pts),this.animationGOFeature.setLatLngs(L.Util.superMapPointsToLatLngs(i)),!0},_execute_CurveEight:function(t){0===this.controlPoints.length&&(this.controlPoints=L.Util.latLngsToSuperMapPoints(this.goFeature.getLatLngs()));for(var e=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(this.controlPoints),i=[],o=0;o<this.controlPoints.length;o++){var n=SuperMap.Plot.PlottingUtil.distance(e,this.controlPoints[o])*t,l=SuperMap.Plot.PlottingUtil.linePnt(e,this.controlPoints[o],n);i.push(l)}return this.animationGOFeature.setLatLngs(L.Util.superMapPointsToLatLngs(i)),!0},_execute_AnnotationFrame:function(t){if(0===this.lineLength&&(this.controlPoints=L.Util.latLngsToSuperMapPoints(this.goFeature.getLatLngs()),this.lineLength=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints)),0===t)return this._executeAndRatioIsZero(),!0;var e=[],i=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(this.goFeature.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXTBOX||this.goFeature.symbolType===SuperMap.Plot.SymbolType.LINEMARKING){var o=[];o.push(this.controlPoints[0]),o.push(new SuperMap.Geometry.Point(this.goFeature.scaleValues[1],this.goFeature.scaleValues[2]));var n=SuperMap.Plot.PlottingUtil.polylineDistance(o),l=this._findPos(n*t,o);this.animationGOFeature.scaleValues[1]=l.pts.x,this.animationGOFeature.scaleValues[2]=l.pts.y}else for(var a=this.goFeature.scaleValues.length/2,s=0;s<a;s++){var r=[];r.push(this.controlPoints[0]),r.push(new SuperMap.Geometry.Point(this.goFeature.scaleValues[2*s],this.goFeature.scaleValues[2*s+1]));var u=SuperMap.Plot.PlottingUtil.polylineDistance(r),p=this._findPos(u*t,r);this.animationGOFeature.scaleValues[2*s]=p.pts.x,this.animationGOFeature.scaleValues[2*s+1]=p.pts.y}for(var h=this._findPos(this.lineLength*t,i),c=0;c<=h.pos;c++)e.push(i[c]);return e.push(h.pts),this.animationGOFeature.latLngs=L.Util.superMapPointsToLatLngs(e),this.animationGOFeature.redraw(),!0},_executeAndRatioIsZero:function(){this.animationGOFeature.setLatLngs([]),this.animationGOFeature.grow=SuperMap.Plot.AlgoSymbolFactory.isAccessServer(this.animationGOFeature.libID,this.animationGOFeature.code)},resetAnimationFeature:function(t){o.GOAnimation.prototype.resetAnimationFeature.call(this,t),this.lineLength=0,this.controlPoints=[],this.startScale<0&&(this.startScale=0),this.startScale>1&&(this.startScale=1),this.endScale<0&&(this.endScale=0),this.endScale>1&&(this.endScale=1)},execute:function(){if(!(this.goFeature instanceof n.AlgoSymbol))return!1;if(!this.canExecute())return!1;this.endScale>1&&(this.endScale=1);var t=(new Date).getTime();if(this.lastDrawTime>0&&t-this.timeSpace<this.lastDrawTime)return!1;var e=this.startScale+this.ratio*(this.endScale-this.startScale);return this.lastDrawTime=t,this._executeAnimation(e)},_executeAnimation:function(t){var e=!1,i=this.animationGOFeature.code,o=this.animationGOFeature.libID;if(0===o)switch(i){case SuperMap.Plot.SymbolType.KIDNEY:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:case SuperMap.Plot.SymbolType.PARALLELOGRAM:case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:e=this._execute_Kidney(t);break;case SuperMap.Plot.SymbolType.CIRCLESYMBOL:e=this._execute_Circle(t);break;case SuperMap.Plot.SymbolType.RECTANGLESYMBOL:e=this._execute_Rect(t);break;case SuperMap.Plot.SymbolType.REGULARPOLYGON:e=this._execute_RegularPloygon(t);break;case SuperMap.Plot.SymbolType.ELLIPSESYMBOL:e=this._execute_Ellipse(t);break;case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:case SuperMap.Plot.SymbolType.POLYGONREGION:e=this._execute_ArbitraryPolygon(t);break;case SuperMap.Plot.SymbolType.PARALLELLINE:e=this._execute_ParallelLine(t);break;case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:e=this._execute_Polybezier(t);break;case SuperMap.Plot.SymbolType.PIESYMBOL:case SuperMap.Plot.SymbolType.CHORDSYMBOL:case SuperMap.Plot.SymbolType.ARCSYMBOL:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:return!1;case SuperMap.Plot.SymbolType.CURVEEIGHT:e=this._execute_CurveEight(t);break;case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:case SuperMap.Plot.SymbolType.LINEMARKING:e=this._execute_AnnotationFrame(t);break;default:e=this._execute_Generalization(t)}else if(22===o)switch(i){case 1004:case 2004:case 1010:e=this._execute_1004(t);break;case 1006:case 2006:e=this._execute_1006(t);break;case 1002:case 2002:e=this._execute_1002(t);break;case 32:case 3211:e=this._execute_ArbitraryPolygon(t);break;case 390:case 3911:e=this._execute_Kidney(t);break;default:e=this._execute_Generalization(t)}else if(100===o)switch(i){case 25200:e=this._execute_1004(t);break;default:e=this._execute_Generalization(t)}else if(421===o)switch(i){case 311:e=this._execute_1004(t);break;case 317:e=this._execute_1006(t);break;default:e=this._execute_Generalization(t)}else if(123===o)switch(i){case 60310:case 6031001:e=this._execute_1004(t);break;default:e=this._execute_Generalization(t)}else e=this._execute_Generalization(t);return this.animationGOFeature.grow=SuperMap.Plot.AlgoSymbolFactory.isAccessServer(this.animationGOFeature.libID,this.animationGOFeature.code),e},_findPos:function(t,e){var i,o=0,n=0;for(i=1;i<e.length&&!(o+(n=SuperMap.Plot.PlottingUtil.distance(e[i-1],e[i]))>=t);i++)o+=n;var l,a=new Object;return l=i<e.length?SuperMap.Plot.PlottingUtil.findPoint(e[i-1],e[i],t-o,0):e[i-1].clone(),a.pos=i-1,a.pts=l,a},getJSONData:function(){var t=o.GOAnimation.prototype.getJSONData.call(this);return t.startScale=this.startScale,t.endScale=this.endScale,t},fromJSONData:function(t){o.GOAnimation.prototype.fromJSONData.call(this,t),this.startScale=t.startScale,this.endScale=t.endScale}});L.supermap.plotting.GOAnimationGrow=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GOAnimationBlink=void 0,i(0);var o=i(2),n=e.GOAnimationBlink=o.GOAnimation.extend({blinkInterval:500,blinkStyle:SuperMap.Plot.BlinkAnimationBlinkStyle.Blink_Frequency,blinkNumber:0,replaceStyle:SuperMap.Plot.BlinkAnimationReplaceStyle.Replace_NoColor,startColor:"#0000ff",endColor:"#ff0000",getGOAnimationType:function(){return SuperMap.Plot.GOAnimationType.ANIMATION_BLINK},execute:function(){if(!this.canExecute())return"none"===this.goFeature.style.display&&"none"===this.animationGOFeature.style.display&&(this.animationGOFeature.style.display="display",!0);var t=(new Date).getTime()/1e3,e=this.blinkInterval/1e3;return this.blinkStyle===SuperMap.Plot.BlinkAnimationBlinkStyle.Blink_Number&&(e=this.blinkInterval=this.duration/this.blinkNumber),(t-this.innerStartTime)%e<=e/2?this.replaceStyle===SuperMap.Plot.BlinkAnimationReplaceStyle.Replace_Color?(this.animationGOFeature.style.color=this.startColor,this.animationGOFeature.style.display="display"):this.animationGOFeature.style.display="none":(this.animationGOFeature.style.display="display",this.replaceStyle===SuperMap.Plot.BlinkAnimationReplaceStyle.Replace_Color&&(this.animationGOFeature.style.color=this.endColor)),this.animationGOFeature.redraw(),!0},getJSONData:function(){var t=o.GOAnimation.prototype.getJSONData.call(this);return t.blinkStyle=this.blinkStyle,t.blinkInterval=this.blinkInterval,t.blinkNumber=this.blinkNumber,t.replaceStyle=this.replaceStyle,t.startColor=this.startColor,t.endColor=this.endColor,t},fromJSONData:function(t){o.GOAnimation.prototype.fromJSONData.call(this,t),this.blinkStyle=t.blinkStyle,this.blinkInterval=t.blinkInterval,this.blinkNumber=t.blinkNumber,this.replaceStyle=t.replaceStyle,this.startColor=t.startColor,this.endColor=t.endColor}});L.supermap.plotting.GOAnimationBlink=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GOAnimationAttribute=void 0,i(0);var o=i(2),n=e.GOAnimationAttribute=o.GOAnimation.extend({lineColorAnimation:!1,startLineColor:"#FF0000",endLineColor:"#0000FF",lineWidthAnimation:!1,startLineWidth:0,endLineWidth:5,surroundLineColorAnimation:!1,startSurroundLineColor:"#ffff00",endSurroundLineColor:"#00ffff",surroundLineWidthAnimation:!1,startSurroundLineWidth:0,endSurroundLineWidth:1,getGOAnimationType:function(){return SuperMap.Plot.GOAnimationType.ANIMATION_ATTRIBUTE},resetAnimationFeature:function(t){o.GOAnimation.prototype.resetAnimationFeature.call(this,t),t&&(this.animationGOFeature.style.color=this.startLineColor,this.animationGOFeature.style.weight=this.startLineWidth,this.animationGOFeature.style.surroundLineColor=this.startSurroundLineColor,this.animationGOFeature.style.surroundLineWidth=this.startSurroundLineWidth)},execute:function(){if(!this.canExecute())return!1;var t=this.ratio,e=this._executeLineColorAnimation(t),i=this._executeLineWidthAnimation(t),o=this._executeSurroundLineColorAnimation(t),n=this._executeSurroundLineWidthAnimation(t);return e||i||o||n},_executeLineColorAnimation:function(t){if(!this.lineColorAnimation)return!1;var e=SuperMap.Plot.PlottingUtil.colorStringToRGB(this.startLineColor),i=SuperMap.Plot.PlottingUtil.colorStringToRGB(this.endLineColor),o=parseInt(e.red+(i.red-e.red)*t),n=parseInt(e.green+(i.green-e.green)*t),l=parseInt(e.blue+(i.blue-e.blue)*t);return this.animationGOFeature.setStyle({color:SuperMap.Plot.PlottingUtil.colorRGBToString({red:o,green:n,blue:l})}),!0},_executeLineWidthAnimation:function(t){return!!this.lineWidthAnimation&&(this.animationGOFeature.setStyle({weight:this.startLineWidth+(this.endLineWidth-this.startLineWidth)*t}),!0)},_executeSurroundLineColorAnimation:function(t){if(!this.surroundLineColorAnimation)return!1;var e=SuperMap.Plot.PlottingUtil.colorStringToRGB(this.startSurroundLineColor),i=SuperMap.Plot.PlottingUtil.colorStringToRGB(this.endSurroundLineColor),o=parseInt(e.red+(i.red-e.red)*t),n=parseInt(e.green+(i.green-e.green)*t),l=parseInt(e.blue+(i.blue-e.blue)*t);return this.animationGOFeature.setStyle({surroundLineColor:SuperMap.Plot.PlottingUtil.colorRGBToString({red:o,green:n,blue:l})}),!0},_executeSurroundLineWidthAnimation:function(t){return!!this.surroundLineWidthAnimation&&(this.animationGOFeature.setStyle({surroundLineWidth:this.startSurroundLineWidth+(this.endSurroundLineWidth-this.startSurroundLineWidth)*t}),!0)},getJSONData:function(){var t=o.GOAnimation.prototype.getJSONData.call(this);return t.lineColorAnimation=this.lineColorAnimation,t.startLineColor=this.startLineColor,t.endLineColor=this.endLineColor,t.lineWidthAnimation=this.lineWidthAnimation,t.startLineWidth=this.startLineWidth,t.endLineWidth=this.endLineWidth,t.surroundLineColorAnimation=this.surroundLineColorAnimation,t.startSurroundLineColor=this.startSurroundLineColor,t.endSurroundLineColor=this.endSurroundLineColor,t.surroundLineWidthAnimation=this.surroundLineWidthAnimation,t.startSurroundLineWidth=this.startSurroundLineWidth,t.endSurroundLineWidth=this.endSurroundLineWidth,t},fromJSONData:function(t){o.GOAnimation.prototype.fromJSONData.call(this,t),this.lineColorAnimation=t.lineColorAnimation,this.startLineColor=t.startLineColor,this.endLineColor=t.endLineColor,this.lineWidthAnimation=t.lineWidthAnimation,this.startLineWidth=t.startLineWidth,this.endLineWidth=t.endLineWidth,this.surroundLineColorAnimation=t.surroundLineColorAnimation,this.startSurroundLineColor=t.startSurroundLineColor,this.endSurroundLineColor=t.endSurroundLineColor,this.surroundLineWidthAnimation=t.surroundLineWidthAnimation,this.startSurroundLineWidth=t.startSurroundLineWidth,this.endSurroundLineWidth=t.endSurroundLineWidth}});L.supermap.plotting.GOAnimationAttribute=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.avoidRegion=e.AvoidRegion=void 0,i(0);var o=i(10),n=i(7),l=e.AvoidRegion=L.Evented.extend({options:{},uuid:null,associatedUuid:null,libID:null,code:null,maxEditPts:0,minEditPts:0,symbolType:null,latLngs:[],style:{fill:!1,color:"#0000ff",lineSymbolID:2,opacity:1,weight:1},components:[],initialize:function(t,e,i,o){this.components=[],this.minEditPts=3,this.maxEditPts=9999,this.libID=0,this.code=SuperMap.Plot.SymbolType.AVOIDREGION,this.symbolType=SuperMap.Plot.SymbolType.AVOIDREGION,this.symbolName="避让区域",o.style&&(this.style=SuperMap.Plot.PlottingUtil.cloneObject(o.style)),o&&o.symbolData&&this._parseSymbolData(o.symbolData),L.Util.isArray(i)||(i=[i]),i.length>0&&(this.latLngs=L.Util.isArray(i)?i:[i]),SuperMap.Util.extend(this,o),void 0!==this.uuid&&null!==this.uuid||(this.uuid=SuperMap.Plot.PlottingUtil.generateUuid())},destroy:function(){this.libID=null,this.code=null,this.symbolType=null,this.symbolName=null,this.uuid=null,this.associatedUuid=null,this.minEditPts=null,this.maxEditPts=null,this.latLngs=null,this.components=[]},onAdd:function(t){this.layer=t,this._renderer=t._renderer,this._map=t._map,this.redraw(),o.PlottingObjectDrag&&(this.dragging||(this.dragging=new o.PlottingObjectDrag(this)))},_clearComponents:function(){for(var t=0;t<this.components.length;t++)this.components[t].removeEventParent(this),this.components[t].onRemove(),delete this.components[t];this.components=[]},_addComponents:function(t){t._map=this._map,t._renderer=this._renderer,t.addEventParent(this),t.onAdd(),this.components.push(t)},_project:function(){var t=this;t._pxBounds=L.bounds(L.point(0,0),L.point(0,0)),t.components.map(function(e){return t._pxBounds.extend(e._pxBounds.min),t._pxBounds.extend(e._pxBounds.max),e})},getBounds:function(){var t=this;return t._bounds=new L.LatLngBounds,t.components.map(function(e){return t._bounds.extend(e.getBounds()),e}),t._bounds},setLatLngs:function(t){return this.latLngs=t,this.redraw()},getLatLngs:function(){return this.latLngs},addLatLng:function(t){if(this.latLngs[this.latLngs.length-1].lat!==t.lat||this.latLngs[this.latLngs.length-1].lng!==t.lng)return this.latLngs.push(t),this.redraw()},redraw:function(){if(this._clearComponents(),this.getLatLngs().length>=this.minEditPts){var t=new L.Polygon(this.getLatLngs(),{smoothFactor:.05});this._addComponents(t),t.setStyle(this.style)}else if(this.getLatLngs().length>=2&&this.getLatLngs().length<this.minEditPts){var e=new L.Polyline(this.getLatLngs(),{smoothFactor:.05});this._addComponents(e),e.setStyle(this.style)}},_modifyPoint:function(){this.redraw(),this._map.getFeatureByUuid(this.associatedUuid).redraw()},move:function(t,e){(L.Util.moveLatLngs(this.getLatLngs(),t,e),this.redraw(),null!==this._map&&void 0!==this._map)&&this._map.getFeatureByUuid(this.associatedUuid).redraw()},rotate:function(t,e){(L.Util.rotateLatLngs(this.getLatLngs(),e,t),null!==this._map&&void 0!==this._map)&&this._map.getFeatureByUuid(this.associatedUuid).redraw()},_reView:function(){},_parseSymbolData:function(t){if(null!==t&&(this.libID=t.libID,this.code=t.code,this.symbolType=t.symbolType,this.maxEditPts=t.algoMaxEditPts,this.minEditPts=t.algoMinEditPts,void 0!==t.uuid&&(this.uuid=t.uuid),void 0!==t.associatedUuid&&(this.associatedUuid=t.associatedUuid),this.latLngs=[],t.controlPoints))for(var e=0;e<t.controlPoints.length;e++)this.latLngs.push(L.latLng(t.controlPoints[e].y,t.controlPoints[e].x))},getSymbolData:function(){var t={};t.uuid=this.uuid,t.associatedUuid=this.associatedUuid,t.libID=this.libID,t.code=this.code,t.symbolType=this.symbolType,t.algoMaxEditPts=this.maxEditPts,t.algoMinEditPts=this.minEditPts,t.controlPoints=[];for(var e=0;e<this.latLngs.length;e++)t.controlPoints.push({x:this.getLatLngs()[e].lng,y:this.getLatLngs()[e].lat,z:0});return t},clone:function(){var t=SuperMap.Plot.PlottingUtil.cloneObject(this.getSymbolData());return t.uuid=SuperMap.Plot.PlottingUtil.generateUuid(),L.supermap.plotting.avoidRegion(0,SuperMap.Plot.SymbolType.AVOIDREGION,L.Util.cloneLatLngs(this.getLatLngs()),{symbolData:t,style:SuperMap.Plot.PlottingUtil.cloneObject(this.style)})},_containsPoint:function(t){var e=L.Util.latLngsToSuperMapPoints(this.getLatLngs());e.push(e[0].clone());var i=SuperMap.Number.limitSigDigs,o=i(t.x,14),n=i(t.y,14);function l(t,e,i,o,n){return(o-e)/(n-i)*(t-n)+o}for(var a,s,r,u,p,h,c,y=e.length-1,f=0,S=0;S<y;++S)if(r=i((a=e[S]).x,14),u=i(a.y,14),p=i((s=e[S+1]).x,14),u!==(h=i(s.y,14))){if((c=i(l(n,r,u,p,h),14))===o&&(u<h&&n>=u&&n<=h||u>h&&n<=u&&n>=h)){f=-1;break}c<=o||r!==p&&(c<Math.min(r,p)||c>Math.max(r,p))||(u<h&&n>=u&&n<h||u>h&&n<u&&n>=h)&&++f}else if(n===u&&(r<=p&&o>=r&&o<=p||r>=p&&o<=r&&o>=p)){f=-1;break}return-1===f?1:!!(1&f)},_relationToLayer:function(t){var e=2,i=[];if(t instanceof L.Polygon)(i=L.Util.latLngsToSuperMapPoints(t.getLatLngs()[0])).push(i[0].clone());else if(t instanceof L.Polyline)i=L.Util.latLngsToSuperMapPoints(t.getLatLngs());else if(t instanceof n.Text){var o=t.getBounds();i.push(new SuperMap.Geometry.Point(o.left,o.top)),i.push(new SuperMap.Geometry.Point(o.left,o.bottom)),i.push(new SuperMap.Geometry.Point(o.right,o.bottom)),i.push(new SuperMap.Geometry.Point(o.top,o.right))}if(0===i.length)e=2;else{var l=this._containsPoint(i[0]);l&&(e=1);for(var a=1;a<i.length;a++)if(l!==this._containsPoint(i[a])){e=0;break}if(2===e){var s=L.Util.latLngsToSuperMapPoints(this.getLatLngs());s.push(s[0].clone());for(var r=0;r<i.length-1;r++){for(var u=0;u<s.length-1;u++)if(SuperMap.Plot.PlottingUtil.isCross(i[r],i[r+1],s[u],s[u+1])){e=0;break}if(0===e)break}}}return e},_getWithoutPts:function(t,e){var i=L.Util.latLngsToSuperMapPoints(t);!0===e&&i[0].x!==i[i.length-1].x&&i[0].y!==i[i.length-1].y&&i.push(i[0]);for(var o=[],n=[],l=0;l<i.length;l++)if(this._containsPoint(i[l])||n.push(i[l].clone()),l<=i.length-2)for(var a=this._intersectSegs(i[l],i[l+1]),s=0;s<a.length;s++)n.push(a[s].clone()),n.length>1&&(o.push(n),n=[]);0!==n.length&&o.push(n);var r=o.length;if(!0===e&&r>1&&SuperMap.Plot.PlottingUtil.equalFuzzy(o[0][0].x,o[r-1][o[r-1].length-1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(o[0][0].y,o[r-1][o[r-1].length-1].y)){for(var u=0;u<o[0].length;u++)o[r-1].push(o[0][u]);o.splice(0,1)}return o},_intersectSegs:function(t,e){var i=L.Util.latLngsToSuperMapPoints(this.getLatLngs());i.push(i[0].clone()),i[0].x!==i[i.length-1].x&&i[0].y!==i[i.length-1].y&&i.push(i[0]);for(var o=[],n=0;n<i.length-1;n++){var l=new SuperMap.Geometry.Point;SuperMap.Plot.PlottingUtil.intersectLineSegs(t,e,i[n],i[n+1],l)&&o.push(l)}for(var a=[];o.length>0;)if(1===o.length)a.push(o[0]),o.splice(0,1);else{for(var s=0,r=SuperMap.Plot.PlottingUtil.distance(t,o[0]),u=1;u<o.length;u++)SuperMap.Plot.PlottingUtil.distance(t,o[u])<r&&(r=SuperMap.Plot.PlottingUtil.distance(t,o[u]),s=u);a.push(o[s]),o.splice(s,1)}return a}}),a=e.avoidRegion=function(t,e,i,o){return new l(t,e,i,o)};L.supermap.plotting.avoidRegion=a,L.supermap.plotting.AvoidRegion=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.PlottingGraphic=L.Class.extend({options:{graphicWidth:0,graphicHeight:0},initialize:function(t){t=t||{},this._latlng=t._latlng,this._image=t._image,this._uuid=t._uuid},setLatLng:function(t){this._latlng=t},setImage:function(t){this._image=t},setUuid:function(t){this._uuid=t},getLatLng:function(){return this._latlng},getImage:function(){return this._image},getUuid:function(){return this._uuid},updateImage:function(){this.layer.updateGraphics(this)}})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dotSymbolStyle=e.DotSymbolStyle=void 0;var o=i(7),n=i(16),l=e.DotSymbolStyle=L.Class.extend({feature:null,options:{extent:0},initialize:function(t,e){this.feature=t,e=e||{},L.Util.setOptions(this,e),this.canvasEle=document.createElement("canvas"),this.canvasEle.width=0,this.canvasEle.height=0,this._ctx=this.canvasEle.getContext("2d")},render:function(){this._computeImageSize(),this.canvasEle.width=this.size[0],this.canvasEle.height=this.size[1],this._ctx.clearRect(0,0,this.canvasEle.width,this.canvasEle.height),this.canvas=this._ctx.canvas,this._drawFeatures()},getCacheInfo:function(){return{canvas:this.canvas,anchor:this.anchor,size:this.size}},_computeImageSize:function(){var t=this.feature.getBoundsWithText(),e=new L.Bounds;e.extend(this.feature._map.latLngToLayerPoint(t.getNorthEast())),e.extend(this.feature._map.latLngToLayerPoint(t.getNorthWest())),e.extend(this.feature._map.latLngToLayerPoint(t.getSouthEast())),e.extend(this.feature._map.latLngToLayerPoint(t.getSouthWest())),this.leftTopPixel=L.point(e.min.x,e.min.y);var i=e.getSize(),o=this.feature.style.weight;i.x+=o+this.options.extent,i.y+=o+this.options.extent,this.anchor=this._latlngToLayerPoint(this.feature.getLatLngs())[0],this.size=[i.x,i.y]},_latlngToLayerPoint:function(t){for(var e=[],i=0;i<t.length;i++){var o=this.feature._map.latLngToLayerPoint(t[i]);o.x=o.x-this.leftTopPixel.x+(this.feature.style.weight+this.options.extent)/2,o.y=o.y-this.leftTopPixel.y+(this.feature.style.weight+this.options.extent)/2,e.push(o)}return e},_drawFeatures:function(){for(var t in this._ctx.translate(0,0),this.feature.components){var e=this.feature.components[t];n.PointImage&&e instanceof n.PointImage?this._drawImage(e):o.Text&&e instanceof o.Text?this._drawText(e):L.Rectangle&&e instanceof L.Rectangle?this._drawRectangle(e):L.Polygon&&e instanceof L.Polygon?this._drawPolygon(e):L.Polyline&&e instanceof L.Polyline&&this._drawPolyline(e)}},_drawPolyline:function(t){var e=this._latlngToLayerPoint(t.getLatLngs()),i=t.options;this._ctx.beginPath(),this._ctx.globalAlpha=i.opacity;var o=this._addDashArray(t);0!==o.length&&this._ctx.setLineDash(o),this._ctx.moveTo(e[0].x,e[0].y);for(var n=1,l=e.length;n<l;n++)this._ctx.lineTo(e[n].x,e[n].y);i.fill&&(this._ctx.globalCompositeOperation=!0===Boolean(this.feature.surroundLineType)?"destination-over":"source-over"),this._ctx.globalAlpha=i.opacity,this._ctx.strokeStyle=i.color,this._ctx.lineWidth=i.weight,this._ctx.stroke()},_drawRectangle:function(t){var e=this._latlngToLayerPoint(t.getLatLngs()[0]),i=t.options;this._ctx.beginPath(),this._ctx.globalAlpha=!0===i.fill?i.fillOpacity:i.opacity;var o=this._addDashArray(t);0!==o.length&&this._ctx.setLineDash(o),i.fill&&(this._ctx.globalCompositeOperation=!0===Boolean(this.feature.surroundLineType)?"destination-over":"source-over",this._ctx.fillStyle=SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillColor,this.feature.style.fillOpacity),this._ctx.fill()),this._ctx.strokeStyle=i.color,this._ctx.lineWidth=i.weight,this._ctx.strokeRect(e[0].x,e[0].y,e[1].x-e[0].x,e[1].y-e[0].y)},_drawPolygon:function(t){var e=this._latlngToLayerPoint(t.getLatLngs()[0]),i=t.options;this._ctx.beginPath(),this._ctx.globalAlpha=!0===i.fill?i.fillOpacity:i.opacity,this._ctx.setLineDash(this._addDashArray(t)),this._ctx.moveTo(e[0].x,e[0].y);for(var o=1,n=e.length;o<n;o++){var l=e[o].x,a=e[o].y;this._ctx.lineTo(l,a)}this._ctx.closePath(),i.fill&&(this._ctx.globalCompositeOperation=!0===Boolean(this.feature.surroundLineType)?"destination-over":"source-over",i.fillLimit?this._ctx.fillStyle=SuperMap.Plot.PlottingUtil.colorRGBA(i.color,i.opacity):this._ctx.fillStyle=i.fillColor,this._ctx.fill(i.fillRule||"evenodd")),this._ctx.strokeStyle=i.color,this._ctx.lineWidth=i.weight,this._ctx.stroke()},_drawText:function(t){var e=this._latlngToLayerPoint(t.getLatLngs())[0],i=t.options,o=(i=SuperMap.Util.extend({fontColor:"#000000",labelAlign:"cm"},i)).fontSize.toLocaleString()+"px",n=[i.fontStyle?i.fontStyle:"normal","normal",i.fontWeight?i.fontWeight:"normal",i.fontSize?o:"1em",i.fontFamily?i.fontFamily:"sans-serif"].join(" ");this._ctx.globalAlpha=i.fontOpacity,this._ctx.fillStyle=SuperMap.Plot.PlottingUtil.colorRGBA(i.fontColor,i.fontOpacity),this._ctx.font=n,this._ctx.fillText&&(this._ctx.textAlign=L.Canvas.LABEL_ALIGN[i.labelAlign[0]]||"center"),this._ctx.textBaseline=L.Canvas.LABEL_ALIGN[i.labelAlign[1]]||"middle",this._ctx.fillText(i.text,e.x,e.y)},_drawImage:function(t){var e=this,i=this._latlngToLayerPoint(t.getLatLngs())[0],o=t.options,n=new Image;n.src=o.externalGraphic,o.graphicTitle&&(n.title=o.graphicTitle),n.onload=function(){(function(){var t=this.style,i=t.graphicWidth||t.graphicHeight,o=t.graphicHeight||t.graphicWidth;i=i||2*t.pointRadius,o=o||2*t.pointRadius;var n=void 0!==t.graphicXOffset?t.graphicXOffset:-.5*i,l=void 0!==t.graphicYOffset?t.graphicYOffset:-.5*o,a=t.graphicOpacity||t.fillOpacity,s=this.point,r=s.x,u=s.y;if(!isNaN(r)&&!isNaN(u)){var p;e._ctx.save(),t.rotation&&(p=t.rotation/180*Math.PI),e._ctx.translate(r,u),p&&e._ctx.rotate(p),e._ctx.translate(n,l),e._ctx.globalAlpha=a;var h=L.Canvas.drawImageScaleFactor||(L.Canvas.drawImageScaleFactor=/android 2.1/.test(navigator.userAgent.toLowerCase())?320/window.screen.width:1);e._ctx.drawImage(this.img,0,0,i*h,o*h),e._ctx.restore()}}).call({point:i,style:o,img:n}),n.onload=null},window.ActiveXObject||"ActiveXObject"in window?n.onload():n.complete&&n.onload()},_addDashArray:function(t){if(null===t||null===t.options.dashArray||void 0===t.options.dashArray||0===t.options.dashArray.length)return[0,0];var e=[];return t.options.dashArray.split(",").map(function(t,i,o){return e.push(parseFloat(o[i])),e}),e}}),a=e.dotSymbolStyle=function(t){return new l(t)};L.supermap.plotting.dotSymbolStyle=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicAlgoSymbolFactory=void 0,i(126);e.BasicAlgoSymbolFactory=SuperMap.Plot.BasicAlgoSymbolFactory=SuperMap.Plot.BasicAlgoSymbolFactory||{};SuperMap.Plot.BasicAlgoSymbolFactory.getAlgoSymbol=function(t,e,i){if(0===t)switch(e){case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:return new SuperMap.Plot.GeoTooltipBox(i);case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:return new SuperMap.Plot.GeoTooltipBoxM(i);case SuperMap.Plot.SymbolType.PATHTEXT:return new SuperMap.Plot.PathText(i);case SuperMap.Plot.SymbolType.ARROWLINE:return new SuperMap.Plot.ArrowLine(i);case SuperMap.Plot.SymbolType.CURVEEIGHT:return new SuperMap.Plot.CurveEight(i);case SuperMap.Plot.SymbolType.RUNWAY:return new SuperMap.Plot.Runway(i);case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:return new SuperMap.Plot.ConcentricCircle(i);case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:return new SuperMap.Plot.CombinationalCircle(i);case SuperMap.Plot.SymbolType.FREECURVE:return new SuperMap.Plot.FreeCurve(i);case SuperMap.Plot.SymbolType.REGULARPOLYGON:return new SuperMap.Plot.RegularPolygon(i);case SuperMap.Plot.SymbolType.BRACESYMBOL:return new SuperMap.Plot.Brace(i);case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:return new SuperMap.Plot.Trapezoid(i);case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:return new SuperMap.Plot.SymbolTextBox(i);case SuperMap.Plot.SymbolType.NODECHAIN:return new SuperMap.Plot.NodeChain(i);case SuperMap.Plot.SymbolType.LINERELATION:return new SuperMap.Plot.LineRelation(i);case SuperMap.Plot.SymbolType.LINEMARKING:return new SuperMap.Plot.LineMarking(i);case SuperMap.Plot.SymbolType.POLYGONREGION:return new SuperMap.Plot.PolygonRegion(i);case SuperMap.Plot.SymbolType.WIRE:return new SuperMap.Plot.Wire(i);default:return new SuperMap.Plot.AlgoSymbol(i)}else if(22===t)switch(e){case 1001:return new SuperMap.Plot.AlgoSymbol1001(i);case 1002:return new SuperMap.Plot.AlgoSymbol1002(i);case 1003:return new SuperMap.Plot.AlgoSymbol1003(i);case 1004:return new SuperMap.Plot.AlgoSymbol1004(i);case 1005:return new SuperMap.Plot.AlgoSymbol1005(i);case 1006:return new SuperMap.Plot.AlgoSymbol1006(i);case 1007:return new SuperMap.Plot.AlgoSymbol1007(i);case 1008:return new SuperMap.Plot.AlgoSymbol1008(i);case 1009:return new SuperMap.Plot.AlgoSymbol1009(i);case 1010:return new SuperMap.Plot.AlgoSymbol1010(i);case 1011:return new SuperMap.Plot.AlgoSymbol1011(i);case 1012:return new SuperMap.Plot.AlgoSymbol1012(i);case 1013:return new SuperMap.Plot.AlgoSymbol1013(i);case 1014:return new SuperMap.Plot.AlgoSymbol1014(i);case 1015:return new SuperMap.Plot.AlgoSymbol1015(i);case 1016:return new SuperMap.Plot.AlgoSymbol1016(i);case 1017:return new SuperMap.Plot.AlgoSymbol1017(i);case 1018:return new SuperMap.Plot.AlgoSymbol1018(i);case 1019:return new SuperMap.Plot.AlgoSymbol1019(i);case 1020:return new SuperMap.Plot.AlgoSymbol1020(i);case 1021:return new SuperMap.Plot.AlgoSymbol1021(i);case 1022:return new SuperMap.Plot.AlgoSymbol1022(i);default:return null}else{if(421!==t)return null;switch(e){case 311:return new SuperMap.Plot.AlgoSymbol1004(i);case 315:return new SuperMap.Plot.AlgoSymbol315(i);case 317:return new SuperMap.Plot.AlgoSymbol1006(i);case 318:return new SuperMap.Plot.AlgoSymbol1002(i);case 319:return new SuperMap.Plot.AlgoSymbol15200(i);default:return null}}},SuperMap.Plot.BasicAlgoSymbolFactory.getSymbolWayType=function(t,e){if(0===t)switch(e){case SuperMap.Plot.SymbolType.POLYLINESYMBOL:case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:return SuperMap.Plot.AddPoint_WayType.POLYLINE;case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:return SuperMap.Plot.AddPoint_WayType.CURVE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}else if(22===t)switch(e){case 1005:case 1008:case 1012:case 1014:return SuperMap.Plot.AddPoint_WayType.CURVE;case 1007:case 1009:case 1013:case 1015:case 1017:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}},SuperMap.Plot.BasicAlgoSymbolFactory.isAccessServer=function(t,e){if(0===t||22===t)return!1;if(421!==t)return!0;switch(e){case 311:case 317:case 318:case 315:case 319:return!1;default:return!0}},SuperMap.Plot.BasicAlgoSymbolFactory.getDefaultSubSymbols=function(){return[]},SuperMap.Plot.BasicAlgoSymbolFactory.getMinEditPts=function(t,e){if(0===t)switch(e){case SuperMap.Plot.SymbolType.TEXTSYMBOL:case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:return 1;case SuperMap.Plot.SymbolType.CIRCLESYMBOL:case SuperMap.Plot.SymbolType.RECTANGLESYMBOL:case SuperMap.Plot.SymbolType.POLYLINESYMBOL:case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:case SuperMap.Plot.SymbolType.KIDNEY:case SuperMap.Plot.SymbolType.ARROWLINE:case SuperMap.Plot.SymbolType.BRACESYMBOL:case SuperMap.Plot.SymbolType.CURVEEIGHT:case SuperMap.Plot.SymbolType.FREECURVE:case SuperMap.Plot.SymbolType.LINEMARKING:case SuperMap.Plot.SymbolType.LINERELATION:case SuperMap.Plot.SymbolType.NODECHAIN:case SuperMap.Plot.SymbolType.PATHTEXT:case SuperMap.Plot.SymbolType.REGULARPOLYGON:case SuperMap.Plot.SymbolType.RUNWAY:case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:case SuperMap.Plot.SymbolType.WIRE:return 2;case SuperMap.Plot.SymbolType.ARCSYMBOL:case SuperMap.Plot.SymbolType.CHORDSYMBOL:case SuperMap.Plot.SymbolType.PIESYMBOL:case SuperMap.Plot.SymbolType.ELLIPSESYMBOL:case SuperMap.Plot.SymbolType.PARALLELOGRAM:case SuperMap.Plot.SymbolType.PARALLELLINE:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:case SuperMap.Plot.SymbolType.POLYGONREGION:case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:return 3}else if(22===t)switch(e){case 1001:case 1003:case 1005:case 1007:case 1008:case 1009:case 1011:case 1012:case 1013:case 1014:case 1015:case 1016:case 1017:case 1019:case 1020:case 1022:return 2;case 1002:case 1004:case 1006:case 1010:case 1018:case 1021:return 3}else if(421===t)switch(e){case 319:return 2;case 311:case 315:case 317:case 318:return 3}},SuperMap.Plot.BasicAlgoSymbolFactory.getMaxEditPts=function(t,e){if(0===t)switch(e){case SuperMap.Plot.SymbolType.TEXTSYMBOL:return 1;case SuperMap.Plot.SymbolType.CIRCLESYMBOL:case SuperMap.Plot.SymbolType.RECTANGLESYMBOL:case SuperMap.Plot.SymbolType.BRACESYMBOL:case SuperMap.Plot.SymbolType.LINEMARKING:case SuperMap.Plot.SymbolType.LINERELATION:case SuperMap.Plot.SymbolType.RUNWAY:case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:return 2;case SuperMap.Plot.SymbolType.ARCSYMBOL:case SuperMap.Plot.SymbolType.CHORDSYMBOL:case SuperMap.Plot.SymbolType.PIESYMBOL:case SuperMap.Plot.SymbolType.ELLIPSESYMBOL:case SuperMap.Plot.SymbolType.PARALLELOGRAM:case SuperMap.Plot.SymbolType.KIDNEY:case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:case SuperMap.Plot.SymbolType.CURVEEIGHT:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:return 3;case SuperMap.Plot.SymbolType.POLYLINESYMBOL:case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:case SuperMap.Plot.SymbolType.PARALLELLINE:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:case SuperMap.Plot.SymbolType.ARROWLINE:case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:case SuperMap.Plot.SymbolType.FREECURVE:case SuperMap.Plot.SymbolType.NODECHAIN:case SuperMap.Plot.SymbolType.PATHTEXT:case SuperMap.Plot.SymbolType.POLYGONREGION:case SuperMap.Plot.SymbolType.REGULARPOLYGON:case SuperMap.Plot.SymbolType.WIRE:return 9999}else if(22===t)switch(e){case 1003:case 1019:case 1020:case 1022:return 2;case 1006:case 1021:return 4;case 1001:case 1002:case 1004:case 1005:case 1007:case 1008:case 1009:case 1010:case 1011:case 1012:case 1013:case 1014:case 1015:case 1016:case 1017:case 1018:return 99999}else if(421===t)switch(e){case 317:return 4;case 311:case 315:case 318:case 319:return 99999}},SuperMap.Plot.BasicAlgoSymbolFactory.getDefaultStyle=function(){return{}},SuperMap.Plot.BasicAlgoSymbolFactory.zoomInCalSymbol=function(){if(22!==libID)return!1;switch(code){case 1012:case 1013:case 1014:case 1015:return!0;default:return!1}},SuperMap.Plot.BasicAlgoSymbolFactory.zoomCalSymbol=function(){return!1},SuperMap.Plot.BasicAlgoSymbolFactory.getSymbolName=function(t,e){var i="";if(0===t)switch(e){case SuperMap.Plot.SymbolType.TEXTSYMBOL:i="文本";break;case SuperMap.Plot.SymbolType.CIRCLESYMBOL:i="圆";break;case SuperMap.Plot.SymbolType.RECTANGLESYMBOL:i="矩形";break;case SuperMap.Plot.SymbolType.ARCSYMBOL:i="弧线";break;case SuperMap.Plot.SymbolType.CHORDSYMBOL:i="弓形";break;case SuperMap.Plot.SymbolType.PIESYMBOL:i="扇形";break;case SuperMap.Plot.SymbolType.ELLIPSESYMBOL:i="椭圆";break;case SuperMap.Plot.SymbolType.PARALLELOGRAM:i="平行四边形";break;case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:i="多边形";break;case SuperMap.Plot.SymbolType.POLYLINESYMBOL:i="折线";break;case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:i="贝赛尔曲线";break;case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:i="闭合贝塞尔曲线";break;case SuperMap.Plot.SymbolType.PARALLELLINE:i="平行线";break;case SuperMap.Plot.SymbolType.KIDNEY:i="集结地";break;case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:i="注记指示框";break;case SuperMap.Plot.SymbolType.ARROWLINE:i="箭头线";break;case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:i="组合圆";break;case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:i="同心圆";break;case SuperMap.Plot.SymbolType.CURVEEIGHT:i="八字形";break;case SuperMap.Plot.SymbolType.FREECURVE:i="自由线";break;case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:i="多角标注框";break;case SuperMap.Plot.SymbolType.LINEMARKING:i="线型标注";break;case SuperMap.Plot.SymbolType.LINERELATION:i="对象间连线";break;case SuperMap.Plot.SymbolType.NODECHAIN:i="节点链";break;case SuperMap.Plot.SymbolType.PATHTEXT:i="沿线注记";break;case SuperMap.Plot.SymbolType.POLYGONREGION:i="多边形区域管理";break;case SuperMap.Plot.SymbolType.RUNWAY:i="跑道线";break;case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:i="标注框";break;case SuperMap.Plot.SymbolType.REGULARPOLYGON:i="正多边形";break;case SuperMap.Plot.SymbolType.BRACESYMBOL:i="大括号";break;case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:i="梯形";break;case SuperMap.Plot.SymbolType.WIRE:i="铁丝网"}return i}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.GetSymbolInfoService=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i=i||{};var o,n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i)),l=n;return o=l.url.substr(l.url.length-1,1),l.url+="/"==o?"graphicObject.json?":"/graphicObject.json?",n.CLASS_NAME="SuperMap.GetSymbolInfoService",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.PlotCommonServiceBase),o(e,[{key:"destroy",value:function(){(function t(e,i,o){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,i);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,i,o)}if("value"in n)return n.value;var a=n.get;return void 0!==a?a.call(o):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(t){if(t){var e,i=this;e=SuperMap.GetSymbolInfoParameters.toUrlParameters(t),i.url+=e,t.dynamicToken&&(i.url+="&dynamicToken="+t.dynamicToken),"MSIE"===SuperMap.Browser.name.toUpperCase()&&(i.url=encodeURI(i.url)),i.request({method:"GET",params:null,scope:i,success:i.serviceProcessCompleted,failure:i.serviceProcessFailed})}}}]),e}();SuperMap.GetSymbolInfoService=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.GetSMLInfosService=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));(i=i||{})&&SuperMap.Util.extend(o,i);var n,l=o;return l.events=new SuperMap.Events(l,null,l.EVENT_TYPES,!0),l.eventListeners instanceof Object&&l.events.on(l.eventListeners),n=l.url.substr(l.url.length-1,1),l.url+="/"==n?"smlInfos":"/smlInfos",l.url+=".json",o.CLASS_NAME="SuperMap.GetSMLInfosService",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.PlotCommonServiceBase),o(e,[{key:"destroy",value:function(){(function t(e,i,o){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,i);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,i,o)}if("value"in n)return n.value;var a=n.get;return void 0!==a?a.call(o):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(t){if(t){var e=this;e.url+=SuperMap.GetSMLInfosParameters.toUrlParameters(t),e.request({method:"GET",data:null,scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}}}]),e}();SuperMap.GetSMLInfosService=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.GetLibInfoService=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));(i=i||{})&&SuperMap.Util.extend(o,i);var n,l=o;return n=l.url.substr(l.url.length-1,1),l.url+="/"==n?"symbolLibs/":"/symbolLibs/",o.CLASS_NAME="SuperMap.GetLibInfoService",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.PlotCommonServiceBase),o(e,[{key:"destroy",value:function(){(function t(e,i,o){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,i);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,i,o)}if("value"in n)return n.value;var a=n.get;return void 0!==a?a.call(o):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(t){var e=this;t&&null!==t.libID&&(e.libID=t.libID),e.url+=e.libID,e.url+=".json",e.request({method:"GET",data:null,scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}}]),e}();SuperMap.GetLibInfoService=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.GetLibIDsService=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));(i=i||{})&&SuperMap.Util.extend(o,i);var n,l=o;return n=l.url.substr(l.url.length-1,1),l.url+="/"==n?"symbolLibs.json?":"/symbolLibs.json?",o.CLASS_NAME="SuperMap.GetLibIDsService",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.PlotCommonServiceBase),o(e,[{key:"destroy",value:function(){(function t(e,i,o){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,i);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,i,o)}if("value"in n)return n.value;var a=n.get;return void 0!==a?a.call(o):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(){this.request({method:"GET",data:null,scope:this,success:this.serviceProcessCompleted,failure:this.serviceProcessFailed})}}]),e}();SuperMap.GetLibIDsService=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.EditSmlFileService=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));(i=i||{})&&SuperMap.Util.extend(o,i);var n=o;return n.events=new SuperMap.Events(n,null,n.EVENT_TYPES,!0),n.eventListeners instanceof Object&&n.events.on(n.eventListeners),o.CLASS_NAME="SuperMap.EditSmlFileService",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.PlotCommonServiceBase),o(e,[{key:"destroy",value:function(){(function t(e,i,o){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,i);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,i,o)}if("value"in n)return n.value;var a=n.get;return void 0!==a?a.call(o):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(t){if(t){var e=this,i=t.method,o=e.url.substr(e.url.length-1,1);e.url+="/"==o?"smlInfos/":"/smlInfos/",e.url+=t.smlFileName+".json",e.url+="?isCover="+t.isCover;var n=null;t.method&&"POST"===t.method&&(n=SuperMap.EditSmlFileParameters.toJsonParameters(t)),e.request({method:i,data:n,scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}}}]),e}();SuperMap.EditSmlFileService=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.latLngsToSuperMapPoints=function(t){var e=[];L.Util.isArray(t)||(t=[t]);for(var i=0;i<t.length;i++)e.push(new SuperMap.Geometry.Point(t[i].lng,t[i].lat));return e},n=e.superMapPointsToLatLngs=function(t){var e=[];L.Util.isArray(t)||(t=[t]);for(var i=0;i<t.length;i++)e.push(L.latLng(t[i].y,t[i].x));return e},l=e.cloneLatLngs=function(t){var e=[];L.Util.isArray(t)||(t=[t]);for(var i=0;i<t.length;i++)e.push(t[i].clone());return e},a=e.moveLatLngs=function(t,e,i){L.Util.isArray(t)||(t=[t]);for(var o=0;o<t.length;o++)L.Util.isArray(t[o])?L.Util.moveLatLngs(t[o],e,i):(t[o].lat+=e,t[o].lng+=i)},s=e.rotateLatLngs=function(t,e,i){L.Util.isArray(t)||(t=[t]);for(var o=i*(Math.PI/180),n=Math.cos(o),l=Math.sin(o),a=0;a<t.length;a++)if(L.Util.isArray(t[a]))L.Util.rotateLatLngs(t[a],e,i);else{var s=t[a].lat-e.lat,r=t[a].lng-e.lng;t[a].lat=r*l+s*n+e.lat,t[a].lng=r*n-s*l+e.lng}},r=e.resizeLatLngs=function(t,e,i){L.Util.isArray(t)||(t=[t]);for(var o=0;o<t.length;o++)L.Util.isArray(t[o])?L.Util.resizeLatLngs(t[o],e,i):(t[o].lat=e.lat+i*(t[o].lat-e.lat),t[o].lng=e.lng+i*(t[o].lng-e.lng))},u=e.conventProjectPts=function(t){var e=[];L.Util.isArray(t)||(t=[t]);for(var i=0,o=t.length;i<o;i++)e.push(L.CRS.EPSG3857.project(t[i]));return e},p=e.unConventProjectPts=function(t){var e=[];L.Util.isArray(t)||(t=[e]);for(var i=0,o=t.length;i<o;i++)e.push(L.CRS.EPSG3857.unproject(t[i]));return e},h=e.isMercatorProjection=function(t){if(void 0!==t&&"string"==typeof t)switch(t.toUpperCase()){case"EPSG:3857":return!0;case"EPSG:4326":default:return!1}};L.Util.latLngsToSuperMapPoints=o,L.Util.superMapPointsToLatLngs=n,L.Util.cloneLatLngs=l,L.Util.moveLatLngs=a,L.Util.rotateLatLngs=s,L.Util.resizeLatLngs=r,L.Util.conventProjectPts=u,L.Util.unConventProjectPts=p,L.Util.isMercatorProjection=h},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resizeLatLngs=e.rotateLatLngs=e.moveLatLngs=e.cloneLatLngs=e.superMapPointsToLatLngs=e.latLngsToSuperMapPoints=void 0;var o=i(41);e.latLngsToSuperMapPoints=o.latLngsToSuperMapPoints,e.superMapPointsToLatLngs=o.superMapPointsToLatLngs,e.cloneLatLngs=o.cloneLatLngs,e.moveLatLngs=o.moveLatLngs,e.rotateLatLngs=o.rotateLatLngs,e.resizeLatLngs=o.resizeLatLngs},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.symbolLibService=e.SymbolLibService=void 0,i(0);var o=i(39),n=i(38),l=e.SymbolLibService=L.supermap.ServiceBase.extend({initialize:function(t,e){L.supermap.ServiceBase.prototype.initialize.call(this,t,e)},getLibIDs:function(t,e){return e||(e=this),new o.GetLibIDsService(this.url,{eventListeners:{scope:e,processCompleted:t,processFailed:t}}).processAsync(),this},getLibInfo:function(t,e,i){return i||(i=this),new n.GetLibInfoService(this.url,{eventListeners:{scope:i,processCompleted:e,processFailed:e}}).processAsync(t),this}}),a=e.symbolLibService=function(t,e){return new l(t,e)};L.supermap.symbolLibService=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.symbolInfoService=e.SymbolInfoService=void 0,i(0);var o=i(36),n=e.SymbolInfoService=L.supermap.ServiceBase.extend({initialize:function(t,e){L.supermap.ServiceBase.prototype.initialize.call(this,t,e)},getSymbolInfo:function(t,e,i){return i||(i=this),new o.GetSymbolInfoService(this.url,{serverType:this.options.serverType,eventListeners:{scope:i,processCompleted:e,processFailed:e}}).processAsync(t),this}}),l=e.symbolInfoService=function(t,e){return new n(t,e)};L.supermap.symbolInfoService=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.smlFileService=e.SMLFileService=void 0,i(0);var o=i(37),n=i(40),l=e.SMLFileService=L.supermap.ServiceBase.extend({initialize:function(t,e){L.supermap.ServiceBase.prototype.initialize.call(this,t,e)},getSMLInfos:function(t,e,i){return i||(i=this),new o.GetSMLInfosService(this.url,{eventListeners:{scope:i,processCompleted:e,processFailed:e}}).processAsync(t),this},editSMLFile:function(t,e,i){return i||(i=this),new n.EditSmlFileService(this.url,{eventListeners:{scope:i,processCompleted:e,processFailed:e}}).processAsync(t),this}}),a=e.smlFileService=function(t,e){return new l(t,e)};L.supermap.smlFileService=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.symbolLibService=e.SymbolLibService=e.symbolInfoService=e.SymbolInfoService=e.smlFileService=e.SMLFileService=void 0;var o=i(45),n=i(44),l=i(43);e.SMLFileService=o.SMLFileService,e.smlFileService=o.smlFileService,e.SymbolInfoService=n.SymbolInfoService,e.symbolInfoService=n.symbolInfoService,e.SymbolLibService=l.SymbolLibService,e.symbolLibService=l.symbolLibService},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.query=e.Query=void 0,i(0);var o=i(4),n=e.Query=L.Class.extend({map:null,initialize:function(t){t&&null!==t&&(this.map=t)},destroy:function(){this.map=null,delete this.map},captureGObject:function(t){var e=[];if(t){for(var i=this.map.getPlottingLayers(),n=0;n<i.length;n++){var l=i[n];for(var a in l.features){var s=l.features[a];s instanceof o.PlottingObject&&s.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL&&(t.lng===s.getLatLngs()[0].lng&&t.lat===s.getLatLngs()[0].lat&&e.push(s))}}return e}return 0},getGObjectsInPolygon:function(t){var e=[];if(t&&0!==t.length){if(L.Util.isArray(t)||(t=[t]),t.length<=2)return e;for(var i=this.map.getPlottingLayers(),n=0;n<i.length;n++){var l=i[n];for(var a in l.features){var s=l.features[a];if(s instanceof o.PlottingObject){var r=s.getBounds().getCenter();if(null===r)return;this._ptIsInPolygon(t,r)&&e.push(s)}}}return e}},_ptIsInPolygon:function(t,e){if(!t||null===t||0===t.length)return!1;for(var i=0,o=t.length,n=0;n<o;n++){var l=t[n],a=t[(n+1)%o];if(l.lat!==a.lat){var s=l.lat<a.lat?l.lat:a.lat,r=l.lat>a.lat?l.lat:a.lat;if(!(e.lat<s||e.lat>r))(e.lat-l.lat)*(a.lng-l.lng)/(a.lat-l.lat)+l.lng>e.lng&&i++}}return i%2==1},getGObjectsInCircle:function(t,e){if(t&&e){for(var i=[],n=this.map.getPlottingLayers(),l=0;l<n.length;l++){var a=n[l];for(var s in a.features){var r=a.features[s];if(r instanceof o.PlottingObject){var u=r.getBounds().getCenter();if(null===u)continue;Math.abs(e)>Math.sqrt(Math.pow(t.lng-u.lng,2)+Math.pow(t.lat-u.lat,2))&&i.push(r)}}}return i}},getGObjectsInRect:function(t,e){if(t&&e){for(var i=[],n=this.map.getPlottingLayers(),l=0;l<n.length;l++){var a=n[l];for(var s in a.features){var r=a.features[s];if(r instanceof o.PlottingObject){var u=r.getBounds().getCenter();if(null===u)continue;t.lng<e.lng&&t.lat>e.lat?u.lng>t.lng&&u.lng<e.lng&&u.lat<t.lat&&u.lat>e.lat&&i.push(r):u.lng<t.lng&&u.lng>e.lng&&u.lat<t.lat&&u.lat>e.lat&&i.push(r)}}}return i}}}),l=e.query=function(t){return new n(t)};L.supermap.plotting.query=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.TransactionManager=L.Evented.extend({map:null,undoTransactions:null,redoTransactions:null,maxCount:32,initialize:function(t){this.map=t,this.undoTransactions=[],this.redoTransactions=[],null===this.maxCount&&(this.maxCount=32)},destroy:function(){this.map=null,this.undoTransactions=null,this.redoTransactions=null,this.maxCount=null},setMaxCount:function(t){this.maxCount=t},add:function(t){this.undoTransactions.length>this.maxCount-1&&this.undoTransactions.splice(0,this.undoTransactions.length-this.maxCount+1),this.undoTransactions.push(t)},undo:function(){var t=this.undoTransactions.length;if(t>0){var e=this.undoTransactions[t-1];this.doTransaction(e,!0),this.redoTransactions.push(e),this.undoTransactions.splice(t-1,1)}},redo:function(){var t=this.redoTransactions.length;if(t>0){var e=this.redoTransactions[t-1];this.doTransaction(e),this.undoTransactions.push(e),this.redoTransactions.splice(t-1,1)}},doTransaction:function(t,e){var i=t.transInfos;if(t.transType===SuperMap.Plot.TransactionType.CREATE)for(var o=0,n=i.length;o<n;o++){var l=this.map.getLayer(i[o].layerId);e?l.removeFeatures(i[o].feature):l.addFeatures(i[o].feature)}else if(t.transType===SuperMap.Plot.TransactionType.EDIT)for(var a=0;a<i.length;a++){var s=this.map.getLayer(i[a].layerId),r=null;if(r=s?s.getFeatureByUuid(i[a].uuid):L.supermap.plotting.getControl(this.map).getFeatureByUuid(i[a].uuid),null!==s||null!==r){var u=i[a].redoParams;if(e&&(u=i[a].undoParams),"setFontAlign"===i[a].functionName)u.length>0&&r.setFontAlign(u[0]);else if("setLatLngs"===i[a].functionName)u.length>0&&r.setLatLngs(u[0]);else if("modifyPoint"===i[a].functionName)u.length>0&&r._modifyPoint(u[0],u[1]);else if("setTextContent"===i[a].functionName)u.length>0&&r.setTextContent(u[0]);else if("setRadiusText"===i[a].functionName)2===u.length&&r.setRadiusText(u[0],u[1]);else if("setType"===i[a].functionName&&r instanceof L.supermap.plotting.RouteNode)u.length>0&&r.setType(u[0]);else if("setStrokeColor"===i[a].functionName&&r.geometry instanceof SuperMap.Geometry.GroupObject)u.length>0&&r.setStyle(u[0]);else if("addAvoidRegion"===i[a].functionName)u.length>0&&(u[0]&&u[0].layer&&u[0].layer.removeFeatures(u[0]),e?r.removeAvoidRegions(u[0]):r.addAvoidRegion(u[0]));else if("removeAvoidRegions"===i[a].functionName){if(u.length>0){for(var p=0;p<u[0].length;p++)u[0][p]&&u[0][p].layer&&u[0][p].layer.removeFeatures(u[0][p]);if(e)for(var h=0;h<u[0].length;h++)r.addAvoidRegion(u[0][h]);else r.removeAvoidRegions(u[0])}}else if("createGroupObject"===i[a].functionName||"createFlags"===i[a].functionName){var c=null;e?s&&i[a].undoParams.length>0&&(c=s.unGroupObject(i[a].undoParams[0])):"createGroupObject"===i[a].functionName?c=s.createGroupObject(i[a].redoParams[0]):"createFlags"===i[a].functionName&&(c=s.createFlags(i[a].redoParams[0])),null!==c&&s._map.getPlotEditControl().selectFeatures(c)}else"updateSymbolText"===i[a].functionName?u.length>0&&r.updateSymbolText(u[0],u[1]):i[a].functionName&&null!==u&&r[i[a].functionName](u[0],u[1]);if(i[a].propertyName){var y=i[a].undoValue;e||(y=i[a].redoValue),r.hasOwnProperty(i[a].propertyName)?r[i[a].propertyName]=y:null!==r&&(r.style[i[a].propertyName]=y)}r&&r.layer&&(r.symbolType!==SuperMap.Plot.SymbolType.DOTSYMBOL||8!==r.textPosition||"fontColor"!==i[a].propertyName&&"fontFamily"!==i[a].propertyName||r._calculateParts(),r.redraw(),r.fire(SuperMap.Plot.Event.reseteditmarkersvalues))}}else if(t.transType===SuperMap.Plot.TransactionType.REMOVE)for(var f=0;f<i.length;f++)e?this.map.getLayer(i[f].layerId).addFeatures(i[f].feature):this.map.getLayer(i[f].layerId).removeFeatures(i[f].feature)}}),n=e.transactionManager=function(t){return new o(t)};L.supermap.plotting.transactionManager=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Plotting=void 0,i(0);var o=i(19),n=i(18),l=i(20),a=i(48),s=null,r=e.Plotting=L.Evented.extend({serverUrl:null,map:null,defaultStyle:null,sitDataManager:null,symbolLibManager:null,clientID:null,dpi:96,animationManager:null,transManager:null,initialize:function(t,e){t&&null!==t&&(r.prototype.map=t),e&&(r.prototype.serverUrl=e),this.defaultStyle=new SuperMap.Plot.DefaultStyle,this.sitDataManager=new o.SitDataManager(this.map,this.serverUrl),this.symbolLibManager=new n.SymbolLibManager(this.serverUrl),this.animationManager=new l.GOAnimationManager(this.map,this.serverUrl),this.transManager=new a.TransactionManager(this.map)},destroy:function(){r.prototype.serverUrl=null,r.prototype.map=null,this.defaultStyle&&(this.defaultStyle.destroy(),this.defaultStyle=null),this.sitDataManager&&(this.sitDataManager.destroy(),this.sitDataManager=null),this.symbolLibManager&&(this.symbolLibManager.destroy(),this.symbolLibManager=null),this.clientID=null,null!==this.animationManager&&(this.animationManager.destroy(),this.animationManager=null),s=null},getDefaultStyle:function(){return this.defaultStyle},getSitDataManager:function(){return this.sitDataManager},getSymbolLibManager:function(){return this.symbolLibManager},getGOAnimationManager:function(){return this.animationManager},getClientID:function(){return this.clientID},setClientID:function(t){this.clientID=t},getDPI:function(){return this.dpi},setDPI:function(t){this.dpi=t},getTransManager:function(){return this.transManager},setMap:function(t){r.prototype.map=t,null===this.sitDataManager.map&&(o.SitDataManager.prototype.map=t),null===this.animationManager.map&&this.animationManager.setMap(t)},setPlotUrl:function(t){r.prototype.serverUrl=t,null===this.sitDataManager.serverUrl&&(o.SitDataManager.prototype.serverUrl=t),null===this.symbolLibManager.url&&(n.SymbolLibManager.prototype.url=t),null===this.animationManager.serverUrl&&(l.GOAnimationManager.prototype.serverUrl=t)},getFeatureByUuid:function(t){if(null!==this.map){for(var e=this.map.getPlottingLayers(),i=0,o=e.length;i<o;i++){var n=e[i].getFeatureByUuid(t);if(null!==n)return n}return null}return null}});L.supermap.plotting.getControl=function(t,e){return null===s&&(s=new r(t,e)),t&&null!==t&&null===s.map&&s.setMap(t),e&&null!==e&&null===s.serverUrl&&s.setPlotUrl(e),s}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.symbolLibManager=e.SymbolLibManager=e.symbolLib=e.SymbolLib=e.sitDataManager=e.SitDataManager=e.query=e.Query=e.Plotting=e.goAnimationManager=e.GOAnimationManager=void 0;var o=i(20),n=i(49),l=i(47),a=i(19),s=i(17),r=i(18);e.GOAnimationManager=o.GOAnimationManager,e.goAnimationManager=o.goAnimationManager,e.Plotting=n.Plotting,e.Query=l.Query,e.query=l.query,e.SitDataManager=a.SitDataManager,e.sitDataManager=a.sitDataManager,e.SymbolLib=s.SymbolLib,e.symbolLib=s.symbolLib,e.SymbolLibManager=r.SymbolLibManager,e.symbolLibManager=r.symbolLibManager},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.geoSymbolText1=e.GeoSymbolText1=void 0,i(0);var o=i(1),n=e.GeoSymbolText1=o.GraphicObject.extend({space:null,offsetX:null,offsetY:null,initialize:function(t,e,i,n){this.minEditPts=1,this.maxEditPts=1,this.libID=0,this.code=SuperMap.Plot.SymbolType.SYMBOLTEXT1,this.symbolType=SuperMap.Plot.SymbolType.SYMBOLTEXT1,this.symbolName="对象标注(带指示线)",null===this.space&&(this.space=10),null===this.offsetX&&(this.offsetX=60),null===this.offsetY&&(this.offsetY=30),o.GraphicObject.prototype.initialize.call(this,t,e,i,n)},destroy:function(){this.space=null,this.offsetX=null,this.offsetY=null,o.GraphicObject.prototype.destroy.call(this)},removeSymbolTextsFromDotSymbol:function(t){if(t&&"string"==typeof t){var e=this.layer.getFeatureByUuid(t);if(e)for(var i=0,o=e.geoSymbolTexts.length;i<o;i++)if(this===e.geoSymbolTexts[i]){e.geoSymbolTexts.splice(i,1);break}}},_calculateParts:function(){this.latLngs=[];var t=[],e=this.layer.getFeatureByUuid(this.associatedUuid);if(null!==e){for(var i=!1,o=0;o<e.geoSymbolTexts.length;o++)if(this===e.geoSymbolTexts[o]){i=!0;break}i||e.geoSymbolTexts.push(this),this._calculateSize(e);var n=e.latLngs[0],l=this._map.latLngToLayerPoint(n),a=new SuperMap.Pixel(l.x+this.offsetX,l.y+this.offsetY),s=this._map.layerPointToLatLng(a);0===this.latLngs.length?this.latLngs.push(s):(this.latLngs[0].lng=s.lng,this.latLngs[0].lat=s.lat);var r=L.Util.cloneLatLngs(this.latLngs[0]);r.push(n);var u={style:{surroundLineFlag:!1}};u.style=SuperMap.Util.copyAttributes(u.style,this.style),u.positionPoints=r,u.type=24,t.push(u),SuperMap.Util.isArray(this.textContent)||(this.textContent=[this.textContent]);var p=this.textContent.length,h=this.style.fontSize*p+p+1,c=this._map.latLngToLayerPoint(L.latLng(this.latLngs[0].lat,this.latLngs[0].lng)),y=L.point(c.x,c.y-h/2),f=L.point(c.x,c.y+h/2),S=[this._map.layerPointToLatLng(y),this._map.layerPointToLatLng(f)],g={};g.positionPoints=S,g.style={surroundLineFlag:!1},g.style=SuperMap.Util.copyAttributes(g.style,this.style),g.type=24,t.push(g);var P,d=new SuperMap.Geometry.Point(this.latLngs[0].lng,this.latLngs[0].lat);if(0!==this.textContent.length){for(var m=e.getBounds(),b=new SuperMap.Geometry.Point((m.getWest()+m.getEast())/2,m.getNorth()),M=new SuperMap.Geometry.Point((m.getWest()+m.getEast())/2,m.getSouth()),v=SuperMap.Plot.PlottingUtil.pointIsRightToLine(b,M,d),T="",A=0;A<this.textContent.length;A++)T+=this.textContent[A],A!==this.textContent.length-1&&(T+="\r\n");var _=null;_=!0===v?L.point(c.x-this.space,c.y):L.point(c.x+this.space,c.y);var O={},x=this._map.layerPointToLatLng(_);O.positionPoints=x,O.type=34,O.textContent=T,O.style={},O.style=SuperMap.Util.copyAttributes(O.style,this.style),O.style.labelAlign=!0===v?"rm":"lm",t.push(O)}for(var w=0;w<t.length;w++)P=L.Util.isArray(t[w].positionPoints)?t[w].positionPoints:[t[w].positionPoints],this._createAndDrawLayer(t[w].type,P,t[w].style,t[w].textContent)}},_calculateSize:function(t){this.scaleByMap=t.scaleByMap,!1===this.scaleByMap?this.fromZoom=this._map.getZoom():this.fromZoom<=this._map.getZoom()&&(this.dScale=t.dScale),void 0!==this.prevOffsetX&&this.prevOffsetX!==this.offsetX&&(this.scaleBeforeOffsetX=this.offsetX/this.dScale,this.prevOffsetX=this.offsetX),!0===this.scaleByMap&&(void 0===this.scaleBeforeOffsetX&&(this.scaleBeforeOffsetX=this.offsetX),this.offsetX=this.scaleBeforeOffsetX*this.dScale,this.prevOffsetX=this.offsetX),void 0!==this.prevOffsetY&&this.prevOffsetY!==this.offsetY&&(this.scaleBeforeOffsetY=this.offsetY/this.dScale,this.prevOffsetY=this.offsetY),!0===this.scaleByMap&&(void 0===this.scaleBeforeOffsetY&&(this.scaleBeforeOffsetY=this.offsetY),this.offsetY=this.scaleBeforeOffsetY*this.dScale,this.prevOffsetY=this.offsetY),void 0!==this.prevStrokeWidth&&this.prevStrokeWidth!==this.style.weight&&(this.strokeWidth=this.style.weight,this.prevStrokeWidth=this.style.weight),!0===this.scaleByMap&&(void 0===this.weight&&(this.weight=this.style.weight),this.fromZoom<=this.map.getZoom()?this.style.weight=this.style.strokeWidth:this.style.weight=this.weight,this.prevStrokeWidth=this.style.weight),void 0!==this.prevFontSize&&this.prevFontSize!==this.style.fontSize&&(this.fontSize=this.style.fontSize/this.dScale,this.prevFontSize=this.style.fontSize),!0===this.scaleByMap&&(void 0===this.fontSize&&(this.fontSize=this.style.fontSize),this.style.fontSize=this.fontSize*this.dScale,this.prevFontSize=this.style.fontSize)},_reView:function(){this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)},_modifyPoint:function(){var t=this.layer.getFeatureByUuid(this.associatedUuid);if(null!==t){var e=this._map.latLngToLayerPoint(L.latLng(t.latLngs[0].lat,t.latLngs[0].lng)),i=this._map.latLngToLayerPoint(L.latLng(this.latLngs[0].lat,this.latLngs[0].lng));this.offsetX=i.x-e.x,this.offsetY=i.y-e.y,this.redraw()}},_parseSymbolData:function(){o.GraphicObject.prototype._parseSymbolData.call(this),this.symbolData&&(void 0!==this.symbolData.space&&(this.space=this.symbolData.space),void 0!==this.symbolData.offsetX&&(this.offsetX=this.symbolData.offsetX),void 0!==this.symbolData.offsetY&&(this.offsetY=this.symbolData.offsetY),void 0!==this.symbolData.scaleBeforeOffsetX&&(this.scaleBeforeOffsetX=this.symbolData.scaleBeforeOffsetX),void 0!==this.symbolData.scaleBeforeOffsetY&&(this.scaleBeforeOffsetY=this.symbolData.scaleBeforeOffsetY))},_setSymbolData:function(){o.GraphicObject.prototype._setSymbolData.call(this),this.symbolData&&(this.symbolData.space=this.space,this.symbolData.offsetX=this.offsetX,this.symbolData.offsetY=this.offsetY,void 0!==this.scaleBeforeOffsetX&&(this.symbolData.scaleBeforeOffsetX=this.scaleBeforeOffsetX),void 0!==this.scaleBeforeOffsetY&&(this.symbolData.scaleBeforeOffsetY=this.scaleBeforeOffsetY))}}),l=e.geoSymbolText1=function(t,e,i,o){return new n(t,e,i,o)};L.supermap.plotting.symbolText1=l,L.supermap.plotting.SymbolText1=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.geoSymbolText=e.GeoSymbolText=void 0,i(0);var o=i(1),n=e.GeoSymbolText=o.GraphicObject.extend({symbolTexts:[],addFrame:!1,getFrame:function(){return this.addFrame},setFrame:function(t){this.addFrame!==t&&(this.addFrame=t,this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues))},updateSymbolText:function(t,e){this.symbolTexts.length>e&&(this.symbolTexts[e]=t,this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues))},removeSymbolTextsFromDotSymbol:function(t){if(t&&"string"==typeof t){var e=this.layer.getFeatureByUuid(t);if(e)for(var i=0,o=e.geoSymbolTexts.length;i<o;i++)if(this===e.geoSymbolTexts[i]){e.geoSymbolTexts.splice(i,1);break}}},initialize:function(t,e,i,n){this.libID=0,this.code=SuperMap.Plot.SymbolType.SYMBOLTEXT,this.symbolType=SuperMap.Plot.SymbolType.SYMBOLTEXT,this.symbolName="对象标注",o.GraphicObject.prototype.initialize.call(this,t,e,i,n)},_calculateParts:function(){this.latLngs=[];var t,e=[],i=this.symbolTexts;if(i.length>0){var o=this.layer.getFeatureByUuid(this.associatedUuid);if(null===o||void 0===o)return;for(var n=!1,l=o.geoSymbolTexts,a=0,s=l.length;a<s;a++)if(this===l[a]){n=!0;break}n||l.push(this);var r={surroundLineFlag:!1,lineColorLimit:!0,fillColorLimit:!0,lineWidthLimit:!0,lineTypeLimit:!0,fontColorLimit:!0,fontSizeLimit:!0,fillLimit:!0};this._calculateSize(o);var u=o.getBounds();if(!u||!u.isValid())return;for(var p=0,h=i.length;p<h;p++){this._mergeStyleToSymbolText(i[p]);var c=i[p].textContent;if(null!==c&&0!==c.length){if(i[p].textPosition=void 0===i[p].textPosition?0:i[p].textPosition,this.addFrame)var y=SuperMap.Plot.PlottingUtil.getTextWidth(i[p].style,i[p].textContent);var f,S,g,P=L.point(0,0),d=L.point(0,0);switch(i[p].textPosition){case 0:i[p].style.labelAlign="rb",f=L.latLng(u.getNorth(),u.getWest()),(S=this._map.latLngToLayerPoint(f)).x-=i[p].offsetX,S.y-=i[p].offsetY,!0===this.addFrame&&(P.x=S.x,P.y=S.y,d.x=S.x-y,d.y=S.y-parseInt(i[p].style.fontSize));break;case 1:i[p].style.labelAlign="rt",f=L.latLng(u.getSouth(),u.getWest()),(S=this._map.latLngToLayerPoint(f)).x-=i[p].offsetX,S.y+=i[p].offsetY,!0===this.addFrame&&(P.x=S.x,P.y=S.y,d.x=S.x-y,d.y=S.y+parseInt(i[p].style.fontSize));break;case 2:i[p].style.labelAlign="lb",f=L.latLng(u.getNorth(),u.getEast()),(S=this._map.latLngToLayerPoint(f)).x+=i[p].offsetX,S.y-=i[p].offsetY,!0===this.addFrame&&(P.x=S.x,P.y=S.y,d.x=S.x+y,d.y=S.y-parseInt(i[p].style.fontSize));break;case 3:i[p].style.labelAlign="lt",f=L.latLng(u.getSouth(),u.getEast()),(S=this._map.latLngToLayerPoint(f)).x+=i[p].offsetX,S.y+=i[p].offsetY,!0===this.addFrame&&(P.x=S.x,P.y=S.y,d.x=S.x+y,d.y=S.y+parseInt(i[p].style.fontSize));break;case 4:i[p].style.labelAlign="cb",f=L.latLng(u.getNorth(),(u.getWest()+u.getEast())/2),(S=this._map.latLngToLayerPoint(f)).x+=i[p].offsetX,S.y-=i[p].offsetY,!0===this.addFrame&&(P.x=S.x-y/2,P.y=S.y,d.x=S.x+y/2,d.y=S.y-parseInt(i[p].style.fontSize));break;case 5:i[p].style.labelAlign="ct",f=L.latLng(u.getSouth(),(u.getWest()+u.getEast())/2),(S=this._map.latLngToLayerPoint(f)).x+=i[p].offsetX,S.y+=i[p].offsetY,!0===this.addFrame&&(P.x=S.x-y/2,P.y=S.y,d.x=S.x+y/2,d.y=S.y+parseInt(i[p].style.fontSize));break;case 6:i[p].style.labelAlign="rm",f=L.latLng((u.getSouth()+u.getNorth())/2,u.getWest()),(S=this._map.latLngToLayerPoint(f)).x-=i[p].offsetX,S.y+=i[p].offsetY,!0===this.addFrame&&(P.x=S.x,P.y=S.y+parseInt(i[p].style.fontSize)/2,d.x=S.x-y,d.y=S.y-parseInt(i[p].style.fontSize)/2);break;case 7:i[p].style.labelAlign="lm",f=L.latLng((u.getSouth()+u.getNorth())/2,u.getEast()),(S=this._map.latLngToLayerPoint(f)).x+=i[p].offsetX,S.y+=i[p].offsetY,!0===this.addFrame&&(P.x=S.x,P.y=S.y+parseInt(i[p].style.fontSize)/2,d.x=S.x+y,d.y=S.y-parseInt(i[p].style.fontSize)/2)}var m=this._map.layerPointToLatLng(S),b=SuperMap.Util.copyAttributes(r,this.symbolTexts[p].style);if(this.addFrame){var M=this._map.layerPointToLatLng(P),v=this._map.layerPointToLatLng(d),T={};T.positionPoints=[M,v],T.style=SuperMap.Util.cloneObject(b),T.type=SuperMap.Plot.SymbolType.RECTANGLESYMBOL,e.push(T);var A=null;A=1===o.symbolType?o.latLngs[0]:u.getCenter();var _={};_.positionPoints=[m,A],_.style=SuperMap.Util.cloneObject(b),_.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,e.push(_),g=L.latLng((v.lat-M.lat)/2+M.lat,(M.lng-v.lng)/2+v.lng)}else g=m;var O={};O.positionPoints=g,O.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,O.style=SuperMap.Util.cloneObject(b),O.textContent=i[p].textContent,this.addFrame&&(O.style.labelAlign="cm"),e.push(O),this.latLngs.push(m)}}}for(var x=0;x<e.length;x++)t=L.Util.isArray(e[x].positionPoints)?e[x].positionPoints:[e[x].positionPoints],this._createAndDrawLayer(e[x].type,t,e[x].style,e[x].textContent)},destroy:function(){this.frame=!1,this.symbolTexts=null,o.GraphicObject.prototype.destroy.call(this)},_mergeStyleToSymbolText:function(t){if(null!==this.components)for(var e in null!==t.style&&void 0!==t.style||(t.style={}),this.style)t.style.hasOwnProperty(e)||(t.style[e]=this.style[e])},_calculateSize:function(t){this.scaleByMap=t.scaleByMap,!1===this.scaleByMap?this.fromZoom=this._map.getZoom():this.fromZoom<=this._map.getZoom()&&(this.dScale=t.dScale)},_modifyPoint:function(t,e){this._calculateOffset(t,e),this.redraw()},_calculateOffset:function(t,e){if(t<this.symbolTexts.length){var i=this.symbolTexts[t].textPosition,o=this._map.latLngToLayerPoint(e),n=this.layer.getFeatureByUuid(this.associatedUuid);if(null===n||void 0===n)return;var l,a,s=n.getBounds();0===i?(l=L.latLng(s.getNorth(),s.getWest()),a=this._map.latLngToLayerPoint(l),this.symbolTexts[t].offsetX=a.x-o.x,this.symbolTexts[t].offsetY=a.y-o.y):1===i?(l=L.latLng(s.getSouth(),s.getWest()),a=this._map.latLngToLayerPoint(l),this.symbolTexts[t].offsetX=a.x-o.x,this.symbolTexts[t].offsetY=o.y-a.y):2===i?(l=L.latLng(s.getNorth(),s.getEast()),a=this._map.latLngToLayerPoint(l),this.symbolTexts[t].offsetX=o.x-a.x,this.symbolTexts[t].offsetY=a.y-o.y):3===i?(l=L.latLng(s.getSouth(),s.getEast()),a=this._map.latLngToLayerPoint(l),this.symbolTexts[t].offsetX=o.x-a.x,this.symbolTexts[t].offsetY=o.y-a.y):4===i?(l=L.latLng(s.getNorth(),(s.getWest()+s.getEast())/2),a=this._map.latLngToLayerPoint(l),this.symbolTexts[t].offsetX=o.x-a.x,this.symbolTexts[t].offsetY=a.y-o.y):5===i?(l=L.latLng(s.getSouth(),(s.getWest()+s.getEast())/2),a=this._map.latLngToLayerPoint(l),this.symbolTexts[t].offsetX=o.x-a.x,this.symbolTexts[t].offsetY=o.y-a.y):6===i?(l=L.latLng((s.getNorth()+s.getSouth())/2,s.getWest()),a=this._map.latLngToLayerPoint(l),this.symbolTexts[t].offsetX=a.x-o.x,this.symbolTexts[t].offsetY=o.y-a.y):7===i&&(l=L.latLng((s.getNorth()+s.getSouth())/2,s.getEast()),a=this._map.latLngToLayerPoint(l),this.symbolTexts[t].offsetX=o.x-a.x,this.symbolTexts[t].offsetY=o.y-a.y)}},_reView:function(){this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)},move:function(){},_parseSymbolData:function(){if(o.GraphicObject.prototype._parseSymbolData.call(this),this.symbolData){this.addFrame=this.symbolData.addFrame,this.symbolTexts=[];for(var t=0,e=this.symbolData.symbolTexts.length;t<e;t++){var i=new SuperMap.Plot.GeoSymbolText;i.textContent=this.symbolData.symbolTexts[t].textContent,i.textPosition=this.symbolData.symbolTexts[t].textPosition,i.style=this.symbolData.symbolTexts[t].style,i.offsetX=this.symbolData.symbolTexts[t].offsetX,i.offsetY=this.symbolData.symbolTexts[t].offsetY,this.symbolTexts.push(i)}}},_setSymbolData:function(){o.GraphicObject.prototype._setSymbolData.call(this),this.symbolData&&(this.symbolData.symbolTexts=this.symbolTexts,this.symbolData.addFrame=this.addFrame)},setStyle:function(t){if(t.fontSize&&this.style.fontSize!==t.fontSize||this.style.display!==t.display&&t.display){SuperMap.Util.extend(this.style,t);for(var e=0,i=this.symbolTexts.length;e<i;e++)SuperMap.Util.copyAttributes(this.symbolTexts[e].style,t);this.redraw()}else{SuperMap.Util.extend(this.style,t);for(var o=0;o<this.symbolTexts.length;o++)SuperMap.Util.copyAttributes(this.symbolTexts[o].style,t);for(var n in this.components)delete t.labelAlign,SuperMap.Util.copyAttributes(this.components[n].options,t),this._copyStyleForCell(this.components[n].options,this.style,this.components[n]),this.components[n].setStyle(this.components[n].options)}}}),l=e.geoSymbolText=function(t,e,i,o){return new n(t,e,i,o)};L.supermap.plotting.symbolText=l,L.supermap.plotting.SymbolText=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.satelliteTimeWindows=e.SatelliteTimeWindows=void 0,i(0);var o=i(1),n=e.SatelliteTimeWindows=o.GraphicObject.extend({timeWindows:[],initialize:function(t,e,i,n){this.libID=0,this.code=SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS,this.symbolType=SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS,this.symbolName="卫星时间窗",o.GraphicObject.prototype.initialize.call(this,t,e,i,n),this.scaleValues||(this.scaleValues=[])},_calculateParts:function(){if(this.associatedUuid){var t=this.layer.getFeatureByUuid(this.associatedUuid);if(null===t||null===t.orbitPoints)return}for(var e=!1,i=0;i<t.timeWindows.length;i++)if(this===t.timeWindows[i]){e=!0;break}if(e||t.timeWindows.push(this),this.type)for(var o=0;o<this.timeWindows.length;o++)this.timeWindows[o].type=this.type;if(this.scalePoints=[],null!==this.timeWindows)for(var n=t.orbitPoints,l=0;l<this.timeWindows.length;l++){var a,s;if("Number"===this.timeWindows[l].type){for(var r=0,u=n.length;r<u;r++)if(this.timeWindows[l].startOrbitPoint===n[r].number&&(a=r),this.timeWindows[l].endOrbitPoint===n[r].number){s=r;break}}else if("Time"===this.timeWindows[l].type)for(var p=0;p<n.length;p++)if(this.timeWindows[l].startOrbitPoint===n[p].time&&(a=p),this.timeWindows[l].endOrbitPoint===n[p].time){s=p;break}for(var h=[],c=a;c<=s;c++)h.push(new L.latLng(n[c].y,n[c].x));h.length>1&&(this._createAndDrawLayer(24,h,{surroundLineFlag:!1,lineWidthLimit:!0,weight:4*t.style.weight+this.style.weight}),h[0].isScalePoint=!0,h[0].tag=2*l,this.scalePoints.push(h[0]),h[h.length-1].isScalePoint=!0,h[h.length-1].tag=2*l+1,this.scalePoints.push(h[h.length-1]))}},calculateBounds:function(){this.bounds=null;var t=new L.Bounds,e=this.components;if(e)for(var i=0;i<e.length;i++)t.extend(e[i].getBounds());null!==t.left&&null!==t.bottom&&null!==t.right&&null!==t.top&&this.setBounds(t)},move:function(){},_modifyPoint:function(t,e){if(e.isScalePoint){var i=this.layer.getFeatureByUuid(this.associatedUuid);if(!i)return;var o=i.getLatLngs(),n=i.orbitPoints,l=L.Util.latLngsToSuperMapPoints(e),a=L.Util.latLngsToSuperMapPoints(o);if(t%2==0){var s;t/=2,s=this.timeWindows[t].endOrbitPoint-this.timeWindows[t].startOrbitPoint;for(var r=SuperMap.Plot.PlottingUtil.distance(l[0],a[0]),u=0,p=0;p<o.length-s;p++)r>=SuperMap.Plot.PlottingUtil.distance(l[0],a[p])&&(r=SuperMap.Plot.PlottingUtil.distance(l[0],a[p]),u=p);for(var h=0;h<this.timeWindows.length;h++)"Number"===this.timeWindows[h].type?(this.timeWindows[t].startOrbitPoint=u+n[0].number,this.timeWindows[t].endOrbitPoint=u+s+n[0].number):"Time"===this.timeWindows[h].type&&(this.timeWindows[t].startOrbitPoint=u+n[0].time,this.timeWindows[t].endOrbitPoint=u+s+n[0].time)}else{t=(t-1)/2;for(var c=SuperMap.Plot.PlottingUtil.distance(l[0],a[a.length-1]),y=0;y<o.length;y++)c>=SuperMap.Plot.PlottingUtil.distance(l[0],a[y])&&(c=SuperMap.Plot.PlottingUtil.distance(l[0],a[y]),u=y);for(var f=0;f<this.timeWindows.length;f++)"Number"===this.timeWindows[f].type?(this.timeWindows[t].endOrbitPoint=u+n[0].number,this.timeWindows[t].endOrbitPoint<=this.timeWindows[t].startOrbitPoint&&(this.timeWindows[t].endOrbitPoint=this.timeWindows[t].startOrbitPoint+1)):"Time"===this.timeWindows[f].type&&(this.timeWindows[t].endOrbitPoint=u+n[0].time,this.timeWindows[t].endOrbitPoint<=this.timeWindows[t].startOrbitPoint&&(this.timeWindows[t].endOrbitPoint=this.timeWindows[t].startOrbitPoint+1))}}this.redraw()}}),l=e.satelliteTimeWindows=function(t,e,i,o){return new n(t,e,i,o)};L.supermap.plotting.satelliteTimeWindows=l,L.supermap.plotting.SatelliteTimeWindows=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.satellite=e.Satellite=void 0,i(0);var o=i(1),n=e.Satellite=o.GraphicObject.extend({orbitPoints:[],visible:null,timeWindows:null,setVisible:function(t){this.visible!==t&&(this.visible=t,this.redraw(),null!==this._map.getPlotEditControl()&&this.isSelected&&this.fire(SuperMap.Plot.Event.reseteditmarkersvalues))},getBounds:function(){var t=this;return t._bounds=new L.LatLngBounds,t.components.map(function(e){return e.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL?t._bounds.extend(e.getBoundsWithText()):t._bounds.extend(e.getBounds()),e}),t._bounds},getVisible:function(){return this.visible},initialize:function(t,e,i,n){this.libID=0,this.code=SuperMap.Plot.SymbolType.SATELLITE,this.symbolType=SuperMap.Plot.SymbolType.SATELLITE,this.symbolName="卫星",null===this.visible&&(this.visible=!0),null===this.timeWindows&&(this.timeWindows=[]),0===this.orbitPoints.length&&(this.orbitPoints=[]),this.scaleValues||(this.scaleValues=[]),o.GraphicObject.prototype.initialize.call(this,t,e,i,n)},_calculateParts:function(){if(null!==this.orbitPoints&&this.visible){if(null===this.latLngs||0===this.latLngs.length)this.latLngs=L.Util.superMapPointsToLatLngs(this.orbitPoints);else for(var t=0,e=this.latLngs.length;t<e;t++)this.orbitPoints[t].x=this.latLngs[t].lng,this.orbitPoints[t].y=this.latLngs[t].lat;this._createAndDrawLayer(24,L.Util.cloneLatLngs(this.latLngs),this.style,"")}0===this.scaleValues.length&&this.scaleValues.push(.5);var i=L.Util.latLngsToSuperMapPoints(this.latLngs),o=SuperMap.Plot.PlottingUtil.polylineDistance(i),n=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,o*this.scaleValues[0]).pt.clone(),l=Math.floor(this.orbitPoints.length/2),a=new SuperMap.Geometry.Point(this.orbitPoints[l].x,this.orbitPoints[l].y),s=SuperMap.Plot.PlottingUtil.radian(a,new SuperMap.Geometry.Point(this.orbitPoints[l-1].x,this.orbitPoints[l-1].y));this.subSymbols[0].symbolData.dRotate=180*s/Math.PI,this.subSymbols[0].symbolData.textContent=this.textContent,this.subSymbols[0].symbolData.annotationPosition=7;var r={symbolData:SuperMap.Util.cloneObject(this.subSymbols[0].symbolData),serverUrl:this.serverUrl,enableEdit:!1,style:this.style,scaleByMap:!0},u=SuperMap.Plot.PlottingUtil.cloneObject(this.style),p=L.supermap.plotting.PlottingObject.createSymbol(this.subSymbols[0].libID,this.subSymbols[0].code,[new L.latLng(n.y,n.x)],r,u);this._addComponents(p),p.isEdit=!0,this.scalePoints=[];var h=new L.latLng(n.y,n.x);h.isScalePoint=!0,h.tag=0,this.scalePoints.push(h)},move:function(t,e){L.Util.moveLatLngs(this.getLatLngs(),t,e);for(var i=0,o=this.orbitPoints.length;i<o;i++)this.orbitPoints[i].x+=e,this.orbitPoints[i].y+=t;for(var n=0,l=this.timeWindows.length;n<l;n++){var a=this.timeWindows[n];null!==a&&a.redraw()}if(0!==this.avoidRegions.length)for(var s=0,r=this.avoidRegions.length;s<r;s++)L.Util.moveLatLngs(this.avoidRegions[s].getLatLngs(),t,e);if(!1===this.visible)for(var u=0;u<this.components.length;u++)this.components[u].symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL&&this.components[u].move(t,e);else this.redraw()},_resizeLatLngs:function(t,e,i,n){o.GraphicObject.prototype._resizeLatLngs.call(this,t,e,i,n);for(var l=0,a=this.orbitPoints.length;l<a;l++)this.orbitPoints[l].x=this.latLngs[l].lng,this.orbitPoints[l].y=this.latLngs[l].lat;for(var s=0,r=this.timeWindows.length;s<r;s++){var u=this.timeWindows[s];null!==u&&u.redraw()}},setRotate:function(t){this.dRotate=t,null===this.anchorPoint&&(this.anchorPoint=this.getBounds().getCenter());for(var e=0,i=this.avoidRegions.length;e<i;e++)this.avoidRegions[e].rotate(t,this.anchorPoint);o.GraphicObject.prototype._rotate.call(this,t,this.anchorPoint);for(var n=0,l=this.orbitPoints.length;n<l;n++)this.orbitPoints[n].x=this.latLngs[n].lng,this.orbitPoints[n].y=this.latLngs[n].lat;for(var a=0;a<this.timeWindows.length;a++){var s=this.timeWindows[a];null!==s&&s.redraw()}this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)},_reView:function(){for(var t=0,e=this.components.length;t<e;t++)this.components[t].symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL&&(this.components[t]._reView(),this.components[t]._handleAnnotation(),this.subSymbols[0].symbolData=SuperMap.Util.cloneObject(this.components[t].getSymbolData()))},_modifyPoint:function(t,e){if(e.isScalePoint){if(0!==t)return;var i=L.Util.latLngsToSuperMapPoints(this.getLatLngs()),o=L.Util.latLngsToSuperMapPoints(e),n=SuperMap.Plot.PlottingUtil.clonePoints(i);if((n=SuperMap.Plot.PlottingUtil.clearSamePts(n)).length<this.minEditPts)return;var l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(n);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var a,s=SuperMap.Plot.PlottingUtil.polylineDistance(l),r=SuperMap.Plot.PlottingUtil.distance(l[0],o[0]),u=0;u<l.length;u++)r>SuperMap.Plot.PlottingUtil.distance(l[u],o[0])&&(r=SuperMap.Plot.PlottingUtil.distance(l[u],o[0]),a=u);var p=0;0===a&&(a=1);for(var h=0;h<a;h++)p+=SuperMap.Plot.PlottingUtil.distance(l[h],l[h+1]);this.scaleValues[0]=p/s}this.redraw()}}),l=e.satellite=function(t,e,i,o){return new n(t,e,i,o)};L.supermap.plotting.satellite=l,L.supermap.plotting.Satellite=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.interferenceBeam=e.InterferenceBeam=void 0,i(0);var o=i(1),n=e.InterferenceBeam=o.GraphicObject.extend({initialize:function(t,e,i,n){o.GraphicObject.prototype.initialize.call(this,t,e,i,n),this.libID=0,this.code=SuperMap.Plot.SymbolType.INTERFERENCEBEAM,this.symbolType=SuperMap.Plot.SymbolType.INTERFERENCEBEAM,this.symbolName="干扰波束",this.minEditPts=3,this.maxEditPts=9999},destroy:function(){o.GraphicObject.prototype.destroy.apply(this,arguments)},_calculateParts:function(){null!==this.getLatLngs()&&this.getLatLngs().length>=this.minEditPts&&this._createAndDrawLayer(32,this.latLngs,this.style,"")},move:function(t,e){L.Util.moveLatLngs(this.getLatLngs(),t,e);for(var i=0,o=this.avoidRegions.length;i<o;i++)this.avoidRegions[i].move(t,e);this.redraw()},setRotate:function(t){for(var e in this.dRotate=t,null===this.anchorPoint&&(this.anchorPoint=this.getBounds().getCenter()),this.components)L.Util.rotateLatLngs(this.components[e].getLatLngs(),this.anchorPoint,t),this.components[e].setLatLngs(this.components[e].getLatLngs());for(var i=0,o=this.avoidRegions.length;i<o;i++)this.avoidRegions[i].rotate(this.dRotate,this.anchorPoint)},_reView:function(){}}),l=e.interferenceBeam=function(t,e,i,o){return new n(t,e,i,o)};L.supermap.plotting.interferenceBeam=l,L.supermap.plotting.InterferenceBeam=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.navyRoute=e.NavyRoute=void 0,i(0);var o=i(3),n=e.NavyRoute=o.Route.extend({initialize:function(t,e,i,n){this.libID=0,this.code=SuperMap.Plot.SymbolType.NAVYROUTE,this.symbolType=SuperMap.Plot.SymbolType.NAVYROUTE,this.symbolName="海军航线",o.Route.prototype.initialize.call(this,t,e,i,n)}}),l=e.navyRoute=function(t,e,i,o){return new n(t,e,i,o)};L.supermap.plotting.navyRoute=l,L.supermap.plotting.NavyRoute=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.missileRoute=e.MissileRoute=void 0,i(0);var o=i(3),n=e.MissileRoute=o.Route.extend({initialize:function(t,e,i,n){this.libID=0,this.code=SuperMap.Plot.SymbolType.MISSILEROUTE,this.symbolType=SuperMap.Plot.SymbolType.MISSILEROUTE,this.symbolName="导弹航线",o.Route.prototype.initialize.call(this,t,e,i,n)}}),l=e.missileRoute=function(t,e,i,o){return new n(t,e,i,o)};L.supermap.plotting.missileRoute=l,L.supermap.plotting.MissileRoute=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.airRoute=e.AirRoute=void 0,i(0);var o=i(3),n=e.AirRoute=o.Route.extend({space:null,inner:null,initialize:function(t,e,i,n){o.Route.prototype.initialize.call(this,t,e,i,n),this.libID=0,this.code=SuperMap.Plot.SymbolType.AIRROUTE,this.symbolType=SuperMap.Plot.SymbolType.AIRROUTE,this.symbolName="空军航线",null===this.space&&(this.space=20),null===this.inner&&(this.inner=!1)},destroy:function(){this.space=null,this.inner=null,o.Route.prototype.destroy.call(this)},redraw:function(){if(this._initRoute(),void 0!==this.arrRoutePts&&null!==this.arrRoutePts)for(var t=0;t<this.arrRoutePts.length;t++){var e=this.arrRoutePts[t];if(SuperMap.Util.isArray(e)&&!(e.length<2)){var i=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.POLYLINESYMBOL,e,{serverUrl:this.serverUrl,enableEdit:!1});this._addComponents(i)}}for(var o=0;o<this.routeNodes.length;o++){var n=this.routeNodes[o];if(null!==n&&(n.towardNodes&&null!==n.towardNodes)){for(var l=0;l<n.towardNodes.length;l++)if(n.towardNodes[l]instanceof SuperMap.Plot.TowardNode){var a=this._getNodeByUuid(n.towardNodes[l].routeNodeId);if(null!==a){if(0===this.arrRoutePts.length){var s=[];s.push(L.latLng(n.y,n.x)),s.push(L.latLng(a.y,a.x));var r=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.POLYLINESYMBOL,s,{enableEdit:!1});this._addComponents(r),r._startRouteNode=n.id,r._endRouteNode=a.id}this._createLiterateSign(n,n.towardNodes[l])}}this._createRouteNode(n)}}this._finishRoute()},_createLiterateSign:function(t,e){for(var i=0;i<this.prevLiterateSign.length;){if(this.prevLiterateSign[i]._startRouteNode===t.id&&this.prevLiterateSign[i]._endRouteNode===e.routeNodeId)return this.prevLiterateSign[i].startRouteNode=t,this.prevLiterateSign[i].towardNode=e,this.prevLiterateSign[i].redraw(),this.components.push(this.prevLiterateSign[i]),void this.prevLiterateSign.splice(i,1);i++}if(null!==e.textContent&&0!==e.textContent.length){var o=SuperMap.Util.copyAttributes(SuperMap.Plot.PlottingUtil.cloneObject(this.style),e.style),n=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.LITERATESIGN,null,{startRouteNode:t,towardNode:e,route:this,inner:this.inner,space:this.space},o);this._addComponents(n),n._startRouteNode=t.id,n._endRouteNode=e.routeNodeId}}}),l=e.airRoute=function(t,e,i,o){return new n(t,e,i,o)};L.supermap.plotting.airRoute=l,L.supermap.plotting.AirRoute=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.airDeployment=e.AirDeployment=void 0,i(0);var o=i(21),n=e.AirDeployment=o.NavyDeployment.extend({isShowTooltip:!0,getShowTooltip:function(){return this.isShowTooltip},setShowTooltip:function(t){if(this.isShowTooltip!==t)if(this.isShowTooltip=t,this.isShowTooltip&&0!==this.components.length){var e=this.layer.getFeatureByUuid(this.associatedUuid),i=L.Util.cloneLatLngs(e.latLngs[0]),o=this._map.latLngToLayerPoint(L.latLng(i[0].lat,i[0].lng)),n=this._transitionPoint(new SuperMap.Geometry.Point(this.space,0),o),l=Math.abs(n.lng-i[0].lng),a=new L.LatLngBounds(L.latLng(this.bounds.getSouth()-l,this.bounds.getWest()-l),L.latLng(this.bounds.getNorth()+l,this.bounds.getEast()+l)),s=[];s.push(L.latLng(a.getNorth(),a.getWest())),s.push(L.latLng(a.getSouth(),a.getEast()));var r=L.latLng(i[0].lat,i[0].lng);r.isFixedPos=!0,s.push(r);var u=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL,s,{serverUrl:this.serverUrl});this._addComponents(u)}else for(var p in this.components)if(320===this.components[p].symbolType){this.subObjects.splice(SuperMap.Util.indexOf(this.subObjects,this.components[p]),1);var h=SuperMap.Util.indexOf(this.components,this.components[p]);if(-1!==h){this.components[h]._clearComponents(),this.components.splice(h,1);break}}},initialize:function(t,e,i,n){o.NavyDeployment.prototype.initialize.call(this,t,e,i,n),this.libID=0,this.code=SuperMap.Plot.SymbolType.AIRDEPLOYMENT,this.symbolType=SuperMap.Plot.SymbolType.AIRDEPLOYMENT,this.symbolName="空军兵力部署",null===this.isShowTooltip&&(this.isShowTooltip=!0)},destroy:function(){this.isShowTooltip=null,o.NavyDeployment.prototype.destroy.call(this)},_calculateParts:function(){var t=this.layer.getFeatureByUuid(this.associatedUuid);if(null!==t&&t.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL&&0!==t.latLngs.length){for(var e=!1,i=0;i<t.deployments.length;i++)if(this===t.deployments[i]){e=!0;break}if(e||t.deployments.push(this),0!==this.subObjects.length&&0===this.components.length)for(var o=0,n=this.subObjects.length;o<n;o++)this.subObjects[o].enableEdit=!0,this.subObjects[o].ownerGroup=this,this._addComponents(this.subObjects[o]);if(0===this.components.length){var l=L.Util.cloneLatLngs(t.latLngs[0]),a=this._map.latLngToLayerPoint(L.latLng(l[0].lat,l[0].lng)),s=this._transitionPoint(new SuperMap.Geometry.Point(this.space,0),a),r=Math.abs(s.lng-l[0].lng),u=new SuperMap.Geometry.Point(0,0),p=this._transitionPoint(u,a),h=new SuperMap.Geometry.Point(100,100),c=this._transitionPoint(h,a),y=new L.LatLngBounds(L.latLng(p.lat,p.lng),L.latLng(c.lat,c.lng)),f=Math.ceil(this._getSubSymbolCount(this.subSymbols.length-1)/this.colNum),S=Math.abs(y.getWest()-y.getEast())*this.colNum+r*(this.colNum-1),g=L.latLng(l[0].lat-r,l[0].lng-.5*S+.5*Math.abs(y.getEast()-y.getWest()));!0===this.isShowTooltip&&(g.lat-=4*r),this._setSubSymbolText();for(var P=[],d=0;d<this.subSymbols.length;d++)for(var m=0;m<this.subSymbols[d].totalNum;m++)P.push(this.subSymbols[d]);for(var b=0,M=0;M<f;M++){for(m=0;m<this.colNum&&!(b>=P.length);m++){var v=P[b];if(void 0!==v.symbolData&&null!==v.symbolData){for(var T=v.symbolData.libID,A=v.symbolData.code,_=g.lng+m*(r+Math.abs(y.getEast()-y.getWest())),O=g.lat-(2*r+Math.abs(y.getNorth()-y.getSouth())/2),x=0,w=0,I=0,D=0,E=0;E<v.symbolData.innerCells.length;E++)for(var C=0;C<v.symbolData.innerCells[E].positionPoints.length;C++)x<=v.symbolData.innerCells[E].positionPoints[C].x&&(x=v.symbolData.innerCells[E].positionPoints[C].x),w>=v.symbolData.innerCells[E].positionPoints[C].x&&(w=v.symbolData.innerCells[E].positionPoints[C].x),I<=v.symbolData.innerCells[E].positionPoints[C].y&&(I=v.symbolData.innerCells[E].positionPoints[C].y),D>=v.symbolData.innerCells[E].positionPoints[C].y&&(D=v.symbolData.innerCells[E].positionPoints[C].y);var R=L.latLng(O,_),N=this._map.latLngToLayerPoint(L.latLng(O,_)),U=new SuperMap.Geometry.Point((x+w)/2,I),G=new SuperMap.Geometry.Point(U.x,U.y),B=new SuperMap.Geometry.Point(P[b].symbolData.anchorPoint.x,P[b].symbolData.anchorPoint.y),k=this._transitionPoint(G,N),F=this._transitionPoint(B,N);R.lat+=F.lat-k.lat,R.lng+=F.lng-k.lng,v.symbolData.annotationPosition=5;var z=SuperMap.Util.cloneObject(v.symbolData),j=L.supermap.plotting.PlottingObject.createSymbol(T,A,R,{symbolData:z,scaleByMap:!0,minScale:0,maxScale:2048,space:0});j.enableEdit=!0,j.ownerGroup=this,this._addComponents(j),this.subObjects.push(j),b++}}this.bounds=this._calculateBounds(),g.lat=this.bounds.getSouth()}if(this.isShowTooltip){var Y=new L.LatLngBounds(L.latLng(this.bounds.getSouth()-r,this.bounds.getWest()-r),L.latLng(this.bounds.getNorth()+r+1.2,this.bounds.getEast()+r)),V=[];V.push(L.latLng(Y.getNorth(),Y.getWest())),V.push(L.latLng(Y.getSouth(),Y.getEast()));var W=L.latLng(l[0].lat,l[0].lng);W.isFixedPos=!0,V.push(W);var H=L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL,V,{serverUrl:this.serverUrl});for(var X in H.enableEdit=!0,H.ownerGroup=this,this.subObjects.splice(0,0,H),this._addComponents(H),this._clearComponents(),this.subObjects)this.subObjects[X].enableEdit=!0,this.subObjects[X].ownerGroup=this,this._addComponents(this.subObjects[X])}}}},_setSubSymbolText:function(){for(var t=0;t<this.subSymbols.length;t++)null!==this.subSymbols[t].symbolData&&(this.subSymbols[t].symbolData.textContent=this.subSymbols[t].textContent)},_parseSymbolData:function(){o.NavyDeployment.prototype._parseSymbolData.call(this),this.symbolData&&(this.isShowTooltip=this.symbolData.isShowTooltip)},_setSymbolData:function(){o.NavyDeployment.prototype._setSymbolData.call(this),this.symbolData&&(this.symbolData.isShowTooltip=this.isShowTooltip)}}),l=e.airDeployment=function(t,e,i,o){return new n(t,e,i,o)};L.supermap.plotting.airDeployment=l,L.supermap.plotting.AirDeployment=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arcRegion=e.ArcRegion=void 0,i(0);var o=i(5),n=i(1),l=e.ArcRegion=o.AlgoSymbol.extend({centerPoint:null,radius:null,startAngle:null,endAngle:null,textPosition:null,radiusText:null,radiusPosAngle:null,radiusLineType:null,subSymbolDefaultPixelSize:15,getCirclePts:function(){return this.getArcPts(this.startAngle,this.endAngle)},setLatLngs:function(t){return this.latLngs=t,2===this.latLngs.length&&(this.centerPoint=this.latLngs[0],this.radius=SuperMap.Plot.PlottingUtil.distVincenty(this.latLngs[0],this.latLngs[1])),3===this.latLngs.length&&(this.startAngle=180*SuperMap.Plot.PlottingUtil.radian(new SuperMap.Geometry.Point(this.latLngs[0].lng,this.latLngs[0].lat),new SuperMap.Geometry.Point(this.latLngs[1].lng,this.latLngs[1].lat))/Math.PI,this.endAngle=180*SuperMap.Plot.PlottingUtil.radian(new SuperMap.Geometry.Point(this.latLngs[0].lng,this.latLngs[0].lat),new SuperMap.Geometry.Point(this.latLngs[2].lng,this.latLngs[2].lat))/Math.PI),this.redraw()},setRadius:function(t){this.radius!==t&&(this.radius=t,this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues))},getRadius:function(){return this.radius},setStartAngle:function(t){this.startAngle!==t&&(this.startAngle=t,this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues))},getStartAngle:function(){return this.startAngle},setEndAngle:function(t){this.endAngle!==t&&(this.endAngle=t,this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues))},getEndAngle:function(){return this.endAngle},setTextPosition:function(t){this.textPosition!==t&&(this.textPosition=t,0!==this.textContent.length&&(this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)))},setRadiusText:function(t,e){e>1&&(e=1),e<0&&(e=0),this.radiusText[e]!==t&&(this.radiusText[e]=t,this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues))},getRadiusText:function(t){return t>1&&(t=1),t<0&&(t=0),this.radiusText[t]},setRadiusTextPos:function(t){this.radiusPosAngle!==t&&(this.radiusPosAngle=t,0!==this.radiusText.length&&(this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)))},getRadiusTextPos:function(){return this.radiusPosAngle},setRadiusLineType:function(t){this.radiusLineType!==t&&(this.radiusLineType=t,0!==this.radiusText.length&&(this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)))},getRadiusLineType:function(){return this.radiusLineType},initialize:function(t,e,i,o){this.scalePoints=[],this.scaleValues=[],n.GraphicObject.prototype.initialize.call(this,t,e,i,o),this.libID=0,this.code=SuperMap.Plot.SymbolType.ARCREGION,this.symbolType=SuperMap.Plot.SymbolType.ARCREGION,this.symbolName="扇形区域",this.minEditPts=2,this.maxEditPts=3,null===this.circlePts&&(this.circlePts=[]),null===this.textPosition&&(this.textPosition=(this.startAngle+this.endAngle)/2),null===this.radiusText&&(this.radiusText=[]),null===this.radiusPosAngle&&(this.radiusPosAngle=(this.startAngle+this.endAngle)/2),null===this.radiusLineType&&(this.radiusLineType=SuperMap.Plot.RadiusLineType.NONE),void 0!==o.constantSize&&null!==o.constantSize||!1!==this.isEdit||(this.constantSize=!0),this.subSymbolDefaultPixelSize=15,0===this.scaleValues.length&&this.scaleValues.push(.1)},destroy:function(){this.centerPoint=null,this.radius=null,this.startAngle=null,this.endAngle=null,this.textPosition=null,this.radiusText=null,this.radiusPosAngle=null,this.radiusLineType=null,o.AlgoSymbol.prototype.destroy.call(this)},_calculateParts:function(){if(this.scalePoints=[],this.isEdit?1===this.latLngs.length&&this.centerPoint!==this.latLngs[0]&&(this.centerPoint=this.latLngs[0]):(2===this.latLngs.length&&(this.centerPoint=this.latLngs[0],this.radius=SuperMap.Plot.PlottingUtil.distVincenty(this.latLngs[0],this.latLngs[1])),3===this.latLngs.length&&(this.startAngle=180*SuperMap.Plot.PlottingUtil.radian(new SuperMap.Geometry.Point(this.latLngs[0].lng,this.latLngs[0].lat),new SuperMap.Geometry.Point(this.latLngs[1].lng,this.latLngs[1].lat))/Math.PI,this.endAngle=180*SuperMap.Plot.PlottingUtil.radian(new SuperMap.Geometry.Point(this.latLngs[0].lng,this.latLngs[0].lat),new SuperMap.Geometry.Point(this.latLngs[2].lng,this.latLngs[2].lat))/Math.PI)),this.centerPoint&&null!==this.centerPoint&&this.radius&&null!==this.radius){this.startAngle%=360,this.endAngle%=360,this.startAngle>this.endAngle&&(this.endAngle+=360);var t=SuperMap.Plot.PlottingUtil.equalFuzzy(this.startAngle,this.endAngle);t&&(this.startAngle=0,this.endAngle=360);var e=this.getArcPts(this.startAngle,this.endAngle);if(!t){var i=(e=this.getArcPts(this.startAngle,this.endAngle))[0].clone();i.isScalePoint=!0,i.tag=0;var o=e[e.length-1].clone();o.isScalePoint=!0,o.tag=1,this.scalePoints.push(i),this.scalePoints.push(o),e.push(this.centerPoint.clone()),this.latLngs.length>2&&this.latLngs.splice(1,this.latLngs.length-1)}this._createAndDrawLayer(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{surroundLineFlag:!1}),0===this.latLngs.length&&this.latLngs.push(this.centerPoint.clone()),1===this.latLngs.length&&t&&this.latLngs.push(e[Math.ceil(e.length/2)].clone()),this._textGeometry(),this._radiusGeometry()}},_textGeometry:function(){if(0!==this.textContent.length){var t=90,e=!1;this.textPosition%=360,this.endAngle>this.startAngle&&(this.textPosition<this.endAngle&&this.textPosition>this.startAngle?(this.endAngle-this.textPosition<t&&(t=this.endAngle-this.textPosition),this.textPosition-this.startAngle<t&&(t=this.textPosition-this.startAngle)):this.textPosition+360<this.endAngle&&this.textPosition+360>this.startAngle?(this.textPosition+=360,this.endAngle-this.textPosition<t&&(t=this.endAngle-this.textPosition),this.textPosition-this.startAngle<t&&(t=this.textPosition-this.startAngle)):e=!0),this.startAngle>this.endAngle&&(this.textPosition>this.startAngle||this.textPosition<this.endAngle?e=!0:(this.startAngle-this.textPosition<t&&(t=this.startAngle-this.textPosition),this.textPosition-this.endAngle<t&&(t=this.textPosition-this.endAngle))),2*t<4&&(e=!0);var i=null;if(!0===e){var o=this.getBounds().getCenter();this._createAndDrawLayer(34,[o],{surroundLineFlag:!1,labelAlign:"cm"},this.textContent),i=o.clone()}else{var n=this.textPosition+t,l=this.textPosition-t,a=this.getArcPts(l,n),s=SuperMap.Plot.RelLineText.ONLEFTLINE;SuperMap.Plot.PlottingUtil.isPloyClockwise(a)&&(s=SuperMap.Plot.RelLineText.ONRIGHTLINE);for(var r=SuperMap.Plot.PlottingUtil.clonePoints(a),u=[],p=r.length-1;p>=0;p--)u.push(r[p]);this._addComponents(L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.PATHTEXT,u,{textContent:this.textContent,showPathLine:!1,isCurve:!1,relLineText:s},this.style)),i=a[Math.ceil(a.length/2)].clone()}i.isScalePoint=!0,i.tag=2,this.scalePoints.push(i)}},_radiusGeometry:function(){if(0!==this.radiusText.length){this.radiusPosAngle%=360;var t=SuperMap.Plot.PlottingUtil.destinationVincenty(this.centerPoint,360-this.radiusPosAngle+90,1e3*this.radius),e=new SuperMap.Geometry.Point(t.lng,t.lat),i=new SuperMap.Geometry.Point(this.centerPoint.lng,this.centerPoint.lat),o=SuperMap.Plot.PlottingUtil.distance(i,e),n=[];if(n.push(this.centerPoint),n.push(L.latLng(e.y,e.x)),SuperMap.Plot.RadiusLineType.NONE!==this.radiusLineType&&this._createAndDrawLayer(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1}),this.radiusLineType===SuperMap.Plot.RadiusLineType.ARROW){var l;if(null===this.map)l=0;else{var a=this._map.layerPointToLatLng(L.point(0,0)),s=this._map.layerPointToLatLng(L.point(this.subSymbolDefaultPixelSize,0));l=SuperMap.Plot.PlottingUtil.distance(new SuperMap.Geometry.Point(a.lng,a.lat),new SuperMap.Geometry.Point(s.lng,s.lat))}var r=SuperMap.Plot.PlottingUtil.findPoint(e,i,l,12.5),u=SuperMap.Plot.PlottingUtil.findPoint(e,i,l,-12.5),p=[];p.push(L.latLng(e.y,e.x)),p.push(L.latLng(r.y,r.x)),p.push(L.latLng(u.y,u.x)),this._createAndDrawLayer(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,p,{surroundLineFlag:!1,fill:!0,fillLimit:!0,lineTypeLimit:!0})}if(SuperMap.Util.isArray(this.radiusText)||(this.radiusText=[this.radiusText]),this.radiusText.length>=1){var h=SuperMap.Plot.PlottingUtil.findPoint(i,e,.2*o,0),c=SuperMap.Plot.PlottingUtil.findPoint(i,e,.8*o,0),y=SuperMap.Plot.PlottingUtil.findPoint(h,e,.02*o,90),f=SuperMap.Plot.PlottingUtil.findPoint(c,e,.02*o,90),S=L.latLng(y.y,y.x),g=L.latLng(f.y,f.x),P=SuperMap.Plot.RelLineText.ONLEFTLINE,d=[];y.x<f.x?(d.push(S),d.push(g)):(d.push(g),d.push(S),P=SuperMap.Plot.RelLineText.ONRIGHTLINE),this._addComponents(L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.PATHTEXT,d,{textContent:this.radiusText[0],showPathLine:!1,relLineText:P},this.style))}if(2===this.radiusText.length){var m=SuperMap.Plot.RelLineText.ONRIGHTLINE,b=SuperMap.Plot.PlottingUtil.findPoint(h,e,.02*o,270),M=SuperMap.Plot.PlottingUtil.findPoint(c,e,.02*o,270),v=L.latLng(b.y,b.x),T=L.latLng(M.y,M.x),A=[];b.x<M.x?(A.push(v),A.push(T)):(A.push(T),A.push(v),m=SuperMap.Plot.RelLineText.ONLEFTLINE),this._addComponents(L.supermap.plotting.PlottingObject.createSymbol(0,SuperMap.Plot.SymbolType.PATHTEXT,A,{textContent:this.radiusText[1],showPathLine:!1,relLineText:m},this.style))}var _=L.latLng(e.y,e.x);_.isScalePoint=!0,_.tag=3,this.scalePoints.push(_)}},_parseSymbolData:function(){o.AlgoSymbol.prototype._parseSymbolData.call(this),this.symbolData&&(this.centerPoint=L.latLng(this.symbolData.centerPoint.y,this.symbolData.centerPoint.x),this.endAngle=this.symbolData.endAngle,this.radius=this.symbolData.radius,this.radiusPosAngle=this.symbolData.radiusPosAngle,this.startAngle=this.symbolData.startAngle,this.textPosition=this.symbolData.textPosition,this.radiusLineType=this.symbolData.radiusLineType,this.radiusText=this.symbolData.radiusText)},_setSymbolData:function(){this.latLngs=[],o.AlgoSymbol.prototype._setSymbolData.call(this),this.symbolData&&(this.symbolData.centerPoint||(this.symbolData.centerPoint={}),this.symbolData.centerPoint.x=this.centerPoint.lng,this.symbolData.centerPoint.y=this.centerPoint.lat,this.symbolData.endAngle=this.endAngle,this.symbolData.radius=this.radius,this.symbolData.radiusPosAngle=this.radiusPosAngle,this.symbolData.startAngle=this.startAngle,this.symbolData.textPosition=this.textPosition,this.symbolData.radiusLineType=this.radiusLineType,this.symbolData.radiusText=this.radiusText)},_reView:function(){void 0!==this.prevStrokeWidth&&this.prevStrokeWidth!==this.feature.style.strokeWidth&&(this.strokeWidth=this.style.strokeWidth),this.fromZoom!==this._map.getZoom()&&(!0===this.isEdit&&this.redraw(),this.fromZoom=this._map.getZoom())},_modifyPoint:function(t,e){if(!0===e.isScalePoint){if(0===t)this.radius=SuperMap.Plot.PlottingUtil.distVincenty(this.centerPoint,e),this.startAngle=180*SuperMap.Plot.PlottingUtil.radian(new SuperMap.Geometry.Point(this.latLngs[0].lng,this.latLngs[0].lat),new SuperMap.Geometry.Point(e.lng,e.lat))/Math.PI;else if(1===t)this.radius=SuperMap.Plot.PlottingUtil.distVincenty(this.centerPoint,e),this.endAngle=180*SuperMap.Plot.PlottingUtil.radian(new SuperMap.Geometry.Point(this.latLngs[0].lng,this.latLngs[0].lat),new SuperMap.Geometry.Point(e.lng,e.lat))/Math.PI;else if(2===t){var i=180*SuperMap.Plot.PlottingUtil.radian(new SuperMap.Geometry.Point(this.latLngs[0].lng,this.latLngs[0].lat),new SuperMap.Geometry.Point(e.lng,e.lat))/Math.PI;(i>this.startAngle&&i<this.endAngle||i+360>this.startAngle&&i+360<this.endAngle)&&(this.textPosition=i)}else if(3===t){var o=180*SuperMap.Plot.PlottingUtil.radian(new SuperMap.Geometry.Point(this.latLngs[0].lng,this.latLngs[0].lat),new SuperMap.Geometry.Point(e.lng,e.lat))/Math.PI;this.startAngle%360==this.endAngle%360?this.radiusPosAngle=o:(o>this.startAngle&&o<this.endAngle||o+360>this.startAngle&&o+360<this.endAngle)&&(this.radiusPosAngle=o)}}else this.latLngs.length>0&&(this.centerPoint=this.latLngs[0].clone()),2===this.latLngs.length&&(this.radius=SuperMap.Plot.PlottingUtil.distVincenty(this.latLngs[0],this.latLngs[1]));this.redraw()},_resizeLatLngs:function(t,e,i,n){var l=!1;1===this.latLngs.length&&(l=!0,this.latLngs.push(this.scalePoints[0])),o.AlgoSymbol.prototype._resizeLatLngs.call(this,t,e,i,n),this.centerPoint.lng=this.latLngs[0].lng,this.centerPoint.lat=this.latLngs[0].lat,this.radius=SuperMap.Plot.PlottingUtil.distVincenty(this.latLngs[0],this.latLngs[1]),l&&this.latLngs.splice(1,1)},setRotate:function(t){if(this.dRotate=t,this._rotate(t,this.centerPoint),this.radiusPosAngle+=t,this.startAngle+=t,this.endAngle+=t,this.textPosition+=t,this.latLngs=[],0!==this.avoidRegions.length)for(var e=0,i=this.avoidRegions.length;e<i;e++)L.Util.rotateLatLngs(this.avoidRegions[e].getLatLngs(),this.centerPoint,t);this.redraw()},move:function(t,e){for(var i=0,o=this.avoidRegions.length;i<o;i++)L.Util.moveLatLngs(this.avoidRegions[i].getLatLngs(),t,e);L.Util.moveLatLngs([this.centerPoint],t,e),this.latLngs=[],this.redraw()},getArcPts:function(t,e){for(var i=[],o=t;o<=e;o+=5){var n=SuperMap.Plot.PlottingUtil.destinationVincenty(this.centerPoint,360-o+90,1e3*this.radius);i.push(n)}if(o-e>0&&o-e<5){var l=SuperMap.Plot.PlottingUtil.destinationVincenty(this.centerPoint,360-e+90,1e3*this.radius);i.push(l)}return i}}),a=e.arcRegion=function(t,e,i,o){return new l(t,e,i,o)};L.supermap.plotting.arcRegion=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditMarker=void 0,i(0);var o=e.EditMarker=L.Marker.extend({options:{nHandle:0,tag:0}});L.supermap.plotting.editMarker=function(t,e){return new o(t,e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Text=e.PointImage=e.PlottingObjectDrag=e.EditMarker=void 0;var o=i(61),n=i(10),l=i(16),a=i(7);e.EditMarker=o.EditMarker,e.PlottingObjectDrag=n.PlottingObjectDrag,e.PointImage=l.PointImage,e.Text=a.Text},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.geoSymbolText1=e.GeoSymbolText1=e.geoSymbolText=e.GeoSymbolText=e.satelliteTimeWindows=e.SatelliteTimeWindows=e.satellite=e.Satellite=e.lineRelation=e.LineRelation=e.interferenceBeam=e.InterferenceBeam=e.navyRoute=e.NavyRoute=e.missileRoute=e.MissileRoute=e.literateSign=e.LiterateSign=e.airRoute=e.AirRoute=e.geoRouteNode=e.GeoRouteNode=e.Route=e.avoidRegion=e.AvoidRegion=e.airDeployment=e.AirDeployment=e.navyDeployment=e.NavyDeployment=e.flagGroup=e.FlagGroup=e.groupObject=e.GroupObject=e.arcRegion=e.ArcRegion=e.dotSymbol=e.DotSymbol=e.algoSymbol=e.AlgoSymbol=e.GraphicObject=e.PlottingObject=e.Text=e.PointImage=e.PlottingObjectDrag=e.EditMarker=void 0;var o=i(62),n=i(4),l=i(1),a=i(5),s=i(23),r=i(60),u=i(6),p=i(13),h=i(21),c=i(59),y=i(32),f=i(3),S=i(14),g=i(58),P=i(15),d=i(57),m=i(56),b=i(55),L=i(22),M=i(54),v=i(53),T=i(52),A=i(51);e.EditMarker=o.EditMarker,e.PlottingObjectDrag=o.PlottingObjectDrag,e.PointImage=o.PointImage,e.Text=o.Text,e.PlottingObject=n.PlottingObject,e.GraphicObject=l.GraphicObject,e.AlgoSymbol=a.AlgoSymbol,e.algoSymbol=a.algoSymbol,e.DotSymbol=s.DotSymbol,e.dotSymbol=s.dotSymbol,e.ArcRegion=r.ArcRegion,e.arcRegion=r.arcRegion,e.GroupObject=u.GroupObject,e.groupObject=u.groupObject,e.FlagGroup=p.FlagGroup,e.flagGroup=p.flagGroup,e.NavyDeployment=h.NavyDeployment,e.navyDeployment=h.navyDeployment,e.AirDeployment=c.AirDeployment,e.airDeployment=c.airDeployment,e.AvoidRegion=y.AvoidRegion,e.avoidRegion=y.avoidRegion,e.Route=f.Route,e.GeoRouteNode=S.GeoRouteNode,e.geoRouteNode=S.geoRouteNode,e.AirRoute=g.AirRoute,e.airRoute=g.airRoute,e.LiterateSign=P.LiterateSign,e.literateSign=P.literateSign,e.MissileRoute=d.MissileRoute,e.missileRoute=d.missileRoute,e.NavyRoute=m.NavyRoute,e.navyRoute=m.navyRoute,e.InterferenceBeam=b.InterferenceBeam,e.interferenceBeam=b.interferenceBeam,e.LineRelation=L.LineRelation,e.lineRelation=L.lineRelation,e.Satellite=M.Satellite,e.satellite=M.satellite,e.SatelliteTimeWindows=v.SatelliteTimeWindows,e.satelliteTimeWindows=v.satelliteTimeWindows,e.GeoSymbolText=T.GeoSymbolText,e.geoSymbolText=T.geoSymbolText,e.GeoSymbolText1=A.GeoSymbolText1,e.geoSymbolText1=A.geoSymbolText1},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.editControl=e.PlotEditControl=void 0,i(0);var o=i(4),n=i(6),l=i(3),a=i(14),s=i(13),r=i(9),u=i(12),p=i(11),h=e.PlotEditControl=p.PlotControl.extend({_dragStartScale:null,_dragStartRotate:null,_dragStartBounds:null,_dragStartLatLngs:null,_dragStartScaleValues:null,_dragStartPositionOffset:null,_dragStartScalePoints:null,_editMarkers:null,_disEditBox:null,_editFeatures:null,_mouseTolerance:10,_editMode:SuperMap.Plot.EditMode.EDITCIRCUMRECTANGLE,_avoidEditing:!1,selectedFeatures:[],options:{highlightFlag:!0,highlightStyle:{color:"#ffffff",opacity:1,weight:1},draggable:!0,editIcon:L.divIcon({className:"leaflet-supermap-plot-control-icon-path",iconSize:[10,10]}),scaleIcon:L.divIcon({className:"leaflet-supermap-plot-scale-icon-path",iconSize:[10,10]}),rotateIcon:L.divIcon({className:"leaflet-supermap-plot-rotate-icon-path",iconSize:[15,15]}),lockedIcon:L.divIcon({className:"leaflet-supermap-plot-locked-icon-path",iconSize:[10,10]}),avoidIcon:L.divIcon({className:"leaflet-supermap-plot-avoid-icon-path",iconSize:[8,8]})},initialize:function(t,e){if(L.version<"0.7")throw new Error("Leaflet.draw 0.2.3+ requires Leaflet 0.7.0+. Download latest from https://github.com/Leaflet/Leaflet/");L.Control.prototype.initialize.call(this,e),L.setOptions(this,e),this._editMarkers={},this._disEditBox={},this._dragStartScale={},this._dragStartRotate={},this._dragStartBounds={},this._dragStartLatLngs={},this._dragStartPositionOffset={},this._dragStartScaleValues={},this._dragStartScalePoints={},this._editFeatures={}},onAdd:function(t){this.controlDiv=L.DomUtil.create("div","supermap-iclient"),this._map=t,this._map.on("click",this._onMapClick,this),this._map._plotEditControl=this;for(var e=0;e<this._map.getPlottingLayers().length;e++)if(this._map.getPlottingLayers()[e].isSelected){this.enableEditFeatures(this._map.getPlottingLayers()[e].features);for(var i=0;i<this._map.getPlottingLayers()[e].features.length;i++)(this._map.getPlottingLayers()[e].features[i]instanceof n.GroupObject||this._map.getPlottingLayers()[e].features[i]instanceof l.Route)&&this.enableEditFeatures(this._map.getPlottingLayers()[e].features[i].components)}return this.controlDiv},onRemove:function(){for(var t in this._map.off("click",this._onMapClick,this),this.unselectFeatures(),this._map._plotEditControl=null,this._map=null,this._editFeatures)this._disableFeatureEdit(this._editFeatures[t])},enableEditFeatures:function(t){SuperMap.Util.isArray(t)||(t=[t]);for(var e=0;e<t.length;e++)t[e]instanceof o.PlottingObject&&(t[e].enableEdit=!0,this._editFeatures[t[e].uuid]=t[e],this._enableFeatureEdit(t[e]))},disableEditFeatures:function(t){SuperMap.Util.isArray(t)||(t=[t]);for(var e=0;e<t.length;e++)t[e]instanceof o.PlottingObject&&(t[e].enableEdit=!1,delete this._editFeatures[t[e].uuid],this._disableFeatureEdit(t[e]))},avoidEdit:function(t){if(void 0===t&&(t=!this._avoidEditing),this._avoidEditing!==t)if(t&&1===this.selectedFeatures.length&&!this.selectedFeatures[0].getLocked()){for(var e in this._avoidRegionControl=new u.AvoidRegionControl(this.selectedFeatures[0]),this._map.addControl(this._avoidRegionControl),this._editFeatures)this._disableFeatureEdit(this._editFeatures[e]);this._collectEditMarkers(this._avoidRegionControl.feature),this._avoidEditing=t}else if(!t){if(this._avoidRegionControl){for(var i in this._editFeatures)this._enableFeatureEdit(this._editFeatures[i]);if(!SuperMap.Util.isArray(this._avoidRegionControl.feature))var o=[this._avoidRegionControl.feature];this.selectFeatures(o),this._map.removeControl(this._avoidRegionControl),this._avoidRegionControl=null}this._avoidEditing=t}return this._avoidEditing},setEditMode:function(t){if(this._editMode!==t){this._editMode=t;for(var e=0;e<this.selectedFeatures.length;e++)this._collectEditMarkers(this.selectedFeatures[e])}},canCopy:function(){return this.getSelectedFeatures().length>0},canCut:function(){return this.getSelectedFeatures().length>0},canPaste:function(){return!!(this.pasteGeoAry&&this.pasteGeoAry.length>0)},copy:function(){this.pasteGeoAry=[],this.pasteGeoSel=[];for(var t=0,e=this._map.getPlottingLayers().length;t<e;t++){var i=this._map.getPlottingLayers()[t];if(!0!==i.isLocked&&!1!==i.isEditable)for(var n=0,l=i.getFeatures().length;n<l;n++){var a=i.getFeatures()[n];if(a.isSelected&&!1===a.isLocked&&(a.layer=i,a instanceof o.PlottingObject))if(a.symbolType===SuperMap.Plot.SymbolType.ROUTENODE)this.pasteGeoAry.push(a.route);else if(this.pasteGeoAry.push(a),this.pasteGeoSel.push(a.isSelected),(a.symbolType===SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS||a.symbolType===SuperMap.Plot.SymbolType.SATELLITE)&&a.hasOwnProperty("timeWindows")&&0!==a.timeWindows.length)for(var s=0,r=a.timeWindows.length;s<r;s++)a.timeWindows[s].hasOwnProperty("symbolType")&&a.timeWindows[s].symbolType===SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS&&this.pasteGeoAry.push(a.timeWindows[s])}}},copyFeatures:function(t){this.pasteGeoAry=[],this.pasteGeoSel=[],SuperMap.Util.isArray(t)||(t=[t]);for(var e=0;e<t.length;e++){var i=t[e];i instanceof o.PlottingObject&&(this.pasteGeoAry.push(i),this.pasteGeoSel.push(i.isSelected),i.isSelected&&this.selectedFeatures.push(i))}},cut:function(){this.pasteGeoAry=[],this.pasteGeoSel=[];var t=[],e=new SuperMap.Plot.Transaction;e.transType=SuperMap.Plot.TransactionType.REMOVE;for(var i=this.getSelectedFeatures().slice(),n=0;n<i.length;n++){var l=i[n];if(!0!==l.layer.isLocked&&!1!==l.layer.isEditable&&!1===l.isLocked){if(l instanceof o.PlottingObject)if(l.symbolType===SuperMap.Plot.SymbolType.ROUTENODE)this.pasteGeoAry.push(l.route),this.pasteGeoSel.push(l.route.isSelected),l.layer.removeFeatures(l.route);else{if(this.pasteGeoAry.push(l),this.pasteGeoSel.push(l.isSelected),l.hasOwnProperty("geoSymbolTexts")&&0!==l.geoSymbolTexts.length)for(var a=0,s=l.geoSymbolTexts.length;a<s;a++)l.geoSymbolTexts[a].hasOwnProperty("isSelected")&&!0===l.geoSymbolTexts[a].isSelected&&t.push(l.geoSymbolTexts[a].clone());if((l.symbolType===SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS||l.symbolType===SuperMap.Plot.SymbolType.SATELLITE)&&l.hasOwnProperty("timeWindows")&&0!==l.timeWindows.length)for(var r=0,u=l.timeWindows.length;r<u;r++)l.timeWindows[r].hasOwnProperty("symbolType")&&l.timeWindows[r].symbolType===SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS&&(this.pasteGeoAry.push(l.timeWindows[r]),l.layer.removeFeatures(l.timeWindows[r]));l.layer.removeFeatures(l);var p=new SuperMap.Plot.TransactionInfo;p.layerId=l.layer._leaflet_id,p.feature=l,e.transInfos.push(p)}0!==e.transInfos.length&&L.supermap.plotting.getControl().getTransManager().add(e)}}if(0!==t.length)for(var h=0,c=t.length;h<c;h++){var y=t[h];if(y.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT||y.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT1)for(var f=0,S=this.pasteGeoAry.length;f<S;f++)y.associatedUuid===this.pasteGeoAry[f].uuid&&this.pasteGeoAry[f].geoSymbolTexts.push(t[h])}},cutFeatures:function(t){this.pasteGeoAry=[],this.pasteGeoSel=[],t=SuperMap.Util.isArray(t)?t.slice():[t];for(var e=0;e<t.length;e++){var i=t[e],n=i.layer;i instanceof o.PlottingObject&&(this.pasteGeoAry.push(i),this.pasteGeoSel.push(i.isSelected),i instanceof a.GeoRouteNode?(i.isSelected&&this.unselectFeatures(i),n.removeFeatures(i.route)):n.removeFeatures(i),i.layer=n)}},paste:function(){return this._pasteToPosition.apply(this,arguments)},align:function(t){if(0!==this.getSelectedFeatures().length){var e=new SuperMap.Plot.Transaction;L.supermap.plotting.getControl().getTransManager().add(e);var i=function(t,e,i,o,n,l){var a=new SuperMap.Plot.TransactionInfo;a.layerId=t,a.uuid=e,a.functionName=i,a.undoParams=o,a.redoParams=n,l.transInfos.push(a)},o=1,n=this.getSelectedFeatures().length,l=null,a=null,s=null,r=this.getSelectedFeatures()[0].getBounds();if(t===SuperMap.Plot.AlignType.LEFT)for(;o<n;o++)l=this.getSelectedFeatures()[o].getBounds(),a=r.getWest()-l.getWest(),this.getSelectedFeatures()[o].move(0,a),this._collectEditMarkers(this.getSelectedFeatures()[o]),i(this.getSelectedFeatures()[o].layer._leaflet_id,this.getSelectedFeatures()[o].uuid,"move",[0,-a],[0,a],e);if(t===SuperMap.Plot.AlignType.RIGHT)for(;o<n;o++)l=this.getSelectedFeatures()[o].getBounds(),a=r.getEast()-l.getEast(),this.getSelectedFeatures()[o].move(0,a),this._collectEditMarkers(this.getSelectedFeatures()[o]),i(this.getSelectedFeatures()[o].layer._leaflet_id,this.getSelectedFeatures()[o].uuid,"move",[0,-a],[0,a],e);if(t===SuperMap.Plot.AlignType.UP)for(;o<n;o++)l=this.getSelectedFeatures()[o].getBounds(),s=r.getNorth()-l.getNorth(),this.getSelectedFeatures()[o].move(s,0),this._collectEditMarkers(this.getSelectedFeatures()[o]),i(this.getSelectedFeatures()[o].layer._leaflet_id,this.getSelectedFeatures()[o].uuid,"move",[-s,0],[s,0],e);if(t===SuperMap.Plot.AlignType.DOWN)for(;o<n;o++)l=this.getSelectedFeatures()[o].getBounds(),s=r.getSouth()-l.getSouth(),this.getSelectedFeatures()[o].move(s,0),this._collectEditMarkers(this.getSelectedFeatures()[o]),i(this.getSelectedFeatures()[o].layer._leaflet_id,this.getSelectedFeatures()[o].uuid,"move",[-s,0],[s,0],e);if(t===SuperMap.Plot.AlignType.VERTICALCENTER)for(;o<n;o++)l=this.getSelectedFeatures()[o].getBounds(),s=r.getCenter().lat-l.getCenter().lat,this.getSelectedFeatures()[o].move(s,0),this._collectEditMarkers(this.getSelectedFeatures()[o]),i(this.getSelectedFeatures()[o].layer._leaflet_id,this.getSelectedFeatures()[o].uuid,"move",[-s,0],[s,0],e);if(t===SuperMap.Plot.AlignType.HORIZONTALCENTER)for(;o<n;o++)l=this.getSelectedFeatures()[o].getBounds(),a=r.getCenter().lng-l.getCenter().lng,this.getSelectedFeatures()[o].move(0,a),this._collectEditMarkers(this.getSelectedFeatures()[o]),i(this.getSelectedFeatures()[o].layer._leaflet_id,this.getSelectedFeatures()[o].uuid,"move",[0,-a],[0,a],e)}},deleteSelectedFeatures:function(){if(0===Object.keys(this.getSelectedFeatures()).length)return null;if(Object.keys(this.getSelectedFeatures()).length){for(var t=this.getSelectedFeatures(),e=t.slice(),i=0,o=t.length;i<o;i++)t[i].layer.removeFeatures(t[i]);var n=new SuperMap.Plot.Transaction;n.transType=SuperMap.Plot.TransactionType.REMOVE,L.supermap.plotting.getControl().getTransManager().add(n);for(var l=0,a=e.length;l<a;l++){var s=new SuperMap.Plot.TransactionInfo;s.layerId=e[l].layer._leaflet_id,s.feature=e[l],n.transInfos.push(s)}}},getSelectedFeatures:function(){return this.selectedFeatures.slice()},multiSelect:function(){L.DomEvent.on(this._map._container,"mousedown",this._onMapMouseDown,this),this._map.dragging.enabled()&&(this._map.dragging.disable(),this._mapDraggingWasEnabled=!0)},selectFeatures:function(t){if(SuperMap.Util.isArray(t)||(t=[t]),!1!==this.fire(SuperMap.Plot.Event.beforefeaturesselected,{features:t})){var e=[];for(var i in t)null!==t[i]._map&&t[i].enableEdit&&!1===t[i].isSelected&&(t[i].isSelected=!0,this.selectedFeatures.push(t[i]),this._collectEditMarkers(t[i]),this.options.draggable&&!t[i].layer.isLocked&&t[i].layer.isEditable&&t[i].dragging.enable(),null!==t[i].ownerGroup&&(t[i].ownerGroup.isSelected=!0),t[i]instanceof a.GeoRouteNode&&(t[i].route.isSelected=!0,this.options.highlightFlag&&t[i].route.highlight(this.options.highlightStyle)),e.push(t[i]));this.fire(SuperMap.Plot.Event.featuresselected,{features:e})}},unselectFeatures:function(t){if(void 0===t&&(t=this.selectedFeatures.slice()),SuperMap.Util.isArray(t)||(t=[t]),!1!==this.fire(SuperMap.Plot.Event.beforefeaturesunselected,{features:t})){for(var e=t.slice(),i=0;i<e.length;){var o=L.Util.indexOf(this.selectedFeatures,e[i]);-1!==o?(this._removeMarkers(e[i]),e[i].isSelected=!1,e[i].dragging.disable(),null!==e[i].ownerGroup&&(e[i].ownerGroup.isSelected=!1),e[i]instanceof a.GeoRouteNode&&(e[i].route.isSelected=!1,e[i].route.unhighlight()),this.selectedFeatures.splice(o,1),i++):e.splice(i,1)}this.fire(SuperMap.Plot.Event.featuresunselected,{features:e}),this.transaction&&0!==this.transaction.transInfos.length&&(L.supermap.plotting.getControl().getTransManager().add(this.transaction),this.transaction=null,this.isAddTransInfo=!1)}},_onMapMouseDown:function(t){this.multiple=!1,L.DomUtil.disableTextSelection(),L.DomUtil.disableImageDrag(),this._startPoint=this._map.mouseEventToContainerPoint(t),L.DomEvent.on(document,{contextmenu:L.DomEvent.stop,mousemove:this._onMapMouseMove,mouseup:this._onMapMouseUp},this)},_onMapMouseMove:function(t){this.multiple||(this.multiple=!0,this._box=L.DomUtil.create("div","leaflet-zoom-box",this._map._container),L.DomUtil.addClass(this._map._container,"leaflet-crosshair")),this._endPoint=this._map.mouseEventToContainerPoint(t);var e=new L.Bounds(this._endPoint,this._startPoint),i=e.getSize();L.DomUtil.setPosition(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_onMapMouseUp:function(){if(L.DomEvent.off(this._map._container,"mousedown",this._onMapMouseDown,this),this.multiple&&(L.DomUtil.remove(this._box),L.DomUtil.removeClass(this._map._container,"leaflet-crosshair")),L.DomUtil.enableTextSelection(),L.DomUtil.enableImageDrag(),L.DomEvent.off(document,{contextmenu:L.DomEvent.stop,mousemove:this._onMapMouseMove,mouseup:this._onMapMouseUp},this),this.multiple){var t=new L.LatLngBounds(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._endPoint)),e=[];for(var i in this._editFeatures)e.push(this._editFeatures[i]);for(var o=[],n=0,l=e.length;n<l;n++)e[n].isSelected||(e[n]instanceof a.GeoRouteNode||e[n].symbolType===SuperMap.Plot.SymbolType.LITERATESIGN?t.contains(e[n].route.getBounds().getCenter())&&-1===SuperMap.Util.indexOf(o,e[n].route)&&o.push(e[n].route):null!==e[n].ownerGroup?t.contains(e[n].ownerGroup.getBounds().getCenter())&&-1===SuperMap.Util.indexOf(o,e[n].ownerGroup)&&o.push(e[n].ownerGroup):e[n].getBounds().isValid()&&t.contains(e[n].getBounds().getCenter())&&o.push(e[n]));0!==o.length&&this.selectFeatures(o),this._mapDraggingWasEnabled&&this._map.dragging.enable(),this.multiple=!1}},_enableFeatureEdit:function(t){t instanceof o.PlottingObject&&t.on("click",this._onClick,this).on("mousemove",this._onMouseMove,this).on("mouseout",this._onMouseOut,this).on("dragstart",this._onDragStart,this).on("drag",this._onDrag,this).on("dragend",this._onDragEnd,this).on("reseteditmarkersvalues",this._onResetEditMarkersValues,this).on("reseteditmarkers",this._onResetEditMarkers,this)},_disableFeatureEdit:function(t){t instanceof o.PlottingObject&&(t.isSelected&&this.unselectFeatures(t),t.off("click",this._onClick,this).off("mousemove",this._onMouseMove,this).off("mouseout",this._onMouseOut,this).off("dragstart",this._onDragStart,this).off("drag",this._onDrag,this).off("dragend",this._onDragEnd,this).off("reseteditmarkersvalues",this._onResetEditMarkersValues,this).off("reseteditmarkers",this._onResetEditMarkers,this))},_onSelectedLayers:function(t){this.selectFeatures(t.target)},_onUnSelectLayers:function(t){this.unselectFeatures(t.target)},_onMouseMove:function(t){var e=t.target,i="";if(e.isSelected)if(this._editMode===SuperMap.Plot.EditMode.ADDCONTROLPOINT&&(SuperMap.Plot.AddPoint_WayType.UNKNOWN!==e._getSymbolWayType()||e instanceof a.GeoRouteNode&&(e._isFirstNode()||e._isLastNode())||e.symbolType===SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM))i="crosshair";else if(this._editMode===SuperMap.Plot.EditMode.ADDCONTROLPOINT&&e instanceof l.Route){var o=this._getAddPointTolerance(),n=e._selectNodeLayer(t.latlng,o);null===n||n instanceof a.GeoRouteNode&&(n._isFirstNode()||n._isLastNode())?i="crosshair":null!==n&&(i="pointer")}else i="move";else i="pointer";e.layer._setCursorStyle(i)},_onMouseOut:function(t){t.target.layer._setCursorStyle()},_onDragStart:function(){for(var t=0;t<this.selectedFeatures.length;t++){if(!this.selectedFeatures[t].getLocked()){var e=this._editMarkers[this.selectedFeatures[t].uuid];for(var i in e)e[i].setOpacity(0)}this.selectedFeatures[t]instanceof n.GroupObject?this._dragStartLatLngs[this.selectedFeatures[t].uuid]=this._editMarkers[this.selectedFeatures[t].uuid]:this._dragStartLatLngs[this.selectedFeatures[t].uuid]=L.Util.cloneLatLngs(this.selectedFeatures[t].getLatLngs()),this.selectedFeatures[t].symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL&&(this._dragStartPositionOffset[this.selectedFeatures[t].uuid]={x:this.selectedFeatures[t].positionOffsetX,y:this.selectedFeatures[t].positionOffsetY}),this.transaction||(this.transaction=new SuperMap.Plot.Transaction,this.transaction.transType=SuperMap.Plot.TransactionType.EDIT,this.isAddTransInfo=!0)}},_onDrag:function(t){for(var e=0,i=this.selectedFeatures.length;e<i;e++)if((this._editMode!==SuperMap.Plot.EditMode.ADDCONTROLPOINT||SuperMap.Plot.AddPoint_WayType.UNKNOWN===this.selectedFeatures[e]._getSymbolWayType())&&!this.selectedFeatures[e].getLocked()){var o=this.selectedFeatures[e].symbolType;if(o===SuperMap.Plot.SymbolType.SYMBOLTEXT1||o===SuperMap.Plot.SymbolType.AIRROUTE||o===SuperMap.Plot.SymbolType.NAVYROUTE||o===SuperMap.Plot.SymbolType.MISSILEROUTE)break;if(this.selectedFeatures[e].move(t.dLat,t.dLng),this.isAddTransInfo){var n=new SuperMap.Plot.TransactionInfo;n.layerId=this.selectedFeatures[e].layer._leaflet_id,n.uuid=this.selectedFeatures[e].uuid,n.functionName="move",this.transaction.transInfos.push(n)}}this.isAddTransInfo=!1},_onDragEnd:function(){for(var t=0;t<this.selectedFeatures.length;t++)this.selectedFeatures[t].getLocked()||(this._collectEditMarkers(this.selectedFeatures[t]),this.selectedFeatures[t].graphic&&this.selectedFeatures[t].graphic.updateImage());this._saveHistoryInfomation(),this.transaction&&0!==this.transaction.transInfos.length&&(L.supermap.plotting.getControl().getTransManager().add(this.transaction),this.transaction=new SuperMap.Plot.Transaction,this.isAddTransInfo=!0),this.fire(SuperMap.Plot.Event.featuresmodified,{features:this.selectedFeatures})},_saveHistoryInfomation:function(){if(this.transaction)for(var t=0;t<this.transaction.transInfos.length;t++){var e=this.transaction.transInfos[t].uuid,i=this._map.getLayer(this.transaction.transInfos[t].layerId).getFeatureByUuid(e);if(null===i)for(var o=0;o<this.features.length;o++)if(this.features[t].uuid===e){i=this.features[t];break}if(null!==i){if("setRotate"===this.transaction.transInfos[t].functionName)i._isDot()?(this.transaction.transInfos[t].undoParams=[this._dragStartRotate[e]],this.transaction.transInfos[t].redoParams=[i.getRotate()]):(this.transaction.transInfos[t].undoParams=[360-(i.getRotate()-this._dragStartRotate[e])],this.transaction.transInfos[t].redoParams=[i.getRotate()-this._dragStartRotate[e]]);else if("setScale"===this.transaction.transInfos[t].functionName){var l=this._dragStartScale[e];!1===i.limitWidthHeight?(this.transaction.transInfos[t].undoParams=[l.x,l.y],this.transaction.transInfos[t].redoParams=[i.getScale().x,i.getScale().y]):(this.transaction.transInfos[t].undoParams=[l],this.transaction.transInfos[t].redoParams=[i.getScale()])}else if("setLatLngs"===this.transaction.transInfos[t].functionName)i.symbolType===SuperMap.Plot.SymbolType.LINERELATION?this.transaction.transInfos[t].undoParams=[this._dragStartLatLngs[e]]:this.transaction.transInfos[t].undoParams=[L.Util.cloneLatLngs(this._dragStartLatLngs[e])],this.transaction.transInfos[t].redoParams=[L.Util.cloneLatLngs(i.getLatLngs())],i.symbolType===SuperMap.Plot.SymbolType.ARCREGION&&1===this.transaction.transInfos[t].redoParams[0].length&&this.transaction.transInfos[t].redoParams[0].push(i.scalePoints[0]);else if("setScaleValues"===this.transaction.transInfos[t].functionName){for(var a=[],s=[],r=0;r<this._dragStartScaleValues[e].length;r++)a.push(this._dragStartScaleValues[e][r]);for(var u=0;u<i.scaleValues.length;u++)s.push(i.scaleValues[u]);this.transaction.transInfos[t].undoParams=[a],this.transaction.transInfos[t].redoParams=[s]}else if("modifyPoint"===this.transaction.transInfos[t].functionName){var p=this.transaction.transInfos[t].undoParams[0];this.transaction.transInfos[t].undoParams.push(this._dragStartScalePoints[e][p]),this.transaction.transInfos[t].undoParams[1].isScalePoint=!0;var h=this.transaction.transInfos[t].redoParams[0];this.transaction.transInfos[t].redoParams.push(i.scalePoints[h]),this.transaction.transInfos[t].redoParams[1].isScalePoint=!0}else if("move"===this.transaction.transInfos[t].functionName){if(i.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL&&!0===i.positionOffset){var c=0,y=0,f=this._map.latLngToLayerPoint(i.getLatLngs()[0]),S={x:f.x+this._dragStartPositionOffset[e].x,y:f.y+this._dragStartPositionOffset[e].y},g=this._map.layerPointToLatLng(S);f.x+=i.positionOffsetX,f.y+=i.positionOffsetY;var P=this._map.layerPointToLatLng(f);c=g.lng-P.lng,y=g.lat-P.lat}else i instanceof n.GroupObject?(c=this._dragStartLatLngs[e][0].getLatLng().lng-this._editMarkers[i.uuid][0].getLatLng().lng,y=this._dragStartLatLngs[e][0].getLatLng().lat-this._editMarkers[i.uuid][0].getLatLng().lat):0!==i.getLatLngs().length&&(c=this._dragStartLatLngs[e][0].lng-i.getLatLngs()[0].lng,y=this._dragStartLatLngs[e][0].lat-i.getLatLngs()[0].lat);i instanceof n.GroupObject?(this.transaction.transInfos[t].undoParams=[y,c],this.transaction.transInfos[t].redoParams=[-y,-c]):0!==i.getLatLngs().length&&(this.transaction.transInfos[t].undoParams=[y,c],this.transaction.transInfos[t].redoParams=[-y,-c])}}else this.transaction.transInfos.splice(t,1),t--}},_onResetEditMarkers:function(t){-1!==L.Util.indexOf(this.selectedFeatures,t.target)&&this._collectEditMarkers(t.target)},_onResetEditMarkersValues:function(t){this._resetEditMarkersValue(t.target)},_onMapClick:function(t){if(!1!==this._onTriggerMapClick){if(this._startPoint&&this._endPoint)return this._startPoint=null,void(this._endPoint=null);for(var e=[],i=this._map.getPlottingLayers(),o=0;o<i.length;o++){var n=i[o]._getFeatureFromEvent(t);if(n){e.push(n);break}}this.unselectFeatures(),L.DomEvent.stopPropagation(t)}},_onClick:function(t){var e=t.target;if(e.isSelected&&e.symbolType===SuperMap.Plot.SymbolType.SATELLITE&&e.timeWindows.length>0){var i=e.layer._getFeatureFromEvent(t);i.symbolType===SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS&&(e=i)}if(this.transaction||(this.transaction=new SuperMap.Plot.Transaction,this.transaction.transType=SuperMap.Plot.TransactionType.EDIT,this.isAddTransInfo=!0),e instanceof o.PlottingObject)if(e instanceof n.GroupObject&&e.moveend)e.moveend=!1;else if(null!==e.ownerGroup&&e.ownerGroup.moveend)e.ownerGroup.moveend=!1;else{var s,r;if(this._editMode!==SuperMap.Plot.EditMode.ADDCONTROLPOINT)e instanceof n.GroupObject&&!e.isSelected?(!1===t.originalEvent.ctrlKey&&this.unselectFeatures(),this.selectFeatures(e)):e instanceof l.Route||e.isSelected||null!==e.ownerGroup&&!0!==e.ownerGroup.isSelected||(!1===t.originalEvent.ctrlKey&&this.unselectFeatures(),this.selectFeatures(e));else if(e instanceof l.Route||e.isSelected){if(!1===e.isLocked&&e.isSelected)if(e instanceof l.Route){var u=this._getAddPointTolerance();if(null===(g=e._selectNodeLayer(t.latlng,u))){var p=this._getAddPointTolerance(),h=e._addRouteNodeByPosWithoutLast(t.latlng,p);null!==h&&(this.unselectFeatures(),this.selectFeatures(h))}}else if(e instanceof a.GeoRouteNode&&e.route.isSelected){var c=e._isFirstNode(),y=e._isLastNode();if(!0===c||!0===y){var f=e.route._addRouteNodeByNode(e.routeNode,c,y);if(null!==f){this.unselectFeatures(),this.selectFeatures(f);var S=new SuperMap.Plot.TransactionInfo;S.layerId=f.layer._leaflet_id,S.uuid=f.uuid,S.functionName="setLatLngs",S.undoParams=[L.Util.cloneLatLngs(f.getLatLngs())],S.redoParams=[L.Util.cloneLatLngs(f.getLatLngs())],this.transaction.transInfos.push(S),this.transaction&&(L.supermap.plotting.getControl().getTransManager().add(this.transaction),this.transaction=new SuperMap.Plot.Transaction,this.isAddTransInfo=!0)}}else this.unselectFeatures(),this.selectFeatures(e)}else this._addPoint(e,t.latlng)}else if(!1===t.originalEvent.ctrlKey&&this.unselectFeatures(),this.selectFeatures(e),e instanceof a.GeoRouteNode&&((s=e._isFirstNode())||(r=e._isLastNode()))){var g=e.route._addRouteNodeByNode(e.routeNode,s,r);null!==g&&(this.unselectFeatures(),this.selectFeatures(g))}L.DomEvent.stopPropagation(t)}},_addPoint:function(t,e){if(null!==t&&void 0!==t){var i=t.scaleValues.slice(),o=L.Util.cloneLatLngs(t.getLatLngs()),n=L.Util.latLngsToSuperMapPoints(t.getLatLngs());if(t.symbolType===SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM){var l=L.supermap.plotting.editMarker(e,{icon:this.options.scaleIcon,nHandle:-2,tag:t.scalePoints.length});l.owner=t,this._addToMapAndBindMarker(l),this._editMarkers[t.uuid].push(l),t.scalePoints.push(e),t._modifyPoint(t.scalePoints.length-1,e);var a=new SuperMap.Plot.TransactionInfo;a.layerId=t.layer._leaflet_id,a.uuid=t.uuid,a.functionName="setScaleValues",a.undoParams=[i],a.redoParams=[t.scaleValues],this.transaction.transInfos.push(a),this.transaction&&(L.supermap.plotting.getControl().getTransManager().add(this.transaction),this.transaction=new SuperMap.Plot.Transaction,this.isAddTransInfo=!0)}else{if(t.getLatLngs().length>=t.maxEditPts)return;var s=t._getSymbolWayType();if(void 0!==SuperMap.Plot.AlgoSymbolFactory&&SuperMap.Plot.AlgoSymbolFactory.canPolylineConnect(t.libID,t.code)&&!0===t.polylineConnectLocationPoint&&(s=SuperMap.Plot.AddPoint_WayType.POLYLINE),SuperMap.Plot.AddPoint_WayType.UNKNOWN===s)return;var r=new SuperMap.Geometry.Point(e.lng,e.lat),u=-1;SuperMap.Plot.AddPoint_WayType.CURVE===s&&(u=this._addPointByCurve(t,r));var p=new SuperMap.Plot.Transaction;if(L.supermap.plotting.getControl().getTransManager().add(p),SuperMap.Plot.AddPoint_WayType.POLYLINE===s&&(u=this._addPointByPolyLine(t,r)),n=L.Util.latLngsToSuperMapPoints(t.getLatLngs()),u>0&&u<n.length){var h=L.supermap.plotting.editMarker(new L.LatLng(r.y,r.x),{icon:this.options.editIcon,nHandle:-1});if(h.owner=t,this._addToMapAndBindMarker(h),this._editMarkers[t.uuid].splice(u,0,h),n.splice(u,0,r),100!==t.libID||17703!==t.code&&17704!==t.code)t.latLngs=L.Util.superMapPointsToLatLngs(n);else{var c=SuperMap.Plot.PlottingUtil.computeBeizerPoints(!1,n,t.scaleValues);t.scalePoints=L.Util.superMapPointsToLatLngs(c.scalePoints),t.scaleValues=c.scaleValues,t.setLatLngs(L.Util.superMapPointsToLatLngs(n)),this._resetEditMarkersValue(t)}var y=new SuperMap.Plot.TransactionInfo;y.layerId=t.layer._leaflet_id,y.uuid=t.uuid,y.functionName="setLatLngs",y.undoParams=[o],y.redoParams=[t.getLatLngs()],p.transInfos.push(y)}}}},_addPointByCurve:function(t,e){var i=L.Util.latLngsToSuperMapPoints(t.getLatLngs()),o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(i);if(2>o.length)return-1;for(var n=[],l=0,a=1,s=i.length;a<s;a++)for(var r=[],u=l,p=o.length;u<p;u++){if(SuperMap.Plot.PlottingUtil.equalFuzzy(i[a].x,o[u].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(i[a].y,o[u].y)){if(r.length<1)continue;r.push(o[u]),n.push(r),r=[],l=u;break}r.push(o[u])}for(var h=-1,c=-1,y=0;y<n.length;y++){var f=this._computePointToLineMinDis(e,n[y]).minDis;f<0||(c<0?(c=f,h=y+1):c>f&&(c=f,h=y+1))}var S=i.slice();S.push(S[0]);var g=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(S),P=[];for(a=1,s=S.length;a<s;a++)for(var d=[],m=l,b=g.length;m<b;m++){if(SuperMap.Plot.PlottingUtil.equalFuzzy(S[a].x,g[m].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(S[a].y,g[m].y)){if(r.length<1)continue;d.push(g[m]),P.push(d),d=[],m;break}d.push(g[m])}for(var M=-1,v=-1,T=0;T<P.length;T++){var A=this._computePointToLineMinDis(e,P[T]).minDis;A<0||(v<0?(v=A,M=T+1):v>A&&(v=A,M=T+1))}return M>h&&(h=-1),h},_addPointByPolyLine:function(t,e){var i=-1,o=L.Util.latLngsToSuperMapPoints(t.getLatLngs());return(i=this._computePointToLineMinDis(e,o).index)>=0&&i++,i},_computePointToLineMinDis:function(t,e){var i=this._getAddPointTolerance(),o=SuperMap.Plot.PlottingUtil.computePointToLineMinDis(t,e);return o.minDis>i&&(o.index=-1),o},_getAddPointTolerance:function(){var t=this._mouseTolerance,e=this._map.layerPointToLatLng(L.point(0,0)),i=this._map.layerPointToLatLng(L.point(t,0));return SuperMap.Plot.PlottingUtil.distance(new SuperMap.Geometry.Point(e.lng,e.lat),new SuperMap.Geometry.Point(i.lng,i.lat))},_collectEditMarkers:function(t){void 0!==this._editMarkers[t.uuid]&&this._removeMarkers(t);var e,i=[];if(t.layer instanceof r.PlottingLayer&&(t.layer.getLocked()||!t.layer.getEditable())){var o=t.getBounds();if(null!==o&&o.isValid()){var l=L.latLng(o.getNorth(),o.getEast()),u=L.latLng(o.getNorth(),o.getWest()),p=L.latLng(o.getSouth(),o.getEast()),h=L.latLng(o.getSouth(),o.getWest()),c=new L.Polygon([l,u,h,p],{smoothFactor:.5});L.setOptions(c,{weight:1,opacity:.5,color:"#0000ff",fillOpacity:.3,fillColor:"#0000ff"}),this._map.addLayer(c),e=c}}else if(t.getLocked()){var y=t._getHandlePointsByBounds();for(var f in y){var S=new L.LatLng(y[f].lat,y[f].lng),g=L.supermap.plotting.editMarker(S,{icon:this.options.lockedIcon,nHandle:-3});this._addToMapAndBindMarker(g),g.owner=t,i.push(g)}}else if(t instanceof n.GroupObject||t instanceof a.GeoRouteNode)if(t instanceof s.FlagGroup&&this._editMode!==SuperMap.Plot.EditMode.EDITCIRCUMRECTANGLE)for(var P=0;P<t.scalePoints.length;P++){var d=new L.LatLng(t.scalePoints[P].lat,t.scalePoints[P].lng),m=t.scalePoints[P].tag?t.scalePoints[P].tag:P,b=L.supermap.plotting.editMarker(d,{icon:this.options.scaleIcon,nHandle:t.enableEdit?-2:-3,tag:m});this._addToMapAndBindMarker(b),i.push(b),b.owner=t}else{var M=t._getHandleAndRotatePoints();for(var v in M.handlePoints){var T=M.handlePoints[v].nHandle;(this._editMode!==SuperMap.Plot.EditMode.EDITCIRCUMRECTANGLE||t instanceof a.GeoRouteNode)&&(T=-3);var A=new L.LatLng(M.handlePoints[v].lat,M.handlePoints[v].lng),_=L.supermap.plotting.editMarker(A,{icon:this.options.editIcon,nHandle:T,tag:v});this._addToMapAndBindMarker(_),_.owner=t,i.push(_)}if(this._editMode===SuperMap.Plot.EditMode.EDITCIRCUMRECTANGLE)for(var O in M.rotatePoints){var x=new L.LatLng(M.rotatePoints[O].lat,M.rotatePoints[O].lng),w=L.supermap.plotting.editMarker(x,{icon:this.options.rotateIcon,nHandle:0});this._addToMapAndBindMarker(w),i.push(w),w.owner=t}}else if(this._editMode===SuperMap.Plot.EditMode.EDITCIRCUMRECTANGLE){for(var I=t._getHandleAndRotatePoints(),D=0,E=I.handlePoints.length;D<E;D++){var C=I.handlePoints[D].nHandle;!t.enableEdit||t.symbolType===SuperMap.Plot.SymbolType.TEXTSYMBOL||t.symbolType===SuperMap.Plot.SymbolType.ELLIPSESYMBOL&&0===parseInt(D)?C=-3:t._getHandleCount()>9&&(C=-1);var R=new L.LatLng(I.handlePoints[D].lat,I.handlePoints[D].lng),N=L.supermap.plotting.editMarker(R,{icon:this.options.editIcon,nHandle:C,tag:D});this._addToMapAndBindMarker(N),N.owner=t,i.push(N)}for(var U=0,G=I.rotatePoints.length;U<G;U++){var B=new L.LatLng(I.rotatePoints[U].lat,I.rotatePoints[U].lng),k=L.supermap.plotting.editMarker(B,{icon:this.options.rotateIcon,nHandle:t.enableEdit?0:-3});this._addToMapAndBindMarker(k),i.push(k),k.owner=t}}else if(t.symbolType===SuperMap.Plot.SymbolType.REGULARPOLYGON){var F=[t.latLngs[0],t.components[0].getLatLngs()[0][0]];for(var z in F){var j=L.supermap.plotting.editMarker(F[z],{icon:this.options.editIcon,nHandle:t.enableEdit?-1:-3,tag:z});this._addToMapAndBindMarker(j),i.push(j),j.owner=t}for(var Y in t.scalePoints){var V=new L.LatLng(t.scalePoints[Y].lat,t.scalePoints[Y].lng),W=t.scalePoints[Y].tag?t.scalePoints[Y].tag:Y,H=L.supermap.plotting.editMarker(V,{icon:this.options.scaleIcon,nHandle:t.enableEdit?-2:-3,tag:W});this._addToMapAndBindMarker(H),i.push(H),H.owner=t}}else if(t.symbolType===SuperMap.Plot.SymbolType.PARALLELLINE){var X=L.Util.superMapPointsToLatLngs(t.superMapAlgoSymbol.controlPoints[0]);for(var J in t.getLatLngs()[0]=L.latLng(X[0].lat,X[0].lng),t.latLngs){var q=new L.LatLng(t.latLngs[J].lat,t.latLngs[J].lng),Z=L.supermap.plotting.editMarker(q,{icon:this.options.editIcon,nHandle:t.enableEdit?-1:-3,tag:J});this._addToMapAndBindMarker(Z),i.push(Z),Z.owner=t}}else if(t.symbolType===SuperMap.Plot.SymbolType.ELLIPSESYMBOL)for(var K in t.latLngs)if(0===parseInt(K)){var Q=new L.LatLng(t.latLngs[K].lat,t.latLngs[K].lng),$=L.supermap.plotting.editMarker(Q,{icon:this.options.editIcon,nHandle:-3,tag:K});this._addToMapAndBindMarker($),i.push($),$.owner=t}else{var tt=new L.LatLng(t.latLngs[K].lat,t.latLngs[K].lng),et=L.supermap.plotting.editMarker(tt,{icon:this.options.editIcon,nHandle:t.enableEdit?-1:-3,tag:K});this._addToMapAndBindMarker(et),i.push(et),et.owner=t}else if(t.symbolType!==SuperMap.Plot.SymbolType.SATELLITE){for(var it in t.latLngs){var ot=new L.LatLng(t.latLngs[it].lat,t.latLngs[it].lng),nt=L.supermap.plotting.editMarker(ot,{icon:this.options.editIcon,nHandle:t.enableEdit?-1:-3,tag:it});this._addToMapAndBindMarker(nt),i.push(nt),nt.owner=t}for(var lt in t.scalePoints){var at=new L.LatLng(t.scalePoints[lt].lat,t.scalePoints[lt].lng),st=t.scalePoints[lt].tag?t.scalePoints[lt].tag:lt,rt=L.supermap.plotting.editMarker(at,{icon:this.options.scaleIcon,nHandle:t.enableEdit?-2:-3,tag:st});this._addToMapAndBindMarker(rt),i.push(rt),rt.owner=t}}else if(t.symbolType===SuperMap.Plot.SymbolType.SATELLITE||t.timeWindows.length>1)for(var ut in t.scalePoints){var pt=new L.LatLng(t.scalePoints[ut].lat,t.scalePoints[ut].lng),ht=t.scalePoints[ut].tag?t.scalePoints[ut].tag:ut,ct=L.supermap.plotting.editMarker(pt,{icon:this.options.scaleIcon,nHandle:t.enableEdit?-2:-3,tag:ht});this._addToMapAndBindMarker(ct),i.push(ct),ct.owner=t}this._editMarkers[t.uuid]=i,this._disEditBox[t.uuid]=e},_resetEditMarkersValue:function(t){if(this._editMarkers.hasOwnProperty(t.uuid)){var e=this._editMarkers[t.uuid],i=this._disEditBox[t.uuid];if(null==i||!t.layer.getLocked()&&t.layer.getEditable())if(t instanceof n.GroupObject||t instanceof a.GeoRouteNode)if(t instanceof s.FlagGroup&&this._editMode!==SuperMap.Plot.EditMode.EDITCIRCUMRECTANGLE)for(var o in t.scalePoints)e[o]._latlng=t.scalePoints[o],e[o].update();else{var l=t._getHandleAndRotatePoints();for(var r in l.handlePoints)e[r]._latlng=l.handlePoints[r],e[r].update();if(this._editMode===SuperMap.Plot.EditMode.EDITCIRCUMRECTANGLE){var u=l.handlePoints.length;for(var p in l.rotatePoints)e[u+parseInt(p)]._latlng=l.rotatePoints[p],e[u+parseInt(p)].update()}}else if(this._editMode===SuperMap.Plot.EditMode.EDITCIRCUMRECTANGLE){var h=t._getHandleAndRotatePoints();for(var c in h.handlePoints)e[c]._latlng=h.handlePoints[c],e[c].update();var y=h.handlePoints.length;for(var f in h.rotatePoints)e[y+parseInt(f)]._latlng=h.rotatePoints[f],e[y+parseInt(f)].update()}else if(void 0!==t.scalePoints&&null!==t.scalePoints||(t.scalePoints=[]),t.symbolType===SuperMap.Plot.SymbolType.REGULARPOLYGON){var S=[t.getLatLngs()[0],t.components[0].getLatLngs()[0][0]];for(var g in S)e[g]._latlng=S[g],e[g].update()}else if(t.symbolType===SuperMap.Plot.SymbolType.PARALLELLINE){var P=L.Util.superMapPointsToLatLngs(t.superMapAlgoSymbol.controlPoints[0]);for(var d in t.getLatLngs()[0]=L.latLng(P[0].lat,P[0].lng),t.getLatLngs())e[d]._latlng=t.getLatLngs()[d],e[d].update()}else if(t.symbolType===SuperMap.Plot.SymbolType.SATELLITE||t.timeWindows&&t.timeWindows.length>1)for(var m in t.scalePoints){var b=parseInt(m);e[b]._latlng=t.scalePoints[m],e[b].update()}else if(t.getLatLngs().length+t.scalePoints.length===e.length){for(var M in t.getLatLngs())e[M]._latlng=t.getLatLngs()[M],e[M].update();var v=t.getLatLngs().length;for(var T in t.scalePoints){var A=v+parseInt(T);e[A]._latlng=t.scalePoints[T],e[A].update()}}else this._collectEditMarkers(t);else{var _=t.getBounds();if(null!==_&&_.isValid()){var O=L.latLng(_.getNorth(),_.getEast()),x=L.latLng(_.getNorth(),_.getWest()),w=L.latLng(_.getSouth(),_.getEast()),I=L.latLng(_.getSouth(),_.getWest());i.setLatLngs([O,x,I,w])}}}},_removeMarkers:function(t){var e=this._editMarkers[t.uuid];for(var i in e)this._unbindMarkerEvents(e[i]),this._map.removeLayer(e[i]);delete this._editMarkers[t.uuid];var o=this._disEditBox[t.uuid];o&&this._map.removeLayer(o),delete this._disEditBox[t.uuid]},_unbindMarkerEvents:function(t){t.off("mousemove",this._moveMove,this),t.off("mouseout",this._moveOut,this),-3!==t.options.nHandle&&(t.off("click",this._removePoint,this),t.off("dragstart",this._dragStart,this),t.off("drag",this.redraw,this),t.off("dragend",this._dragEnd,this),t.dragging.disable())},_addToMapAndBindMarker:function(t){t.addTo(this._map),t.on("mousemove",this._moveMove,this),t.on("mouseout",this._moveOut,this),-3!==t.options.nHandle&&(t.on("click",this._removePoint,this),t.on("dragstart",this._dragStart,this),t.on("drag",this._dragPoint,this),t.on("dragend",this._dragEnd,this),t.dragging.enable()),-3===t.options.nHandle&&(t.on("dragstart",this._dragStart,this),t.on("dragend",this._dragEnd,this),t.dragging.enable())},_moveMove:function(t){switch(t.target.options.nHandle){case 1:case 8:t.target._icon.style.cursor="se-resize";break;case 3:case 6:t.target._icon.style.cursor="ne-resize";break;case 4:case 5:t.target._icon.style.cursor="e-resize";break;case 2:case 7:t.target._icon.style.cursor="n-resize";break;case-1:case-2:t.target._icon.style.cursor="pointer";break;case 0:t.target._icon.style.cursor="default"}},_moveOut:function(t){t.target._icon.style.cursor=""},_removePoint:function(t){if(this._editMode===SuperMap.Plot.EditMode.ADDCONTROLPOINT&&t.target.owner.isSelected){var e=L.Util.cloneLatLngs(t.target.owner.getLatLngs()),i=this._editMarkers[t.target.owner.uuid],o=i.indexOf(t.target);this._map.removeLayer(i[o]),i.splice(o,1),t.target.owner.latLngs.splice(o,1),t.target.owner.redraw();var n=new SuperMap.Plot.Transaction;L.supermap.plotting.getControl().getTransManager().add(n);var l=new SuperMap.Plot.TransactionInfo;l.layerId=t.target.owner.layer._leaflet_id,l.uuid=t.target.owner.layer.uuid,l.functionName="setLatLngs",l.undoParams=[e],l.redoParams=[t.target.owner.getLatLngs()],n.transInfos.push(l)}else if(this._editMode===SuperMap.Plot.EditMode.REMOVECONTROLPOINT&&t.target.owner.isSelected){var a=this._editMarkers[t.target.owner.uuid],s=a.indexOf(t.target),r=L.Util.cloneLatLngs(t.target.owner.getLatLngs());if(t.target.owner.getLatLngs().length<=t.target.owner.minEditPts)return this._editMode=SuperMap.Plot.EditMode.EDITCIRCUMRECTANGLE,void this._collectEditMarkers(t.target.owner);this._map.removeLayer(a[s]),a.splice(s,1),t.target.owner.latLngs.splice(s,1),t.target.owner.redraw();var u=new SuperMap.Plot.Transaction;L.supermap.plotting.getControl().getTransManager().add(u);var p=new SuperMap.Plot.TransactionInfo;p.layerId=t.target.owner.layer._leaflet_id,p.uuid=t.target.owner.uuid,p.functionName="setLatLngs",p.undoParams=[r],p.redoParams=[t.target.owner.getLatLngs()],u.transInfos.push(p)}},_dragStart:function(t){for(var e in this.transaction||(this.transaction=new SuperMap.Plot.Transaction,this.transaction.transType=SuperMap.Plot.TransactionType.EDIT,this.isAddTransInfo=!0),this.selectedFeatures){var i=this.selectedFeatures[e];if(i._isDot()&&(this._dragStartScale[i.uuid]=i.getScale()),i.scaleValues&&i.scaleValues.length&&0!==i.scaleValues.length){this._dragStartScaleValues[i.uuid]=[];for(var o=0;o<i.scaleValues.length;o++)this._dragStartScaleValues[i.uuid].push(i.scaleValues[o])}else this._dragStartScaleValues[i.uuid]=[];if(i.scalePoints&&i.scalePoints.length&&0!==i.scalePoints.length&&(this._dragStartScalePoints[i.uuid]=L.Util.cloneLatLngs(i.scalePoints)),this._dragStartRotate[i.uuid]=i.getRotate(),this.selectedFeatures[e]instanceof n.GroupObject?this._dragStartLatLngs[i.uuid]=this._editMarkers[this.selectedFeatures[e].uuid]:this._dragStartLatLngs[i.uuid]=L.Util.cloneLatLngs(i.getLatLngs()),i.symbolType===SuperMap.Plot.SymbolType.ARCREGION&&1===this._dragStartLatLngs[i.uuid].length&&this._dragStartLatLngs[i.uuid].push(i.scalePoints[0].clone()),i.symbolType===SuperMap.Plot.SymbolType.LINERELATION&&(null!==i.endAssociatedUuid?this._dragStartLatLngs[i.uuid].push(i.startAssociatedUuid):null!==i.endAssociatedUuid&&this._dragStartLatLngs[i.uuid].push(i.endAssociatedUuid)),this._dragStartBounds[i.uuid]=i.getBounds(),i.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP)i.anchorPoint=L.latLng(i.getBounds().getSouth(),i.getBounds().getWest());else if(i.symbolType===SuperMap.Plot.SymbolType.TEXTSYMBOL)i.anchorPoint=L.latLng(i.getLatLngs()[0].lat,i.getLatLngs()[0].lng);else if(i.symbolType===SuperMap.Plot.SymbolType.CONCENTRICCIRCLE)i.anchorPoint=L.latLng(i.getLatLngs()[0].lat,i.getLatLngs()[0].lng);else if(i.symbolType!==SuperMap.Plot.SymbolType.DOTSYMBOL){var l=i.getBounds();l.isValid()&&(i.anchorPoint=l.getCenter())}var a=this._editMarkers[i.uuid];for(var s in a)-3===a[s].options.nHandle&&a[s].setOpacity(0),a[s].setOpacity(0)}this.transaction||(this.transaction=new SuperMap.Plot.Transaction,this.transaction.transType=SuperMap.Plot.TransactionType.EDIT,this.isAddTransInfo=!0),this.oldLatLng=t.target._latlng,this._lastPixel=this._map.latLngToLayerPoint(t.target._latlng)},_dragEnd:function(){for(var t=0;t<this.selectedFeatures.length;t++)this._collectEditMarkers(this.selectedFeatures[t]),this.selectedFeatures[t].graphic&&this.selectedFeatures[t].graphic.updateImage();this.fire(SuperMap.Plot.Event.featuresmodified,{features:this.selectedFeatures}),this._saveHistoryInfomation(),this.transaction&&0!==this.transaction.transInfos.length&&(L.supermap.plotting.getControl().getTransManager().add(this.transaction),this.transaction=new SuperMap.Plot.Transaction,this.isAddTransInfo=!0)},_dragPoint:function(t){if(!1!==this.fire(SuperMap.Plot.Event.beforefeaturesmodified,{features:this.selectedFeatures})){var e=t.target.owner;-3===t.target.options.nHandle||this._avoidRegionControl?this._avoidRegionControl&&this._collectEditMarkers(e):this._editMode===SuperMap.Plot.EditMode.EDITCIRCUMRECTANGLE&&0===t.target.options.nHandle?this._dragRotate(t):this._editMode===SuperMap.Plot.EditMode.EDITCIRCUMRECTANGLE&&t.target.options.nHandle>0?this._dragResize(t,t.target.options.nHandle):this._dragLatLngs(t),this.fire(SuperMap.Plot.Event.featuresmodified,{features:this.selectedFeatures})}},_dragRotate:function(t){var e=this;var i=t.target.owner,o=null;o=i.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL||i.symbolType===SuperMap.Plot.SymbolType.CONCENTRICCIRCLE?i.getLatLngs()[0]:i.anchorPoint;var n=this._map.latLngToLayerPoint(o);i.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL&&!0===i.positionOffset&&(n.x+=i.positionOffsetX*i.dScale,n.y+=i.positionOffsetY*i.dScale);var l=this._map.latLngToLayerPoint(t.latlng),a=this._map.latLngToLayerPoint(t.oldLatLng),s=l.x-n.x-(a.x-n.x),r=l.y-n.y-(a.y-n.y);if(0!==s&&0!==r){var u=180*(Math.atan2(a.y-n.y,a.x-n.x)-Math.atan2(l.y-n.y,l.x-n.x))/Math.PI,p=u;if(void 0!==this._lastPixel)p=180*(Math.atan2(this._lastPixel.y-n.y,this._lastPixel.x-n.x)-Math.atan2(l.y-n.y,l.x-n.x))/Math.PI;!function(t,i){for(var o=0;o<e.selectedFeatures.length;o++){var n=0;if(n=e.selectedFeatures[o].symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL?t+e._dragStartRotate[e.selectedFeatures[o].uuid]:i,(n%=360)<0&&(n+=360),e.selectedFeatures[o].setRotate(n),e.isAddTransInfo){var l=new SuperMap.Plot.TransactionInfo;l.layerId=e.selectedFeatures[o].layer._leaflet_id,l.uuid=e.selectedFeatures[o].uuid,l.functionName="setRotate",e.transaction.transInfos.push(l)}}e.isAddTransInfo=!1}(u,p)}this._lastPixel=l},_dragResize:function(t,e){var i=this;function o(t,o,l){for(var a=[],s=0;s<i.selectedFeatures.length;s++)if(!0!==i.selectedFeatures[s].getLocked())if(i.selectedFeatures[s]._isDot()){var r=i._dragStartScale[i.selectedFeatures[s].uuid];if(i.selectedFeatures[s].symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL&&!1===i.selectedFeatures[s].limitWidthHeight)r.x=0===r.x?.05:r.x,r.y=0===r.y?.05:r.y,i.selectedFeatures[s].setScale(t*r.x,o*r.y);else{var u=t*(r=!0===Boolean(r)?r:1);u>0&&i.selectedFeatures[s].setScale(u)}if(i.isAddTransInfo){var p=new SuperMap.Plot.TransactionInfo;p.layerId=i.selectedFeatures[s].layer._leaflet_id,p.uuid=i.selectedFeatures[s].uuid,p.functionName="setScale",i.transaction.transInfos.push(p)}}else{if(9===i.selectedFeatures[s]._getHandleCount()&&e&&e>0){var h=i._dragStartBounds[i.selectedFeatures[s].uuid],c=i._dragStartLatLngs[i.selectedFeatures[s].uuid],y=i.selectedFeatures[s]._getLatLng(e,h,l);i.selectedFeatures[s]._resizeLatLngs(y,e,h,c)}if(SuperMap.Plot.AlgoSymbolFactory.isAccessServer(i.selectedFeatures[s].libID,i.selectedFeatures[s].code)){var f=new SuperMap.GetSymbolInfoParameters;f.libID=i.selectedFeatures[s].libID,f.code=i.selectedFeatures[s].code,f.inputPoints=L.Util.latLngsToSuperMapPoints(i.selectedFeatures[s].getLatLngs()),f.scaleValues=i.selectedFeatures[s].scaleValues,f.subSymbols=i.selectedFeatures[s].subSymbols,a.push(i.selectedFeatures[s]),L.supermap.symbolInfoService(n.serverUrl).getSymbolInfo(f,function(t){for(var e=0;e<a.length;e++)a[e].libID===t.result.libID&&a[e].code===t.result.code&&(a[e].symbolData.innerCells=t.result.innerCells,a[e].symbolData.scalePoints=t.result.scalePoints,a[e].symbolData.scaleValues=t.result.scaleValues,a[e].redraw(),a[e]._updateSymbolTexts(),a.splice(0,1))},this)}else if(i.selectedFeatures[s].redraw(),i.selectedFeatures[s]._updateSymbolTexts(),i.selectedFeatures[s].symbolType===SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL&&i.selectedFeatures[s].ownerGroup&&(i.selectedFeatures[s].ownerGroup.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT||i.selectedFeatures[s].ownerGroup.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT))for(var S in i.selectedFeatures[s].ownerGroup.subObjects)i.selectedFeatures[s].ownerGroup.subObjects[S].redraw();if(i.isAddTransInfo){var g=new SuperMap.Plot.TransactionInfo;g.layerId=i.selectedFeatures[s].layer._leaflet_id,g.uuid=i.selectedFeatures[s].uuid,g.functionName="setLatLngs",i.transaction.transInfos.push(g)}}}var n=t.target.owner,l=this._dragStartBounds[n.uuid],a=n._resizeOffset(t.latlng,e,l),s=1,r=n._resizeBounds(t.latlng,e,l),u=l.getEast()-l.getWest(),p=l.getNorth()-l.getSouth(),h=!0===Boolean(u)?(r.getEast()-r.getWest())/u:.5,c=!0===Boolean(p)?(r.getNorth()-r.getSouth())/p:.5;s=2===e||7===e?c:4===e||5===e?h:h<c?h:c,n.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL&&!1===n.limitWidthHeight?o(h,c,a):o(s,null,a),this.oldLatLng=t.latlng},_dragLatLngs:function(t){var e=t.target.owner,i=this._editMarkers[e.uuid],o=SuperMap.Util.indexOf(i,t.target),n=!1;if(-2===t.target.options.nHandle&&(n=!0),this.transaction||(this.transaction=new SuperMap.Plot.Transaction,this.transaction.transType=SuperMap.Plot.TransactionType.EDIT,this.isAddTransInfo=!0),SuperMap.Plot.AlgoSymbolFactory.isAccessServer(e.libID,e.code)){var l=(new Date).getTime(),a=this._map.latLngToLayerPoint(t.latlng);if(n&&void 0!==this._lastDragPixel&&null!==this._lastDragPixel&&!((Math.abs(a.x-this._lastDragPixel.x)>3||Math.abs(a.y-this._lastDragPixel.y)>3)&&l-this.lastDownTime>100))return;var s=new SuperMap.GetSymbolInfoParameters;s.libID=e.libID,s.code=e.code,n?(s.inputPoints=L.Util.latLngsToSuperMapPoints(e.getLatLngs()),s.scalePoints=L.Util.latLngsToSuperMapPoints(e.scalePoints),s.scaleValues=e.scaleValues,s.newScalePoint=new SuperMap.Geometry.Point(t.latlng.lng,t.latlng.lat),s.newScalePointIndex=parseInt(t.target.options.tag)):(e.getLatLngs()[o]=t.target.getLatLng(),s.inputPoints=L.Util.latLngsToSuperMapPoints(e.getLatLngs()),s.scaleValues=e.scaleValues),s.subSymbols=e.subSymbols,L.supermap.symbolInfoService(e.serverUrl).getSymbolInfo(s,function(t){e.symbolData.innerCells=t.result.innerCells,e.symbolData.scalePoints=t.result.scalePoints,e.symbolData.scaleValues=t.result.scaleValues,e.redraw(),e._updateSymbolTexts(),this._resetEditMarkersValue(e)},this),this._lastDragPixel=a,this.lastDownTime=(new Date).getTime()}else if(-1===t.target.options.nHandle){if(e.symbolType===SuperMap.Plot.SymbolType.REGULARPOLYGON)1===o?e.getLatLngs()[e.getLatLngs().length-1]=t.latlng:e.getLatLngs()[0]=t.latlng;else if(e.symbolType===SuperMap.Plot.SymbolType.ELLIPSESYMBOL)e.getLatLngs()[o]=t.latlng;else if(e.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL){if(!0===e.positionOffset?e.setLatLngs(t.latlng):e.setLatLngs(e.latLngs[0]),this.isAddTransInfo){var r=new SuperMap.Plot.TransactionInfo;r.layerId=e.layer._leaflet_id,r.uuid=e.uuid,r.functionName="setLatLngs",this.transaction.transInfos.push(r)}}else e.getLatLngs()[o]=t.latlng;if(e.symbolType===SuperMap.Plot.SymbolType.LINERELATION||e.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT||e.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT1||e.symbolType===SuperMap.Plot.SymbolType.ELLIPSESYMBOL)e._modifyPoint(parseInt(t.target.options.tag),t.latlng);else if(e.redraw(),e.symbolType===SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL&&e.ownerGroup&&(e.ownerGroup.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT||e.ownerGroup.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT))for(var u in e.ownerGroup.subObjects)e.ownerGroup.subObjects[u].redraw();e._updateSymbolTexts(),this._resetEditMarkersValue(e)}else if(-2===t.target.options.nHandle){var p=t.target.getLatLng();if(p.isScalePoint=!0,e._modifyPoint(parseInt(t.target.options.tag),p),e.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP)for(var h=0,c=e.components.length;h<c;h++)e.components[h]._updateSymbolTexts();else e._updateSymbolTexts();this._resetEditMarkersValue(e)}if(this.isAddTransInfo){var y=new SuperMap.Plot.TransactionInfo;y.layerId=e.layer._leaflet_id,y.uuid=e.uuid,y.functionName="setLatLngs",-2===t.target.options.nHandle&&(y.functionName="setScaleValues",e.symbolType!==SuperMap.Plot.SymbolType.ARCREGION&&e.symbolType!==SuperMap.Plot.SymbolType.FLAGGROUP||(y.functionName="modifyPoint",y.undoParams=[parseInt(t.target.options.tag)],y.redoParams=[parseInt(t.target.options.tag)])),this.transaction.transInfos.push(y)}this.isAddTransInfo=!1},_pasteToPosition:function(){if(this.pasteGeoAry&&0!==this.pasteGeoAry.length){var t=new SuperMap.Plot.Transaction;t.transType=SuperMap.Plot.TransactionType.CREATE,L.supermap.plotting.getControl().getTransManager().add(t);var e=function(t,e,i,o){var n=new SuperMap.Plot.TransactionInfo;n.layerId=t,n.uuid=e,n.feature=i,o.transInfos.push(n)},i=null,a=null,s=this.pasteGeoAry.slice();if(0!==arguments.length){for(var r=new L.LatLngBounds,u=0,p=s.length;u<p;u++){var h=s[u];if(h instanceof n.GroupObject)for(var c=0;c<h.subObjects.length;c++){var y=h.subObjects[c];r.extend(y._bounds)}else h instanceof o.PlottingObject&&r.extend(h._bounds)}i=r.getCenter()}0!==this.getSelectedFeatures().length&&this.unselectFeatures();var f=this._map.getPlottingLayers();for(var S in s)if(s[S]instanceof o.PlottingObject&&(a=s[S].clone()),0!==arguments.length&&null!==i){for(var g=0,P=f.length;g<P;g++)s[S].layer===f[g]&&f[g].addFeatures(a);if(a instanceof l.Route||a.move(arguments[0].lat-i.lat,arguments[0].lng-i.lng),this.selectFeatures(a),s[S]&&s[S].geoSymbolTexts)for(var d=0;d<s[S].geoSymbolTexts.length;d++){var m=s[S].geoSymbolTexts[d].getSymbolData();for(var b in m.associatedUuid=a.uuid,s)if(s[b].symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT||s[b].symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT1){var M=s[S].layer.createSymbol(m.libID,m.code,null,{symbolData:m});this.selectFeatures(M),s.splice(b,1),e(M.layer._leaflet_id,M.uuid,M,t);break}}if(s[S]&&s[S].deployments)for(var v=0;v<s[S].deployments.length;v++){var T=s[S].deployments[v].getSymbolData();for(var A in T.associatedUuid=a.uuid,s)if(s[A].symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT||s[A].symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT){var _=s[S].layer.createSymbol(T.libID,T.code,null,{symbolData:T});this.selectFeatures(_),s.splice(A,1),e(_.layer._leaflet_id,_.uuid,_,t);break}}if(s[S]&&s[S].timeWindows)for(var O=0;O<s[S].timeWindows.length;O++){var x=s[S].timeWindows[O].getSymbolData();for(var w in x.associatedUuid=a.uuid,s)if(s[w].symbolType===SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS){var I=s[S].layer.createSymbol(x.libID,x.code,null,{symbolData:x});this.selectFeatures(I),s.splice(w,1),e(I.layer._leaflet_id,I.uuid,I,t);break}}}else for(var D=0,E=f.length;D<E;D++)if(s[S].layer===f[D]){if(f[D].addFeatures(a),1012!==a.code&&this.selectFeatures(a),e(a.layer._leaflet_id,a.uuid,a,t),s[S]&&s[S].geoSymbolTexts)for(var C=0;C<s[S].geoSymbolTexts.length;C++){var R=s[S].geoSymbolTexts[C].getSymbolData();for(var N in R.associatedUuid=a.uuid,s)if(s[N].symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT||s[N].symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT1){var U=s[S].layer.createSymbol(R.libID,R.code,null,{symbolData:R});this.selectFeatures(U),s.splice(N,1),e(U.layer._leaflet_id,U.uuid,U,t);break}}if(s[S]&&s[S].deployments)for(var G=0;G<s[S].deployments.length;G++){var B=s[S].deployments[G].getSymbolData();for(var k in B.associatedUuid=a.uuid,s)if(s[k].symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT||s[k].symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT){var F=s[S].layer.createSymbol(B.libID,B.code,null,{symbolData:B});this.selectFeatures(F),s.splice(k,1),e(F.layer._leaflet_id,F.uuid,F,t);break}}if(s[S]&&s[S].timeWindows)for(var z=0;z<s[S].timeWindows.length;z++){if(!s[S].timeWindows[z].hasOwnProperty("symbolType"))return;var j=s[S].timeWindows[z].getSymbolData();for(var Y in j.associatedUuid=a.uuid,s)if(s[Y].symbolType===SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS){var V=s[S].layer.createSymbol(j.libID,j.code,null,{symbolData:j});this.selectFeatures(V),s.splice(Y,1),e(V.layer._leaflet_id,V.uuid,V,t);break}}}}},pasteToPositionAndLayer:function(t,e){var i=!0;e&&e instanceof r.PlottingLayer&&(i=!1);var o=!1;null!==t&&void 0!==t||(o=!0);var n=null,a=this.pasteGeoAry.slice();if(!o){for(var s=new L.LatLngBounds,u=0;u<a.length;u++){var p=a[u];p instanceof l.Route&&s.extend(p._bounds),s.extend(p._bounds)}n=s.getCenter()}for(var h=0;h<this.selectedFeatures.length;h++){var c=this.selectedFeatures[h];this.unselectFeatures(c)}this.selectedFeatures=[];for(var y=0;y<a.length;y++){var f=a[y];if(!0!==f.layer.isLocked&&!1!==f.layer.isEditable){var S=null;if(S=f instanceof l.Route?f.route.clone():f.clone(),i?f.layer.addFeatures(S):e.addFeatures(S),o||null===n||S instanceof l.Route||S.move(t.lat-n.lat,t.lng-n.lng),void 0!==this.pasteGeoSel&&this.pasteGeoSel.length>y&&!0===this.pasteGeoSel[y])if(f instanceof l.Route){var g=S._getNodeFeature(S._getNodeByUuid(f.routeNode.id));this.selectedFeatures(g)}else this.selectFeatures(S);if(a[y]&&a[y].geoSymbolTexts)for(var P=0;P<a[y].geoSymbolTexts.length;P++){var d=a[y].geoSymbolTexts[P].getSymbolData();for(var m in d.associatedUuid=S.uuid,a)if(a[m].symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT||a[m].symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT1){var b=a[y].layer.createSymbol(d.libID,d.code,null,{symbolData:d});this.selectFeatures(b),a.splice(m,1);break}}if(a[y]&&a[y].deployments)for(var M=0;M<a[y].deployments.length;M++){var v=a[y].deployments[M].getSymbolData();for(var T in v.associatedUuid=S.uuid,a)if(a[T].symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT||a[T].symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT){var A=a[y].layer.createSymbol(v.libID,v.code,null,{symbolData:v});this.selectFeatures(A),a.splice(T,1);break}}if(a[y]&&a[y].timeWindows)for(var _=0;_<a[y].timeWindows.length;_++){var O=a[y].timeWindows[_].getSymbolData();for(var x in O.associatedUuid=S.uuid,a)if(a[x].symbolType===SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS){var w=a[y].layer.createSymbol(O.libID,O.code,null,{symbolData:O});this.selectFeatures(w),a.splice(x,1);break}}}}},equalLarge:function(t){for(var e=[],i=0;i<this.getSelectedFeatures().length;i++)this.getSelectedFeatures()[i].symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL&&e.push(this.getSelectedFeatures()[i]);if(!(e.length<2)){var o=new SuperMap.Plot.Transaction;L.supermap.plotting.getControl().getTransManager().add(o);var n=function(t,e,i,o,n){var l=new SuperMap.Plot.TransactionInfo;l.layerId=t,l.uuid=e,l.functionName="setSymbolSize",l.undoParams=i,l.redoParams=o,n.transInfos.push(l)};if(t===SuperMap.Plot.EqualLargeType.WIDTH)for(var l=e[e.length-1].symbolSize.w,a=0;a<e.length-1;a++){var s=e[a].symbolSize.w;e[a].setSymbolSize(l,e[a].symbolSize.h),n(e[a].layer._leaflet_id,e[a].uuid,[s,e[a].symbolSize.h],[l,e[a].symbolSize.h],o)}else if(t===SuperMap.Plot.EqualLargeType.HEIGHT)for(var r=e[e.length-1].symbolSize.h,u=0;u<e.length-1;u++){var p=e[u].symbolSize.h;e[u].setSymbolSize(e[u].symbolSize.w,r),n(e[u].layer._leaflet_id,e[u].uuid,[e[u].symbolSize.w,p],[e[u].symbolSize.w,r],o)}else if(t===SuperMap.Plot.EqualLargeType.SAME)for(var h=e[e.length-1].symbolSize.w,c=e[e.length-1].symbolSize.h,y=0;y<e.length-1;y++){var f=e[y].symbolSize.w,S=e[y].symbolSize.h;e[y].setSymbolSize(h,c),n(e[y].layer._leaflet_id,e[y].uuid,[f,S],[h,c],o)}}},uniformDistribution:function(t){if(!(this.getSelectedFeatures().length<3)){var e=new SuperMap.Plot.Transaction;L.supermap.plotting.getControl().getTransManager().add(e);for(var i=function(t,e,i,o,n){var l=new SuperMap.Plot.TransactionInfo;l.layerId=t,l.uuid=e,l.functionName="move",l.undoParams=i,l.redoParams=o,n.transInfos.push(l)},o=[],n=0;n<this.getSelectedFeatures().length;n++){var l=this.getSelectedFeatures()[n].getBounds();o.push(new SuperMap.Geometry.Point(l.getCenter().lng,l.getCenter().lat))}var a=this.getSelectedFeatures().slice();if(t===SuperMap.Plot.UniformDistributionType.LEVEL){for(var s=0;s<o.length;s++)for(var r=0;r<o.length-1-s;r++)if(o[r].x>o[r+1].x){var u=o[r+1];o[r+1]=o[r],o[r]=u;var p=a[r+1];a[r+1]=a[r],a[r]=p}for(var h=Math.abs(o[o.length-1].x-o[0].x)/(o.length-1),c=1;c<o.length-1;c++){var y=o[o.length-1].x-h*c-o[c].x;a[c].move(0,y),this._resetEditMarkersValue(a[c]),i(a[c].layer._leaflet_id,a[c].uuid,[0,-y],[0,y],e)}}else if(t===SuperMap.Plot.UniformDistributionType.VERTICAL){for(var f=0;f<o.length;f++)for(var S=0;S<o.length-1-f;S++)if(o[S].y>o[S+1].y){var g=o[S+1];o[S+1]=o[S],o[S]=g;var P=a[S+1];a[S+1]=a[S],a[S]=P}for(var d=Math.abs(o[o.length-1].y-o[0].y)/(o.length-1),m=1;m<o.length-1;m++){var b=o[o.length-1].y-d*m-o[m].y;a[m].move(b,0),this._resetEditMarkersValue(a[m]),i(a[m].layer._leaflet_id,a[m].uuid,[-b,0],[b,0],e)}}}}});L.Map.include({getPlotEditControl:function(){return this._plotEditControl?this._plotEditControl:null}});var c=e.editControl=function(t){return new h(t)};L.supermap.plotting.editControl=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.drawControl=e.PlotDrawControl=void 0,i(0);var o=i(24),n=i(11),l=e.PlotDrawControl=n.PlotControl.extend({drawingLayer:null,initialize:function(t,e){if(L.version<"0.7")throw new Error("Leaflet.draw 0.2.3+ requires Leaflet 0.7.0+. Download latest from https://github.com/Leaflet/Leaflet/");this.drawingLayer=t,L.Control.prototype.initialize.call(this,e)},onAdd:function(t){var e=L.DomUtil.create("div","supermap-iclient");return this._map=t,this.handler=new o.DrawGraphicObject(this._map,this.drawingLayer),this.handler._control=this,e},onRemove:function(){this._map=null,this.handler=null},setDrawingLayer:function(t){this.drawingLayer=t,this.handler._drawingLayer=t,this.handler._tempDrawingLayer.serverUrl=t.serverUrl}}),a=e.drawControl=function(t,e){return new l(t,e)};L.supermap.plotting.drawControl=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.editControl=e.PlotEditControl=e.drawControl=e.PlotDrawControl=e.DrawGraphicObject=e.AvoidRegionControl=e.PlotControl=void 0;var o=i(11),n=i(12),l=i(24),a=i(65),s=i(64);e.PlotControl=o.PlotControl,e.AvoidRegionControl=n.AvoidRegionControl,e.DrawGraphicObject=l.DrawGraphicObject,e.PlotDrawControl=a.PlotDrawControl,e.drawControl=a.drawControl,e.PlotEditControl=s.PlotEditControl,e.editControl=s.editControl},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GOAnimationWay=e.GOAnimationShow=e.GOAnimationScale=e.GOAnimationRotate=e.GOAnimationGrow=e.GOAnimationBlink=e.GOAnimationAttribute=e.GOAnimation=void 0;var o=i(2),n=i(31),l=i(30),a=i(29),s=i(28),r=i(27),u=i(26),p=i(25);e.GOAnimation=o.GOAnimation,e.GOAnimationAttribute=n.GOAnimationAttribute,e.GOAnimationBlink=l.GOAnimationBlink,e.GOAnimationGrow=a.GOAnimationGrow,e.GOAnimationRotate=s.GOAnimationRotate,e.GOAnimationScale=r.GOAnimationScale,e.GOAnimationShow=u.GOAnimationShow,e.GOAnimationWay=p.GOAnimationWay},function(t,e,i){"use strict";L.Canvas.include({_drawPlottingGraphics:function(t){var e=this;e._ctx.clearRect(0,0,e._ctx.canvas.width,e._ctx.canvas.height),t.map(function(t){var i=e._map.latLngToLayerPoint(t.getLatLng()),o=i.x-t.getImage().anchor.x,n=i.y-t.getImage().anchor.y,l=t.getImage().img||t.getImage().canvas;return t.graphicHeight&&t.graphicWidth?e._ctx.drawImage(l,o,n,t.graphicHeight,t.graphicWidth):e._ctx.drawImage(l,o,n),t})},_drawPlottingLayers:function(t){t.map(function(e){return e instanceof L.Polyline&&e._update(),e instanceof L.Polygon&&e._update(),t})},_updateTextPt:function(t,e){var i=e.options,o=1;100!==i.fontPercent&&(o=i.fontPercent/100),this._ctx.fillStyle=i.fontColor,!0===i.fontStroke&&(this._ctx.strokeStyle=i.fontStrokeColor,this._ctx.setLineDash([]),this._ctx.lineWidth=i.fontStrokeWidth),this._ctx.globalAlpha=i.fontOpacity||1;var n=[i.fontStyle?i.fontStyle:"normal","normal",i.fontWeight?i.fontWeight:"normal",i.fontSize?i.fontSize+"px":"1em",i.fontFamily?i.fontFamily:"sans-serif"].join(" "),l=i.text.split("\n"),a=l.length;if(this._ctx.fillText){this._ctx.font=n,this._ctx.textAlign=L.Canvas.LABEL_ALIGN[i.labelAlign[0]]||"center",this._ctx.textBaseline=L.Canvas.LABEL_ALIGN[i.labelAlign[1]]||"middle";var s=L.Canvas.LABEL_FACTOR[i.labelAlign[1]];null==s&&(s=-.5);var r=this._ctx.measureText("Mg").height||this._ctx.measureText("xx").width;t.y+=r*s*(a-1);for(var u=0;u<a;u++)if(0!=i.fontSpace){var p=0,h=this._ctx.measureText(l[u]).width+i.fontSpace*(l[u].length-1),c=i.labelAlign[0]||"c";"c"===c?p-=h/2-this._ctx.measureText(l[u][0]).width/2:"r"===c&&(p-=h-i.fontSize);var y=0,f=l[u].split(""),S="";this._ctx.save(),this._ctx.translate(t.x,t.y),0!=i.labelRotation&&this._ctx.rotate(i.labelRotation*Math.PI/180),this._ctx.scale(o,1);for(var g=0;g<f.length;g++)!0===i.fontStroke&&this._ctx.strokeText(f[g],p+y,r*u),this._ctx.fillText(f[g],p+y,r*u),S+=f[g],y=this._ctx.measureText(S).width+parseFloat(i.fontSpace)*(g+1);this._ctx.restore()}else this._ctx.save(),this._ctx.translate(t.x,t.y),0!=i.labelRotation&&this._ctx.rotate(i.labelRotation*Math.PI/180),this._ctx.scale(o,1),!0===i.fontStroke&&this._ctx.strokeText(l[u],0,r*u),this._ctx.fillText(l[u],0,r*u),this._ctx.restore()}},_updateText:function(t){if(void 0!=t.options.text&&!(t.options.fontSize<6)){for(var e in t._eventParents)if(t._eventParents[e].symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL&&!1===t._eventParents[e].textDisplay)return;void 0===t.options.fontPercent&&(t.options.fontPercent=100),t.options.fontPercent<0&&(t.options.fontPercent=0),t.options.fontPercent>400&&(t.options.fontPercent=400),void 0===t.options.fontSpace&&(t.options.fontSpace=0),t.options.fontSpace>30?t.options.fontSpace=30:t.options.fontSpace<0&&(t.options.fontSpace=0);var i=t._latlng,o=this._map.latLngToLayerPoint(i);if(void 0!=o){if(t.options.labelXOffset||t.options.labelYOffset){var n=isNaN(t.options.labelXOffset)?0:t.options.labelXOffset,l=isNaN(t.options.labelYOffset)?0:t.options.labelYOffset;o.x+=n,o.y-=l}if(!0===t.options.fontBackground){this._ctx.font=[t.options.fontStyle?t.options.fontStyle:"normal","normal",t.options.fontWeight?t.options.fontWeight:"normal",t.options.fontSize?t.options.fontSize+"px":"1em",t.options.fontFamily?t.options.fontFamily:"sans-serif"].join(" ");var a=t.options.labelRotation;t.options.labelRotation=0;var s=t.getPxBounds();t.options.labelRotation=a;var r=s.min.x,u=s.min.y,p=s.max.x-s.min.x,h=s.max.y-s.min.y;this._ctx.fillStyle=t.options.fontBackgroundColor,this._ctx.globalAlpha=1,this._ctx.save(),this._ctx.translate(r,u),0!=t.options.labelRotation&&this._ctx.rotate(t.options.labelRotation*Math.PI/180),this._ctx.fillRect(0,0,p,h),this._ctx.restore()}if(!0===t.options.fontShadow){var c=L.point(o.x,o.y);if(t.options.fontShadowOffsetX&&(c.x+=t.options.fontShadowOffsetX),t.options.fontShadowOffsetY&&(c.y+=t.options.fontShadowOffsetY),0!==t.options.labelRotation){var y=o.x,f=o.y,S=t.options.labelRotation*Math.PI/180,g=Math.sqrt(Math.pow(c.x-y,2)+Math.pow(c.y-f,2)),P=S+Math.atan2(c.y-f,c.x-y);c.x=y+g*Math.cos(P),c.y=f+g*Math.sin(P)}var d=t.options.fontStroke;t.options.fontStroke=!1;var m=t.options.fontColor;t.options.fontColor=t.options.fontShadowColor,this._updateTextPt(c,t),t.options.fontColor=m,t.options.fontStroke=d}if(t.hasOwnProperty("_eventParents"))for(var b in t._eventParents)t._eventParents[b].hasOwnProperty("ownerGroup")&&null!==t._eventParents[b].ownerGroup&&(t._eventParents[b].ownerGroup.symbolType!==SuperMap.Plot.SymbolType.NAVYDEPLOYMENT&&t._eventParents[b].ownerGroup.symbolType!==SuperMap.Plot.SymbolType.AIRDEPLOYMENT||t._updateBounds());this._updateTextPt(o,t)}}},_updateImage:function(t){var e=this,i=function(){var t=this.style,i=t.graphicWidth||t.graphicHeight,o=t.graphicHeight||t.graphicWidth;i=i||2*t.pointRadius,o=o||2*t.pointRadius;var n=void 0!==t.graphicXOffset?t.graphicXOffset:-.5*i,l=void 0!==t.graphicYOffset?t.graphicYOffset:-.5*o,a=t.graphicOpacity||t.fillOpacity,s=this.point,r=s.x,u=s.y;if(!isNaN(r)&&!isNaN(u)){var p;e._ctx.save(),t.rotation&&(p=t.rotation/180*Math.PI),e._ctx.translate(r,u),p&&e._ctx.rotate(p),e._ctx.translate(n,l),e._ctx.globalAlpha=a;var h=L.Canvas.drawImageScaleFactor||(L.Canvas.drawImageScaleFactor=/android 2.1/.test(navigator.userAgent.toLowerCase())?320/window.screen.width:1);e._ctx.drawImage(this.img,0,0,i*h,o*h),e._ctx.restore()}},o=new Image;"firefox"==SuperMap.Browser.name?(o.onload=function(){i.call({point:t._point,style:t.options,img:o}),o.onload=null},t.options.graphicTitle&&(o.title=t.options.graphicTitle),o.src=t.options.externalGraphic):(t.options.graphicTitle&&(o.title=t.options.graphicTitle),o.onload=function(){o.src=t.options.externalGraphic,i.call({point:t._point,style:t.options,img:o}),o.onload=null}),window.ActiveXObject||"ActiveXObject"in window?o.onload():o.complete&&o.onload()},_updateArc:function(t){if(this._drawing&&!t._empty()){var e=t._point,i=this._ctx,o=t._radius,n=(t._radiusY||o)/o,l=(360-t.options.endAngle)*(Math.PI/180),a=(360-t.options.startAngle)*(Math.PI/180);this._drawnLayers[t._leaflet_id]=t,1!==n&&(i.save(),i.scale(1,n)),i.beginPath(),i.arc(e.x,e.y/n,o,l,a,!1),1!==n&&i.restore(),this._fillStroke(i,t)}},_handleMouseHover:function(t,e){var i,o=null;for(var n in this._map._layers)if((i=this._map._layers[n])._drawFirst)for(var l=i._drawFirst;l;l=l.next)l.layer.options.interactive&&l.layer._containsPoint(e)&&!this._map._draggableMoved(l.layer)&&(o=l.layer);o!==this._hoveredLayer&&(this._handleMouseOut(t),o&&(L.DomUtil.addClass(this._container,"leaflet-interactive"),this._fireEvent([o],t,"mouseover"),this._hoveredLayer=o)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t)},_onClick:function(t){var e,i=this._map.mouseEventToLayerPoint(t),o=[],n=[];for(var l in this._map._layers)if(this._map._layers[l]._drawFirst)for(var a=this._map._layers[l]._drawFirst;a;a=a.next)if(a.layer.options.interactive&&a.layer._containsPoint(i)&&!this._map._draggableMoved(a.layer)&&(e=a.layer).hasOwnProperty("_eventParents")&&null!==e._eventParents)for(var s in e._eventParents)n.push(e),o.push(e._eventParents[s]);if(e&&n.length>1){if(o.length>0){for(var r=!1,u=[],p=[],h=0,c=o.length;h<c;h++)o[h].isSelected&&o[h].moveend&&(r=!0),o[h].enableEdit&&(u.push(o[h]),p.push(n[h]));for(var y=0,f=u.length;y<f;y++){if(L.DomEvent.fakeStop(t),u[y].isSelected&&u[y].moveend){this._fireEvent([p[y]],t);break}if(u[y].isSelected&&u.length>1){this._fireEvent([p[y]],t);break}if(!r){this._fireEvent([p[p.length-1]],t);break}}}}else e&&(L.DomEvent.fakeStop(t),this._fireEvent([e],t))}}),L.Polyline.prototype._containsPoint=function(t,e){var i,o,n,l,a,s,r=this._clickTolerance()+5;if(this._pxBounds&&!this._pxBounds.contains(t))return!1;for(i=0,l=this._parts.length;i<l;i++)for(o=0,n=(a=(s=this._parts[i]).length)-1;o<a;n=o++)if((e||0!==o)&&L.LineUtil.pointToSegmentDistance(t,s[n],s[o])<=r)return!0;return!1},L.supermap.plotting.Text.prototype._containsPoint=function(t){return this._pxBounds.contains(t)},L.supermap.plotting.PointImage.prototype._containsPoint=function(t){return this._pxBounds.contains(t)},L.Canvas.LABEL_ALIGN={l:"left",r:"right",t:"hanging",b:"alphabetic"},L.Canvas.LABEL_FACTOR={l:0,r:-1,t:0,b:-1},L.Canvas.drawImageScaleFactor=null},function(t,e,i){"use strict";L.SVG.include({_drawPlottingLayers:function(t){t.map(function(e){return e instanceof L.Polyline&&e._update(),e instanceof L.Polygon&&e._update(),t})},getEvents:function(){var t=this;this._map.on("layeradd",function(e){e.layer===t&&(L.DomEvent.on(t._container,"mousemove",L.Util.throttle(t._onMouseMove,32,t),t),L.DomEvent.on(t._container,"mouseout",t._handleMouseOut,t))});var e=L.Renderer.prototype.getEvents.call(this);return e.zoomstart=this._onZoomStart,e},_onClick:function(t){var e,i=this._map.mouseEventToLayerPoint(t),o=[],n=[];for(var l in this._layers){var a=this._layers[l];if(a.options.interactive&&"function"==typeof a._containsPoint&&a._containsPoint(i)&&!this._map._draggableMoved(a)&&(e=a).hasOwnProperty("_eventParents")&&null!=e._eventParents)for(var s in e._eventParents)n.push(e),o.push(e._eventParents[s])}if(e&&n.length>1){if(o.length>0){for(var r=!1,u=[],p=[],h=0,c=o.length;h<c;h++)o[h].isSelected&&o[h].moveend&&(r=!0),o[h].enableEdit&&(u.push(o[h]),p.push(n[h]));for(var y=0,f=u.length;y<f;y++){if(L.DomEvent.fakeStop(t),u[y].isSelected&&u[y].moveend){u[y].moveend=!1,this._fireEvent([p[y]],t),u[y].moveend=!0;break}if(u[y].isSelected&&u.length>1){this._fireEvent([p[y]],t);break}if(!r){this._fireEvent([p[p.length-1]],t);break}}}}else e&&(L.DomEvent.fakeStop(t),e._eventParents[0]&&e._eventParents[0].fire(t.type,t))},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(L.DomUtil.removeClass(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null)},_handleMouseHover:function(t,e){var i,o;for(var n in this._layers)(i=this._layers[n]).options.interactive&&"function"==typeof i._containsPoint&&i._containsPoint(e)&&(o=i);o!==this._hoveredLayer&&(this._handleMouseOut(t),o&&(L.DomUtil.addClass(this._container,"leaflet-interactive"),this._fireEvent([o],t,"mouseover"),this._hoveredLayer=o)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t)},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_updateTextPt:function(t,e,i,o){var n;if(t.setAttributeNS(null,"x",e.x),t.setAttributeNS(null,"y",e.y),i.options.display&&t.setAttributeNS(null,"display",i.options.display),!0===i.options.fontStroke&&(i.options.fontStrokeColor&&t.setAttributeNS(null,"stroke",i.options.fontStrokeColor),i.options.fontStrokeWidth&&t.setAttributeNS(null,"stroke-width",i.options.fontStrokeWidth)),i.options.labelRotation&&t.setAttributeNS(null,"transform","rotate("+i.options.labelRotation+" "+e.x+","+e.y+")"),i.options.fontColor&&t.setAttributeNS(null,"fill",i.options.fontColor),i.options.fontOpacity&&t.setAttributeNS(null,"opacity",i.options.fontOpacity),i.options.fontFamily&&t.setAttributeNS(null,"font-family",i.options.fontFamily),i.options.fontSize&&t.setAttributeNS(null,"font-size",i.options.fontSize),i.options.fontWeight&&t.setAttributeNS(null,"font-weight",i.options.fontWeight),i.options.fontStyle&&t.setAttributeNS(null,"font-layer.options",i.options.fontStyle),L.Browser.gecko){if(100!==i.options.fontPercent&&0!==i.options.fontSpace&&(n=i.options.fontSpace+i.options.fontPercent/100*parseFloat(i.options.fontSize)*i.options.text.length),100!==i.options.fontPercent&&0===i.options.fontSpace){var l=document.createElement("span");document.body.appendChild(l),l.style.width="auto",l.style.height="auto",i.options.fontSize&&(l.style.fontSize=new String(i.options.fontSize)+"px"),i.options.fontFamily&&(l.style.fontFamily=i.options.fontFamily),i.options.fontWeight&&(l.style.fontWeight=i.options.fontWeight),l.style.position="absolute",l.style.visibility="hidden",l.innerHTML=i.options.text;var a=l.clientWidth;n=i.options.fontPercent/100*a+i.options.text.length}t.setAttributeNS(null,"textLength",n),t.setAttributeNS(null,"lengthAdjust","spacingAndGlyphs")}t.setAttributeNS(null,"pointer-events","visible");var s=i.options.labelAlign||"cm";t.setAttributeNS(null,"text-anchor",L.SVG.LABEL_ALIGN[s[0]]||"middle"),!0===L.Browser.gecko&&t.setAttributeNS(null,"dominant-baseline",L.SVG.LABEL_ALIGN[s[1]]||"central");for(var r=function(){var t=L.SVG.LABEL_VFACTOR[s[1]];null==t&&(t=-.5);var e=t*(p-1);return L.Browser.ie&&(null===(t=L.SVG.LABEL_IE_VOFFSET[s[1]])&&(t=.35),e+=t),e},u=i.options.text.split("\n"),p=u.length;t.childNodes.length>p;)t.removeChild(t.lastChild);for(var h=0;h<p;h++){var c=e.x;if(0!==i.options.fontSpace||100!==i.options.fontPercent&&L.Browser.ie){var y=SuperMap.Plot.PlottingUtil.getTextWidth(i.options,u[h]);"c"===s[0]?c-=y/2:"r"===s[0]&&(c-=y);for(var f=0,S=u[h].split(""),g="",P=0;P<S.length;P++){var d=o+"tspan"+h+P;i._tspanNodeObj&&i._tspanNodeObj[d]||(i._tspanNodeObj[d]=L.SVG.create("tspan"));var m=i._tspanNodeObj[d];!1===L.Browser.gecko&&m.setAttributeNS(null,"baseline-shift",L.SVG.LABEL_VSHIFT[s[1]]||"-35%");var b=SuperMap.Plot.PlottingUtil.getTextWidth(i.options,S[P]);m.setAttributeNS(null,"textLength",b),m.setAttributeNS(null,"lengthAdjust","spacingAndGlyphs"),m.setAttribute("x",c+f+(0===h?0:b>>>1)),0!==P?m.setAttribute("dy","0em"):0===h?m.setAttribute("dy",r()+"em"):m.setAttribute("dy","1em");var M=""===S[P]?" ":S[P];i.options.isUnicode?L.Browser.ie||L.Browser.ielt9?(this.element.innerHTML=M,m.textContent=this.element.innerHTML):m.innerHTML=M:m.textContent=M,m.parentNode||t.appendChild(m),g+=S[P],f=SuperMap.Plot.PlottingUtil.getTextWidth(i.options,g)+parseFloat(i.options.fontSpace)*(i.options.fontPercent/100)}}else{var v=o+"tspan"+h;i._tspanNodeObj&&i._tspanNodeObj[v]||(i._tspanNodeObj[v]=L.SVG.create("tspan"));var T=i._tspanNodeObj[v];if(!1===L.Browser.gecko&&T.setAttributeNS(null,"baseline-shift",L.SVG.LABEL_VSHIFT[s[1]]||"-35%"),100!==i.options.fontPercent){var A=SuperMap.Plot.PlottingUtil.getTextWidth(i.options,u[h]);T.setAttributeNS(null,"textLength",A),T.setAttributeNS(null,"lengthAdjust","spacingAndGlyphs")}T.setAttribute("x",e.x),0==h?T.setAttribute("dy",r()+"em"):T.setAttribute("dy","1em");var _=""===u[h]?" ":u[h];i.options.isUnicode?L.Browser.ie||L.Browser.ielt9?(this.element.innerHTML=_,T.textContent=this.element.innerHTML):T.innerHTML=_:T.textContent=_,T.parentNode||t.appendChild(T)}}t.parentNode||this._rootGroup.appendChild(t)},_updateText:function(t){if(t.options.text&&0!==t.options.text.length)if(t.options.fontSize<6||t.options.fontPercent<=0)t._removeNode();else{for(var e in t._eventParents)if(t._eventParents[e].symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL&&!1===t._eventParents[e].textDisplay)return void t._removeNode();void 0===t.options.fontPercent&&(t.options.fontPercent=100),t.options.fontPercent<0&&(t.options.fontPercent=0),t.options.fontPercent>400&&(t.options.fontPercent=400),void 0===t.options.fontSpace&&(t.options.fontSpace=0),t.options.fontSpace>30?t.options.fontSpace=30:t.options.fontSpace<0&&(t.options.fontSpace=0);var i=t._latlng,o=this._map.latLngToLayerPoint(i);if(void 0!=o){if(t.options.labelXOffset||t.options.labelYOffset){var n=isNaN(t.options.labelXOffset)?0:t.options.labelXOffset,l=isNaN(t.options.labelYOffset)?0:t.options.labelYOffset;o.x+=n,o.y-=l}if(!0===t.options.fontShadow){t._shadowTextNode&&t._shadowTextNode.parentNode||(t._shadowTextNode=L.SVG.create("text"),this._rootGroup.appendChild(t._shadowTextNode));var a=L.point(o.x,o.y);if(t.options.fontShadowOffsetX&&(a.x+=t.options.fontShadowOffsetX),t.options.fontShadowOffsetY&&(a.y+=t.options.fontShadowOffsetY),0!==t.options.labelRotation){var s=o.x,r=o.y,u=t.options.labelRotation*Math.PI/180,p=Math.sqrt(Math.pow(a.x-s,2)+Math.pow(a.y-r,2)),h=u+Math.atan2(a.y-r,a.x-s);a.x=s+p*Math.cos(h),a.y=r+p*Math.sin(h)}var c=t.options.fontStroke;t.options.fontStroke=!1;var y=t.options.fontColor;t.options.fontColor=t.options.fontShadowColor,this._updateTextPt(t._shadowTextNode,a,t,"shadow"),t.options.fontColor=y,t.options.fontStroke=c}else t._shadowTextNode&&t._shadowTextNode.parentNode&&(this._rootGroup.removeChild(t._shadowTextNode),delete t._shadowTextNode);if(t._textNode&&t._textNode.parentNode||(t._textNode=L.SVG.create("text"),this._rootGroup.appendChild(t._textNode),t.options.interactive&&L.DomUtil.addClass(t._textNode,"leaflet-interactive"),t.addInteractiveTarget(t._textNode)),this._updateTextPt(t._textNode,o,t,"label"),!0===t.options.fontBackground){var f=t._shadowTextNode;if(f&&f.parentNode||(f=t._textNode),!f||!f.parentNode)return;t._backgroundTextNode&&t._backgroundTextNode.parentNode||(t._backgroundTextNode=L.SVG.create("rect"),!0===t.options.fontShadow?this._rootGroup.insertBefore(t._backgroundTextNode,t._shadowTextNode):this._rootGroup.insertBefore(t._backgroundTextNode,t._textNode));var S=t._textNode.getBBox();t._backgroundTextNode.x.baseVal.value=S.x,t._backgroundTextNode.y.baseVal.value=S.y,t._backgroundTextNode.width.baseVal.value=S.width,t._backgroundTextNode.height.baseVal.value=S.height,t._backgroundTextNode.style.fill=t.options.fontBackgroundColor,t.options.labelRotation&&t._backgroundTextNode.setAttributeNS(null,"transform","rotate("+t.options.labelRotation+" "+o.x+","+o.y+")")}else t._backgroundTextNode&&t._backgroundTextNode.parentNode&&(this._rootGroup.removeChild(t._backgroundTextNode),delete t._backgroundTextNode)}else t._removeNode()}else t._removeNode()},_updateImage:function(t){if(t._imageNode&&t._imageNode.parentNode||(t._imageNode=L.SVG.create("image"),this._rootGroup.appendChild(t._imageNode)),t._imageNode.setAttributeNS(null,"cx",t._point.x),t._imageNode.setAttributeNS(null,"cy",t._point.y),t._imageNode.setAttributeNS(null,"r",1),t._imageNode.style.visibility="",t.options.graphicTitle){t._imageNode.setAttributeNS(null,"title",t.options.graphicTitle);var e=L.SVG.create("title");e.textContent=style.graphicTitle,t._imageNode.appendChild(e)}t.options.graphicWidth&&t.options.graphicHeight&&t._imageNode.setAttributeNS(null,"preserveAspectRatio","none");var i=t.options.graphicWidth||t.options.graphicHeight,o=t.options.graphicHeight||t.options.graphicWidth;i=i||2*t.options.pointRadius,o=o||2*t.options.pointRadius;var n=void 0!=t.options.graphicXOffset?t.options.graphicXOffset:-.5*i,l=void 0!=t.options.graphicYOffset?t.options.graphicYOffset:-.5*o,a=t.options.graphicOpacity||t.options.fillOpacity;t._imageNode.setAttributeNS(null,"x",(t._point.x+n).toFixed()),t._imageNode.setAttributeNS(null,"y",(t._point.y+l).toFixed()),t._imageNode.setAttributeNS(null,"width",i),t._imageNode.setAttributeNS(null,"height",o),t._imageNode.setAttributeNS("http://www.w3.org/1999/xlink","href",t.options.externalGraphic),t._imageNode.setAttributeNS(null,"style","opacity: "+a),t._imageNode.onclick=L.SVG.preventDefault;var s=t.options.rotation;void 0===s&&void 0===t._imageNode._rotation||!t._point||(t._imageNode._rotation=s,s|=0,t._imageNode.setAttributeNS(null,"transform","rotate("+s+" "+t._point.x+" "+t._point.y+")")),t._imageNode.setAttributeNS(null,"fill","none"),t._imageNode.setAttributeNS(null,"stroke","none"),t.options.pointerEvents?(t._imageNode.setAttributeNS(null,"pointer-events",t.options.pointerEvents),t._imageNode.style.pointerEvents=t.options.pointerEvents):(t._imageNode.setAttributeNS(null,"pointer-events","visiblepainted"),t._imageNode.style.pointerEvents="visiblepainted"),null!=t.options.cursor&&t._imageNode.setAttributeNS(null,"cursor",style.cursor)},_updateArc:function(t){if(this._drawing&&!t._empty()){var e=t._point,i=t._radius,o="a"+i+","+(t._radiusY||i)+" 0 1,0 ";sRadian=(360-t.options.endAngle)*(Math.PI/180),eRadian=(360-t.options.startAngle)*(Math.PI/180);var n=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+o+2*i+",0 "+o+2*-i+",0 ";this._setPath(t,n)}}}),L.SVG.LABEL_ALIGN={l:"start",r:"end",b:"bottom",t:"hanging"},L.SVG.LABEL_VSHIFT={t:"-83%",b:"0"},L.SVG.LABEL_VFACTOR={t:0,b:-1},L.SVG.LABEL_IE_VOFFSET={t:.86,b:0},L.SVG.preventDefault=function(t){t.preventDefault&&t.preventDefault()}},function(t,e,i){"use strict";var o=i(9);L.Map.include({getFeatureByUuid:function(t){var e=[];for(var i in this._layers)if(this._layers[i]instanceof o.PlottingLayer){var n=this._layers[i].getFeatureByUuid(t);null!==n&&e.push(n)}return 0===e.length?null:e[0]},getPlottingLayers:function(){var t=[],e=this._layers;for(var i in e)e[i]instanceof o.PlottingLayer&&t.push(e[i]);return t},clearPlottingLayers:function(){var t=this._layers;for(var e in t)t[e]instanceof o.PlottingLayer&&(t[e].removeAllFeatures(),this.removeLayer(t[e]))},getLayer:function(t){var e=this._layers;for(var i in e)if(e[i]._leaflet_id===t)return e[i]},getLayersByName:function(t){return this.getLayersBy("name",t)},getLayersBy:function(t,e){return this.getBy("_layers",t,e)},getBy:function(t,e,i){var o="function"==typeof i.test,n=[];for(var l in this[t])n.push(this[t][l]);return SuperMap.Array.filter(n,function(t){return t[e]===i||o&&i.test(t[e])})},latLngToLayerPoint:function(t){return this.project(L.latLng(t))._subtract(this.getPixelOrigin())}})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphicEditLayer=void 0;var o=i(9);e.GraphicEditLayer=o.PlottingLayer.extend({})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.plottingGraphicLayer=e.PlottingGraphicLayer=void 0,i(0);var o=i(34),n=i(33),l=i(71),a=e.PlottingGraphicLayer=L.Path.extend({cacheImages:null,graphics:null,_tempDrawingLayer:null,_currentLatLng:null,options:{renderer:L.canvas()},initialize:function(t){this._tempDrawingLayer=new l.GraphicEditLayer("temportary"),t=t||{},L.Util.setOptions(this,t),this.cacheImages={},this.graphics=[],this.selectGraphics=[]},getEvents:function(){var t={click:this._handleClick,mousemove:this._onMapMouseMove};return this._map._zoomAnimated&&(t.zoomanim=this._zoomAnim),t},_zoomAnim:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._getCenterOffset(t.center)._multiplyBy(-e).subtract(this._map._getMapPanePos());L.DomUtil.setTransform?L.DomUtil.setTransform(this._canvas,i,e):L.DomUtil.setPosition(this._canvas,i)},_onMapMouseMove:function(t){var e=this._getGraphicsInBounds();if(0!==e.length)for(var i=0,o=e.length;i<o;i++){var n=this._map.latLngToLayerPoint(e[i].getLatLng()),l=L.point(n.x-e[i].getImage().anchor.x,n.y-e[i].getImage().anchor.y),a=L.point(n.x+(e[i].getImage().size[0]-e[i].getImage().anchor.x),n.y+(e[i].getImage().size[1]-e[i].getImage().anchor.y));if(L.bounds(l,a).contains(this._map.latLngToLayerPoint(t.latlng))){this._tempDrawingLayer._renderer._container.style.cursor=e[i].getImage().feature.isSelected?"move":"pointer";break}this._tempDrawingLayer._renderer._container.style.cursor=""}},addFeatures:function(t){L.Util.isArray(t)||(t=[t]);for(var e=0,i=t.length;e<i;e++){var l=t[e],a=this._generateFromFeature(l);if(this.cacheImages[a]){this.cacheImages[a].imgCount++;var s=new o.DotSymbolStyle(l);s.canvas=this.cacheImages[a].img.canvas,s.anchor=this.cacheImages[a].img.anchor,s.size=this.cacheImages[a].img.size,s.pxBounds=this.cacheImages[a].img.pxBounds,this.graphics[e]=new n.PlottingGraphic({_latlng:l.getLatLngs()[0],_image:s,_uuid:a})}else{if(0===l.components.length){this._tempDrawingLayer.addFeatures(l);var r=new o.DotSymbolStyle(l);r.render(),this.cacheImages[a]={img:r.getCacheInfo(),imgCount:1},this.graphics[e]=new n.PlottingGraphic({_latlng:l.getLatLngs()[0],_image:r,_uuid:a})}this._tempDrawingLayer.removeFeatures(l)}this.graphics[e].layer=this,l.graphic=this.graphics[e]}this._update()},removeGraphics:function(t){L.Util.isArray(t)||(t=[t]);var e=this;t.map(function(t){var i=SuperMap.Util.indexOf(e.selectGraphics,t);-1!==i&&(t.updateImage(),e._tempDrawingLayer.removeFeatures(t.getImage().feature),e.selectGraphics.splice(i,1));var o=t.getUuid();return e.cacheImages[o]&&0==--e.cacheImages[o].imgCount&&delete e.cacheImages[o],-1!==(i=SuperMap.Util.indexOf(e.graphics,t))&&e.graphics.splice(i,1),e._renderer._clear(),t}),this._update()},updateGraphics:function(t){L.Util.isArray(t)||(t=[t]);var e=this;t.map(function(t){var i=t.getUuid();return e.cacheImages[i]&&0==--e.cacheImages[i].imgCount&&delete e.cacheImages[i],e._renderer._clear(),i=e._generateFromFeature(t.getImage().feature),e.cacheImages[i]||(t.getImage().render(),t.setUuid(i),t.setLatLng(t.getImage().feature.getLatLngs()[0]),e.cacheImages[i]={img:t.getImage().getCacheInfo(),imgCount:1}),t}),this._update()},removeAllGraphics:function(){if(0!==this.selectGraphics.length)for(var t=0,e=this.selectGraphics.length;t<e;t++)this.selectGraphics[t].updateImage(),this._tempDrawingLayer.removeFeatures(this.selectGraphics[t].getImage().feature);this.selectGraphics=[],this.graphics=[],this.cacheImages={},this._update()},_generateFromFeature:function(t){return(t.libID+t.code+Math.round(t.symbolSize.w)+Math.round(t.symbolSize.h)+t.textContent+t.annotationPosition+t.style.color+t.style.weight+t.style.opacities+t.dashArray+t.fill+t.fillColor+t.dRotate).toString()},onAdd:function(){this._canvas=document.createElement("canvas");var t=this._map.getPixelBounds().getSize().x,e=this._map.getPixelBounds().getSize().y;this._canvas.width=t,this._canvas.height=e,this._ctx=this._canvas.getContext("2d"),L.Path.prototype.onAdd.call(this),this._map.addLayer(this._tempDrawingLayer)},onRemove:function(){L.Path.prototype.onRemove.call(this),this._map.removeLayer(this._tempDrawingLayer)},_update:function(){this._map&&this._updatePath()},_containsPoint:function(){return!1},_updatePath:function(){this._renderer._drawPlottingGraphics(this._getGraphicsInBounds())},_project:function(){var t=this;t._getGraphicsInBounds().map(function(e){var i=t._map.latLngToLayerPoint(e.getLatLng()),o=L.point(i.x-e.getImage().anchor.x,i.y-e.getImage().anchor.y),n=L.point(i.x+(e.getImage().size[0]-e.getImage().anchor.x),i.y+(e.getImage().size[1]-e.getImage().anchor.y));return e._pxBounds=L.bounds(o,n),e}),t._pxBounds=L.bounds(L.point(0,0),L.point(this._canvas.width,this._canvas.height))},_getGraphicsInBounds:function(){var t=[],e=this._map.getBounds();return this.graphics.map(function(i){return e.contains(i.getLatLng())&&t.push(i),i}),t},_handleClick:function(t){var e=this;if(0!==this.selectGraphics.length)for(var i=0,o=this.selectGraphics.length;i<o;i++)this.selectGraphics[i].updateImage(),e._tempDrawingLayer.removeFeatures(this.selectGraphics[i].getImage().feature);this.selectGraphics=[];for(var n=e._getGraphicsInBounds(),l=0,a=n.length;l<a;l++){var s=e._map.latLngToLayerPoint(n[l].getLatLng()),r=L.point(s.x-n[l].getImage().anchor.x,s.y-n[l].getImage().anchor.y),u=L.point(s.x+(n[l].getImage().size[0]-n[l].getImage().anchor.x),s.y+(n[l].getImage().size[1]-n[l].getImage().anchor.y));if(L.bounds(r,u).contains(e._map.latLngToLayerPoint(t.latlng))){this.selectGraphics.push(n[l]);var p=e._generateFromFeature(n[l].getImage().feature);e.cacheImages[p]&&0==--e.cacheImages[p].imgCount&&delete e.cacheImages[p],e._tempDrawingLayer.addFeatures(n[l].getImage().feature),e._map.getPlotEditControl()&&(n[l].getImage().feature.enableEdit||e._map.getPlotEditControl().enableEditFeatures(n[l].getImage().feature),e._map.getPlotEditControl().selectFeatures(n[l].getImage().feature));break}}e._map.getPlotEditControl()&&(e._map.getPlotEditControl()._onTriggerMapClick=!1),L.DomEvent.stopPropagation(t)}}),s=e.plottingGraphicLayer=function(t){return new a(t)};L.supermap.plotting.graphicLayer=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pathText=e.PathText=void 0,i(0);var o=i(5),n=e.PathText=o.AlgoSymbol.extend({relLineText:0,showPathLine:!0,showPathLineArrow:!1,isCurve:!1,isAvoid:!1,textToLineDistance:0,getRelLineText:function(){return this.relLineText},setRelLineText:function(t){this.relLineText!==t&&(this.relLineText=t,this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues))},getShowPathLine:function(){return this.showPathLine},setShowPathLine:function(t){this.showPathLine!==t&&(this.showPathLine=t,this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues))},getShowPathLineArrow:function(){return this.showPathLineArrow},setShowPathLineArrow:function(t){this.showPathLineArrow!==t&&(this.showPathLineArrow=t,this.showPathLine&&(this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)))},getIsCurveLine:function(){return this.isCurve},setCurveLine:function(t){this.isCurve!==t&&(this.isCurve=t,this.showPathLine&&(this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)))},getIsAvoidLine:function(){return this.isAvoid},setAvoidLine:function(t){this.isAvoid!==t&&(this.isAvoid=t,this.relLineText===SuperMap.Plot.RelLineText.ONLINE&&this.showPathLine&&(this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)))},getSpace:function(){return this.textToLineDistance},setSpace:function(t){this.textToLineDistance!==t&&(this.textToLineDistance=t,this.relLineText!==SuperMap.Plot.RelLineText.ONLINE&&(this.redraw(),this.fire(SuperMap.Plot.Event.reseteditmarkersvalues)))},initialize:function(t,e,i,n){this.code=SuperMap.Plot.SymbolType.PATHTEXT,this.libID=0,this.symbolType=SuperMap.Plot.SymbolType.PATHTEXT,this.symbolName="沿线注记",this.minEditPts=2,this.maxEditPts=9999,o.AlgoSymbol.prototype.initialize.call(this,t,e,i,n)},_reView:function(){this.fromZoom!==this._map.getZoom()&&(this.redraw(),this.fromZoom=this._map.getZoom())},toSuperMapAlgorithms:function(){o.AlgoSymbol.prototype.toSuperMapAlgorithms.call(this),this.superMapAlgoSymbol.relLineText=this.relLineText,this.superMapAlgoSymbol.showPathLine=this.showPathLine,this.superMapAlgoSymbol.showPathLineArrow=this.showPathLineArrow,this.superMapAlgoSymbol.isCurve=this.isCurve,this.superMapAlgoSymbol.isAvoid=this.isAvoid,this.superMapAlgoSymbol.textToLineDistance=this.textToLineDistance}}),l=e.pathText=function(t,e,i,o){return new n(t,e,i,o)};L.supermap.plotting.pathText=l,L.supermap.plotting.PathText=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.animationLayer=e.AnimationLayer=void 0,i(0);var o=i(8),n=e.AnimationLayer=o.PlottingLayerBase.extend({addFeatures:function(t){SuperMap.Util.isArray(t)||(t=[t]),o.PlottingLayerBase.prototype.addFeatures.call(this,t)}}),l=e.animationLayer=function(t,e){return new n(t,e)};L.supermap.plotting.animationLayer=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PlottingLayerBase=e.animationLayer=e.AnimationLayer=void 0;var o=i(74),n=i(8);e.AnimationLayer=o.AnimationLayer,e.animationLayer=o.animationLayer,e.PlottingLayerBase=n.PlottingLayerBase},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PlottingGraphic=e.dotSymbolStyle=e.DotSymbolStyle=void 0;var o=i(34),n=i(33);e.DotSymbolStyle=o.DotSymbolStyle,e.dotSymbolStyle=o.dotSymbolStyle,e.PlottingGraphic=n.PlottingGraphic},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.plottingLayer=e.PlottingLayer=e.plottingGraphicLayer=e.PlottingGraphicLayer=e.PlottingLayerBase=e.animationLayer=e.AnimationLayer=e.PlottingGraphic=e.dotSymbolStyle=e.DotSymbolStyle=void 0;var o=i(76),n=i(75),l=i(72),a=i(9);e.DotSymbolStyle=o.DotSymbolStyle,e.dotSymbolStyle=o.dotSymbolStyle,e.PlottingGraphic=o.PlottingGraphic,e.AnimationLayer=n.AnimationLayer,e.animationLayer=n.animationLayer,e.PlottingLayerBase=n.PlottingLayerBase,e.PlottingGraphicLayer=l.PlottingGraphicLayer,e.plottingGraphicLayer=l.plottingGraphicLayer,e.PlottingLayer=a.PlottingLayer,e.plottingLayer=a.plottingLayer},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbolFactory=void 0,i(35);e.AlgoSymbolFactory=SuperMap.Plot.AlgoSymbolFactory=SuperMap.Plot.AlgoSymbolFactory||{};SuperMap.Plot.AlgoSymbolFactory.getAlgoSymbol=function(t){var e=t.libID,i=t.code;return 0!==e&&22!==e&&421!==e||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===e&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getAlgoSymbol(e,i,t):123===e&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getAlgoSymbol(e,i,t):999===e&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getAlgoSymbol(e,i,t):null:SuperMap.Plot.BasicAlgoSymbolFactory.getAlgoSymbol(e,i,t)},SuperMap.Plot.AlgoSymbolFactory.getSymbolWayType=function(t,e){if(0===t)switch(e){case SuperMap.Plot.SymbolType.POLYLINESYMBOL:case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:return SuperMap.Plot.AddPoint_WayType.POLYLINE;case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:return SuperMap.Plot.AddPoint_WayType.CURVE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}if(22===t)switch(e){case 1005:case 1008:case 1012:case 1014:return SuperMap.Plot.AddPoint_WayType.CURVE;case 1007:case 1009:case 1013:case 1015:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}if(100===t)switch(e){case 15200:case 15201:case 16203:case 17703:case 17704:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 21900:case 22e3:case 22103:case 23800:case 24700:case 25201:case 25400:case 25601:case 25801:case 25901:case 26500:case 26501:case 26502:case 26503:case 26600:case 28900:case 29e3:case 29003:case 29903:case 3e4:case 30001:case 30002:case 30100:case 30102:case 30200:case 30201:case 30800:case 31803:case 33400:case 34900:case 34901:case 34902:case 35e3:case 36400:case 44200:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 3010301:case 3010302:case 3010303:case 3010304:case 16500:case 17400:case 17401:case 17500:case 17501:case 23400:case 23500:case 23600:case 23700:case 27300:case 28200:case 28300:case 28400:case 37600:case 37601:case 37700:case 39e3:case 40100:case 40101:case 42400:case 2350001:case 3032e3:case 4010800:case 4010801:case 4011100:case 4011101:case 4022100:case 4022101:case 4022102:case 39101:case 44300:case 22200:case 27701:return SuperMap.Plot.AddPoint_WayType.CURVE;case 12500:case 12502:case 16100:case 20300:case 25501:case 25502:case 25503:case 32900:case 34700:case 35200:case 36401:case 41200:case 41201:case 41202:case 42700:case 44400:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}if(123===t)switch(e){case 21003:case 21207:case 2120701:case 2121503:case 21218:case 30008:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 30009:case 5021803:case 5022001:case 5022002:case 40301:case 4030101:case 4030102:case 4030103:case 4030104:case 40303:case 4030301:case 4030302:case 4030303:case 50101:case 5010101:case 50102:case 5010201:case 5010202:case 5010203:case 5010204:case 50103:case 5010301:case 5010302:case 5010303:case 5010304:case 50107:case 5010701:case 50210:case 50220:case 50221:case 50225:case 5030102:case 50303:case 5030301:case 50309:case 50320:case 5032001:case 5032002:case 5032003:case 50321:case 5032101:case 5032102:case 50322:case 5032201:case 50330:case 5033001:case 5034203:case 5035201:case 5035204:case 60205:case 90105:return SuperMap.Plot.AddPoint_WayType.CURVE;case 20915:case 2091502:case 2092101:case 2120702:case 21216:case 2121601:case 2121602:case 21605:case 30010:case 30011:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 30012:case 30020:case 3002001:case 3002002:case 3002005:case 30025:case 3002501:case 30026:case 40104:case 40302:case 4030201:case 4030202:case 4030203:case 4030204:case 50227:case 5035205:case 60301:case 6030101:case 6030102:case 6030103:case 6030104:case 6030105:case 6030106:case 6030107:case 70202:case 7020201:case 7020202:case 90107:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}},SuperMap.Plot.AlgoSymbolFactory.isAccessServer=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.isAccessServer(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.isAccessServer(t,e):999!==t||void 0===SuperMap.Plot.YJAlgoSymbolFactory||SuperMap.Plot.YJAlgoSymbolFactory.isAccessServer(t,e):SuperMap.Plot.BasicAlgoSymbolFactory.isAccessServer(t,e)},SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols=function(t,e){return 100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getDefaultSubSymbols(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getDefaultSubSymbols(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getDefaultSubSymbols(t,e):[]},SuperMap.Plot.AlgoSymbolFactory.getMinEditPts=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getMinEditPts(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getMinEditPts(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getMinEditPts(t,e):0:SuperMap.Plot.BasicAlgoSymbolFactory.getMinEditPts(t,e)},SuperMap.Plot.AlgoSymbolFactory.getMaxEditPts=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getMaxEditPts(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getMaxEditPts(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getMaxEditPts(t,e):0:SuperMap.Plot.BasicAlgoSymbolFactory.getMaxEditPts(t,e)},SuperMap.Plot.AlgoSymbolFactory.getDefaultStyle=function(t,e){return 100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getDefaultStyle(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getDefaultStyle(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getDefaultStyle(t,e):{}},SuperMap.Plot.AlgoSymbolFactory.getSymbolName=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?"":SuperMap.Plot.BasicAlgoSymbolFactory.getSymbolName(t,e)},SuperMap.Plot.AlgoSymbolFactory.canPolylineConnect=function(t,e){if(100!==t)return!1;switch(e){case 16500:case 17400:case 17401:case 17500:case 17501:case 23400:case 23500:case 23600:case 23700:case 27300:case 28200:case 28300:case 28400:case 37600:case 37601:case 37700:case 39e3:case 40100:case 40101:case 42200:case 42400:case 2350001:case 3032e3:case 4010800:case 4010801:case 4011100:case 4011101:case 4022100:case 4022101:case 4022102:return!0;default:return!1}},SuperMap.Plot.AlgoSymbolFactory.zoomInCalSymbol=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.zoomInCalSymbol(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.zoomInCalSymbol(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.zoomInCalSymbol(t,e):0:SuperMap.Plot.BasicAlgoSymbolFactory.zoomInCalSymbol(t,e)},SuperMap.Plot.AlgoSymbolFactory.zoomCalSymbol=function(t,e){if((0===t||22===t||421===t)&&void 0!==SuperMap.Plot.BasicAlgoSymbolFactory)return SuperMap.Plot.BasicAlgoSymbolFactory.zoomCalSymbol(t,e);if(100===t)switch(e){case 28e3:case 28100:case 28200:case 28201:case 32300:return!0;default:return!1}else{if(123!==t||void 0===SuperMap.Plot.WJAlgoSymbolFactory)return!1;switch(e){case 50312:case 50313:case 50314:case 50348:return!0;default:return!1}}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol15200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&(i.scaleValues.push(.05),i.scaleValues.push(0),i.scaleValues.push(.185)),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);for(var i=0,o=0,n=e.length-1;o<n;o++)i+=SuperMap.Plot.PlottingUtil.distance(e[o],e[o+1]);for(var l=0,a=0,s=t.length-1;a<s;a++)l+=SuperMap.Plot.PlottingUtil.distance(t[a],t[a+1]);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());for(var r=this.scaleValues[0]*l,u=this.scaleValues[1],p=this.scaleValues[2]*l,h=.3*p,c=p;c<i;c+=p){var y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(c,e);if(-1===y.index)return void this.finish();var f=c+h,S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(f,e);if(-1===S.index)return void this.finish();var g=[],P=[];g.push(y.pts);var d=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,e[y.index],y.pts);0===u?g.push(new SuperMap.Geometry.Point(d.pntLeft.x,d.pntLeft.y)):g.push(new SuperMap.Geometry.Point(d.pntRight.x,d.pntRight.y)),P.push(S.pts);var m=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,e[S.index],S.pts);if(0===u?P.push(new SuperMap.Geometry.Point(m.pntLeft.x,m.pntLeft.y)):P.push(new SuperMap.Geometry.Point(m.pntRight.x,m.pntRight.y)),p===c){this.scalePoints=[];var b=new SuperMap.Geometry.Point(g[1].x,g[1].y);b.isScalePoint=!0,b.tag=0,this.scalePoints.push(b),(b=new SuperMap.Geometry.Point(g[0].x,g[0].y)).isScalePoint=!0,b.tag=1,this.scalePoints.push(b)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var i=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((i=SuperMap.Plot.PlottingUtil.clearSamePts(i)).length<this.minEditPts)return;for(var o=0,n=0,l=i.length-1;n<l;n++)o+=SuperMap.Plot.PlottingUtil.distance(i[n],i[n+1]);var a=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(i),s=new SuperMap.Geometry.Point(e.x,e.y);if(0===t){var r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(a,o*this.scaleValues[2]);if(-1===r.index)return;var u=SuperMap.Plot.PlottingUtil.distance(r.pt,s)/o,p=SuperMap.Plot.PlottingUtil.pointIsRightToLine(a[0],a[1],e);this.scaleValues[1]=p?1:0,this.scaleValues[0]=u}else if(1===t){for(var h=0,c=-1,y=[],f=0,S=a.length-1;f<S;f++){var g=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,a[f],a[f+1]);if(g.isOnline){var P=SuperMap.Plot.PlottingUtil.distance(g.projectPoint,this.controlPoints[1]);0==h?(h=P,c=f,y=e):P<h&&(h=P,c=f,y=e)}}if(-1==c)return;for(var d=0,m=0,b=c-1;m<b;m++)d+=SuperMap.Plot.PlottingUtil.distance(a[m],a[m+1]);var L=(d+=SuperMap.Plot.PlottingUtil.distance(y,a[c]))/o;L>.7&&(L=.7),this.scaleValues[2]=L}}}}]),e}();SuperMap.Plot.AlgoSymbol15200=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol315=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0!==i.scaleValues.length&&(i.scaleValues=[],i.scaleValues.push(.2),i.scaleValues.push(.2),i.scaleValues.push(.4),i.scaleValues.push(.4),i.scaleValues.push(.1),i.scaleValues.push(.2),i.scaleValues.push(.1),i.scaleValues.push(.2),i.scaleValues.push(1),i.scaleValues.push(1)),i.CLASS_NAME="SuperMap.Plot.AlgoSymbol315",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){for(var e=0,i=0;i<t.length-1;i++)e+=SuperMap.Plot.PlottingUtil.distance(t[i],t[i+1]);SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments),this.scaleValues.length<9&&(this.scaleValues=[],this.scaleValues.push(.2),this.scaleValues.push(.2),this.scaleValues.push(.4),this.scaleValues.push(.4),this.scaleValues.push(.1),this.scaleValues.push(.2),this.scaleValues.push(.1),this.scaleValues.push(.2),this.scaleValues.push(1),this.scaleValues.push(1));var o,n=e*this.scaleValues[4],l=e*this.scaleValues[5],a=SuperMap.Plot.PlottingUtil.distance(t[1],t[0]),s=SuperMap.Plot.PlottingUtil.linePnt(t[1],t[0],a+l);o=(this.scaleValues[8],SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,t[1],s));var r,u=e*this.scaleValues[6],p=e*this.scaleValues[7],h=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],a+p);r=(this.scaleValues[9],SuperMap.Plot.PlottingUtil.getSidePointsOfLine(u,t[0],h));var c=[];c.push(new SuperMap.Geometry.Point(o.pntLeft.x,o.pntLeft.y)),c.push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),c.push(new SuperMap.Geometry.Point(t[1].x,t[1].y)),c.push(new SuperMap.Geometry.Point(r.pntRight.x,r.pntRight.y));var y=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(c);y=SuperMap.Plot.PlottingUtil.clearSamePts(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.addScalePoint(o.pntLeft,3),this.addScalePoint(r.pntRight,4)}}},{key:"modifyPoint",value:function(t,i){if(!0===i.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var n=SuperMap.Plot.PlottingUtil.polylineDistance(o),l=SuperMap.Plot.PlottingUtil.projectPoint(i,o[0],o[1]);if(t<=2&&(SuperMap.Plot.AlgoSymbol1004.prototype.modifyPoint.apply(this,arguments),function t(e,i,o){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,i);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,i,o)}if("value"in n)return n.value;var a=n.get;return void 0!==a?a.call(o):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"modifyPoint",this).call(this,t,i)),3===t){var a=SuperMap.Plot.PlottingUtil.distance(i,l)/n,s=SuperMap.Plot.PlottingUtil.distance(l,o[0])/n;this.scaleValues[4]=a,this.scaleValues[5]=s,SuperMap.Plot.PlottingUtil.pointIsRightToLine(o[0],o[1],i)?this.scaleValues[8]=1:this.scaleValues[8]=0}if(4===t){var r=SuperMap.Plot.PlottingUtil.distance(i,l)/n,u=SuperMap.Plot.PlottingUtil.distance(l,o[1])/n;this.scaleValues[6]=r,this.scaleValues[7]=u,SuperMap.Plot.PlottingUtil.pointIsRightToLine(o[0],o[1],i)?this.scaleValues[9]=1:this.scaleValues[9]=0}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol315=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol1022=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&i.scaleValues.push(.05),i.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1022",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=e*this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.paraLine(t,i,!0),n=SuperMap.Plot.PlottingUtil.paraLine(t,i,!1),l=SuperMap.Plot.PlottingUtil.findPointInLine(o[0],o[1],.6*e),a=SuperMap.Plot.PlottingUtil.findPointInLine(o[0],o[1],.5*e),s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.1*e,o[0],a).pntLeft;this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[s,l,o[1]],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0});var r=SuperMap.Plot.PlottingUtil.findPointInLine(n[0],n[1],.4*e),u=SuperMap.Plot.PlottingUtil.findPointInLine(n[0],n[1],.5*e),p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.1*e,n[0],u).pntRight;this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[p,r,n[0]],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[n[1],n[0]]),this.addScalePoint(o[0],0),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var i=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);i=SuperMap.Plot.PlottingUtil.clearSamePts(i);var o=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(0===t){var n=SuperMap.Plot.PlottingUtil.distance(i[0],e)/o;this.scaleValues[0]=n}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1022=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol1021=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&i.scaleValues.push(.25),i.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1021",i.QIANJI_RATE1=9,i.QIANJI_RATE2=20,i.QIANJI_RATE4=5,i.QIANJI_RATE3=1/3,i.QIANJI_TAIL_RATE1=8,i.QIANJI_TAIL_RATE2=3,i.QIANJI_TAIL_RATE3=.6,i.SV1_Default=.25,i.SV1_MinValue=0,i.SV1_MaxValue=.5,i.DEFAULT_ARROW_TAIL_POS=.4,i.SCALE_VALUE_COUNT=1,i.MIN_LEN_LeftToRightCenter=1e-7,i.SCALE_AT=1/3,i.SCALE_ATAJ=1/7,i.SCALE_ATAE=1/3,i.SCALE_AW=2/3,i.SCALE_ATAJctrlDefSide=.8,i.SCALE_ATAJctrlSameSide=2/3,i.SCALE_MM_LEFT=.25,i.SCALE_MM_RIGHT=.75,i.BEZIER_K1=1/3,i.QIANJI_OPERATE_RATE1=1,i.m_dMaxDis=0,i.m_bIsAnimation=!1,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.components=[],this.m_scalePoints=[],t.length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<3)){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),i=this.arrowMeshs(e);i.LeftArowHead.unshift(i.LeftArowLeftBody[0][i.LeftArowLeftBody[0].length-1]),i.RightArowHead.unshift(i.RightArowLeftBody[i.RightArowLeftBody.length-1]),i.LeftArowLeftBody[0].push(i.LeftArowHead[0]),i.RightArowLeftBody.push(i.RightArowHead[0]),i.shapePts.push(i.shapePts[0]);var o=SuperMap.Plot.PlottingUtil.polylineDistance(i.LeftArowLeftBody[0]),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*o,i.LeftArowLeftBody[0]),l=[],a=[];if(n.bfind)for(var s=0;s<=n.index;s++)l.push(i.LeftArowLeftBody[0][s]);var r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*o,i.LeftArowLeftBody[0]);if(r.bfind)for(var u=r.index;u<i.LeftArowLeftBody[0].length-1;u++)a.push(i.LeftArowLeftBody[0][u]);var p=SuperMap.Plot.PlottingUtil.polylineDistance(i.RightArowLeftBody),h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*p,i.RightArowLeftBody),c=[],y=[];if(h.bfind)for(var f=0;f<=h.index;f++)c.push(i.RightArowLeftBody[f]);var S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*p,i.RightArowLeftBody);if(S.bfind)for(var g=S.index;g<i.RightArowLeftBody.length-1;g++)y.push(i.RightArowLeftBody[g]);var P=SuperMap.Plot.PlottingUtil.polylineDistance(i.RightArowRightBody),d=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*P,i.RightArowRightBody),m=[],b=[];if(d.bfind)for(var L=0;L<=d.index;L++)m.push(i.RightArowRightBody[L]);var M=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*P,i.RightArowRightBody);if(M.bfind)for(var v=M.index;v<i.RightArowRightBody.length-1;v++)b.push(i.RightArowRightBody[v]);i.shapePts.length>0&&(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,i.shapePts,{strokeWidth:0,weight:0,lineWidthLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i.LeftArowHead,{lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i.LeftArowRightBody),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i.RightArowHead,{lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b)),this.scalePoints=[];for(var T=0;T<this.m_scalePoints.length;T++)this.m_scalePoints[T].isScalePoint=!0,this.m_scalePoints[T].tag=T,this.scalePoints.push(this.m_scalePoints[T]);this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var i=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);i=SuperMap.Plot.PlottingUtil.clearSamePts(i);var o,n=SuperMap.Plot.PlottingUtil.operateControlPoints(i),l=new SuperMap.Geometry.Point((n[0].x+n[1].x)/2,(n[0].y+n[1].y)/2),a=new SuperMap.Geometry.Point((n[2].x+n[3].x)/2,(n[2].y+n[3].y)/2),s=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,l,a);if(s.isOnline){var r=SuperMap.Plot.PlottingUtil.distance(s.projectPoint,l),u=SuperMap.Plot.PlottingUtil.distance(l,a);(o=SuperMap.Plot.PlottingUtil.equalFuzzy(r,0)?this.SV1_MinValue:r/u)>this.SV1_MaxValue&&(o=this.SV1_MaxValue)}else o=SuperMap.Plot.PlottingUtil.distance(s.projectPoint,l)<SuperMap.Plot.PlottingUtil.distance(s.projectPoint,a)?this.SV1_MinValue:this.SV1_MaxValue;this.scaleValues=[],this.scaleValues.push(o)}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=new SuperMap.Plot.Path2D,i=[];i=this.m_bIsAnimation&&4===t.length?SuperMap.Plot.PlottingUtil.clonePoints(t):SuperMap.Plot.PlottingUtil.operateControlPoints(t);var o=this.scaleValues[0],n=SuperMap.Plot.PlottingUtil.distance(i[0],i[3]),l=SuperMap.Plot.PlottingUtil.distance(i[1],i[2]),a=i[1].clone(),s=.5*(i[0].x+i[3].x),r=.5*(i[0].y+i[3].y),u=new SuperMap.Geometry.Point(s,r),p=.5*(i[1].x+i[2].x),h=.5*(i[1].y+i[2].y),c=new SuperMap.Geometry.Point(p,h),y=SuperMap.Plot.PlottingUtil.distance(u,c);y<this.MIN_LEN_LeftToRightCenter&&(y=this.MIN_LEN_LeftToRightCenter),u.x=s+n*(s-p)/(y*this.QIANJI_RATE1),u.y=r+n*(r-h)/(y*this.QIANJI_RATE1),c.x=p+l*(p-s)/(y*this.QIANJI_RATE1),c.y=h+l*(h-r)/(y*this.QIANJI_RATE1);var f=new SuperMap.Geometry.Point(0,0),S=new SuperMap.Geometry.Point(0,0);f.x=s+n*(s-p)/(y*this.QIANJI_RATE2),f.y=r+n*(r-h)/(y*this.QIANJI_RATE2),S.x=p+l*(p-s)/(y*this.QIANJI_RATE2),S.y=h+l*(h-r)/(y*this.QIANJI_RATE2);var g=new SuperMap.Geometry.Point((i[0].x+i[1].x)/2,(i[0].y+i[1].y)/2),P=new SuperMap.Geometry.Point((i[2].x+i[3].x)/2,(i[2].y+i[3].y)/2),d=i[3].x-(i[3].x-u.x)*this.SCALE_AT,m=i[3].y-(i[3].y-u.y)*this.SCALE_AT,b=i[2].x-(i[2].x-c.x)*this.SCALE_AT,L=i[2].y-(i[2].y-c.y)*this.SCALE_AT,M=new SuperMap.Geometry.Point(0,0),v=new SuperMap.Geometry.Point(0,0),T=new SuperMap.Geometry.Point(0,0),A=new SuperMap.Geometry.Point(0,0);v.x=d-(m-i[3].y)*this.SCALE_ATAJ,v.y=m+(d-i[3].x)*this.SCALE_ATAJ,M.x=d+(m-i[3].y)*this.SCALE_ATAJ,M.y=m-(d-i[3].x)*this.SCALE_ATAJ,A.x=b-(L-i[2].y)*this.SCALE_ATAJ,A.y=L+(b-i[2].x)*this.SCALE_ATAJ,T.x=b+(L-i[2].y)*this.SCALE_ATAJ,T.y=L-(b-i[2].x)*this.SCALE_ATAJ;var _=new SuperMap.Geometry.Point(0,0),O=new SuperMap.Geometry.Point(0,0),x=new SuperMap.Geometry.Point(0,0),w=new SuperMap.Geometry.Point(0,0);_.x=3*M.x-2*d-(i[3].x-d)*this.SCALE_ATAE,_.y=3*M.y-2*m-(i[3].y-m)*this.SCALE_ATAE,O.x=3*v.x-2*d-(i[3].x-d)*this.SCALE_ATAE,O.y=3*v.y-2*m-(i[3].y-m)*this.SCALE_ATAE,x.x=3*T.x-2*b-(i[2].x-b)*this.SCALE_ATAE,x.y=3*T.y-2*L-(i[2].y-L)*this.SCALE_ATAE,w.x=3*A.x-2*b-(i[2].x-b)*this.SCALE_ATAE,w.y=3*A.y-2*L-(i[2].y-L)*this.SCALE_ATAE,u.x=s+n*(s-p)/(y*this.QIANJI_RATE4),u.y=r+n*(r-h)/(y*this.QIANJI_RATE4),c.x=p+l*(p-s)/(y*this.QIANJI_RATE4),c.y=h+l*(h-r)/(y*this.QIANJI_RATE4);var I=new SuperMap.Geometry.Point(0,0);I.x=i[0].x+(u.x-i[0].x)*this.SCALE_AW,I.y=i[0].y+(u.y-i[0].y)*this.SCALE_AW;var D=new SuperMap.Geometry.Point(0,0);D.x=i[1].x+(c.x-i[1].x)*this.SCALE_AW,D.y=i[1].y+(c.y-i[1].y)*this.SCALE_AW;var E=new SuperMap.Geometry.Point(0,0);E.x=M.x+(u.x-M.x)*this.SCALE_ATAJctrlSameSide,E.y=M.y+(u.y-M.y)*this.SCALE_ATAJctrlSameSide;var C=new SuperMap.Geometry.Point(0,0);C.x=A.x+(c.x-A.x)*this.SCALE_ATAJctrlSameSide,C.y=A.y+(c.y-A.y)*this.SCALE_ATAJctrlSameSide;var R=new SuperMap.Geometry.Point(0,0);R.x=v.x+(f.x-v.x)*this.SCALE_ATAJctrlDefSide,R.y=v.y+(f.y-v.y)*this.SCALE_ATAJctrlDefSide;var N=new SuperMap.Geometry.Point(0,0);N.x=T.x+(S.x-T.x)*this.SCALE_ATAJctrlDefSide,N.y=T.y+(S.y-T.y)*this.SCALE_ATAJctrlDefSide;var U=new SuperMap.Geometry.Point(0,0);U.x=g.x+(P.x-g.x)*o,U.y=g.y+(P.y-g.y)*o,this.m_scalePoints.push(new SuperMap.Geometry.Point(U.x,U.y));var G=new SuperMap.Geometry.Point(0,0),B=new SuperMap.Geometry.Point(0,0);G.x=i[0].x+(i[3].x-i[0].x)*o,G.y=i[0].y+(i[3].y-i[0].y)*o,B.x=i[1].x+(i[2].x-i[1].x)*o,B.y=i[1].y+(i[2].y-i[1].y)*o,G.x=G.x+(U.x-G.x)*this.QIANJI_RATE3,G.y=G.y+(U.y-G.y)*this.QIANJI_RATE3,B.x=B.x+(U.x-B.x)*this.QIANJI_RATE3,B.y=B.y+(U.y-B.y)*this.QIANJI_RATE3;var k=[];k.push(i[0].clone()),k.push(I.clone()),k.push(E.clone()),k.push(M.clone()),e.MoveTo(k[0]),e.CurveTo(k[1],k[2],k[3]);var F,z=[],j=[],Y=[],V=[],W=[],H=[],X=[];for(e.ToSubPathPolygons(X),z.push(X[0]),F=X[0].length,e.LineTo(_),e.LineTo(i[3]),e.LineTo(O),(k=[]).push(v),k.push(R),k.push(G),k.push(U),e.LineTo(k[0]),X=[],e.ToSubPathPolygons(X);F<X[0].length;F++)j.push(X[0][F]);for(F=X[0].length,e.CurveTo(k[1],k[2],k[3]),X=[],e.ToSubPathPolygons(X);F<X[0].length;F++)Y.push(X[0][F]);for(F=X[0].length,(k=[]).push(B),k.push(N),k.push(T),e.CurveTo(k[0],k[1],k[2]),X=[],e.ToSubPathPolygons(X);F<X[0].length;F++)V.push(X[0][F]);for(F=X[0].length,e.LineTo(x),e.LineTo(i[2]),e.LineTo(w),(k=[]).push(A),k.push(C),k.push(D),k.push(a),e.LineTo(k[0]),X=[],e.ToSubPathPolygons(X);F<X[0].length;F++)W.push(X[0][F]);for(F=X[0].length,e.CurveTo(k[1],k[2],k[3]),X=[],e.ToSubPathPolygons(X);F<X[0].length;F++)H.push(X[0][F]);return X=[],e.ToSubPathPolygons(X),{shapePts:X[0],LeftArowLeftBody:z,LeftArowHead:j,LeftArowRightBody:Y,ArowMidBody:[],RightArowLeftBody:V,RightArowHead:W,RightArowRightBody:H}}}]),e}();SuperMap.Plot.AlgoSymbol1021=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol1020=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&(i.scaleValues.push(.5),i.scaleValues.push(.222222),i.scaleValues.push(.5),i.scaleValues.push(.5),i.scaleValues.push(.5)),i.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1020",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.222222),this.scaleValues.push(.5),this.scaleValues.push(.5),this.scaleValues.push(.5));var e=t[0].clone(),i=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,i),n=this.scaleValues[0],l=new SuperMap.Geometry.Point(0,-o*n),a=new SuperMap.Geometry.Point(0,o*n),s=this.scaleValues[1],r=this.scaleValues[3],u=new SuperMap.Geometry.Point(o*(1-r),-o*s),p=new SuperMap.Geometry.Point(o*(1-r),o*s),h=this.scaleValues[2],c=this.scaleValues[4],y=new SuperMap.Geometry.Point(o*(1-c),-o*h),f=new SuperMap.Geometry.Point(o*(1-c),o*h),S=new SuperMap.Geometry.Point(o,0),g=SuperMap.Plot.PlottingUtil.radian(e,i),P=SuperMap.Plot.PlottingUtil.distance(l,u),d=SuperMap.Plot.PlottingUtil.findPointInLine(l,u,.3*P),m=SuperMap.Plot.PlottingUtil.findPointInLine(l,u,.4*P),b=SuperMap.Plot.PlottingUtil.distance(p,a),L=SuperMap.Plot.PlottingUtil.findPointInLine(p,a,.6*b),M=SuperMap.Plot.PlottingUtil.findPointInLine(p,a,.7*b),v=[];v.push(l),v.push(d),v.push(m),v.push(u),v.push(y),v.push(S),v.push(f),v.push(p),v.push(L),v.push(M),v.push(a);for(var T=[],A=0;A<v.length;A++){var _=SuperMap.Plot.PlottingUtil.coordinateTrans(e,v[A],g*SuperMap.Plot.PlottingUtil.RTOD);T.push(_)}for(var O=[],x=T.length-1;x>=0;--x)O.push(T[x]);var w=SuperMap.Plot.PlottingUtil.clonePoints(O);w.push(w[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,w,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O[0],O[1]]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O[2],O[3]]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O[3],O[4],O[5],O[6],O[7]],{lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O[7],O[8]]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O[9],O[10]]),this.scalePoints=[];var I=T[0].clone();I.isScalePoint=!0,I.tag=0,this.scalePoints.push(I);var D=T[3].clone();D.isScalePoint=!0,D.tag=1,this.scalePoints.push(D);var E=T[4].clone();E.isScalePoint=!0,E.tag=2,this.scalePoints.push(E),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var i=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);i=SuperMap.Plot.PlottingUtil.clearSamePts(i);var o=SuperMap.Plot.PlottingUtil.distance(i[0],i[1]),n=i[0].clone(),l=i[1].clone(),a=e.clone();if(0==t){var s=SuperMap.Plot.PlottingUtil.distance(a,n)/o;this.scaleValues[0]=s}else if(1==t){var r=SuperMap.Plot.PlottingUtil.projectPoint(a,n,l),u=SuperMap.Plot.PlottingUtil.distance(r,a)/o;this.scaleValues[1]=u;var p=SuperMap.Plot.PlottingUtil.distance(r,l)/o;this.scaleValues[3]=p}else if(2==t){var h=SuperMap.Plot.PlottingUtil.projectPoint(a,n,l),c=SuperMap.Plot.PlottingUtil.distance(h,a)/o;this.scaleValues[2]=c;var y=SuperMap.Plot.PlottingUtil.distance(h,l)/o;this.scaleValues[4]=y}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1020=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol1019=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&(i.scaleValues.push(.5),i.scaleValues.push(.222222),i.scaleValues.push(.5),i.scaleValues.push(.5),i.scaleValues.push(.5)),i.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1019",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.222222),this.scaleValues.push(.5),this.scaleValues.push(.5),this.scaleValues.push(.5));var e=t[0].clone(),i=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,i),n=this.scaleValues[0],l=new SuperMap.Geometry.Point(0,-o*n),a=new SuperMap.Geometry.Point(0,o*n),s=this.scaleValues[1],r=this.scaleValues[3],u=new SuperMap.Geometry.Point(o*(1-r),-o*s),p=new SuperMap.Geometry.Point(o*(1-r),o*s),h=this.scaleValues[2],c=this.scaleValues[4],y=new SuperMap.Geometry.Point(o*(1-c),-o*h),f=new SuperMap.Geometry.Point(o*(1-c),o*h),S=new SuperMap.Geometry.Point(o,0),g=SuperMap.Plot.PlottingUtil.radian(e,i),P=[];P.push(l),P.push(u),P.push(y),P.push(S),P.push(f),P.push(p),P.push(a),P.push(l);for(var d=[],m=0;m<P.length;m++){var b=SuperMap.Plot.PlottingUtil.coordinateTrans(e,P[m],g*SuperMap.Plot.PlottingUtil.RTOD);d.push(b)}for(var L=[],M=d.length-1;M>=0;--M)L.push(d[M]);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,L,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[L[2],L[1],L[7],L[6]],{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[L[6],L[5],L[4],L[3],L[2]],{lineTypeLimit:!0,surroundLineFlag:!1}),this.scalePoints=[];var v=d[0].clone();v.isScalePoint=!0,v.tag=0,this.scalePoints.push(v);var T=d[1].clone();T.isScalePoint=!0,T.tag=1,this.scalePoints.push(T);var A=d[2].clone();A.isScalePoint=!0,A.tag=2,this.scalePoints.push(A),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var i=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);i=SuperMap.Plot.PlottingUtil.clearSamePts(i);var o=SuperMap.Plot.PlottingUtil.distance(i[0],i[1]),n=i[0].clone(),l=i[1].clone(),a=e.clone();if(0==t){var s=SuperMap.Plot.PlottingUtil.distance(a,n)/o;this.scaleValues[0]=s}else if(1==t){var r=SuperMap.Plot.PlottingUtil.projectPoint(a,n,l),u=SuperMap.Plot.PlottingUtil.distance(r,a)/o;this.scaleValues[1]=u;var p=SuperMap.Plot.PlottingUtil.distance(r,l)/o;this.scaleValues[3]=p}else if(2==t){var h=SuperMap.Plot.PlottingUtil.projectPoint(a,n,l),c=SuperMap.Plot.PlottingUtil.distance(h,a)/o;this.scaleValues[2]=c;var y=SuperMap.Plot.PlottingUtil.distance(h,l)/o;this.scaleValues[4]=y}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1019=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol1018=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.MAX_ARRAY_SIZE=128,i.sv1_DefaultAtLenDivAbLen=0,i.sv2_DefaultAjWidthDivAtLen=.148,i.sv3_DefaultAeWidthDivAtLen=.4,i.sv4_DefaultAeLenDivAtLen=.312,i.sv_AtScaleParameter=1.5,i.sv_AtLenDivAtWidth=1.35,i.sv_AtWidthDivAwWidth=.5,i.sv_defaultAwLenDivAbLen=.15,0===i.scaleValues.length&&(i.scaleValues.push(i.sv1_DefaultAtLenDivAbLen),i.scaleValues.push(i.sv2_DefaultAjWidthDivAtLen),i.scaleValues.push(i.sv3_DefaultAeWidthDivAtLen),i.scaleValues.push(i.sv4_DefaultAeLenDivAtLen)),i.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1018",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),this.applyUse()}},{key:"applyUse",value:function(){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<3)){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),i=this.arrowMeshs(e),o=SuperMap.Plot.PlottingUtil.clonePoints(i.shapePts);(o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).push(o[0]);var n=SuperMap.Plot.PlottingUtil.clearSamePts(i.leftBodyPts),l=SuperMap.Plot.PlottingUtil.clearSamePts(i.rightBodyPts),a=SuperMap.Plot.PlottingUtil.clearSamePts(i.arrowHeadPts);if(0!=i.shapePts.length){var s=SuperMap.Plot.PlottingUtil.polylineDistance(n),r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*s,n),u=[],p=[],h=[];if(r.bfind)for(var c=0;c<=r.index;c++)u.push(n[c]);var y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.45*s,n),f=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.8*s,n);if(y.bfind&&f.bfind)for(var S=y.index;S<=f.index;S++)p.push(n[S]);var g=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.85*s,n);if(g.bfind)for(var P=g.index;P<n.length;P++)h.push(n[P]);var d=SuperMap.Plot.PlottingUtil.polylineDistance(l),m=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.15*d,l),b=[],L=[],M=[];if(m.bfind)for(var v=0;v<=m.index;v++)b.push(l[v]);var T=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.2*d,l),A=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.55*d,l);if(T.bfind&&A.bfind)for(var _=T.index;_<=A.index;_++)L.push(l[_]);var O=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.6*d,l);if(O.bfind)for(var x=O.index;x<l.length;x++)M.push(l[x]);var w=SuperMap.Plot.PlottingUtil.clonePoints(a);w.splice(0,0,n[n.length-1]),w.push(l[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,L,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w,{surroundLineFlag:!1,lineTypeLimit:!0});var I=this.updateScalePoints(e);if(this.scalePoints=[],3!=I.length)I=[];else for(var D=0;D<I.length;D++)I[D].isScalePoint=!0,I[D].tag=D,this.scalePoints.push(I[D]);this.finish()}else this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var i=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);i=SuperMap.Plot.PlottingUtil.clearSamePts(i),this.scaleValues.length<4&&(this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen));var o=i.length;if(o<=2)return;var n,l,a,s,r=this.operateCtrlPts(i);o=r.length,o--;var u=this.calcScaleValueCount(i.length);if(this.scaleValues.length<u){var p=this.calcDefaultScaleValues(o);n=p[0],l=p[1],a=p[2],s=p[3]}else n=this.scaleValues[0],l=this.scaleValues[1],a=this.scaleValues[2],s=this.scaleValues[3];for(var h=SuperMap.Plot.PlottingUtil.polylineDistance(i),c=[],y=0;y<this.scalePoints.length;y++)c.push(this.scalePoints[y].clone());if(0==c.length)return;c[t]=e.clone();var f,S,g=o-1;f=o<=3?new SuperMap.Geometry.Point((r[0].x+r[1].x)/2,(r[0].y+r[1].y)/2):r[g-1].clone();var P,d,m,b,L,M,v=new SuperMap.Geometry.Point(0,0),T=new SuperMap.Geometry.Point(0,0),A=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,f,r[g],r[g+1],T,A),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,r[o],r[o-1],A,v),S=v.clone();var _=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(r[o],S,c[2]);P=_.dLen1,_.dLen2,0==P&&(P=.1),d=P,n=(P/=s+1)/h,1==t?(b=(_=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(r[o],S,c[1])).dLen1,a=(L=_.dLen2)/P,s=(b-P)/P):0==t?(P=(_=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(r[o],S,c[0])).dLen1,l=(m=_.dLen2)/P,(M=SuperMap.Plot.PlottingUtil.distance(r[o],r[o-1]))<2*P&&(P=.5*M),b=(_=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(r[o],S,c[1])).dLen1,a=(L=_.dLen2)/P,(s=(d-P)/P)<.1&&(a=L/(P=d/(1+(s=.1))),l=m/P),n=P/h):2==t&&(n=P/h),m=P*l,(M=SuperMap.Plot.PlottingUtil.distance(r[o],r[o-1]))<2*P&&(m=(P=.5*M)*l,n=P/h),this.scaleValues[0]=n,this.scaleValues[1]=l,this.scaleValues[2]=a,this.scaleValues[3]=s}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],i=[],o=[],n=[],l=SuperMap.Plot.PlottingUtil.clonePoints(t),a=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(l,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),s=a.arrowTouLen,r=a.leftBodyPts,u=a.rightBodyPts;if(!SuperMap.Plot.PlottingUtil.equalFuzzy(s,0)){var p=[];p.push(r[r.length-1]),p.push(u[u.length-1]);var h=[];h.push(this.scaleValues[2]),h.push(this.scaleValues[3]),h.push(0),h.push(0);for(var c=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(l,p,h,s,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),y=0;y<r.length;y++)e.push(r[y]),i.push(r[y]);for(var f=0;f<c.length;f++)e.push(c[f]),n.push(c[f]);for(var S=u.length-1;S>=0;S--)e.push(u[S]),o.push(u[S])}return{shapePts:e,leftBodyPts:i,rightBodyPts:o,arrowHeadPts:n}}},{key:"updateScalePoints",value:function(t){var e=t.length,i=[];if(!(e<3)){var o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!SuperMap.Plot.PlottingUtil.equalFuzzy(o,0)){var n=this.operateCtrlPts(t);e=n.length,e--;for(var l=[],a=0;a<this.scaleValues.length;a++)l.push(this.scaleValues[a]);var s=this.genArrowBodyPts(o,n,l),r=s.ArrowBodyCenterPts,u=this.genAtPts(e,r,l,s.ArrowTouLen),p=this.calc3rdScalePt(e,r,l,s.ArrowTouLen);return i.push(new SuperMap.Geometry.Point(s.LeftBodyPtsTemp[e].x,s.LeftBodyPtsTemp[e].y)),i.push(new SuperMap.Geometry.Point(u[2].x,u[2].y)),i.push(new SuperMap.Geometry.Point(p.x,p.y)),i}}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3===e.length){var i=((e[0].x+e[1].x)/2+e[2].x)/2,o=((e[0].y+e[1].y)/2+e[2].y)/2,n=new SuperMap.Geometry.Point(i,o),l=e[2];e[2]=n,e.push(l)}return e}},{key:"genArrowBodyPts",value:function(t,e,i){var o,n,l,a=[],s=[],r=[],u=[],p=[],h=[],c=e.length;if(c--,i.length<this.calcScaleValueCount(c)){var y=this.calcDefaultScaleValues(c);n=y[0],l=y[1]}else n=i[0],l=i[1];var f=SuperMap.Plot.PlottingUtil.clonePoints(e),S=(f[0].x+f[1].x)/2,g=(f[0].y+f[1].y)/2,P=Math.abs(S-f[2].x),d=Math.abs(g-f[2].y),m=0;if(P>0&&d>0){var b=1/(S-f[2].x),L=-1/(g-f[2].y),M=1*f[2].y/(g-f[2].y)-1*f[2].x/(S-f[2].x);m=Math.abs(b*f[0].x+L*f[0].y+M)/Math.sqrt(b*b+L*L)}else d<=1e-4?m=Math.abs(g-f[1].y):P<=1e-4&&(m=Math.abs(S-f[1].x));var v=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(m,f[2],new SuperMap.Geometry.Point(S,g)),T=SuperMap.Plot.PlottingUtil.pointIsRightToLine(f[1],f[2],f[0]);T?(a[1]=f[1],s[1]=f[0]):(a[1]=f[0],s[1]=f[1]),f[1]=new SuperMap.Geometry.Point((f[0].x+f[1].x)/2,(f[0].y+f[1].y)/2);var A=Math.sqrt((v.pntLeft.x-v.pntRight.x)*(v.pntLeft.x-v.pntRight.x)+(v.pntLeft.y-v.pntRight.y)*(v.pntLeft.y-v.pntRight.y))*this.sv_AtWidthDivAwWidth,_=(o=A*this.sv_AtLenDivAtWidth)*l;SuperMap.Plot.PlottingUtil.equalFuzzy(n,0)||(_=(o=t*n)*l);var O,x,w=SuperMap.Plot.PlottingUtil.distance(f[c],f[c-1]),I=2*o;w<I&&(_=(o=w/2)*l),f.push(f[c].clone()),O=0,x=0;var D=0,E=[];for(D=2;D<=c;D++)O+=SuperMap.Plot.PlottingUtil.distance(f[D],f[D-1]);for(O-=o,D=2;D<=c-1;D++)x+=SuperMap.Plot.PlottingUtil.distance(f[D],f[D-1]),E[D]=_+(A-_)*Math.pow((O-x)/O,this.sv_AtScaleParameter);E[c]=_;var C,R,N=new SuperMap.Geometry.Point(0,0),U=new SuperMap.Geometry.Point(0,0),G=new SuperMap.Geometry.Point(0,0);for(D=2;D<=c-1;D++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,f[D-1],f[D],f[D+1],U,G),D==c-1&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,f[c],f[c-1],G,N),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(E[D],U,f[D]),(T=SuperMap.Plot.PlottingUtil.pointIsRightToLine(G,U,C.pntRight))?(a[D]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y),s[D]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y)):(a[D]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),s[D]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y));for(Math.sqrt(1*(f[c].x-N.x)*(f[c].x-N.x)+1*(f[c].y-N.y)*(f[c].y-N.y))>0&&(f[c]=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(o,f[c],N)),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(_,f[c+1],f[c]),(T=SuperMap.Plot.PlottingUtil.pointIsRightToLine(f[c],f[c+1],C.pntLeft))?(s[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),a[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y)):(s[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y),a[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y)),D=2;D<c;D++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,a[D-1],a[D],a[D+1],U,G),r[D]=new SuperMap.Geometry.Point(U.x,U.y),u[D]=new SuperMap.Geometry.Point(G.x,G.y),SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,s[D-1],s[D],s[D+1],U,G),p[D]=new SuperMap.Geometry.Point(U.x,U.y),h[D]=new SuperMap.Geometry.Point(G.x,G.y),2==D&&(SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,a[1],a[2],r[2],N),u[D]=new SuperMap.Geometry.Point(N.x,N.y),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,s[1],s[2],p[2],N),h[D]=new SuperMap.Geometry.Point(N.x,N.y)),D==c-1&&(I=(w=SuperMap.Plot.PlottingUtil.distance(a[c],a[c-1]))/3,(R=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(I,f[c],f[c+1])).x+=a[c].x-f[c].x,R.y+=a[c].y-f[c].y,I=(w=A-_)*Math.pow(I/O,this.sv_AtScaleParameter),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I,a[c],R),r[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),I=(w=SuperMap.Plot.PlottingUtil.distance(s[c],s[c-1]))/3,(R=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(I,f[c],f[c+1])).x+=s[c].x-f[c].x,R.y+=s[c].y-f[c].y,I=(w=A-_)*Math.pow(I/O,this.sv_AtScaleParameter),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I,s[c],R),p[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y));return{ArrowBodyCenterPts:SuperMap.Plot.PlottingUtil.clonePoints(f),LeftBodyPtsTemp:a,RightBodyPtsTemp:s,LeftBodyPtsLeftCtrlPts:r,LeftBodyPtsRightCtrlPts:u,RightBodyPtsLeftCtrlPts:p,RightBodyPtsRightCtrlPts:h,ArrowTouLen:o}}},{key:"calcScaleValueCount",value:function(){return 4}},{key:"calcDefaultScaleValues",value:function(){var t=[];return t.push(this.sv1_DefaultAtLenDivAbLen),t.push(this.sv2_DefaultAjWidthDivAtLen),t.push(this.sv3_DefaultAeWidthDivAtLen),t.push(this.sv4_DefaultAeLenDivAtLen),t}},{key:"genAtPts",value:function(t,e,i,o){var n=i[2],l=[],a=o*i[3],s=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(a,e[t],e[t+1]);a=o*n;var r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,e[t+1],s);return l.push(new SuperMap.Geometry.Point(r.pntLeft.x,r.pntLeft.y)),l.push(e[t+1]),l.push(new SuperMap.Geometry.Point(r.pntRight.x,r.pntRight.y)),l}},{key:"calc3rdScalePt",value:function(t,e,i,o){var n=o*i[3];return SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(n,e[t],e[t+1])}}]),e}();SuperMap.Plot.AlgoSymbol1018=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol1017=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&(i.scaleValues.push(.1),i.scaleValues.push(.2),i.scaleValues.push(0),i.scaleValues.push(.3),i.scaleValues.push(.3)),i.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1017",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=this.minEditPts){this.scalePoints=[];var e=SuperMap.Plot.PlottingUtil.clonePoints(t);this.isEdit||(this.scaleValues[0]=1.5*this.getSubSymbolScaleValue());var i=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(e,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL),o=i.arrowTouLen,n=i.leftBodyPts,l=i.rightBodyPts,a=[];a.push(n[n.length-1]),a.push(l[l.length-1]);var s=[];s.push(this.scaleValues[3]),s.push(this.scaleValues[4]),s.push(this.scaleValues[0]),s.push(this.scaleValues[1]);var r=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(e,a,s,o,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),u=[];u=(u=u.concat(n)).concat(r);for(var p=l.length-1;p>=0;p--)u.push(l[p]);u.push(u[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,u,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1});for(var h=SuperMap.Plot.PlottingUtil.clonePoints(n),c=[],y=l.length-1;y>=0;y--)c.push(l[y]);c=c.concat(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var f=SuperMap.Plot.PlottingUtil.clonePoints(r);f.push(l[l.length-1]),f.splice(0,0,n[n.length-1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f,{lineTypeLimit:!0});var S=new SuperMap.Geometry.Point((a[0].x+a[1].x)/2,(a[0].y+a[1].y)/2),g=new SuperMap.Geometry.Point(S.x,S.y);g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g);var P=new SuperMap.Geometry.Point(n[n.length-1].x,n[n.length-1].y);P.isScalePoint=!0,P.tag=1,this.scalePoints.push(P);var d=new SuperMap.Geometry.Point(r[0].x,r[0].y);d.isScalePoint=!0,d.tag=2,this.scalePoints.push(d),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var i=new SuperMap.Geometry.Point(this.scalePoints[0].x,this.scalePoints[0].y),o=new SuperMap.Geometry.Point(this.scalePoints[1].x,this.scalePoints[1].y),n=new SuperMap.Geometry.Point(this.scalePoints[2].x,this.scalePoints[2].y),l=this.scaleValues[0],a=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);a=SuperMap.Plot.PlottingUtil.clearSamePts(a);var s=SuperMap.Plot.PlottingUtil.polylineDistance(a),r=s*l;if(0==t){var u=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,a[a.length-2],a[a.length-1]),p=u.projectPoint;if(u.isOnline){var h=SuperMap.Plot.PlottingUtil.distance(p,a[a.length-1]);this.scaleValues[0]=h/s}}else if(1==t){var c=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,o,n).projectPoint,y=SuperMap.Plot.PlottingUtil.distance(c,i);this.scaleValues[1]=y/r}else if(2==t){var f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,a[1],n).projectPoint,S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(f,i,a[1]),g=S.projectPoint,P=SuperMap.Plot.PlottingUtil.distance(g,i);!1===S.isOnline&&(this.scaleValues[4]=P/r)}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1017=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol1016=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&i.scaleValues.push(.1),i.arrowHeadType=t.arrowHeadType?t.arrowHeadType:0,i.arrowBodyType=t.arrowBodyType?t.arrowBodyType:0,i.arrowTailType=t.arrowTailType?t.arrowTailType:0,i.CLASS_NAME="SuperMap.Plot.AlgoSymbol1016",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fillStyle:0,lineTypeLimit:!0};this.scaleValues[0]=this.getSubSymbolScaleValue();var i,o=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],n=2*Math.sqrt(o*o/3)/1.4,l=Math.sqrt(o*o/3),a=!1;this.arrowBodyType===SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL?i=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,o,this.arrowBodyType,a):this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE||this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID?(a=!0,i=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,o,this.arrowBodyType,a)):this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE?i=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,o,this.arrowBodyType,a):this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW?(a=!0,i=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,n,this.arrowBodyType,a)):this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL?(a=!0,i=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,l,this.arrowBodyType,a)):i=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,0,this.arrowBodyType,a);var s=[];this.arrowBodyType===SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL?(s.push(t[t.length-1]),s.push(t[t.length-2])):a?(s.push(t[t.length-1]),s.push(i[i.length-1])):(s.push(i[i.length-1]),s.push(i[i.length-2]));var r,u=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(s,o,this.arrowHeadType);if(i.length>1)if(this.arrowBodyType!==SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i);else for(var p=0,h=i.length-1;p<h;p+=2){var c=SuperMap.Plot.PlottingUtil.distance(i[p+1],i[p]),y=180*SuperMap.Plot.PlottingUtil.radian(i[p+1],i[p])/Math.PI,f=SuperMap.Plot.PlottingUtil.circlePoint(i[p+1],.3*c,.3*c,y+30),S=SuperMap.Plot.PlottingUtil.circlePoint(i[p+1],.3*c,.3*c,y+330),g=SuperMap.Plot.PlottingUtil.circlePoint(i[p],.3*c,.3*c,y+30),P=SuperMap.Plot.PlottingUtil.circlePoint(i[p],.3*c,.3*c,y+330),d=[];d.push(f,i[p+1],S,P,i[p],g),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,d,e)}r=this.arrowBodyType===SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER?SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine([i[0],i[1]],o,this.arrowTailType):SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine([t[0],t[1]],o,this.arrowTailType);var m=SuperMap.Plot.SymbolType.POLYLINESYMBOL;this.arrowHeadType!==SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL&&this.arrowHeadType!==SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID&&this.arrowHeadType!==SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE&&this.arrowHeadType!==SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW||(m=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL),u.length>1&&this.addCell(m,u,e),r.length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r)}}}]),e}();SuperMap.Plot.AlgoSymbol1016=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol1015=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.subSymbolDefaultPixelSize=15,i.CLASS_NAME="SuperMap.Plot.AlgoSymbol1015",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1009),e}();SuperMap.Plot.AlgoSymbol1015=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol1014=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.subSymbolDefaultPixelSize=15,i.CLASS_NAME="SuperMap.Plot.AlgoSymbol1014",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1008),e}();SuperMap.Plot.AlgoSymbol1014=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol1013=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.subSymbolDefaultPixelSize=15,i.CLASS_NAME="SuperMap.Plot.AlgoSymbol1013",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1007),e}();SuperMap.Plot.AlgoSymbol1013=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol1012=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.subSymbolDefaultPixelSize=15,i.CLASS_NAME="SuperMap.Plot.AlgoSymbol1012",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1005),e}();SuperMap.Plot.AlgoSymbol1012=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol1011=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.sv1_DefaultAtLenDivAbLen=0,i.sv2_DefaultAjWidthDivAtLen=.148,i.sv3_DefaultAeWidthDivAtLen=.4,i.sv4_DefaultAeLenDivAtLen=.312,i.sv_arrowTailWidth=.05,5!==i.scaleValues.length&&(i.scaleValues=[],i.scaleValues.push(i.sv1_DefaultAtLenDivAbLen),i.scaleValues.push(i.sv2_DefaultAjWidthDivAtLen),i.scaleValues.push(i.sv3_DefaultAeWidthDivAtLen),i.scaleValues.push(i.sv4_DefaultAeLenDivAtLen),i.scaleValues.push(i.sv_arrowTailWidth)),i.CLASS_NAME="SuperMap.Plot.AlgoSymbol1011",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<2)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(0!==e){var i=e*this.scaleValues[4],o=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[1],t[0]);void 0!==t[0].z&&(o.pntLeft.z=t[0].z,o.pntRight.z=t[0].z),this.controlPoints=[],this.controlPoints.push(o.pntLeft),this.controlPoints.push(o.pntRight);for(var n=1;n<t.length;n++)this.controlPoints.push(t[n].clone());for(var l=[],a=0;a<this.scaleValues.length;a++)l.push(this.scaleValues[a]);this.scaleValues=[];for(var s=0;s<l.length-1;s++)this.scaleValues.push(l[s]);SuperMap.Plot.AlgoSymbol1004.prototype.calculateParts.apply(this,arguments);var r=o.pntRight.clone();r.isScalePoint=!0,r.tag=3,this.addScalePoint(r),this.controlPoints=SuperMap.Plot.PlottingUtil.clonePoints(t),this.scaleValues=[];for(var u=0;u<l.length;u++)this.scaleValues.push(l[u])}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var i=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(i.length<2)return;this.scaleValues.length<5&&(this.scaleValues=[],this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen),this.scaleValues.push(this.sv_arrowTailWidth));var o,n=i[0].clone(),l=SuperMap.Plot.PlottingUtil.polylineDistance(i),a=l*this.scaleValues[4],s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,i[1],i[0]);(i=[]).push(s.pntLeft),i.push(s.pntRight);for(var r=1;r<this.controlPoints.length;r++)i.push(this.controlPoints[r].clone());var u,p,h,c,y,f=i.length,S=this.operateCtrlPts(i);f=S.length,f--;var g=this.calcScaleValueCount(i.length);if(g++,this.scaleValues.length<g){var P=this.calcDefaultScaleValues(f);u=P[0],p=P[1],h=P[2],c=P[3],y=this.sv_arrowTailWidth}else u=this.scaleValues[0],p=this.scaleValues[1],h=this.scaleValues[2],c=this.scaleValues[3],y=this.scaleValues[4];o=SuperMap.Plot.PlottingUtil.polylineDistance(i);for(var d=[],m=0;m<this.scalePoints.length;m++)d.push(this.scalePoints[m].clone());if(0===d.length)return;d[t]=e.clone();var b,L,M=f-1;b=f<=3?new SuperMap.Geometry.Point((S[0].x+S[1].x)/2,(S[0].y+S[1].y)/2):S[M-1].clone();var v,T,A,_,O,x,w=new SuperMap.Geometry.Point(0,0),I=new SuperMap.Geometry.Point(0,0),D=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,b,S[M],S[M+1],I,D),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,S[f],S[f-1],D,w),L=w.clone();var E=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(S[f],L,d[2]);if(v=E.dLen1,E.dLen2,0===v&&(v=.1),T=v,u=(v/=c+1)/o,1===t)_=(E=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(S[f],L,d[1])).dLen1,h=(O=E.dLen2)/v,c=(_-v)/v;else if(0===t)v=(E=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(S[f],L,d[0])).dLen1,p=(A=E.dLen2)/v,(x=SuperMap.Plot.PlottingUtil.distance(S[f],S[f-1]))<2*v&&(v=.5*x),_=(E=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(S[f],L,d[1])).dLen1,h=(O=E.dLen2)/v,(c=(T-v)/v)<.1&&(h=O/(v=T/(1+(c=.1))),p=A/v),u=v/o;else if(2===t)u=v/o;else{y=SuperMap.Plot.PlottingUtil.distance(e,n)/l}A=v*p,(x=SuperMap.Plot.PlottingUtil.distance(S[f],S[f-1]))<2*v&&(A=(v=.5*x)*p,u=v/o),this.scaleValues[0]=u,this.scaleValues[1]=p,this.scaleValues[2]=h,this.scaleValues[3]=c,this.scaleValues[4]=y}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],i=[],o=[],n=[],l=SuperMap.Plot.PlottingUtil.clonePoints(t),a=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(l,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),s=a.arrowTouLen,r=a.leftBodyPts,u=a.rightBodyPts;if(!SuperMap.Plot.PlottingUtil.equalFuzzy(s,0)){var p=[];p.push(r[r.length-1]),p.push(u[u.length-1]);var h=[];h.push(this.scaleValues[2]),h.push(this.scaleValues[3]),h.push(0),h.push(0);for(var c=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(l,p,h,s,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),y=0;y<r.length;y++)e.push(r[y]),i.push(r[y]);for(var f=0;f<c.length;f++)e.push(c[f]),n.push(c[f]);for(var S=u.length-1;S>=0;S--)e.push(u[S]),o.push(u[S])}return{shapePts:e,leftBodyPts:i,rightBodyPts:o,arrowHeadPts:n}}},{key:"updateScalePoints",value:function(t){var e=t.length,i=[];if(!(e<3)){var o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!SuperMap.Plot.PlottingUtil.equalFuzzy(o,0)){var n=this.operateCtrlPts(t);e=n.length,e--;for(var l=[],a=0;a<this.scaleValues.length;a++)l.push(this.scaleValues[a]);var s=this.genArrowBodyPts(o,n,l),r=s.ArrowBodyCenterPts,u=this.genAtPts(e,r,l,s.ArrowTouLen),p=this.calc3rdScalePt(e,r,l,s.ArrowTouLen);return i.push(new SuperMap.Geometry.Point(s.LeftBodyPtsTemp[e].x,s.LeftBodyPtsTemp[e].y)),i.push(new SuperMap.Geometry.Point(u[2].x,u[2].y)),i.push(new SuperMap.Geometry.Point(p.x,p.y)),i}}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3===e.length){var i=((e[0].x+e[1].x)/2+e[2].x)/2,o=((e[0].y+e[1].y)/2+e[2].y)/2,n=new SuperMap.Geometry.Point(i,o),l=e[2];e[2]=n,e.push(l)}return e}},{key:"genArrowBodyPts",value:function(t,e,i){var o,n,l,a=[],s=[],r=[],u=[],p=[],h=[],c=e.length;if(c--,i.length<this.calcScaleValueCount(c)){var y=this.calcDefaultScaleValues(c);n=y[0],l=y[1]}else n=i[0],l=i[1];var f=SuperMap.Plot.PlottingUtil.clonePoints(e),S=(f[0].x+f[1].x)/2,g=(f[0].y+f[1].y)/2,P=Math.abs(S-f[2].x),d=Math.abs(g-f[2].y),m=0;if(P>0&&d>0){var b=1/(S-f[2].x),L=-1/(g-f[2].y),M=1*f[2].y/(g-f[2].y)-1*f[2].x/(S-f[2].x);m=Math.abs(b*f[0].x+L*f[0].y+M)/Math.sqrt(b*b+L*L)}else d<=1e-4?m=Math.abs(g-f[1].y):P<=1e-4&&(m=Math.abs(S-f[1].x));var v=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(m,f[2],new SuperMap.Geometry.Point(S,g)),T=SuperMap.Plot.PlottingUtil.pointIsRightToLine(f[1],f[2],f[0]);T?(a[1]=f[1],s[1]=f[0]):(a[1]=f[0],s[1]=f[1]),f[1]=new SuperMap.Geometry.Point((f[0].x+f[1].x)/2,(f[0].y+f[1].y)/2);var A=Math.sqrt((v.pntLeft.x-v.pntRight.x)*(v.pntLeft.x-v.pntRight.x)+(v.pntLeft.y-v.pntRight.y)*(v.pntLeft.y-v.pntRight.y))*this.sv_AtWidthDivAwWidth,_=(o=A*this.sv_AtLenDivAtWidth)*l;SuperMap.Plot.PlottingUtil.equalFuzzy(n,0)||(_=(o=t*n)*l);var O,x,w=SuperMap.Plot.PlottingUtil.distance(f[c],f[c-1]),I=2*o;w<I&&(_=(o=w/2)*l),f.push(f[c].clone()),O=0,x=0;var D=0,E=[];for(D=2;D<=c;D++)O+=SuperMap.Plot.PlottingUtil.distance(f[D],f[D-1]);for(O-=o,D=2;D<=c-1;D++)x+=SuperMap.Plot.PlottingUtil.distance(f[D],f[D-1]),E[D]=_+(A-_)*Math.pow((O-x)/O,this.sv_AtScaleParameter);E[c]=_;var C,R,N=new SuperMap.Geometry.Point(0,0),U=new SuperMap.Geometry.Point(0,0),G=new SuperMap.Geometry.Point(0,0);for(D=2;D<=c-1;D++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,f[D-1],f[D],f[D+1],U,G),D===c-1&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,f[c],f[c-1],G,N),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(E[D],U,f[D]),(T=SuperMap.Plot.PlottingUtil.pointIsRightToLine(G,U,C.pntRight))?(a[D]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y),s[D]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y)):(a[D]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),s[D]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y));for(Math.sqrt(1*(f[c].x-N.x)*(f[c].x-N.x)+1*(f[c].y-N.y)*(f[c].y-N.y))>0&&(f[c]=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(o,f[c],N)),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(_,f[c+1],f[c]),(T=SuperMap.Plot.PlottingUtil.pointIsRightToLine(f[c],f[c+1],C.pntLeft))?(s[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),a[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y)):(s[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y),a[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y)),D=2;D<c;D++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,a[D-1],a[D],a[D+1],U,G),r[D]=new SuperMap.Geometry.Point(U.x,U.y),u[D]=new SuperMap.Geometry.Point(G.x,G.y),SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,s[D-1],s[D],s[D+1],U,G),p[D]=new SuperMap.Geometry.Point(U.x,U.y),h[D]=new SuperMap.Geometry.Point(G.x,G.y),2===D&&(SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,a[1],a[2],r[2],N),u[D]=new SuperMap.Geometry.Point(N.x,N.y),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,s[1],s[2],p[2],N),h[D]=new SuperMap.Geometry.Point(N.x,N.y)),D===c-1&&(I=(w=SuperMap.Plot.PlottingUtil.distance(a[c],a[c-1]))/3,(R=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(I,f[c],f[c+1])).x+=a[c].x-f[c].x,R.y+=a[c].y-f[c].y,I=(w=A-_)*Math.pow(I/O,this.sv_AtScaleParameter),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I,a[c],R),r[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),I=(w=SuperMap.Plot.PlottingUtil.distance(s[c],s[c-1]))/3,(R=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(I,f[c],f[c+1])).x+=s[c].x-f[c].x,R.y+=s[c].y-f[c].y,I=(w=A-_)*Math.pow(I/O,this.sv_AtScaleParameter),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I,s[c],R),p[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y));return{ArrowBodyCenterPts:SuperMap.Plot.PlottingUtil.clonePoints(f),LeftBodyPtsTemp:a,RightBodyPtsTemp:s,LeftBodyPtsLeftCtrlPts:r,LeftBodyPtsRightCtrlPts:u,RightBodyPtsLeftCtrlPts:p,RightBodyPtsRightCtrlPts:h,ArrowTouLen:o}}},{key:"calcScaleValueCount",value:function(){return 4}},{key:"calcDefaultScaleValues",value:function(){var t=[];return t.push(this.sv1_DefaultAtLenDivAbLen),t.push(this.sv2_DefaultAjWidthDivAtLen),t.push(this.sv3_DefaultAeWidthDivAtLen),t.push(this.sv4_DefaultAeLenDivAtLen),t}},{key:"genAtPts",value:function(t,e,i,o){var n=i[2],l=[],a=o*i[3],s=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(a,e[t],e[t+1]);a=o*n;var r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,e[t+1],s);return l.push(new SuperMap.Geometry.Point(r.pntLeft.x,r.pntLeft.y)),l.push(e[t+1]),l.push(new SuperMap.Geometry.Point(r.pntRight.x,r.pntRight.y)),l}},{key:"calc3rdScalePt",value:function(t,e,i,o){var n=o*i[3];return SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(n,e[t],e[t+1])}}]),e}();SuperMap.Plot.AlgoSymbol1011=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol1010=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&(i.scaleValues.push(0),i.scaleValues.push(.148),i.scaleValues.push(.4),i.scaleValues.push(.312),i.scaleValues.push(.2)),i.CLASS_NAME="SuperMap.Plot.AlgoSymbol1010",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=this.arrowMeshs(t);if(SuperMap.Plot.PlottingUtil.clearSamePts(e.shapePts),0!==e.shapePts.length){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.shapePts,{surroundLineFlag:!1}),this.scalePoints=[];for(var i=0;i<e.m_scalePoints.length;i++)this.addScalePoint(e.m_scalePoints[i])}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var i=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);this.scaleValues.length<4&&(this.scaleValues.push(0),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2));var o,n,l,a,s=i.length;if(s<=2)return;this.scaleValues.length<4?(o=0,n=.148,l=.4,a=.312):(o=this.scaleValues[0],n=this.scaleValues[1],l=this.scaleValues[2],a=this.scaleValues[3]);var r=SuperMap.Plot.PlottingUtil.polylineDistance(i),u=this.operateCtrlPts(i);s=u.length,s--;for(var p=[],h=0;h<this.scalePoints.length;h++)p.push(this.scalePoints[h].clone());if(0===p.length)return;if(p[t]=e.clone(),3===t){var c=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(i,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),y=new SuperMap.Geometry.Point(.5*(c.leftBodyPts[0].x+c.rightBodyPts[0].x),.5*(c.leftBodyPts[0].y+c.rightBodyPts[0].y)),f=SuperMap.Plot.PlottingUtil.distance(c.leftBodyPts[0],c.rightBodyPts[0]);this.scaleValues[4]=SuperMap.Plot.PlottingUtil.distance(y,e)/f}else{var S,g,P=s-1;S=s<=3?new SuperMap.Geometry.Point((u[0].x+u[1].x)/2,(u[0].y+u[1].y)/2):u[P-1].clone();var d,m,b,L,M,v,T=new SuperMap.Geometry.Point(0,0),A=new SuperMap.Geometry.Point(0,0),_=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,S,u[P],u[P+1],A,_),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,u[s],u[s-1],_,T),g=T.clone();var O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(u[s],g,p[2]);d=O.dLen1,O.dLen2,0===d&&(d=.1),m=d,o=(d/=a+1)/r,1===t?(L=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(u[s],g,p[1])).dLen1,l=(M=O.dLen2)/d,a=(L-d)/d):0===t?(d=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(u[s],g,p[0])).dLen1,n=(b=O.dLen2)/d,(v=SuperMap.Plot.PlottingUtil.distance(u[s],u[s-1]))<2*d&&(d=.5*v),L=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(u[s],g,p[1])).dLen1,l=(M=O.dLen2)/d,(a=(m-d)/d)<.1&&(l=M/(d=m/(1+(a=.1))),n=b/d),o=d/r):2===t&&(o=d/r),b=d*n,(v=SuperMap.Plot.PlottingUtil.distance(u[s],u[s-1]))<2*d&&(b=(d=.5*v)*n,o=d/r),this.scaleValues[0]=o,this.scaleValues[1]=n,this.scaleValues[2]=l,this.scaleValues[3]=a}}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],i=[],o=[],n=[],l=[],a=[],s=SuperMap.Plot.PlottingUtil.clonePoints(t),r=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(s,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),u=r.arrowTouLen,p=r.leftBodyPts,h=r.rightBodyPts;if(s=r.OpectrlPoints,!SuperMap.Plot.PlottingUtil.equalFuzzy(u,0)){var c=[];c.push(p[p.length-1]),c.push(h[h.length-1]);var y=[];y.push(this.scaleValues[2]),y.push(this.scaleValues[3]),y.push(0),y.push(0);var f=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(s,c,y,u,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),S=[];S.push(p[0]),S.push(h[0]);for(var g,P=SuperMap.Plot.ArrowToolkit.generateArrowTailShapePts(t,S,this.scaleValues[4],SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL_POLYBODY),d=0;d<p.length;d++)e.push(p[d]),i.push(p[d]);for(var m=0;m<f.length;m++)e.push(f[m]),n.push(f[m]);for(var b=h.length-1;b>=0;b--)e.push(h[b]),o.push(h[b]);for(var L=1;L<P.length;L++)e.push(P[L]),l.push(P[L]);var M=s.length;M-=2;var v=u*this.scaleValues[3];g=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(v,s[M],s[M+1]);var T=new SuperMap.Geometry.Point(i[i.length-1].x,i[i.length-1].y);T.isScalePoint=!0,T.tag=0,a.push(T),(T=new SuperMap.Geometry.Point(n[0].x,n[0].y)).isScalePoint=!0,T.tag=1,a.push(T),(T=new SuperMap.Geometry.Point(g.x,g.y)).isScalePoint=!0,T.tag=2,a.push(T),(T=new SuperMap.Geometry.Point(P[1].x,P[1].y)).isScalePoint=!0,T.tag=3,a.push(T)}return{shapePts:e,leftBodyPts:i,rightBodyPts:o,arrowHeadPts:n,arrowTailPts:l,m_scalePoints:a}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3===e.length){var i=((e[0].x+e[1].x)/2+e[2].x)/2,o=((e[0].y+e[1].y)/2+e[2].y)/2,n=new SuperMap.Geometry.Point(i,o),l=e[2];e[2]=n,e.push(l)}return e}}]),e}();SuperMap.Plot.AlgoSymbol1010=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol1009=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&i.scaleValues.push(.1),i.CLASS_NAME="SuperMap.Plot.AlgoSymbol1009",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=!1;void 0!==t[0].z&&(e=!0),this.scaleValues[0]=this.getSubSymbolScaleValue();var i=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,0,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE,!1),n=[];n.push(o[o.length-1]),n.push(o[o.length-2]);var l=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(n,i,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE),a=[];a.push(o[0]),a.push(o[1]);var s=SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine(a,i,SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL);if(e){for(var r=t.length,u=[],p=[],h=[],c=0;c<r;++c)u.push({x:t[c].x,y:t[c].y,z:t[c].z});var y,f={x:t[r-1].x,y:t[r-1].y,z:t[r-1].z},S={x:t[r-2].x,y:t[r-2].y,z:t[r-2].z};y=this.ComputeZValue(o[r-1],f,S),u.push({x:o[r-1].x,y:o[r-1].y,z:y});for(var g=0;g<l.length;++g)y=this.ComputeZValue(l[g],f,S),p.push({x:l[g].x,y:l[g].y,z:y});for(var P={x:t[1].x,y:t[1].y,z:t[1].z},d={x:t[0].x,y:t[0].y,z:t[0].z},m=0;m<s.length;++m)y=this.ComputeZValue(s[m],P,d),h.push({x:s[m].x,y:s[m].y,z:y});this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p),0!==h.length&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h)}else{this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l),0!==s.length&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s)}}}}]),e}();SuperMap.Plot.AlgoSymbol1009=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol1008=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&i.scaleValues.push(.1),i.CLASS_NAME="SuperMap.Plot.AlgoSymbol1008",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues[0]=this.getSubSymbolScaleValue();var e=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],i=Math.sqrt(e*e/3),o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,i,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER,!0),n=[];n.push(t[t.length-1]),n.push(o[o.length-1]);var l=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(n,e,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL);o.push(t[t.length-1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);l.length>0&&this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,{surroundLineFlag:!1,fillLimit:!0,fill:!0})}}}]),e}();SuperMap.Plot.AlgoSymbol1008=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol1007=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&i.scaleValues.push(.1),i.CLASS_NAME="SuperMap.Plot.AlgoSymbol1007",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=!1;void 0!==t[0].z&&(e=!0),this.scaleValues[0]=this.getSubSymbolScaleValue();var i=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,i,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE,!0),n=[];n.push(t[t.length-1]),n.push(o[o.length-1]);var l=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(n,i,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID);if(e){for(var a=t.length,s=[],r=[],u=0;u<a;++u)s.push({x:o[u].x,y:o[u].y,z:t[u].z});var p={x:t[a-1].x,y:t[a-1].y,z:t[a-1].z},h={x:t[a-2].x,y:t[a-2].y,z:t[a-2].z},c=this.ComputeZValue(o[a-1],p,h);s[a-1].z=c;for(var y=0;y<l.length;++y){var f=this.ComputeZValue(l[y],p,h);r.push({x:l[y].x,y:l[y].y,z:f})}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);r.length>0&&this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,r,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}else{this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);l.length>0&&this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}}}}]),e}();SuperMap.Plot.AlgoSymbol1007=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol1006=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.QIANJI_RATE1=9,i.QIANJI_RATE2=20,i.QIANJI_RATE4=5,i.QIANJI_RATE3=1/3,i.QIANJI_TAIL_RATE1=8,i.QIANJI_TAIL_RATE2=3,i.QIANJI_TAIL_RATE3=.6,i.SV1_Default=.25,i.SV1_MinValue=0,i.SV1_MaxValue=.5,i.DEFAULT_ARROW_TAIL_POS=.4,i.SCALE_VALUE_COUNT=1,i.MIN_LEN_LeftToRightCenter=1e-7,i.SCALE_AT=1/3,i.SCALE_ATAJ=1/7,i.SCALE_ATAE=1/3,i.SCALE_AW=2/3,i.SCALE_ATAJctrlDefSide=.8,i.SCALE_ATAJctrlSameSide=2/3,i.SCALE_MM_LEFT=.25,i.SCALE_MM_RIGHT=.75,i.BEZIER_K1=1/3,i.QIANJI_OPERATE_RATE1=1,0===i.scaleValues.length&&i.scaleValues.push(i.SV1_Default),i.m_dMaxDis=0,i.m_bIsAnimation=!1,i.CLASS_NAME="SuperMap.Plot.AlgoSymbol1006",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),this.m_scalePoints=[];var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),i=e.length,o=!1;void 0!==e[0].z&&(o=!0);var n=this.arrowMeshs(t);if(o){for(var l=[],a=0;a<i;a++)l.push(e[a]);var s=n.LeftArowLeftBody,r=n.LeftArowHead,u=n.LeftArowRightBody,p=n.RightArowLeftBody,h=n.RightArowHead,c=n.RightArowRightBody;if(0==s.length)return!1;var y=[],f=[],S=[];if(3==l.length)s[0].x==l[0].x&&s[0].y==l[0].y?(f.push(l[0]),f.push(l[2]),S.push(l[1]),S.push(l[2])):(f.push(l[1]),f.push(l[2]),S.push(l[0]),S.push(l[2]));else{if(4!=l.length)return!1;s[0].x==l[0].x&&s[0].y==l[0].y?(f.push(l[0]),S.push(l[1])):(f.push(l[1]),S.push(l[0])),r[1].x==l[2].x&&r[1].y==l[2].y?(f.push(l[2]),S.push(l[3])):(f.push(l[3]),S.push(l[2]))}var g=new SuperMap.Geometry.Point;g=SuperMap.Plot.PlottingUtil.pointProjectToSegment(s[s.length-1],{x:f[0].x,y:f[0].y},{x:f[1].x,y:f[1].y}).projectPoint;var P=this.ComputeZValue(g,f[1],f[0]),d=[];this.ComputeHeight(s,d,f[0].z,P),y=y.concat(d);for(var m=0;m<r.length;m++){g=SuperMap.Plot.PlottingUtil.pointProjectToSegment(r[m],{x:f[0].x,y:f[0].y},{x:f[1].x,y:f[1].y}).projectPoint;var b=this.ComputeZValue(g,f[1],f[0]);y.push({x:r[m].x,y:r[m].y,z:b})}g=SuperMap.Plot.PlottingUtil.pointProjectToSegment(u[0],{x:f[0].x,y:f[0].y},{x:f[1].x,y:f[1].y}).projectPoint,this.ComputeZValue(g,f[1],f[0]),g=SuperMap.Plot.PlottingUtil.pointProjectToSegment(u[u.length-1],{x:f[0].x,y:f[0].y},{x:f[1].x,y:f[1].y}).projectPoint;var L=this.ComputeZValue(g,f[1],f[0]);g=SuperMap.Plot.PlottingUtil.pointProjectToSegment(p[0],{x:S[0].x,y:S[0].y},{x:S[1].x,y:S[1].y}).projectPoint;var M=(this.ComputeZValue(g,S[1],S[0])+L)/2,v=[];this.ComputeHeight(u,v,P,M),y=y.concat(v),g=SuperMap.Plot.PlottingUtil.pointProjectToSegment(p[p.length-1],{x:S[0].x,y:S[0].y},{x:S[1].x,y:S[1].y}).projectPoint;var T=this.ComputeZValue(g,S[1],S[0]),A=[];this.ComputeHeight(p,A,M,T),y=y.concat(A);for(var _=0;_<h.length;_++){g=SuperMap.Plot.PlottingUtil.pointProjectToSegment(h[_],{x:S[0].x,y:S[0].y},{x:S[1].x,y:S[1].y}).projectPoint;var O=this.ComputeZValue(g,S[1],S[0]);y.push({x:h[_].x,y:h[_].y,z:O})}g=SuperMap.Plot.PlottingUtil.pointProjectToSegment(c[0],{x:S[0].x,y:S[0].y},{x:S[1].x,y:S[1].y}).projectPoint;var x=this.ComputeZValue(g,S[1],S[0]),w=[];this.ComputeHeight(c,w,x,S[0].z),(y=y.concat(w)).length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y,{surroundLineFlag:!1}),this.m_scalePoints.length>0&&(this.m_scalePoints[0]={x:this.m_scalePoints[0].x,y:this.m_scalePoints[0].y,z:M});for(var I=0;I<this.m_scalePoints.length;I++)this.m_scalePoints[I].isScalePoint=!0,this.m_scalePoints[I].tag=I,this.addScalePoint(this.m_scalePoints[I]);return!0}var D=n.shapePts;D.length>0&&(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,D,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,D,{surroundLineFlag:!1})),this.scalePoints=[];for(var E=0;E<this.m_scalePoints.length;E++)this.m_scalePoints[E].isScalePoint=!0,this.m_scalePoints[E].tag=E,this.addScalePoint(this.m_scalePoints[E])}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var i,o=SuperMap.Plot.PlottingUtil.operateControlPoints(this.controlPoints),n=new SuperMap.Geometry.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),l=new SuperMap.Geometry.Point((o[2].x+o[3].x)/2,(o[2].y+o[3].y)/2),a=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,n,l);if(a.isOnline){var s=SuperMap.Plot.PlottingUtil.distance(a.projectPoint,n),r=SuperMap.Plot.PlottingUtil.distance(n,l);(i=SuperMap.Plot.PlottingUtil.equalFuzzy(s,0)?this.SV1_MinValue:s/r)>this.SV1_MaxValue&&(i=this.SV1_MaxValue)}else i=SuperMap.Plot.PlottingUtil.distance(a.projectPoint,n)<SuperMap.Plot.PlottingUtil.distance(a.projectPoint,l)?this.SV1_MinValue:this.SV1_MaxValue;this.scaleValues=[],this.scaleValues.push(i)}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=new SuperMap.Plot.Path2D,i=[];this.m_bIsAnimation&&4==t.length?i=SuperMap.Plot.PlottingUtil.clonePoints(t):(i=SuperMap.Plot.PlottingUtil.operateControlPoints(t),void 0!==t[0].z&&(i[i.length-1].z=i[i.length-2].z));var o=this.scaleValues[0],n=SuperMap.Plot.PlottingUtil.distance(i[0],i[3]),l=SuperMap.Plot.PlottingUtil.distance(i[1],i[2]),a=i[1].clone(),s=.5*(i[0].x+i[3].x),r=.5*(i[0].y+i[3].y),u=new SuperMap.Geometry.Point(s,r),p=.5*(i[1].x+i[2].x),h=.5*(i[1].y+i[2].y),c=new SuperMap.Geometry.Point(p,h),y=SuperMap.Plot.PlottingUtil.distance(u,c);y<this.MIN_LEN_LeftToRightCenter&&(y=this.MIN_LEN_LeftToRightCenter),u.x=s+n*(s-p)/(y*this.QIANJI_RATE1),u.y=r+n*(r-h)/(y*this.QIANJI_RATE1),c.x=p+l*(p-s)/(y*this.QIANJI_RATE1),c.y=h+l*(h-r)/(y*this.QIANJI_RATE1);var f=new SuperMap.Geometry.Point(0,0),S=new SuperMap.Geometry.Point(0,0);f.x=s+n*(s-p)/(y*this.QIANJI_RATE2),f.y=r+n*(r-h)/(y*this.QIANJI_RATE2),S.x=p+l*(p-s)/(y*this.QIANJI_RATE2),S.y=h+l*(h-r)/(y*this.QIANJI_RATE2);var g=new SuperMap.Geometry.Point((i[0].x+i[1].x)/2,(i[0].y+i[1].y)/2),P=new SuperMap.Geometry.Point((i[2].x+i[3].x)/2,(i[2].y+i[3].y)/2),d=i[3].x-(i[3].x-u.x)*this.SCALE_AT,m=i[3].y-(i[3].y-u.y)*this.SCALE_AT,b=i[2].x-(i[2].x-c.x)*this.SCALE_AT,L=i[2].y-(i[2].y-c.y)*this.SCALE_AT,M=new SuperMap.Geometry.Point(0,0),v=new SuperMap.Geometry.Point(0,0),T=new SuperMap.Geometry.Point(0,0),A=new SuperMap.Geometry.Point(0,0);v.x=d-(m-i[3].y)*this.SCALE_ATAJ,v.y=m+(d-i[3].x)*this.SCALE_ATAJ,M.x=d+(m-i[3].y)*this.SCALE_ATAJ,M.y=m-(d-i[3].x)*this.SCALE_ATAJ,A.x=b-(L-i[2].y)*this.SCALE_ATAJ,A.y=L+(b-i[2].x)*this.SCALE_ATAJ,T.x=b+(L-i[2].y)*this.SCALE_ATAJ,T.y=L-(b-i[2].x)*this.SCALE_ATAJ;var _=new SuperMap.Geometry.Point(0,0),O=new SuperMap.Geometry.Point(0,0),x=new SuperMap.Geometry.Point(0,0),w=new SuperMap.Geometry.Point(0,0);_.x=3*M.x-2*d-(i[3].x-d)*this.SCALE_ATAE,_.y=3*M.y-2*m-(i[3].y-m)*this.SCALE_ATAE,O.x=3*v.x-2*d-(i[3].x-d)*this.SCALE_ATAE,O.y=3*v.y-2*m-(i[3].y-m)*this.SCALE_ATAE,x.x=3*T.x-2*b-(i[2].x-b)*this.SCALE_ATAE,x.y=3*T.y-2*L-(i[2].y-L)*this.SCALE_ATAE,w.x=3*A.x-2*b-(i[2].x-b)*this.SCALE_ATAE,w.y=3*A.y-2*L-(i[2].y-L)*this.SCALE_ATAE,u.x=s+n*(s-p)/(y*this.QIANJI_RATE4),u.y=r+n*(r-h)/(y*this.QIANJI_RATE4),c.x=p+l*(p-s)/(y*this.QIANJI_RATE4),c.y=h+l*(h-r)/(y*this.QIANJI_RATE4);var I=new SuperMap.Geometry.Point(0,0);I.x=i[0].x+(u.x-i[0].x)*this.SCALE_AW,I.y=i[0].y+(u.y-i[0].y)*this.SCALE_AW;var D=new SuperMap.Geometry.Point(0,0);D.x=i[1].x+(c.x-i[1].x)*this.SCALE_AW,D.y=i[1].y+(c.y-i[1].y)*this.SCALE_AW;var E=new SuperMap.Geometry.Point(0,0);E.x=M.x+(u.x-M.x)*this.SCALE_ATAJctrlSameSide,E.y=M.y+(u.y-M.y)*this.SCALE_ATAJctrlSameSide;var C=new SuperMap.Geometry.Point(0,0);C.x=A.x+(c.x-A.x)*this.SCALE_ATAJctrlSameSide,C.y=A.y+(c.y-A.y)*this.SCALE_ATAJctrlSameSide;var R=new SuperMap.Geometry.Point(0,0);R.x=v.x+(f.x-v.x)*this.SCALE_ATAJctrlDefSide,R.y=v.y+(f.y-v.y)*this.SCALE_ATAJctrlDefSide;var N=new SuperMap.Geometry.Point(0,0);N.x=T.x+(S.x-T.x)*this.SCALE_ATAJctrlDefSide,N.y=T.y+(S.y-T.y)*this.SCALE_ATAJctrlDefSide;var U=new SuperMap.Geometry.Point(0,0);U.x=g.x+(P.x-g.x)*o,U.y=g.y+(P.y-g.y)*o,this.m_scalePoints.push(new SuperMap.Geometry.Point(U.x,U.y));var G=new SuperMap.Geometry.Point(0,0),B=new SuperMap.Geometry.Point(0,0);G.x=i[0].x+(i[3].x-i[0].x)*o,G.y=i[0].y+(i[3].y-i[0].y)*o,B.x=i[1].x+(i[2].x-i[1].x)*o,B.y=i[1].y+(i[2].y-i[1].y)*o,G.x=G.x+(U.x-G.x)*this.QIANJI_RATE3,G.y=G.y+(U.y-G.y)*this.QIANJI_RATE3,B.x=B.x+(U.x-B.x)*this.QIANJI_RATE3,B.y=B.y+(U.y-B.y)*this.QIANJI_RATE3;var k=[];k.push(i[0].clone()),k.push(I.clone()),k.push(E.clone()),k.push(M.clone()),e.MoveTo(k[0]),e.CurveTo(k[1],k[2],k[3]);var F,z,j=[],Y=[],V=[],W=[],H=[],X=[];for(e.ToSubPathPolygons(X),F=X[0],z=X[0].length,e.LineTo(_),e.LineTo(i[3]),e.LineTo(O),(k=[]).push(v),k.push(R),k.push(G),k.push(U),e.LineTo(k[0]),X=[],e.ToSubPathPolygons(X);z<X[0].length;z++)j.push(X[0][z]);for(z=X[0].length,e.CurveTo(k[1],k[2],k[3]),X=[],e.ToSubPathPolygons(X);z<X[0].length;z++)Y.push(X[0][z]);for(z=X[0].length,(k=[]).push(B),k.push(N),k.push(T),e.CurveTo(k[0],k[1],k[2]),X=[],e.ToSubPathPolygons(X);z<X[0].length;z++)V.push(X[0][z]);for(z=X[0].length,e.LineTo(x),e.LineTo(i[2]),e.LineTo(w),(k=[]).push(A),k.push(C),k.push(D),k.push(a),e.LineTo(k[0]),X=[],e.ToSubPathPolygons(X);z<X[0].length;z++)W.push(X[0][z]);for(z=X[0].length,e.CurveTo(k[1],k[2],k[3]),X=[],e.ToSubPathPolygons(X);z<X[0].length;z++)H.push(X[0][z]);return X=[],e.ToSubPathPolygons(X),{shapePts:X[0],LeftArowLeftBody:F,LeftArowHead:j,LeftArowRightBody:Y,RightArowLeftBody:V,RightArowHead:W,RightArowRightBody:H}}}]),e}();SuperMap.Plot.AlgoSymbol1006=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol1005=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&i.scaleValues.push(.1),i.CLASS_NAME="SuperMap.Plot.AlgoSymbol1005",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues[0]=this.getSubSymbolScaleValue();var e=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],i=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,e,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER,!1),o=[];o.push(i[i.length-1]),o.push(i[i.length-2]);var n=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(o,e,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),n.length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n)}}}]),e}();SuperMap.Plot.AlgoSymbol1005=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol1004=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.MAX_ARRAY_SIZE=128,i.sv1_DefaultAtLenDivAbLen=0,i.sv2_DefaultAjWidthDivAtLen=.148,i.sv3_DefaultAeWidthDivAtLen=.4,i.sv4_DefaultAeLenDivAtLen=.312,i.sv_AtScaleParameter=1.5,i.sv_AtLenDivAtWidth=1.35,i.sv_AtWidthDivAwWidth=.5,i.sv_defaultAwLenDivAbLen=.15,0===i.scaleValues.length&&(i.scaleValues.push(i.sv1_DefaultAtLenDivAbLen),i.scaleValues.push(i.sv2_DefaultAjWidthDivAtLen),i.scaleValues.push(i.sv3_DefaultAeWidthDivAtLen),i.scaleValues.push(i.sv4_DefaultAeLenDivAtLen)),i.CLASS_NAME="SuperMap.Plot.AlgoSymbol1004",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),this.applyUse()}},{key:"applyUse",value:function(){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=this.arrowMeshs(t);SuperMap.Plot.PlottingUtil.clearSamePts(e.shapePts);var i=SuperMap.Plot.PlottingUtil.clonePoints(t),o=i.length,n=!1;if(void 0!==i[0].z&&(n=!0),n){for(var l=e.leftBodyPts,a=e.rightBodyPts,s=e.arrowHeadPts,r=e.shapePts,u=[],p=0;p<r.length;p++)u.push({x:r[p].x,y:r[p].y,z:0});if(0==r.length)return!1;var h=this.updateScalePoints(t);if(this.scalePoints=[],3!=h.length)h=[];else for(var c=0;c<h.length;c++)h[c].isScalePoint=!0,h[c].tag=c,this.addScalePoint(h[c]);var y=[],f={x:(i[0].x+i[1].x)/2,y:(i[0].y+i[1].y)/2},S={x:(l[l.length-1].x+a[0].x)/2,y:(l[l.length-1].y+a[0].y)/2},g=this.ComputeZValue(S,i[o-1],i[o-2]),P=0,d=0;l[0].x==i[0].x&&l[0].y==i[0].y?(P=i[0].z,d=i[1].z):(P=i[1].z,d=i[0].z),y.push({x:f.x,y:f.y,z:P});for(var m=2;m<o-1;m++)y.push(i[m]);y.push({x:S.x,y:S.y,z:g});var b=[];this.ComputeBeizerZValueByDis(y,l,b),(y=[]).push({x:S.x,y:S.y,z:g});for(var L=o-2;L>=2;L--)y.push(i[L]);y.push({x:f.x,y:f.y,z:d});var M=[];this.ComputeBeizerZValueByDis(y,a,M);for(var v=[],T=0;T<s.length;T++){var A=this.ComputeZValue(s[T],i[o-1],i[o-2]);v.push({x:s[T].x,y:s[T].y,z:A})}if(b.length>0&&M.length>0&&v.length>0){u=(u=(u=(u=[]).concat(b)).concat(v)).concat(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,{surroundLineFlag:!1});for(var _=[],O=0;O<h.length;O++){var x=this.ComputeZValue(h[O],i[o-1],i[o-2]),w=new SuperMap.Geometry.Point(h[O].x,h[O].y);w.z=x,_.push(w)}3!=h.length?this.scalePoints=[]:this.scalePoints=this.scalePoints.concat(_)}}else{if(0==e.shapePts.length)return;if(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.shapePts,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e.shapePts,{surroundLineFlag:!1}),h=this.updateScalePoints(t),this.scalePoints=[],3!=h.length)h=[];else for(var I=0;I<h.length;I++)h[I].isScalePoint=!0,h[I].tag=I,this.addScalePoint(h[I])}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var i=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);i=SuperMap.Plot.PlottingUtil.clearSamePts(i),this.scaleValues.length<4&&(this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen));var o=i.length;if(o<=2)return;var n,l,a,s,r=this.operateCtrlPts(i);o=r.length,o--;var u=this.calcScaleValueCount(i.length);if(this.scaleValues.length<u){var p=this.calcDefaultScaleValues(o);n=p[0],l=p[1],a=p[2],s=p[3]}else n=this.scaleValues[0],l=this.scaleValues[1],a=this.scaleValues[2],s=this.scaleValues[3];for(var h=SuperMap.Plot.PlottingUtil.polylineDistance(i),c=[],y=0;y<this.scalePoints.length;y++)c.push(this.scalePoints[y].clone());if(0==c.length)return;c[t]=e.clone();var f,S,g=o-1;f=o<=3?new SuperMap.Geometry.Point((r[0].x+r[1].x)/2,(r[0].y+r[1].y)/2):r[g-1].clone();var P,d,m,b,L,M,v=new SuperMap.Geometry.Point(0,0),T=new SuperMap.Geometry.Point(0,0),A=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,f,r[g],r[g+1],T,A),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,r[o],r[o-1],A,v),S=v.clone();var _=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(r[o],S,c[2]);P=_.dLen1,_.dLen2,0==P&&(P=.1),d=P,n=(P/=s+1)/h,1==t?(b=(_=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(r[o],S,c[1])).dLen1,a=(L=_.dLen2)/P,s=(b-P)/P):0==t?(P=(_=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(r[o],S,c[0])).dLen1,l=(m=_.dLen2)/P,(M=SuperMap.Plot.PlottingUtil.distance(r[o],r[o-1]))<2*P&&(P=.5*M),b=(_=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(r[o],S,c[1])).dLen1,a=(L=_.dLen2)/P,(s=(d-P)/P)<.1&&(a=L/(P=d/(1+(s=.1))),l=m/P),n=P/h):2==t&&(n=P/h),m=P*l,(M=SuperMap.Plot.PlottingUtil.distance(r[o],r[o-1]))<2*P&&(m=(P=.5*M)*l,n=P/h),this.scaleValues[0]=n,this.scaleValues[1]=l,this.scaleValues[2]=a,this.scaleValues[3]=s}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],i=[],o=[],n=[],l=SuperMap.Plot.PlottingUtil.clonePoints(t),a=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(l,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),s=a.arrowTouLen,r=a.leftBodyPts,u=a.rightBodyPts;if(!SuperMap.Plot.PlottingUtil.equalFuzzy(s,0)){var p=[];p.push(r[r.length-1]),p.push(u[u.length-1]);var h=[];h.push(this.scaleValues[2]),h.push(this.scaleValues[3]),h.push(0),h.push(0);for(var c=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(l,p,h,s,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),y=0;y<r.length;y++)e.push(r[y]),i.push(r[y]);for(var f=0;f<c.length;f++)e.push(c[f]),n.push(c[f]);for(var S=u.length-1;S>=0;S--)e.push(u[S]),o.push(u[S])}return{shapePts:e,leftBodyPts:i,rightBodyPts:o,arrowHeadPts:n}}},{key:"updateScalePoints",value:function(t){var e=t.length,i=[];if(!(e<3)){var o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!SuperMap.Plot.PlottingUtil.equalFuzzy(o,0)){var n=this.operateCtrlPts(t);e=n.length,e--;for(var l=[],a=0;a<this.scaleValues.length;a++)l.push(this.scaleValues[a]);var s=this.genArrowBodyPts(o,n,l),r=s.ArrowBodyCenterPts,u=this.genAtPts(e,r,l,s.ArrowTouLen),p=this.calc3rdScalePt(e,r,l,s.ArrowTouLen);return i.push(new SuperMap.Geometry.Point(s.LeftBodyPtsTemp[e].x,s.LeftBodyPtsTemp[e].y)),i.push(new SuperMap.Geometry.Point(u[2].x,u[2].y)),i.push(new SuperMap.Geometry.Point(p.x,p.y)),i}}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3===e.length){var i=((e[0].x+e[1].x)/2+e[2].x)/2,o=((e[0].y+e[1].y)/2+e[2].y)/2,n=new SuperMap.Geometry.Point(i,o),l=e[2];e[2]=n,e.push(l)}return e}},{key:"genArrowBodyPts",value:function(t,e,i){var o,n,l,a=[],s=[],r=[],u=[],p=[],h=[],c=e.length;if(c--,i.length<this.calcScaleValueCount(c)){var y=this.calcDefaultScaleValues(c);n=y[0],l=y[1]}else n=i[0],l=i[1];var f=SuperMap.Plot.PlottingUtil.clonePoints(e),S=(f[0].x+f[1].x)/2,g=(f[0].y+f[1].y)/2,P=Math.abs(S-f[2].x),d=Math.abs(g-f[2].y),m=0;if(P>0&&d>0){var b=1/(S-f[2].x),L=-1/(g-f[2].y),M=1*f[2].y/(g-f[2].y)-1*f[2].x/(S-f[2].x);m=Math.abs(b*f[0].x+L*f[0].y+M)/Math.sqrt(b*b+L*L)}else d<=1e-4?m=Math.abs(g-f[1].y):P<=1e-4&&(m=Math.abs(S-f[1].x));var v=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(m,f[2],new SuperMap.Geometry.Point(S,g)),T=SuperMap.Plot.PlottingUtil.pointIsRightToLine(f[1],f[2],f[0]);T?(a[1]=f[1],s[1]=f[0]):(a[1]=f[0],s[1]=f[1]),f[1]=new SuperMap.Geometry.Point((f[0].x+f[1].x)/2,(f[0].y+f[1].y)/2);var A=Math.sqrt((v.pntLeft.x-v.pntRight.x)*(v.pntLeft.x-v.pntRight.x)+(v.pntLeft.y-v.pntRight.y)*(v.pntLeft.y-v.pntRight.y))*this.sv_AtWidthDivAwWidth,_=(o=A*this.sv_AtLenDivAtWidth)*l;SuperMap.Plot.PlottingUtil.equalFuzzy(n,0)||(_=(o=t*n)*l);var O,x,w=SuperMap.Plot.PlottingUtil.distance(f[c],f[c-1]),I=2*o;w<I&&(_=(o=w/2)*l),f.push(f[c].clone()),O=0,x=0;var D=0,E=[];for(D=2;D<=c;D++)O+=SuperMap.Plot.PlottingUtil.distance(f[D],f[D-1]);for(O-=o,D=2;D<=c-1;D++)x+=SuperMap.Plot.PlottingUtil.distance(f[D],f[D-1]),E[D]=_+(A-_)*Math.pow((O-x)/O,this.sv_AtScaleParameter);E[c]=_;var C,R,N=new SuperMap.Geometry.Point(0,0),U=new SuperMap.Geometry.Point(0,0),G=new SuperMap.Geometry.Point(0,0);for(D=2;D<=c-1;D++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,f[D-1],f[D],f[D+1],U,G),D==c-1&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,f[c],f[c-1],G,N),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(E[D],U,f[D]),(T=SuperMap.Plot.PlottingUtil.pointIsRightToLine(G,U,C.pntRight))?(a[D]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y),s[D]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y)):(a[D]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),s[D]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y));for(Math.sqrt(1*(f[c].x-N.x)*(f[c].x-N.x)+1*(f[c].y-N.y)*(f[c].y-N.y))>0&&(f[c]=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(o,f[c],N)),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(_,f[c+1],f[c]),(T=SuperMap.Plot.PlottingUtil.pointIsRightToLine(f[c],f[c+1],C.pntLeft))?(s[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),a[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y)):(s[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y),a[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y)),D=2;D<c;D++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,a[D-1],a[D],a[D+1],U,G),r[D]=new SuperMap.Geometry.Point(U.x,U.y),u[D]=new SuperMap.Geometry.Point(G.x,G.y),SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,s[D-1],s[D],s[D+1],U,G),p[D]=new SuperMap.Geometry.Point(U.x,U.y),h[D]=new SuperMap.Geometry.Point(G.x,G.y),2==D&&(SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,a[1],a[2],r[2],N),u[D]=new SuperMap.Geometry.Point(N.x,N.y),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,s[1],s[2],p[2],N),h[D]=new SuperMap.Geometry.Point(N.x,N.y)),D==c-1&&(I=(w=SuperMap.Plot.PlottingUtil.distance(a[c],a[c-1]))/3,(R=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(I,f[c],f[c+1])).x+=a[c].x-f[c].x,R.y+=a[c].y-f[c].y,I=(w=A-_)*Math.pow(I/O,this.sv_AtScaleParameter),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I,a[c],R),r[c]=new SuperMap.Geometry.Point(C.pntLeft.x,C.pntLeft.y),I=(w=SuperMap.Plot.PlottingUtil.distance(s[c],s[c-1]))/3,(R=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(I,f[c],f[c+1])).x+=s[c].x-f[c].x,R.y+=s[c].y-f[c].y,I=(w=A-_)*Math.pow(I/O,this.sv_AtScaleParameter),C=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I,s[c],R),p[c]=new SuperMap.Geometry.Point(C.pntRight.x,C.pntRight.y));return{ArrowBodyCenterPts:SuperMap.Plot.PlottingUtil.clonePoints(f),LeftBodyPtsTemp:a,RightBodyPtsTemp:s,LeftBodyPtsLeftCtrlPts:r,LeftBodyPtsRightCtrlPts:u,RightBodyPtsLeftCtrlPts:p,RightBodyPtsRightCtrlPts:h,ArrowTouLen:o}}},{key:"calcScaleValueCount",value:function(){return 4}},{key:"calcDefaultScaleValues",value:function(){var t=[];return t.push(this.sv1_DefaultAtLenDivAbLen),t.push(this.sv2_DefaultAjWidthDivAtLen),t.push(this.sv3_DefaultAeWidthDivAtLen),t.push(this.sv4_DefaultAeLenDivAtLen),t}},{key:"genAtPts",value:function(t,e,i,o){var n=i[2],l=[],a=o*i[3],s=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(a,e[t],e[t+1]);a=o*n;var r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,e[t+1],s);return l.push(new SuperMap.Geometry.Point(r.pntLeft.x,r.pntLeft.y)),l.push(e[t+1]),l.push(new SuperMap.Geometry.Point(r.pntRight.x,r.pntRight.y)),l}},{key:"calc3rdScalePt",value:function(t,e,i,o){var n=o*i[3];return SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(n,e[t],e[t+1])}}]),e}();SuperMap.Plot.AlgoSymbol1004=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol1003=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&(i.scaleValues.push(.3),i.scaleValues.push(.28),i.scaleValues.push(.433333),i.scaleValues.push(.53),i.scaleValues.push(0)),i.CLASS_NAME="SuperMap.Plot.AlgoSymbol1003",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),e=(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length;if(e>=this.minEditPts){if(SuperMap.Plot.PlottingUtil.equalFuzzy(this.controlPoints[0].x,this.controlPoints[1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(this.controlPoints[0].y,this.controlPoints[1].y))return;var i=SuperMap.Plot.PlottingUtil.clonePoints(t),o=!1;void 0!==i[0].z&&(o=!0);var n=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(t,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_TRAPEZOID),l=n.arrowTouLen,a=n.leftBodyPts,s=n.rightBodyPts,r=[];r.push(a[a.length-1]),r.push(s[s.length-1]);var u=[];u.push(this.scaleValues[3]),u.push(this.scaleValues[4]),u.push(0),u.push(0);var p=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(t,r,u,l,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),h=[];h=(h=h.concat(a)).concat(p);for(var c=s.length-1;c>=0;c--)h.push(s[c]);if(h.push(a[0]),o){for(var y=[],f={x:i[1].x,y:i[1].y,z:i[1].z},S={x:i[0].x,y:i[0].y,z:i[0].z},g=0;g<h.length;g++){var P=this.ComputeZValue(h[g],f,S);y.push({x:h[g].x,y:h[g].y,z:P})}var d=new SuperMap.Geometry.Point((r[0].x+r[1].x)/2,(r[0].y+r[1].y)/2),m=new SuperMap.Geometry.Point(d.x,d.y);m.isScalePoint=!0,m.tag=0,this.addScalePoint(m);var b=new SuperMap.Geometry.Point(a[a.length-1].x,a[a.length-1].y);b.isScalePoint=!0,b.tag=1,this.addScalePoint(b);var L=new SuperMap.Geometry.Point(p[0].x,p[0].y);L.isScalePoint=!0,L.tag=2,this.addScalePoint(L);for(var M={x:i[e-1].x,y:i[e-1].y,z:i[e-1].z},v={x:i[e-2].x,y:i[e-2].y,z:i[e-2].z},T=[],A=0;A<this.scalePoints.length;A++){var _={x:this.scalePoints[A].x,y:this.scalePoints[A].y},O=this.ComputeZValue(_,M,v);T.push({x:_.x,y:_.y,z:O})}this.scalePoints=T,this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,y)}else{var x=new SuperMap.Geometry.Point((r[0].x+r[1].x)/2,(r[0].y+r[1].y)/2),w=new SuperMap.Geometry.Point(x.x,x.y);w.isScalePoint=!0,w.tag=0,this.addScalePoint(w);var I=new SuperMap.Geometry.Point(a[a.length-1].x,a[a.length-1].y);I.isScalePoint=!0,I.tag=1,this.addScalePoint(I);var D=new SuperMap.Geometry.Point(p[0].x,p[0].y);D.isScalePoint=!0,D.tag=2,this.addScalePoint(D),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,h)}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var i=new SuperMap.Geometry.Point(this.scalePoints[0].x,this.scalePoints[0].y),o=new SuperMap.Geometry.Point(this.scalePoints[1].x,this.scalePoints[1].y),n=new SuperMap.Geometry.Point(this.scalePoints[2].x,this.scalePoints[2].y),l=this.scaleValues[0],a=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints),s=a*l;if(0==t){var r=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[0],this.controlPoints[1]),u=r.projectPoint;if(r.isOnline){var p=SuperMap.Plot.PlottingUtil.distance(u,this.controlPoints[1]);this.scaleValues[0]=p/a}}else if(1==t){var h=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,o,n).projectPoint,c=SuperMap.Plot.PlottingUtil.distance(h,i),y=s*this.scaleValues[1];this.scaleValues[1]=c/s,this.scaleValues[2]=(s*this.scaleValues[2]+c-y)/s}else if(2==t){var f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[1],n).projectPoint,S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(f,i,this.controlPoints[1]),g=S.projectPoint,P=SuperMap.Plot.PlottingUtil.distance(g,i);!0===S.inOnline?this.scaleValues[4]=-P/s:this.scaleValues[4]=P/s}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1003=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol1002=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.MIN_GEOPT_COUNT=2,i.MAX_GEOPT_COUNT=1024,i.SV1_defaultATLenDivABLen=0,i.SV2_defaultAYPosScale=.65,i.SV_AJCtrl=.6,i.SV_ArrowWoCtrl=.6,i.SV2_DefaultAJWidDiviedByATLen=.148,i.SV3_DefaultAEWidDividedByATLen=.4,i.SV4_DefaultAELenDividedByATLen=.3,i.SV_ATScaleParameter=1.25,i.SV_ATLenDividedByATWid=1.35,i.SV_ATWidDividedByArrowWeiWid=.5,i.AB_VERTEX_COUNT=4,i.MIN_PTCOUNT_PERARROW=3,i.ATL_DIV_AWW=.7,i.ATL_DIV_ABL=.12,i.ATL_DIV_ABL_1=.18,i.DEFAULT_ARROW_TAIL_POS=.12,i.DUOJIANTOU_TAIL_RATE_1=8,i.DUOJIANTOU_TAIL_RATE_2=3,i.DUOJIANTOU_TAIL_RATE_3=.6,i.AB_CTRLPT_RATE1=0,i.AB_CTRLPT_RATE2=3,i.AB_CTRLPT_RATE3=.5,i.MIN_SCALEVALUE=.1,i.MAX_SCALEVALUE=1,i.m_scalePoints=null,i.CLASS_NAME="SuperMap.Plot.AlgoSymbol1002",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),this.m_scalePoints=[];var t=SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=this.operateCtrlPts(t),i=e.length,o=Math.floor(i/this.MIN_PTCOUNT_PERARROW),n=this.scaleValues.length;if(n<2*o-1){0==n&&(this.scaleValues.push(this.SV1_defaultATLenDivABLen),n++);for(var l=2*o-1-n,a=0;a<l;a+=2)this.scaleValues.splice(n/2+1,0,this.SV1_defaultATLenDivABLen),this.scaleValues.splice(this.scaleValues.length,0,this.SV2_defaultAYPosScale)}else if(n>2*o-1){for(var s=0;s<o;s++)this.scaleValues.push(this.SV1_defaultATLenDivABLen);for(var r=0;r<o-1;r++)this.scaleValues.push(this.SV2_defaultAYPosScale)}var u=this.arrowMeshs(e);SuperMap.Plot.PlottingUtil.clearSamePts(u.shapePts);var p=!1;if(void 0!==t[0].z&&(p=!0),p){var h=this.operateCtrlPts3D(t),c=u.arrLeftPts2D,y=u.arrRightPts2D,f=u.arrHeadPts2D;if(o!=c.length&&o!=y.length&&o!=f.length)return!1;for(var S=[],g=0;g<o;g++){for(var P=[],d=3*g;d<3*(g+1)&&d<h.length;d++)P.push(h[d]);S.push(P)}for(var m=[],b=[],L=[],M=0;M<o;M++)if(!(2>S[M].length)){for(var v=c[M][c[M].length-1],T=y[M][0],A=new SuperMap.Geometry.Point(.5*(v.x+T.x),.5*(v.y+T.y)),_=S[M][S[M].length-1],O=S[M][S[M].length-2],x=this.ComputeZValue(A,_,O),w={x:A.x,y:A.y,z:x},I=[],D=[],E=0;E<S[M].length-1;E++)if(0==M)D.push(S[M][E]);else{var C={x:S[M][E].x,y:S[M][E].y,z:.5*(S[M][E].z+S[M-1][E].z)};D.push(C)}D.push(w),this.ComputeBeizerZValueByDis(D,c[M],I),m.push(I),I=[];var R=[];R.push(w);for(var N=S[M].length-2;N>=0;N--)if(M==o-1)R.push(S[M][N]);else{var U={x:S[M][N].x,y:S[M][N].y,z:.5*(S[M][N].z+S[M+1][N].z)};R.push(U)}this.ComputeBeizerZValueByDis(R,y[M],I),b.push(I),I=[];for(var G=f[M],B=0;B<G.length;B++){var k=this.ComputeZValue(G[B],_,O);I.push({x:G[B].x,y:G[B].y,z:k})}L.push(I)}for(var F=[],z=0;z<o;z++)F=(F=(F=F.concat(m[z])).concat(L[z])).concat(b[z]);return SuperMap.Plot.PlottingUtil.clearSamePts(F),u.shapePts.length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,F,{surroundLineFlag:!1}),this.scalePoints=this.scalePoints.concat(this.m_scalePoints),!0}u.shapePts.length>0&&(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,u.shapePts,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u.shapePts,{surroundLineFlag:!1})),this.scalePoints=[];for(var j=0;j<this.m_scalePoints.length;j++)this.m_scalePoints[j].isScalePoint=!0,this.m_scalePoints[j].tag=j,this.addScalePoint(this.m_scalePoints[j])}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var i=this.operateCtrlPts(this.controlPoints),o=i.length,n=Math.floor(o/this.MIN_PTCOUNT_PERARROW),l=0;if(t<n){var a=[],s=t*this.MIN_PTCOUNT_PERARROW;a[0]=i[s],a[1]=i[s+1],a[2]=i[s+2];var r=SuperMap.Plot.PlottingUtil.polylineDistance(a),u=new SuperMap.Geometry.Point(0,0),p=new SuperMap.Geometry.Point(0,0),h=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,a[0],a[1],a[2],u,p),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,a[2],a[1],p,h),l=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(a[2],h,e).dLen1/(this.SV4_DefaultAELenDividedByATLen+1)/r}else{var c=[],y=[],f=(t-n)*this.MIN_PTCOUNT_PERARROW;c[0]=i[f],c[1]=i[f+1],c[2]=i[f+2];var S=(t-n+1)*this.MIN_PTCOUNT_PERARROW;y[0]=i[S],y[1]=i[S+1],y[2]=i[S+2];var g=new SuperMap.Geometry.Point(0,0),P=new SuperMap.Geometry.Point(0,0),d=new SuperMap.Geometry.Point(0,0);g.x=.5*(c[2].x+y[2].x),P.x=.5*(c[1].x+y[1].x),d.x=.5*(c[0].x+y[0].x),g.y=.5*(c[2].y+y[2].y),P.y=.5*(c[1].y+y[1].y),d.y=.5*(c[0].y+y[0].y);var m=SuperMap.Plot.PlottingUtil.distance(g,P),b=SuperMap.Plot.PlottingUtil.distance(d,P),L=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(g,P,e),M=L.dLen1;l=M<m?M/(m+b):((M=(L=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(P,d,e)).dLen1)+m)/(m+b)}l>this.MAX_SCALEVALUE?l=this.MAX_SCALEVALUE:l<this.MIN_SCALEVALUE&&(l=this.MIN_SCALEVALUE),this.scaleValues[t]=l}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],i=[],o=[],n=new SuperMap.Plot.Path2D,l=t.length,a=Math.floor(l/this.MIN_PTCOUNT_PERARROW),s=this.generateAWWidth(a,t),r=[],u=[],p=0,h=0,c=0,y=[];for(h=0,c=0;h<a;h++,c+=this.MIN_PTCOUNT_PERARROW){y[0]=t[c],y[1]=t[c+1],y[2]=t[c+2],p=this.scaleValues[h];var f=this.generateArrowBodyPts(y,s[h],p);p=f.dATLenDivABLen,r[h]=f.arrowBodyPts,u.push(p)}var S=[],g=0,P=0,d=0,m=[],b=[];for(h=0;h<a-1;h++,P+=this.MIN_PTCOUNT_PERARROW){d=P+this.MIN_PTCOUNT_PERARROW,m[0]=t[P],m[1]=t[P+1],m[2]=t[P+2],b[0]=t[d],b[1]=t[d+1],b[2]=t[d+2],g=this.scaleValues[a+h];var L=this.generateAYPts(m,r[h],b,r[h+1],g);S.push(L.arrowLeftYaoPts),S.push(L.arrowRightYaoPts)}var M=[],v=r[0],T=[],A=0,_=[];n.MoveTo(v[0]),n.CurveTo(v[1],v[2],v[3]),n.CurveTo(v[4],v[5],v[6]),n.ToSubPathPolygons(T),e.push(T[0]),A=T[0].length;for(var O=7;O<10;O++)n.LineTo(v[O]);for(T=[],n.ToSubPathPolygons(T);A<T[0].length;A++)_.push(T[0][A]);for(o.push(_),M.push(v[0]),M.push(t[0]),h=1,c=this.MIN_PTCOUNT_PERARROW;h<a;h++,c+=this.MIN_PTCOUNT_PERARROW){var x=r[h],w=h+h-2,I=S[w];for(n.LineTo(I[0]),n.CurveTo(I[1],I[2],I[3]),T=[],_=[],n.ToSubPathPolygons(T);A<T[0].length;A++)_.push(T[0][A]);i.push(_);var D=S[w+1];for(n.CurveTo(D[1],D[2],D[3]),T=[],_=[],n.ToSubPathPolygons(T);A<T[0].length;A++)_.push(T[0][A]);e.push(_);for(var E=7;E<10;E++)n.LineTo(x[E]);for(T=[],_=[],n.ToSubPathPolygons(T);A<T[0].length;A++)_.push(T[0][A]);o.push(_),M.push(t[c].clone())}var C=r[a-1];for(n.LineTo(C[10]),n.CurveTo(C[11],C[12],C[13]),n.CurveTo(C[14],C[15],C[16]),T=[],_=[],n.ToSubPathPolygons(T);A<T[0].length;A++)_.push(T[0][A]);i.push(_),M.push(C[16]);var R=[];return n.ToSubPathPolygons(R),{shapePts:R[0],arrLeftPts2D:e,arrRightPts2D:i,arrHeadPts2D:o}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),i=e.length,o=Math.floor(i/this.MIN_PTCOUNT_PERARROW),n=i%this.MIN_PTCOUNT_PERARROW,l=new SuperMap.Geometry.Point;if(2==n&&(l.x=.5*(e[i-2].x+e[i-1].x),l.y=.5*(e[i-2].y+e[i-1].y),l.x==e[i-1].x&&l.y==e[i-1].y||(e.push(e[i-1].clone()),e[i-1]=l,i++,o++)),i>3)for(var a=o-1,s=0,r=a;s<a;r--,s++)for(var u=r*this.MIN_PTCOUNT_PERARROW,p=0;p<u;p+=this.MIN_PTCOUNT_PERARROW){if(!SuperMap.Plot.PlottingUtil.isRight(e[p+3],e[p+1],e[p+2])){var h=e[p];e[p]=e[p+3],e[p+3]=h,h=e[p+1],e[p+1]=e[p+4],e[p+4]=h,h=e[p+2],e[p+2]=e[p+5],e[p+5]=h}}return e}},{key:"operateCtrlPts3D",value:function(t){var e=t,i=e.length,o=Math.floor(i/this.MIN_PTCOUNT_PERARROW),n={x:0,y:0,z:0};if(2==i%3&&(n.x=.5*(e[i-2].x+e[i-1].x),n.y=.5*(e[i-2].y+e[i-1].y),n.z=.5*(e[i-2].z+e[i-1].z),n.x==e[i-1].x&&n.y==e[i-1].y&&n.z==e[i-1].z||(e.push(e[i-1]),e[i-1]=n,i++,o++)),i>3)for(var l=o-1,a=0,s=l;a<l;s--,a++)for(var r=3*s,u=0;u<r;u+=3){if(!SuperMap.Plot.PlottingUtil.isRight(e[u+3],e[u+1],e[u+2])){var p=e[u];e[u]=e[u+3],e[u+3]=p,p=e[u+1],e[u+1]=e[u+4],e[u+4]=p,p=e[u+2],e[u+2]=e[u+5],e[u+5]=p}}return e}},{key:"generateAWWidth",value:function(t,e){var i=[];if(t>0)if(1==t)i.push(0);else{var o=SuperMap.Plot.PlottingUtil.distance(e[0],e[this.MIN_PTCOUNT_PERARROW]);i.push(o);for(var n=1,l=this.MIN_PTCOUNT_PERARROW;n<t-1;n++,l+=this.MIN_PTCOUNT_PERARROW){o=.5*(SuperMap.Plot.PlottingUtil.distance(e[l-this.MIN_PTCOUNT_PERARROW],e[l])+SuperMap.Plot.PlottingUtil.distance(e[l],e[l+this.MIN_PTCOUNT_PERARROW])),i.push(o)}o=SuperMap.Plot.PlottingUtil.distance(e[l-this.MIN_PTCOUNT_PERARROW],e[l]),i.push(o)}return i}},{key:"generateArrowBodyPts",value:function(t,e,i){var o=[],n=[],l=[],a=[],s=[],r=[],u=[],p=t.length-1;if(p<2)return{dATLenDivABLen:i=0,arrowBodyPts:o};var h=i,c=this.SV2_DefaultAJWidDiviedByATLen,y=this.SV3_DefaultAEWidDividedByATLen,f=this.SV4_DefaultAELenDividedByATLen,S=SuperMap.Plot.PlottingUtil.clonePoints(t),g=SuperMap.Plot.PlottingUtil.polylineDistance(S),P=0==e?g*this.ATL_DIV_ABL_1:(g+e)*this.ATL_DIV_ABL,d=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(P,S[1],S[0]);n[1]=d.pntLeft.clone(),l[1]=d.pntRight.clone();var m=0;m=SuperMap.Plot.PlottingUtil.equalFuzzy(h,0,1e-14)?P*this.ATL_DIV_AWW:g*h;var b=SuperMap.Plot.PlottingUtil.distance(S[1],S[2]);m+m>b&&(m=.5*b);var L=m*c;S.push(S[p].clone());var M,v=0;M=g-m;var T=[],A=0;for(A=2;A<=p;A++)v+=SuperMap.Plot.PlottingUtil.distance(S[A-1],S[A-2]),SuperMap.Plot.PlottingUtil.equalFuzzy(M,0,1e-14)?T[A]=0:SuperMap.Plot.PlottingUtil.equalFuzzy(M-v,0,1e-14)?T[A]=L:T[A]=L+(P-L)*Math.pow((M-v)/M,this.SV_ATScaleParameter);T[p+1]=L;var _=new SuperMap.Geometry.Point(0,0),O=new SuperMap.Geometry.Point(0,0),x=new SuperMap.Geometry.Point(0,0);for(A=2;A<=p;A++){SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,S[A-2],S[A-1],S[A],O,x),p==A&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,S[p],S[p-1],x,_);var w=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(T[A],O,S[A-1]);l[A]=w.pntLeft,n[A]=w.pntRight}var I,D,E=_.clone();if(SuperMap.Plot.PlottingUtil.distance(S[p],E)>0){var C=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(m,S[p],_);S[p]=C.clone()}for(d=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L,S[p+1],S[p]),n[p+1]=d.pntLeft,l[p+1]=d.pntRight,A=2;A<=p;A++)SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,n[A-1],n[A],n[A+1],O,x),a[A]=O.clone(),s[A]=x.clone(),SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,l[A-1],l[A],l[A+1],O,x),r[A]=O.clone(),u[A]=x.clone();SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,n[1],n[2],a[2],_),s[1]=_.clone(),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,l[1],l[2],r[2],_),u[1]=_.clone();D=SuperMap.Plot.PlottingUtil.distance(n[p+1],n[p])*(1/3),(I=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(D,S[p],S[p+1])).x+=n[p+1].x-S[p].x,I.y+=n[p+1].y-S[p].y,D=(P-L)*Math.pow(D/M,this.SV_ATScaleParameter+.3),d=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(D,n[p+1],I),a[p+1]=d.pntLeft.clone(),D=SuperMap.Plot.PlottingUtil.distance(l[p+1],l[p])*(1/3),(I=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(D,S[p],S[p+1])).x+=l[p+1].x-S[p].x,I.y+=l[p+1].y-S[p].y,D=(P-L)*Math.pow(D/M,this.SV_ATScaleParameter+.3),d=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(D,l[p+1],I),r[p+1]=d.pntRight.clone();var R=[],N=m*f,U=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(N,S[p],S[p+1]);this.m_scalePoints.push(U.clone()),N=m*y,d=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(N,S[p+1],U),R.push(d.pntRight),R.push(S[p+1]),R.push(d.pntLeft);var G=[];for(G.push(n[p+1]),A=p;A>=1;A--)G.push(a[A+1]),G.push(s[A]),G.push(n[A]);var B=[];for(A=1;A<=p;A++)B.push(l[A]),B.push(u[A]),B.push(r[A+1]);B.push(l[p+1]),o.push.apply(o,B),o.push.apply(o,R),o.push.apply(o,G),i=m/g;var k=[];for(A=G.length-1;A>=0;A--)k.push(G[A]);return{dATLenDivABLen:i,arrowBodyPts:o}}},{key:"generateAYPts",value:function(t,e,i,o,n){var l=new SuperMap.Geometry.Point(.5*(t[2].x+i[2].x),.5*(t[2].y+i[2].y)),a=new SuperMap.Geometry.Point(.5*(t[1].x+i[1].x),.5*(t[1].y+i[1].y)),s=new SuperMap.Geometry.Point(.5*(t[0].x+i[0].x),.5*(t[0].y+i[0].y)),r=SuperMap.Plot.PlottingUtil.distance(l,a),u=SuperMap.Plot.PlottingUtil.distance(s,a),p=n*(r+u),h=new SuperMap.Geometry.Point(0,0),c=new SuperMap.Geometry.Point(0,0),y=new SuperMap.Geometry.Point(0,0);if(p>r){p=r+u-p,h=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(p,s,a);var f=SuperMap.Plot.PlottingUtil.distance(t[1],t[0]),S=SuperMap.Plot.PlottingUtil.distance(i[1],i[0]);f=f*p/u,c=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(f,t[0],t[1]),S=S*p/u,y=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(S,i[0],i[1])}else{h=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(p,l,a);var g=SuperMap.Plot.PlottingUtil.distance(t[1],t[2]),P=SuperMap.Plot.PlottingUtil.distance(i[1],i[2]);g=g*p/r,c=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(g,t[2],t[1]),P=P*p/r,y=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(P,i[2],i[1])}this.m_scalePoints.push(h.clone());var d=this.SV_ArrowWoCtrl*SuperMap.Plot.PlottingUtil.distance(h,c),m=this.SV_ArrowWoCtrl*SuperMap.Plot.PlottingUtil.distance(h,y),b=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(d,h,c),L=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(m,h,y),M=e[11].clone(),v=e[10].clone(),T=o[5].clone(),A=o[6].clone(),_=SuperMap.Plot.PlottingUtil.intersectLines(v,M,h,c),O=SuperMap.Plot.PlottingUtil.distance(_.intersectPoint,v),x=SuperMap.Plot.PlottingUtil.distance(v,h);O=O>x?this.SV_AJCtrl*x:this.SV_AJCtrl*O;var w=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(O,v,M);M=w.clone(),e[11]=w.clone(),_=SuperMap.Plot.PlottingUtil.intersectLines(A,T,h,y),O=(O=SuperMap.Plot.PlottingUtil.distance(_.intersectPoint,A))>(x=SuperMap.Plot.PlottingUtil.distance(A,h))?this.SV_AJCtrl*x:this.SV_AJCtrl*O,T=(w=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(O,A,T)).clone(),o[5]=w.clone();var I=[];I.push(v),I.push(M),I.push(b),I.push(h);var D=[];return D.push(h),D.push(L),D.push(T),D.push(A),{arrowLeftYaoPts:I,arrowRightYaoPts:D}}}]),e}();SuperMap.Plot.AlgoSymbol1002=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol1001=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&(i.scaleValues.push(.1),i.scaleValues.push(.2),i.scaleValues.push(0),i.scaleValues.push(.3),i.scaleValues.push(.08)),i.CLASS_NAME="SuperMap.Plot.AlgoSymbol1001",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),e=(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length;if(e>=this.minEditPts){this.scalePoints=[];var i=SuperMap.Plot.PlottingUtil.clonePoints(t),o=!1;void 0!==i[0].z&&(o=!0);var n=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(t,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL),l=n.arrowTouLen,a=n.leftBodyPts,s=n.rightBodyPts,r=[];r.push(a[a.length-1]),r.push(s[s.length-1]);var u=[];u.push(this.scaleValues[3]),u.push(this.scaleValues[4]),u.push(this.scaleValues[0]),u.push(this.scaleValues[1]);var p=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(t,r,u,l,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),h=[];if(o){for(var c=[],y=[],f=[],S=0;S<e-1;S++)y.push({x:a[S].x,y:a[S].y,z:i[S].z}),f.push({x:s[S].x,y:s[S].y,z:i[S].z});var g={x:i[e-2].x,y:i[e-2].y,z:i[e-2].z},P={x:i[e-1].x,y:i[e-1].y,z:i[e-1].z},d=this.ComputeZValue(a[e-1],P,g);y.push({x:a[e-1].x,y:a[e-1].y,z:d});var m=this.ComputeZValue(s[e-1],P,g);f.push({x:s[e-1].x,y:s[e-1].y,z:m});for(var b=0;b<p.length;b++){var L=this.ComputeZValue(p[b],P,g);c.push({x:p[b].x,y:p[b].y,z:L})}h=(h=h.concat(y)).concat(c);for(var M=f.length-1;M>=0;M--)h.push(f[M]);var v=new SuperMap.Geometry.Point((r[0].x+r[1].x)/2,(r[0].y+r[1].y)/2),T=new SuperMap.Geometry.Point(v.x,v.y);T.isScalePoint=!0,T.tag=0,this.addScalePoint(T);var A=new SuperMap.Geometry.Point(a[a.length-1].x,a[a.length-1].y);A.isScalePoint=!0,A.tag=1,this.addScalePoint(A);var _=new SuperMap.Geometry.Point(p[0].x,p[0].y);_.isScalePoint=!0,_.tag=2,this.addScalePoint(_);for(var O=0;O<this.scalePoints.length;O++){var x=new SuperMap.Geometry.Point(this.scalePoints[O].x,this.scalePoints[O].y);this.scalePoints[O].z=this.ComputeZValue(x,P,g)}}else{h=(h=h.concat(a)).concat(p);for(var w=s.length-1;w>=0;w--)h.push(s[w]);var I=new SuperMap.Geometry.Point((r[0].x+r[1].x)/2,(r[0].y+r[1].y)/2),D=new SuperMap.Geometry.Point(I.x,I.y);D.isScalePoint=!0,D.tag=0,this.addScalePoint(D);var E=new SuperMap.Geometry.Point(a[a.length-1].x,a[a.length-1].y);E.isScalePoint=!0,E.tag=1,this.addScalePoint(E);var C=new SuperMap.Geometry.Point(p[0].x,p[0].y);C.isScalePoint=!0,C.tag=2,this.addScalePoint(C)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var i=new SuperMap.Geometry.Point(this.scalePoints[0].x,this.scalePoints[0].y),o=new SuperMap.Geometry.Point(this.scalePoints[1].x,this.scalePoints[1].y),n=new SuperMap.Geometry.Point(this.scalePoints[2].x,this.scalePoints[2].y),l=this.scaleValues[0],a=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints),s=a*l;if(0==t){var r=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[this.controlPoints.length-2],this.controlPoints[this.controlPoints.length-1]),u=r.projectPoint;if(r.isOnline){var p=SuperMap.Plot.PlottingUtil.distance(u,this.controlPoints[this.controlPoints.length-1]);this.scaleValues[0]=p/a}}else if(1==t){var h=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,o,n).projectPoint,c=SuperMap.Plot.PlottingUtil.distance(h,i);this.scaleValues[1]=c/s}else if(2==t){var y=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[1],n).projectPoint,f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(y,i,this.controlPoints[1]),S=f.projectPoint,g=SuperMap.Plot.PlottingUtil.distance(S,i);!0===f.inOnline?this.scaleValues[4]=-g/s:this.scaleValues[4]=g/s}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1001=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.Wire=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&i.scaleValues.push(.05),i.CLASS_NAME="SuperMap.Plot.Wire",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=2*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var i=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);for(var o=i*this.scaleValues[0],n=i*this.scaleValues[0]/2,l=SuperMap.Plot.PlottingUtil.clonePoints(e),a=parseInt((i-n)/o),s=0;s<=a&&!(n+o*s>i);s++){var r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,n+o*s);if(-1!==r.index){var u=new SuperMap.Geometry.Point(r.pt.x,r.pt.y),p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o/2,e[r.index],u);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p.pntLeft,p.pntRight])}}this.finish()}}}]),e}();SuperMap.Plot.Wire=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}(),n=function t(e,i,o){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,i);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,i,o)}if("value"in n)return n.value;var a=n.get;return void 0!==a?a.call(o):void 0};var l=e.PolygonRegion=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return void 0===i.scaleValues[0]&&(i.scaleValues[0]=0),void 0===i.scaleValues[1]&&(i.scaleValues[1]=0),i.CLASS_NAME="SuperMap.Plot.PolygonRegion",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"destroy",value:function(){n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(null!=(t=SuperMap.Plot.PlottingUtil.clearSamePts(t))&&t.length>=this.minEditPts){if(this.addCell(32,t,{surroundLineFlag:!1}),this.textContent&&null!=this.textContent&&this.textContent.length>0){var e=[];this.scaleValues[1]>t.length&&(this.scaleValues[1]=0);var i={labelRotation:0,surroundLineFlag:!1,labelAlign:"lt"};if(0===this.scaleValues[1])e=[SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t)];else{var o=null,n=null;this.scaleValues[1]===t.length?(o=t[t.length-1],n=t[0]):(o=t[this.scaleValues[1]-1],n=t[this.scaleValues[1]]),i.labelRotation=-SuperMap.Plot.PlottingUtil.radian(o,n)/Math.PI*180;var l=this.scaleValues[0]*SuperMap.Plot.PlottingUtil.distance(o,n);e=[SuperMap.Plot.PlottingUtil.findPoint(o,n,l,0)]}this.addCell(34,e,i,this.textContent);var a=new SuperMap.Geometry.Point(e[0].x,e[0].y);a.isScalePoint=!0,a.tag=0,this.scalePoints=[],this.addScalePoint(a)}}else this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine()}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){for(var i=0,o=SuperMap.Plot.PlottingUtil.distance(e,this.controlPoints[0]),n=1;n<this.controlPoints.length;n++){var l=SuperMap.Plot.PlottingUtil.distance(e,this.controlPoints[n]);l<o&&(o=l,i=n)}var a=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);(a=SuperMap.Plot.PlottingUtil.clearSamePts(a)).push(a[0].clone());var s=SuperMap.Plot.PlottingUtil.computePointToLineMinDis(e,a);if(-1===s.minDis)this.scaleValues[1]=i+1,this.offsetX=0,this.offsetY=0;else{var r=SuperMap.Plot.PlottingUtil.projectPoint(e,a[s.index],a[s.index+1]),u=SuperMap.Plot.PlottingUtil.distance(e,r),p=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(this.controlPoints),h=SuperMap.Plot.PlottingUtil.distance(e,p);if(h<u&&h<o)this.scaleValues[1]=0,this.scaleValues[0]=0;else if(o<u&&o<h)this.scaleValues[1]=i+1,this.scaleValues[0]=0;else if(u<o&&u<h){this.scaleValues[1]=s.index+1;var c=null,y=null;this.scaleValues[1]===this.controlPoints.length?(c=this.controlPoints[this.controlPoints.length-1],y=this.controlPoints[0]):(c=this.controlPoints[this.scaleValues[1]-1],y=this.controlPoints[this.scaleValues[1]]);var f=SuperMap.Plot.PlottingUtil.distance(r,c),S=SuperMap.Plot.PlottingUtil.distance(c,y);this.scaleValues[0]=f/S}}}this.calculateParts()}},{key:"parseSymbolData",value:function(){n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"parseSymbolData",this).call(this),this.symbolData&&(this.scaleValues[1]=this.symbolData.annotationPosition)}},{key:"setSymbolData",value:function(){n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setSymbolData",this).call(this),this.symbolData&&(this.symbolData.annotationPosition=this.scaleValues[1])}}]),e}();SuperMap.Plot.PolygonRegion=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.LineRelation=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.subSectionCount=t.subSectionCount?t.subSectionCount:10,i.CLASS_NAME="SuperMap.Plot.LineRelation",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"destroy",value:function(){this.subSectionCount=null,function t(e,i,o){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,i);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,i,o)}if("value"in n)return n.value;var a=n.get;return void 0!==a?a.call(o):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();for(var t=0;t<this.controlPoints.length;t++)this.controlPoints[t].tag=t;var e=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);null!==e&&e.length>=this.minEditPts&&this.computeLine(e)}},{key:"computeLine",value:function(t){this.components=[];var e=t[0],i=t[t.length-1];this.subSectionCount<=1&&(this.subSectionCount=10);var o=SuperMap.Plot.PlottingUtil.distance(e,i)/(2*this.subSectionCount-1);if(this.lineRelationType===SuperMap.Plot.LineRelationType.SOLID)this.addCell(24,t,{surroundLineFlag:!1});else if(this.lineRelationType===SuperMap.Plot.LineRelationType.DASH)for(var n=0;n<this.subSectionCount;n++){var l=SuperMap.Plot.PlottingUtil.findPoint(e,i,2*n*o,0),a=SuperMap.Plot.PlottingUtil.findPoint(e,i,(2*n+1)*o,0);this.addCell(24,[l,a],{surroundLineFlag:!1})}else if(this.lineRelationType===SuperMap.Plot.LineRelationType.ARROW)for(var s=0;s<this.subSectionCount;s++){var r=SuperMap.Plot.PlottingUtil.findPoint(e,i,2*s*o,0),u=SuperMap.Plot.PlottingUtil.findPoint(e,i,(2*s+1)*o,0),p=SuperMap.Plot.PlottingUtil.findPoint(u,r,o,60),h=SuperMap.Plot.PlottingUtil.findPoint(u,r,o,-60);this.addCell(24,[p,u,h],{surroundLineFlag:!1})}}}]),e}();SuperMap.Plot.LineRelation=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.LineMarking=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.islocationCircle=!!t.islocationCircle&&t.islocationCircle,i.textBoxType=t.textBoxType?t.textBoxType:SuperMap.Plot.TextBoxType.RECTBOX,0===i.scaleValues.length&&(i.scaleValues.push(.126),i.scaleValues.push(0),i.scaleValues.push(0),i.scaleValues.push(4)),i.CLASS_NAME="SuperMap.Plot.LineMarking",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"destroy",value:function(){this.islocationCircle=null,this.textBoxType=null,function t(e,i,o){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,i);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,i,o)}if("value"in n)return n.value;var a=n.get;return void 0!==a?a.call(o):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init(),this.controlPoints=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),this.controlPoints=SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints);var t=this.scaleValues[0];if(!(t<0||t>1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,i,o,n;this.scalePoints=[];var l=[];this.controlPoints[0].x<this.controlPoints[1].x?(e=this.controlPoints[0].x,o=this.controlPoints[1].x):(e=this.controlPoints[1].x,o=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(n=this.controlPoints[0].y,i=this.controlPoints[1].y):(n=this.controlPoints[1].y,i=this.controlPoints[0].y),l.push(new SuperMap.Geometry.Point(e,n)),l.push(new SuperMap.Geometry.Point(e,i)),l.push(new SuperMap.Geometry.Point(o,i)),l.push(new SuperMap.Geometry.Point(o,n)),!1===this.isEdit&&(this.scaleValues[1]=e+.1*(o-e),this.scaleValues[2]=n+-.3*(i-n));var a=this.getAction(this.scaleValues[1],this.scaleValues[2],e,i,o,n),s=new SuperMap.Geometry.Point(this.scaleValues[1],this.scaleValues[2]);if(this.textBoxType===SuperMap.Plot.TextBoxType.RECTBOX||this.textBoxType===SuperMap.Plot.TextBoxType.LINEBOX){var r=[];switch(a){case 0:this.addScalePoint(s);break;case 1:this.addScalePoint(s),r.push(new SuperMap.Geometry.Point(e,i-(i-n)*t)),r.push(s);break;case 2:this.addScalePoint(s),r.push(new SuperMap.Geometry.Point(o-(o-e)*t,i)),r.push(s);break;case 3:this.addScalePoint(s),r.push(new SuperMap.Geometry.Point(o,i-(i-n)*t)),r.push(s);break;case 4:this.addScalePoint(s),r.push(new SuperMap.Geometry.Point(o-(o-e)*t,n)),r.push(s)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r)}if(0!==l.length&&this.textBoxType===SuperMap.Plot.TextBoxType.RECTBOX)this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);else if(0!==l.length&&this.textBoxType===SuperMap.Plot.TextBoxType.LINEBOX){var u=[];switch(a){case 0:break;case 1:u=(u=u.concat(l[0])).concat(l[1]);break;case 2:u=(u=u.concat(l[1])).concat(l[2]);break;case 3:u=(u=u.concat(l[2])).concat(l[3]);break;case 4:u=(u=u.concat(l[3])).concat(l[0])}0!==u.length?this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u):this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,this.controlPoints)}this.islocationCircle&&this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[s,new SuperMap.Geometry.Point(s.x-.05,s.y-.05)]),this.annotationContent(e,i,o,n)}else this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,this.controlPoints);this.finish()}}},{key:"modifyPoint",value:function(t,e){!0===e.isScalePoint&&(this.scaleValues[1]=e.x,this.scaleValues[2]=e.y),this.calculateParts()}},{key:"getAction",value:function(t,e,i,o,n,l){var a=(o-l)/(n-i);return t<i?e>o?Math.abs((e-o)/(t-i))>a?2:1:e<l&&Math.abs((e-l)/(t-i))>a?4:1:t>n?e>o?Math.abs((e-o)/(t-n))>a?2:3:e<l&&Math.abs((e-l)/(t-n))>a?4:3:e>o?2:e<l?4:0}}]),e}();SuperMap.Plot.LineMarking=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.PathText=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.relLineText=t.relLineText?t.relLineText:0,i.showPathLine=!t.showPathLine||t.showPathLine,i.showPathLineArrow=!!t.showPathLineArrow&&t.showPathLineArrow,i.isCurve=!!t.isCurve&&t.isCurve,i.isAvoid=!!t.isAvoid&&t.isAvoid,i.textToLineDistance=t.textToLineDistance?t.textToLineDistance:0,i.CLASS_NAME="SuperMap.Plot.PathText",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){if(this.init(),null!==this.controlPoints&&0!==this.controlPoints.length&&!(this.controlPoints.length<this.minEditPts)){SuperMap.Util.isArray(this.textContent)||(this.textContent=[this.textContent]);var t=[];if(t=this.isCurve?SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(this.controlPoints):SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),this.relLineText===SuperMap.Plot.RelLineText.ONBOTHLINE){this.relLineText=SuperMap.Plot.RelLineText.ONRIGHTLINE;var e=this.getTextPathPts(t,!1);this.computeText(e,this.textContent[0],t),this.relLineText=SuperMap.Plot.RelLineText.ONLEFTLINE;var i=this.showPathLine;this.showPathLine=!1;var o=this.getTextPathPts(t,!0);this.textContent.length>1?this.computeText(o,this.textContent[1],t):this.computeText(o,this.textContent[0],t),this.relLineText=SuperMap.Plot.RelLineText.ONBOTHLINE,this.showPathLine=i}else{var n=[];n=this.relLineText===SuperMap.Plot.RelLineText.ONRIGHTLINE?this.getTextPathPts(t,!1):this.relLineText===SuperMap.Plot.RelLineText.ONLEFTLINE?this.getTextPathPts(t,!0):t,this.computeText(n,this.textContent[0],t)}this.finish()}}},{key:"getTextPathPts",value:function(t,e){t=SuperMap.Plot.PlottingUtil.clearSamePts(t);var i=this.getLonLatDistanceFromPixel(this.textToLineDistance);if(0>=i)return SuperMap.Plot.PlottingUtil.clonePoints(t);var o=SuperMap.Plot.PlottingUtil.paraLine(t,i,e);return SuperMap.Plot.PlottingUtil.clearSamePts(o)}},{key:"computeText",value:function(t,e,i){if(!(t.length<2)){for(var o=e.length,n=t,l=n.length,a=0,s=0;s<n.length-1;s++)a+=SuperMap.Plot.PlottingUtil.distance(n[s],n[s+1]);var r={index:-1,pt:n[0]},u=0,p=0,h=0,c=180/Math.PI,y=this.getTextBounds(this.style,e),f="lm";f=this.relLineText===SuperMap.Plot.RelLineText.ONLINE?"lm":this.relLineText===SuperMap.Plot.RelLineText.ONLEFTLINE?"lb":"lt",(u=(a-y.getWidth())/2)<=0&&(u=0);for(var S=[],g=0;g<o;g++){var P=this.getTextBounds(this.style,e.charAt(g));S.push(new SuperMap.Bounds(0,-y.getHeight(),P.getWidth(),0))}for(var d,m=!1,b=!1,L=0,M=0,v=[];p<=u&&h<l-1;)h++,p+=SuperMap.Plot.PlottingUtil.distance(n[h-1],n[h]);var T=SuperMap.Plot.PlottingUtil.findPointInPolyLine(n,u),A=SuperMap.Plot.PlottingUtil.radian(n[h-1],n[h])*c;A>180&&(A-=360),A<-180&&(A+=360),A>90&&A<=180?(L=-180,m=!0,b=!0):A>-180&&A<-90&&(L=180,m=!0,b=!0),!0,0!=L?this.relLineText===SuperMap.Plot.RelLineText.ONLINE||(f=this.relLineText===SuperMap.Plot.RelLineText.ONLEFTLINE?"lt":"lb"):this.relLineText===SuperMap.Plot.RelLineText.ONLINE||(f=this.relLineText===SuperMap.Plot.RelLineText.ONLEFTLINE?"lb":"lt");for(var _=0;_<o&&!(u>a);_++){var O=_;for(b&&(O=o-_-1),M=(d=S[O]).getWidth(),m&&(u+=M);p<=u&&h<l-1;)h++,p+=SuperMap.Plot.PlottingUtil.distance(n[h-1],n[h]);var x=(A=SuperMap.Plot.PlottingUtil.radian(n[h-1],n[h])*c)+L;if((r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(n,u)).index<0)break;d.add(r.pt.x,r.pt.y);var w=e.charAt(O),I={};I.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,I.textContent=w,I.positionPoints=[r.pt],I.style={surroundLineFlag:!1,labelAlign:f,labelRotation:-x},v.push(I),m||(u+=M)}var D=SuperMap.Plot.PlottingUtil.findPointInPolyLine(n,u);if(this.showPathLine){if(this.relLineText===SuperMap.Plot.RelLineText.ONLINE&&this.isAvoid){if(T.index>=0){for(var E=[],C=0;C<=T.index;C++)E.push(i[C]);E.push(T.pt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,E)}if(D.index>=0){var R=[];R.push(D.pt);for(var N=D.index+1;N<i.length;N++)R.push(i[N]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,R)}}else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i);this.showPathLineArrow&&this.addArrow(i)}for(var U=0;U<v.length;U++)this.components.push(v[U])}}},{key:"addArrow",value:function(t){if(t.length<2)return t;var e=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints)*(this.isEdit,null==this.getSubSymbolScaleValue()?.05:.5*this.getSubSymbolScaleValue()),i=t[t.length-1];if(t.length>2){for(var o=-1,n=t.length-2;n>=0;n--)if(e<SuperMap.Plot.PlottingUtil.distance(i,t[n])){o=n;break}t.splice(o+1,t.length-o),t.push(i)}var l=t[t.length-2],a=t[t.length-1],s=e;if(void 0===l)return t;if(!(SuperMap.Plot.PlottingUtil.distance(l,a)<e)){var r=SuperMap.Plot.PlottingUtil.radian(l,a)*SuperMap.Plot.PlottingUtil.RTOD,u=SuperMap.Plot.PlottingUtil.circlePoint(a,s,s,r+157.5),p=SuperMap.Plot.PlottingUtil.circlePoint(a,s,s,r+202.5);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[u,t[t.length-1],p],{surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0,fill:!0})}}}]),e}();SuperMap.Plot.PathText=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.CurveEight=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.CLASS_NAME="SuperMap.Plot.CurveEight",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"destroy",value:function(){(function t(e,i,o){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,i);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,i,o)}if("value"in n)return n.value;var a=n.get;return void 0!==a?a.call(o):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){if(this.init(),this.controlPoints&&null!==this.controlPoints&&!(this.minEditPts>this.controlPoints.length))if(2===this.controlPoints.length){var t=this.controlPoints[0].clone(),e=this.controlPoints[1].clone(),i=SuperMap.Plot.PlottingUtil.distance(t,e)/2,o=180*SuperMap.Plot.PlottingUtil.radian(t,e)/Math.PI,n=new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2),l=SuperMap.Plot.PlottingUtil.circlePoint(n,i,i,o+90),a=SuperMap.Plot.PlottingUtil.circlePoint(n,3*i,3*i,o+90);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[l,new SuperMap.Geometry.Point(l.x+i,l.y)]),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[a,new SuperMap.Geometry.Point(a.x+i,a.y)])}else{var s=this.controlPoints[0].clone(),r=this.controlPoints[1].clone(),u=this.controlPoints[2].clone(),p=0;p=SuperMap.Plot.PlottingUtil.isRight(u,s,r)?180*SuperMap.Plot.PlottingUtil.radian(r,s)/Math.PI+90:180*SuperMap.Plot.PlottingUtil.radian(s,r)/Math.PI+90;var h=SuperMap.Plot.PlottingUtil.distance(s,r)/2,c=new SuperMap.Geometry.Point((s.x+r.x)/2,(s.y+r.y)/2),y=SuperMap.Plot.PlottingUtil.circlePoint(c,h,h,p),f=SuperMap.Plot.PlottingUtil.plumbLineLen(u,s,r);if(f<=4*h){var S=SuperMap.Plot.PlottingUtil.circlePoint(c,3*h,3*h,p);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[y,new SuperMap.Geometry.Point(y.x+h,y.y)]),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[S,new SuperMap.Geometry.Point(S.x+h,S.y)])}else{for(var g=SuperMap.Plot.PlottingUtil.circlePoint(c,f-h,f-h,p),P=180*Math.acos(h/(f-2*h))/Math.PI,d=p-P,m=p-180+P,b=p-180-P+360,L=[],M=p+P-360;M<=d;M+=4){var v=SuperMap.Plot.PlottingUtil.circlePoint(y,h,h,M);L.push(v)}var T=SuperMap.Plot.PlottingUtil.circlePoint(y,h,h,d);L.push(T);for(var A=[],_=m;_<b;_+=4){var O=SuperMap.Plot.PlottingUtil.circlePoint(g,h,h,_);A.push(O)}var x=SuperMap.Plot.PlottingUtil.circlePoint(g,h,h,b);A.push(x);var w=[];w=w.concat(L);for(var I=A.length-1;I>=0;I--)w.push(A[I]);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,w)}}}}]),e}();SuperMap.Plot.CurveEight=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.Runway=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&i.scaleValues.push(.2),i.CLASS_NAME="SuperMap.Plot.Runway",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"destroy",value:function(){(function t(e,i,o){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,i);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,i,o)}if("value"in n)return n.value;var a=n.get;return void 0!==a?a.call(o):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){if(this.init(),this.controlPoints.length>=this.minEditPts){for(var t=this.controlPoints[0],e=this.controlPoints[1],i=SuperMap.Plot.PlottingUtil.distance(t,e),o=this.scaleValues[0]*i,n=SuperMap.Plot.PlottingUtil.parallel(this.controlPoints,o/2),l=SuperMap.Plot.PlottingUtil.parallel(this.controlPoints,-o/2),a=180*SuperMap.Plot.PlottingUtil.radian(t,e)/Math.PI,s=[],r=a+90;r<=a+270;r+=10){var u=SuperMap.Plot.PlottingUtil.circlePoint(t,o/2,o/2,r);s.push(u)}for(var p=[],h=a-90;h<=a+90;h+=10){var c=SuperMap.Plot.PlottingUtil.circlePoint(e,o/2,o/2,h);p.push(c)}var y=[];(y=(y=(y=(y=y.concat(s)).concat(l)).concat(p)).concat(n)).push(y[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,y);var f=new SuperMap.Geometry.Point(s[0].x,s[0].y);this.addScalePoint(f)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint&&0==t){var i=SuperMap.Plot.PlottingUtil.distance(e,this.controlPoints[0]),o=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]);this.scaleValues[0]=2*i/o}this.calculateParts()}}]),e}();SuperMap.Plot.Runway=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.NodeChain=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&(i.scaleValues.push(0),i.scaleValues[1]=.1),i.CLASS_NAME="SuperMap.Plot.NodeChain",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"destroy",value:function(){(function t(e,i,o){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,i);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,i,o)}if("value"in n)return n.value;var a=n.get;return void 0!==a?a.call(o):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){if(this.init(),this.controlPoints&&null!==this.controlPoints){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t),this.isEdit||(this.scaleValues[1]=.25*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=e*this.scaleValues[0],o=e*this.scaleValues[1];if(0<this.subSymbols.length&&null!==this.subSymbols[0]&&void 0!==this.subSymbols[0])if(this.subSymbols[0].code>0)for(var n=0;n<t.length;n++){var l=new SuperMap.Geometry.Point(t[n].x,t[n].y+i);this.computeSubSymbol(this.subSymbols[0],l,2*o,0)}else this.addCircles(t,i,o);else this.addCircles(t,i,o);var a=new SuperMap.Geometry.Point(t[0].x,t[0].y+i);this.addScalePoint(a);var s=SuperMap.Plot.PlottingUtil.circlePoint(a,o,o,90);this.addScalePoint(s)}}}},{key:"addCircles",value:function(t,e,i){for(var o={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},n=0;n<t.length;n++){var l=new SuperMap.Geometry.Point(t[n].x,t[n].y+e),a=this.getCirclePts(l,i);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,a,o)}}},{key:"getCirclePts",value:function(t,e){for(var i=[],o=0;o<=360;o+=12){var n=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,o);i.push(n)}return i}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var i=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((i=SuperMap.Plot.PlottingUtil.clearSamePts(i)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(0===t)this.scaleValues[0]=(e.y-i[0].y)/o;else if(1===t){var n=SuperMap.Plot.PlottingUtil.distance(e,i[0]);this.scaleValues[1]=n/o}}this.calculateParts()}}]),e}();SuperMap.Plot.NodeChain=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.FreeCurve=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.CLASS_NAME="SuperMap.Plot.FreeCurve",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){if(this.init(),!(null==this.controlPoints||this.controlPoints.length<this.minEditPts)){this.scalePoints=[];var t=[];if(this.controlPoints.length<3)t.push(this.controlPoints[0]),t.push(this.controlPoints[1]);else{if(!this.isEdit){var e=this.getLonLatFromPixel(0,0),i=this.getLonLatFromPixel(100,100),o=Math.abs(e.lon-i.lon),n=this.reSample(this.controlPoints,o/50);n.length<3&&(n=this.controlPoints),this.controlPoints=[],this.controlPoints=this.controlPoints.concat(n)}var l=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,this.controlPoints,this.scaleValues);l.scalePoints=SuperMap.Plot.PlottingUtil.clearSamePts(l.scalePoints),l.scaleValues=SuperMap.Plot.PlottingUtil.clearSamePts(l.scaleValues),this.scaleValues=l.scaleValues;for(var a=0,s=l.scalePoints.length;a<s;a++){var r=l.scalePoints[a];r.isScalePoint=!0,r.tag=a,this.addScalePoint(r)}t=SuperMap.Plot.PlottingUtil.clonePoints(l.beizerPoints)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var i=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(2>i.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(i),n=-1;n=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var l=(e.x-i[n].x)/o,a=(e.y-i[n].y)/o;this.scaleValues[2*t]=l,this.scaleValues[2*t+1]=a}this.calculateParts()}},{key:"reSample",value:function(t,e){var i=[];if(null==t||e<0)return i;var o=t.length;if(o>2){var n=new SuperMap.Geometry.Point(0,0),l=0,a=0,s=0,r=2*Math.PI;n=t[0],i.push(n);for(var u=!1,p=!1,h=!1,c=1;c<o;c++)if(a=Math.sqrt((t[c].y-n.y)*(t[c].y-n.y)+(t[c].x-n.x)*(t[c].x-n.x)),SuperMap.Plot.PlottingUtil.equalFuzzy(0,a))u&&(n=t[c-1],c--,i.push(n),s=0,r=2*Math.PI,u=!1,p=!1,h=!1);else{var y=(t[c].x-n.x)/a,f=(t[c].y-n.y)/a;if(l=f>0||SuperMap.Plot.PlottingUtil.equalFuzzy(0,f)?Math.acos(y):2*Math.PI-Math.acos(y),r>2*Math.PI&&l+2*Math.PI<r?(l+=2*Math.PI,s<0&&(s+=2*Math.PI)):s<0&&l-2*Math.PI>s&&(l-=2*Math.PI,r>2*Math.PI&&(r-=2*Math.PI)),l>s&&l<r||SuperMap.Plot.PlottingUtil.equalFuzzy(0,l-s)||SuperMap.Plot.PlottingUtil.equalFuzzy(0,l-r)){var S=Math.atan(e/a);p?s<l-S&&(s=l-S):(p=!0,s=l-S),h?r>l+S&&(r=l+S):(h=!0,r=l+S),u=!0}else n=t[c-1],c--,i.push(n),s=0,r=2*Math.PI,u=!1,p=!1,h=!1}return i.push(t[o-1]),i}return i}},{key:"reSampleByAngle",value:function(t,e){var i=[],o=t.length;if(null==t||o<=0||e<=0)return i;for(var n=t,l=o,a=!1;SuperMap.Plot.PlottingUtil.equalFuzzy(n[0].x,n[l-1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(n[0].y,n[l-1].y);){if((l-=1)<=0)return i;a=!0}var s,r,u=[];for(s=0;s<l;s++)u.push(0);for(u[0]=1,u[l-1]=1,r=0,s=1;s<l-1;s++)if(SuperMap.Plot.PlottingUtil.distance(n[r],n[s])>1e-10&&SuperMap.Plot.PlottingUtil.distance(n[r],n[s+1])>1e-10){var p=180*SuperMap.Plot.PlottingUtil.InnerAngle(n[s],n[r],n[s+1])/Math.PI;p>e&&p<180-e&&(u[s]=1,r++)}var h=0;for(s=0;s<l;s++)1==u[s]&&h++;if(h>0){for(a&&h++,i=[],r=0,s=0;s<l;s++)1==u[s]&&(i[r++]=n[s]);return a&&(i[r]=i[0]),i}return i}}]),e}();SuperMap.Plot.FreeCurve=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.CombinationalCircle=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.angleRange=[],i.defaultRadius=t.defaultRadius?t.defaultRadius:60,i.CLASS_NAME="SuperMap.Plot.CombinationalCircle",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){if(this.init(),this.controlPoints=SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints),!(null==this.controlPoints||this.controlPoints.length<1)){var t=this.getCircleLonLat(this.controlPoints[0],this.defaultRadius);this.angleRange=[];for(var e=0;e<this.controlPoints.length;e++)null==this.scaleValues[e]&&(this.scaleValues[e]=t),this.angleRange.push([{Start:0,End:360}]);for(var i=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=0;o<i.length;o++)if(0!==this.angleRange[o].length&&(0!==this.angleRange[o][0].Start||0!==this.angleRange[o][0].End))for(var n=o+1;n<i.length;n++)if(0!==this.angleRange[n].length&&(0!==this.angleRange[n][0].Start||0!==this.angleRange[n][0].End)){var l=SuperMap.Plot.PlottingUtil.distance(i[o],i[n]);if(l<this.scaleValues[o]+this.scaleValues[n])if(l>Math.abs(this.scaleValues[o]-this.scaleValues[n]))for(var a=0;a<2;a++){var s,r,u;0==a?(u=o,s=SuperMap.Plot.PlottingUtil.radian(i[o],i[n])*SuperMap.Plot.PlottingUtil.RTOD,r=Math.acos((l*l+this.scaleValues[o]*this.scaleValues[o]-this.scaleValues[n]*this.scaleValues[n])/(2*l*this.scaleValues[o]))*SuperMap.Plot.PlottingUtil.RTOD):(u=n,s=SuperMap.Plot.PlottingUtil.radian(i[n],i[o])*SuperMap.Plot.PlottingUtil.RTOD,r=Math.acos((l*l+this.scaleValues[n]*this.scaleValues[n]-this.scaleValues[o]*this.scaleValues[o])/(2*l*this.scaleValues[n]))*SuperMap.Plot.PlottingUtil.RTOD);var p=s-r,h=s+r,c=p<0&&h>0||p>360||h>360;p=this.adjustAngle(p),h=this.adjustAngle(h);for(var y=this.angleRange[u].length-1;y>=0;y--)if(c){if(h>this.angleRange[u][y].End||SuperMap.Plot.PlottingUtil.equalFuzzy(h,this.angleRange[u][y].End)){this.angleRange[u].splice(y,1);continue}if(h>this.angleRange[u][y].Start&&(this.angleRange[u][y].Start=h),p<this.angleRange[u][y].Start||SuperMap.Plot.PlottingUtil.equalFuzzy(p,this.angleRange[u][y].Start)){this.angleRange[u].splice(y,1);continue}p<this.angleRange[u][y].End&&(this.angleRange[u][y].End=p)}else if(p<this.angleRange[u][y].Start&&h>this.angleRange[u][y].End)this.angleRange[u].splice(y,1);else if(p>this.angleRange[u][y].Start&&h<this.angleRange[u][y].End)this.angleRange[u].push({Start:this.angleRange[u][y].Start,End:p}),this.angleRange[u].push({Start:h,End:this.angleRange[u][y].End}),this.angleRange[u].splice(y,1);else{if(p>this.angleRange[u][y].End)continue;if(p>this.angleRange[u][y].Start&&(this.angleRange[u][y].End=p),h<this.angleRange[u][y].Start)continue;h<this.angleRange[u][y].End&&(this.angleRange[u][y].Start=h)}}else{if(this.scaleValues[o]<this.scaleValues[n]){this.angleRange[o][0].Start=0,this.angleRange[o][0].End=0;break}this.angleRange[n][0].Start=0,this.angleRange[n][0].End=0}}for(var f=[],S=0;S<i.length;S++)if(0!==this.angleRange[S].length&&(0!==this.angleRange[S][0].Start||0!==this.angleRange[S][0].End))for(var g=this.angleRange[S].length-1;g>=0;g--){for(var P=this.adjustAngle(this.angleRange[S][g].Start),d=this.adjustAngle(this.angleRange[S][g].End);d<P;)d+=360;if(d-P==360)this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[i[S],new SuperMap.Geometry.Point(i[S].x,i[S].y+this.scaleValues[S])]);else{for(var m=[],b=(d-P)/72,L=P;L<d+b/2;L+=b){var M=i[S].x+this.scaleValues[S]*Math.cos(L*SuperMap.Plot.PlottingUtil.DTOR),v=i[S].y+this.scaleValues[S]*Math.sin(L*SuperMap.Plot.PlottingUtil.DTOR);m.push(new SuperMap.Geometry.Point(M,v))}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m),f.push(m)}}for(var T=[];0!==f.length;){var A=f[0];f.splice(0,1),void 0!==(A=this.generatePolygon(f,A))&&T.push(A)}for(var _=[],O=0;O<T.length;O++)_.push(T[O]);for(var x=_.length-1;x>=0;x--)for(var w=0;w<_[x].length;w++){for(var I in _)if(parseInt(I)!==x){var D=_[I];if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(D,_[x][w])){var E=x,C=parseInt(I);_[C].push(_[C][0]),_[E].push(_[E][0]),_[C]=_[C].concat(_[E]),_.splice(E,1);break}}if(!isNaN(E)&&!isNaN(C))break}for(var R=0;R<_.length;R++){var N={type:SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,positionPoints:_[R],style:{surroundLineFlag:!1,lineWidthLimit:!0,weight:0,strokeWidth:0}};this.components.splice(0,0,N)}for(var U=0;U<i.length;U++){var G=new SuperMap.Geometry.Point(i[U].x+this.scaleValues[U],i[U].y);G.isScalePoint=!0,G.tag=U,this.addScalePoint(G)}}}},{key:"generatePolygon",value:function(t,e){if(0===t.length||SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].x,e[e.length-1].x,1e-7)&&SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].y,e[e.length-1].y,1e-7))return e;for(var i,o=e[e.length-1],n=0;n<t.length;n++)if(SuperMap.Plot.PlottingUtil.equalFuzzy(t[n][0].x,o.x,1e-7)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[n][0].y,o.y,1e-7)){if(e=e.concat(t[n]),t.splice(n,1),void 0!==(i=this.generatePolygon(t,e))&&0!==i.length)return i}else if(SuperMap.Plot.PlottingUtil.equalFuzzy(t[n][t[n].length-1].x,o.x,1e-7)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[n][t[n].length-1].y,o.y,1e-7)){for(var l=t[n].length-1;l>=0;l--)e.push(t[n][l]);if(t.splice(n,1),void 0!==(i=this.generatePolygon(t,e))&&0!==i.length)return i}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>=this.controlPoints.length)return;var i=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=SuperMap.Plot.PlottingUtil.distance(i[t],e);this.scaleValues[t]=o}this.calculateParts()}},{key:"adjustAngle",value:function(t){for(;t>360;)t-=360;for(;t<0;)t+=360;return t}},{key:"getCircleLonLat",value:function(t,e){return null===this.map?2*this.getDefaultSubSymbolSize():this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map?((i=this.map.latLngToLayerPoint(L.latLng(t.y,t.x))).x+=e,this.map.layerPointToLatLng(L.point(i.x,i.y)).lng-t.x):this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map?((i=this.map.getPixelFromLonLat(new SuperMap.LonLat(t.x,t.y))).x+=e,this.map.getLonLatFromPixel(new SuperMap.Pixel(i.x,i.y)).lon-t.x):void 0;var i}}]),e}();SuperMap.Plot.CombinationalCircle=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.ConcentricCircle=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return void 0===i.scaleValues[0]&&(i.scaleValues[0]=0),void 0===i.scaleValues[1]&&(i.scaleValues[1]=360),i.CLASS_NAME="SuperMap.Plot.ConcentricCircle",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!(null==(t=SuperMap.Plot.PlottingUtil.clearSamePts(t))||t.length<2)){for(2==t.length&&t.push(t[1].clone());this.scaleValues[0]>360;)this.scaleValues[0]-=360;for(;this.scaleValues[0]<0;)this.scaleValues[0]+=360;for(;this.scaleValues[1]>360;)this.scaleValues[1]-=360;for(;this.scaleValues[1]<0;)this.scaleValues[1]+=360;for(;this.scaleValues[1]<=this.scaleValues[0];)this.scaleValues[1]+=360;for(var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),i=SuperMap.Plot.PlottingUtil.distance(t[0],t[2]),o=[],n=[],l=Math.PI/180,a=(this.scaleValues[1]-this.scaleValues[0])/72,s=this.scaleValues[0];s<this.scaleValues[1]+a/2;s+=a){var r=t[0].x+e*Math.cos(s*l),u=t[0].y+e*Math.sin(s*l),p=t[0].x+i*Math.cos(s*l),h=t[0].y+i*Math.sin(s*l);o.push(new SuperMap.Geometry.Point(r,u)),n.push(new SuperMap.Geometry.Point(p,h))}for(var c=[],y=0;y<o.length;y++)c.push(o[y]);for(var f=n.length-1;f>=0;f--)c.push(n[f]);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,c,{surroundLineFlag:!1,lineWidthLimit:!0,weight:0,strokeWidth:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var S=t[0].x+e/2*Math.cos(this.scaleValues[0]*l),g=t[0].y+e/2*Math.sin(this.scaleValues[0]*l),P=t[0].x+i/2*Math.cos(this.scaleValues[1]*l),d=t[0].y+i/2*Math.sin(this.scaleValues[1]*l),m=new SuperMap.Geometry.Point(S,g);m.isScalePoint=!0,m.tag=0,this.addScalePoint(m);var b=new SuperMap.Geometry.Point(P,d);b.isScalePoint=!0,b.tag=1,this.addScalePoint(b)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){for(var i=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=180*SuperMap.Plot.PlottingUtil.radian(i[0],e)/Math.PI;o>360;)o-=360;for(;o<0;)o+=360;0==t?this.scaleValues[0]=o:1==t&&(this.scaleValues[1]=o)}this.calculateParts()}}]),e}();SuperMap.Plot.ConcentricCircle=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.SymbolTextBox=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.roundBox=!!t.roundBox&&t.roundBox,i.textBoxType=t.textBoxType?t.textBoxType:SuperMap.Plot.TextBoxType.WITHTIPBOX,0===i.scaleValues.length&&(i.scaleValues.push(.126),i.scaleValues.push(0),i.scaleValues.push(0)),i.CLASS_NAME="SuperMap.Plot.SymbolTextBox",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"destroy",value:function(){this.roundBox=null,this.textBoxType=null,function t(e,i,o){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,i);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,i,o)}if("value"in n)return n.value;var a=n.get;return void 0!==a?a.call(o):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=this.scaleValues[0];if(!(t<0||t>1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,i,o,n;this.scalePoints=[];var l=[];this.controlPoints[0].x<this.controlPoints[1].x?(e=this.controlPoints[0].x,o=this.controlPoints[1].x):(e=this.controlPoints[1].x,o=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(n=this.controlPoints[0].y,i=this.controlPoints[1].y):(n=this.controlPoints[1].y,i=this.controlPoints[0].y);var a=1,s=2,r=3,u=4;if(this.roundBox){var p=Math.max(e,o),h=Math.min(e,o),c=Math.max(i,n),y=Math.min(i,n),f=.1*Math.min(Math.abs(e-o),Math.abs(i-n)),S=new SuperMap.Geometry.Point(h+f,y+f),g=new SuperMap.Geometry.Point(h+f,c-f),P=new SuperMap.Geometry.Point(p-f,c-f),d=new SuperMap.Geometry.Point(p-f,y+f),m=this.calculateArc(S,f,3*Math.PI/2,Math.PI,-1,180),b=this.calculateArc(g,f,Math.PI,Math.PI/2,-1,180),L=this.calculateArc(P,f,Math.PI/2,0,-1,180),M=this.calculateArc(d,f,2*Math.PI,3*Math.PI/2,-1,180);a=m.length,s=m.length+b.length,r=m.length+b.length+L.length,u=m.length+b.length+L.length+M.length,l=m.concat(b,L,M)}else l.push(new SuperMap.Geometry.Point(e,n)),l.push(new SuperMap.Geometry.Point(e,i)),l.push(new SuperMap.Geometry.Point(o,i)),l.push(new SuperMap.Geometry.Point(o,n));this.isEdit||(this.scaleValues[1]=e+.1*(o-e),this.scaleValues[2]=n+-.3*(i-n));var v=new SuperMap.Geometry.Point(this.scaleValues[1],this.scaleValues[2]),T=this.getAction(this.scaleValues[1],this.scaleValues[2],e,i,o,n);if(this.textBoxType===SuperMap.Plot.TextBoxType.WITHTIPBOX)switch(this.addScalePoint(v,0),T){case 0:break;case 1:this.addScalePoint(new SuperMap.Geometry.Point(e,i-(i-n)*t)),l.splice(a,0,new SuperMap.Geometry.Point(e,i-(i-n)*t)),l.splice(a,0,v),l.splice(a,0,new SuperMap.Geometry.Point(e,n+(i-n)*t));break;case 2:this.addScalePoint(new SuperMap.Geometry.Point(o-(o-e)*t,i)),l.splice(s,0,new SuperMap.Geometry.Point(o-(o-e)*t,i)),l.splice(s,0,v),l.splice(s,0,new SuperMap.Geometry.Point(e+(o-e)*t,i));break;case 3:this.addScalePoint(new SuperMap.Geometry.Point(o,i-(i-n)*t)),l.splice(r,0,new SuperMap.Geometry.Point(o,n+(i-n)*t)),l.splice(r,0,v),l.splice(r,0,new SuperMap.Geometry.Point(o,i-(i-n)*t));break;case 4:this.addScalePoint(new SuperMap.Geometry.Point(o-(o-e)*t,n)),l.splice(u,0,new SuperMap.Geometry.Point(e+(o-e)*t,n)),l.splice(u,0,v),l.splice(u,0,new SuperMap.Geometry.Point(o-(o-e)*t,n))}if(0!==l.length)if(this.textBoxType===SuperMap.Plot.TextBoxType.NONEBOX){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,{surroundLineFlag:!1,weight:0,lineWidthLimit:!0})}else this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l)}else this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,this.controlPoints);this.annotationContent(e,i,o,n),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint)if(0===t)this.scaleValues[1]=e.x,this.scaleValues[2]=e.y;else if(1===t){var i,o,n,l,a,s,r=this.scalePoints[0];this.controlPoints[0].x<this.controlPoints[1].x?(i=this.controlPoints[0].x,n=this.controlPoints[1].x):(i=this.controlPoints[1].x,n=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(l=this.controlPoints[0].y,o=this.controlPoints[1].y):(l=this.controlPoints[1].y,o=this.controlPoints[0].y),a=this.scaleValues[1],s=this.scaleValues[2];var u=(o-l)/(n-i),p=.25;switch(a<i?s>o?Math.abs((s-o)/(a-i))>u?2:1:s<l&&Math.abs((s-l)/(a-i))>u?4:1:a>n?s>o?Math.abs((s-o)/(a-n))>u?2:3:s<l&&Math.abs((s-l)/(a-n))>u?4:3:s>o?2:s<l?4:0){case 1:case 3:var h=r.y+(e.y-r.y);h>o&&(h=o),h<(o+l)/2&&(h=(o+l)/2),p=1-2*(o-h)/(o-l);break;case 2:case 4:var c=r.x+(e.x-r.x);c>n&&(c=n),c<(i+n)/2&&(c=(i+n)/2),p=1-2*(n-c)/(n-i)}p<0&&(p=0),p>1&&(p=1),this.scaleValues[0]=p}this.calculateParts()}},{key:"calculateArc",value:function(t,e,i,o,n,l){(!n||1!=n&&-1!=n)&&(n=-1),l||(l=360);for(var a=Math.PI/l/2,s=a*n,r=Math.abs(o-i),u=[],p=i,h=0;h<r;h+=a){var c=new SuperMap.Geometry.Point(Math.cos(p)*e+t.x,Math.sin(p)*e+t.y);u.push(c),p=(p=(p+=s)<0?p+2*Math.PI:p)>2*Math.PI?p-2*Math.PI:p}return u}},{key:"getAction",value:function(t,e,i,o,n,l){var a=(o-l)/(n-i);return t<i?e>o?Math.abs((e-o)/(t-i))>a?2:1:e<l&&Math.abs((e-l)/(t-i))>a?4:1:t>n?e>o?Math.abs((e-o)/(t-n))>a?2:3:e<l&&Math.abs((e-l)/(t-n))>a?4:3:e>o?2:e<l?4:0}}]),e}();SuperMap.Plot.SymbolTextBox=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.GeoTooltipBoxM=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&(i.scaleValues.push(0),i.scaleValues.push(0),i.scaleValues.push(0),i.scaleValues.push(0)),i.CLASS_NAME="SuperMap.Plot.GeoTooltipBoxM",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"destroy",value:function(){(function t(e,i,o){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,i);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,i,o)}if("value"in n)return n.value;var a=n.get;return void 0!==a?a.call(o):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destory",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=this.minEditPts){var e,i,o,n;t[0].x<t[1].x?(e=t[0].x,o=t[1].x):(e=t[1].x,o=t[0].x),t[0].y<t[1].y?(n=t[0].y,i=t[1].y):(n=t[1].y,i=t[0].y),this.scalePoints=[];var l=[];l.push(new SuperMap.Geometry.Point(e,n)),l.push(new SuperMap.Geometry.Point(e,i)),l.push(new SuperMap.Geometry.Point(o,i)),l.push(new SuperMap.Geometry.Point(o,n)),this.isEdit||(this.scaleValues[0]=e,this.scaleValues[1]=n-.3*(i-n),this.scaleValues[2]=e+.5*(o-e),this.scaleValues[3]=n-.3*(i-n));for(var a=[],s=[],r=0;r<this.scaleValues.length/2;r++)a.push(this.getAction(this.scaleValues[2*r],this.scaleValues[2*r+1],e,i,o,n)),s.push(new SuperMap.Geometry.Point(this.scaleValues[2*r],this.scaleValues[2*r+1]));for(var u,p,h,c,y=s.length,f=[],S=[],g=[],P=[],d=[],m=0;m<a.length;m++)0===a[m]&&f.push(s[m]),1===a[m]&&S.push(s[m]),2===a[m]&&g.push(s[m]),3===a[m]&&P.push(s[m]),4===a[m]&&d.push(s[m]);var b=a.slice();b.sort();var L=new SuperMap.Geometry.Point(0,0);if(b[0]===b[b.length-1]&&0!==b[0]){var M=[];switch(b[0]){case 0:break;case 1:u=1/(2*S.length+1);for(var v=new SuperMap.Geometry.Point,T=0;T<2*S.length;T++)v=new SuperMap.Geometry.Point(e,n+(i-n)*u*(T+1)),M.unshift(v);break;case 2:p=1/(2*g.length+1);for(var A=new SuperMap.Geometry.Point,_=0;_<2*g.length;_++)A=new SuperMap.Geometry.Point(e+(o-e)*p*(_+1),i),M.unshift(A);break;case 3:h=1/(2*P.length+1);for(var O=new SuperMap.Geometry.Point,x=0;x<2*P.length;x++)O=new SuperMap.Geometry.Point(o,n+(i-n)*h*(x+1)),M.push(O);break;case 4:c=1/(2*d.length+1);for(var w=new SuperMap.Geometry.Point,I=0;I<2*d.length;I++)w=new SuperMap.Geometry.Point(e+(o-e)*c*(I+1),n),M.push(w)}for(var D=0;D<y;D++)for(var E=0;E<y;E++){var C=SuperMap.Plot.PlottingUtil.intersectLineSegs(M[2*D+1],s[D],M[2*E],s[E],L);if(C&&SuperMap.Plot.PlottingUtil.equalFuzzy(L.x,M[2*D+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(L.y,M[2*D+1].y)&&(C=!1),C){var R=s[E].clone();s[E]=s[D],s[D]=R}}for(var N=0;N<y;N++)l.splice(b[0],0,M[2*N]),l.splice(b[0],0,s[N]),l.splice(b[0],0,M[2*N+1])}else{for(var U,G,B=[],k=[],F=[],z=[],j=0;j<a.length;j++)switch(a[j]){case 0:break;case 1:u=1/(2*S.length+1);for(var Y=0;Y<2*S.length;Y++){var V=new SuperMap.Geometry.Point(e,n+(i-n)*u*(Y+1));B.unshift(V)}for(var W=0;W<S.length;W++)for(var H=1;H<S.length;H++)(U=SuperMap.Plot.PlottingUtil.intersectLineSegs(B[2*W+1],S[W],B[2*H],S[H],L))&&SuperMap.Plot.PlottingUtil.equalFuzzy(L.x,B[2*W+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(L.y,B[2*W+1].y)&&(U=!1),U&&(G=S[H].clone(),S[H]=S[W],S[W]=G);break;case 2:p=1/(2*g.length+1);for(var X=0;X<2*g.length;X++){var J=new SuperMap.Geometry.Point(e+(o-e)*p*(X+1),i);k.unshift(J)}for(var q=0;q<g.length;q++)for(var Z=1;Z<g.length;Z++)(U=SuperMap.Plot.PlottingUtil.intersectLineSegs(k[2*q+1],g[q],k[2*Z],g[Z],L))&&SuperMap.Plot.PlottingUtil.equalFuzzy(L.x,k[2*q+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(L.y,k[2*q+1].y)&&(U=!1),U&&(G=g[Z].clone(),g[Z]=g[q],g[q]=G);break;case 3:h=1/(2*P.length+1);for(var K=0;K<2*P.length;K++){var Q=new SuperMap.Geometry.Point(o,n+(i-n)*h*(K+1));F.push(Q)}for(var $=0;$<P.length;$++)for(var tt=1;tt<P.length;tt++)(U=SuperMap.Plot.PlottingUtil.intersectLineSegs(F[2*$+1],P[$],F[2*tt],P[tt],L))&&SuperMap.Plot.PlottingUtil.equalFuzzy(L.x,F[2*$+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(L.y,F[2*$+1].y)&&(U=!1),U&&(G=P[tt].clone(),P[tt]=P[$],P[$]=G);break;case 4:c=1/(2*d.length+1);for(var et=0;et<2*d.length;et++){var it=new SuperMap.Geometry.Point(e+(o-e)*c*(et+1),n);z.push(it)}for(var ot=0;ot<d.length;ot++)for(var nt=1;nt<d.length;nt++)(U=SuperMap.Plot.PlottingUtil.intersectLineSegs(z[2*ot+1],d[ot],z[2*nt],d[nt],L))&&SuperMap.Plot.PlottingUtil.equalFuzzy(L.x,z[2*ot+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(L.y,z[2*ot+1].y)&&(U=!1),U&&(G=d[nt].clone(),d[nt]=d[ot],d[ot]=G)}for(var lt=0;lt<d.length;lt++)l.splice(4,0,z[2*lt]),l.splice(4,0,d[lt]),l.splice(4,0,z[2*lt+1]);for(var at=0;at<P.length;at++)l.splice(3,0,F[2*at]),l.splice(3,0,P[at]),l.splice(3,0,F[2*at+1]);for(var st=0;st<g.length;st++)l.splice(2,0,k[2*st]),l.splice(2,0,g[st]),l.splice(2,0,k[2*st+1]);for(var rt=0;rt<S.length;rt++)l.splice(1,0,B[2*rt]),l.splice(1,0,S[rt]),l.splice(1,0,B[2*rt+1])}for(var ut=0;ut<s.length;ut++)this.addScalePoint(s[ut],ut)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l),this.annotationContent(e,i,o,n),this.finish()}},{key:"modifyPoint",value:function(t,e){!0===e.isScalePoint&&(null==t&&void 0===t||(this.scaleValues[2*t]=e.x,this.scaleValues[2*t+1]=e.y)),this.calculateParts()}},{key:"getAction",value:function(t,e,i,o,n,l){var a=(o-l)/(n-i);return t<i?e>o?Math.abs((e-o)/(t-i))>a?2:1:e<l&&Math.abs((e-l)/(t-i))>a?4:1:t>n?e>o?Math.abs((e-o)/(t-n))>a?2:3:e<l&&Math.abs((e-l)/(t-n))>a?4:3:e>o?2:e<l?4:0}}]),e}();SuperMap.Plot.GeoTooltipBoxM=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.GeoTooltipBox=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&i.scaleValues.push(.126),i.CLASS_NAME="SuperMap.Plot.GeoTooltipBox",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"destroy",value:function(){(function t(e,i,o){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,i);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,i,o)}if("value"in n)return n.value;var a=n.get;return void 0!==a?a.call(o):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=this.scaleValues[0];if(!(t<0||t>1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,i,o,n,l,a;this.controlPoints[2]&&(this.controlPoints[2].isFixedPos=!0),this.controlPoints[0].x<this.controlPoints[1].x?(e=this.controlPoints[0].x,o=this.controlPoints[1].x):(e=this.controlPoints[1].x,o=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(n=this.controlPoints[0].y,i=this.controlPoints[1].y):(n=this.controlPoints[1].y,i=this.controlPoints[0].y),l=this.controlPoints[2].x,a=this.controlPoints[2].y;var s=0,r=(i-n)/(o-e);s=l<e?a>i?Math.abs((a-i)/(l-e))>r?2:1:a<n&&Math.abs((a-n)/(l-e))>r?4:1:l>o?a>i?Math.abs((a-i)/(l-o))>r?2:3:a<n&&Math.abs((a-n)/(l-o))>r?4:3:a>i?2:a<n?4:0,this.scalePoints=[];var u=[];switch(u.push(new SuperMap.Geometry.Point(e,n)),u.push(new SuperMap.Geometry.Point(e,i)),u.push(new SuperMap.Geometry.Point(o,i)),u.push(new SuperMap.Geometry.Point(o,n)),s){case 0:break;case 1:this.addScalePoint(new SuperMap.Geometry.Point(e,i-(i-n)*t)),u.splice(s,0,new SuperMap.Geometry.Point(e,i-(i-n)*t)),u.splice(s,0,this.controlPoints[2].clone()),u.splice(s,0,new SuperMap.Geometry.Point(e,n+(i-n)*t));break;case 2:this.addScalePoint(new SuperMap.Geometry.Point(o-(o-e)*t,i)),u.splice(s,0,new SuperMap.Geometry.Point(o-(o-e)*t,i)),u.splice(s,0,this.controlPoints[2].clone()),u.splice(s,0,new SuperMap.Geometry.Point(e+(o-e)*t,i));break;case 3:this.addScalePoint(new SuperMap.Geometry.Point(o,i-(i-n)*t)),u.splice(s,0,new SuperMap.Geometry.Point(o,n+(i-n)*t)),u.splice(s,0,this.controlPoints[2].clone()),u.splice(s,0,new SuperMap.Geometry.Point(o,i-(i-n)*t));break;case 4:this.addScalePoint(new SuperMap.Geometry.Point(o-(o-e)*t,n)),u.splice(s,0,new SuperMap.Geometry.Point(e+(o-e)*t,n)),u.splice(s,0,this.controlPoints[2].clone()),u.splice(s,0,new SuperMap.Geometry.Point(o-(o-e)*t,n))}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,u),this.annotationContent(e,i,o,n)}this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint&&0==t){var i,o,n,l,a,s,r=this.scalePoints[0];this.controlPoints[0].x<this.controlPoints[1].x?(i=this.controlPoints[0].x,n=this.controlPoints[1].x):(i=this.controlPoints[1].x,n=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(l=this.controlPoints[0].y,o=this.controlPoints[1].y):(l=this.controlPoints[1].y,o=this.controlPoints[0].y),a=this.controlPoints[2].x,s=this.controlPoints[2].y;var u=(o-l)/(n-i),p=.25;switch(a<i?s>o?Math.abs((s-o)/(a-i))>u?2:1:s<l&&Math.abs((s-l)/(a-i))>u?4:1:a>n?s>o?Math.abs((s-o)/(a-n))>u?2:3:s<l&&Math.abs((s-l)/(a-n))>u?4:3:s>o?2:s<l?4:0){case 1:case 3:var h=r.y+(e.y-r.y);h>o&&(h=o),h<(o+l)/2&&(h=(o+l)/2),p=1-2*(o-h)/(o-l);break;case 2:case 4:var c=r.x+(e.x-r.x);c>n&&(c=n),c<(i+n)/2&&(c=(i+n)/2),p=1-2*(n-c)/(n-i)}p<0&&(p=0),p>1&&(p=1),this.scaleValues[0]=p}this.calculateParts()}}]),e}();SuperMap.Plot.GeoTooltipBox=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.Trapezoid=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.CLASS_NAME="SuperMap.Plot.Trapezoid",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=[],i=t[0],o=t[1],n=t[2],l=new SuperMap.Geometry.Point(0,0);this.GetPointsByTrapezoid(1,n,o,i,l),e.push(i),e.push(o),e.push(n),e.push(l);var a=SuperMap.Plot.PlottingUtil.intersectLines(i,o,n,l),s=a.intersectPoint;a.isIntersectLines&&(s.x>i.x&&s.x<o.x||s.y>i.y&&s.y<o.y||s.x<i.x&&s.x>o.x||s.y<i.y&&s.y>o.y)&&(e[0]=l,e[3]=i),4==e.length&&this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e)}}},{key:"GetPointsByTrapezoid",value:function(t,e,i,o,n){var l=e.x,a=e.y,s=i.x,r=i.y,u=o.x,p=o.y,h=0,c=0,y=0,f=0;if(SuperMap.Plot.PlottingUtil.equalFuzzy(Math.abs(a-r),0))h=l+s-u,c=p;else if(SuperMap.Plot.PlottingUtil.equalFuzzy(Math.abs(l-s),0))h=u,c=a+r-p;else{var S=1*(a-r)/(l-s),g=p-S*u;c=S*(h=((r+a)/2+(l+s)/(2*S)-g)/(S+1/S))+g,h=2*h-u,c=2*c-p}var P=Math.sqrt(1*(l-s)*(l-s)+1*(a-r)*(a-r)),d=Math.sqrt(1*(l-h)*(l-h)+1*(a-c)*(a-c));P>0?(y=l+(s-l)*d/P,f=a+(r-a)*d/P):(y=l,f=a);var m=y+(h-y)*t,b=f+(c-f)*t;n.x=m,n.y=b}}]),e}();SuperMap.Plot.Trapezoid=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.Brace=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&(i.scaleValues.push(.1),i.scaleValues.push(.1)),i.CLASS_NAME="SuperMap.Plot.Brace",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],i=t[1],o=SuperMap.Plot.PlottingUtil.distance(e,i);this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(.1));for(var n=this.scaleValues[0],l=this.scaleValues[1],a=new SuperMap.Geometry.Point(o*n,o*n),s=new SuperMap.Geometry.Point(o*(.5-l/2),0),r=new SuperMap.Geometry.Point(.5*o,-o*l),u=new SuperMap.Geometry.Point(o*(.5+l/2),0),p=new SuperMap.Geometry.Point(o*(1-n),o*n),h=[],c=180*Math.PI/180,y=270*Math.PI/180,f=3*Math.PI/180,S=c;S<=y;S+=f){var g=new SuperMap.Geometry.Point(a.x+o*n,a.y);g=SuperMap.Plot.PlottingUtil.rotateAngle(a,S,g),h.push(g)}h.push(s),h.push(r),h.push(u),c=270*Math.PI/180,y=360*Math.PI/180;for(var P=c;P<=y;P+=f){var d=new SuperMap.Geometry.Point(p.x+o*n,p.y);d=SuperMap.Plot.PlottingUtil.rotateAngle(p,P,d),h.push(d)}for(var m=SuperMap.Plot.PlottingUtil.radian(e,i),b=[],L=0;L<h.length;L++){var M=new SuperMap.Geometry.Point(h[L].x+e.x,h[L].y+e.y);M=SuperMap.Plot.PlottingUtil.rotateAngle(e,m,M),b.push(M)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b),this.scalePoints=[];var v=new SuperMap.Geometry.Point(o*n,0),T=new SuperMap.Geometry.Point(v.x+e.x,v.y+e.y);(T=SuperMap.Plot.PlottingUtil.rotateAngle(e,m,T)).isScalePoint=!0,T.tag=0,this.addScalePoint(T);var A=new SuperMap.Geometry.Point(r.x+e.x,r.y+e.y);SuperMap.Plot.PlottingUtil.rotateAngle(e,m,A),A.isScalePoint=!0,A.tag=1,this.addScalePoint(A)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var i=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=SuperMap.Plot.PlottingUtil.distance(i[0],i[1]);if(0==t){var n=SuperMap.Plot.PlottingUtil.distance(i[0],e)/o;n>0&&n<.4&&(this.scaleValues[0]=n)}else if(1==t){var l=new SuperMap.Geometry.Point((i[0].x+i[1].x)/2,(i[0].y+i[1].y)/2),a=SuperMap.Plot.PlottingUtil.distance(e,l)/o;0<a&&.2>a&&(this.scaleValues[1]=a)}}this.calculateParts()}}]),e}();SuperMap.Plot.Brace=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.RegularPolygon=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===i.scaleValues.length&&i.scaleValues.push(1),i.CLASS_NAME="SuperMap.Plot.RegularPolygon",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){if(this.init(),!(this.controlPoints.length<this.minEditPts)){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),e=this.controlPoints.length+1,i=2*Math.PI/e;if(!this.isEdit){var o=this.controlPoints[this.controlPoints.length-1],n=new SuperMap.Geometry.Point(this.controlPoints[this.controlPoints.length-1].x,this.controlPoints[this.controlPoints.length-1].y);SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],i,n),this.scaleValues[0]=SuperMap.Plot.PlottingUtil.distance(t[0],this.calculateMidPt(o,n))/SuperMap.Plot.PlottingUtil.distance(t[0],t[t.length-1])}var l=[],a=this.controlPoints[this.controlPoints.length-1].clone();l.push(a.clone()),a=SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],i/2,a);var s=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(this.scaleValues[0],this.controlPoints[0],a);l.push(s);for(var r=1;r<e;r++)a=SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],i/2,a),l.push(a.clone()),a=SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],i/2,a),s=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(this.scaleValues[0],this.controlPoints[0],a),l.push(s);var u=l[1];this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,{surroundLineFlag:!1,fill:!1}),this.addScalePoint(u),this.finish()}}},{key:"calculateMidPt",value:function(t,e){return new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2)}},{key:"modifyPoint",value:function(t,e){if(0===t&&!0===e.isScalePoint){var i=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[this.controlPoints.length-1]),o=this.scalePoints[0],n=SuperMap.Plot.PlottingUtil.projectPoint(e,this.controlPoints[0],o),l=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],n);this.scaleValues[0]=l/i}this.calculateParts()}}]),e}();SuperMap.Plot.RegularPolygon=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.ArrowLine=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.arrowAngle=t.arrowAngle?t.arrowAngle:45,0===i.scaleValues.length&&(i.scaleValues.push(.3),i.scaleValues.push(0),i.scaleValues.push(0)),i.CLASS_NAME="SuperMap.Plot.ArrowLine",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){if(this.init(),!(null==this.controlPoints||this.controlPoints.length<this.minEditPts)){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);t=SuperMap.Plot.PlottingUtil.clearSamePts(t);var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var i=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue(i));var o,n=this.scaleValues[0]*i,l=this.arrowAngle*Math.PI/180/2,a=(o=e.length>2?SuperMap.Plot.PlottingUtil.radian(e[e.length-1],e[e.length-2]):SuperMap.Plot.PlottingUtil.radian(e[1],e[0]))-l,s=e[e.length-1].x+n*Math.cos(a),r=e[e.length-1].y+n*Math.sin(a),u=new SuperMap.Geometry.Point(s,r),p=o+l,h=e[e.length-1].x+n*Math.cos(p),c=e[e.length-1].y+n*Math.sin(p),y=new SuperMap.Geometry.Point(h,c),f=[];f.push(u),f.push(e[e.length-1].clone()),f.push(y);var S={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0},g=SuperMap.Plot.PlottingUtil.radian(e[0],e[1]);a=g-l,s=e[0].x+n*Math.cos(a),r=e[0].y+n*Math.sin(a),u=new SuperMap.Geometry.Point(s,r),p=g+l,h=e[0].x+n*Math.cos(p),c=e[0].y+n*Math.sin(p),y=new SuperMap.Geometry.Point(h,c);var P=[];P.push(u),P.push(e[0].clone()),P.push(y);var d=this.scaleValues[1]===SuperMap.Plot.ArrowLineType.DOUBLELINE?SuperMap.Plot.SymbolType.POLYLINESYMBOL:SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,m=this.scaleValues[2]===SuperMap.Plot.ArrowLineType.DOUBLELINE?SuperMap.Plot.SymbolType.POLYLINESYMBOL:SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL;this.scaleValues[1]===SuperMap.Plot.ArrowLineType.DOUBLELINE?this.addCell(d,P,S):this.scaleValues[1]===SuperMap.Plot.ArrowLineType.TRIANGLESOLID&&this.addCell(d,P,S),this.scaleValues[2]===SuperMap.Plot.ArrowLineType.DOUBLELINE?this.addCell(m,f,S):this.scaleValues[2]===SuperMap.Plot.ArrowLineType.TRIANGLESOLID&&this.addCell(m,f,S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}]),e}();SuperMap.Plot.ArrowLine=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.AlgoSymbol=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.style=null,this.libID=e.libID?e.libID:0,this.code=e.code?e.code:0,this.maxEditPts=e.maxEditPts?e.maxEditPts:SuperMap.Plot.AlgoSymbolFactory.getMaxEditPts(e.libID,e.code),this.minEditPts=e.minEditPts?e.minEditPts:SuperMap.Plot.AlgoSymbolFactory.getMinEditPts(e.libID,e.code),this.isEdit=!!e.isEdit&&e.isEdit,this.controlPoints=e.controlPoints?e.controlPoints:[],this.scalePoints=e.scalePoints?e.scalePoints:[],this.scaleValues=e.scaleValues?e.scaleValues:[],this.subSymbols=e.subSymbols?e.subSymbols:SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols(e.libID,e.code),this.polylineConnectLocationPoint=!!e.polylineConnectLocationPoint&&e.polylineConnectLocationPoint,this.style=e.style?e.style:SuperMap.Plot.PlottingUtil.copyAttributes(this.style,SuperMap.Plot.AlgoSymbolFactory.getDefaultStyle(e.libID,e.code)),this.textContent=e.textContent?e.textContent:"",this.map=e.map?e.map:null,this.scene=e.scene?e.scene:null,this.subSymbolDefaultPixelSize=e.subSymbolDefaultPixelSize?e.subSymbolDefaultPixelSize:30,this.components=[],this.symbolType=0===this.libID?this.code:2}return o(t,[{key:"addScalePoint",value:function(t,e){if(null!=t){void 0!==e&&null!==e||(e=this.scalePoints.length);var i=new SuperMap.Geometry.Point(t.x,t.y);i.isScalePoint=!0,i.tag=e,this.scalePoints.push(i)}}},{key:"setOptions",value:function(t){if(t)for(var e in this)t[e]&&(this[e]=t[e])}},{key:"getAlgorithmResult",value:function(t){t.components=this.components,t.scalePoints=this.scalePoints,t.scaleValues=this.scaleValues}}]),o(t,[{key:"destroy",value:function(){this.minEditPts=null,this.maxEditPts=null,this.controlPoints.length=0,this.controlPoints=null,this.scalePoints.length=0,this.scalePoints=null,this.scaleValues.length=0,this.scaleValues=null,this.subSymbols.length=0,this.subSymbols=null,this.subSymbolSize=0,this.components=[],this.style=null}},{key:"init",value:function(){if(this.components=[],this.scalePoints=[],this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),this.maxEditPts<this.controlPoints.length&&this.symbolType!==SuperMap.Plot.SymbolType.ELLIPSESYMBOL){var t=this.controlPoints.shift(),e=this.controlPoints.pop();this.controlPoints=[],this.controlPoints.push(t,e)}}},{key:"finish",value:function(){}},{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clonePoints(t),this.controlPoints.length>=this.minEditPts){var e={textContent:this.textContent,type:this.symbolType,surroundLineFlag:!1,positionPoints:t,style:{}};if(e.type===SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL&&e.positionPoints.push(e.positionPoints[0]),this.symbolType===SuperMap.Plot.SymbolType.PARALLELLINE){if(this.controlPoints&&this.controlPoints.length>=3){var i=!1;void 0!==this.controlPoints[0].z&&(i=!0);var o=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]);SuperMap.Plot.PlottingUtil.isRight(this.controlPoints[0],this.controlPoints[1],this.controlPoints[2])&&(o=-o);for(var n=[],l=1;l<this.controlPoints.length;l++)n.push(this.controlPoints[l].clone());var a=SuperMap.Plot.PlottingUtil.parallel(n,o);if(this.controlPoints[0].x=a[0].x,this.controlPoints[0].y=a[0].y,i)for(var s=0;s<n.length;s++)a[s].z=n[s].z;this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a)}}else this.components.push(e)}}},{key:"modifyPoint",value:function(t,e){if(0===this.libID&&31===this.code){if(0===t)return this.controlPoints[0].x=(this.controlPoints[1].x+this.controlPoints[3].x)/2,void(this.controlPoints[0].y=(this.controlPoints[1].y+this.controlPoints[3].y)/2);var i=-1;0===(i=(t+2)%4)&&(i=4);var o=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[t]),n=SuperMap.Plot.PlottingUtil.findPointInLine(this.controlPoints[0],this.controlPoints[i],o),l=new SuperMap.Geometry.Point(2*this.controlPoints[0].x-n.x,2*this.controlPoints[0].y-n.y),a=this.getPixelFromLonLat(n.x,n.y),s=this.getPixelFromLonLat(l.x,l.y),r=!1;(SuperMap.Plot.PlottingUtil.equalFuzzy(a.x-s.x,0)||SuperMap.Plot.PlottingUtil.equalFuzzy(a.y-s.y,0))&&(r=!0),r?(this.controlPoints[i].x=l.x,this.controlPoints[i].y=l.y,this.controlPoints[t].x=n.x,this.controlPoints[t].y=n.y):(this.controlPoints[i].x=n.x,this.controlPoints[i].y=n.y,this.controlPoints[t].x=l.x,this.controlPoints[t].y=l.y)}else this.computeScaleValues(t,e),this.calculateParts()}},{key:"computeScaleValues",value:function(){}},{key:"getLonLatDistanceFromPixel",value:function(t){if(null===this.map)return 0;var e,i;if(this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map){var o=this.map.layerPointToLatLng(L.point(0,0)),n=this.map.layerPointToLatLng(L.point(t,0));e=new SuperMap.Geometry.Point(o.lng,o.lat),i=new SuperMap.Geometry.Point(n.lng,n.lat)}else if(this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map){o=this.map.getLonLatFromPixel(new SuperMap.Pixel(0,0)),n=this.map.getLonLatFromPixel(new SuperMap.Pixel(t,0));e=new SuperMap.Geometry.Point(o.lon,o.lat),i=new SuperMap.Geometry.Point(n.lon,n.lat)}return SuperMap.Plot.PlottingUtil.distance(e,i)}},{key:"getPixelFromLonLat",value:function(t,e){if(this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map){var i=this.map.latLngToLayerPoint(L.latLng(e,t));return{x:i.x,y:i.y}}if(this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map){var o=this.map.getPixelFromLonLat(new SuperMap.LonLat(t,e));return{x:o.x,y:o.y}}}},{key:"getLonLatFromPixel",value:function(t,e){if(this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map){var i=this.map.layerPointToLatLng(L.point(t,e));return{lon:i.lng,lat:i.lat}}if(this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map){var o=this.map.getLonLatFromPixel(new SuperMap.Pixel(t,e));return{lon:o.lon,lat:o.lat}}}},{key:"pixelBoundsToLonLat",value:function(t){var e=this.getLonLatFromPixel(t.left,t.top),i=this.getLonLatFromPixel(t.right,t.bottom);return new SuperMap.Bounds(e.lon,i.lat,i.lon,e.lat)}},{key:"annotationContent",value:function(t,e,i,o){var n=this.textContent;if(0!==n.length){var l=SuperMap.Plot.PlottingUtil.getTextWidth(this.style,n),a=this.getPixelFromLonLat(t,e),s=this.getPixelFromLonLat(i,o),r=parseFloat(Math.abs(s.x-a.x)),u=parseFloat(Math.abs(a.y-s.y));if(l>=r){var p=n.split("");n="";var h=1,c=0;this.style.weight?c=parseFloat(this.style.fontSize)+2*this.style.weight+.2*parseFloat(this.style.fontSize)+h:this.style.strokeWidth&&(c=parseFloat(this.style.fontSize)+2*this.style.strokeWidth+.2*parseFloat(this.style.fontSize)+h);for(var y="",f=0,S=p.length;f<S&&c<=u;f++){if(y+=p[f],SuperMap.Plot.PlottingUtil.getTextWidth(this.style,y)>=r){var g=p[f];if(p[f]="\n",h++,this.style.weight?c=parseFloat(this.style.fontSize)*h+h+2*this.style.weight+.2*parseFloat(this.style.fontSize):this.style.strokeWidth&&(c=parseFloat(this.style.fontSize)*h+h+2*this.style.strokeWidth+.2*parseFloat(this.style.fontSize)),!(c<u))break;p[f]+=g,y=g}n+=p[f]}}if(0!==n.length){var P=this.style.labelAlign,d=0,m=0;"l"===P[0]?d=t:"r"===P[0]?d=i:"c"===P[0]&&(d=(t+i)/2),"t"===P[1]?m=e:"b"===P[1]?m=o:"m"===P[1]&&(m=(e+o)/2);var b=new SuperMap.Geometry.Point(d,m),L={};L.positionPoints=[b],L.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,L.textContent=n,L.style={surroundLineFlag:!1,labelAlign:P},this.components.push(L)}}}},{key:"addCell",value:function(t,e,i,o){if(t&&e){var n={};n.type=t,n.textContent=o,n.positionPoints=e,n.style=null==i?{surroundLineFlag:!1}:i,this.components.push(n)}}},{key:"addText",value:function(t,e,i,o,n){if(t&&e){var l={};l.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,l.textContent=t,l.positionPoints=[e];var a=i/t.length/2;l.style={},l.style.surroundLineFlag=!1,l.style.labelRotation=-o,l.style.fontSize=a,l.style.fontColor=void 0===n?"#000000":n,l.style.fontSizeLimit=!0,l.style.sizeFixed=!1,l.style.labelAlign="cm",l.style.label=t,this.components.push(l)}}},{key:"getLinePts",value:function(t,e,i){var o=new Object;if(e>.5)return o.startIndex=0,o.startPt=t[0],o.endIndex=t.length-1,o.endPt=t[t.length-1],o;null==i&&(i=.5);var n=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n*(i-e),t),a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n*(i+e),t);return o.startIndex=l.index,o.startPt=l.pts,o.endIndex=a.index,o.endPt=a.pts,o}},{key:"computeDashLine",value:function(t,e,i){var o=[],n=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(n<=0)return[];for(var l,a=i[0],s=1,r=0,u=!0,p=!0;r<n;){var h,c=[];c.push(a),r+=t;var y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(r,i);if(h=y.index,l=y.pts,!(u=y.bfind))break;if(s<h)for(var f=s;f<h;f++)c.push(i[f]);c.push(l),o.push(c),r+=e;var S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(r,i);if(h=S.index,a=S.pts,s=h+1,!(p=S.bfind))break}if(!u){var g=[];g.push(a);for(var P=s;P<i.length;P++)g.push(i[P]);2===g.length&&SuperMap.Plot.PlottingUtil.equalFuzzy(SuperMap.Plot.PlottingUtil.distance(g[0],g[1]),0)||o.push(g)}if(!p){var d=i[i.length-1],m=SuperMap.Plot.PlottingUtil.distance(l,d);if(m*=.01,!SuperMap.Plot.PlottingUtil.equalFuzzy(m,0)){var b=SuperMap.Plot.PlottingUtil.linePnt(d,l,m),L=[];L.push(b),L.push(d),o.push(L)}}return o}},{key:"addArrow",value:function(t,e){if(t.length<2)return t;var i,o=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);void 0===e&&(e=(this.isEdit,.5*this.getSubSymbolScaleValue()));var n=t.slice();i=o*e;var l,a=t[t.length-1],s=i*Math.cos(.125*Math.PI);if(t.length>2){for(var r=-1,u=t.length-2;u>=0;u--)if(i<SuperMap.Plot.PlottingUtil.distance(a,t[u])){r=u;break}t.splice(r+1,t.length-r),t.push(a)}if(t.length>1){SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>s&&(l=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,[t[t.length-1],t[t.length-2]])).bfind&&(t.splice(t.length-1,1),t.push(l.pts)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var p=t[t.length-1],h=a,c=i;if(void 0===p)return t;var y=SuperMap.Plot.PlottingUtil.radian(p,h)*SuperMap.Plot.PlottingUtil.RTOD,f=SuperMap.Plot.PlottingUtil.circlePoint(h,c,c,y+157.5),S=SuperMap.Plot.PlottingUtil.circlePoint(h,c,c,y+202.5),g={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[f,a,S],g)}else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n)}},{key:"addDovetailArrow",value:function(t,e){if(t.length<2)return t;var i,o=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);void 0===e&&(e=(this.isEdit,.5*this.getSubSymbolScaleValue())),i=o*e;var n=t[t.length-1];if(t.length>2){for(var l=-1,a=t.length-2;a>=0;a--)if(i<SuperMap.Plot.PlottingUtil.distance(n,t[a])){l=a;break}t.splice(l+1,t.length-l),t.push(n)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var s=t[t.length-2],r=t[t.length-1],u=i;if(void 0===s)return t;if(!(SuperMap.Plot.PlottingUtil.distance(s,r)<i)){var p=SuperMap.Plot.PlottingUtil.radian(s,r)*SuperMap.Plot.PlottingUtil.RTOD,h=SuperMap.Plot.PlottingUtil.circlePoint(r,u,u,p+157.5),c=SuperMap.Plot.PlottingUtil.circlePoint(r,u,u,p+202.5),y=SuperMap.Plot.PlottingUtil.circlePoint(r,.5*u,.5*u,p+180),f=[];f.push(h),f.push(t[t.length-1]),f.push(c),f.push(y);var S={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,S)}}},{key:"getDefaultSubSymbolSize",value:function(){var t=0;if(this.map){var e=this.getLonLatFromPixel(0,0),i=this.getLonLatFromPixel(this.subSymbolDefaultPixelSize,0),o=new SuperMap.Geometry.Point(e.lon,e.lat),n=new SuperMap.Geometry.Point(i.lon,i.lat);t=SuperMap.Plot.PlottingUtil.distance(o,n)}if(0===t){if(0!==this.subSymbolSize)return this.subSymbolSize;for(var l=0,a=0;a<this.controlPoints.length-1;a++)l+=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[a],this.controlPoints[a+1]);t=.3*l}return t}},{key:"getTextBounds",value:function(t,e){" "===e&&(e="_");var i=document.createElement("span");document.body.appendChild(i),i.style.width="auto",i.style.height="auto",t.fontSize&&(i.style.fontSize=new String(t.fontSize)+"px"),t.fontFamily&&(i.style.fontFamily=t.fontFamily),t.fontWeight&&(i.style.fontWeight=t.fontWeight),i.style.position="absolute",i.style.visibility="hidden",i.innerHTML=e;var o=new SuperMap.Bounds(i.clientLeft,i.clientTop+i.clientHeight-6,i.clientLeft+i.clientWidth,i.clientTop+4),n=this.pixelBoundsToLonLat(o);return document.body.removeChild(i),n}},{key:"calAssistantLine",value:function(){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);this.symbolType===SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL&&(t.splice(1,0,new SuperMap.Geometry.Point(this.controlPoints[1].x,this.controlPoints[0].y)),t.push(new SuperMap.Geometry.Point(this.controlPoints[0].x,this.controlPoints[1].y)),t.push(new SuperMap.Geometry.Point(this.controlPoints[0].x,this.controlPoints[0].y)));var e={type:24,surroundLineFlag:!1,positionPoints:t,style:{color:"#0000ff",opacity:1,weight:1,dashArray:"5, 5",strokeColor:"#0000ff",strokeOpacity:1,strokeWidth:1,strokeDashstyle:"dash",lineColorLimit:!0,lineTypeLimit:!0,lineWidthLimit:!0,surroundLineFlag:!1}};this.components.push(e)}},{key:"getSubSymbolScaleValue",value:function(t,e){var i=0;i=t&&!SuperMap.Plot.PlottingUtil.equalFuzzy(t,0)?t:SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);var o=this.getDefaultSubSymbolSize()/i;return void 0===e&&(e=.3),(o>e||o<=0)&&(o=e),o}},{key:"computeSubSymbol",value:function(t,e,i,o,n,l){if(null==t.symbolData||null==t.symbolData.innerCells)return null;void 0===n&&(n=0),void 0===l&&(l=0);for(var a=SuperMap.Plot.AnalysisSymbol.analysisSymbolCells(t.symbolData,!0),s=0,r=0,u=0,p=0,h=0;h<a.length;h++)for(var c=SuperMap.Plot.Primitives.getSpatialData(a[h].type,a[h].positionPoints,a[h].textContent,0,a[h].isCalculate),y=0,f=c.length;y<f;y++)s<c[y].x&&(s=c[y].x),r<c[y].y&&(r=c[y].y),u>c[y].x&&(u=c[y].x),p>c[y].y&&(p=c[y].y);var S=new SuperMap.Geometry.Point(s,r),g=new SuperMap.Geometry.Point(u,p),P=(S.y-g.y)/i,d=(S.x-g.x)/i,m=d>P?d:P,b=new SuperMap.Geometry.Point(.5*(S.x+g.x),.5*(S.y+g.y));b.x+=n*(S.x-g.x),b.y+=l*(S.y-g.y);for(var L=0,M=a.length;L<M;L++){for(var v=0,T=a[L].positionPoints.length;v<T;v++)a[L].positionPoints[v].x-=b.x,a[L].positionPoints[v].y-=b.y,a[L].positionPoints[v].x/=m,a[L].positionPoints[v].y/=m,SuperMap.Plot.PlottingUtil.rotateAngle(new SuperMap.Geometry.Point(0,0),o*Math.PI/180,a[L].positionPoints[v]),a[L].positionPoints[v].x+=e.x,a[L].positionPoints[v].y+=e.y;a[L].type===SuperMap.Plot.SymbolType.TEXTSYMBOL&&(a[L].style.fontSize/=10*m,a[L].style.labelRotation=-o,a[L].style.sizeFixed=!1),a[L].isCalculate=!1,a[L].style.surroundLineType=0,a[L].style.surroundLineLimit=!0,this.components.push(a[L])}return a}},{key:"ComputeZValue",value:function(t,e,i){var o=SuperMap.Plot.PlottingUtil.pointProjectToSegment(t,e,i),n=new SuperMap.Geometry.Point(o.projectPoint.x,o.projectPoint.y),l=SuperMap.Plot.PlottingUtil.distance(e,i),a=SuperMap.Plot.PlottingUtil.distance(e,t),s=SuperMap.Plot.PlottingUtil.distance(i,t);if(!o.isOnline){if(a>=l)return i.z;if(s>=l)return e.z}return n.x!=e.x&&e.x!=i.x?e.z+(n.x-e.x)/(e.x-i.x)*(e.z-i.z):n.y!=e.y&&e.y!=i.y?e.z+(n.y-e.y)/(e.y-i.y)*(e.z-i.z):0==(a=SuperMap.Plot.PlottingUtil.distance(e,n))?e.z:e.z-(e.z-i.z)*(a/l)}},{key:"ComputeBeizerZValueByDis",value:function(t,e,i){if(t.length<2)return!1;for(var o=[],n=0;n<t.length;n++)o.push({x:t[n].x,y:t[n].y});var l=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0==l)return!1;var a=SuperMap.Plot.PlottingUtil.polylineDistance(e),s=[];s.push(o[0]);for(var r=-1,u=0,p=e[0],h=1;h<o.length;h++){s.push(o[h]);var c=SuperMap.Plot.PlottingUtil.polylineDistance(s)/l,y=a*c,f=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(y,e),S=f.index,g=f.pts;if(f.bfind){for(var P=t[h-1].z,d=t[h].z,m=a*(c-u),b=0,L=++r;L<=S;L++){var M=P+(d-P)*((b+=L==r?SuperMap.Plot.PlottingUtil.distance(p,e[L]):SuperMap.Plot.PlottingUtil.distance(e[L-1],e[L]))/m);i.push({x:e[L].x,y:e[L].y,z:M})}r=S}u=c,p=g}for(var v=r+1;v<e.length;v++)i.push({x:e[v].x,y:e[v].y,z:t[t.length-1].z});return!0}},{key:"ComputeHeight",value:function(t,e,i,o){if(i!=o){if(0!=t.length)if(1==t.length)e.push({x:t[0].x,y:t[0].y,z:i});else if(2==t.length)e.push({x:t[0].x,y:t[0].y,z:i}),e.push({x:t[1].x,y:t[1].y,z:o});else{var n=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(0!=n){var l=[];l.push(t[0]),e.push({x:t[0].x,y:t[0].y,z:i});for(var a=1;a<t.length-1;a++){l.push(t[a]);var s=i+(o-i)*SuperMap.Plot.PlottingUtil.polylineDistance(l)/n;e.push({x:t[a].x,y:t[a].y,z:s})}e.push({x:t[t.length-1].x,y:t[t.length-1].y,z:o})}else for(var r=0;r<t.length;r++)e.push({x:t[r].x,y:t[r].y,z:i})}}else for(var u=0;u<t.length;u++)e.push({x:t[u].x,y:t[u].y,z:i})}}]),t}();SuperMap.Plot.AlgoSymbol=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.ArrowToolkit=SuperMap.Plot.ArrowToolkit=SuperMap.Plot.ArrowToolkit||{};SuperMap.Plot.ArrowToolkit.ConstValue={MAX_ARRAY_SIZE:128,sv_AtScaleParameter:1.5,sv_AtLenDivAtWidth:1.35,sv_AtWidthDivAwWidth:.5,DUOJIANTOU_TAIL_RATE_1:8,DUOJIANTOU_TAIL_RATE_2:3,DUOJIANTOU_TAIL_RATE_3:.6},SuperMap.Plot.ArrowToolkit.ArrowTailType={ARROWTAIL_NONE:0,ARROWTAIL_LINE:1,ARROWTAIL_CURVE:2,ARROWTAIL_COATTAIL:3,ARROWTAIL_COATTAIL_POLYBODY:4},SuperMap.Plot.ArrowToolkit.ArrowHeadType={ARROWHEAD_POLYLINE:0,ARROWHEAD_TRIANGLE:1,ARROWHEAD_COATTAIL:2,ARROWHEAD_TRIANGLE_SOLID:3,ARROWHEAD_COATTAIL_HOLLOW:6,ARROWHEAD_WITH_EAR:4,ARROWHEAD_WITHOUT_EAR:5},SuperMap.Plot.ArrowToolkit.ArrowBodyType={ARROWBODY_POLYLINE:0,ARROWBODY_POLYBEZIER:1,ARROWBODY_COATTAIL:5,ARROWBODY_PARALLEL:2,ARROWBODY_TRAPEZOID:3,ARROWBODY_MULTIPOLYBEZIER:4},SuperMap.Plot.ArrowToolkit.parallel=function(t,e){var i={leftParallelPts:[],rightParallelPts:[]};return 1===t.length||2===t.length&&t[0].x===t[1].x&&t[0].y===t[1].y?i:(i.leftParallelPts=SuperMap.Plot.PlottingUtil.parallel(t,e),i.rightParallelPts=SuperMap.Plot.PlottingUtil.parallel(t,-e),i)},SuperMap.Plot.ArrowToolkit.trapezoid=function(t,e,i){var o={leftParallelPts:[],rightParallelPts:[]};if(1===t.length||2===t.length&&t[0].x===t[1].x&&t[0].y===t[1].y)return o;for(var n=0;n<t.length-1;n++){t[n].x===t[n+1].x&&t[n].y===t[n+1].y&&(o.leftParallelPts.push(o.leftParallelPts[o.leftParallelPts.length-1]),o.rightParallelPts.push(o.rightParallelPts[o.rightParallelPts.length-1]));var l=t[n+1];l=SuperMap.Plot.PlottingUtil.rotate(t[n],0,1,l),o.leftParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[n],l,e)),l=t[n],l=SuperMap.Plot.PlottingUtil.rotate(t[n+1],0,-1,l),o.leftParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[n+1],l,i)),l=t[n+1],l=SuperMap.Plot.PlottingUtil.rotate(t[n],0,-1,l),o.rightParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[n],l,e)),l=t[n],l=SuperMap.Plot.PlottingUtil.rotate(t[n+1],0,1,l),o.rightParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[n+1],l,i))}return o},SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts=function(t,e,i){var o={};switch(i){case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL:case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_TRAPEZOID:var n=e[0],l=e[1],a=e[2],s=SuperMap.Plot.PlottingUtil.equalFuzzy(a,0);if(!s&&t.length>2){var r=t.length;t.splice(2,r-2)}var u=SuperMap.Plot.PlottingUtil.polylineDistance(t);o.arrowTouLen=u*n;for(var p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,u-o.arrowTouLen).pt,h=[],c=o.arrowTouLen*a,y=o.arrowTouLen*l,f=t.length-1,S=0;S<f;S++)h.push(t[S]);h.push(p);var g={leftParallelPts:[],rightParallelPts:[]};g=!0===s?SuperMap.Plot.ArrowToolkit.parallel(h,y):SuperMap.Plot.ArrowToolkit.trapezoid(h,c,y);var P=t[t.length-1];t[t.length-1]=p,t.push(P);o.leftBodyPts=g.leftParallelPts,o.rightBodyPts=g.rightParallelPts,o.OpectrlPoints=null;break;case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER:var d=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(0==d)return;var m=SuperMap.Plot.ArrowToolkit.OperateCtrlPts(t),b=m.length;b--;var L=SuperMap.Plot.ArrowToolkit.generateMultiBezier(m,b,e,d);t=[];for(var M=0;M<m.length;M++)t.push(m[M]);o.arrowTouLen=L.arrowTouLen,o.leftBodyPts=L.leftBodyPts,o.rightBodyPts=L.rightBodyPts,o.OpectrlPoints=m}return o},SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts=function(t,e,i,o,n){var l=[];switch(n){case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR:case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR:var a=i[0],s=i[1],r=0,u=0;3==i.length&&(r=i[2]),4==i.length&&(r=i[2],u=i[3]);var p=0;if(!SuperMap.Plot.PlottingUtil.equalFuzzy(r,0)&&!SuperMap.Plot.PlottingUtil.equalFuzzy(u,0)){var h=SuperMap.Plot.PlottingUtil.clonePoints(t);h.splice(h.length-1,1),p=SuperMap.Plot.PlottingUtil.polylineDistance(h)*r*u}var c=new SuperMap.Geometry.Point((e[0].x+e[1].x)/2,(e[0].y+e[1].y)/2);if(SuperMap.Plot.PlottingUtil.equalFuzzy(s,0)){var y=o*a,f=t[t.length-1];return f=SuperMap.Plot.PlottingUtil.rotate(c,0,1,f),l.push(SuperMap.Plot.PlottingUtil.findPointInLine(c,f,y)),l.push(t[t.length-1]),f=t[t.length-1],f=SuperMap.Plot.PlottingUtil.rotate(c,0,-1,f),l.push(SuperMap.Plot.PlottingUtil.findPointInLine(c,f,y)),l}var S=o*s,g=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(S,c,t[t.length-1]);S=o*a,S+=p;var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(S,t[t.length-1],g),d=P.pntLeft,m=P.pntRight,b=t[t.length-1];return l.push(m),l.push(b),l.push(d),l}},SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine=function(t,e,i,o){var n=[];if(2>t.length)return n;var l,a=SuperMap.Plot.PlottingUtil.polylineDistance(t),s=SuperMap.Plot.PlottingUtil.equalFuzzy(e,0);switch(i){case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE:n=n.concat(t),o&&!s&&SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>e&&(l=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,a-e),n.splice(n.length-1,1),n.push(l.pt));break;case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER:if(2==t.length)n=n.concat(t),o&&!s&&SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>e&&(l=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,a-e),n.splice(n.length-1,1),n.push(l.pt));else{var r=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);if(s)n=n.concat(r);else{var u=r[r.length-1];if(!s&&(e<SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2])||SuperMap.Plot.PlottingUtil.equalFuzzy(SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2]),e,1e-7))){for(var p=r.length-1;p>1;p--){if(!(e>SuperMap.Plot.PlottingUtil.distance(u,r[p]))){var h=SuperMap.Plot.PlottingUtil.findPoint(u,r[p],e,0);r.push(h),n=r;break}r.splice(p,1)}o||n.push(u)}else n=n.concat(r)}}break;case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL:var c=e;if(c>a)return n;for(var y,f,S=Math.ceil(a/(1.4*c)),g=0,P=[],d=0;d<S;d++)y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(c*g,t),f=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(c*(g+1),t),y.bfind&&f.bfind&&(P.push(y.pts),P.push(f.pts)),g=1.4*(d+1);n=P}return n},SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine=function(t,e,i){var o=[];if(2>t.length)return o;switch(i){case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE:var n=t[0],l=t[1],a=SuperMap.Plot.PlottingUtil.distance(n,l);if(SuperMap.Plot.PlottingUtil.equalFuzzy(a,e,1e-7)||a>e){var s=SuperMap.Plot.PlottingUtil.findPoint(n,l,e,0),r=e*Math.tan(.125*Math.PI),u=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,t[0],s);o.push(u.pntLeft),o.push(t[0]),o.push(u.pntRight)}break;case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE:break;case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID:var p=t[0],h=t[1],c=SuperMap.Plot.PlottingUtil.distance(p,h);if(SuperMap.Plot.PlottingUtil.equalFuzzy(c,e,1e-7)||c>e){var y=e*Math.tan(.125*Math.PI),f=SuperMap.Plot.PlottingUtil.findPoint(p,h,e,0),S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(y,t[0],f);o.push(S.pntLeft),o.push(p),o.push(S.pntRight),o.push(S.pntLeft)}break;case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL:var g=t[0],P=2*Math.sqrt(e*e/3),d=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(SuperMap.Plot.PlottingUtil.equalFuzzy(P/2,d,1e-7)||d>P/2){var m=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],P,20),b=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],P,-20),L=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],P/2,0);o.push(g),o.push(m),o.push(L),o.push(b),o.push(g)}break;case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW:var M=[],v=t[0],T=2*Math.sqrt(e*e/3),A=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(SuperMap.Plot.PlottingUtil.equalFuzzy(T/1.4,A,1e-7)||A>T/1.4){var _=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],T,20),O=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],T,-20),x=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],T/1.4,0);M.push(v),M.push(_),M.push(x),M.push(O),M.push(v);var w=new SuperMap.Geometry.Point((M[0].x+M[1].x)/2,(M[0].y+M[1].y)/2),I=new SuperMap.Geometry.Point((M[3].x+M[4].x)/2,(M[3].y+M[4].y)/2),D=new SuperMap.Geometry.Point((w.x+I.x)/2,(w.y+I.y)/2),E=.75*SuperMap.Plot.PlottingUtil.distance(w,I)/2,C=SuperMap.Plot.PlottingUtil.findPointInLine(D,w,E),R=SuperMap.Plot.PlottingUtil.findPointInLine(D,I,E);o.push(M[0]),o.push(C),o.push(M[1]),o.push(M[2]),o.push(M[3]),o.push(R),o.push(M[4])}}return o},SuperMap.Plot.ArrowToolkit.generateArrowTailShapePts=function(t,e,i,o){for(var n=e.length,l=[],a=0,s=0;s<t.length-1;s++)a+=SuperMap.Plot.PlottingUtil.distance(t[s],t[s+1]);var r=a*i;switch(o){case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_NONE:break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_LINE:var u=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],r,90),p=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],r,-90);l.push(u),l.push(p);break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_CURVE:var h=new SuperMap.Geometry.Point(.5*(e[0].x+e[n-1].x),.5*(e[0].y+e[n-1].y)),c=SuperMap.Plot.PlottingUtil.distance(e[0],e[n-1]),y=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(c*i,h,t[t.length-1]),f=new SuperMap.Geometry.Point(0,0),S=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_1,SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_2,e[0],y,e[n-1],f,S);var g=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrapezoidPoints(SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_3,e[0],y,f,g);var P=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrapezoidPoints(SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_3,e[n-1],y,S,P);break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL:var d=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],r,157.5),m=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],r,-157.5);l.push(d),l.push(t[0]),l.push(m);break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL_POLYBODY:var b=new SuperMap.Geometry.Point(.5*(e[0].x+e[n-1].x),.5*(e[0].y+e[n-1].y)),L=SuperMap.Plot.PlottingUtil.distance(e[0],e[n-1]),M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L*i,e[0],b);l.push(e[n-1]),l.push(M.pntLeft),l.push(e[0])}return l},SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine=function(t,e,i){var o=[];switch(i){case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_NONE:break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_LINE:var n=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,90),l=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,-90);o.push(n),o.push(l);break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL:var a=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,157.5),s=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,-157.5);o.push(a),o.push(t[0]),o.push(s)}return o},SuperMap.Plot.ArrowToolkit.OperateCtrlPts=function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3==e.length){var i=((e[0].x+e[1].x)/2+e[2].x)/2,o=((e[0].y+e[1].y)/2+e[2].y)/2,n=new SuperMap.Geometry.Point(i,o),l=e[2].clone();e[2]=n,e.push(l)}return e},SuperMap.Plot.ArrowToolkit.generateMultiBezier=function(t,e,i,o){var n=0,l=[],a=[],s=[],r=[],u=[],p=[],h=i[0],c=i[1],y=(t[0].x+t[1].x)/2,f=(t[0].y+t[1].y)/2,S=Math.abs(y-t[2].x),g=Math.abs(f-t[2].y),P=0;if(S>0&&g>0){var d=1/(y-t[2].x),m=-1/(f-t[2].y),b=1*t[2].y/(f-t[2].y)-1*t[2].x/(y-t[2].x);P=Math.abs(d*t[0].x+m*t[0].y+b)/Math.sqrt(d*d+m*m)}else g<=1e-4?P=Math.abs(f-t[1].y):S<=1e-4&&(P=Math.abs(y-t[1].x));var L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(P,t[2],new SuperMap.Geometry.Point(y,f)),M=SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[1],t[2],t[0]);M?(l[1]=t[1],a[1]=t[0]):(l[1]=t[0],a[1]=t[1]),t[1]=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);var v=Math.sqrt((L.pntLeft.x-L.pntRight.x)*(L.pntLeft.x-L.pntRight.x)+(L.pntLeft.y-L.pntRight.y)*(L.pntLeft.y-L.pntRight.y))*SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtWidthDivAwWidth,T=(n=v*SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtLenDivAtWidth)*c;SuperMap.Plot.PlottingUtil.equalFuzzy(h,0)||(T=(n=o*h)*c);var A,_,O=SuperMap.Plot.PlottingUtil.distance(t[e],t[e-1]),x=2*n;O<x&&(T=(n=O/2)*c),t.push(t[e]),A=0,_=0;var w=0,I=[];for(w=2;w<=e;w++)A+=SuperMap.Plot.PlottingUtil.distance(t[w],t[w-1]);for(A-=n,w=2;w<=e-1;w++)_+=SuperMap.Plot.PlottingUtil.distance(t[w],t[w-1]),I[w]=T+(v-T)*Math.pow((A-_)/A,SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtScaleParameter);I[e]=T;var D,E,C=new SuperMap.Geometry.Point(0,0),R=new SuperMap.Geometry.Point(0,0),N=new SuperMap.Geometry.Point(0,0);for(w=2;w<=e-1;w++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,t[w-1],t[w],t[w+1],R,N),w==e-1&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,t[e],t[e-1],N,C),D=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I[w],R,t[w]),(M=SuperMap.Plot.PlottingUtil.pointIsRightToLine(N,R,D.pntRight))?(l[w]=new SuperMap.Geometry.Point(D.pntRight.x,D.pntRight.y),a[w]=new SuperMap.Geometry.Point(D.pntLeft.x,D.pntLeft.y)):(l[w]=new SuperMap.Geometry.Point(D.pntLeft.x,D.pntLeft.y),a[w]=new SuperMap.Geometry.Point(D.pntRight.x,D.pntRight.y));for(Math.sqrt(1*(t[e].x-C.x)*(t[e].x-C.x)+1*(t[e].y-C.y)*(t[e].y-C.y))>0&&(t[e]=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(n,t[e],C)),D=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(T,t[e+1],t[e]),(M=SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[e],t[e+1],D.pntLeft))?(a[e]=new SuperMap.Geometry.Point(D.pntLeft.x,D.pntLeft.y),l[e]=new SuperMap.Geometry.Point(D.pntRight.x,D.pntRight.y)):(a[e]=new SuperMap.Geometry.Point(D.pntRight.x,D.pntRight.y),l[e]=new SuperMap.Geometry.Point(D.pntLeft.x,D.pntLeft.y)),w=2;w<e;w++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,l[w-1],l[w],l[w+1],R,N),s[w]=new SuperMap.Geometry.Point(R.x,R.y),r[w]=new SuperMap.Geometry.Point(N.x,N.y),SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,a[w-1],a[w],a[w+1],R,N),u[w]=new SuperMap.Geometry.Point(R.x,R.y),p[w]=new SuperMap.Geometry.Point(N.x,N.y),2==w&&(SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,l[1],l[2],s[2],C),r[1]=new SuperMap.Geometry.Point(C.x,C.y),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,a[1],a[2],u[2],C),p[1]=new SuperMap.Geometry.Point(C.x,C.y)),w==e-1&&(x=(O=SuperMap.Plot.PlottingUtil.distance(l[e],l[e-1]))/3,(E=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(x,t[e],t[e+1])).x+=l[e].x-t[e].x,E.y+=l[e].y-t[e].y,x=(O=v-T)*Math.pow(x/A,SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtScaleParameter),D=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(x,l[e],E),s[e]=new SuperMap.Geometry.Point(D.pntLeft.x,D.pntLeft.y),x=(O=SuperMap.Plot.PlottingUtil.distance(a[e],a[e-1]))/3,(E=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(x,t[e],t[e+1])).x+=a[e].x-t[e].x,E.y+=a[e].y-t[e].y,x=(O=v-T)*Math.pow(x/A,SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtScaleParameter),D=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(x,a[e],E),u[e]=new SuperMap.Geometry.Point(D.pntRight.x,D.pntRight.y));return{arrowTouLen:n,leftBodyPts:SuperMap.Plot.ArrowToolkit.genArrowBody(e,l,s,r),rightBodyPts:SuperMap.Plot.ArrowToolkit.genArrowBody(e,a,u,p)}},SuperMap.Plot.ArrowToolkit.genArrowBody=function(t,e,i,o){var n=new SuperMap.Plot.Path2D;if(!(t<2)){n.MoveTo(e[1]);for(var l=1;l<=t-1;l++)n.CubicTo(o[l],i[l+1],e[l+1]);var a=[];return n.ToSubPathPolygons(a),a[0]}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.Path2DData=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e){this.cStart=e.cStart,this.fillRule=e.fillRule,this.require_StartNewFigure=e.require_StartNewFigure,this.isBoundsDirty=e.isBoundsDirty,this.bounds=new SuperMap.Bounds(e.bounds.left,e.bounds.bottom,e.bounds.right,e.bounds.top),this.ref=1,this.elements=[];for(var i=0;i<e.elements.length;i++)this.elements.push(e.elements[i].clone())}else this.ref=1,this.bounds=new SuperMap.Bounds(0,0,0,0),this.elements=[];this.CLASS_NAME="SuperMap.Plot.Path2DData"}return o(t,[{key:"IsClosed",value:function(){var t=this.elements[this.cStart],e=this.elements[this.elements.length-1];return t.GetX()==e.GetX()&&t.GetY()==e.GetY()}},{key:"Close",value:function(){this.require_StartNewFigure=!0;var t=this.elements[this.cStart],e=this.elements[this.elements.length-1];t!=e&&(t.Equal(e)?e.SetPosition(t.GetX(),t.GetY()):this.elements.push(new SuperMap.Plot.Element(t.GetX(),t.GetY(),SuperMap.Plot.ElementType.LineToElement)))}},{key:"MaybeStartNewFigure",value:function(){if(this.require_StartNewFigure){var t=this.elements[this.elements.length-1].clone();t.SetType(0),this.elements.push(t),this.require_StartNewFigure=!1}}}]),t}();SuperMap.Plot.Path2DData=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.Element=function(){function t(e,i,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.m_x=e,this.m_y=i,this.m_type=o,this.CLASS_NAME="SuperMap.Plot.Element"}return o(t,[{key:"GetX",value:function(){return this.m_x}},{key:"GetY",value:function(){return this.m_y}},{key:"GetType",value:function(){return this.m_type}},{key:"GetPosition",value:function(){return SuperMap.Geometry.Point(this.m_x,this.m_y)}},{key:"SetPosition",value:function(t,e){this.m_x=t,this.m_y=e}},{key:"SetType",value:function(t){this.m_type=t}},{key:"IsCurveTo",value:function(){return 2==this.m_type}},{key:"IsLineTo",value:function(){return 1==this.m_type}},{key:"IsMoveTo",value:function(){return 0==this.m_type}},{key:"Equal",value:function(t){return SuperMap.Plot.PlottingUtil.equalFuzzy(this.m_x,t.m_x,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(this.m_y,t.m_y,1e-10)&&this.m_type==t.m_type}},{key:"clone",value:function(){return new SuperMap.Plot.Path2D.Element(this.m_x,this.m_y,this.m_type)}}]),t}();SuperMap.Plot.Element=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.Path2D=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.m_pData=null,this.CLASS_NAME="SuperMap.Plot.Path2D"}return o(t,[{key:"MoveTo",value:function(t){this.ensureData(),this.detach();var e=this.getDataPtr();if(e.require_StartNewFigure=!1,0==e.elements[e.elements.length-1].GetType())e.elements[e.elements.length-1].SetPosition(t.x,t.y);else{var i=new SuperMap.Plot.Element(t.x,t.y,0);e.elements.push(i)}e.cStart=e.elements.length-1}},{key:"LineTo",value:function(t){this.ensureData(),this.detach();var e=this.getDataPtr();if(e.MaybeStartNewFigure(),e.elements[e.elements.length-1].GetX()!=t.x||e.elements[e.elements.length-1].GetY()!=t.y){var i=new SuperMap.Plot.Element(t.x,t.y,1);e.elements.push(i)}}},{key:"CurveTo",value:function(t,e,i){this.ensureData(),this.detach();var o=this.getDataPtr();if(o.elements[o.elements.length-1].GetX()!=t.x||o.elements[o.elements.length-1].GetY()!=t.y||t.x!=e.x||t.y!=e.y||e.x!=i.x||e.y!=i.y){o.MaybeStartNewFigure();var n=new SuperMap.Plot.Element(t.x,t.y,2),l=new SuperMap.Plot.Element(e.x,e.y,3),a=new SuperMap.Plot.Element(i.x,i.y,3);o.elements.push(n),o.elements.push(l),o.elements.push(a)}}},{key:"CubicTo",value:function(t,e,i){this.ensureData(),this.detach();var o=this.getDataPtr();if(o.elements[o.elements.length-1].GetX()!=t.x||o.elements[o.elements.length-1].GetY()!=t.y||t.x!=e.x||t.y!=e.y||e.x!=i.x||e.y!=i.y){o.MaybeStartNewFigure();var n=new SuperMap.Plot.Element(t.x,t.y,2),l=new SuperMap.Plot.Element(e.x,e.y,3),a=new SuperMap.Plot.Element(i.x,i.y,3);o.elements.push(n),o.elements.push(l),o.elements.push(a)}}},{key:"ToSubPathPolygons",value:function(t){var e,i,o=this.getDataPtr();if(this.IsEmpty())return!1;for(var n=[],l=this.GetElementCount(),a=0;a<l;a++){var s=o.elements[a];switch(s.GetType()){case 0:n.length>1&&t.push(n),n=[],e=s.GetX(),i=s.GetY(),n.push(new SuperMap.Geometry.Point(e,i));break;case 1:e=s.GetX(),i=s.GetY(),n.push(new SuperMap.Geometry.Point(e,i));break;case 2:if(3!=o.elements[a+1].GetType()||3!=o.elements[a+1].GetType())break;for(var r=o.elements[a-1].GetX(),u=o.elements[a-1].GetY(),p=s.GetX(),h=s.GetY(),c=o.elements[a+1].GetX(),y=o.elements[a+1].GetY(),f=o.elements[a+2].GetX(),S=o.elements[a+2].GetY(),g=0;g<=1;g+=.03125){var P=g*g,d=P*g,m=1-3*g+3*P-d,b=3*(g-2*P+d),L=3*(P-d),M=d;n.push(new SuperMap.Geometry.Point(m*r+b*p+L*c+M*f,m*u+b*h+L*y+M*S))}a+=2}}return n.length>1&&t.push(n),!0}},{key:"ensureData",value:function(){null==this.m_pData&&this.ensureData_helper()}},{key:"ensureData_helper",value:function(){var t=new SuperMap.Plot.Path2DData,e=new SuperMap.Plot.Element(0,0,0);t.elements.push(e),null==this.m_pData||this.mtDeRef(this.m_pData.ref)||(this.m_pData=null),this.m_pData=t}},{key:"detach",value:function(){1!=this.m_pData.ref&&this.detach_helper(),this.setBoundsDirty(!0)}},{key:"detach_helper",value:function(){var t=new SuperMap.Plot.Path2DData;null==this.m_pData||this.mtDeRef(this.m_pData.ref)||(this.m_pData=null),this.m_pData=t}},{key:"setBoundsDirty",value:function(t){this.getDataPtr().isBoundsDirty=t}},{key:"getDataPtr",value:function(){return this.m_pData}},{key:"IsEmpty",value:function(){if(null==this.m_pData)return!0;var t=this.m_pData.elements.length;return 0==t||1==t&&0==this.m_pData.elements[0].GetType()}},{key:"GetElementCount",value:function(){return null!=this.m_pData?this.m_pData.elements.length:0}}],[{key:"mtRef",value:function(t){return 0!=++t}},{key:"mtDeRef",value:function(t){return 0!=--t}}]),t}();SuperMap.Plot.Path2D=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbol15200=e.AlgoSymbol315=e.AlgoSymbol1022=e.AlgoSymbol1021=e.AlgoSymbol1020=e.AlgoSymbol1019=e.AlgoSymbol1018=e.AlgoSymbol1017=e.AlgoSymbol1016=e.AlgoSymbol1015=e.AlgoSymbol1014=e.AlgoSymbol1013=e.AlgoSymbol1012=e.AlgoSymbol1011=e.AlgoSymbol1010=e.AlgoSymbol1009=e.AlgoSymbol1008=e.AlgoSymbol1007=e.AlgoSymbol1006=e.AlgoSymbol1005=e.AlgoSymbol1004=e.AlgoSymbol1003=e.AlgoSymbol1002=e.AlgoSymbol1001=e.Wire=e.PolygonRegion=e.LineRelation=e.LineMarking=e.PathText=e.CurveEight=e.Runway=e.NodeChain=e.FreeCurve=e.CombinationalCircle=e.ConcentricCircle=e.SymbolTextBox=e.GeoTooltipBoxM=e.GeoTooltipBox=e.Trapezoid=e.Brace=e.RegularPolygon=e.ArrowLine=e.AlgoSymbol=e.ArrowToolkit=e.Path2DData=e.Element=e.Path2D=void 0;var o=i(125),n=i(124),l=i(123),a=i(122),s=i(121),r=i(120),u=i(119),p=i(118),h=i(117),c=i(116),y=i(115),f=i(114),S=i(113),g=i(112),P=i(111),d=i(110),m=i(109),b=i(108),L=i(107),M=i(106),v=i(105),T=i(104),A=i(103),_=i(102),O=i(101),x=i(100),w=i(99),I=i(98),D=i(97),E=i(96),C=i(95),R=i(94),N=i(93),U=i(92),G=i(91),B=i(90),k=i(89),F=i(88),z=i(87),j=i(86),Y=i(85),V=i(84),W=i(83),H=i(82),X=i(81),J=i(80),q=i(79);e.Path2D=o.Path2D,e.Element=n.Element,e.Path2DData=l.Path2DData,e.ArrowToolkit=a.ArrowToolkit,e.AlgoSymbol=s.AlgoSymbol,e.ArrowLine=r.ArrowLine,e.RegularPolygon=u.RegularPolygon,e.Brace=p.Brace,e.Trapezoid=h.Trapezoid,e.GeoTooltipBox=c.GeoTooltipBox,e.GeoTooltipBoxM=y.GeoTooltipBoxM,e.SymbolTextBox=f.SymbolTextBox,e.ConcentricCircle=S.ConcentricCircle,e.CombinationalCircle=g.CombinationalCircle,e.FreeCurve=P.FreeCurve,e.NodeChain=d.NodeChain,e.Runway=m.Runway,e.CurveEight=b.CurveEight,e.PathText=L.PathText,e.LineMarking=M.LineMarking,e.LineRelation=v.LineRelation,e.PolygonRegion=T.PolygonRegion,e.Wire=A.Wire,e.AlgoSymbol1001=_.AlgoSymbol1001,e.AlgoSymbol1002=O.AlgoSymbol1002,e.AlgoSymbol1003=x.AlgoSymbol1003,e.AlgoSymbol1004=w.AlgoSymbol1004,e.AlgoSymbol1005=I.AlgoSymbol1005,e.AlgoSymbol1006=D.AlgoSymbol1006,e.AlgoSymbol1007=E.AlgoSymbol1007,e.AlgoSymbol1008=C.AlgoSymbol1008,e.AlgoSymbol1009=R.AlgoSymbol1009,e.AlgoSymbol1010=N.AlgoSymbol1010,e.AlgoSymbol1011=U.AlgoSymbol1011,e.AlgoSymbol1012=G.AlgoSymbol1012,e.AlgoSymbol1013=B.AlgoSymbol1013,e.AlgoSymbol1014=k.AlgoSymbol1014,e.AlgoSymbol1015=F.AlgoSymbol1015,e.AlgoSymbol1016=z.AlgoSymbol1016,e.AlgoSymbol1017=j.AlgoSymbol1017,e.AlgoSymbol1018=Y.AlgoSymbol1018,e.AlgoSymbol1019=V.AlgoSymbol1019,e.AlgoSymbol1020=W.AlgoSymbol1020,e.AlgoSymbol1021=H.AlgoSymbol1021,e.AlgoSymbol1022=X.AlgoSymbol1022,e.AlgoSymbol315=J.AlgoSymbol315,e.AlgoSymbol15200=q.AlgoSymbol15200},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbolFactory=e.BasicAlgoSymbolFactory=void 0;var o=i(35),n=i(78);e.BasicAlgoSymbolFactory=o.BasicAlgoSymbolFactory,e.AlgoSymbolFactory=n.AlgoSymbolFactory},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.AddPoint_WayType=SuperMap.Plot.AddPoint_WayType={UNKNOWN:0,POLYLINE:1,CURVE:2}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.RouteNodePrimitives=SuperMap.Plot.RouteNodePrimitives=SuperMap.Plot.RouteNodePrimitives||{};SuperMap.Plot.RouteNodePrimitives={initialize:function(){},rendezvousPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var i=new Object;return i.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,i.positionPoints=[],i.positionPoints.push(new SuperMap.Geometry.Point(0,0)),i.textContent="会",i.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},i.style.labelAlign="cm",t.push(i),t.push(e),t},expandingPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var i=new Object;return i.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,i.positionPoints=[],i.positionPoints.push(new SuperMap.Geometry.Point(0,0)),i.textContent="展",i.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},i.style.labelAlign="cm",t.push(i),t.push(e),t},volleyPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var i=new Object;return i.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,i.positionPoints=[],i.positionPoints.push(new SuperMap.Geometry.Point(0,0)),i.textContent="齐",i.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},i.style.labelAlign="cm",t.push(i),t.push(e),t},standbyPoint_Outer:function(t,e){var i=[],o=new SuperMap.Geometry.Point(0,0),n=new SuperMap.Geometry.Point(0,30);t||(t=90);var l=new Object;l.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,l.positionPoints=[];for(var a=t+10;a<170+t;a+=10){var s=SuperMap.Plot.PlottingUtil.findPoint(o,n,30,a);l.positionPoints.push(s)}l.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},i.push(l);var r=l.positionPoints[l.positionPoints.length-1],u=l.positionPoints[l.positionPoints.length-2],p=SuperMap.Plot.PlottingUtil.findPoint(r,u,9,22.5),h=SuperMap.Plot.PlottingUtil.findPoint(r,u,9,-22.5),c=new Object;c.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,c.positionPoints=[],c.positionPoints.push(p),c.positionPoints.push(r.clone()),c.positionPoints.push(h),c.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},i.push(c);var y=new Object;y.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,y.positionPoints=[];for(var f=190+t;f<350+t;f+=10){var S=SuperMap.Plot.PlottingUtil.findPoint(o,n,30,f);y.positionPoints.push(S)}y.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},i.push(y);var g=y.positionPoints[y.positionPoints.length-1],P=y.positionPoints[y.positionPoints.length-2],d=SuperMap.Plot.PlottingUtil.findPoint(g,P,9,22.5),m=SuperMap.Plot.PlottingUtil.findPoint(g,P,9,-22.5),b=new Object;b.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,b.positionPoints=[],b.positionPoints.push(d),b.positionPoints.push(g.clone()),b.positionPoints.push(m),b.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},i.push(b);for(var L=0;L<i.length;L++)for(var M=0;M<i[L].positionPoints.length;M++){var v=e*(Math.PI/180);SuperMap.Plot.PlottingUtil.rotateAngle(o,v,i[L].positionPoints[M])}return i},standbyPoint_Inner:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(-20,0)),e.positionPoints.push(new SuperMap.Geometry.Point(20,10)),e.positionPoints.push(new SuperMap.Geometry.Point(20,-10)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e);var i=new Object;i.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,i.positionPoints=[],i.positionPoints.push(new SuperMap.Geometry.Point(-5,0)),i.positionPoints.push(new SuperMap.Geometry.Point(17,0)),i.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(i);var o=new Object;return o.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(-2,1.5)),o.positionPoints.push(new SuperMap.Geometry.Point(-5,0)),o.positionPoints.push(new SuperMap.Geometry.Point(-2,-1.5)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(o),t},supplyPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var i=new Object;return i.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,i.positionPoints=[],i.positionPoints.push(new SuperMap.Geometry.Point(0,0)),i.textContent="补",i.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},i.style.labelAlign="cm",t.push(i),t.push(e),t},takeoffPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(-15,25)),e.positionPoints.push(new SuperMap.Geometry.Point(15,25)),e.positionPoints.push(new SuperMap.Geometry.Point(15,-25)),e.positionPoints.push(new SuperMap.Geometry.Point(0,-35)),e.positionPoints.push(new SuperMap.Geometry.Point(-15,-25)),e.positionPoints.push(new SuperMap.Geometry.Point(-15,25)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},initialPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(-30,30)),e.positionPoints.push(new SuperMap.Geometry.Point(30,30)),e.positionPoints.push(new SuperMap.Geometry.Point(30,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(-30,-30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},visualInitalPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.positionPoints.push(new SuperMap.Geometry.Point(30,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(-30,0)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},lanchPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.positionPoints.push(new SuperMap.Geometry.Point(20,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(-20,-30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},turningPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},aimingPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(20,30)),e.positionPoints.push(new SuperMap.Geometry.Point(-20,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},targetPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.positionPoints.push(new SuperMap.Geometry.Point(30,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(-30,-30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},eightSpiralPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(30,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var i=new Object;return i.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,i.positionPoints=[],i.positionPoints.push(new SuperMap.Geometry.Point(-30,0)),i.positionPoints.push(new SuperMap.Geometry.Point(0,0)),i.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t.push(i),t},happyValleyPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(-30,20)),e.positionPoints.push(new SuperMap.Geometry.Point(30,20)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var i=new Object;i.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,i.positionPoints=[],i.positionPoints.push(new SuperMap.Geometry.Point(30,-20)),i.positionPoints.push(new SuperMap.Geometry.Point(-30,-20)),i.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;o.type=SuperMap.Plot.SymbolType.ARCSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(-30,20)),o.positionPoints.push(new SuperMap.Geometry.Point(-50,0)),o.positionPoints.push(new SuperMap.Geometry.Point(-30,-20)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var n=new Object;return n.type=SuperMap.Plot.SymbolType.ARCSYMBOL,n.positionPoints=[],n.positionPoints.push(new SuperMap.Geometry.Point(30,20)),n.positionPoints.push(new SuperMap.Geometry.Point(50,0)),n.positionPoints.push(new SuperMap.Geometry.Point(30,-20)),n.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t.push(i),t.push(o),t.push(n),t},attackPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var i=new Object;return i.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,i.positionPoints=[],i.positionPoints.push(new SuperMap.Geometry.Point(0,20)),i.positionPoints.push(new SuperMap.Geometry.Point(20,-20)),i.positionPoints.push(new SuperMap.Geometry.Point(-20,-20)),i.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(i),t.push(e),t},suppressPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fontSize:14};var i=new Object;return i.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,i.positionPoints=[],i.positionPoints.push(new SuperMap.Geometry.Point(-15,15)),i.positionPoints.push(new SuperMap.Geometry.Point(15,15)),i.positionPoints.push(new SuperMap.Geometry.Point(15,-15)),i.positionPoints.push(new SuperMap.Geometry.Point(-15,-15)),i.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(i),t.push(e),t},getRouteNodeCells:function(t,e,i){switch(t){case SuperMap.Plot.RouteNodeType.RENDEZVOUS:return this.rendezvousPoint();case SuperMap.Plot.RouteNodeType.EXPANDING:return this.expandingPoint();case SuperMap.Plot.RouteNodeType.VOLLEY:return this.volleyPoint();case SuperMap.Plot.RouteNodeType.STANDBY:return e?this.standbyPoint_Inner():this.standbyPoint_Outer(null,i);case SuperMap.Plot.RouteNodeType.SUPPLY:return this.supplyPoint();case SuperMap.Plot.RouteNodeType.TAKEOFF:return this.takeoffPoint();case SuperMap.Plot.RouteNodeType.INITIAL:return this.initialPoint();case SuperMap.Plot.RouteNodeType.VISUALINITAL:return this.visualInitalPoint();case SuperMap.Plot.RouteNodeType.LANCH:case SuperMap.Plot.RouteNodeType.WEAPONLAUNCH:return this.lanchPoint();case SuperMap.Plot.RouteNodeType.TURNING:case SuperMap.Plot.RouteNodeType.COMMONROUTE:return this.turningPoint();case SuperMap.Plot.RouteNodeType.AIMING:return this.aimingPoint();case SuperMap.Plot.RouteNodeType.TARGET:return this.targetPoint();case SuperMap.Plot.RouteNodeType.ATTACK:return this.attackPoint();case SuperMap.Plot.RouteNodeType.SUPPRESS:return this.suppressPoint();case SuperMap.Plot.RouteNodeType.EIGHTSPIRAL:return this.eightSpiralPoint();case SuperMap.Plot.RouteNodeType.HAPPYVALLEY:return this.happyValleyPoint();default:return[]}},getRouteNodeNameByType:function(t){switch(t){case SuperMap.Plot.RouteNodeType.RENDEZVOUS:return"会合点";case SuperMap.Plot.RouteNodeType.EXPANDING:return"展开点";case SuperMap.Plot.RouteNodeType.VOLLEY:return"齐射点";case SuperMap.Plot.RouteNodeType.STANDBY:return"待机点";case SuperMap.Plot.RouteNodeType.SUPPLY:return"补给点";case SuperMap.Plot.RouteNodeType.TAKEOFF:return"起飞点";case SuperMap.Plot.RouteNodeType.INITIAL:return"初始点";case SuperMap.Plot.RouteNodeType.VISUALINITAL:return"可视化初始点";case SuperMap.Plot.RouteNodeType.LANCH:return"发射点";case SuperMap.Plot.RouteNodeType.WEAPONLAUNCH:return"武器发射点";case SuperMap.Plot.RouteNodeType.TURNING:return"转弯点";case SuperMap.Plot.RouteNodeType.COMMONROUTE:return"普通航路点";case SuperMap.Plot.RouteNodeType.AIMING:return"目标瞄准点";case SuperMap.Plot.RouteNodeType.TARGET:return"目标点";case SuperMap.Plot.RouteNodeType.ATTACK:return"攻击点";case SuperMap.Plot.RouteNodeType.SUPPRESS:return"压制点";case SuperMap.Plot.RouteNodeType.EIGHTSPIRAL:return"八字盘旋点";case SuperMap.Plot.RouteNodeType.HAPPYVALLEY:return"跑马圈点";default:return""}}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.Primitives=SuperMap.Plot.Primitives=SuperMap.Plot.Primitives||{};SuperMap.Plot.Primitives={nSegmentCount:72,initialize:function(t){t&&t.nSegmentCount&&(this.nSegmentCount=t.nSegmentCount)},polyline:function(t){return t},parallelline:function(t){if(t&&t.length>=3){var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);SuperMap.Plot.PlottingUtil.isRight(t[0],t[1],t[2])&&(e=-e);for(var i=[],o=1;o<t.length;o++)i.push(t[o].clone());var n=SuperMap.Plot.PlottingUtil.parallel(i,e);return t[0].x=n[0].x,t[0].y=n[0].y,[i,n]}return[]},kidney:function(t,e){if(t){var i=[];return i=e?this.getKendyShapePts(t):t,SuperMap.Plot.PlottingUtil.clearSamePts(i),i}},bezier:function(t,e){if(t){var i=[];return i=e?SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t):t,SuperMap.Plot.PlottingUtil.clearSamePts(i),i}},loopbezier:function(t,e){if(t){t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y||t.push(t[0]);var i=[];return i=e?SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t):t,SuperMap.Plot.PlottingUtil.clearSamePts(i),i}},parallelogram:function(t){if(t&&t.length>=3){var e=t[0].x+(t[2].x-t[1].x),i=t[0].y+(t[2].y-t[1].y),o=new SuperMap.Geometry.Point(e,i),n=[];return n.push.apply(n,t),n.push(o),n.push(n[0]),n}},polygon:function(t){if(t&&t.length>2)return t},circle:function(t){if(t&&2===t.length){for(var e=t[0],i=t[1],o=[],n=Math.sqrt((i.x-e.x)*(i.x-e.x)+(i.y-e.y)*(i.y-e.y)),l=360/this.nSegmentCount,a=0;a<this.nSegmentCount;a++){var s=(a*l+1)*Math.PI/180,r=new SuperMap.Geometry.Point(Math.cos(s)*n+e.x,Math.sin(s)*n+e.y);o[a]=r}return o}},rectangle:function(t){if(t&&2===t.length){var e=t[0],i=t[1],o=e.clone();return[o,new SuperMap.Geometry.Point(i.x,e.y),i.clone(),new SuperMap.Geometry.Point(e.x,i.y),o]}},sector:function(t){if(t&&t.length>=3){var e=this.getArcInfo(t[0],t[1],t[2]);e.dStartAngle*=Math.PI/180,e.dEndAngle*=Math.PI/180;var i=(e.dEndAngle-e.dStartAngle)/this.nSegmentCount,o=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,i);if(o.push(e.pntCenter),0!==o.length)return o}},lune:function(t){if(t&&t.length>=3){var e=this.getArcInfo(t[0],t[1],t[2]);e.dStartAngle*=Math.PI/180,e.dEndAngle*=Math.PI/180;var i=(e.dEndAngle-e.dStartAngle)/this.nSegmentCount,o=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,i);if(0!==o.length)return o}},arc:function(t){if(t&&t.length>=3){var e=this.getArcInfo(t[0],t[1],t[2]);e.dStartAngle*=Math.PI/180,e.dEndAngle*=Math.PI/180;var i=(e.dEndAngle-e.dStartAngle)/this.nSegmentCount,o=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,i);if(0!==o.length)return o}},ellipse:function(t,e,i,o,n){if(!0===i){if((!o||null==o)&&t&&t.length>=3&&(o=SuperMap.Plot.PlottingUtil.distance(t[0],t[1])),(!n||null==n)&&t&&t.length>=3){var l=SuperMap.Plot.PlottingUtil.projectPoint(t[2],t[0],t[1]);n=SuperMap.Plot.PlottingUtil.distance(l,t[2])}}else n=SuperMap.Plot.PlottingUtil.distance(t[0],t[2]),o=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(e&&null!=e?e*=Math.PI/180:e=SuperMap.Plot.PlottingUtil.radian(t[0],t[1]),t&&t.length>0){var a=2*Math.PI,s=a/this.nSegmentCount,r=this.getArcSpatialData(t[0],o,n,e,0,a,s);if(!0===i){var u=Math.sin(e),p=Math.cos(e);t[2].x>t[1].x?(t[2].x=t[0].x-n*u,t[2].y=t[0].y+n*p):(t[2].x=t[0].x+n*u,t[2].y=t[0].y-n*p)}return r}},getArcSpatialData:function(t,e,i,o,n,l,a){var s=[];if(Math.abs(a)<1e-9)return s;for(;l<n;)l+=2*Math.PI;for(;l>n+2*Math.PI;)n+=2*Math.PI;var r=Math.cos(o)*e,u=Math.sin(o)*e,p=Math.cos(o)*i,h=Math.sin(o)*i,c=this.calcEllipseRadian(n,e,i),y=this.calcEllipseRadian(l,e,i);y-c<1e-5&&(y+=2*Math.PI);var f=Math.round(Math.abs((y-c)/a)+1);if(f<2)return s;for(var S=0;S<f-1;c+=a,S++){S===f-2&&(c=l);var g=t.x+r*Math.cos(c)-h*Math.sin(c),P=t.y+u*Math.cos(c)+p*Math.sin(c);s.push(new SuperMap.Geometry.Point(g,P))}return 0>s.length&&(s[s.length-1].x=t.x+r*Math.cos(y)-h*Math.sin(y),s[s.length-1].y=t.y+u*Math.cos(y)+p*Math.sin(y)),s},getArcInfo:function(t,e,i){var o={};o.pntCenter=new SuperMap.Geometry.Point(0,0),o.dRadius=0,o.dStartAngle=0,o.dEndAngle=0;var n=e.x-t.x,l=e.y-t.y;if(Math.abs(n)<1e-9){var a={},s={};a.x=(e.x+t.x)/2,a.y=(e.y+t.y)/2,s.x=(e.x+i.x)/2,s.y=(e.y+i.y)/2;var r=0;Math.abs(i.x-e.x)>=1e-9&&(r=(i.y-e.y)/(i.x-e.x)),o.pntCenter.y=a.y,Math.abs(r)<1e-9?o.pntCenter.x=s.x:o.pntCenter.x=s.x-r*(a.y-s.y)}else{var u={},p={};u.x=(e.x+t.x)/2,u.y=(e.y+t.y)/2,p.x=(e.x+i.x)/2,p.y=(e.y+i.y)/2;var h=l/n,c=1;Math.abs(h)<1e-9?(o.pntCenter.x=u.x,Math.abs(i.x-e.x<1e-9)?o.pntCenter.y=p.y:o.pntCenter.y=-(i.x-e.x)/(i.y-e.y)*(o.pntCenter.x-p.x)+p.y):Math.abs(i.x-e.x)<1e-9?(o.pntCenter.y=p.y,o.pntCenter.x=-h*(o.pntCenter.y-u.y)+u.x):(c=(i.y-e.y)/(i.x-e.x),o.pntCenter.x=(h*c*(u.y-p.y)+c*u.x-h*p.x)/(c-h),o.pntCenter.y=(p.x-u.x+c*p.y-h*u.y)/(c-h))}var y=Math.atan2(t.y-o.pntCenter.y,t.x-o.pntCenter.x),f=Math.atan2(i.y-o.pntCenter.y,i.x-o.pntCenter.x);if(SuperMap.Plot.PlottingUtil.isCounterClockwise(t,e,i)){for(;y>=2*Math.PI;)y-=2*Math.PI;for(;y<0;)y+=2*Math.PI;for(;f>2*Math.PI;)f-=2*Math.PI;for(;f<y;)f+=2*Math.PI}else{for(;f>=2*Math.PI;)f-=2*Math.PI;for(;f<0;)f+=2*Math.PI;for(;y>2*Math.PI;)y-=2*Math.PI;for(;f>y;)y+=2*Math.PI;var S=y;y=f,f=S}return o.dRadius=Math.sqrt((o.pntCenter.x-t.x)*(o.pntCenter.x-t.x)+(o.pntCenter.y-t.y)*(o.pntCenter.y-t.y)),o.dEndAngle=180*f/Math.PI,o.dStartAngle=180*y/Math.PI,o},calcEllipseRadian:function(t,e,i){var o=t,n=e*Math.sin(t),l=i*Math.cos(t),a=Math.atan2(n,l);if(t>Math.PI)for(;o>Math.PI;)o-=2*Math.PI,a+=2*Math.PI;else if(t<-Math.PI)for(;o<-Math.PI;)o+=2*Math.PI,a-=2*Math.PI;return a},getKendyShapePts:function(t){var e=[];if(2>(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length)return e;var i=this.calcShapePoints(t);if(12!=i.length)return e;i.push(i[0]),i.push(i[1]),i.splice(0,1);for(var o=0;o<i.length-3;o+=3){var n;n=this.getBezierPtsWithScalePts(i[o],i[o+1],i[o+2],i[o+3]),e=e.concat(n)}return e},calcShapePoints:function(t){var e=[],i=[],o=t.length;if(0!==o){if(1!==o){if(2==o){var n=this.calcProtudeC3(t[0],t[1]);i.push(t[0]),i.push(t[1]),i.push(n)}else if(i.push(t[0]),i.push(t[1]),i.push(t[2]),(SuperMap.Plot.PlottingUtil.isSamePt(t[0],t[2])||SuperMap.Plot.PlottingUtil.isSamePt(t[1],t[2]))&&(e.push(t[0]),e.push(t[1])),SuperMap.Plot.PlottingUtil.isSamePt(t[0],t[1]))return e.push(t[0]),void e.push(t[2]);i=this.reNormalizeKidneyCtrlPoints(i);var l=new SuperMap.Geometry.Point(0,0),a=new SuperMap.Geometry.Point(0,0);l.x=.5*(i[0].x+i[1].x),l.y=.5*(i[0].y+i[1].y),a.x=l.x-.1*(i[2].x-l.x),a.y=l.y-.1*(i[2].y-l.y);var s=this.GetPtsByTriangle(3,0,i[1],i[0],a);e.push(s.pr),e.push(a),e.push(s.pl);var r=this.GetPtsByTriangle(4,2,i[2],i[0],i[1]);e.push(r.pr),e.push(i[1]),e.push(r.pl);var u=this.GetPtsByTriangle(2,0,i[0],i[1],i[2]);e.push(u.pr),e.push(i[2]),e.push(u.pl);var p=this.GetPtsByTriangle(4,1,i[1],i[2],i[0]);return e.push(p.pr),e.push(i[0]),e.push(p.pl),e}e.push(t[0])}},calcProtudeC3:function(t,e){var i,o=new SuperMap.Geometry.Point(0,0);return o.x=.5*(t.x+e.x),o.y=.5*(t.y+e.y),i=SuperMap.Plot.PlottingUtil.distance(e,t)/2.7,this.GetPointsOfNormal(i,t,o).pt3},GetPointsOfNormal:function(t,e,i){var o,n=new SuperMap.Geometry.Point(0,0),l=new SuperMap.Geometry.Point(0,0),a=new SuperMap.Geometry.Point(0,0);return 0==(o=SuperMap.Plot.PlottingUtil.distance(e,i))?(a.y=0,a.x=t):(a.x=t*(e.x-i.x)/o,a.y=t*(e.y-i.y)/o),n.x=-a.y+i.x,n.y=a.x+i.y,l.x=a.y+i.x,l.y=-a.x+i.y,{pt3:n,pt4:l}},reNormalizeKidneyCtrlPoints:function(t){var e=[];e.push(new SuperMap.Geometry.Point(0,0)),e.push(new SuperMap.Geometry.Point(0,0)),e.push(new SuperMap.Geometry.Point(0,0));var i=t.length;if(i<2)return e;if(2==i)e[0]=t[0],e[1]=t[1],e[2]=this.calcProtudeC3(t[0],t[1]);else{var o,n,l,a=t[0],s=t[1],r=t[2];if(o=SuperMap.Plot.PlottingUtil.distance(s,a),n=SuperMap.Plot.PlottingUtil.distance(r,s),l=SuperMap.Plot.PlottingUtil.distance(a,r),n>=o&&n>=l){var u=a.clone();a=r.clone(),r=u.clone()}else if(l>=o&&l>=n){var p=r.clone();r=s.clone(),s=p.clone()}if(!SuperMap.Plot.PlottingUtil.isRight(r,a,s)){var h=a.clone();a=s.clone(),s=h.clone()}e[0]=a,e[1]=s,e[2]=r}return e},GetPtsByTriangle:function(t,e,i,o,n){var l=new SuperMap.Geometry.Point(0,0),a=0,s=0;return a=SuperMap.Plot.PlottingUtil.distance(n,i),s=SuperMap.Plot.PlottingUtil.distance(o,n),1==e&&(a*=2),2==e&&(s*=2),l.x=(a*o.x+s*i.x)/(a+s),l.y=(a*o.y+s*i.y)/(a+s),{pl:this.GetWhichPtOfNormal(t,i,l,n),pr:this.GetWhichPtOfNormal(t,o,l,n)}},GetWhichPtOfNormal:function(t,e,i,o){var n=0;n=SuperMap.Plot.PlottingUtil.distance(o,e)/t;var l=this.GetPointsOfNormal(n,i,o);return SuperMap.Plot.PlottingUtil.distance(e,l.pt4)>=(n=SuperMap.Plot.PlottingUtil.distance(e,l.pt3))?l.pt3:l.pt4},getBezierPtsWithScalePts:function(t,e,i,o){var n=[],l=t.x,a=t.y,s=e.x,r=e.y,u=i.x,p=i.y,h=o.x,c=o.y;if(SuperMap.Plot.PlottingUtil.equalFuzzy(l,s,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(a,r,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(u,h,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(p,c,1e-10))n.push(new SuperMap.Geometry.Point(l,a)),n.push(new SuperMap.Geometry.Point(u,p));else for(var y=0;y<=1;y+=.03125){var f,S,g,P,d=y*y,m=d*y;f=1-3*y+3*d-m,S=3*(y-2*d+m),g=3*(d-m),P=m;var b=new SuperMap.Geometry.Point(f*l+S*s+g*u+P*h,f*a+S*r+g*p+P*c);n.push(b)}return n},getSpatialData:function(t,e,i,o){switch(null==o&&(o=!0),t){case 24:return this.polyline(e);case 390:return this.kidney(e,o);case 590:return this.bezier(e,o);case 360:return this.loopbezier(e,o);case 28:return this.parallelogram(e);case 32:return this.polygon(e);case 29:return this.circle(e);case 26:return this.rectangle(e);case 380:return this.sector(e);case 370:return this.lune(e);case 44:return this.arc(e);case 31:return this.ellipse(e,i,o);case 48:return this.parallelline(e);default:return e}}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.PlottingUtil=SuperMap.Plot.PlottingUtil=SuperMap.Plot.PlottingUtil||{};SuperMap.Plot.PlottingUtil.DEFAULT_PRECISION=14,SuperMap.Plot.PlottingUtil.DPI=96,SuperMap.Plot.PlottingUtil.RTOD=57.29577951308232,SuperMap.Plot.PlottingUtil.DTOR=.017453292519943295,SuperMap.Plot.PlottingUtil.dirAngle=function(t,e){var i,o,n,l;i=e.x,o=e.y,n=i-t.x,l=o-t.y;var a=Math.atan2(l,n);return a<0&&(a+=2*Math.PI),a},SuperMap.Plot.PlottingUtil.generateUuid=function(){for(var t=[],e=0;e<36;e++)t[e]="0123456789abcdef".substr(Math.floor(16*Math.random()),1);return t[14]="4",t[19]="0123456789abcdef".substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-",t.join("")},SuperMap.Plot.PlottingUtil.cloneObject=function(t){return JSON.parse(JSON.stringify(t))},SuperMap.Plot.PlottingUtil.colorRGBA=function(t,e){var i=t.substring(1,3),o=parseInt(i,16),n=t.substring(3,5),l=parseInt(n,16),a=t.substring(5);return"rgba("+o+","+l+","+parseInt(a,16)+","+e+")"},SuperMap.Plot.PlottingUtil.colorRGBToString=function(t){var e=t.red.toString(16);e.length<2&&(e="0"+e);var i=t.green.toString(16);i.length<2&&(i="0"+i);var o=t.blue.toString(16);return o.length<2&&(o="0"+o),"#"+e+i+o},SuperMap.Plot.PlottingUtil.colorStringToRGB=function(t){var e={},i=t.substring(1,3);e.red=parseInt(i,16);var o=t.substring(3,5);e.green=parseInt(o,16);var n=t.substring(5);return e.blue=parseInt(n,16),e},SuperMap.Plot.PlottingUtil.decimalToHex=function(t){for(var e=t.toString(16);e.length<8;)e="0"+e;var i=e.substring(0,2),o=e.substring(2,4),n=e.substring(4,6);return{color:"#"+e.substring(6)+n+o,alpha:parseInt(i,16)/255}},SuperMap.Plot.PlottingUtil.hexToDecimal=function(t,e){var i=t.substring(1,3),o=t.substring(3,5),n=t.substring(5),l=parseInt(n+o+i,16),a=Math.round(255*e).toString(16);return parseInt(a+"000000",16)+l},SuperMap.Plot.PlottingUtil.getAlign=function(t){return"TOPLEFT"===t?"lt":"TOPCENTER"===t?"ct":"TOPRIGHT"===t?"rt":"BOTTOMLEFT"===t?"lb":"BOTTOMCENTER"===t?"cb":"BOTTOMRIGHT"===t?"rb":"MIDDLELEFT"===t?"lm":"MIDDLECENTER"===t?"cm":"MIDDLERIGHT"===t?"rm":"lt"},SuperMap.Plot.PlottingUtil.trim=function(t){return null==t?"":t.replace(/(^\s*)|(\s*$)/g,"")},SuperMap.Plot.PlottingUtil.getTextWidth=function(t,e){" "===e&&(e="_");var i=document.createElement("span");document.body.appendChild(i),i.style.width="auto",i.style.height="auto",t.fontSize&&(i.style.fontSize=new String(t.fontSize)+"px"),t.fontFamily&&(i.style.fontFamily=t.fontFamily),t.fontWeight&&(i.style.fontWeight=t.fontWeight),i.style.position="absolute",i.style.visibility="hidden",i.style.display="inline-block",i.innerHTML=e;var o=i.clientWidth,n=e.length;return void 0===t.fontSpace&&void 0===t.fontPercent||(0!==t.fontSpace&&100!==t.fontPercent&&void 0!==t.fontSpace||void 0!==t.fontPercent?o=t.fontPercent/100*o+t.fontSpace*(t.fontPercent/100)*(n-1):0===t.fontSpace&&100!==t.fontPercent&&void 0!==t.fontPercent?o=t.fontPercent/100*o:0!==t.fontSpace&&100===t.fontPercent&&void 0!==t.fontSpace&&(o+=t.fontSpace*(n-1))),document.body.removeChild(i),o},SuperMap.Plot.PlottingUtil.getTextCount=function(t){for(var e=0,i=0,o=0;o<t.length;o++)t.charCodeAt(o)>255?e++:i++;return e+i/2},SuperMap.Plot.PlottingUtil.toJSON=function(t){var e=t;if(null==e)return null;switch(e.constructor){case String:return e=(e=(e=(e=(e=(e=(e='"'+e.replace(/(["\\])/g,"\\$1")+'"').replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace("<","<")).replace(">",">")).replace(/%/g,"%2525")).replace(/&/g,"%26");case Array:for(var i=[],n=0,l=e.length;n<l;n++)i.push(SuperMap.Plot.PlottingUtil.toJSON(e[n]));return"["+i.join(",")+"]";case Number:return isFinite(e)?String(e):null;case Boolean:return String(e);case Date:return"{'__type':\"System.DateTime\",'Year':"+e.getFullYear()+",'Month':"+(e.getMonth()+1)+",'Day':"+e.getDate()+",'Hour':"+e.getHours()+",'Minute':"+e.getMinutes()+",'Second':"+e.getSeconds()+",'Millisecond':"+e.getMilliseconds()+",'TimezoneOffset':"+e.getTimezoneOffset()+"}";default:if(null!=e.toJSON&&"function"==typeof e.toJSON)return e.toJSON();if("object"===(void 0===e?"undefined":o(e))){if(e.length){for(var a=[],s=0,r=e.length;s<r;s++)a.push(SuperMap.Plot.PlottingUtil.toJSON(e[s]));return"["+a.join(",")+"]"}var u=[];for(var p in e)"function"!=typeof e[p]&&"CLASS_NAME"!==p&&"parent"!==p&&u.push('"'+p+'":'+SuperMap.Plot.PlottingUtil.toJSON(e[p]));return u.length>0?"{"+u.join(",")+"}":"{}"}return e.toString()}},SuperMap.Plot.PlottingUtil.copyFeature=function(t){var e=null;if(null!=t&&t.geometry){var i=t.geometry.clone();e=new SuperMap.Feature.Vector(i),t.style&&(e.style=SuperMap.Plot.PlottingUtil.copyAttributes(e.style,t.style)),i.feature=e,i.calculateParts()}return e},SuperMap.Plot.PlottingUtil.getSurroundLinePts=function(t,e){for(var i=[],o=[],n=0;n<t.length-1;n++){var l,a,s=[];if(!SuperMap.Plot.PlottingUtil.equalFuzzy(t[n].x,t[n+1].x)||!SuperMap.Plot.PlottingUtil.equalFuzzy(t[n].y,t[n+1].y)){s.push(t[n]),s.push(t[n+1]);var r=SuperMap.Plot.PlottingUtil.parallel(s,e);if(l=r[0],a=r[1],0!=i.length){var u=SuperMap.Plot.PlottingUtil.intersectLines(l,a,i[0],i[1]);if(u.isIntersectLines){var p=u.intersectPoint,h=SuperMap.Plot.PlottingUtil.distance(l,a);SuperMap.Plot.PlottingUtil.distance(p,a)>2*h?o.push(a):(o[o.length-1]=p,o.push(a))}else o.push(a)}else o.push(l),o.push(a);(i=[]).push(o[o.length-2]),i.push(o[o.length-1])}}if(t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y&&1<o.length){var c=SuperMap.Plot.PlottingUtil.intersectLines(o[0],o[1],o[o.length-2],o[o.length-1]);if(c.isIntersectLines){var y=c.intersectPoint;o[o.length-1]=y,o[0]=y}}return o},SuperMap.Plot.PlottingUtil.copyFontStyle=function(t,e){void 0===t.labelAlign&&void 0!==e.labelAlign&&(t.labelAlign=e.labelAlign),!0!==t.fontSizeLimit&&(void 0!==e.fontSize&&(t.fontSize=e.fontSize),void 0!==e.fontWeight&&(t.fontWeight=e.fontWeight),void 0!==e.fontStyle&&(t.fontStyle=e.fontStyle),void 0!==e.fontSpace&&(t.fontSpace=e.fontSpace),void 0!==e.fontPercent&&(t.fontPercent=e.fontPercent)),t.strokeWidth=e.strokeWidth},SuperMap.Plot.PlottingUtil.getDataFromServer=function(t,e,i,n,l,a,s,r){var u=void 0;if(void 0!==a&&(u=a),"undefined"!=typeof SuperMap&&void 0!==SuperMap.GetSymbolInfoService){var p=new SuperMap.GetSymbolInfoService(t);p.events.on({processCompleted:s,processFailed:r,scope:u});var h=new SuperMap.GetSymbolInfoParameters;h.libID=e,h.code=i,l&&SuperMap.Plot.PlottingUtil.extend(h,l),n&&null!=n&&(SuperMap.Plot.PlottingUtil.isArray(n)||(n=[n]),h.inputPoints=n),p.processAsync(h)}else if(void 0!==("undefined"==typeof SuperMap?"undefined":o(SuperMap))&&void 0!==o(SuperMap.REST)&&void 0!==o(SuperMap.REST.GetSymbolInfoService)){var c=new SuperMap.REST.GetSymbolInfoService(t);c.events.on({processCompleted:s,processFailed:r,scope:u});var y=new SuperMap.REST.GetSymbolInfoParameters;if(y.libID=e,y.code=i,l&&SuperMap.Plot.PlottingUtil.extend(y,l),n&&null!=n&&(SuperMap.Plot.PlottingUtil.isArray(n)||(n=[n]),y.inputPoints=n),l&&l.credential){var f=l.credential;c.processAsync(y,f)}else c.processAsync(y)}},SuperMap.Plot.PlottingUtil.innerOutlineDir=function(t){function e(t,e){function i(t){var e=Math.atan2(t.y,t.x);return e<0&&(e+=2*Math.PI),e}var o=i(e)-i(t);return o<-Math.PI&&(o+=2*Math.PI),o>Math.PI&&(o-=2*Math.PI),o}if(t.length<3)return 1;for(var i=0,o={x:0,y:0},n={x:0,y:0},l=2;l<t.length;l++)n.x=t[l].x-t[l-1].x,n.y=t[l].y-t[l-1].y,o.x=t[l-1].x-t[l-2].x,o.y=t[l-1].y-t[l-2].y,i+=e(o,n);return n.x=t[1].x-t[0].x,n.y=t[1].y-t[0].y,o.x=t[0].x-t[t.length-1].x,o.y=t[0].y-t[t.length-1].y,(i+=e(o,n))>=0?-1:1},SuperMap.Plot.PlottingUtil.isNear=function(t,e){return e||(e=SuperMap.Plot.PlottingUtil.TORLERANCE_STATIC),t<e&&t>-e},SuperMap.Plot.PlottingUtil.equalFuzzy=function(t,e,i){return i||(i=1e-18),Math.abs(t-e)<=i},SuperMap.Plot.PlottingUtil.intersectLines=function(t,e,i,o){var n={isIntersectLines:!1};if(t.x===e.x&&t.y===e.y||i.x===o.x&&i.y===o.y)return n;var l=e.x-t.x,a=e.y-t.y,s=o.x-i.x,r=o.y-i.y,u=l*r-s*a;if(SuperMap.Plot.PlottingUtil.isNear(u))return n;var p=(l*(t.y-i.y)-a*(t.x-i.x))/u,h=new SuperMap.Geometry.Point(0,0);return h.x=p*s+i.x,h.y=p*r+i.y,n.isIntersectLines=!0,n.intersectPoint=h,n},SuperMap.Plot.PlottingUtil.getEnvelopePoints=function(t){function e(t,e){if(t.length!==e.length)return!1;for(var i=0;i<t.length;i++)if(t[i].x!==e[i].x||t[i].y!==e[i].y)return!1;return!0}function i(t,e,i){for(var o=0;o<t.length;o++)if(t[o].containsPoint(e))return i.index=o,!0;return!1}function o(t,e,i){for(var o=t.components[0].components,n=new SuperMap.Geometry.Point(0,0),l=0;l<o.length-1;l++)if(SuperMap.Plot.PlottingUtil.intersectLineSegs(e,i,o[l],o[l+1],n))return n;return null}function n(t,e){if(0===t.length||SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].x,e[e.length-1].x,.5)&&SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].y,e[e.length-1].y,.5))return e;for(var i=e[e.length-1],o=0;o<t.length;o++)if(SuperMap.Plot.PlottingUtil.equalFuzzy(t[o][0].x,i.x,.5)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[o][0].y,i.y,.5)){e=e.concat(t[o]),t.splice(o,1);var l=n(t,e);if(void 0!==l&&0!==l.length)return l}else if(SuperMap.Plot.PlottingUtil.equalFuzzy(t[o][t[o].length-1].x,i.x,.5)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[o][t[o].length-1].y,i.y,.5)){for(var a=t[o].length-1;a>=0;a--)e.push(t[o][a]);t.splice(o,1);var s=n(t,e);if(void 0!==s&&0!==s.length)return s}return e}if(SuperMap.Plot.PlottingUtil.isArray(t)||(t=[t]),0===t.length)return[];if(1===t.length)return t[0];for(var l=0;l<t.length;l++)for(var a=l+1;a<t.length;)e(t[l],t[a])?t.splice(a,1):a++;for(var s=[],r=0;r<t.length;r++)s.push(new SuperMap.Geometry.Polygon([new SuperMap.Geometry.LinearRing(t[r])]));for(var u=[],p=0;p<t.length;p++){var h=[],c=[],y=-1,f=-1,S=s.slice();S.splice(p,1);for(var g={},P=0;P<t[p].length;P++)if(i(S,t[p][P],g)){if(0!==c.length){var d=o(s[g.index],t[p][P-1],t[p][P]);d&&d!==t[p][P-1]&&d!==t[p][P]&&c.push(d),h.push(c),c=[]}}else{if(0===P&&(y=h.length),P===t[p].length-1&&(f=h.length),0===c.length&&void 0!==g.index){var m=o(s[g.index],t[p][P-1],t[p][P]);m&&m!==t[p][P-1]&&m!==t[p][P]&&c.push(m)}c.push(t[p][P].clone())}if(0!==c.length&&h.push(c),y<h.length&&f<h.length&&y!==f){for(var b=0;b<h[y].length;b++)h[f].push(h[y][b]);h.splice(y,1)}u=u.concat(h)}for(var L=[];0!==u.length;){var M=u[0];u.splice(0,1);var v=n(u,M);void 0!==v&&(M=v),M.length>2&&L.push(M)}return L},SuperMap.Plot.PlottingUtil.isRight=function(t,e,i){var o=e,n=i,l=e,a=t;return(n.x-o.x)*(a.y-l.y)-(a.x-l.x)*(n.y-o.y)<0},SuperMap.Plot.PlottingUtil.radian=function(t,e){var i,o,n=0;return i=e.x-t.x,o=e.y-t.y,(n=Math.atan2(o,i))<0&&(n+=2*Math.PI),n},SuperMap.Plot.PlottingUtil.findBisectorPoint=function(t,e,i,o){var n=SuperMap.Plot.PlottingUtil.radian(e,t),l=(n+SuperMap.Plot.PlottingUtil.radian(e,i))/2,a=Math.cos(l-n+Math.PI/2),s=o;SuperMap.Plot.PlottingUtil.isNear(a,.15)||(s=o/a);var r=e.x+s*Math.cos(l),u=e.y+s*Math.sin(l);return new SuperMap.Geometry.Point(r,u)},SuperMap.Plot.PlottingUtil.findPoint=function(t,e,i,o){if(t===e||Math.abs(i)<1e-18)return t;var n=SuperMap.Plot.PlottingUtil.radian(t,e)+o*Math.PI/180,l=t.x+i*Math.cos(n),a=t.y+i*Math.sin(n);return new SuperMap.Geometry.Point(l,a)},SuperMap.Plot.PlottingUtil.isSameQuadrant=function(t,e,i,o){var n=(e.x-t.x)*(o.x-i.x),l=(e.y-t.y)*(o.y-i.y);return!(Math.abs(n)<1e-18&&Math.abs(l)<1e-18)&&((n>0||Math.abs(n)<1e-18)&&(l>0||Math.abs(l)<1e-18))},SuperMap.Plot.PlottingUtil.isCross=function(t,e,i,o){var n=new SuperMap.Geometry.Point(0,0);return!(!SuperMap.Plot.PlottingUtil.intersectLineSegs(t,e,i,o,n)||n==t||n===e||n===i||n==o)},SuperMap.Plot.PlottingUtil.intersectLineSegs=function(t,e,i,o,n){if(SuperMap.Plot.PlottingUtil.equalFuzzy(t.x,e.x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t.y,e.y))return n.x=t.x,n.y=t.y,!1;if(SuperMap.Plot.PlottingUtil.equalFuzzy(i.x,o.x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(i.y,o.y))return n.x=i.x,n.y=i.y,!1;var l=0,a=0;if(l=t.x>e.x?t.x:e.x,a=t.x<e.x?t.x:e.x,i.x-l>1e-16&&o.x-l>1e-16||i.x-a<-1e-16&&o.x-a<-1e-16)return!1;if(l=t.y>e.y?t.y:e.y,a=t.y<e.y?t.y:e.y,i.y-l>1e-16&&o.y-l>1e-16||i.y-a<-1e-16&&o.y-a<-1e-16)return!1;var s=e.x-t.x,r=e.y-t.y,u=o.x-i.x,p=o.y-i.y,h=t.x-i.x,c=t.y-i.y,y=s*p-u*r,f=y;if(Math.abs(s)>1e-18&&Math.abs(u)>1e-18&&(f/=s*u),Math.abs(f)<1e-18)return t===i?(n.x=t.x,n.y=t.y,!SuperMap.Plot.PlottingUtil.isSameQuadrant(t,e,i,o)):e===o?(n.x=e.x,n.y=e.y,!SuperMap.Plot.PlottingUtil.isSameQuadrant(t,e,i,o)):t===o?(n.x=t.x,n.y=t.y,SuperMap.Plot.PlottingUtil.isSameQuadrant(t,e,i,o)):e===i&&(n.x=e.x,n.y=e.y,SuperMap.Plot.PlottingUtil.isSameQuadrant(t,e,i,o));var S=(s*c-r*h)/y,g=(u*c-p*h)/y;return!(S<0&&(Math.abs(S*u)>1e-16||Math.abs(S*p)>1e-16))&&(!(S>1&&(Math.abs((S-1)*u)>1e-16||Math.abs((S-1)*p)>1e-16))&&(!(g<0&&(Math.abs(g*s)>1e-16||Math.abs(g*r)>1e-16))&&(!(g>1&&(Math.abs((g-1)*s)>1e-16||Math.abs((g-1)*r)>1e-16))&&(Math.abs(S)<1e-18?(n.x=i.x,n.y=i.y,!0):Math.abs(S-1)<1e-18?(n.x=o.x,n.y=o.y,!0):Math.abs(g)<1e-18?(n.x=t.x,n.y=t.y,!0):Math.abs(g-1)<1e-18?(n.x=e.x,n.y=e.y,!0):!(S<0&&(Math.abs(S*u)>1e-16||Math.abs(S*p)>1e-16))&&(!(S>1&&(Math.abs((S-1)*u)>1e-16||Math.abs((S-1)*p)>1e-16))&&(!(g<0&&(Math.abs(g*s)>1e-16||Math.abs(g*r)>1e-16))&&(!(g>1&&(Math.abs((g-1)*s)>1e-16||Math.abs((g-1)*r)>1e-16))&&(n.x=S*u+i.x,n.y=S*p+i.y,!0))))))))},SuperMap.Plot.PlottingUtil.parallel=function(t,e){var i=[],o=t.length;if(!t||null==t||t.length<2)return i;var n=!1;t.length>3&&t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y&&(n=!0),n?(i[0]=SuperMap.Plot.PlottingUtil.findBisectorPoint(t[t.length-2],t[0],t[1],e),i[t.length-1]=i[0]):(i[0]=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,90),i[t.length-1]=SuperMap.Plot.PlottingUtil.findPoint(t[t.length-1],t[t.length-2],-e,90));for(var l=t[0],a=t[1],s=t[1],r=1;r<t.length-1;r++)if(a=t[r],t[r]!==t[r-1]&&(l=t[r-1]),t[r]!==t[r+1]){s=t[r+1];var u=SuperMap.Plot.PlottingUtil.findBisectorPoint(l,a,s,e);SuperMap.Plot.PlottingUtil.isCross(l,i[r-1],a,u)&&(u=i[r-1]),i[r]=u}else{for(var p=r;p<o-1;){if(t[p]!==t[p+1]){s=t[p+1];break}p++}if(p<o-1){var h=SuperMap.Plot.PlottingUtil.FindBisectorPoint(l,a,s,e);for(SuperMap.Plot.PlottingUtil.isCross(l,i[r-1],a,h)&&(h=i[r-1]);r<p;)i[r]=h,r++;r=p-1}}return i},SuperMap.Plot.PlottingUtil.distance=function(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))},SuperMap.Plot.PlottingUtil.projectPoint=function(t,e,i){if(e===i)return e;var o=new SuperMap.Geometry.Point(0,0),n=i.x-e.x,l=e.y-i.y,a=n*n,s=l*l,r=n*l,u=n*n+l*l;return o.x=(r*(e.y-t.y)+e.x*s+t.x*a)/u,o.y=(r*(e.x-t.x)+e.y*a+t.y*s)/u,o},SuperMap.Plot.PlottingUtil.pointToLineDis=function(t,e,i){var o=SuperMap.Plot.PlottingUtil.projectPoint(t,e,i);return SuperMap.Plot.PlottingUtil.distance(t,o)},SuperMap.Plot.PlottingUtil.pointToPloyLineDis=function(t,e,i){if(e===i)return SuperMap.Plot.PlottingUtil.distance(t,e);var o=(e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y),n=(i.x-t.x)*(i.x-t.x)+(i.y-t.y)*(i.y-t.y),l=(e.x-i.x)*(e.x-i.x)+(e.y-i.y)*(e.y-i.y),a=(o+l-n)/(2*l);a<0?a=0:a>1&&(a=1);var s=(i.x-e.x)*a+e.x,r=(i.y-e.y)*a+e.y,u=(s-t.x)*(s-t.x)+(r-t.y)*(r-t.y);return Math.sqrt(u)},SuperMap.Plot.PlottingUtil.isCounterClockwise=function(t,e,i){return(i.x-e.x)*(t.y-e.y)-(t.x-e.x)*(i.y-e.y)>0},SuperMap.Plot.PlottingUtil.clearSamePts=function(t){for(var e=t.length,i=0;i<e-1;)SuperMap.Plot.PlottingUtil.equalFuzzy(t[i].x,t[i+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[i].y,t[i+1].y)?(t.splice(i,1),e--):i++;return t},SuperMap.Plot.PlottingUtil.getBeizerCtrlPt=function(t){var e=[],i=t.length;if(i<3)for(var o=0;o<i;++o)e[o]=t[o].clone();else{for(var n=0,l=0;l<3*i-2;l+=3)e[l]=t[n].clone(),e[l+1]=new SuperMap.Geometry.Point(0,0),e[l+2]=new SuperMap.Geometry.Point(0,0),n++;for(var a=1;a<i-1;a++)SuperMap.Plot.PlottingUtil.getTrianglePoints(8,3,t[a-1],t[a],t[a+1],e[3*a+1],e[3*a+2]);SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.6,e[0],e[3],e[4],e[2]),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.6,e[3*i-3],e[3*i-6],e[3*i-4],e[3*i-2]),e[1]=t[0].clone(),e[3*i-1]=t[i-1].clone()}return e},SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt=function(t,e){var i=t.slice();!0===e&&i.push(i[0]);var o=SuperMap.Plot.PlottingUtil.getBeizerCtrlPt(i);return SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(o)},SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt=function(t){var e=t.length,i=[];if(t.length<3)for(var o=0;o<e;o++)i[o]=t[o].clone();else for(var n=0;n<e;n+=3)if(!(n+4>=e)){var l=t[n].x,a=t[n].y,s=t[n+2].x,r=t[n+2].y,u=t[n+4].x,p=t[n+4].y,h=t[n+3].x,c=t[n+3].y;if(SuperMap.Plot.PlottingUtil.equalFuzzy(l,s,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(a,r,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(u,h,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(p,c,1e-10))i.push(new SuperMap.Geometry.Point(l,a)),i.push(new SuperMap.Geometry.Point(u,p));else for(var y=0;y<=1;y+=.03125){var f,S,g,P,d=y*y,m=d*y;f=1-3*y+3*d-m,S=3*(y-2*d+m),g=3*(d-m),P=m;var b=new SuperMap.Geometry.Point(f*l+S*s+g*u+P*h,f*a+S*r+g*p+P*c);i.push(b)}}return i},SuperMap.Plot.PlottingUtil.computeBeizerPoints=function(t,e,i){var o=SuperMap.Plot.PlottingUtil.polylineDistance(e),n=[],l=[],a=[];if(t){l.push(e[0]);var s=i[0],r=i[1],u=e[0].x+o*s,p=e[0].y+o*r;l.push(new SuperMap.Geometry.Point(u,p)),n.push(new SuperMap.Geometry.Point(u,p));for(var h=1;h<e.length-1;h++){var c=i[4*h-2],y=i[4*h-1],f=e[h].x+o*c,S=e[h].y+o*y;l.push(new SuperMap.Geometry.Point(f,S)),n.push(new SuperMap.Geometry.Point(f,S)),l.push(new SuperMap.Geometry.Point(e[h].x,e[h].y)),c=i[4*h],y=i[4*h+1],f=e[h].x+o*c,S=e[h].y+o*y,l.push(new SuperMap.Geometry.Point(f,S)),n.push(new SuperMap.Geometry.Point(f,S))}var g=e.length-1;s=i[4*g-2],r=i[4*g-1],u=e[g].x+o*s,p=e[g].y+o*r,l.push(new SuperMap.Geometry.Point(u,p)),n.push(new SuperMap.Geometry.Point(u,p)),l.push(new SuperMap.Geometry.Point(e[g].x,e[g].y)),l.push(new SuperMap.Geometry.Point(e[g].x,e[g].y)),l.push(new SuperMap.Geometry.Point(e[g].x,e[g].y)),a=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(l)}else{i=[];var P=(l=SuperMap.Plot.PlottingUtil.getBeizerCtrlPt(e))[1].x-l[0].x,d=l[1].y-l[0].y,m=P/o,b=d/o;i.push(m),i.push(b),n.push(l[1]);for(var L=1;L<e.length-1;L++){var M=(l[3*L-1].x-l[3*L].x)/o,v=(l[3*L-1].y-l[3*L].y)/o;i.push(M),i.push(v),n.push(l[3*L-1]);var T=(l[3*L+1].x-l[3*L].x)/o,A=(l[3*L+1].y-l[3*L].y)/o;i.push(T),i.push(A),n.push(l[3*L+1])}m=(P=l[3*(e.length-1)-1].x-l[3*(e.length-1)].x)/o,b=(d=l[3*(e.length-1)-1].y-l[3*(e.length-1)].y)/o,i.push(m),i.push(b),n.push(l[3*(e.length-1)-1]),a=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(l)}return{scalePoints:n,scaleValues:i,beizerPoints:a}},SuperMap.Plot.PlottingUtil.getTrianglePoints=function(t,e,i,o,n,l,a){var s=i.x,r=i.y,u=o.x,p=o.y,h=n.x,c=n.y;SuperMap.Plot.PlottingUtil.getPointsByTriangle(t,e,s,r,u,p,h,c,l,a)},SuperMap.Plot.PlottingUtil.getPointsByTriangle=function(t,e,i,o,n,l,a,s,r,u){var p=n+(a-i),h=l+(s-o),c=0,y=0;if(i==a)c=i,y=h;else if(o==s)c=p,y=o;else{var f=1*(s-o)/(a-i),S=o-i*f;y=f*(c=(h+p/f-S)/(f+1/f))+S}var g=Math.sqrt(1*(n-p)*(n-p)+1*(l-h)*(l-h)),P=Math.sqrt(1*(i-n)*(i-n)+1*(o-l)*(o-l)),d=Math.sqrt(1*(n-a)*(n-a)+1*(l-s)*(l-s)),m=0;p=c+(p-c)*(m=P+d?1+(d-P)*t/(d+P):1),h=y+(h-y)*m,0==g&&(g=1),r.x=n+(n-p)*P/(e*g),r.y=l+(l-h)*P/(e*g),u.x=n+(p-n)*d/(e*g),u.y=l+(h-l)*d/(e*g)},SuperMap.Plot.PlottingUtil.getTrapezoidPoints=function(t,e,i,o,n){var l=e.x,a=e.y,s=i.x,r=i.y,u=o.x,p=o.y;return SuperMap.Plot.PlottingUtil.getPointsByTrapezoid(t,l,a,s,r,u,p,n)},SuperMap.Plot.PlottingUtil.getPointsByTrapezoid=function(t,e,i,o,n,l,a,s){var r=0,u=0,p=0,h=0;if(0==Math.abs(i-n))r=e+o-l,u=a;else if(0==Math.abs(e-o))r=l,u=i+n-a;else{var c=1*(i-n)/(e-o),y=a-c*l;u=c*(r=((n+i)/2+(e+o)/(2*c)-y)/(c+1/c))+y,r=2*r-l,u=2*u-a}var f=Math.sqrt(1*(e-o)*(e-o)+1*(i-n)*(i-n)),S=Math.sqrt(1*(e-r)*(e-r)+1*(i-u)*(i-u));return f>0?(p=e+(o-e)*S/f,h=i+(n-i)*S/f):(p=e,h=i),s.x=p+(r-p)*t,s.y=h+(u-h)*t,s},SuperMap.Plot.PlottingUtil.pointIsOnPolyLine=function(t,e,i){if(SuperMap.Plot.PlottingUtil.equalFuzzy(t.x,e.x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t.y,e.y)||SuperMap.Plot.PlottingUtil.equalFuzzy(t.x,i.x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t.y,i.y))return!0;var o=t.x-e.x,n=t.y-e.y,l=t.x-i.x,a=t.y-i.y,s=(o*l+n*a)/(Math.sqrt(o*o+n*n)*Math.sqrt(l*l+a*a));return!!SuperMap.Plot.PlottingUtil.equalFuzzy(s,-1,.1)},SuperMap.Plot.PlottingUtil.pointIsOnPolyLines=function(t,e){if(!e||0===e.length)return{isOnPolyLine:!1,index:-1};for(var i=!1,o=-1,n=0;n<e.length-1;n++)if(i=SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(t,e[n],e[n+1])){o=n;break}return{isOnPolyLine:i,index:o}},SuperMap.Plot.PlottingUtil.computePointToLineMinDis=function(t,e){for(var i=-1,o=-1,n=0;n<e.length-1;n++){var l=e[n],a=e[n+1],s=SuperMap.Plot.PlottingUtil.projectPoint(t,l,a);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s,l,a)){var r=SuperMap.Plot.PlottingUtil.distance(t,s);i<0?(i=r,o&&(o=n)):i>r&&(i=r,o=n)}}return o&&i<0&&(o=-1),{minDis:i,index:o}},SuperMap.Plot.PlottingUtil.findPointInLine=function(t,e,i){if(t===e||Math.abs(i)<1e-18)return t;var o=e.x-t.x,n=e.y-t.y,l=i/Math.sqrt(o*o+n*n),a=t.x+o*l,s=t.y+n*l;return new SuperMap.Geometry.Point(a,s)},SuperMap.Plot.PlottingUtil.operateControlPoints=function(t){var e=t,i=e.length;if(3==i){var o=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrapezoidPoints(1,t[0],t[1],t[2],o),e.push(o)}if(i>4&&(e.splice(4,i-4),i=e.length),SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[0],t[1],e[2])){var n=e[0];e[0]=e[1],e[1]=n}if(!SuperMap.Plot.PlottingUtil.pointIsRightToVerticle(e[0],e[1],e[2])){var l=e[2];e[2]=e[3],e[3]=l}return e},SuperMap.Plot.PlottingUtil.pointIsRightToLine=function(t,e,i){return(e.x-t.x)*(i.y-t.y)-(i.x-t.x)*(e.y-t.y)<0},SuperMap.Plot.PlottingUtil.pointIsRightToVerticle=function(t,e,i){var o=new SuperMap.Geometry.Point(.5*(e.x+t.x),.5*(e.y+t.y)),n=new SuperMap.Geometry.Point(e.x-t.x,e.y-t.y),l=new SuperMap.Geometry.Point(i.x-o.x,i.y-o.y);return n.x*l.x+n.y*l.y>0},SuperMap.Plot.PlottingUtil.linePnt=function(t,e,i){var o=SuperMap.Plot.PlottingUtil.distance(t,e);if(0==o)return t;var n=i/o;return SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(n,t,e)},SuperMap.Plot.PlottingUtil.findPointOnLineByRatio=function(t,e,i){var o=new SuperMap.Geometry.Point(0,0);return o.x=e.x+(i.x-e.x)*t,o.y=e.y+(i.y-e.y)*t,o},SuperMap.Plot.PlottingUtil.rotateAngle=function(t,e,i){var o=e,n=Math.cos(o),l=Math.sin(o),a=i.x-t.x,s=i.y-t.y;return i.x=a*n-s*l+t.x,i.y=a*l+s*n+t.y,i},SuperMap.Plot.PlottingUtil.resize=function(t,e,i){return i.x=t.x+e*(i.x-t.x),i.y=t.y+e*(i.y-t.y),i},SuperMap.Plot.PlottingUtil.findPointInPolyLine=function(t,e){if(e<0||t.length<2)return{index:-1,pt:null};if(Math.abs(e)<1e-18)return{index:0,pt:t[0]};for(var i=0,o=0;o<t.length-1;o++)if((i+=SuperMap.Plot.PlottingUtil.distance(t[o],t[o+1]))>e||SuperMap.Plot.PlottingUtil.equalFuzzy(i,e)){var n=i-e,l=t[o+1],a=t[o],s=n/SuperMap.Plot.PlottingUtil.distance(l,a),r=new SuperMap.Geometry.Point(0,0);return r.x=l.x+(a.x-l.x)*s,r.y=l.y+(a.y-l.y)*s,{index:o,pt:r}}return{index:-1,pt:null}},SuperMap.Plot.PlottingUtil.polylineDistance=function(t){if(0===t.length)return 0;for(var e=0,i=0;i<t.length-1;i++)e+=SuperMap.Plot.PlottingUtil.distance(t[i],t[i+1]);return e},SuperMap.Plot.PlottingUtil.rotate=function(t,e,i,o){var n=o.x-t.x,l=o.y-t.y,a=n*e-l*i+t.x,s=n*i+l*e+t.y;return new SuperMap.Geometry.Point(a,s)},SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale=function(t,e,i){var o=e.x,n=e.y,l=i.x,a=i.y,s=Math.sqrt(1*(o-l)*(o-l)+1*(n-a)*(n-a)),r=0,u=0;return 0==s?(r=o,u=n):(r=o+(l-o)*t/s,u=n+(a-n)*t/s),new SuperMap.Geometry.Point(r,u)},SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale=function(t,e,i){var o=e.x,n=e.y,l=i.x,a=i.y,s=0,r=0,u=Math.sqrt(1*(o-l)*(o-l)+1*(n-a)*(n-a));return 0===u?(s=o,r=n):(s=o+(o-l)*t/u,r=n+(n-a)*t/u),new SuperMap.Geometry.Point(s,r)},SuperMap.Plot.PlottingUtil.getSidePointsOfLine=function(t,e,i){var o=e.x,n=e.y,l=i.x,a=i.y,s=Math.sqrt(1*(o-l)*(o-l)+1*(n-a)*(n-a)),r=0,u=0;0==s?(u=0,r=t):(r=t*(o-l)/s,u=t*(n-a)/s);var p=-u+l,h=+r+a,c=+u+l,y=-r+a;return{pntLeft:new SuperMap.Geometry.Point(c,y),pntRight:new SuperMap.Geometry.Point(p,h)}},SuperMap.Plot.PlottingUtil.pointProjectToSegment=function(t,e,i){var o=0,n=0,l=0,a=1,s=void 0,r=void 0;if(n=e.x!==t.x?(e.y-t.y)/(e.x-t.x):1.7976931348623157e308,l=i.x!==t.x?(i.y-t.y)/(i.x-t.x):1.7976931348623157e308,o=i.y!==e.y?(i.x-e.x)/(e.y-i.y):1.7976931348623157e308,(s=e.x>=t.x&&e.y>=t.y?1:e.x<t.x&&e.y>t.y?2:e.x<=t.x&&e.y<=t.y?3:4)==(r=i.x>t.x&&i.y>t.y?1:i.x<t.x&&i.y>t.y?2:i.x<t.x&&i.y<t.y?3:4))(n<o&&l<o||n>o&&l>o)&&(a=0);else switch(s){case 1:(4==r&&n<o||2==r&&n>o)&&(a=0);break;case 2:(1==r&&n<o||3==r&&n>o)&&(a=0);break;case 3:(2==r&&n<o||4==r&&n>o)&&(a=0);break;case 4:(3==r&&n<o||1==r&&n>o)&&(a=0)}var u=new SuperMap.Geometry.Point(0,0);return SuperMap.Plot.PlottingUtil.equalFuzzy(o-1.7976931348623157e308,0)?(u.x=t.x,u.y=e.y):SuperMap.Plot.PlottingUtil.equalFuzzy(o,0)?(u.x=e.x,u.y=t.y):(u.x=(o*(e.y-t.y)+o*o*t.x+e.x)/(o*o+1),u.y=t.y+o*(u.x-t.x)),{isOnline:1===a,projectPoint:u}},SuperMap.Plot.PlottingUtil.coordinateTrans=function(t,e,i){var o=SuperMap.Plot.PlottingUtil.distance(new SuperMap.Geometry.Point(0,0),e),n=SuperMap.Plot.PlottingUtil.radian(new SuperMap.Geometry.Point(0,0),e)+i*Math.PI/180,l=o*Math.cos(n)+t.x,a=o*Math.sin(n)+t.y;return new SuperMap.Geometry.Point(l,a)},SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen=function(t,e,i){var o=void 0,n=void 0,l=(i.x-e.x)*(i.x-e.x)+(i.y-e.y)*(i.y-e.y),a=Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y)),s=Math.sqrt((t.x-i.x)*(t.x-i.x)+(t.y-i.y)*(t.y-i.y));if(0==s||0==a)o=0,n=0;else if(0==l)o=a,n=0;else{var r=(a*a+s*s-l)/2/a/s,u=0;r>=1?(r=1,u=0):u=Math.sqrt(1-r*r),o=s*r,n=s*u}return{dLen1:o,dLen2:n}},SuperMap.Plot.PlottingUtil.paraLine=function(t,e,i){var o=[];if(2>t.length)return o;if(i){var n=t[1].clone();n=SuperMap.Plot.PlottingUtil.rotateAngle(t[0],Math.PI/2,n),o.push(SuperMap.Plot.PlottingUtil.linePnt(t[0],n,e));for(var l=1;l<t.length-1;l++)if(!SuperMap.Plot.PlottingUtil.equalFuzzy(t[l].x,t[l+1].x)||!SuperMap.Plot.PlottingUtil.equalFuzzy(t[l].y,t[l+1].y)){for(var a=SuperMap.Plot.PlottingUtil.radian(t[l],t[l+1]),s=SuperMap.Plot.PlottingUtil.radian(t[l],t[l-1])-a;s<0;)s+=2*Math.PI;var r=s/2,u=void 0;u=r>Math.PI/2?r-Math.PI/2:Math.PI/2-r;var p=e/Math.cos(u);n=t[l+1].clone(),n=SuperMap.Plot.PlottingUtil.rotateAngle(t[l],r,n),o.push(SuperMap.Plot.PlottingUtil.linePnt(t[l],n,p))}n=t[t.length-2].clone(),n=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],-1*Math.PI/2,n),o.push(SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],n,e))}else{var h=t[1].clone();h=SuperMap.Plot.PlottingUtil.rotateAngle(t[0],-Math.PI/2,h),o.push(SuperMap.Plot.PlottingUtil.linePnt(t[0],h,e));for(var c=1;c<t.length-1;c++)if(!SuperMap.Plot.PlottingUtil.equalFuzzy(t[c].x,t[c+1].x)||!SuperMap.Plot.PlottingUtil.equalFuzzy(t[c].y,t[c+1].y)){for(var y=SuperMap.Plot.PlottingUtil.radian(t[c],t[c+1]),f=SuperMap.Plot.PlottingUtil.radian(t[c],t[c-1])-y;f<0;)f+=2*Math.PI;var S=Math.PI-f/2,g=void 0;g=S>Math.PI/2?S-Math.PI/2:Math.PI/2-S;var P=e/Math.cos(g);h=t[c-1].clone(),h=SuperMap.Plot.PlottingUtil.rotateAngle(t[c],S,h),o.push(SuperMap.Plot.PlottingUtil.linePnt(t[c],h,P))}h=t[t.length-2].clone(),h=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],Math.PI/2,h),o.push(SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],h,e))}return o},SuperMap.Plot.PlottingUtil.circlePoint=function(t,e,i,o){o*=Math.PI/180;var n=t.x+e*Math.cos(o),l=t.y+i*Math.sin(o);return new SuperMap.Geometry.Point(n,l)},SuperMap.Plot.PlottingUtil.getPolygonCenterPt=function(t){if(!t||0===t.length)return null;for(var e=0,i=0,o=0;o<t.length;o++)e+=t[o].x,i+=t[o].y;return new SuperMap.Geometry.Point(e/t.length,i/t.length)},SuperMap.Plot.PlottingUtil.ptIsInPolygon=function(t,e){if(!t||0===t.length)return!1;for(var i=0,o=t.length,n=0;n<o;n++){var l=t[n],a=t[(n+1)%o];if(l.y!==a.y){var s=l.y<a.y?l.y:a.y,r=l.y>a.y?l.y:a.y;if(!(e.y<s||e.y>r))(e.y-l.y)*(a.x-l.x)/(a.y-l.y)+l.x>e.x&&i++}}return i%2==1},SuperMap.Plot.PlottingUtil.projectPtOnPolyLine=function(t,e){if(2>e.length)return{index:-1,pt:null};for(var i=0;i<e.length-1;i++){var o=SuperMap.Plot.PlottingUtil.pointProjectToSegment(t,e[i],e[i+1]);if(o.isOnline)return{index:i,pt:o.projectPoint}}return{index:-1,pt:null}},SuperMap.Plot.PlottingUtil.isPloyClockwise=function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),i=e.length;if(!(i<3)){var o=e[0].y*(e[i-1].x-e[1].x);e.push(e[0].clone());for(var n=1;n<i;++n)o+=e[n].y*(e[n-1].x-e[n+1].x);return o>0?0:1}},SuperMap.Plot.PlottingUtil.isSamePt=function(t,e){return!(!SuperMap.Plot.PlottingUtil.equalFuzzy(t.x,e.x)||!SuperMap.Plot.PlottingUtil.equalFuzzy(t.y,e.y))},SuperMap.Plot.PlottingUtil.getPtsIndexByDistance=function(t,e){var i=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,t);return{index:i.index,pts:i.pt,bfind:-1!==i.index}},SuperMap.Plot.PlottingUtil.ptInBounds=function(t,e){return t.x>e.left&&t.x<e.right&&t.y<e.top&&t.y>e.bottom},SuperMap.Plot.PlottingUtil.InnerAngle=function(t,e,i){if(t==e||t==i)return 0;var o=SuperMap.Plot.PlottingUtil.distance(t,e),n=SuperMap.Plot.PlottingUtil.distance(t,i),l=SuperMap.Plot.PlottingUtil.distance(e,i),a=(o*o+n*n-l*l)/(2*o*n);return a>1&&SuperMap.Plot.PlottingUtil.equalFuzzy(a,1)?a=1:a<1&&SuperMap.Plot.PlottingUtil.equalFuzzy(a,-1)&&(a=-1),Math.acos(a)},SuperMap.Plot.PlottingUtil.plumbLineLen=function(t,e,i){return SuperMap.Plot.PlottingUtil.distance(t,e)*Math.sin(SuperMap.Plot.PlottingUtil.InnerAngle(e,t,i))},SuperMap.Plot.PlottingUtil.paraPolygon=function(t,e,i){var o=[],n=SuperMap.Plot.PlottingUtil.clonePoints(t),l=n.length;if(l<2)return o;var a=new SuperMap.Geometry.Point(0,0);if(i){if(l<3)a=n[1].clone(),SuperMap.Plot.PlottingUtil.rotateAngle(n[0],Math.PI,a),o.push(SuperMap.Plot.PlottingUtil.linePnt(n[0],a,e));else{for(var s=SuperMap.Plot.PlottingUtil.radian(n[0],n[1]),r=SuperMap.Plot.PlottingUtil.radian(n[0],n[n.length-1])-s;r<0;)r+=2*Math.PI;var u=r/2,p=void 0;p=u>Math.PI/2?u-Math.PI/2:Math.PI/2-u;var h=e/Math.cos(p);a=n[1].clone(),a=SuperMap.Plot.PlottingUtil.rotateAngle(n[0],u,a),o.push(SuperMap.Plot.PlottingUtil.linePnt(n[0],a,h))}for(var c=1;c<l-1;c++){for(var y=SuperMap.Plot.PlottingUtil.radian(n[c],n[c+1]),f=SuperMap.Plot.PlottingUtil.radian(n[c],n[c-1])-y;f<0;)f+=2*Math.PI;var S=f/2,g=void 0;g=S>Math.PI/2?S-Math.PI/2:Math.PI/2-S;var P=e/Math.cos(g);a=n[c+1].clone(),a=SuperMap.Plot.PlottingUtil.rotateAngle(n[c],S,a),o.push(SuperMap.Plot.PlottingUtil.linePnt(n[c],a,P))}if(l<3)a=n[l-2].clone(),SuperMap.Plot.PlottingUtil.rotateAngle(n[l-1],0,a),o.push(SuperMap.Plot.PlottingUtil.linePnt(n[l-1],a,e));else{for(var d=SuperMap.Plot.PlottingUtil.radian(n[l-1],n[0]),m=SuperMap.Plot.PlottingUtil.radian(n[l-1],n[l-2])-d;m<0;)m+=2*Math.PI;var b=m/2,L=void 0;L=b>Math.PI/2?b-Math.PI/2:Math.PI/2-b;var M=e/Math.cos(L);a=n[0].clone(),a=SuperMap.Plot.PlottingUtil.rotateAngle(n[l-1],b,a),o.push(SuperMap.Plot.PlottingUtil.linePnt(n[l-1],a,M))}}else{if(l<3){var v=n[1].clone();SuperMap.Plot.PlottingUtil.rotateAngle(n[0],0,v),o.push(SuperMap.Plot.PlottingUtil.linePnt(n[0],v,e))}else{for(var T=SuperMap.Plot.PlottingUtil.radian(n[0],n[1]),A=SuperMap.Plot.PlottingUtil.radian(n[0],n[l-1])-T;A<0;)A+=2*Math.PI;var _=Math.PI-A/2,O=void 0;O=_>Math.PI/2?_-Math.PI/2:Math.PI/2-_;var x=e/Math.cos(O);a=n[l-1].clone(),a=SuperMap.Plot.PlottingUtil.rotateAngle(n[0],_,a),o.push(SuperMap.Plot.PlottingUtil.linePnt(n[0],a,x))}for(var w=1;w<l-1;w++){for(var I=SuperMap.Plot.PlottingUtil.radian(n[w],n[w+1]),D=SuperMap.Plot.PlottingUtil.radian(n[w],n[w-1])-I;D<0;)D+=2*Math.PI;var E=Math.PI-D/2,C=void 0;C=E>Math.PI/2?E-Math.PI/2:Math.PI/2-E;var R=e/Math.cos(C);a=n[w-1].clone(),a=SuperMap.Plot.PlottingUtil.rotateAngle(n[w],E,a),o.push(SuperMap.Plot.PlottingUtil.linePnt(n[w],a,R))}if(l<3)a=n[l-2].clone(),SuperMap.Plot.PlottingUtil.rotateAngle(n[l-1],Math.PI,a),o.push(SuperMap.Plot.PlottingUtil.linePnt(n[l-1],a,e));else{for(var N=SuperMap.Plot.PlottingUtil.radian(n[l-1],n[0]),U=SuperMap.Plot.PlottingUtil.radian(n[l-1],n[l-2])-N;U<0;)U+=2*Math.PI;var G=Math.PI-U/2,B=void 0;B=G>Math.PI/2?G-Math.PI/2:Math.PI/2-G;var k=e/Math.cos(B);a=n[l-2].clone(),a=SuperMap.Plot.PlottingUtil.rotateAngle(n[l-1],G,a),o.push(SuperMap.Plot.PlottingUtil.linePnt(n[l-1],a,k))}}return o},SuperMap.Plot.PlottingUtil.getOutRectangleDis=function(t){if(2>t.length)return 0;for(var e=t[0].x,i=t[0].x,o=t[0].y,n=t[0].y,l=1;l<t.length;l++)e<t[l].x&&(e=t[l].x),i>t[l].x&&(i=t[l].x),o<t[l].y&&(o=t[l].y),n>t[l].y&&(n=t[l].y);return SuperMap.Plot.PlottingUtil.distance(new SuperMap.Geometry.Point(e,o),new SuperMap.Geometry.Point(i,n))},SuperMap.Plot.PlottingUtil.clonePoints=function(t){var e=[];if(void 0===t||null===t)return e;if(SuperMap.Plot.PlottingUtil.isArray(t)||(t=[t]),t&&null!=t)for(var i=0;i<t.length;i++)void 0!==t[i]&&null!==t[i]&&e.push(t[i].clone());return e},SuperMap.Plot.PlottingUtil.extend=function(t,e){if("function"==typeof SuperMap.Util.extend)return SuperMap.Util.extend(t,e);if(t=t||{},e){for(var i in e){var o=e[i];void 0!==o&&(t[i]=o)}!("function"==typeof window.Event&&e instanceof window.Event)&&e.hasOwnProperty&&e.hasOwnProperty("toString")&&(t.toString=e.toString)}return t},SuperMap.Plot.PlottingUtil.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},SuperMap.Plot.PlottingUtil.indexOf=function(t,e){if(null==t)return-1;if("function"==typeof t.indexOf)return t.indexOf(e);for(var i=0,o=t.length;i<o;i++)if(t[i]===e)return i;return-1},SuperMap.Plot.PlottingUtil.copyAttributes=function(t,e){if(t=t||{},e)for(var i in e){var o=e[i];void 0!==o&&"CLASS_NAME"!==i&&"function"!=typeof o&&(t[i]=o)}return t},SuperMap.Plot.PlottingUtil.cloneObject=function(t){if(null===t||"object"!==(void 0===t?"undefined":o(t)))return t;if(t instanceof Date){var e=new Date;return e.setTime(t.getTime()),e}if(t instanceof Array)return t.slice(0);if(t instanceof Object){var i={};for(var n in t)t.hasOwnProperty(n)&&(i[n]=SuperMap.Plot.PlottingUtil.cloneObject(t[n]));return i}throw new Error("Unable to copy obj! Its type isn't supported.")},SuperMap.Plot.PlottingUtil.rad=function(t){return t*Math.PI/180},SuperMap.Plot.PlottingUtil.deg=function(t){return 180*t/Math.PI},SuperMap.Plot.PlottingUtil.VincentyConstants={a:6378137,b:6356752.3142,f:1/298.257223563},SuperMap.Plot.PlottingUtil.distVincenty=function(t,e){var i,o,n,l=SuperMap.Plot.PlottingUtil.VincentyConstants,a=l.a,s=l.b,r=l.f;"undefined"!=typeof L&&void 0!==L.LatLng&&t instanceof L.LatLng&&e instanceof L.LatLng?(i=SuperMap.Plot.PlottingUtil.rad(e.lng-t.lng),o=Math.atan((1-r)*Math.tan(SuperMap.Plot.PlottingUtil.rad(t.lat))),n=Math.atan((1-r)*Math.tan(SuperMap.Plot.PlottingUtil.rad(e.lat)))):(i=SuperMap.Plot.PlottingUtil.rad(e.lon-t.lon),o=Math.atan((1-r)*Math.tan(SuperMap.Plot.PlottingUtil.rad(t.lat))),n=Math.atan((1-r)*Math.tan(SuperMap.Plot.PlottingUtil.rad(e.lat))));for(var u=Math.sin(o),p=Math.cos(o),h=Math.sin(n),c=Math.cos(n),y=i,f=2*Math.PI,S=20;Math.abs(y-f)>1e-12&&--S>0;){var g=Math.sin(y),P=Math.cos(y),d=Math.sqrt(c*g*(c*g)+(p*h-u*c*P)*(p*h-u*c*P));if(0==d)return 0;var m=u*h+p*c*P,b=Math.atan2(d,m),M=Math.asin(p*c*g/d),v=Math.cos(M)*Math.cos(M),T=m-2*u*h/v,A=r/16*v*(4+r*(4-3*v));f=y,y=i+(1-A)*r*Math.sin(M)*(b+A*d*(T+A*m*(2*T*T-1)))}if(0==S)return NaN;var _=v*(a*a-s*s)/(s*s),O=_/1024*(256+_*(_*(74-47*_)-128));return(s*(1+_/16384*(4096+_*(_*(320-175*_)-768)))*(b-O*d*(T+O/4*(m*(2*T*T-1)-O/6*T*(4*d*d-3)*(4*T*T-3))))).toFixed(3)/1e3},SuperMap.Plot.PlottingUtil.destinationVincenty=function(t,e,i){var o,n,l=SuperMap.Plot.PlottingUtil,a=l.VincentyConstants,s=a.a,r=a.b,u=a.f;"undefined"!=typeof L&&void 0!==L.LatLng&&t instanceof L.LatLng?(o=t.lng,n=t.lat):(o=t.lon,n=t.lat);for(var p=i,h=l.rad(e),c=Math.sin(h),y=Math.cos(h),f=(1-u)*Math.tan(l.rad(n)),S=1/Math.sqrt(1+f*f),g=f*S,P=Math.atan2(f,y),d=S*c,m=1-d*d,b=m*(s*s-r*r)/(r*r),M=1+b/16384*(4096+b*(b*(320-175*b)-768)),v=b/1024*(256+b*(b*(74-47*b)-128)),T=p/(r*M),A=2*Math.PI;Math.abs(T-A)>1e-12;){var _=Math.cos(2*P+T),O=Math.sin(T),x=Math.cos(T);A=T,T=p/(r*M)+v*O*(_+v/4*(x*(2*_*_-1)-v/6*_*(4*O*O-3)*(4*_*_-3)))}var w=g*O-S*x*y,I=Math.atan2(g*x+S*O*y,(1-u)*Math.sqrt(d*d+w*w)),D=u/16*m*(4+u*(4-3*m)),E=Math.atan2(O*c,S*x-g*O*y)-(1-D)*u*d*(T+D*O*(_+D*x*(2*_*_-1)));return"undefined"!=typeof L&&void 0!==L.LatLng&&t instanceof L.LatLng?L.latLng(l.deg(I),o+l.deg(E)):new SuperMap.LonLat(o+l.deg(E),l.deg(I))}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.AnalysisSymbol=SuperMap.Plot.AnalysisSymbol=SuperMap.Plot.AnalysisSymbol||{};SuperMap.Plot.AnalysisSymbol.analysisBasicInfo=function(t){var e=new Object;return e.libID=t.libID,e.code=t.code,e.symbolType=t.symbolType,e.symbolName=t.symbolName,e.textContent=t.textContent,e.minEditPts=t.algoMinEditPts,e.maxEditPts=t.algoMaxEditPts,e.surroundLineType=t.surroundLineType,e},SuperMap.Plot.AnalysisSymbol.analysisDotBasicInfo=function(t){var e=SuperMap.Plot.PlottingUtil.DPI,i=new Object;i.anchorPoint=new SuperMap.Geometry.Point(t.anchorPoint.x,t.anchorPoint.y);var o=0,n=0;return void 0!==t.symbolSizeInLib?(o=Math.round(t.symbolSizeInLib.x*e/25.4/10),n=Math.round(t.symbolSizeInLib.y*e/25.4/10)):(o=Math.round(t.symbolSize.x*e/25.4/10),n=Math.round(t.symbolSize.y*e/25.4/10)),i.symbolSizeInLib=new SuperMap.Size(o,n),i.symbolSizeInLib.w=o,i.symbolSizeInLib.h=n,i.middleMarkBounds=new SuperMap.Bounds(t.middleMarkBounds.leftBottom.x,t.middleMarkBounds.leftBottom.y,t.middleMarkBounds.rightTop.x,t.middleMarkBounds.rightTop.y),i},SuperMap.Plot.AnalysisSymbol.analysisAlgoBasicInfo=function(t,e){var i=new Object;if(i.subSymbols=[],i.scalePoints=[],i.scaleValues=[],e&&t.subSymbols)for(var o=0;o<t.subSymbols.length;o++)i.subSymbols.push(new SuperMap.Plot.SubSymbol(t.libID,t.subSymbols[o]));if(t.scalePoints){i.scalePoints=[];for(var n=0;n<t.scalePoints.length;n++){var l=new SuperMap.Geometry.Point(t.scalePoints[n].x,t.scalePoints[n].y);l.tag=n,l.isScalePoint=!0,i.scalePoints.push(l)}}if(t.scaleValues)for(var a=0;a<t.scaleValues.length;a++)i.scaleValues.push(t.scaleValues[a]);return i},SuperMap.Plot.AnalysisSymbol.analysisSymbolCells=function(t,e){var i=[];if(t&&(function(t,i){if(t.innerCells&&t.innerCells.length)for(var o=0;o<t.innerCells.length;o++){var n=t.innerCells[o];if(t.symbolIsCanFill&&n.type!==SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL){var l=new Object,a=SuperMap.Plot.AnalysisSymbol.getStyle(t,e);l.type=32,l.style={fillSymbolID:a.fillSymbolID,fillColor:a.fillColor,fillOpacity:a.fillOpacity,strokeOpacity:0,strokeWidth:0,fillLimit:!1,lineColorLimit:!0,lineWidthLimit:!0},l.positionPoints=[];for(var s=0;s<n.positionPoints.length;s++){var r=new SuperMap.Geometry.Point(n.positionPoints[s].x,n.positionPoints[s].y);l.positionPoints.push(r)}i.push(l)}}}(t,i),t.innerCells)){var o=t.innerCells;if(0!==o.length)for(var n=0;n<o.length;n++)i.push(SuperMap.Plot.AnalysisSymbol.analysisInnerCell(o[n],e))}return i},SuperMap.Plot.AnalysisSymbol.analysisInnerCell=function(t,e){var i=new Object;if(i.positionPoints=[],t){if(void 0!==t.isPolybezierClose&&(i.isPolybezierClose=t.isPolybezierClose),i.type=t.type,i.surroundLineFlag=t.surroundLineFlag,i.textContent=t.textContent,i.style=SuperMap.Plot.AnalysisSymbol.getStyle(t,e),null!=t.positionPoints)for(var o=t.positionPoints,n=0;n<o.length;n++){var l=new SuperMap.Geometry.Point(o[n].x,o[n].y);i.positionPoints.push(l)}if(i.style.lineColorLimit=t.lineColorLimit,i.style.lineTypeLimit=t.lineTypeLimit,i.style.lineWidthLimit=t.lineWidthLimit,i.style.fillLimit=t.fillLimit,i.style.fillColorLimit=t.fillColorLimit,i.style.fontColorLimit=t.fontColorLimit,i.style.surroundLineLimit=t.surroundLineLimit,i.style.surroundLineFlag=t.surroundLineFlag,i.style.surroundLineType=t.surroundLineType,34==t.type?i.style.fontColorLimit=!0:i.style.fontColorLimit=t.fontColorLimit,i.type===SuperMap.Plot.SymbolType.RECTANGLESYMBOL){var a=i.positionPoints[0],s=i.positionPoints[1],r=a.clone(),u=new SuperMap.Geometry.Point(s.x,a.y),p=s.clone(),h=new SuperMap.Geometry.Point(a.x,s.y);i.positionPoints=[],i.positionPoints.push(r),i.positionPoints.push(u),i.positionPoints.push(p),i.positionPoints.push(h),i.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL}i.type===SuperMap.Plot.SymbolType.TEXTSYMBOL&&(i.style.fontSizeLimit=!0)}return i},SuperMap.Plot.AnalysisSymbol.getStyle=function(t,e){function i(t){var e=t.red.toString(16);e.length<2&&(e="0"+e);var i=t.green.toString(16);i.length<2&&(i="0"+i);var o=t.blue.toString(16);return o.length<2&&(o="0"+o),"#"+e+i+o}function o(t){return"TOPLEFT"===t?"lt":"TOPCENTER"===t?"ct":"TOPRIGHT"===t?"rt":"BOTTOMLEFT"===t?"lb":"BOTTOMCENTER"===t?"cb":"BOTTOMRIGHT"===t?"rb":"MIDDLELEFT"===t?"lm":"MIDDLECENTER"===t?"cm":"MIDDLERIGHT"===t?"rm":0===t?"lt":1===t?"ct":2===t?"rt":6===t?"lb":7===t?"cb":8===t?"rb":3===t?"lm":4===t?"cm":5===t?"rm":"lt"}var n=SuperMap.Plot.PlottingUtil.DPI,l={};return t.style?(e?(l.fillSymbolID=t.style.fillSymbolID,l.fillSymbolID||(l.fill=t.style.fill)):(!1===t.style.fill?t.style.fillSymbolID=1:!0===t.style.fill&&(t.style.fillSymbolID=0),l.fillSymbolID=t.style.fillSymbolID),void 0!==t.style.strokeGradientMode&&null!=t.style.strokeGradientMode?1===t.style.strokeGradientMode?l.strokeGradientMode="LINEAR":2===t.style.strokeGradientMode?l.strokeGradientMode="RADIAL":"LINEAR"!==t.style.strokeGradientMode&&"RADIAL"!==t.style.strokeGradientMode&&(l.strokeGradientMode="NONE"):l.strokeGradientMode="NONE",t.style.strokeBackColor?void 0!==t.style.strokeBackColor.red?(l.strokeBackColor=i(t.style.strokeBackColor),l.strokeBackOpacity=(t.style.strokeBackColor.alpha/255).toFixed(2)):(l.strokeBackColor=t.style.strokeBackColor,l.strokeBackOpacity=t.style.strokeBackOpacity):t.style.fillBackColor&&(void 0!==t.style.fillBackColor.red?(l.strokeBackColor=i(t.style.fillBackColor),l.strokeBackOpacity=(t.style.fillBackColor.alpha/255).toFixed(2)):(l.strokeBackColor=t.style.strokeBackColor,l.strokeBackOpacity=t.style.strokeBackOpacity)),void 0!==t.style.fillGradientMode&&null!=t.style.fillGradientMode&&(1===t.style.fillGradientMode?l.fillGradientMode="LINEAR":2===t.style.fillGradientMode?l.fillGradientMode="RADIAL":"LINEAR"!==t.style.fillGradientMode&&"RADIAL"!==t.style.fillGradientMode&&(l.fillGradientMode="NONE")),null!=t.style.fillGradientAngle&&void 0!==t.style.fillGradientAngle?l.fillAngle=t.style.fillGradientAngle:void 0!==t.style.fillAngle&&null!=t.style.fillAngle&&(l.fillAngle=t.style.fillAngle),void 0!==t.style.fillGradientOffsetRatioX&&null!=t.style.fillGradientOffsetRatioX?l.fillCenterOffsetX=t.style.fillGradientOffsetRatioX/100:void 0!==t.style.fillCenterOffsetX&&null!=t.style.fillCenterOffsetX&&(l.fillCenterOffsetX=t.style.fillCenterOffsetX/100),void 0!==t.style.fillGradientOffsetRatioY&&null!=t.style.fillGradientOffsetRatioY?l.fillCenterOffsetY=t.style.fillGradientOffsetRatioY/100:void 0!==t.style.fillCenterOffsetY&&null!=t.style.fillCenterOffsetY&&(l.fillCenterOffsetY=t.style.fillCenterOffsetY/100),void 0!==t.style.fillForeColor&&(l.fillColor=i(t.style.fillForeColor)),void 0!==t.style.fillOpaqueRate&&(l.fillOpacity=(t.style.fillOpaqueRate/100).toFixed(2),100!==t.style.fillOpaqueRate||1===t.style.fillGradientMode&&2===t.style.fillGradientMode||(l.fillOpacity=(t.style.fillForeColor.alpha/255).toFixed(2))),void 0!==t.style.fillBackColor&&(void 0!==t.style.fillBackColor.red?l.fillBackColor=i(t.style.fillBackColor):l.fillBackColor=t.style.fillBackColor),0===t.style.fillBackOpaque?l.fillBackOpacity=0:t.style.fillBackColor&&t.style.fillBackColor.alpha?l.fillBackOpacity=(t.style.fillBackColor.alpha/255).toFixed(2):l.fillBackOpacity=t.style.fillBackOpacity,void 0!==t.style.lineColor&&(!0===e?(l.color=i(t.style.lineColor),l.opacity=(t.style.lineColor.alpha/255).toFixed(2)):(l.strokeColor=i(t.style.lineColor),l.strokeOpacity=(t.style.lineColor.alpha/255).toFixed(2))),!0===e?void 0!==t.style.lineWidth?l.weight=Math.ceil(t.style.lineWidth*n/25.4):l.weight=t.style.strokeWidth:void 0!==t.style.lineWidth?l.strokeWidth=Math.ceil(t.style.lineWidth*n/25.4):l.strokeWidth=t.style.strokeWidth,e?(l.lineSymbolID=t.style.lineSymbolID,l.lineSymbolID||(l.dashArray=t.style.dashArray),!l.dashArray&&t.style.strokeDashstyle&&("dash"===t.style.strokeDashstyle?l.lineSymbolID=1:"dot"===t.style.strokeDashstyle?l.lineSymbolID=2:"dashdot"===t.style.strokeDashstyle?l.lineSymbolID=3:l.lineSymbolID=0)):1===t.style.lineSymbolID?l.strokeDashstyle="dash":2===t.style.lineSymbolID?l.strokeDashstyle="dot":3===t.style.lineSymbolID?l.strokeDashstyle="dashdot":t.style.strokeDashstyle?l.strokeDashstyle=t.style.strokeDashstyle:l.strokeDashstyle="solid",t.textStyle2D&&null!=t.textStyle2D?(void 0!==t.textStyle2D.sizeFixed&&(l.sizeFixed=t.textStyle2D.sizeFixed),void 0!==t.textStyle2D.fontName&&(l.fontFamily=t.textStyle2D.fontName),void 0!==t.textStyle2D.fontHeight&&(l.sizeFixed?l.fontSize=Math.ceil(t.textStyle2D.fontHeight*n/25.4):l.fontSize=t.textStyle2D.fontHeight),void 0!==t.textStyle2D.foreColor&&(l.fontColor=i(t.textStyle2D.foreColor)),void 0!==t.textStyle2D.align&&(l.labelAlign=o(t.textStyle2D.align)),void 0!==t.textStyle2D.rotation&&(l.labelRotation=-t.textStyle2D.rotation),void 0!==t.textStyle2D.bold&&(l.fontWeight=-t.textStyle2D.bold),l.labelXOffset=0,l.labelYOffset=0):t.textStyle&&null!=t.textStyle&&(void 0!==t.textStyle.sizeFixed&&(l.sizeFixed=t.textStyle.sizeFixed),void 0!==t.textStyle.fontName&&(l.fontFamily=t.textStyle.fontName),void 0!==t.textStyle.fontHeight&&(l.sizeFixed?l.fontSize=Math.ceil(t.textStyle.fontHeight*n/25.4):l.fontSize=t.textStyle.fontHeight),void 0!==t.textStyle.foreColor&&(l.fontColor=i(t.textStyle.foreColor)),void 0!==t.textStyle.align&&(l.labelAlign=o(t.textStyle.align)),void 0!==t.textStyle.rotation&&(l.labelRotation=-t.textStyle.rotation),void 0!==t.textStyle.bold&&(l.fontWeight=-t.textStyle.bold),l.labelXOffset=0,l.labelYOffset=0),void 0!==t.style.fontOpacity&&(l.fontOpacity=t.style.fontOpacity),void 0!==t.style.fontStroke?l.fontStroke=t.style.fontStroke:t.textStyle2D&&void 0!==t.textStyle2D.outline&&(l.fontStroke=t.textStyle2D.outline),void 0!==t.style.fontStrokeColor?l.fontStrokeColor=t.style.fontStrokeColor:t.textStyle2D&&void 0!==t.textStyle2D.backColor&&(l.fontStrokeColor=i(t.textStyle2D.backColor)),void 0!==l.fontStrokeWidth&&(l.fontStrokeWidth=t.style.fontStrokeWidth),void 0!==t.style.fontBackground&&(l.fontBackground=t.style.fontBackground),void 0!==t.style.fontBackgroundColor&&(l.fontBackgroundColor=t.style.fontBackgroundColor),void 0!==t.style.fontShadow&&(l.fontShadow=t.style.fontShadow),void 0!==t.style.fontShadowColor&&(l.fontShadowColor=t.style.fontShadowColor),void 0!==t.style.fontShadowOffsetX&&(l.fontShadowOffsetX=t.style.fontShadowOffsetX),void 0!==t.style.fontShadowOffsetY&&(l.fontShadowOffsetY=t.style.fontShadowOffsetY),void 0!==t.style.fontSpace&&(l.fontSpace=t.style.fontSpace),void 0!==t.style.fontPercent&&(l.fontPercent=t.style.fontPercent),void 0!==t.style.fontWeight&&(l.fontWeight=t.style.fontWeight),void 0!==t.style.fontStyle&&(l.fontStyle=t.style.fontStyle),void 0!==t.surroundLineColor&&null!=t.surroundLineColor&&(l.surroundLineColor=i(t.surroundLineColor),l.surroundLineColorOpacity=(t.surroundLineColor.alpha/255).toFixed(2)),void 0!==t.surroundLineWidth2D&&null!=t.surroundLineWidth2D?l.surroundLineWidth=Math.round(t.surroundLineWidth2D*n/25.4):void 0!==t.surroundLineWidth&&null!=t.surroundLineWidth&&(l.surroundLineWidth=Math.round(t.surroundLineWidth*n/25.4)),!1===t.visibility?l.display="none":l.display="display",l):l},SuperMap.Plot.AnalysisSymbol.setStyle=function(t,e,i){var o=SuperMap.Plot.PlottingUtil.DPI;if(null!=e)return e.style||(e.style={}),e.textStyle2D||(e.textStyle2D={}),i?(e.style.fillSymbolID=t.fillSymbolID,e.style.fillSymbolID||(e.style.fill=t.fill)):(!1===t.fill?t.fillSymbolID=1:!0===t.fill&&(t.fillSymbolID=0),e.style.fillSymbolID=t.fillSymbolID),t.fillGradientMode&&(e.style.fillGradientMode=t.fillGradientMode),t.fillGradientMode&&("LINEAR"===t.fillGradientMode?e.style.fillGradientMode=1:"RADIAL"===t.fillGradientMode?e.style.fillGradientMode=2:e.style.fillGradientMode=0),t.strokeGradientMode&&("LINEAR"===t.strokeGradientMode?e.style.strokeGradientMode=1:"RADIAL"===t.strokeGradientMode?e.style.strokeGradientMode=2:e.style.strokeGradientMode=0),t.strokeBackColor&&(e.style.strokeBackColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.strokeBackColor)),t.strokeBackOpacity&&(e.style.strokeBackColor.alpha=255*t.strokeBackOpacity),null!=t.fillAngle&&void 0!==t.fillAngle&&(e.style.fillAngle=t.fillAngle,e.style.fillGradientAngle=t.fillAngle),null!=t.fillCenterOffsetX&&void 0!==t.fillCenterOffsetX&&(e.style.fillCenterOffsetX=100*t.fillCenterOffsetX,e.style.fillGradientOffsetRatioX=100*t.fillCenterOffsetX),null!=t.fillCenterOffsetY&&void 0!==t.fillCenterOffsetY&&(e.style.fillCenterOffsetY=100*t.fillCenterOffsetY,e.style.fillGradientOffsetRatioY=100*t.fillCenterOffsetY),t.fillColor&&(e.style.fillForeColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fillColor)),void 0!==t.fillOpacity&&null!=t.fillOpacity&&(e.style.fillOpaqueRate=100*t.fillOpacity,e.style.fillForeColor.alpha=255),t.fillBackColor&&(e.style.fillBackColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fillBackColor)),void 0!==t.fillBackOpacity&&null!=t.fillBackOpacity&&(0===t.fillBackOpacity?(e.style.fillBackOpaque=0,e.style.fillBackColor.alpha=255):e.style.fillBackColor&&(e.style.fillBackOpaque=1,e.style.fillBackColor.alpha=255*t.fillBackOpacity)),!0===i&&t.color?e.style.lineColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.color):t.strokeColor&&(e.style.lineColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.strokeColor)),!0===i&&null!=t.opacity&&void 0!==t.opacity?(e.style.lineColor.alpha=255*t.opacity,e.style.lineColor.alpha<1&&(e.style.lineColor.alpha=1)):null!=t.strokeOpacity&&void 0!==t.strokeOpacity&&(e.style.lineColor.alpha=255*t.strokeOpacity,e.style.lineColor.alpha<1&&(e.style.lineColor.alpha=1)),!0===i&&t.weight?e.style.lineWidth=25.4*t.weight/o:t.strokeWidth&&(e.style.lineWidth=25.4*t.strokeWidth/o),i?(e.style.lineSymbolID=t.lineSymbolID,e.style.lineSymbolID||(e.style.dashArray=t.dashArray)):"dot"===t.strokeDashstyle?e.style.lineSymbolID=2:"dash"===t.strokeDashstyle||"longdash"===t.strokeDashstyle?e.style.lineSymbolID=1:"dashdot"===t.strokeDashstyle||"longdashdot"===t.strokeDashstyle?e.style.lineSymbolID=3:e.style.lineSymbolID=0,t.fontFamily&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.fontName=t.fontFamily:e.textStyle&&null!=e.textStyle&&(e.textStyle.fontName=t.fontFamily)),t.sizeFixed&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.sizeFixed=t.sizeFixed:e.textStyle&&null!=e.textStyle&&(e.textStyle.sizeFixed=t.sizeFixed)),t.fontSize&&(e.textStyle2D&&null!=e.textStyle2D?t.sizeFixed?e.textStyle2D.fontHeight=25.4*t.fontSize/o:e.textStyle2D.fontHeight=t.fontSize:e.textStyle&&null!=e.textStyle&&(t.sizeFixed?e.textStyle.fontHeight=25.4*t.fontSize/o:e.textStyle.fontHeight=t.fontSize)),t.fontWeight&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.bold=t.fontWeight:e.textStyle&&null!=e.textStyle&&(e.textStyle.bold=t.fontWeight)),t.fontColor&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.foreColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fontColor):e.textStyle&&null!=e.textStyle&&(e.textStyle.foreColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fontColor))),t.labelRotation&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.rotation=-t.labelRotation:e.textStyle&&null!=e.textStyle&&(e.textStyle.rotation=-t.labelRotation)),void 0!==t.fontOpacity&&(e.style.fontOpacity=t.fontOpacity),void 0!==t.fontStroke&&(e.textStyle2D.outline=t.fontStroke),void 0!==t.fontStrokeColor&&(e.textStyle2D.backColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fontStrokeColor)),void 0!==t.fontStrokeWidth&&(e.style.fontStrokeWidth=t.fontStrokeWidth),void 0!==t.fontBackground&&(e.style.fontBackground=t.fontBackground),void 0!==t.fontBackgroundColor&&(e.style.fontBackgroundColor=t.fontBackgroundColor),void 0!==t.fontShadow&&(e.style.fontShadow=t.fontShadow),void 0!==t.fontShadowColor&&(e.style.fontShadowColor=t.fontShadowColor),void 0!==t.fontShadowOffsetX&&(e.style.fontShadowOffsetX=t.fontShadowOffsetX),void 0!==t.fontShadowOffsetY&&(e.style.fontShadowOffsetY=t.fontShadowOffsetY),void 0!==t.fontSpace&&(e.style.fontSpace=t.fontSpace),void 0!==t.fontPercent&&(e.style.fontPercent=t.fontPercent),void 0!==t.fontWeight&&(e.style.fontWeight=t.fontWeight),void 0!==t.fontStyle&&(e.style.fontStyle=t.fontStyle),t.surroundLineColor&&(e.surroundLineColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.surroundLineColor)),null!=t.surroundLineColorOpacity&&void 0!==t.surroundLineColorOpacity&&(e.surroundLineColor.alpha=255*t.surroundLineColorOpacity),t.surroundLineWidth&&(e.surroundLineWidth2D=25.4*t.surroundLineWidth/o),void 0!==t.labelAlign&&("lt"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=0:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=0):"ct"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=1:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=1):"rt"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=2:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=2):"lb"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=6:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=6):"cb"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=7:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=7):"rb"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=8:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=8):"lm"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=3:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=3):"cm"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=4:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=4):"rm"===t.labelAlign&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=5:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=5))),t.display&&"none"===t.display?e.visibility=!1:e.visibility=!0,t},SuperMap.Plot.AnalysisSymbol.mergeDefaultStyleToFeature=function(t,e,i){var o=void 0,n=void 0;o=t.style,n=!0!==i?t.geometry:t,e&&!0===e.defaultFlag&&!1===n.isEdit&&(n.surroundLineType=e.surroundLineType,o.surroundLineColor=e.surroundLineColor,o.surroundLineWidth=e.surroundLineWidth,o.surroundLineColorOpacity=e.surroundLineColorOpacity,o.fillBackColor=e.fillBackColor,o.fillBackOpacity=e.fillBackOpacity,o.fillGradientMode=e.fillGradientMode,o.fillCenterOffsetX=e.fillCenterOffsetX,o.fillCenterOffsetY=e.fillCenterOffsetY,o.fillAngle=e.fillAngle,!0===i?(o.color=e.lineColor,o.weight=e.lineWidth,o.opacity=e.lineOpacity,o.lineSymbolID=e.lineType,o.linecap=e.lineCap,o.linejoin=e.lineJoin):(o.strokeColor=e.lineColor,o.strokeWidth=e.lineWidth,o.strokeOpacity=e.lineOpacity,o.strokeDashstyle=e.lineType,o.strokeLinecap=e.lineCap,o.strokeLinejoin=e.lineJoin),o.fillSymbolID=e.fillSymbolID,o.fillColor=e.fillColor,o.fillOpacity=e.fillOpacity,o.fontColor=e.fontColor,o.fontOpacity=e.fontOpacity,o.fontSize=e.fontSize,o.fontFamily=e.fontFamily,o.fontWeight=e.fontWeight,o.fontStyle=e.fontStyle,o.fontStroke=e.fontStroke,o.fontStrokeColor=e.fontStrokeColor,o.fontStrokeWidth=e.fontStrokeWidth,o.fontBackground=e.fontBackground,o.fontBackgroundColor=e.fontBackgroundColor,o.fontShadow=e.fontShadow,o.fontShadowColor=e.fontShadowColor,o.fontShadowOffsetX=e.fontShadowOffsetX,o.fontShadowOffsetY=e.fontShadowOffsetY,o.fontSpace=e.fontSpace,o.fontPercent=e.fontPercent,o.strokeGradientMode=e.strokeGradientMode,o.strokeBackColor=e.strokeBackColor,o.strokeBackOpacity=e.strokeBackOpacity)},SuperMap.Plot.AnalysisSymbol.mergeSymbolDataAndServerData=function(t,e){t.hasOwnProperty("algoMinEditPts")||(t.algoMinEditPts=e.algoMinEditPts),t.hasOwnProperty("algoMaxEditPts")||(t.algoMaxEditPts=e.algoMaxEditPts),t.hasOwnProperty("innerCells")||(t.innerCells=SuperMap.Util.cloneObject(e.innerCells)),t.hasOwnProperty("symbolRanks")||(t.symbolRanks=SuperMap.Util.cloneObject(e.symbolRanks)),t.hasOwnProperty("symbolSizeInLib")||(t.symbolSizeInLib=SuperMap.Util.cloneObject(e.symbolSize)),t.hasOwnProperty("middleMarkExist")||(t.middleMarkExist=SuperMap.Util.cloneObject(e.middleMarkExist)),t.hasOwnProperty("middleMarkBounds")||(t.middleMarkBounds=SuperMap.Util.cloneObject(e.middleMarkBounds)),t.hasOwnProperty("anchorPoint")||(t.anchorPoint=SuperMap.Util.cloneObject(e.anchorPoint))},SuperMap.Plot.AnalysisSymbol.setSymbolData=function(t,e,i){null==e&&(e={}),e.hasOwnProperty("type")||(e.type="GRAPHICOBJECT"),e.hasOwnProperty("version")||(e.version=2),e.isEdit=!0,e.uuid=t.uuid,e.associatedUuid=t.associatedUuid,e.hasOwnProperty("rotate2D")?e.rotate2D.x=t.dRotate:e.rotate2D={x:t.dRotate,y:0,z:0},e.hasOwnProperty("scale2D")?e.scale2D.x=t.dScale:e.scale2D={x:t.dScale,y:0,z:0},e.libID=t.libID,e.code=t.code,e.algoMaxEditPts=t.maxEditPts,e.algoMinEditPts=t.minEditPts,e.symbolType=t.symbolType,e.symbolName=t.symbolName,e.annotationPosition=t.annotationPosition?t.annotationPosition:t.textPosition,e.textContent=t.textContent,e.scaleByMap=t.scaleByMap,e.resolution=t.resolution,e.isLocked=t.isLocked,e.note=t.note,e.custom=t.custom,e.subSymbols=[];for(var o=0;o<t.subSymbols.length;o++){var n=t.subSymbols[o];e.subSymbols.push({libID:n.libID,code:n.code,symbolData:n.symbolData,textContent:n.textContent,totalNum:n.totalNum})}e.extendProperty=[];for(var l=t.getExtendProperty().getPropertyCount(),a=0;a<l;a++){var s=t.getExtendProperty().getPropertyByIndex(a);e.extendProperty.push({key:s.key,value:s.value})}e.avoidRegions=[];for(var r=0;r<t.avoidRegions.length;r++){var u={};SuperMap.Plot.AnalysisSymbol.setStyle(t.avoidRegions[r].feature.style,u,i),e.avoidRegions.push([t.avoidRegions[r].getSymbolData(),u])}if(!0===i?SuperMap.Plot.AnalysisSymbol.setStyle(t.style,e,i):null!=t.feature&&SuperMap.Plot.AnalysisSymbol.setStyle(t.feature.style,e),t.symbolType===SuperMap.Plot.SymbolType.AIRROUTE||t.symbolType===SuperMap.Plot.SymbolType.NAVYROUTE||t.symbolType===SuperMap.Plot.SymbolType.MISSILEROUTE){for(var p in e.routeNodes=[],t.routeNodes)e.routeNodes.push(t.routeNodes[p].setSymbolData());e.arrRoutePts=t.arrRoutePts,i||SuperMap.Plot.AnalysisSymbol.setStyle(t.lineStyle,e)}else if(t.symbolType===SuperMap.Plot.SymbolType.GROUPOBJECT||t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP||t.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT||t.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT){if(e.subAssociatedUuids=t.subAssociatedUuids,e.subFeatures=[],i)for(var h=0;h<t.subObjects.length;h++)e.subFeatures.push(t.subObjects[h].getSymbolData());else for(var c=0;c<t.components.length;c++)e.subFeatures.push(t.components[c].geometry.getSymbolData());0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP?e.ratio=t.ratio:0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT?(e.colNum=t.colNum,e.speceDis=t.speceDis,e.isShowTooltip=t.isShowTooltip):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT&&(e.colNum=t.colNum,e.speceDis=t.speceDis)}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT){var y=[];for(var f in t.symbolTexts)y.push(t.symbolTexts[f].setSymbolData());e.symbolTexts=y,e.addFrame=t.addFrame}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT1)e.space=t.space,e.offsetX=t.offsetX,e.offsetY=t.offsetY;else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SATELLITE){if(e.hasOwnProperty("scaleValues"))for(var S=0;S<t.scaleValues.length;S++)e.scaleValues.length>S?e.scaleValues[S]=t.scaleValues[S]:e.scaleValues.push(t.scaleValues[S]);else e.scaleValues=[],e.scaleValues=t.scaleValues;e.visible=t.visible,e.orbitPoints=t.orbitPoints}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS)e.timeWindows=t.timeWindows;else{var g=void 0;g=!0===i?L.Util.latLngsToSuperMapPoints(t.getLatLngs()):t.controlPoints,e.hasOwnProperty("localePoints")||(e.localePoints=[]);var P=g.length;t.symbolType===SuperMap.Plot.SymbolType.ELLIPSESYMBOL&&(P=3);for(var d=0;d<P;d++)e.localePoints.length>d?(e.localePoints[d].x=g[d].x,e.localePoints[d].y=g[d].y,e.localePoints[d].hasOwnProperty("z")||(e.localePoints[d].z=0)):e.localePoints.push({x:g[d].x,y:g[d].y,z:0});if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.LINERELATION)e.endAssociatedUuid=t.endAssociatedUuid,e.lineRelationType=t.lineRelationType,e.startAssociatedUuid=t.startAssociatedUuid,e.subSectionCount=t.subSectionCount;else if(t.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL){e.surroundLineType=t.surroundLineType,e.symbolRank=t.symbolRank,e.negativeImage=t.negativeImage,e.space=t.space,e.flagTextSize=t.flagTextSize,e.maxScale=t.maxScale,e.minScale=t.minScale,e.textDisplay=t.textDisplay,e.actualScale=t.actualScale,void 0!==t.fontSize&&(e.fontSize=t.fontSize),void 0!==t.strokeWidth&&(e.strokeWidth=t.strokeWidth);var m=25.4*t.symbolSize.w*10/SuperMap.Plot.PlottingUtil.DPI,b=25.4*t.symbolSize.h*10/SuperMap.Plot.PlottingUtil.DPI;e.symbolSize={x:m,y:b};var M=25.4*t.symbolSizeInLib.w*10/SuperMap.Plot.PlottingUtil.DPI,v=25.4*t.symbolSizeInLib.h*10/SuperMap.Plot.PlottingUtil.DPI;e.symbolSizeInLib={x:M,y:v},e.positionOffset=t.positionOffset,e.positionOffsetType=t.positionOffsetType,e.positionOffsetX=t.positionOffsetX,e.positionOffsetY=t.positionOffsetY,!1===t.widthHeightLimit||!0===t.widthHeightLimit?e.limitWidthHeight=t.widthHeightLimit:e.limitWidthHeight=t.limitWidthHeight}else{if(e.surroundLineType=t.surroundLineType,e.hasOwnProperty("scaleValues"))for(var T=0;T<t.scaleValues.length;T++)e.scaleValues.length>T?e.scaleValues[T]=t.scaleValues[T]:e.scaleValues.push(t.scaleValues[T]);else e.scaleValues=[],e.scaleValues=t.scaleValues;e.subSymbolScaleValue=t.subSymbolScaleValue,e.baseScale=t.baseScale,e.strokeWidth=t.strokeWidth,e.polylineConnectLocationPoint=t.polylineConnectLocationPoint,22===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ALGOSYMBOL?(e.arrowHeadType=t.arrowHeadType,e.arrowBodyType=t.arrowBodyType,e.arrowTailType=t.arrowTailType):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ARROWLINE?e.arrowAngle=t.arrowAngle:0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE?e.defaultRadius=t.defaultRadius:0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.CONCENTRICCIRCLE||(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.LINEMARKING?(e.islocationCircle=t.islocationCircle,e.textBoxType=t.textBoxType):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXTBOX?(e.roundBox=t.roundBox,e.textBoxType=t.textBoxType):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.PATHTEXT?(e.isAvoid=t.isAvoid,e.isCurve=t.isCurve,e.relLineText=t.relLineText,e.showPathLine=t.showPathLine,e.textToLineDistance=t.textToLineDistance,e.showPathLineArrow=t.showPathLineArrow):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ARCREGION&&(i?(e.centerPoint={x:t.centerPoint.lng,y:t.centerPoint.lat},e.circlePts=t.circlePts,e.spatialAnalystUrl=t.spatialAnalystUrl):e.centerPoint=t.centerPoint,e.endAngle=t.endAngle,e.radius=t.radius,e.radiusPosAngle=t.radiusPosAngle,e.startAngle=t.startAngle,e.textPosition=t.textPosition,e.radiusLineType=t.radiusLineType,e.radiusText=t.radiusText))}}t.symbolData=e},SuperMap.Plot.AnalysisSymbol.parseSymbolData=function(t,e,i){if(null!=e){if(void 0!==e.isEdit&&(t.isEdit=e.isEdit),e.hasOwnProperty("version")&&(t.version=e.version),t.libID=parseInt(e.libID),t.code=parseInt(e.code),t.maxEditPts=parseInt(e.algoMaxEditPts),t.minEditPts=parseInt(e.algoMinEditPts),t.symbolType=e.symbolType,t.symbolName=e.symbolName,t.textContent=e.textContent,void 0!==e.dScale?t.dScale=e.dScale:void 0!==e.scale2D&&(t.dScale=e.scale2D.x),void 0!==e.dRotate?t.dRotate=e.dRotate:void 0!==e.rotate2D&&(t.dRotate=e.rotate2D.x),void 0!==e.resolution&&(t.resolution=e.resolution),void 0!==e.uuid&&(t.uuid=e.uuid),void 0!==e.associatedUuid&&(t.associatedUuid=e.associatedUuid),void 0!==e.annotationPosition&&(i?t.annotationPosition=e.annotationPosition:t.textPosition=e.annotationPosition),void 0!==e.scaleByMap&&(t.scaleByMap=e.scaleByMap),void 0!==e.isLocked&&(t.isLocked=e.isLocked),void 0!==e.note&&(t.note=e.note),void 0!==e.custom&&(t.custom=e.custom),e.extendProperty)for(var o=0;o<e.extendProperty.length;o++){var n=e.extendProperty[o];t.extendProperty.addProperty(n.key,n.value)}if(e.hasOwnProperty("subSymbols")&&null!=e.subSymbols){t.subSymbols=[];for(var l=0;l<e.subSymbols.length;l++){var a=e.subSymbols[l].libID;void 0===a&&(a=t.libID);var s=e.subSymbols[l].code;if(void 0!==s){var r={};void 0!==e.subSymbols[l].textContent&&(r.textContent=e.subSymbols[l].textContent),void 0!==e.subSymbols[l].totalNum&&(r.totalNum=e.subSymbols[l].totalNum),void 0!==e.subSymbols[l].symbolData&&(r.symbolData=e.subSymbols[l].symbolData),t.subSymbols.push(new SuperMap.Plot.SubSymbol(a,s,r))}}}if(e.avoidRegions&&0!==e.avoidRegions.length)for(var u=0;u<e.avoidRegions.length;u++){var p={libID:0,code:SuperMap.Plot.SymbolType.AVOIDREGION,map:t.map,symbolData:e.avoidRegions[u][0]},h=null;if(i)(h=L.supermap.plotting.avoidRegion(0,SuperMap.Plot.SymbolType.AVOIDREGION,[],p)).style=SuperMap.Plot.AnalysisSymbol.getStyle(t.symbolData.avoidRegions[u][1],!0);else{h=new SuperMap.Geometry.AvoidRegion(p);var c=new SuperMap.Feature.Vector(h);c.style=SuperMap.Plot.AnalysisSymbol.getStyle(e.avoidRegions[u][1],i),h.feature=c,h.calculateParts()}t.avoidRegions.push(h)}if(!0===i&&(t.style=SuperMap.Plot.AnalysisSymbol.getStyle(e,!0)),t.symbolType===SuperMap.Plot.SymbolType.AIRROUTE||t.symbolType===SuperMap.Plot.SymbolType.NAVYROUTE||t.symbolType===SuperMap.Plot.SymbolType.MISSILEROUTE){for(var y in t.routeNodes=[],e.routeNodes){var f=new SuperMap.Plot.RouteNode;t.routeNodes.push(f.parseSymbolData(e.routeNodes[y]))}t.arrRoutePts=[];for(var S=0;S<e.arrRoutePts.length;S++){for(var g=[],P=0;P<e.arrRoutePts[S].length;P++)e.arrRoutePts[S][P].hasOwnProperty("lat")&&e.arrRoutePts[S][P].hasOwnProperty("lng")?g.push(new SuperMap.Geometry.Point(e.arrRoutePts[S][P].lng,e.arrRoutePts[S][P].lat)):void 0===e.arrRoutePts[S][P].x&&void 0===e.arrRoutePts[S][P].y||g.push(new SuperMap.Geometry.Point(e.arrRoutePts[S][P].x,e.arrRoutePts[S][P].y));i&&(g=L.Util.superMapPointsToLatLngs(g)),t.arrRoutePts.push(g)}i||(t.lineStyle=SuperMap.Plot.AnalysisSymbol.getStyle(e,!1))}else if(t.symbolType===SuperMap.Plot.SymbolType.GROUPOBJECT||t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP||t.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT||t.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT){if(t.subAssociatedUuids=e.subAssociatedUuids,i){for(var d=[],m=0;m<e.subFeatures.length;m++){var b=e.subFeatures[m];b.uuid=SuperMap.Plot.PlottingUtil.generateUuid();var M=L.supermap.plotting.PlottingObject.createSymbol(b.libID,b.code,null,{symbolData:b});d.push(M)}t.subObjects=d}else for(var v=0;v<e.subFeatures.length;v++){var T=e.subFeatures[v],A=SuperMap.Geometry.PlottingGeometry.createFeature(T.libID,T.code,null,{symbolData:T,map:t.map});A.geometry.ownGroupObj=t,t.components.push(A)}0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP?(t.ratio=e.ratio,t.subFeatures=e.subFeatures):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT?(t.colNum=e.colNum,t.speceDis=e.speceDis,t.isShowTooltip=e.isShowTooltip):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT&&(t.colNum=e.colNum,t.speceDis=e.speceDis)}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT){t.addFrame=e.addFrame,t.symbolTexts=[];for(var _=0,O=e.symbolTexts.length;_<O;_++){var x=new SuperMap.Plot.SymbolText;x.parseSymbolData(e.symbolTexts[_]),t.symbolTexts.push(x)}}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT1)void 0!==e.space&&(t.space=e.space),void 0!==e.offsetX&&(t.offsetX=e.offsetX),void 0!==e.offsetY&&(t.offsetY=e.offsetY);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SATELLITE){if(e.scaleValues&&0!==e.scaleValues.length){t.scaleValues=[];for(var w=0;w<e.scaleValues.length;w++)t.scaleValues.push(e.scaleValues[w])}if(e.subSymbol&&(t.subSymbols=[e.subSymbol]),t.visible=e.visible,e.orbitPoints){t.orbitPoints=[];for(var I=0;I<e.orbitPoints.length;I++)t.orbitPoints.push(new SuperMap.Plot.OrbitPoint(e.orbitPoints[I].x,e.orbitPoints[I].y,e.orbitPoints[I].z,e.orbitPoints[I].number,e.orbitPoints[I].time))}}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS){t.timeWindows=e.timeWindows;for(var D=0;D<t.timeWindows.length;D++)"Time"!==e.type&&"Number"!==e.type||(t.timeWindows[D].type=e.type)}else{if(e.localePoints){t.controlPoints=[];for(var E=0;E<e.localePoints.length;E++)t.controlPoints.push(new SuperMap.Geometry.Point(e.localePoints[E].x,e.localePoints[E].y));!0===i&&(t.latLngs=L.Util.superMapPointsToLatLngs(t.controlPoints),delete t.controlPoints)}if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.LINERELATION)t.endAssociatedUuid=e.endAssociatedUuid,t.lineRelationType=e.lineRelationType,t.startAssociatedUuid=e.startAssociatedUuid,t.subSectionCount=e.subSectionCount;else if(t.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL){t.surroundLineType=e.surroundLineType,t.symbolRank=e.symbolRank,t.negativeImage=e.negativeImage;var C=SuperMap.Plot.AnalysisSymbol.analysisDotBasicInfo(e);if(t.anchorPoint=C.anchorPoint,t.symbolSizeInLib=C.symbolSizeInLib,t.middleMarkBounds=C.middleMarkBounds,void 0!==e.actualScale&&(t.actualScale=e.actualScale),void 0!==e.limitWidthHeight&&(t.limitWidthHeight=e.limitWidthHeight),void 0!==e.fontSize&&(t.fontSize=e.fontSize),void 0!==e.strokeWidth&&(t.strokeWidth=e.strokeWidth),void 0!==e.space&&(t.space=e.space),void 0!==e.flagTextSize&&(t.flagTextSize=e.flagTextSize),void 0!==e.maxScale&&(t.maxScale=e.maxScale),void 0!==e.minScale&&(t.minScale=e.minScale),void 0!==e.textDisplay&&(t.textDisplay=e.textDisplay),!1!==t.isEdit){var R={x:0,y:0};-1===e.symbolSize.x&&-1===e.symbolSize.x?(R.x=e.symbolSizeInLib.x*SuperMap.Plot.PlottingUtil.DPI/25.4/10,R.y=e.symbolSizeInLib.y*SuperMap.Plot.PlottingUtil.DPI/25.4/10):(R.x=e.symbolSize.x*SuperMap.Plot.PlottingUtil.DPI/25.4/10,R.y=e.symbolSize.y*SuperMap.Plot.PlottingUtil.DPI/25.4/10),t.setSymbolSize(R.x,R.y)}void 0!==e.positionOffset&&null!==e.positionOffset&&(t.positionOffset=e.positionOffset),void 0!==e.positionOffsetType&&null!==e.positionOffsetType&&(t.positionOffsetType=e.positionOffsetType),void 0!==e.positionOffsetX&&null!==e.positionOffsetX&&(t.positionOffsetX=e.positionOffsetX),void 0!==e.positionOffsetY&&null!==e.positionOffsetY&&(t.positionOffsetY=e.positionOffsetY)}else{if(t.surroundLineType=e.surroundLineType,e.scaleValues&&0!==e.scaleValues.length){t.scaleValues=[];for(var N=0;N<e.scaleValues.length;N++)t.scaleValues.push(e.scaleValues[N])}if(void 0!==e.strokeWidth&&null!==e.strokeWidth&&(t.strokeWidth=e.strokeWidth),void 0!==e.baseScale&&null!==e.baseScale&&(t.baseScale=e.baseScale),void 0!==e.polylineConnectLocationPoint&&null!==e.polylineConnectLocationPoint&&(t.polylineConnectLocationPoint=e.polylineConnectLocationPoint),22===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ALGOSYMBOL)void 0!==e.arrowHeadType&&null!==e.arrowHeadType&&(t.arrowHeadType=e.arrowHeadType),void 0!==e.arrowBodyType&&null!==e.arrowBodyType&&(t.arrowBodyType=e.arrowBodyType),void 0!==e.arrowTailType&&null!==e.arrowTailType&&(t.arrowTailType=e.arrowTailType);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ARROWLINE)t.arrowAngle=e.arrowAngle,void 0!==e.arrowTypeStart&&(t.scaleValues[1]=e.arrowTypeStart),void 0!==e.arrowTypeEnd&&(t.scaleValues[2]=e.arrowTypeEnd);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE){if(e.radius&&0!==e.radius.length&&0===t.scaleValues.length)for(var U=0;U<e.radius.length;U++)t.scaleValues.push(e.radius[U])}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.CONCENTRICCIRCLE)t.symbolData.hasOwnProperty("startAngle")&&(t.scaleValues[0]=t.symbolData.startAngle),t.symbolData.hasOwnProperty("endAngle")&&(t.scaleValues[1]=t.symbolData.endAngle);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.LINEMARKING)void 0!==e.islocationCircle&&null!==e.islocationCircle&&(t.islocationCircle=e.islocationCircle),void 0!==e.textBoxType&&null!==e.textBoxType&&(t.textBoxType=e.textBoxType),e.tipPoint&&(this.scaleValues[1]=e.tipPoint.x,this.scaleValues[2]=e.tipPoint.y);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXTBOX)void 0!==e.roundBox&&null!==e.roundBox&&(t.roundBox=e.roundBox),void 0!==e.textBoxType&&null!==e.textBoxType&&(t.textBoxType=e.textBoxType),e.tipPoint&&(this.scaleValues[1]=e.tipPoint.x,this.scaleValues[2]=e.tipPoint.y);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM)e.tipPoint1&&(this.scaleValues[0]=e.tipPoint1.x,this.scaleValues[1]=e.tipPoint1.y),e.tipPoint2&&(this.scaleValues[2]=e.tipPoint2.x,this.scaleValues[3]=e.tipPoint2.y);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.PATHTEXT)t.isAvoid=e.isAvoid,t.isCurve=e.isCurve,t.relLineText=e.relLineText,t.showPathLine=e.showPathLine,t.textToLineDistance=e.textToLineDistance,t.showPathLineArrow=e.showPathLineArrow;else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ARCREGION){if(i){if(t.centerPoint=L.latLng(e.centerPoint.y,e.centerPoint.x),t.symbolData.circlePts){for(var G=[],B=0;B<e.circlePts.length;B++)G.push(new SuperMap.Geometry.Point(e.circlePts[B].x,e.circlePts[B].y));0!==G.length&&(t.circlePts=G)}t.spatialAnalystUrl=e.spatialAnalystUrl}else t.centerPoint=new SuperMap.Geometry.Point(e.centerPoint.x,e.centerPoint.y);t.endAngle=e.endAngle,t.radius=e.radius,t.radiusPosAngle=e.radiusPosAngle,t.startAngle=e.startAngle,t.textPosition=e.textPosition,t.radiusLineType=e.radiusLineType,t.radiusText=e.radiusText}else 0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.POLYGONREGION&&(t.symbolData.hasOwnProperty("textPosition")?t.scaleValues[1]=t.symbolData.textPosition:void 0===t.scaleValues[1]&&(t.scaleValues[1]=t.symbolData.annotationPosition))}}}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AddPoint_WayType=e.RouteNodePrimitives=e.Primitives=e.PlottingUtil=e.AnalysisSymbol=void 0;var o=i(132),n=i(131),l=i(130),a=i(129),s=i(128);e.AnalysisSymbol=o.AnalysisSymbol,e.PlottingUtil=n.PlottingUtil,e.Primitives=l.Primitives,e.RouteNodePrimitives=a.RouteNodePrimitives,e.AddPoint_WayType=s.AddPoint_WayType},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.CalculateSVGGradient=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.feature=e}return o(t,[{key:"destroy",value:function(){this.feature=null}},{key:"createGradient",value:function(){var t=!1;this.feature.layer._renderer._container.defs||(this.feature.layer._renderer._container.defs=L.SVG.create("defs"),t=!0);var e=null;"LINEAR"===this.feature.style.fillGradientMode&&(e=document.getElementById("linearGradient_"+this.feature.uuid)),"RADIAL"===this.feature.style.fillGradientMode&&(e=document.getElementById("radialGradient_"+this.feature.uuid));var i=this.createGradientDirection();for("LINEAR"===this.feature.style.fillGradientMode?((e=null===e?L.SVG.create("linearGradient"):e).setAttributeNS(null,"x1",i.x1),e.setAttributeNS(null,"y1",i.y1),e.setAttributeNS(null,"x2",i.x2),e.setAttributeNS(null,"y2",i.y2)):"RADIAL"===this.feature.style.fillGradientMode&&((e=null===e?L.SVG.create("radialGradient"):e).setAttributeNS(null,"cx",i.cx),e.setAttributeNS(null,"cy",i.cy),e.setAttributeNS(null,"fx",i.fx),e.setAttributeNS(null,"fy",i.fy),e.setAttributeNS(null,"r",i.r));e.hasChildNodes();)e.removeChild(e.firstChild);for(var o=0,n=i.colors.length;o<n;o++){var l=L.SVG.create("stop");l.setAttributeNS(null,"offset",i.colors[o].offset),l.setAttributeNS(null,"style","stop-color:"+SuperMap.Plot.PlottingUtil.colorRGBA(i.colors[o].color,i.colors[o].opacity)),e.appendChild(l)}return 0===e.id.length&&e.setAttributeNS(null,"id",e.tagName+"_"+this.feature.uuid),this.feature.layer._renderer._container.defs.appendChild(e),t&&this.feature.layer._renderer._container.appendChild(this.feature.layer._renderer._container.defs),e.id}},{key:"createTextureFill",value:function(t){var e=!1;this.feature.layer._renderer._container.defs||(this.feature.layer._renderer._container.defs=L.SVG.create("defs"),e=!0);var i=document.getElementById("patternFill_"+this.feature.uuid);function o(t){var e="";return 2===t.fillID?e="rotate(-45)":3===t.fillID||6===t.fillID?e="rotate(0)":4===t.fillID||5===t.fillID?e="rotate(45)":7===t.fillID&&(e="rotate(90)"),e}function n(t,e,i){var o=L.SVG.create("path");o.setAttributeNS(null,"d",t),o.setAttributeNS(null,"stroke",i.color),o.setAttributeNS(null,"stroke-width","2"),o.setAttributeNS(null,"stroke-linecap","square"),o.setAttributeNS(null,"stroke-opacity",i.opacity),e.appendChild(o)}function l(t,e,i){var o=L.SVG.create("polygon");o.setAttributeNS(null,"points",t),o.setAttributeNS(null,"fill",i.color),o.setAttributeNS(null,"fill-opacity",i.opacity),e.appendChild(o)}return i?(i.setAttributeNS(null,"patternTransform",o(t[0]).toString()),3===t[0].fillID||6===t[0].fillID||7===t[0].fillID?(i.setAttributeNS(null,"width",7.3),i.setAttributeNS(null,"height",7.3),i.childNodes[0].setAttributeNS(null,"points","0 0 0 7.3 7.3 7.3 7.3 0"),i.childNodes[1].setAttributeNS(null,"d","M 7.3 0 L 0 0")):(i.setAttributeNS(null,"width",5.4),i.setAttributeNS(null,"height",5.4),i.childNodes[0].setAttributeNS(null,"points","0 0 0 5.4 5.4 5.4 5.4 0"),i.childNodes[1].setAttributeNS(null,"d","M 5.4 0 L 0 0")),i.childNodes[0].setAttributeNS(null,"fill",t[1].color),i.childNodes[0].setAttributeNS(null,"fill-opacity",t[1].opacity),i.childNodes[1].setAttributeNS(null,"stroke",t[0].color),i.childNodes[1].setAttributeNS(null,"stroke-opacity",t[0].opacity),3===t[0].fillID||4===t[0].fillID?(i.childNodes[2]&&(i.childNodes[2].setAttributeNS(null,"stroke",t[0].color),i.childNodes[2].setAttributeNS(null,"stroke-opacity",t[0].opacity)),3===t[0].fillID?null===i&&n("M 0 7.3 L 0 0",i,t[0]):4===t[0].fillID&&null===i&&n("M 0 5.4 L 0 0",i,t[0])):i.childNodes[2]&&i.removeChild(i.childNodes[2]),0===i.id.length&&i.setAttributeNS(null,"id","patternFill_"+this.feature.uuid),i.id):((i=null===i?L.SVG.create("pattern"):i).setAttributeNS(null,"x",0),i.setAttributeNS(null,"y",0),3===t[0].fillID||6===t[0].fillID||7===t[0].fillID?(i.setAttributeNS(null,"width",7.3),i.setAttributeNS(null,"height",7.3)):(i.setAttributeNS(null,"width",5.4),i.setAttributeNS(null,"height",5.4)),i.setAttributeNS(null,"patternUnits","userSpaceOnUse"),i.setAttributeNS(null,"patternTransform",o(t[0]).toString()),3===t[0].fillID||6===t[0].fillID||7===t[0].fillID?(l("0 0 0 7.3 7.3 7.3 7.3 0",i,t[1]),n("M 7.3 0 L 0 0",i,t[0])):(l("0 0 0 5.4 5.4 5.4 5.4 0",i,t[1]),n("M 5.4 0 L 0 0",i,t[0])),4===t[0].fillID?n("M 0 5.4 L 0 0",i,t[0]):3===t[0].fillID&&n("M 0 7.3 L 0 0",i,t[0]),this.feature.layer._renderer._container.defs.appendChild(i),e&&this.feature.layer._renderer._container.appendChild(this.feature.layer._renderer._container.defs),0===i.id.length&&i.setAttributeNS(null,"id","patternFill_"+this.feature.uuid),i.id)}},{key:"createFillMode",value:function(t){if(void 0!==this.feature.style.fillSymbolID)if(t.fill=this.feature.style.fill,t.fillSymbolID=this.feature.style.fillSymbolID,0===this.feature.style.fillSymbolID||1===this.feature.style.fillSymbolID||!0===this.feature.style.fill||!1===this.feature.style.fill)0===this.feature.style.fillSymbolID?t.fill=!0:1===this.feature.style.fillSymbolID&&(t.fill=!1),t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity;else if(this.feature.style.fillColor!==this.feature.style.fillBackColor||this.feature.style.fillBackOpacity>0&&this.feature.style.fillBackOpacity<1){var e=[];e.push({fillID:this.feature.style.fillSymbolID,color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity},{fillID:this.feature.style.fillSymbolID,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillBackOpacity}),this.feature._map.getRenderer(this.feature.layer)instanceof L.SVG?(t.fillOpacity=1,t.fillColor="url(#"+this.createTextureFill(e)+")",t.fill=t.fillColor):new SuperMap.Plot.CalculateCanvasGradient(this.feature,this.feature.getBounds()).createTextureFill(e)}else t.fill=!0,t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity;else t.fill=this.feature.style.fill,t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity}},{key:"createGradientDirection",value:function(){var t=[];if("LINEAR"===this.feature.style.fillGradientMode){if(null!==this.feature.style.fillCenterOffsetX&&void 0!==this.feature.style.fillCenterOffsetX&&(0===this.feature.style.fillAngle||180===this.feature.style.fillAngle?(t.push({offset:0,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity}),t.push({offset:this.feature.style.fillCenterOffsetX,color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity}),t.push({offset:1,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity})):90===this.feature.style.fillAngle||270===this.feature.style.fillAngle?(t.push({offset:0,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity}),t.push({offset:this.feature.style.fillCenterOffsetY,color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity}),t.push({offset:1,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity})):(t.push({offset:0,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity}),t.push({offset:this.feature.style.fillCenterOffsetX/2*(Math.sqrt(2)/2)*Math.abs(Math.sin(this.feature.style.fillAngle*Math.PI/180)),color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity}),t.push({offset:1,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity}))),this.feature.style.fillAngle>=360&&(this.feature.style.fillAngle=0),0===this.feature.style.fillAngle)return{x1:0,y1:0,x2:1,y2:0,colors:t};if(90===this.feature.style.fillAngle)return{x1:0,y1:1,x2:0,y2:0,colors:t};if(180===this.feature.style.fillAngle)return{x1:1,y1:0,x2:0,y2:0,colors:t};if(270===this.feature.style.fillAngle)return{x1:0,y1:0,x2:0,y2:1,colors:t};if(0<this.feature.style.fillAngle&&this.feature.style.fillAngle<=45)return{x1:0,y1:1,x2:1,y2:(1-Math.tan(this.feature.style.fillAngle*Math.PI/180))/2,colors:t};if(45<this.feature.style.fillAngle&&this.feature.style.fillAngle<90)return{x1:0,y1:1,x2:(1-Math.tan((this.feature.style.fillAngle-45)*Math.PI/180))/2,y2:0,colors:t};if(90<this.feature.style.fillAngle&&this.feature.style.fillAngle<=135)return{x1:1,y1:1,x2:Math.tan((this.feature.style.fillAngle-90)*Math.PI/180)/2,y2:0,colors:t};if(135<this.feature.style.fillAngle&&this.feature.style.fillAngle<180)return{x1:1,y1:1,x2:0,y2:Math.tan((this.feature.style.fillAngle-135)*Math.PI/180)/2,colors:t};if(180<this.feature.style.fillAngle&&this.feature.style.fillAngle<=225)return{x1:1,y1:0,x2:0,y2:Math.tan((this.feature.style.fillAngle-180)*Math.PI/180)/2,colors:t};if(225<this.feature.style.fillAngle&&this.feature.style.fillAngle<270)return{x1:1,y1:0,x2:Math.tan((this.feature.style.fillAngle-225)*Math.PI/180)/2,y2:0,colors:t};if(270<this.feature.style.fillAngle&&this.feature.style.fillAngle<=315)return{x1:0,y1:0,x2:1-Math.tan((this.feature.style.fillAngle-270)*Math.PI/180)/2,y2:1,colors:t};if(315<this.feature.style.fillAngle&&this.feature.style.fillAngle<360)return{x1:0,y1:0,x2:1,y2:Math.tan((this.feature.style.fillAngle-315)*Math.PI/180)/2,colors:t}}else if("RADIAL"===this.feature.style.fillGradientMode)if(null!==this.feature.style.fillCenterOffsetX&&void 0!==this.feature.style.fillCenterOffsetX&&null!==this.feature.style.fillCenterOffsetY&&void 0!==this.feature.style.fillCenterOffsetY&&(t.push({offset:0,color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity}),this.feature.style.fillColor,this.feature.style.fillBackColor,t.push({offset:1,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity})),this.feature.style.fillCenterOffsetX<=.5&&this.feature.style.fillCenterOffsetX>=0||this.feature.style.fillCenterOffsetX<=0&&this.feature.style.fillCenterOffsetX>=-1){if(this.feature.style.fillCenterOffsetY>=0&&this.feature.style.fillCenterOffsetY<=.5||this.feature.style.fillCenterOffsetY>=-.5&&this.feature.style.fillCenterOffsetY<=0)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:.5*Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.5&&this.feature.style.fillCenterOffsetY<=.8||this.feature.style.fillCenterOffsetY>=-.8&&this.feature.style.fillCenterOffsetY<=-.5)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:.8*Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.8&&this.feature.style.fillCenterOffsetY<=1||this.feature.style.fillCenterOffsetY>=-1&&this.feature.style.fillCenterOffsetY<=-.8)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:Math.sqrt(2),colors:t}}else if(this.feature.style.fillCenterOffsetX<=.8&&this.feature.style.fillCenterOffsetX>.5||this.feature.style.fillCenterOffsetX<=-.5&&this.feature.style.fillCenterOffsetX>=-.8){if(this.feature.style.fillCenterOffsetY>=0&&this.feature.style.fillCenterOffsetY<=.5||this.feature.style.fillCenterOffsetY>=-.5&&this.feature.style.fillCenterOffsetY<=0)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:.8*Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.5&&this.feature.style.fillCenterOffsetY<=.8||this.feature.style.fillCenterOffsetY>=-.8&&this.feature.style.fillCenterOffsetY<=-.5)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:.8*Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.8&&this.feature.style.fillCenterOffsetY<=1||this.feature.style.fillCenterOffsetY>=-1&&this.feature.style.fillCenterOffsetY<=-.8)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:Math.sqrt(2),colors:t}}else if(this.feature.style.fillCenterOffsetX<=1&&this.feature.style.fillCenterOffsetX>.8||this.feature.style.fillCenterOffsetX<=-.8&&this.feature.style.fillCenterOffsetX>=-1){if(this.feature.style.fillCenterOffsetY>=0&&this.feature.style.fillCenterOffsetY<=.5||this.feature.style.fillCenterOffsetY>=-.5&&this.feature.style.fillCenterOffsetY<=0)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.5&&this.feature.style.fillCenterOffsetY<=.8||this.feature.style.fillCenterOffsetY>=-.8&&this.feature.style.fillCenterOffsetY<=-.5)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.8&&this.feature.style.fillCenterOffsetY<=1||this.feature.style.fillCenterOffsetY>=-1&&this.feature.style.fillCenterOffsetY<=-.8)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:Math.sqrt(2),colors:t}}}}]),t}();SuperMap.Plot.CalculateSVGGradient=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.CalculateCanvasGradient=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.feature=e,this._bounds=i}return o(t,[{key:"destroy",value:function(){this.feature=null}},{key:"getContext",value:function(){return this.feature._map.getRenderer(this.feature.layer)._ctx}},{key:"calculateObjectByBounds",value:function(){var t=this.feature._map.latLngToLayerPoint(L.latLng(this._bounds.getNorth(),this._bounds.getWest())),e=this.feature._map.latLngToLayerPoint(L.latLng(this._bounds.getSouth(),this._bounds.getEast())),i=this.feature._map.latLngToLayerPoint(L.latLng(this._bounds.getCenter()));if(t.x!==e.x||t.y!==e.y){var o=Math.max(t.x,e.x),n=Math.max(t.y,e.y),l=Math.min(t.x,e.x),a=Math.min(t.y,e.y);return{ptMinX:l,ptMinY:a,width:Math.abs(o-l),height:Math.abs(n-a),center:i,r:Math.abs(t.x-e.x)>Math.abs(e.y-e.y)?Math.abs(t.x-e.x):Math.abs(t.y-e.y)}}}},{key:"createGradient",value:function(){var t=null;if(this.getContext()instanceof CanvasRenderingContext2D){var e=this.calculateObjectByBounds();if("LINEAR"===this.feature.style.fillGradientMode){var i=this.getGradientDirection(this.feature.style.fillAngle);if(t=this.getContext().createLinearGradient(e.ptMinX+e.width*i.x1,e.ptMinY+e.height*i.y1,e.ptMinX+e.width*i.x2,e.ptMinY+e.height*i.y2),0===this.feature.style.fillCenterOffsetX&&0===this.feature.style.fillCenterOffsetY)t.addColorStop(0,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillColor,this.feature.style.fillOpacity)),t.addColorStop(1,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillBackColor,this.feature.style.fillOpacity));else{var o=this.feature.style.fillAngle;0===o||180===o||90===o||270===o?(t.addColorStop(0,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillBackColor,this.feature.style.fillOpacity)),0!==o&&180!==o||t.addColorStop(this.feature.style.fillCenterOffsetX,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillColor,this.feature.style.fillOpacity)),90!==o&&270!==o||t.addColorStop(this.feature.style.fillCenterOffsetY,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillColor,this.feature.style.fillOpacity)),t.addColorStop(1,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillBackColor,this.feature.style.fillOpacity))):(t.addColorStop(0,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillBackColor,this.feature.style.fillOpacity)),t.addColorStop(this.feature.style.fillCenterOffsetX>=this.feature.style.fillCenterOffsetY?this.feature.style.fillCenterOffsetX:this.feature.style.fillCenterOffsetY*Math.cos(this.feature.style.fillAngle*Math.PI/180),SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillColor,this.feature.style.fillOpacity)),t.addColorStop(1,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillBackColor,this.feature.style.fillOpacity)))}}if("RADIAL"===this.feature.style.fillGradientMode){var n=this.feature.style.fillCenterOffsetX*e.r,l=this.feature.style.fillCenterOffsetY*e.r,a=e.r/Math.sqrt(2)+Math.abs(n)>e.r/Math.sqrt(2)+Math.abs(l)?e.r/Math.sqrt(2)+Math.abs(n):e.r/Math.sqrt(2)+Math.abs(l);(t=this.getContext().createRadialGradient(e.center.x+n,e.center.y-l,0,e.center.x+n,e.center.y-l,a)).addColorStop(0,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillColor,this.feature.style.fillOpacity)),this.feature.style.fillColor,this.feature.style.fillBackColor,t.addColorStop(1,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillBackColor,this.feature.style.fillOpacity))}return t}}},{key:"createTextureFill",value:function(t){if(0!==t.length){var e=document.createElement("canvas");document.body.appendChild(e);var i=e.getContext("2d");e.width=8,e.height=8;var o=e.width,n=e.height,l=SuperMap.Plot.PlottingUtil.colorStringToRGB(t[0].color);i.strokeStyle="rgba("+l.red+","+l.green+","+l.blue+","+t[0].opacity+")",i.lineWidth=1;var a=SuperMap.Plot.PlottingUtil.colorStringToRGB(t[1].color);switch(i.fillStyle="rgba("+a.red+","+a.green+","+a.blue+","+t[1].opacity+")",i.fillRect(0,0,e.width,e.height),i.beginPath(),t[0].fillID){case 0:case 1:break;case 2:i.moveTo(0,n),i.lineTo(o,0);break;case 3:i.moveTo(0,0),i.lineTo(o,0),i.moveTo(0,0),i.lineTo(0,n);break;case 4:i.moveTo(0,n),i.lineTo(o,0),i.moveTo(0,0),i.lineTo(o,n);break;case 5:i.moveTo(0,0),i.lineTo(o,n);break;case 6:i.moveTo(0,0),i.lineTo(o,0);break;case 7:i.moveTo(0,0),i.lineTo(0,n)}i.closePath(),i.stroke(),i.fill();var s=i.createPattern(e,"repeat");return document.body.removeChild(e),s}}},{key:"createFillMode",value:function(t){if(void 0!==this.feature.style.fillSymbolID)if(t.fill=this.feature.style.fill,t.fillSymbolID=this.feature.style.fillSymbolID,0===this.feature.style.fillSymbolID||1===this.feature.style.fillSymbolID||!0===this.feature.style.fill||!1===this.feature.style.fill)0===this.feature.style.fillSymbolID?t.fill=!0:1===this.feature.style.fillSymbolID&&(t.fill=!1),t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity;else if(this.feature.style.fillColor!==this.feature.style.fillBackColor||this.feature.style.fillBackOpacity>0&&this.feature.style.fillBackOpacity<1){var e=[];e.push({fillID:this.feature.style.fillSymbolID,color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity},{fillID:this.feature.style.fillSymbolID,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillBackOpacity}),t.fill=!0,t.fillColor=this.createTextureFill(e),t.fillOpacity=this.feature.style.fillColor}else t.fill=!0,t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity;else t.fill=this.feature.style.fill,t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity}},{key:"getGradientDirection",value:function(t){var e=function(t){return{x:Math.cos(t),y:Math.sin(t)}},i=function(t){return t*Math.PI/180},o=e(i(180-t%360)),n=e(i(360-t%360)),l=Math.pow(2,-52);return(o.x<=0||Math.abs(o.x)<=l)&&(o.x=0),(o.y<=0||Math.abs(o.y)<=l)&&(o.y=0),(n.x<=0||Math.abs(n.x)<=l)&&(n.x=0),(n.y<=0||Math.abs(n.y)<=l)&&(n.y=0),{x1:o.x,y1:o.y,x2:n.x,y2:n.y}}}]),t}();SuperMap.Plot.CalculateCanvasGradient=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CalculateSVGGradient=e.CalculateCanvasGradient=void 0;var o=i(135),n=i(134);e.CalculateCanvasGradient=o.CalculateCanvasGradient,e.CalculateSVGGradient=n.CalculateSVGGradient},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.TransactionInfo=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.layer=e.layer?e.layer:null,this.feature=e.feature?e.feature:null,this.uuid=e.uuid?e.uuid:null,this.functionName=e.functionName?e.functionName:null,this.undoParams=e.undoParams?e.undoParams:null,this.redoParams=e.redoParams?e.redoParams:null,this.propertyName=e.propertyName?e.propertyName:null,this.undoValue=e.undoValue?e.undoValue:null,this.redoValue=e.redoValue?e.redoValue:null,this.CLASS_NAME="SuperMap.Plot.TransactionInfo"};SuperMap.Plot.TransactionInfo=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.Transaction=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.transType=e.transType?e.transType:SuperMap.Plot.TransactionType.EDIT,this.transInfos=[],this.CLASS_NAME="SuperMap.Plot.Transaction"}return o(t,[{key:"destroy",value:function(){this.transInfos=null,this.transType=null}}]),t}();SuperMap.Plot.Transaction=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.TowardNode=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.routeNodeId=e.routeNodeId?e.routeNodeId:null,this.relLineText=e.relLineText?e.relLineText:SuperMap.Plot.RelLineText.ONLEFTLINE,this.index=e.index?e.index:0,this.textContent=e.textContent?e.textContent:null,this.offsetX=e.offsetX?e.offsetX:null,this.offsetY=e.offsetY?e.offsetY:null,this.style=e.style?e.style:{fontSize:12,fontFamily:"Microsoft YaHei"},this.CLASS_NAME="SuperMap.Plot.TowardNode"}return o(t,[{key:"destroy",value:function(){this.routeNodeId=null,this.relLineText=null,this.textContent=null,this.style=null}},{key:"clone",value:function(){return new t({routeNodeId:this.routeNodeId,relLineText:this.relLineText,textContent:this.textContent,style:SuperMap.Util.cloneObject(this.style)})}},{key:"parseSymbolData",value:function(t){return this.routeNodeId=t.routeNodeId,this.relLineText=t.relLineText,this.index=t.index,this.textContent=t.textContent,this.offsetX=t.offsetX,this.offsetY=t.offsetY,this.style=SuperMap.Plot.AnalysisSymbol.getStyle(t,!0),this}},{key:"setSymbolData",value:function(){var t={};return t.routeNodeId=this.routeNodeId,t.relLineText=this.relLineText,t.index=this.index,t.textContent=this.textContent,t.offsetX=this.offsetX,t.offsetY=this.offsetY,SuperMap.Util.applyDefaults(this.style,L.supermap.plotting.PlottingObject.prototype._defaultStyle),SuperMap.Plot.AnalysisSymbol.setStyle(this.style,t,!0),t}}]),t}();SuperMap.Plot.TowardNode=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.TimeWindowParameter=function(){function t(e,i,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.startOrbitPoint=e,this.endOrbitPoint=i,this.type=o,this.CLASS_NAME="SuperMap.Plot.TimeWindowParameter"}return o(t,[{key:"destroy",value:function(){this.startOrbitPoint=null,this.endOrbitPoint=null,this.type=null}}]),t}();SuperMap.Plot.TimeWindowParameter=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.SymbolText=function(){function t(e,i,o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=n||{},this.textContent=e,this.textPosition=i,void 0!==this.textPosition&&null!==this.textPosition||(this.textPosition=0),this.offsetX=n.offsetX?n.offsetX:0,this.offsetY=n.offsetY?n.offsetY:0,this.style=o,this.CLASS_NAME="SuperMap.Plot.SymbolText"}return o(t,[{key:"destroy",value:function(){this.textContent=null,this.textPosition=null,this.offsetX=null,this.offsetY=null}},{key:"clone",value:function(){var t={offsetX:this.offsetX,offsetY:this.offsetY},e={};return e=SuperMap.Util.copyAttributes(e,this.style),new SuperMap.Plot.SymbolText(this.textContent,this.textPosition,e,t)}},{key:"setSymbolData",value:function(){var t={};return t.textContent=this.textContent,t.textPosition=this.textPosition,t.offsetX=this.offsetX,t.offsetY=this.offsetY,SuperMap.Plot.AnalysisSymbol.setStyle(this.style,t,!0),t}},{key:"parseSymbolData",value:function(t){return this.textContent=t.textContent,this.textPosition=t.textPosition,this.offsetX=t.offsetX,this.offsetY=t.offsetY,SuperMap.Plot.AnalysisSymbol.getStyle(t,!0),this}}]),t}();SuperMap.Plot.SymbolText=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.SubSymbol=function(){function t(e,i,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o=o||{},this.libID=e,this.code=i,this.symbolData=o.symbolData?o.symbolData:null,this.textContent=o.textContent?o.textContent:null,this.totalNum=o.totalNum?o.totalNum:null,this.CLASS_NAME="SuperMap.Plot.SubSymbol"}return o(t,[{key:"destroy",value:function(){this.libID=null,this.code=null,this.symbolData=null,this.totalNum=null}},{key:"clone",value:function(){var t=new SuperMap.Plot.SubSymbol(this.libID,this.code);return t.symbolData={},t.symbolData=SuperMap.Util.copyAttributes(t.symbolData,this.symbolData),t.textContent=this.textContent,t.totalNum=this.totalNum,t}}]),t}();SuperMap.Plot.SubSymbol=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.SMLInfoStruct=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e&&(this.SMLName=e.SMLName,this.SMLDesc=e.SMLDesc,this.SMLSeclevel=e.SMLSeclevel,this.SMLDepat=e.SMLDepat,this.SMLAuthor=e.SMLAuthor,this.SMLTime=e.SMLTime),this.CLASS_NAME="SuperMap.Plot.SMLInfoStruct"}return o(t,[{key:"destroy",value:function(){this.SMLName="",this.SMLDesc="",this.SMLAuthor="",this.SMLSeclevel="",this.SMLDepat="",this.SMLTime=""}},{key:"fromJSON",value:function(t){this.SMLName=t.SMLName,this.SMLDesc=t.SMLDesc,this.SMLSeclevel=t.SMLSeclevel,this.SMLDepat=t.SMLDepat,this.SMLAuthor=t.SMLAuthor,this.SMLTime=t.SMLTime}},{key:"toJSON",value:function(){return'{"SMLName":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLName)+',"SMLDesc":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLDesc)+',"SMLSeclevel":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLSeclevel)+',"SMLDepat":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLDepat)+',"SMLAuthor":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLAuthor)+',"SMLTime":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLTime)+"}"}}]),t}();SuperMap.Plot.SMLInfoStruct=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.SitDataStruct=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.smlInfo=e.smlInfo?e.smlInfo:null,this.mapInfo=e.mapInfo?e.mapInfo:null,this.layerDatas=e.layerDatas?e.layerDatas:null,this.CLASS_NAME="SuperMap.Plot.SitDataStruct"}return o(t,[{key:"destroy",value:function(){this.smlInfo=null,this.mapInfo=null,this.layerDatas=null}}]),t}();SuperMap.Plot.SitDataStruct=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.RouteNode=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.id=e.id?e.id:SuperMap.Plot.PlottingUtil.generateUuid(),this.x=e.x?e.x:null,this.y=e.y?e.y:null,this.z=e.z?e.z:null,this.type=e.type?e.type:null,this.name=e.name?e.name:null,this.rotate=e.rotate?e.rotate:0,this.towardNodes=e.towardNodes?e.towardNodes:[],this.style=e.style?e.style:{},0===Object.keys(this.style).length&&(this.style=SuperMap.Util.cloneObject(L.supermap.plotting.PlottingObject.prototype._defaultStyle)),this.CLASS_NAME="SuperMap.Plot.RouteNode"}return o(t,[{key:"destroy",value:function(){this.type=null,this.position=null,this.name=null,this.id=null,this.rotate=null,this.towardNodes&&null!==this.towardNodes||(this.towardNodes=null);for(var t=0;t<this.towardNodes.length;t++)this.towardNodes[t].destroy();this.towardNodes=null}},{key:"clone",value:function(){var e=new t({id:this.id,type:this.type,name:this.name,rotate:this.rotate,towardNodes:this.towardNodes});return e.positionPoint=this.positionPoint.clone(),e.style={},e.style=SuperMap.Util.copyAttributes(e.style,this.style),e}},{key:"parseSymbolData",value:function(t){for(var e in this.id=t.id,this.type=t.type,this.name=t.name,this.rotate=t.rotate,t.positionPoint?(this.x=t.positionPoint.x,this.y=t.positionPoint.y,this.z=t.positionPoint.z):(this.x=t.x,this.y=t.y,this.z=t.z),this.style=SuperMap.Plot.AnalysisSymbol.getStyle(t,!0),t.towardNodes){var i=new SuperMap.Plot.TowardNode;this.towardNodes.push(i.parseSymbolData(t.towardNodes[e]))}return this}},{key:"setSymbolData",value:function(){var t={};for(var e in t.id=this.id,t.type=this.type,t.name=this.name,t.rotate=this.rotate,t.x=this.x,t.y=this.y,t.z=this.z,SuperMap.Plot.AnalysisSymbol.setStyle(this.style,t,!0),t.towardNodes=[],this.towardNodes)t.towardNodes.push(this.towardNodes[e].setSymbolData());return t}}]),t}();SuperMap.Plot.RouteNode=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.Property=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e&&(this.key=e),i&&(this.value=i),this.CLASS_NAME="SuperMap.Plot.Property"}return o(t,[{key:"setKey",value:function(t){this.key=t}},{key:"getKey",value:function(){return this.key}},{key:"setValue",value:function(t){this.value=t}},{key:"getValue",value:function(){return this.value}},{key:"destroy",value:function(){this.key=null,this.value=null}},{key:"clone",value:function(){return new SuperMap.Plot.Property(this.key,this.value)}}]),t}();SuperMap.Plot.Property=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.OrbitPoint=function(){function t(e,i,o,n,l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=parseFloat(e),this.y=parseFloat(i),(o||0==o)&&(this.z=parseFloat(o)),n&&(this.number=n),l&&(this.time=l),this.CLASS_NAME="SuperMap.Plot.OrbitPoint"}return o(t,[{key:"destroy",value:function(){this.x=null,this.y=null,this.z=null,this.index=null,this.time=null}},{key:"clone",value:function(t){return null==t&&(t=new SuperMap.Plot.OrbitPoint(this.x,this.y,this.z)),SuperMap.Util.applyDefaults(t,this),t}}]),t}();SuperMap.Plot.OrbitPoint=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.MapInfoStruct=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.zoom=e.zoom?e.zoom:null,this.centerX=e.centerX?e.centerX:null,this.centerY=e.centerY?e.centerY:null,this.CLASS_NAME="SuperMap.Plot.MapInfoStruct"}return o(t,[{key:"destroy",value:function(){this.zoom=null,this.centerX=null,this.centerY=null}},{key:"fromJSON",value:function(t){void 0!==t.zoom&&(this.zoom=t.zoom),void 0!==t.centerX&&(this.centerX=t.centerX),void 0!==t.centerY&&(this.centerY=t.centerY)}},{key:"toJSON",value:function(){return'{"zoom":'+SuperMap.Plot.PlottingUtil.toJSON(this.zoom)+',"centerX":'+SuperMap.Plot.PlottingUtil.toJSON(this.centerX)+',"centerY":'+SuperMap.Plot.PlottingUtil.toJSON(this.centerY)+"}"}}]),t}();SuperMap.Plot.MapInfoStruct=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.LayerDataStruct=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.layerName=e.layerName?e.layerName:null,this.spatialAnalystUrl=e.spatialAnalystUrl?e.spatialAnalystUrl:null,this.useCanvas2=!!e.useCanvas2&&e.useCanvas2,this.useCanvas=!!e.useCanvas&&e.useCanvas,this.features=e.features?e.features:null,this.CLASS_NAME="SuperMap.Plot.LayerDataStruct"}return o(t,[{key:"destroy",value:function(){this.layerName=null,this.spatialAnalystUrl=null,this.useCanvas2=null,this.useCanvas=null,this.features=null}},{key:"toJSON",value:function(){for(var t=[],e=0;e<this.features.length;e++)t.push(this.features[e].getSymbolData());return'{"layerName":'+SuperMap.Plot.PlottingUtil.toJSON(this.layerName)+', "spatialAnalystUrl":'+SuperMap.Plot.PlottingUtil.toJSON(this.spatialAnalystUrl)+', "useCanvas2":'+SuperMap.Plot.PlottingUtil.toJSON(this.useCanvas2)+', "useCanvas":'+SuperMap.Plot.PlottingUtil.toJSON(this.useCanvas)+', "isEditable":'+SuperMap.Plot.PlottingUtil.toJSON(this.isEditable)+', "isLocked":'+SuperMap.Plot.PlottingUtil.toJSON(this.isLocked)+', "visibility":'+SuperMap.Plot.PlottingUtil.toJSON(this.visibility)+',"features":'+SuperMap.Plot.PlottingUtil.toJSON(t)+"}"}}]),t}();SuperMap.Plot.LayerDataStruct=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.ExtendProperty=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.properties=e.properties?e.properties:[],this.CLASS_NAME="SuperMap.Plot.ExtendProperty"}return o(t,[{key:"addProperty",value:function(t,e){var i=this.findProperty(t);return null==i?this.properties.push(new SuperMap.Plot.Property(t,e)):i.setValue(e),!0}},{key:"deleteProperty",value:function(t){for(var e=0;e<this.properties.length;e++)if(this.properties[e].key===t)return this.properties.slice(e,1),!0;return!1}},{key:"findProperty",value:function(t){for(var e=0;e<this.properties.length;e++)if(this.properties[e].key===t)return this.properties[e];return null}},{key:"getPropertyValue",value:function(t){for(var e=0;e<this.properties.length;e++)if(this.properties[e].key===t)return this.properties[e].value;return null}},{key:"getPropertyByIndex",value:function(t){return t<this.properties.length?this.properties[t]:null}},{key:"getPropertyCount",value:function(){return this.properties.length}},{key:"destroy",value:function(){this.properties=null}}]),t}();SuperMap.Plot.ExtendProperty=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.DefaultStyle=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.lineColor=e.lineColor?e.lineColor:"#ff0000",this.lineWidth=e.lineWidth?e.lineWidth:2,this.lineType=e.lineType?e.lineType:0,this.lineOpacity=e.lineOpacity?e.lineOpacity:1,this.lineCap=e.lineCap?e.lineCap:"round",this.flagTextSize=e.flagTextSize?e.flagTextSize:60,this.maxScale=e.maxScale?e.maxScale:5,this.minScale=e.minScale?e.minScale:1,this.dotSymbolSize=e.dotSymbolSize?e.dotSymbolSize:40,this.dotTextSpace=e.dotTextSpace?e.dotTextSpace:7,this.scaleByMap=!!e.scaleByMap&&e.scaleByMap,this.fillColor=e.fillColor?e.fillColor:"#ff0000",this.fillOpacity=e.fillOpacity?e.fillOpacity:.31,this.fontColor=e.fontColor?e.fontColor:"#000000",this.fontOpacity=e.fontOpacity?e.fontOpacity:1,this.fontStroke=!!e.fontStroke&&e.fontStroke,this.fontStrokeColor=e.fontStrokeColor?e.fontStrokeColor:"#ff0000",this.fontStrokeWidth=e.fontStrokeWidth?e.fontStrokeWidth:"2px",this.fontBackground=!!e.fontBackground&&e.fontBackground,this.fontBackgroundColor=e.fontBackgroundColor?e.fontBackgroundColor:"#ff0000",this.fontShadow=!!e.fontShadow&&e.fontShadow,this.fontShadowColor=e.fontShadowColor?e.fontShadowColor:"#ff0000",this.fontShadowOffsetX=e.fontShadowOffsetX?e.fontShadowOffsetX:0,this.fontShadowOffsetY=e.fontShadowOffsetY?e.fontShadowOffsetY:0,this.fontSize=e.fontSize?e.fontSize:14,this.fontSpace=e.fontSpace?e.fontSpace:0,this.fontPercent=e.fontPercent?e.fontPercent:100,this.fontFamily=e.fontFamily?e.fontFamily:"微软雅黑",this.fontWeight=e.fontWeight?e.fontWeight:"bold",this.fontStyle=e.fontStyle?e.fontStyle:"",this.surroundLineType=e.surroundLineType?e.surroundLineType:0,this.surroundLineColor=e.surroundLineColor?e.surroundLineColor:"#ffff00",this.surroundLineWidth=e.surroundLineWidth?e.surroundLineWidth:4,this.surroundLineColorOpacity=e.surroundLineColorOpacity?e.surroundLineColorOpacity:1,this.fontStyle=e.fontStyle?e.fontStyle:"",this.fillBackColor=e.fillBackColor?e.fillBackColor:"#ff0000",this.fillBackOpacity=e.fillBackOpacity?e.fillBackOpacity:1,this.fillGradientMode=e.fillGradientMode?e.fillGradientMode:"NONE",this.fillCenterOffsetX=e.fillCenterOffsetX?e.fillCenterOffsetX:0,this.fillCenterOffsetY=e.fillCenterOffsetY?e.fillCenterOffsetY:0,this.fillAngle=e.fillAngle?e.fillAngle:0,this.fillSymbolID=e.fillSymbolID?e.fillSymbolID:1,this.defaultFlag=!!e.defaultFlag&&e.defaultFlag,this.CLASS_NAME="SuperMap.Plot.DefaultStyle",this.parserConfiguration()}return o(t,[{key:"parserConfiguration",value:function(){"undefined"!=typeof DefaultStyleConfiguration&&("undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.flagTextSize&&(this.flagTextSize=parseFloat(DefaultStyleConfiguration.flagTextSize)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.maxScale&&(this.maxScale=parseFloat(DefaultStyleConfiguration.maxScale)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.minScale&&(this.minScale=parseFloat(DefaultStyleConfiguration.minScale)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.dotSymbolSize&&(this.dotSymbolSize=parseFloat(DefaultStyleConfiguration.dotSymbolSize)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.dotTextSpace&&(this.dotTextSpace=parseFloat(DefaultStyleConfiguration.dotTextSpace)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.scaleByMap&&(this.scaleByMap=DefaultStyleConfiguration.scaleByMap),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.strokeWidth&&(this.lineWidth=parseFloat(DefaultStyleConfiguration.strokeWidth)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.strokeColor&&(this.lineColor=DefaultStyleConfiguration.strokeColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.strokeOpacity&&(this.lineOpacity=parseFloat(DefaultStyleConfiguration.strokeOpacity)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.strokeDashstyle&&(this.lineType=DefaultStyleConfiguration.strokeDashstyle),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.strokeLinecap&&(this.lineCap=DefaultStyleConfiguration.strokeLinecap),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillColor&&(this.fillColor=DefaultStyleConfiguration.fillColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillOpacity&&(this.fillOpacity=parseFloat(DefaultStyleConfiguration.fillOpacity)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontColor&&(this.fontColor=DefaultStyleConfiguration.fontColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontOpacity&&(this.fontOpacity=parseFloat(DefaultStyleConfiguration.fontOpacity)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontStroke&&(this.fontStroke=DefaultStyleConfiguration.fontStroke),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontStrokeColor&&(this.fontStrokeColor=DefaultStyleConfiguration.fontStrokeColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontStrokeWidth&&(this.fontStrokeWidth=parseFloat(DefaultStyleConfiguration.fontStrokeWidth)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontBackground&&(this.fontBackground=DefaultStyleConfiguration.fontBackground),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontBackgroundColor&&(this.fontBackgroundColor=DefaultStyleConfiguration.fontBackgroundColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontShadow&&(this.fontShadow=DefaultStyleConfiguration.fontShadow),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontShadowColor&&(this.fontShadowColor=DefaultStyleConfiguration.fontShadowColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontShadowOffsetX&&(this.fontShadowOffsetX=DefaultStyleConfiguration.fontShadowOffsetX),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontShadowOffsetY&&(this.fontShadowOffsetY=DefaultStyleConfiguration.fontShadowOffsetY),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontSpace&&(this.fontSpace=parseInt(DefaultStyleConfiguration.fontSpace)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontPercent&&(this.fontPercent=parseFloat(DefaultStyleConfiguration.fontPercent)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontSize&&(this.fontSize=parseFloat(DefaultStyleConfiguration.fontSize)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontFamily&&(this.fontFamily=DefaultStyleConfiguration.fontFamily),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontWeight&&(this.fontWeight=DefaultStyleConfiguration.fontWeight),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontStyle&&(this.fontStyle=DefaultStyleConfiguration.fontStyle),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.surroundLineType&&(this.surroundLineType=parseFloat(DefaultStyleConfiguration.surroundLineType)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.surroundLineColor&&(this.surroundLineColor=DefaultStyleConfiguration.surroundLineColor),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.surroundLineWidth&&(this.surroundLineWidth=parseFloat(DefaultStyleConfiguration.surroundLineWidth)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.surroundLineColorOpacity&&(this.surroundLineColorOpacity=parseFloat(DefaultStyleConfiguration.surroundLineColorOpacity)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillBackColor&&(this.fillBackColor=DefaultStyleConfiguration.fillBackColor),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillBackOpacity&&(this.fillBackOpacity=parseFloat(DefaultStyleConfiguration.fillBackOpacity)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillGradientMode&&(this.fillGradientMode=DefaultStyleConfiguration.fillGradientMode),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillAngle&&(this.fillAngle=parseFloat(DefaultStyleConfiguration.fillAngle)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillCenterOffsetX&&(this.fillCenterOffsetX=parseFloat(DefaultStyleConfiguration.fillCenterOffsetX)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillCenterOffsetY&&(this.fillCenterOffsetY=parseFloat(DefaultStyleConfiguration.fillCenterOffsetY)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillSymbolID&&(this.fillSymbolID=parseFloat(DefaultStyleConfiguration.fillSymbolID)))}},{key:"destroy",value:function(){this.lineColor=null,this.lineWidth=null,this.dotSymbolSize=null,this.lineType=null,this.defaultFlag=null,this.flagTextSize=null,this.maxScale=null,this.minScale=null,this.dotTextSpace=null,this.scaleByMap=null,this.lineOpacity=null,this.lineCap=null,this.fillColor=null,this.fillOpacity=null,this.fontColor=null,this.fontOpacity=null,this.fontSize=null,this.fontFamily=null,this.fontWeight=null,this.fontStyle=null,this.fontPercent=null,this.fontSpace=null,this.surroundLineType=null,this.surroundLineColor=null,this.surroundLineWidth=null,this.surroundLineColorOpacity=null,this.fillBackColor=null,this.fillBackOpacity=null,this.fillGradientMode=null,this.fillAngle=null,this.fillCenterOffsetX=null,this.fillCenterOffsetY=null,this.fillSymbolID=null}}]),t}();SuperMap.Plot.DefaultStyle=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TransactionInfo=e.Transaction=e.TowardNode=e.TimeWindowParameter=e.SymbolText=e.SubSymbol=e.SMLInfoStruct=e.SitDataStruct=e.RouteNode=e.Property=e.OrbitPoint=e.MapInfoStruct=e.LayerDataStruct=e.ExtendProperty=e.DefaultStyle=void 0;var o=i(151),n=i(150),l=i(149),a=i(148),s=i(147),r=i(146),u=i(145),p=i(144),h=i(143),c=i(142),y=i(141),f=i(140),S=i(139),g=i(138),P=i(137);e.DefaultStyle=o.DefaultStyle,e.ExtendProperty=n.ExtendProperty,e.LayerDataStruct=l.LayerDataStruct,e.MapInfoStruct=a.MapInfoStruct,e.OrbitPoint=s.OrbitPoint,e.Property=r.Property,e.RouteNode=u.RouteNode,e.SitDataStruct=p.SitDataStruct,e.SMLInfoStruct=h.SMLInfoStruct,e.SubSymbol=c.SubSymbol,e.SymbolText=y.SymbolText,e.TimeWindowParameter=f.TimeWindowParameter,e.TowardNode=S.TowardNode,e.Transaction=g.Transaction,e.TransactionInfo=P.TransactionInfo},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.GetSymbolInfoParameters=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.libID=e.libID,this.code=e.code,this.inputPoints=e.inputPoints?e.inputPoints:null,this.symbolRank=e.symbolRank?e.symbolRank:0,this.negativeImage=!!e.negativeImage&&e.negativeImage,this.surroundLineType=e.surroundLineType?e.surroundLineType:0,this.subSymbols=e.subSymbols?e.subSymbols:null,this.scaleValues=e.scaleValues?e.scaleValues:null,this.scalePoints=e.scalePoints?e.scalePoints:null,this.newScalePoint=e.newScalePoint?e.newScalePoint:null,this.newScalePointIndex=e.newScalePointIndex?e.newScalePointIndex:0,this.CLASS_NAME="SuperMap.GetSymbolInfoParameters"}return o(t,[{key:"destroy",value:function(){var t=this;t.libID=null,t.code=null,t.inputPoints=null,t.symbolRank=null,t.negativeImage=null,t.surroundLineType=null,t.subSymbols=null,t.scaleValues=null,t.scalePoints=null,t.newScalePoint=null,t.newScalePointIndex=null}}],[{key:"toUrlParameters",value:function(t){if(t&&null!==t.libID&&null!==t.code){var e="libID="+t.libID+"&code="+t.code;if(t.inputPoints&&null!==t.inputPoints&&0!==t.inputPoints.length){e+="&inputPoints=[";for(var i=0;i<t.inputPoints.length;i++)i===t.inputPoints.length-1?e+='{"x":'+t.inputPoints[i].x+', "y":'+t.inputPoints[i].y+"}]":e+='{"x":'+t.inputPoints[i].x+', "y":'+t.inputPoints[i].y+"},"}if(t.scalePoints&&null!==t.scalePoints&&0!==t.scalePoints.length){e+="&scalePoints=[";for(var o=0;o<t.scalePoints.length;o++)o===t.scalePoints.length-1?e+='{"x":'+t.scalePoints[o].x+', "y":'+t.scalePoints[o].y+"}]":e+='{"x":'+t.scalePoints[o].x+', "y":'+t.scalePoints[o].y+"},"}if(t.scaleValues&&null!==t.scaleValues&&0!==t.scaleValues.length){e+="&scaleValues=[";for(var n=0;n<t.scaleValues.length;n++)n===t.scaleValues.length-1?e+=t.scaleValues[n]+"]":e+=t.scaleValues[n]+","}if(t.subSymbols&&null!==t.subSymbols&&0!==t.subSymbols.length){e+="&subSymbols=[";for(var l=0;l<t.subSymbols.length;l++)l===t.subSymbols.length-1?e+=t.subSymbols[l].code+"]":e+=t.subSymbols[l].code+","}return t.newScalePoint&&null!==t.newScalePoint&&(e+='&newScalePoint={"x":'+t.newScalePoint.x+', "y":'+t.newScalePoint.y+"}"),t.newScalePointIndex&&null!==t.newScalePointIndex&&(e+="&newScalePointIndex="+t.newScalePointIndex),t.symbolRank&&null!==t.symbolRank&&(e+="&symbolRank="+t.symbolRank),t.negativeImage&&null!==t.negativeImage&&(e+="&negativeImage="+t.negativeImage),t.surroundLineType&&null!==t.surroundLineType&&(e+="&surroundLineType="+t.surroundLineType),e}}}]),t}();SuperMap.GetSymbolInfoParameters=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.GetSMLInfosParameters=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.start=e.start,this.count=e.count?e.count:null,this.CLASS_NAME="SuperMap.GetSMLInfosParameters"}return o(t,[{key:"destroy",value:function(){this.start=null,this.count=null}}],[{key:"toUrlParameters",value:function(t){if(t){var e="";return null!==t.start&&(e="?start="+t.start),!t.count||null===t.count&&0===t.count||(e+="&count="+t.count),e}}}]),t}();SuperMap.GetSMLInfosParameters=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.GetLibInfoParameter=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.libID=e.libID,this.CLASS_NAME="SuperMap.GetLibInfoParameter"}return o(t,[{key:"destroy",value:function(){this.libID=null}}]),t}();SuperMap.GetLibInfoParameter=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.EditSmlFileParameters=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.method=e.method?e.method:"POST",this.sitData=e.sitData?e.sitData:null,this.smlFileName=e.smlFileName?e.smlFileName:"",this.isCover=!!e.isCover&&e.isCover,this.CLASS_NAME="SuperMap.EditSmlFileParameters"}return o(t,[{key:"destroy",value:function(){this.method="POST",this.sitData=null,this.isCover=!1,this.smlFileName=""}}],[{key:"toJsonParameters",value:function(t){if(t)return SuperMap.Plot.PlottingUtil.toJSON(t.sitData)}}]),t}();SuperMap.EditSmlFileParameters=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}();var n=e.PlotCommonServiceBase=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return o.CLASS_NAME="SuperMap.PlotCommonServiceBase",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.CommonServiceBase),o(e,[{key:"destroy",value:function(){(function t(e,i,o){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,i);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,i,o)}if("value"in n)return n.value;var a=n.get;return void 0!==a?a.call(o):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"_commit",value:function(t){"POST"!==t.method&&"PUT"!==t.method||(t.params&&(t.url=SuperMap.Util.urlAppend(t.url,SuperMap.Util.getParameterString(t.params||{}))),t.params=t.data),SuperMap.FetchRequest.commit(t.method,t.url,t.params,{headers:t.headers,withCredentials:t.withCredentials,timeout:t.async?0:null,proxy:t.proxy}).then(function(t){return t.text()}).then(function(e){var i=(new SuperMap.Format.JSON).read(e);(i||(i={error:e}),i.error)?(t.scope?SuperMap.Function.bind(t.failure,t.scope):t.failure)(i.error):(i.succeed=void 0==i.succeed||i.succeed,(t.scope?SuperMap.Function.bind(t.success,t.scope):t.success)(i))})}}]),e}();SuperMap.PlotCommonServiceBase=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GetSymbolInfoService=e.GetSymbolInfoParameters=e.GetSMLInfosService=e.GetSMLInfosParameters=e.GetLibInfoService=e.GetLibInfoParameter=e.GetLibIDsService=e.EditSmlFileService=e.EditSmlFileParameters=e.PlotCommonServiceBase=void 0;var o=i(157),n=i(156),l=i(40),a=i(39),s=i(155),r=i(38),u=i(154),p=i(37),h=i(153),c=i(36);e.PlotCommonServiceBase=o.PlotCommonServiceBase,e.EditSmlFileParameters=n.EditSmlFileParameters,e.EditSmlFileService=l.EditSmlFileService,e.GetLibIDsService=a.GetLibIDsService,e.GetLibInfoParameter=s.GetLibInfoParameter,e.GetLibInfoService=r.GetLibInfoService,e.GetSMLInfosParameters=u.GetSMLInfosParameters,e.GetSMLInfosService=p.GetSMLInfosService,e.GetSymbolInfoParameters=h.GetSymbolInfoParameters,e.GetSymbolInfoService=c.GetSymbolInfoService},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=SuperMap.Plot.GOAnimationType={ANIMATION_UNKNOWN:-1,ANIMATION_WAY:0,ANIMATION_BLINK:1,ANIMATION_ATTRIBUTE:2,ANIMATION_SHOW:3,ANIMATION_ROTATE:4,ANIMATION_SCALE:5,ANIMATION_GROW:6};e.GOAnimationType=o;var n=SuperMap.Plot.BlinkAnimationBlinkStyle={Blink_Frequency:0,Blink_Number:1};e.BlinkAnimationBlinkStyle=n;var l=SuperMap.Plot.BlinkAnimationReplaceStyle={Replace_NoColor:0,Replace_Color:1};e.BlinkAnimationReplaceStyle=l;var a=SuperMap.Plot.RotateDirection={ClockWise:0,AntiClockWise:1};e.RotateDirection=a;var s=SuperMap.Plot.WayPathType={POLYLINE:0,CURVE:1};e.WayPathType=s;var r=SuperMap.Plot.GOAnimationState={UNKNOWN:0,PLAYING:1,PAUSE:2,STOP:3,RESET:4};e.GOAnimationState=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GOAnimationState=e.WayPathType=e.RotateDirection=e.BlinkAnimationReplaceStyle=e.BlinkAnimationBlinkStyle=e.GOAnimationType=void 0;var o=i(159);e.GOAnimationType=o.GOAnimationType,e.BlinkAnimationBlinkStyle=o.BlinkAnimationBlinkStyle,e.BlinkAnimationReplaceStyle=o.BlinkAnimationReplaceStyle,e.RotateDirection=o.RotateDirection,e.WayPathType=o.WayPathType,e.GOAnimationState=o.GOAnimationState},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.Event=SuperMap.Plot.Event=SuperMap.Plot.Event||{};SuperMap.Plot.Event.beforefeatureadded="beforefeatureadded",SuperMap.Plot.Event.featureadded="featureadded",SuperMap.Plot.Event.beforefeaturesselected="beforefeaturesselected",SuperMap.Plot.Event.featuresselected="featuresselected",SuperMap.Plot.Event.beforefeaturesunselected="beforefeaturesunselected",SuperMap.Plot.Event.featuresunselected="featuresunselected",SuperMap.Plot.Event.beforefeaturesmodified="beforefeaturesmodified",SuperMap.Plot.Event.featuresmodified="featuresmodified",SuperMap.Plot.Event.initializecompleted="initializecompleted",SuperMap.Plot.Event.cachecompleted="cachecompleted",SuperMap.Plot.Event.reseteditmarkersvalues="reseteditmarkersvalues",SuperMap.Plot.Event.reseteditmarkers="reseteditmarkers"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var o=i(161);e.Event=o.Event},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=SuperMap.Plot.ArrowTailType={ARROWTAIL_NONE:0,ARROWTAIL_LINE:1,ARROWTAIL_CURVE:2,ARROWTAIL_COATTAIL:3,ARROWTAIL_COATTAIL_POLYBODY:4};e.ArrowTailType=o;var n=SuperMap.Plot.ArrowHeadType={ARROWHEAD_POLYLINE:0,ARROWHEAD_TRIANGLE:1,ARROWHEAD_COATTAIL:2,ARROWHEAD_TRIANGLE_SOLID:3,ARROWHEAD_WITH_EAR:4,ARROWHEAD_WITHOUT_EAR:5,ARROWHEAD_COATTAIL_HOLLOW:6};e.ArrowHeadType=n;var l=SuperMap.Plot.ArrowBodyType={ARROWBODY_POLYLINE:0,ARROWBODY_POLYBEZIER:1,ARROWBODY_PARALLEL:2,ARROWBODY_TRAPEZOID:3,ARROWBODY_MULTIPOLYBEZIER:4,ARROWBODY_COATTAIL:5};e.ArrowBodyType=l;var a=SuperMap.Plot.SymbolType={DOTSYMBOL:1,ALGOSYMBOL:2,TEXTSYMBOL:34,ELLIPSESYMBOL:31,CIRCLESYMBOL:29,RECTANGLESYMBOL:26,ARBITRARYPOLYGONSYMBOL:32,POLYLINESYMBOL:24,PARALLELOGRAM:28,ARCSYMBOL:44,REGULARPOLYGON:410,CHORDSYMBOL:370,PIESYMBOL:380,KIDNEY:390,POLYBEZIERSYMBOL:590,PARALLELLINE:48,BRACESYMBOL:400,ANNOFRAMESYMBOL:320,ANNOFRAMESYMBOLM:321,TRAPEZOIDSYMBOL:350,POLYBEZIERCLOSESYMBOL:360,GROUPOBJECT:1e3,LINERELATION:1001,INTERFERENCEBEAM:1002,POLYGONREGION:1003,ARCREGION:1004,AIRROUTE:1005,NAVYROUTE:1006,MISSILEROUTE:1007,NAVYDEPLOYMENT:1008,AIRDEPLOYMENT:1009,SATELLITE:1010,SATELLITETIMEWINDOWS:1011,SYMBOLTEXT:1012,RUNWAY:1013,CURVEEIGHT:1014,ROUTENODE:1015,ARROWLINE:1016,PATHTEXT:1017,LITERATESIGN:1018,CONCENTRICCIRCLE:1019,FLAGGROUP:1020,SYMBOLTEXT1:1021,COMBINATIONALCIRCLE:1022,FREECURVE:1023,SYMBOLTEXTBOX:1024,NODECHAIN:1025,LINEMARKING:1026,AVOIDREGION:1027,WIRE:1028};e.SymbolType=a;var s=SuperMap.Plot.LineRelationType={SOLID:0,DASH:1,ARROW:2};e.LineRelationType=s;var r=SuperMap.Plot.AlgoSurroundLineType={NONE:0,INNER:1,OUT:2,ALL:3};e.AlgoSurroundLineType=r;var u=SuperMap.Plot.RouteNodeType={RENDEZVOUS:"RENDEZVOUS",EXPANDING:"EXPANDING",VOLLEY:"VOLLEY",STANDBY:"STANDBY",SUPPLY:"SUPPLY",TAKEOFF:"TAKEOFF",INITIAL:"INITIAL",VISUALINITAL:"VISUALINITAL",LANCH:"LANCH",TURNING:"TURNING",AIMING:"AIMING",COMMONROUTE:"COMMONROUTE",WEAPONLAUNCH:"WEAPONLAUNCH",TARGET:"TARGET",ATTACK:"ATTACK",SUPPRESS:"SUPPRESS",EIGHTSPIRAL:"EIGHTSPIRAL",HAPPYVALLEY:"HAPPYVALLEY"};e.RouteNodeType=u;var p=SuperMap.Plot.RelLineText={ONLINE:0,ONLEFTLINE:1,ONRIGHTLINE:2,ONBOTHLINE:3};e.RelLineText=p;var h=SuperMap.Plot.RadiusLineType={NONE:0,SOLID:1,ARROW:2};e.RadiusLineType=h;var c=SuperMap.Plot.AnnoPosition={LEFTTOP:0,LEFTBOTTOM:1,RIGHTTOP:2,RIGHTBOTTOM:3,TOP:4,BOTTOM:5,LEFT:6,RIGHT:7};e.AnnoPosition=c;var y=SuperMap.Plot.ArrowLineType={DOUBLELINE:0,TRIANGLESOLID:1,NONE:2};e.ArrowLineType=y;var f=SuperMap.Plot.TextBoxType={WITHTIPBOX:0,RECTBOX:1,LINEBOX:2,NONEBOX:3};e.TextBoxType=f;var S=SuperMap.Plot.PositionOffsetType={LINE:0,GRADIENTLINE:1};e.PositionOffsetType=S;var g=SuperMap.Plot.AlignType={LEFT:0,RIGHT:1,UP:2,DOWN:3,VERTICALCENTER:4,HORIZONTALCENTER:5};e.AlignType=g;var P=SuperMap.Plot.EditMode={ADDCONTROLPOINT:0,EDITCONTROLPOINT:1,EDITCIRCUMRECTANGLE:2,REMOVECONTROLPOINT:3};e.EditMode=P,SuperMap.Plot.EqualLargeType={WIDTH:0,HEIGHT:1,SAME:2},SuperMap.Plot.UniformDistributionType={LEVEL:0,VERTICAL:1};var d=SuperMap.Plot.TransactionType={CREATE:0,EDIT:1,REMOVE:2};e.TransactionType=d},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.SuperMap=window.SuperMap=window.SuperMap||{};e.Plot=o.Plot=o.Plot||{}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CalculateSVGGradient=e.CalculateCanvasGradient=e.TransactionInfo=e.Transaction=e.TowardNode=e.TimeWindowParameter=e.SymbolText=e.SubSymbol=e.SMLInfoStruct=e.SitDataStruct=e.RouteNode=e.Property=e.OrbitPoint=e.MapInfoStruct=e.LayerDataStruct=e.ExtendProperty=e.DefaultStyle=e.GetSymbolInfoService=e.GetSymbolInfoParameters=e.GetSMLInfosService=e.GetSMLInfosParameters=e.GetLibInfoService=e.GetLibInfoParameter=e.GetLibIDsService=e.EditSmlFileService=e.EditSmlFileParameters=e.PlotCommonServiceBase=e.GOAnimationType=e.Event=e.EditMode=e.AlignType=e.PositionOffsetType=e.TextBoxType=e.ArrowLineType=e.AnnoPosition=e.RadiusLineType=e.RelLineText=e.RouteNodeType=e.AlgoSurroundLineType=e.LineRelationType=e.SymbolType=e.Plot=void 0;var o=i(164),n=i(163),l=i(162),a=i(160),s=i(158),r=i(152),u=i(136);e.Plot=o.Plot,e.SymbolType=n.SymbolType,e.LineRelationType=n.LineRelationType,e.AlgoSurroundLineType=n.AlgoSurroundLineType,e.RouteNodeType=n.RouteNodeType,e.RelLineText=n.RelLineText,e.RadiusLineType=n.RadiusLineType,e.AnnoPosition=n.AnnoPosition,e.ArrowLineType=n.ArrowLineType,e.TextBoxType=n.TextBoxType,e.PositionOffsetType=n.PositionOffsetType,e.AlignType=n.AlignType,e.EditMode=n.EditMode,e.Event=l.Event,e.GOAnimationType=a.GOAnimationType,e.PlotCommonServiceBase=s.PlotCommonServiceBase,e.EditSmlFileParameters=s.EditSmlFileParameters,e.EditSmlFileService=s.EditSmlFileService,e.GetLibIDsService=s.GetLibIDsService,e.GetLibInfoParameter=s.GetLibInfoParameter,e.GetLibInfoService=s.GetLibInfoService,e.GetSMLInfosParameters=s.GetSMLInfosParameters,e.GetSMLInfosService=s.GetSMLInfosService,e.GetSymbolInfoParameters=s.GetSymbolInfoParameters,e.GetSymbolInfoService=s.GetSymbolInfoService,e.DefaultStyle=r.DefaultStyle,e.ExtendProperty=r.ExtendProperty,e.LayerDataStruct=r.LayerDataStruct,e.MapInfoStruct=r.MapInfoStruct,e.OrbitPoint=r.OrbitPoint,e.Property=r.Property,e.RouteNode=r.RouteNode,e.SitDataStruct=r.SitDataStruct,e.SMLInfoStruct=r.SMLInfoStruct,e.SubSymbol=r.SubSymbol,e.SymbolText=r.SymbolText,e.TimeWindowParameter=r.TimeWindowParameter,e.TowardNode=r.TowardNode,e.Transaction=r.Transaction,e.TransactionInfo=r.TransactionInfo,e.CalculateCanvasGradient=u.CalculateCanvasGradient,e.CalculateSVGGradient=u.CalculateSVGGradient},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resizeLatLngs=e.rotateLatLngs=e.moveLatLngs=e.cloneLatLngs=e.superMapPointsToLatLngs=e.latLngsToSuperMapPoints=e.symbolLibService=e.SymbolLibService=e.symbolInfoService=e.SymbolInfoService=e.smlFileService=e.SMLFileService=e.symbolLibManager=e.SymbolLibManager=e.symbolLib=e.SymbolLib=e.sitDataManager=e.SitDataManager=e.query=void 0,e.Query=e.goAnimationManager=e.GOAnimationManager=e.Plotting=e.geoSymbolText1=e.GeoSymbolText1=e.geoSymbolText=e.GeoSymbolText=e.satelliteTimeWindows=e.SatelliteTimeWindows=e.satellite=e.Satellite=e.lineRelation=e.LineRelation=e.interferenceBeam=e.InterferenceBeam=e.navyRoute=e.NavyRoute=e.missileRoute=e.MissileRoute=e.airRoute=e.AirRoute=e.avoidRegion=e.AvoidRegion=e.airDeployment=e.AirDeployment=e.navyDeployment=e.NavyDeployment=e.flagGroup=e.FlagGroup=e.groupObject=e.GroupObject=e.arcRegion=e.ArcRegion=e.dotSymbol=e.DotSymbol=e.algoSymbol=e.AlgoSymbol=e.GraphicObject=e.PlottingObject=e.editControl=e.PlotEditControl=e.drawControl=e.PlotDrawControl=e.DrawGraphicObject=e.AvoidRegionControl=e.PlotControl=e.GOAnimationWay=e.GOAnimationShow=e.GOAnimationScale=e.GOAnimationRotate=e.GOAnimationGrow=e.GOAnimationBlink=e.GOAnimationAttribute=e.GOAnimation=e.plottingGraphicLayer=e.PlottingGraphicLayer=e.plottingLayer=e.PlottingLayer=e.AlgoSymbolFactory=e.BasicAlgoSymbolFactory=e.AddPoint_WayType=e.Primitives=e.PlottingUtil=e.RouteNodePrimitives=e.AnalysisSymbol=e.CalculateSVGGradient=e.CalculateCanvasGradient=e.Event=e.TowardNode=e.TimeWindowParameter=e.SymbolText=e.SubSymbol=e.SMLInfoStruct=e.SitDataStruct=e.RouteNode=e.Property=e.OrbitPoint=e.MapInfoStruct=e.LayerDataStruct=e.ExtendProperty=e.DefaultStyle=e.GetSymbolInfoParameters=e.GetSMLInfosParameters=e.GetLibInfoParameter=e.EditSmlFileParameters=e.GOAnimationType=e.EditMode=e.AlignType=e.PositionOffsetType=e.TextBoxType=e.ArrowLineType=e.AnnoPosition=e.RadiusLineType=e.RelLineText=e.RouteNodeType=e.AlgoSurroundLineType=e.LineRelationType=e.SymbolType=e.Plot=void 0;var o=i(165),n=i(133),l=i(127),a=i(77),s=i(67),r=i(66),u=i(63),p=i(50),h=i(46),c=i(42);e.Plot=o.Plot,e.SymbolType=o.SymbolType,e.LineRelationType=o.LineRelationType,e.AlgoSurroundLineType=o.AlgoSurroundLineType,e.RouteNodeType=o.RouteNodeType,e.RelLineText=o.RelLineText,e.RadiusLineType=o.RadiusLineType,e.AnnoPosition=o.AnnoPosition,e.ArrowLineType=o.ArrowLineType,e.TextBoxType=o.TextBoxType,e.PositionOffsetType=o.PositionOffsetType,e.AlignType=o.AlignType,e.EditMode=o.EditMode,e.GOAnimationType=o.GOAnimationType,e.EditSmlFileParameters=o.EditSmlFileParameters,e.GetLibInfoParameter=o.GetLibInfoParameter,e.GetSMLInfosParameters=o.GetSMLInfosParameters,e.GetSymbolInfoParameters=o.GetSymbolInfoParameters,e.DefaultStyle=o.DefaultStyle,e.ExtendProperty=o.ExtendProperty,e.LayerDataStruct=o.LayerDataStruct,e.MapInfoStruct=o.MapInfoStruct,e.OrbitPoint=o.OrbitPoint,e.Property=o.Property,e.RouteNode=o.RouteNode,e.SitDataStruct=o.SitDataStruct,e.SMLInfoStruct=o.SMLInfoStruct,e.SubSymbol=o.SubSymbol,e.SymbolText=o.SymbolText,e.TimeWindowParameter=o.TimeWindowParameter,e.TowardNode=o.TowardNode,e.Event=o.Event,e.CalculateCanvasGradient=o.CalculateCanvasGradient,e.CalculateSVGGradient=o.CalculateSVGGradient,e.AnalysisSymbol=n.AnalysisSymbol,e.RouteNodePrimitives=n.RouteNodePrimitives,e.PlottingUtil=n.PlottingUtil,e.Primitives=n.Primitives,e.AddPoint_WayType=n.AddPoint_WayType,e.BasicAlgoSymbolFactory=l.BasicAlgoSymbolFactory,e.AlgoSymbolFactory=l.AlgoSymbolFactory,e.PlottingLayer=a.PlottingLayer,e.plottingLayer=a.plottingLayer,e.PlottingGraphicLayer=a.PlottingGraphicLayer,e.plottingGraphicLayer=a.plottingGraphicLayer,e.GOAnimation=s.GOAnimation,e.GOAnimationAttribute=s.GOAnimationAttribute,e.GOAnimationBlink=s.GOAnimationBlink,e.GOAnimationGrow=s.GOAnimationGrow,e.GOAnimationRotate=s.GOAnimationRotate,e.GOAnimationScale=s.GOAnimationScale,e.GOAnimationShow=s.GOAnimationShow,e.GOAnimationWay=s.GOAnimationWay,e.PlotControl=r.PlotControl,e.AvoidRegionControl=r.AvoidRegionControl,e.DrawGraphicObject=r.DrawGraphicObject,e.PlotDrawControl=r.PlotDrawControl,e.drawControl=r.drawControl,e.PlotEditControl=r.PlotEditControl,e.editControl=r.editControl,e.PlottingObject=u.PlottingObject,e.GraphicObject=u.GraphicObject,e.AlgoSymbol=u.AlgoSymbol,e.algoSymbol=u.algoSymbol,e.DotSymbol=u.DotSymbol,e.dotSymbol=u.dotSymbol,e.ArcRegion=u.ArcRegion,e.arcRegion=u.arcRegion,e.GroupObject=u.GroupObject,e.groupObject=u.groupObject,e.FlagGroup=u.FlagGroup,e.flagGroup=u.flagGroup,e.NavyDeployment=u.NavyDeployment,e.navyDeployment=u.navyDeployment,e.AirDeployment=u.AirDeployment,e.airDeployment=u.airDeployment,e.AvoidRegion=u.AvoidRegion,e.avoidRegion=u.avoidRegion,e.AirRoute=u.AirRoute,e.airRoute=u.airRoute,e.MissileRoute=u.MissileRoute,e.missileRoute=u.missileRoute,e.NavyRoute=u.NavyRoute,e.navyRoute=u.navyRoute,e.InterferenceBeam=u.InterferenceBeam,e.interferenceBeam=u.interferenceBeam,e.LineRelation=u.LineRelation,e.lineRelation=u.lineRelation,e.Satellite=u.Satellite,e.satellite=u.satellite,e.SatelliteTimeWindows=u.SatelliteTimeWindows,e.satelliteTimeWindows=u.satelliteTimeWindows,e.GeoSymbolText=u.GeoSymbolText,e.geoSymbolText=u.geoSymbolText,e.GeoSymbolText1=u.GeoSymbolText1,e.geoSymbolText1=u.geoSymbolText1,e.Plotting=p.Plotting,e.GOAnimationManager=p.GOAnimationManager,e.goAnimationManager=p.goAnimationManager,e.Query=p.Query,e.query=p.query,e.SitDataManager=p.SitDataManager,e.sitDataManager=p.sitDataManager,e.SymbolLib=p.SymbolLib,e.symbolLib=p.symbolLib,e.SymbolLibManager=p.SymbolLibManager,e.symbolLibManager=p.symbolLibManager,e.SMLFileService=h.SMLFileService,e.smlFileService=h.smlFileService,e.SymbolInfoService=h.SymbolInfoService,e.symbolInfoService=h.symbolInfoService,e.SymbolLibService=h.SymbolLibService,e.symbolLibService=h.symbolLibService,e.latLngsToSuperMapPoints=c.latLngsToSuperMapPoints,e.superMapPointsToLatLngs=c.superMapPointsToLatLngs,e.cloneLatLngs=c.cloneLatLngs,e.moveLatLngs=c.moveLatLngs,e.rotateLatLngs=c.rotateLatLngs,e.resizeLatLngs=c.resizeLatLngs}]);
|