8 lines
694 KiB
Vue
8 lines
694 KiB
Vue
|
/*!
|
||
|
*
|
||
|
* iclient9-plot-leaflet.(http://iclient.supermapol.com)
|
||
|
* Copyright© 2000-2017 SuperMap Software Co. Ltd
|
||
|
* version: v9.1.0
|
||
|
*
|
||
|
*/
|
||
|
!function(t){function e(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var i={};e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=139)}([function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var s=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}}(),a=(o(i(11)),o(i(12)),function(){function t(e){n(this,t),this.RTOD=57.29577951308232,this.DTOR=.017453292519943295,this.maxEditPts=0,this.minEditPts=0,this.libID=null,this.code=null,this.symbolType=null,this.symbolName=null,this.isEdit=!1,this.controlPoints=null,this.scalePoints=null,this.scaleValues=null,this.subSymbols=null,this.style=null,this.subSymbolDefaultPixelSize=30,this.map=null,this.graphicObject2D=null,this.components=[],e=e||{},this.controlPoints=[],this.scalePoints=[],this.scaleValues=[],this.subSymbols=[],this.components=[],this.textContent="",this.style=null,SuperMap.Util.extend(this,e),0===this.libID&&null===this.symbolType?this.symbolType=this.code:null===this.symbolType&&(this.symbolType=SuperMap.Plot.SymbolType.ALGOSYMBOL),null===this.subSymbolScaleValue&&(this.subSymbolScaleValue=.1),0!==this.minEditPts&&0!==this.maxEditPts||this.setMinAndMaxEditPts()}return s(t,[{key:"getScaleValues",value:function(){return this.graphicObject2D?this.graphicObject2D.scaleValues:this.scaleValues}},{key:"setScaleValues",value:function(t){this.graphicObject2D?this.graphicObject2D.scaleValues=t:this.scaleValues=t}},{key:"clearScaleValues",value:function(){this.graphicObject2D?this.graphicObject2D.scaleValues=[]:this.scaleValues=[]}},{key:"getSubSymbols",value:function(){return this.graphicObject2D?this.graphicObject2D.subSymbols:this.subSymbols}},{key:"setSubSymbols",value:function(t){this.graphicObject2D?this.graphicObject2D.subSymbols=t:this.subSymbols=t}},{key:"getControlPoints",value:function(){if(this.graphicObject2D&&!this.equalControlPoints()){this.controlPoints=[];for(var t=0;t<this.graphicObject2D.getLatLngs().length;t++)this.controlPoints.push(new SuperMap.Geometry.Point(this.graphicObject2D.getLatLngs()[t].lng,this.graphicObject2D.getLatLngs()[t].lat))}return this.controlPoints}},{key:"setControlPoints",value:function(t){if(this.graphicObject2D){for(var e=[],i=0;i<t.length;i++)e.push(L.latLng(t[i].y,t[i].x));this.graphicObject2D._latLngs=e}else this.controlPoints=t}},{key:"clearControlPoints",value:function(){this.graphicObject2D?this.graphicObject2D._latLngs=[]:this.controlPoints=[]}},{key:"addControlPoints",value:function(t,e){this.graphicObject2D?e<this.graphicObject2D.getLatLngs().length?(this.graphicObject2D._latLngs[e].lat=t.y,this.graphicObject2D._latLngs[e].lng=t.x):this.graphicObject2D._latLngs.push(L.latLng(t.y,t.x)):e<this.controlPoints.length?(this.controlPoints[e].y=t.y,this.controlPoints[e].x=t.x):this.controlPoints.push(t)}},{key:"equalControlPoints",value:function(){if(this.graphicObject2D){if(this.graphicObject2D.getLatLngs().length!==this.controlPoints.length)return!1;for(var t=0;t<this.controlPoints.length;t++)if(this.graphicObject2D.getLatLngs()[t].lat!==this.controlPoints[t].y||this.graphicObject2D.getLatLngs()[t].lng!==this.controlPoints[t].x)return!1;return!0}return!0}},{key:"getIsEdit",value:function(){return this.graphicObject2D?this.graphicObject2D.isEdit:this.isEdit}},{key:"getStyle",value:function(){return this.graphicObject2D?this.graphicObject2D.style:this.style}},{key:"addScalePoint",value:function(t,e){if(t&&null!==t){void 0!==e&&null!=
|