ym-gis-2d 1.0.29 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/capabilities/index.js +1 -1
- package/controls/ControlManager.js +1 -1
- package/controls/LegendControl.js +1 -1
- package/controls/MousePositionControl.js +1 -1
- package/controls/SwipeLayerControl.js +1 -1
- package/conver/kml/geoJSONToKml.js +1 -1
- package/conver/kml/index.js +1 -1
- package/conver/kml/kmlToGeoJSON.js +1 -1
- package/entity/Feature.js +1 -1
- package/entity/GeometryType.js +1 -1
- package/entity/measure/AreaMeasureUnits.js +1 -1
- package/feature/FeatureManager.js +1 -1
- package/index.js +1 -1
- package/interaction/AreaMeasure.js +1 -1
- package/interaction/Draw.js +1 -1
- package/interaction/InteractionManager.js +1 -1
- package/interaction/Select.js +1 -1
- package/layers/ArcgisDynamicLayer.js +1 -1
- package/layers/ArcgisFeatureLayer.js +1 -1
- package/layers/ArcgisTileLayer.js +1 -1
- package/layers/ArcgisWMSLayer.js +1 -1
- package/layers/ArcgisWMTSLayer.js +1 -1
- package/layers/GeoserverVectorTile.js +1 -1
- package/layers/GeoserverWFSLayer.js +1 -1
- package/layers/GeoserverWMSLayer.js +1 -1
- package/layers/GeoserverWMTSLayer.js +1 -1
- package/layers/LayerManager.js +1 -1
- package/layers/TDTLayer.js +1 -1
- package/mapView/Map.js +1 -1
- package/mapView/View.js +1 -1
- package/package.json +1 -1
- package/plot/Plot.js +1 -1
- package/plot/geometry/point/Point.js +1 -1
- package/plot/geometry/polygon/BasePolygon.js +1 -1
- package/plot/geometry/polygon/Circle.js +1 -1
- package/plot/geometry/polygon/Polygon.js +1 -1
- package/plot/geometry/polygon/RectAngle.js +1 -1
- package/plot/geometry/polyline/BaseLine.js +1 -1
- package/plot/geometry/polyline/Polyline.js +1 -1
- package/style/PointStyleFormat.js +1 -1
- package/style/PolygonStyleFormat.js +1 -1
- package/style/PolylineStyleFormat.js +1 -1
- package/style/StyleManager.js +1 -1
- package/style/common.js +1 -1
- package/utils/ArrayUtil.js +1 -1
- package/utils/AxiosUtil.js +1 -1
- package/utils/EsriUtil.js +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/LayerUtil.js +1 -1
- package/utils/RegisterProjUtil.js +1 -1
- package/utils/ResolutionUtil.js +1 -1
- package/utils/StringUtil.js +1 -1
- package/utils/StyleUtil.js +1 -1
- package/utils/UrlUtil.js +1 -1
- package/utils/XmlUtil.js +1 -1
- package/utils/format/CQL.js +1 -1
- package/utils/format/IsMatchCql.js +1 -1
- package/utils/plug/canvas/ImageCache.js +1 -1
- package/utils/plug/canvas/PinBuilder.js +1 -1
- package/utils/plug/canvas/PinIcon.js +1 -1
- package/utils/plug/canvas/writeTextToCanvas.js +1 -1
- package/utils/tasks/esri/Identify.js +1 -1
- package/utils/tasks/esri/Query.js +1 -1
- package/utils/tasks/esri/Task.js +1 -1
- package/utils/tasks/geoserver/QueryTask.js +1 -1
- package/utils/tasks/index.d.ts.map +1 -1
- package/utils/tasks/index.js +1 -1
- package/utils/tasks/index.js.map +1 -1
- package/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a74_0x324d(){const _0x10f0f5=['getFlatMidpoints','context','sin','1273428HyQFYL','color','754158GIXgsD','shadowBlur','1010cGvdtS','getCoordinates','pow','41943prAaYI','moveTo','getGeometry','stroke','glow','3887300gtOAkV','4344072VDpbjG','LineString','length','arrow','save','lineWidth','width','outlineColor','white','strokeStyle','shadowColor','outline','setRenderer','cos','restore','MultiLineString','lineCap','concat','opacity','toString','164KLsYBL','butt','318187AFOtGR','getFlatMidpoint','label','sqrt','setGeometry','push','beginPath','5VslWDd','outlineOpacity','30489NNoLRi','closed','outlineWidth','lineType','getType','lineTo','getFirstCoordinate','billboard','7xtEGmc','show'];a74_0x324d=function(){return _0x10f0f5;};return a74_0x324d();}(function(_0xecbac2,_0x2710d4){const _0x23b986=a74_0x519b,_0x2b59f8=_0xecbac2();while(!![]){try{const _0x514e94=-parseInt(_0x23b986(0x149))/0x1+-parseInt(_0x23b986(0x147))/0x2*(-parseInt(_0x23b986(0x152))/0x3)+parseInt(_0x23b986(0x16b))/0x4*(parseInt(_0x23b986(0x150))/0x5)+-parseInt(_0x23b986(0x161))/0x6+-parseInt(_0x23b986(0x15a))/0x7*(parseInt(_0x23b986(0x16c))/0x8)+parseInt(_0x23b986(0x15f))/0x9+parseInt(_0x23b986(0x163))/0xa*(-parseInt(_0x23b986(0x166))/0xb);if(_0x514e94===_0x2710d4)break;else _0x2b59f8['push'](_0x2b59f8['shift']());}catch(_0x512f33){_0x2b59f8['push'](_0x2b59f8['shift']());}}}(a74_0x324d,0x8c4d9));function a74_0x519b(_0x9a9f08,_0x57c21f){const _0x324d67=a74_0x324d();return a74_0x519b=function(_0x519bc2,_0x26e8d2){_0x519bc2=_0x519bc2-0x13f;let _0x4a8f7d=_0x324d67[_0x519bc2];return _0x4a8f7d;},a74_0x519b(_0x9a9f08,_0x57c21f);}import{createTextStyle,getColor}from'./common';import{Stroke,Style}from'ol/style';import{getImageOlStyle}from'./PointStyleFormat';import{LineString,Point,MultiLineString,MultiPoint}from'ol/geom';export function getPolylineStyle(_0x570a86,_0x4b51ff,_0xe0189a,_0xbae941){const _0x1f1a03=a74_0x519b;var _0x4a490e,_0x4405dd,_0x2b6b5a;let _0x22b541=(_0x4a490e=_0x570a86['zIndex'])!==null&&_0x4a490e!==void 0x0?_0x4a490e:0x0;const _0x36a872=_0x3a1d3c=>{const _0x279513=a74_0x519b;var _0x156d4d=_0x3a1d3c[_0x279513(0x168)]();if(_0x156d4d)return _getRealPolyline(_0x156d4d,_0x570a86);return _0x156d4d;},_0x314d80=_0x1990e5=>{const _0x17ac7e=a74_0x519b;var _0x579134=_0x1990e5[_0x17ac7e(0x168)]();let _0xc8eddd=_0x579134;_0x579134&&(_0xc8eddd=_getRealPolyline(_0x579134,_0x570a86));if(_0xc8eddd&&_0xc8eddd['getType']()===_0x17ac7e(0x16d))return new Point(_0xc8eddd[_0x17ac7e(0x14a)]());else{let _0x4e5b48=_0xc8eddd[_0x17ac7e(0x15c)](),_0x3502cb=0x2,_0x3f873a=[];for(let _0x2fc7b6=0x0,_0x8bf633=_0x4e5b48[_0x17ac7e(0x16e)];_0x2fc7b6<_0x8bf633;_0x2fc7b6+=_0x3502cb){let _0x358ad1=[_0x4e5b48[_0x2fc7b6],_0x4e5b48[_0x2fc7b6+0x1]];_0x3f873a[_0x17ac7e(0x14e)](_0x358ad1);}return new MultiPoint(_0x3f873a);}};let _0xf465a0=new Style({'geometry':_0x36a872,'stroke':new Stroke({'color':getColor(_0x570a86[_0x1f1a03(0x160)],_0x570a86['opacity']),'width':_0x570a86[_0x1f1a03(0x172)]}),'zIndex':_0x22b541}),_0x5f4cb5=[_0xf465a0];if(_0x570a86['lineType']==='dash'){let _0x26c6f1=_0x570a86[_0x1f1a03(0x154)]/0x2,_0x9ce75=new Style({'geometry':_0x36a872,'zIndex':_0x22b541,'stroke':new Stroke({'color':getColor(_0x570a86[_0x1f1a03(0x160)],_0x570a86[_0x1f1a03(0x145)]),'width':_0x570a86[_0x1f1a03(0x172)],'lineCap':'butt','lineDash':[_0x26c6f1,_0x26c6f1]})}),_0x3579af=new Style({'geometry':_0x36a872,'zIndex':_0x22b541+0.5,'stroke':new Stroke({'color':getColor(_0x570a86[_0x1f1a03(0x173)],Number((_0x2b6b5a=(_0x4405dd=_0x570a86[_0x1f1a03(0x151)])!==null&&_0x4405dd!==void 0x0?_0x4405dd:_0x570a86[_0x1f1a03(0x145)])!==null&&_0x2b6b5a!==void 0x0?_0x2b6b5a:0x1)),'width':_0x570a86[_0x1f1a03(0x172)],'lineCap':_0x1f1a03(0x148),'lineDash':[_0x26c6f1,_0x26c6f1],'lineDashOffset':_0x26c6f1})});_0x5f4cb5=[_0x9ce75,_0x3579af];}_0x570a86[_0x1f1a03(0x155)]===_0x1f1a03(0x16f)&&_0xf465a0[_0x1f1a03(0x13f)]((_0x5bf805,_0x23660a)=>{const _0x16c1dd=_0x1f1a03;let _0x4e4e69=_0x23660a['context'],_0x345661=parseInt((_0x570a86['width']/0x4)[_0x16c1dd(0x146)]()),_0x286e6a=0xa,_0x3e9256=Math[_0x16c1dd(0x14c)](Math['pow'](_0x286e6a,0x2)+Math[_0x16c1dd(0x165)](_0x570a86[_0x16c1dd(0x172)]/0x2,0x2)),_0x5e641f=0x2d,_0x35dc6a=_0x5bf805[_0x5bf805[_0x16c1dd(0x16e)]-0x2][0x0],_0x19f919=_0x5bf805[_0x5bf805[_0x16c1dd(0x16e)]-0x2][0x1],_0x15c167=_0x5bf805[_0x5bf805['length']-0x1][0x0],_0x17e065=_0x5bf805[_0x5bf805['length']-0x1][0x1],_0x1c4af5=Math['atan2'](_0x19f919-_0x17e065,_0x35dc6a-_0x15c167)*0xb4/Math['PI'],_0x653cb6=(_0x1c4af5+_0x5e641f)*Math['PI']/0xb4,_0x15ad34=(_0x1c4af5-_0x5e641f)*Math['PI']/0xb4,_0x23eb86=_0x3e9256*Math[_0x16c1dd(0x140)](_0x653cb6),_0x31d319=_0x3e9256*Math['sin'](_0x653cb6),_0x50bcb3=_0x3e9256*Math[_0x16c1dd(0x140)](_0x15ad34),_0x4b82a4=_0x3e9256*Math[_0x16c1dd(0x15e)](_0x15ad34);_0x4e4e69['save'](),_0x4e4e69[_0x16c1dd(0x14f)]();let _0x2d6982,_0x26ff3c;for(let _0x4f431d=0x0;_0x4f431d<_0x5bf805[_0x16c1dd(0x16e)];_0x4f431d++){_0x4f431d===0x0?_0x4e4e69[_0x16c1dd(0x167)](_0x5bf805[_0x4f431d][0x0],_0x5bf805[_0x4f431d][0x1]):_0x4e4e69['lineTo'](_0x5bf805[_0x4f431d][0x0],_0x5bf805[_0x4f431d][0x1]);}_0x4e4e69[_0x16c1dd(0x175)]=getColor(_0x570a86[_0x16c1dd(0x160)],_0x570a86[_0x16c1dd(0x145)]),_0x4e4e69[_0x16c1dd(0x171)]=_0x345661,_0x4e4e69[_0x16c1dd(0x143)]=_0x16c1dd(0x148),_0x4e4e69['stroke'](),_0x2d6982=_0x15c167+_0x23eb86,_0x26ff3c=_0x17e065+_0x31d319,_0x4e4e69[_0x16c1dd(0x167)](_0x2d6982,_0x26ff3c),_0x4e4e69['lineTo'](_0x15c167,_0x17e065),_0x2d6982=_0x15c167+_0x50bcb3,_0x26ff3c=_0x17e065+_0x4b82a4,_0x4e4e69[_0x16c1dd(0x157)](_0x2d6982,_0x26ff3c),_0x4e4e69['lineCap']='butt',_0x4e4e69[_0x16c1dd(0x169)](),_0x4e4e69[_0x16c1dd(0x141)]();});_0x570a86['lineType']===_0x1f1a03(0x16a)&&_0xf465a0[_0x1f1a03(0x13f)]((_0x14accc,_0x2ebc28)=>{const _0x571ff9=_0x1f1a03;let _0x39cc65=_0x2ebc28[_0x571ff9(0x15d)];_0x39cc65[_0x571ff9(0x170)]();for(let _0x28039c=0x0;_0x28039c<0x4;_0x28039c++){let _0x52e157=_0x570a86[_0x571ff9(0x172)]/0xa*(_0x570a86['glowPower']===0x0?0x1:_0x570a86['glowPower']);_0x39cc65[_0x571ff9(0x176)]=getColor(_0x570a86['color'],_0x570a86['opacity']),_0x39cc65[_0x571ff9(0x162)]=_0x570a86['width']/0x5*0x2,_0x39cc65['beginPath']();for(let _0x5d22ae=0x0;_0x5d22ae<_0x14accc[_0x571ff9(0x16e)];_0x5d22ae++){_0x5d22ae===0x0?_0x39cc65['moveTo'](_0x14accc[_0x5d22ae][0x0],_0x14accc[_0x5d22ae][0x1]):_0x39cc65[_0x571ff9(0x157)](_0x14accc[_0x5d22ae][0x0],_0x14accc[_0x5d22ae][0x1]);}_0x39cc65[_0x571ff9(0x143)]=_0x571ff9(0x148),_0x39cc65[_0x571ff9(0x171)]=_0x52e157,_0x39cc65[_0x571ff9(0x175)]=getColor(_0x571ff9(0x174),_0x570a86['opacity']),_0x39cc65[_0x571ff9(0x169)]();}_0x39cc65[_0x571ff9(0x141)]();});_0x570a86[_0x1f1a03(0x155)]===_0x1f1a03(0x177)&&_0xf465a0[_0x1f1a03(0x13f)]((_0x2251af,_0x178a4e)=>{const _0x1f6c74=_0x1f1a03;let _0x5bff0f=_0x178a4e[_0x1f6c74(0x15d)];_0x5bff0f[_0x1f6c74(0x170)](),_0x5bff0f[_0x1f6c74(0x14f)]();for(let _0x590540=0x0;_0x590540<_0x2251af['length'];_0x590540++){_0x590540===0x0?_0x5bff0f[_0x1f6c74(0x167)](_0x2251af[_0x590540][0x0],_0x2251af[_0x590540][0x1]):_0x5bff0f[_0x1f6c74(0x157)](_0x2251af[_0x590540][0x0],_0x2251af[_0x590540][0x1]);}_0x5bff0f[_0x1f6c74(0x143)]=_0x1f6c74(0x148),_0x5bff0f[_0x1f6c74(0x171)]=_0x570a86[_0x1f6c74(0x172)],_0x5bff0f[_0x1f6c74(0x175)]=getColor(_0x570a86['outlineColor'],_0x570a86[_0x1f6c74(0x145)]),_0x5bff0f['stroke'](),_0x5bff0f[_0x1f6c74(0x14f)]();for(let _0x267cb4=0x0;_0x267cb4<_0x2251af[_0x1f6c74(0x16e)];_0x267cb4++){_0x267cb4===0x0?_0x5bff0f[_0x1f6c74(0x167)](_0x2251af[_0x267cb4][0x0],_0x2251af[_0x267cb4][0x1]):_0x5bff0f['lineTo'](_0x2251af[_0x267cb4][0x0],_0x2251af[_0x267cb4][0x1]);}_0x5bff0f['lineCap']=_0x1f6c74(0x148),_0x570a86[_0x1f6c74(0x154)]>=_0x570a86[_0x1f6c74(0x172)]&&(_0x570a86['outlineWidth']=_0x570a86[_0x1f6c74(0x172)]-0x1),_0x5bff0f[_0x1f6c74(0x171)]=_0x570a86[_0x1f6c74(0x172)]-_0x570a86[_0x1f6c74(0x154)],_0x5bff0f[_0x1f6c74(0x175)]=getColor(_0x570a86[_0x1f6c74(0x160)],_0x570a86[_0x1f6c74(0x145)]),_0x5bff0f[_0x1f6c74(0x169)](),_0x5bff0f[_0x1f6c74(0x141)]();});let _0x127d39=getImageOlStyle(_0x570a86[_0x1f1a03(0x159)],_0x22b541,_0xe0189a,_0xbae941);_0x127d39&&(_0x127d39[_0x1f1a03(0x14d)](_0x314d80),_0x5f4cb5[_0x1f1a03(0x14e)](_0x127d39));if(_0x570a86[_0x1f1a03(0x14b)]&&_0x570a86[_0x1f1a03(0x14b)][_0x1f1a03(0x15b)]!==![]){let _0x101298=new Style({'geometry':_0x314d80,'text':createTextStyle(_0x570a86[_0x1f1a03(0x14b)],_0x4b51ff,_0xe0189a,_0xbae941),'zIndex':Number(_0x22b541)+0x1});_0x5f4cb5[_0x1f1a03(0x14e)](_0x101298);}return _0x5f4cb5;}function _getRealPolyline(_0xb9894,_0x3a7a28){const _0x5bab9a=a74_0x519b;if(!(_0x3a7a28===null||_0x3a7a28===void 0x0?void 0x0:_0x3a7a28[_0x5bab9a(0x153)]))return _0xb9894;else{if(_0xb9894[_0x5bab9a(0x156)]()===_0x5bab9a(0x142)){let _0xffc57e=_0xb9894[_0x5bab9a(0x164)]();for(let _0x66b169 in _0xffc57e){let _0x4198eb=_0xffc57e[_0x66b169];_0xffc57e[_0x66b169]=_0x4198eb[_0x5bab9a(0x144)]([_0x4198eb[0x0]]);}return new MultiLineString(_0xffc57e);}else return new LineString(_0xb9894['getCoordinates']()[_0x5bab9a(0x144)]([_0xb9894[_0x5bab9a(0x158)]()]));}}
|
package/style/StyleManager.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1db535,_0x504728){const _0x38e921=a75_0x3d57,_0x17f05e=_0x1db535();while(!![]){try{const _0x1ba525=parseInt(_0x38e921(0x151))/0x1*(parseInt(_0x38e921(0x152))/0x2)+-parseInt(_0x38e921(0x136))/0x3*(-parseInt(_0x38e921(0x13c))/0x4)+parseInt(_0x38e921(0x144))/0x5*(-parseInt(_0x38e921(0x140))/0x6)+-parseInt(_0x38e921(0x14c))/0x7*(-parseInt(_0x38e921(0x141))/0x8)+-parseInt(_0x38e921(0x13d))/0x9*(-parseInt(_0x38e921(0x14f))/0xa)+parseInt(_0x38e921(0x150))/0xb*(parseInt(_0x38e921(0x145))/0xc)+-parseInt(_0x38e921(0x13a))/0xd*(parseInt(_0x38e921(0x146))/0xe);if(_0x1ba525===_0x504728)break;else _0x17f05e['push'](_0x17f05e['shift']());}catch(_0x18144b){_0x17f05e['push'](_0x17f05e['shift']());}}}(a75_0x2eb4,0xc4563));import a75_0x9e7b74 from'ol/style/Circle';import a75_0x440d7c from'ol/style/Fill';import a75_0x10b39f from'ol/style/Stroke';import a75_0x5db10d from'ol/style/Style';function a75_0x3d57(_0x291321,_0x35934a){const _0x2eb4e9=a75_0x2eb4();return a75_0x3d57=function(_0x3d57d9,_0x58d5b0){_0x3d57d9=_0x3d57d9-0x135;let _0x1da42b=_0x2eb4e9[_0x3d57d9];return _0x1da42b;},a75_0x3d57(_0x291321,_0x35934a);}import{createTextStyle,getColor}from'./common';export function getSelectPointStyle(){const _0x5e0202=a75_0x3d57;return new a75_0x5db10d({'image':new a75_0x9e7b74({'radius':0x5,'fill':new a75_0x440d7c({'color':_0x5e0202(0x148)}),'stroke':new a75_0x10b39f({'color':_0x5e0202(0x148),'width':0x1})})});}export function getSelectCancePointStyle(){const _0x32da2b=a75_0x3d57;return new a75_0x5db10d({'image':new a75_0x9e7b74({'radius':0x5,'fill':new a75_0x440d7c({'color':_0x32da2b(0x149)}),'stroke':new a75_0x10b39f({'color':_0x32da2b(0x148),'width':0x1})})});}export function getSelectLineStyle(){const _0x78854e=a75_0x3d57;return new a75_0x5db10d({'stroke':new a75_0x10b39f({'color':_0x78854e(0x148),'width':0x2})});}function a75_0x2eb4(){const _0x889636=['51xOGrJG','Point','rgba(0,\x20255,0,\x201)','outlineWidth','4914FtQzpf','setStroke','237064aKTUBW','9IFcZJX','color','Polygon','6zdrPnC','144YgzJil','setText','setFill','7983320CEMYql','9096FPUQSF','5502aEIGXh','LineString','rgba(121,\x20243,\x20238,\x201)','rgba(121,\x20243,\x20238,\x200)','rgba(0,\x20255,0,\x200)','MultiPolygon','81683VXoxiz','outlineColor','rgba(121,\x20243,\x20238,\x200.3)','372410PDGzSV','12562grKvsw','2ejCaRi','428972kolcVo','text'];a75_0x2eb4=function(){return _0x889636;};return a75_0x2eb4();}export function getSelectCancelLineStyle(){const _0x1ebfbd=a75_0x3d57;return new a75_0x5db10d({'stroke':new a75_0x10b39f({'color':_0x1ebfbd(0x138),'width':0x2})});}export function getSelectPolygonStyle(){const _0x10191f=a75_0x3d57;return new a75_0x5db10d({'stroke':new a75_0x10b39f({'color':_0x10191f(0x148),'width':0x2}),'fill':new a75_0x440d7c({'color':_0x10191f(0x14e)})});}export function getSelectCancelPolygonStyle(){const _0x5498ff=a75_0x3d57;return new a75_0x5db10d({'stroke':new a75_0x10b39f({'color':_0x5498ff(0x138),'width':0x2}),'fill':new a75_0x440d7c({'color':_0x5498ff(0x14a)})});}export function getStyle(_0x1909c5){const _0x1e190b=a75_0x3d57;if(_0x1909c5){const _0x3968ae=new a75_0x5db10d();if(_0x1909c5['text']){const _0x55704d=createTextStyle(_0x1909c5,_0x1909c5[_0x1e190b(0x135)]);_0x55704d&&_0x3968ae[_0x1e190b(0x142)](_0x55704d),_0x3968ae['setZIndex'](0x1);}return _0x1909c5[_0x1e190b(0x14d)]&&_0x3968ae[_0x1e190b(0x13b)](new a75_0x10b39f({'color':getColor(_0x1909c5[_0x1e190b(0x14d)],_0x1909c5['outlineOpacity']),'width':_0x1909c5[_0x1e190b(0x139)]||0x1})),_0x1909c5['color']&&_0x3968ae[_0x1e190b(0x143)](new a75_0x440d7c({'color':getColor(_0x1909c5[_0x1e190b(0x13e)],_0x1909c5['opacity'])})),_0x3968ae;}return new a75_0x5db10d({'stroke':new a75_0x10b39f({'color':_0x1e190b(0x148),'width':0x2}),'fill':new a75_0x440d7c({'color':_0x1e190b(0x14e)})});}export function getSelectStyle(_0x5bef6a){const _0x32b771=a75_0x3d57;let _0x591f5a=getSelectPolygonStyle();switch(_0x5bef6a){case _0x32b771(0x14b):case _0x32b771(0x13f):_0x591f5a=getSelectPolygonStyle();break;case'MultiLineString':case _0x32b771(0x147):_0x591f5a=getSelectLineStyle();break;case'MultiPoint':case _0x32b771(0x137):_0x591f5a=getSelectPointStyle();break;default:break;}return _0x591f5a;}
|
package/style/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a71_0x436e(){const _0x331707=['getResolutionForZoom','haloOpacity','1789222efdUgD','markerColor','168975uxlUvW','distanceDisplayFar','4417qlMhsN','alpha','textAlign','LOADED','normal','textBaseline','haloWidth','load','5031630ngsNNp','color','\x20normal\x20','getView','offsetX','opacity','IDLE','ERROR','size','8484YUckez','5791995lZuKgO','borderLineColor','px\x20','11mYSxLT','backgroundColor','family','middle','#2A2A2A','26459950RoguSj','center','font','target','borderLineWidth','bold','haloColor','1968208fqUxTK','3KVQuPS','distanceDisplayNear','8qjDsex','getImage','italic','weight','borderLineOpacity','image','offsetY'];a71_0x436e=function(){return _0x331707;};return a71_0x436e();}(function(_0x261bc1,_0xa3f59){const _0x501b14=a71_0x2404,_0x4933ea=_0x261bc1();while(!![]){try{const _0x4b599e=parseInt(_0x501b14(0x1e8))/0x1+-parseInt(_0x501b14(0x1e6))/0x2*(parseInt(_0x501b14(0x1db))/0x3)+-parseInt(_0x501b14(0x1da))/0x4+-parseInt(_0x501b14(0x1f2))/0x5+parseInt(_0x501b14(0x1fb))/0x6*(parseInt(_0x501b14(0x1ea))/0x7)+parseInt(_0x501b14(0x1dd))/0x8*(-parseInt(_0x501b14(0x1fc))/0x9)+parseInt(_0x501b14(0x204))/0xa*(parseInt(_0x501b14(0x1ff))/0xb);if(_0x4b599e===_0xa3f59)break;else _0x4933ea['push'](_0x4933ea['shift']());}catch(_0x555675){_0x4933ea['push'](_0x4933ea['shift']());}}}(a71_0x436e,0xa3bc4));import a71_0x48705f from'color';import{Fill,Icon,Stroke,Text}from'ol/style';function a71_0x2404(_0x3e93d4,_0x134e0f){const _0x436e5e=a71_0x436e();return a71_0x2404=function(_0x240428,_0xc7d40e){_0x240428=_0x240428-0x1d7;let _0xffd7d6=_0x436e5e[_0x240428];return _0xffd7d6;},a71_0x2404(_0x3e93d4,_0x134e0f);}import a71_0x3af476 from'../utils/plug/canvas/PinIcon';import a71_0xebda3d from'ol/ImageState';export function isShowStyle(_0x49fdee,_0x556a84,_0x5b7bfd){const _0x4b7e25=a71_0x2404;let _0x1fd5e0=!![];if(_0x556a84==undefined||_0x5b7bfd==undefined)return _0x1fd5e0;if(_0x49fdee&&typeof _0x49fdee['distanceDisplayFar']!=undefined&&typeof _0x49fdee[_0x4b7e25(0x1dc)]!=undefined){if(_0x49fdee['distanceDisplayFar']&&_0x5b7bfd){_0x1fd5e0=![];let _0x4f7059=getLevel(_0x49fdee[_0x4b7e25(0x1e9)]),_0xe72a37=_0x5b7bfd[_0x4b7e25(0x1f5)]()[_0x4b7e25(0x1e4)](_0x4f7059);_0x556a84<_0xe72a37&&(_0x1fd5e0=!![]);}if(_0x1fd5e0&&_0x49fdee[_0x4b7e25(0x1dc)]&&_0x5b7bfd){_0x1fd5e0=![];let _0x32709e=getLevel(_0x49fdee['distanceDisplayNear']),_0x4aaa51=_0x5b7bfd['getView']()[_0x4b7e25(0x1e4)](_0x32709e);_0x556a84>_0x4aaa51&&(_0x1fd5e0=!![]);}}return _0x1fd5e0;}export function getLevel(_0x1d63d6){const _0x312f6b=3252.745,_0x1c0f71=0.0009198301,_0x1701bc=52977.61,_0x6f4f6e=-3228.107;return _0x6f4f6e+(_0x312f6b-_0x6f4f6e)/(0x1+Math['pow'](_0x1d63d6/_0x1701bc,_0x1c0f71));}export function toRadians(_0xa91480){if(_0xa91480)return-(_0xa91480*Math['PI'])/0xb4;return 0x0;}export function createTextStyle(_0x3951ca,_0x1b4d45,_0x5c5a35,_0x3b0bef){const _0x3c0491=a71_0x2404;var _0x486b0b,_0x4869c9,_0x38d4cd,_0x37d5ab,_0x4691a6,_0x11c8ce,_0x8ccb50,_0x329812;if(_0x3951ca){let _0x39c5ff=isShowStyle(_0x3951ca,_0x5c5a35,_0x3b0bef);if(_0x39c5ff===![])return undefined;else{const _0x3f8871=_0x3951ca['font'],_0x45d427=(_0x3f8871===null||_0x3f8871===void 0x0?void 0x0:_0x3f8871['italic'])?_0x3c0491(0x1df):_0x3c0491(0x1ee),_0x34113d=(_0x3f8871===null||_0x3f8871===void 0x0?void 0x0:_0x3f8871[_0x3c0491(0x1e0)])?_0x3c0491(0x1d8):_0x3c0491(0x1ee),_0x477ff7=(_0x3f8871===null||_0x3f8871===void 0x0?void 0x0:_0x3f8871[_0x3c0491(0x1fa)])||'25',_0x3f6a51=(_0x3f8871===null||_0x3f8871===void 0x0?void 0x0:_0x3f8871[_0x3c0491(0x201)])||'楷体';let _0x4e24e1=_0x45d427+_0x3c0491(0x1f4)+_0x34113d+'\x20'+_0x477ff7+_0x3c0491(0x1fe)+_0x3f6a51,_0x3d297a=(_0x3f8871===null||_0x3f8871===void 0x0?void 0x0:_0x3f8871[_0x3c0491(0x1f6)])||0x0,_0x26caa8=(_0x3f8871===null||_0x3f8871===void 0x0?void 0x0:_0x3f8871[_0x3c0491(0x1e3)])||0x0,_0x347737=(_0x3f8871===null||_0x3f8871===void 0x0?void 0x0:_0x3f8871[_0x3c0491(0x1ef)])||_0x3c0491(0x202),_0x324aab=(_0x3f8871===null||_0x3f8871===void 0x0?void 0x0:_0x3f8871[_0x3c0491(0x1ec)])||_0x3c0491(0x205);const _0x42985a=_0x3951ca[_0x3c0491(0x1f7)]||0x1;let _0x44ddde=undefined;return(_0x3f8871===null||_0x3f8871===void 0x0?void 0x0:_0x3f8871['haloColor'])&&(_0x44ddde=_getStroke(_0x3f8871[_0x3c0491(0x1d9)],_0x3f8871[_0x3c0491(0x1e5)],_0x3f8871[_0x3c0491(0x1f0)])),new Text({'overflow':!![],'text':_0x1b4d45,'font':_0x4e24e1,'offsetX':_0x3d297a,'offsetY':_0x26caa8,'textAlign':_0x324aab,'textBaseline':_0x347737,'fill':new Fill({'color':getColor(((_0x486b0b=_0x3951ca[_0x3c0491(0x206)])===null||_0x486b0b===void 0x0?void 0x0:_0x486b0b[_0x3c0491(0x1f3)])||'#000000',_0x42985a)}),'stroke':_0x44ddde,'backgroundFill':((_0x4869c9=_0x3951ca[_0x3c0491(0x206)])===null||_0x4869c9===void 0x0?void 0x0:_0x4869c9[_0x3c0491(0x200)])?new Fill({'color':getColor(((_0x38d4cd=_0x3951ca[_0x3c0491(0x206)])===null||_0x38d4cd===void 0x0?void 0x0:_0x38d4cd[_0x3c0491(0x200)])||_0x3c0491(0x203),((_0x37d5ab=_0x3951ca[_0x3c0491(0x206)])===null||_0x37d5ab===void 0x0?void 0x0:_0x37d5ab['backgroundOpacity'])||0x1)}):undefined,'backgroundStroke':((_0x4691a6=_0x3951ca[_0x3c0491(0x206)])===null||_0x4691a6===void 0x0?void 0x0:_0x4691a6[_0x3c0491(0x1fd)])?_getStroke((_0x11c8ce=_0x3951ca[_0x3c0491(0x206)])===null||_0x11c8ce===void 0x0?void 0x0:_0x11c8ce[_0x3c0491(0x1fd)],((_0x8ccb50=_0x3951ca[_0x3c0491(0x206)])===null||_0x8ccb50===void 0x0?void 0x0:_0x8ccb50[_0x3c0491(0x1e1)])||0x1,((_0x329812=_0x3951ca[_0x3c0491(0x206)])===null||_0x329812===void 0x0?void 0x0:_0x329812[_0x3c0491(0x1d7)])||0x1):undefined});}}else return undefined;}export function getColor(_0x2f6167,_0x4f3376){const _0x32e87c=a71_0x2404;return a71_0x48705f(_0x2f6167)[_0x32e87c(0x1eb)](_0x4f3376!=undefined?_0x4f3376:0x1)['hexa']();}function _getStroke(_0x591b1e,_0x149ffe,_0x1bd48b){return new Stroke({'color':getColor(_0x591b1e,_0x149ffe),'width':_0x1bd48b==undefined?0x1:_0x1bd48b});}export function preLoadImageRenderFunction(_0x508ca6,_0xa30d76,_0x35a7e6,_0x53e744,_0x118328){const _0x478789=a71_0x2404;let _0x9315fa;_0x508ca6[_0x478789(0x1e7)]?_0x9315fa=new a71_0x3af476(_0x508ca6):_0x9315fa=new Icon({'src':_0x508ca6[_0x478789(0x1e2)]});let _0x22e31d=_0x9315fa['getImageState']();_0x22e31d===a71_0xebda3d[_0x478789(0x1ed)]||_0x22e31d===a71_0xebda3d['ERROR']?_0x118328(_0x508ca6,_0xa30d76,_0x35a7e6,_0x53e744,_0x9315fa[_0x478789(0x1de)](0x60)):(_0x22e31d===a71_0xebda3d[_0x478789(0x1f8)]&&_0x9315fa[_0x478789(0x1f1)](),_0x9315fa['listenImageChange'](_0x11b075=>{const _0x6c5fba=_0x478789;_0x22e31d=_0x11b075[_0x6c5fba(0x207)]['getImageState'](),(_0x22e31d===a71_0xebda3d[_0x6c5fba(0x1ed)]||_0x22e31d===a71_0xebda3d[_0x6c5fba(0x1f9)])&&_0x118328(_0x508ca6,_0xa30d76,_0x35a7e6,_0x53e744,_0x9315fa[_0x6c5fba(0x1de)](0x60));}));}
|
package/utils/ArrayUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x471413,_0x46bec4){const _0x15d662=a76_0x9f15,_0x253836=_0x471413();while(!![]){try{const _0x18819f=-parseInt(_0x15d662(0x103))/0x1*(-parseInt(_0x15d662(0xff))/0x2)+-parseInt(_0x15d662(0x109))/0x3*(parseInt(_0x15d662(0xfc))/0x4)+parseInt(_0x15d662(0xfe))/0x5+parseInt(_0x15d662(0x100))/0x6+-parseInt(_0x15d662(0x105))/0x7+parseInt(_0x15d662(0x104))/0x8+-parseInt(_0x15d662(0x106))/0x9;if(_0x18819f===_0x46bec4)break;else _0x253836['push'](_0x253836['shift']());}catch(_0x1519ae){_0x253836['push'](_0x253836['shift']());}}}(a76_0x1217,0xb6625));function a76_0x9f15(_0xc5276e,_0xe9cd9e){const _0x121766=a76_0x1217();return a76_0x9f15=function(_0x9f15b3,_0x2232b6){_0x9f15b3=_0x9f15b3-0xfc;let _0x234d90=_0x121766[_0x9f15b3];return _0x234d90;},a76_0x9f15(_0xc5276e,_0xe9cd9e);}export function getDeepth(_0x1e575b){function _0x3f9d1f(_0xbef1c2,_0x711da9){const _0x1fcfae=a76_0x9f15;return _0xbef1c2[_0x1fcfae(0x10a)](function(_0x207e67,_0x1055df){var _0x125fd5;return Array['isArray'](_0x1055df)&&(_0x125fd5=_0x3f9d1f(_0x1055df,_0x711da9+0x1)),_0x125fd5>_0x207e67?_0x125fd5:_0x207e67;},_0x711da9);}return _0x3f9d1f(_0x1e575b,0x1);}export function compareArray(_0x3190d1,_0x3d4d48){const _0x4063a1=a76_0x9f15;if(_0x3190d1['length']!==_0x3d4d48[_0x4063a1(0x108)])return![];const _0x267941=_0x3190d1[_0x4063a1(0x108)];for(let _0xd3ac65=0x0;_0xd3ac65<_0x267941;_0xd3ac65++){if(!compare(_0x3190d1[_0xd3ac65],_0x3d4d48[_0xd3ac65]))return![];}return!![];}export function compare(_0xcb7fcd,_0x4ea097){const _0x2116d3=a76_0x9f15;if(_0xcb7fcd===_0x4ea097)return!![];if(typeof _0xcb7fcd!==typeof _0x4ea097||_0xcb7fcd===null||_0x4ea097===null)return![];if(Array[_0x2116d3(0x102)](_0xcb7fcd)){if(!Array[_0x2116d3(0x102)](_0x4ea097))return![];return compareArray(_0xcb7fcd,_0x4ea097);}if(typeof _0xcb7fcd===_0x2116d3(0x107))return compareObject(_0xcb7fcd,_0x4ea097);return![];}export function compareObject(_0x5148fb,_0xb7f772){const _0x44ef8a=a76_0x9f15,_0x73253d=Object[_0x44ef8a(0xfd)](_0x5148fb),_0x5b60b3=Object['keys'](_0xb7f772);if(_0x73253d[_0x44ef8a(0x108)]!==_0x5b60b3[_0x44ef8a(0x108)])return![];return _0x73253d[_0x44ef8a(0x101)](_0x53003d=>{if(!compare(_0x5148fb[_0x53003d],_0xb7f772[_0x53003d]))return![];return!![];});}function a76_0x1217(){const _0x580bb1=['3698256ebKcWE','every','isArray','97673cPHGjA','5606352wrSBdw','3624138rPGQHy','11146554tXLWsw','object','length','219oxUjQs','reduce','1864NjTAEw','keys','5123935bDVWaD','4BlWnaj'];a76_0x1217=function(){return _0x580bb1;};return a76_0x1217();}
|
package/utils/AxiosUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a77_0x5a52(_0x552dc2,_0x59fc3d){const _0x3209b8=a77_0x3209();return a77_0x5a52=function(_0x5a52c0,_0x13721f){_0x5a52c0=_0x5a52c0-0x193;let _0x148fb2=_0x3209b8[_0x5a52c0];return _0x148fb2;},a77_0x5a52(_0x552dc2,_0x59fc3d);}const a77_0x3cde08=a77_0x5a52;function a77_0x3209(){const _0x211af=['161JFJgTq','257515WbyDJU','constructor','445NwrfOz','22456KvDGUB','stringify','16464ejlNKS','jsonp','hasOwnProperty','append','4655832AFkpRy','17113844nCoFIs','45hWYzWe','85125Hredbp','364670cqXeMH','4SyTTny','create','get'];a77_0x3209=function(){return _0x211af;};return a77_0x3209();}(function(_0x2f6f1a,_0x4a558e){const _0x336845=a77_0x5a52,_0x285b53=_0x2f6f1a();while(!![]){try{const _0x34618f=parseInt(_0x336845(0x1a0))/0x1+parseInt(_0x336845(0x19c))/0x2*(parseInt(_0x336845(0x19a))/0x3)+-parseInt(_0x336845(0x1a3))/0x4*(parseInt(_0x336845(0x1a2))/0x5)+-parseInt(_0x336845(0x197))/0x6+parseInt(_0x336845(0x19f))/0x7*(parseInt(_0x336845(0x193))/0x8)+-parseInt(_0x336845(0x199))/0x9*(parseInt(_0x336845(0x19b))/0xa)+parseInt(_0x336845(0x198))/0xb;if(_0x34618f===_0x4a558e)break;else _0x285b53['push'](_0x285b53['shift']());}catch(_0x4a9415){_0x285b53['push'](_0x285b53['shift']());}}}(a77_0x3209,0x702ba));import a77_0x1a8f47 from'axios';import a77_0x5add00 from'jquery';const request=a77_0x1a8f47[a77_0x3cde08(0x19d)]({'timeout':0xb4*0x3e8});export function jsonp(_0x24b240){return new Promise((_0x572d59,_0x303b45)=>{const _0xdcda5e=a77_0x5a52;a77_0x5add00['ajax']({'url':_0x24b240,'type':_0xdcda5e(0x19e),'dataType':_0xdcda5e(0x194),'success':_0x2e3b63=>{_0x572d59(_0x2e3b63);},'error':_0x4ca05d=>{_0x303b45(_0x4ca05d);}});});}export function stringify(_0x356b92){const _0x1b3c2e=a77_0x3cde08,_0x1a8020=new FormData();for(const _0x1c9d4d in _0x356b92){if(_0x356b92[_0x1b3c2e(0x195)](_0x1c9d4d)){if(_0x356b92[_0x1c9d4d]){if(_0x356b92[_0x1c9d4d]['constructor']===Array)_0x356b92[_0x1c9d4d][0x0]?_0x356b92[_0x1c9d4d][0x0][_0x1b3c2e(0x1a1)]===Object?_0x1a8020[_0x1b3c2e(0x196)](_0x1c9d4d,JSON[_0x1b3c2e(0x1a4)](_0x356b92[_0x1c9d4d])):_0x356b92[_0x1c9d4d]['forEach']((_0x2b6ea4,_0x382296)=>{_0x1a8020['append'](_0x1c9d4d+('['+_0x382296+']'),_0x2b6ea4);}):_0x1a8020[_0x1b3c2e(0x196)](_0x1c9d4d+'[]','');else _0x356b92[_0x1c9d4d][_0x1b3c2e(0x1a1)]===Object?_0x1a8020[_0x1b3c2e(0x196)](_0x1c9d4d,JSON[_0x1b3c2e(0x1a4)](_0x356b92[_0x1c9d4d])):_0x1a8020['append'](_0x1c9d4d,_0x356b92[_0x1c9d4d]);}else _0x356b92[_0x1c9d4d]===0x0?_0x1a8020['append'](_0x1c9d4d,'0'):_0x1a8020['append'](_0x1c9d4d,'');}}return _0x1a8020;}export default request;
|
package/utils/EsriUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a78_0x269c(_0x1ff608,_0x5e94f0){const _0x2590a4=a78_0x2590();return a78_0x269c=function(_0x269c06,_0x10f63b){_0x269c06=_0x269c06-0xfd;let _0x5939e1=_0x2590a4[_0x269c06];return _0x5939e1;},a78_0x269c(_0x1ff608,_0x5e94f0);}(function(_0x8cda41,_0x483920){const _0x151809=a78_0x269c,_0x4e3445=_0x8cda41();while(!![]){try{const _0x3ca59d=parseInt(_0x151809(0x106))/0x1*(-parseInt(_0x151809(0x101))/0x2)+parseInt(_0x151809(0xfd))/0x3+parseInt(_0x151809(0x104))/0x4+-parseInt(_0x151809(0xff))/0x5*(parseInt(_0x151809(0x103))/0x6)+parseInt(_0x151809(0x107))/0x7*(parseInt(_0x151809(0x109))/0x8)+-parseInt(_0x151809(0xfe))/0x9+parseInt(_0x151809(0x105))/0xa;if(_0x3ca59d===_0x483920)break;else _0x4e3445['push'](_0x4e3445['shift']());}catch(_0x17c084){_0x4e3445['push'](_0x4e3445['shift']());}}}(a78_0x2590,0x20e4d));function a78_0x2590(){const _0x3c4513=['replace','8NHAEZi','149499trYanf','524556UPXJfn','187735eEIsgR','toUpperCase','574FGhnbK','EPSG:','6xbwZcD','412804ssoOjk','2195400dQoHiE','923HGaBJm','860237mVzfNH'];a78_0x2590=function(){return _0x3c4513;};return a78_0x2590();}export function getEsriSpatialReference(_0x36a1c9){const _0x371560=a78_0x269c;let _0x55a621;if(_0x36a1c9){let _0x5e47a3=_0x36a1c9[_0x371560(0x100)]();_0x5e47a3['indexOf'](_0x371560(0x102))===0x0?_0x55a621=_0x36a1c9[_0x371560(0x108)]('EPSG:',''):_0x55a621=_0x36a1c9;}return _0x55a621;}
|
package/utils/GeometryUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a81_0x2906f7=a81_0x109b;(function(_0x2ab8a3,_0x4937fb){const _0x397fae=a81_0x109b,_0x1d0b8e=_0x2ab8a3();while(!![]){try{const _0x3bdd70=parseInt(_0x397fae(0x10f))/0x1*(parseInt(_0x397fae(0x119))/0x2)+-parseInt(_0x397fae(0xf3))/0x3+-parseInt(_0x397fae(0xea))/0x4*(-parseInt(_0x397fae(0xf4))/0x5)+-parseInt(_0x397fae(0xfc))/0x6*(-parseInt(_0x397fae(0xed))/0x7)+parseInt(_0x397fae(0x116))/0x8*(parseInt(_0x397fae(0x112))/0x9)+-parseInt(_0x397fae(0x11c))/0xa*(-parseInt(_0x397fae(0x10a))/0xb)+parseInt(_0x397fae(0xfe))/0xc*(-parseInt(_0x397fae(0xf8))/0xd);if(_0x3bdd70===_0x4937fb)break;else _0x1d0b8e['push'](_0x1d0b8e['shift']());}catch(_0xcce64f){_0x1d0b8e['push'](_0x1d0b8e['shift']());}}}(a81_0x3a83,0x1c421));import a81_0x12b49f from'ol/proj/Projection';import{getCenter}from'ol/extent';import{distance as a81_0x14d32b}from'ol/coordinate';import{getGeoProjection,isSpheroid,registerProj}from'./RegisterProjUtil';import{getLength as a81_0x11d542,getArea as a81_0x410296}from'ol/sphere';import a81_0x4031d2 from'jsts/org/locationtech/jts/operation/buffer/BufferOp.js';import a81_0x316138 from'jsts/org/locationtech/jts/operation/relate/RelateOp.js';import a81_0x1bc3f8 from'jsts/org/locationtech/jts/operation/overlay/OverlayOp';import a81_0x89e844 from'jsts/org/locationtech/jts/io/OL3Parser.js';import a81_0x2114cc from'jsts/org/locationtech/jts/operation/polygonize/Polygonizer.js';import a81_0x4c5484 from'jsts/org/locationtech/jts/operation/distance/DistanceOp';import a81_0x56478b from'ol/format/GeoJSON';import{Circle,LineString,MultiLineString,MultiPoint,MultiPolygon,Point,LinearRing,Polygon,GeometryCollection}from'ol/geom.js';import{fromCircle}from'ol/geom/Polygon';import a81_0x5796df from'ol/format/WKT';function a81_0x3a83(){const _0x1d825d=['difference','794835yBEDXP','write','distance','无法识别的数据类型','8srISat','getPixelFromCoordinate','union','126586hibJZM','getLength','read','397130WCUpBR','some','string','44VrnmEl','transform','intersection','152159lNVDYK','writeGeometry','add','getExtent','MultiPolygon','inject','454038CXqfQO','75995pZPTes','forEach','未找到投影信息','getInteriorPoint','1555151lHUihn','error','getType','intersects','6Fqrerx','_holes','36wBdVTD','bufferOp','array','push','getExteriorRing','Polygon','clone','length','getArea','crosses','readGeometry','getLineStrings','44MinPem','getCoordinates','getCoordinateFromPixel','Point','contains','3YsKwnn','map'];a81_0x3a83=function(){return _0x1d825d;};return a81_0x3a83();}import a81_0x2ddae4 from'ol/format/EsriJSON';function a81_0x109b(_0x371487,_0x5b8d78){const _0x3a83cb=a81_0x3a83();return a81_0x109b=function(_0x109bbb,_0x5d02ee){_0x109bbb=_0x109bbb-0xea;let _0x50b7e0=_0x3a83cb[_0x109bbb];return _0x50b7e0;},a81_0x109b(_0x371487,_0x5b8d78);}const _parser=new a81_0x89e844(undefined,undefined);_parser[a81_0x2906f7(0xf2)](Point,LineString,LinearRing,Polygon,MultiPoint,MultiLineString,MultiPolygon,GeometryCollection);export function getArea(_0x41c3a4,_0xa758f8,_0x57e189=![]){const _0x138e93=a81_0x2906f7;if(!_0x41c3a4)return 0x0;if(typeof _0xa758f8==_0x138e93(0x11e)){let _0x58178a=registerProj(_0xa758f8);if(_0x58178a==null)return console[_0x138e93(0xf9)](_0x138e93(0xf6)),0x0;_0xa758f8=_0x58178a;}const _0x41a6ef=isSpheroid(_0xa758f8);if(_0x57e189)return a81_0x410296(_0x41c3a4,{'projection':_0xa758f8});else{if(_0x41a6ef){const _0x1a53f6=getGeoProjection(_0x41c3a4,_0xa758f8);return _0x41c3a4[_0x138e93(0x104)]()[_0x138e93(0xeb)](_0xa758f8,_0x1a53f6)[_0x138e93(0x106)]();}return _0x41c3a4[_0x138e93(0x106)]();}}export function getLength(_0x4d6cce,_0x1d9822,_0x194797=![]){const _0x1dbb84=a81_0x2906f7;if(!_0x4d6cce)return 0x0;if(typeof _0x1d9822=='string'){let _0x37df09=registerProj(_0x1d9822);if(_0x37df09==null)return console['error'](_0x1dbb84(0xf6)),0x0;_0x1d9822=_0x37df09;}const _0x3300dd=isSpheroid(_0x1d9822);if(_0x194797)return a81_0x11d542(_0x4d6cce,{'projection':_0x1d9822});else{let _0x5bd741=_0x4d6cce;if(_0x3300dd){const _0x233b88=getGeoProjection(_0x4d6cce,_0x1d9822);_0x5bd741=_0x4d6cce[_0x1dbb84(0x104)]()[_0x1dbb84(0xeb)](_0x1d9822,_0x233b88);}if(_0x5bd741 instanceof LineString)return _0x5bd741[_0x1dbb84(0x11a)]();else{let _0x3b2a99=0x0;for(let _0x2bed39=0x0;_0x2bed39<_0x5bd741[_0x1dbb84(0x109)]()[_0x1dbb84(0x105)];_0x2bed39++){_0x3b2a99+=_0x5bd741['getLineStrings']()[_0x2bed39][_0x1dbb84(0x11a)]();}return _0x3b2a99;}}}export function bufferOp(_0x113681,_0x310b47){const _0x34798f=a81_0x2906f7,_0x35824d=_parser[_0x34798f(0x11b)](_0x113681),_0x2d2077=a81_0x4031d2[_0x34798f(0xff)](_0x35824d,_0x310b47);return _parser['write'](_0x2d2077);}export function bufferPixel(_0x34bc17,_0x5caf33,_0x37378a){const _0x3aef1b=a81_0x2906f7,_0x39dfa5=_0x37378a[_0x3aef1b(0x117)](_0x34bc17[_0x3aef1b(0x10b)]()),_0x10256f=_0x37378a[_0x3aef1b(0x10c)]([_0x39dfa5[0x0]+_0x5caf33,_0x39dfa5[0x1]]),_0x461ae8=a81_0x14d32b(_0x34bc17['getCoordinates'](),_0x10256f),_0x5939d3=bufferOp(_0x34bc17,_0x461ae8);return _0x5939d3;}export function contains(_0x77e240,_0xe5916f){const _0x387d89=a81_0x2906f7,_0x433f9b=_parser[_0x387d89(0x11b)](_0x77e240),_0x1baaff=_parser[_0x387d89(0x11b)](_0xe5916f);return a81_0x316138[_0x387d89(0x10e)](_0x433f9b,_0x1baaff);}export function crosses(_0x3cd77d,_0x179d97){const _0x3a5773=a81_0x2906f7,_0x52adce=_parser[_0x3a5773(0x11b)](_0x3cd77d),_0x1d6369=_parser['read'](_0x179d97);return a81_0x316138[_0x3a5773(0x107)](_0x52adce,_0x1d6369);}export function intersects(_0x501792,_0x148c66){const _0x79f528=a81_0x2906f7,_0x1d0687=_parser['read'](_0x501792),_0x6d3965=_parser['read'](_0x148c66);return a81_0x316138[_0x79f528(0xfb)](_0x1d0687,_0x6d3965);}export function intersection(_0x4764ca,_0xae7417){const _0x4afa0b=a81_0x2906f7,_0x32e28e=_parser[_0x4afa0b(0x11b)](_0x4764ca),_0x32974c=_parser[_0x4afa0b(0x11b)](_0xae7417);return _parser[_0x4afa0b(0x113)](a81_0x1bc3f8[_0x4afa0b(0xec)](_0x32e28e,_0x32974c));}export function union(_0x92ca28,_0x4ca955){const _0x26a308=a81_0x2906f7,_0x1fbdac=_parser['read'](_0x92ca28),_0x4dad2e=_parser[_0x26a308(0x11b)](_0x4ca955);return _parser[_0x26a308(0x113)](a81_0x1bc3f8['union'](_0x1fbdac,_0x4dad2e));}export function difference(_0xccc45e,_0x3f288c){const _0x35c2d7=a81_0x2906f7,_0x8726a4=_parser[_0x35c2d7(0x11b)](_0xccc45e),_0x1d82aa=_parser[_0x35c2d7(0x11b)](_0x3f288c);return _parser[_0x35c2d7(0x113)](a81_0x1bc3f8[_0x35c2d7(0x111)](_0x8726a4,_0x1d82aa));}export function distance(_0x8237bd,_0x282c15){const _0x56dc43=a81_0x2906f7,_0x533ad3=_parser[_0x56dc43(0x11b)](_0x8237bd),_0x5220d8=_parser[_0x56dc43(0x11b)](_0x282c15);return _parser[_0x56dc43(0x113)](a81_0x4c5484[_0x56dc43(0x114)](_0x533ad3,_0x5220d8));}export function jstlSplit(_0x2062da,_0x2005d6){const _0x574482=a81_0x2906f7,_0x18da58=_parser['read'](_0x2062da),_0x414244=_parser[_0x574482(0x11b)](_0x2005d6),_0x585117=_0x18da58['getGeometryType']();let _0x2e41b7=[];function _0x25e9b0(_0x503545,_0x2c6910){const _0x3365f6=_0x574482;let _0x576534=_0x503545[_0x3365f6(0xfd)],_0x1095b2=_0x503545[_0x3365f6(0x102)]()[_0x3365f6(0x118)](_0x2c6910),_0x1956fc=new a81_0x2114cc();_0x1956fc[_0x3365f6(0xef)](_0x1095b2);let _0x5048e5=_0x1956fc['getPolygons']();_0x5048e5['array'][_0x3365f6(0x105)]==0x2&&_0x5048e5[_0x3365f6(0x100)][_0x3365f6(0xf5)](_0xfc56=>{const _0x5941c0=_0x3365f6;_0x576534[_0x5941c0(0xf5)](_0x21257e=>{const _0x473361=_0x5941c0;let _0x17c976=[];for(let _0x3c78a0 in _0x21257e[_0x473361(0x10b)]()){_0x17c976[_0x473361(0x101)]([_0x21257e[_0x473361(0x10b)]()[_0x3c78a0]['x'],_0x21257e[_0x473361(0x10b)]()[_0x3c78a0]['y']]);}_0x21257e=_parser[_0x473361(0x11b)]({'coordinates':[_0x17c976],'type':_0x473361(0x103)}),_0xfc56=_0xfc56[_0x473361(0x111)](_0x21257e);}),_0x2e41b7[_0x5941c0(0x101)](_parser[_0x5941c0(0x113)](_0xfc56));});}if(_0x585117===_0x574482(0x103))_0x25e9b0(_0x18da58,_0x414244);else{if(_0x585117===_0x574482(0xf1))_0x18da58['_geometries']['forEach']((_0xc97b18,_0xdca476)=>{_0x25e9b0(_0xc97b18,_0x414244);});else throw new Error(_0x574482(0x115));}return _0x2e41b7;}export function fromWKT(_0x208807,_0x10d243,_0x53b690){const _0x2b3394=a81_0x2906f7,_0x4e72d2=new a81_0x5796df();_0x10d243&®isterProj(_0x10d243);_0x53b690&®isterProj(_0x53b690);const _0x483c07=_0x4e72d2[_0x2b3394(0x108)](_0x208807);if(isGeometryEmpty(_0x483c07))return null;return _0x10d243&&_0x53b690?_0x483c07[_0x2b3394(0xeb)](new a81_0x12b49f({'code':_0x10d243}),new a81_0x12b49f({'code':_0x53b690})):_0x483c07;}export function fromWKTs(_0x2861c0,_0x54c3bc,_0xa2858b){const _0x46908f=a81_0x2906f7,_0x552c80=new a81_0x5796df();let _0x515356=[];_0x54c3bc&®isterProj(_0x54c3bc);_0xa2858b&®isterProj(_0xa2858b);let _0x4044f3,_0x24f6ab;_0x54c3bc&&_0xa2858b&&(_0x4044f3=new a81_0x12b49f({'code':_0x54c3bc}),_0x24f6ab=new a81_0x12b49f({'code':_0xa2858b}));for(let _0x1e6338=0x0;_0x1e6338<_0x2861c0[_0x46908f(0x105)];_0x1e6338++){const _0x2a26d9=_0x552c80[_0x46908f(0x108)](_0x2861c0[_0x1e6338]);if(isGeometryEmpty(_0x2a26d9))continue;_0x4044f3&&_0x24f6ab?_0x515356[_0x46908f(0x101)](_0x2a26d9[_0x46908f(0xeb)](_0x4044f3,_0x24f6ab)):_0x515356['push'](_0x2a26d9);}return _0x515356;}export function toWKT(_0x5101cc){const _0x1c1964=new a81_0x5796df();if(isGeometryEmpty(_0x5101cc))return'';if(_0x5101cc instanceof Circle){const _0x198b78=fromCircle(_0x5101cc);return _0x1c1964['writeGeometry'](_0x198b78);}else return _0x1c1964['writeGeometry'](_0x5101cc);}export function toGeoJSON(_0x4e17d9){const _0x458682=a81_0x2906f7,_0x65e5c=new a81_0x56478b();return _0x65e5c[_0x458682(0xee)](_0x4e17d9);}export function fromGeoJSON(_0xc0aacd){const _0x2bc5bf=a81_0x2906f7,_0x4df2c2=new a81_0x56478b();return _0x4df2c2[_0x2bc5bf(0x108)](_0xc0aacd);}export function toEsriJSON(_0x3e22ac){const _0x7267b=a81_0x2906f7,_0x5b0194=new a81_0x2ddae4();return _0x5b0194[_0x7267b(0xee)](_0x3e22ac);}export function fromEsriJSON(_0x2e67c7){const _0x4eb37a=a81_0x2906f7,_0x81f023=new a81_0x2ddae4();return _0x81f023[_0x4eb37a(0x108)](_0x2e67c7);}export function expandExtent(_0x1ac971,_0x322869){const _0x3ffd89=_0x1ac971[0x0],_0x215a14=_0x1ac971[0x1],_0x31d2f1=_0x1ac971[0x2],_0x145808=_0x1ac971[0x3],_0x1925e6=(_0x3ffd89+_0x31d2f1)/0x2,_0x331306=(_0x215a14+_0x145808)/0x2,_0x2f8817=_0x31d2f1-_0x3ffd89,_0x3fa3be=_0x145808-_0x215a14,_0x2045f1=_0x2f8817*_0x322869,_0x5bdf9c=_0x3fa3be*_0x322869,_0x267aa1=_0x1925e6-_0x2045f1/0x2,_0x1dcc13=_0x1925e6+_0x2045f1/0x2,_0x3969e4=_0x331306-_0x5bdf9c/0x2,_0x2d4ff3=_0x331306+_0x5bdf9c/0x2;return[_0x267aa1,_0x3969e4,_0x1dcc13,_0x2d4ff3];}export function isGeometryEmpty(_0x328c0a){const _0x1e4215=a81_0x2906f7;if(!_0x328c0a)return!![];if(_0x328c0a instanceof Point||_0x328c0a instanceof MultiPoint){const _0x20bae1=_0x328c0a[_0x1e4215(0x10b)]();return!_0x20bae1||_0x20bae1[_0x1e4215(0x11d)](_0x5649a2=>isNaN(_0x5649a2));}else{if(_0x328c0a instanceof LineString||_0x328c0a instanceof MultiLineString)return _0x328c0a['getCoordinates']()[_0x1e4215(0x105)]<0x2;else{if(_0x328c0a instanceof Polygon){const _0xc4ebd0=_0x328c0a[_0x1e4215(0x10b)]();return!_0xc4ebd0||_0xc4ebd0['length']===0x0||_0xc4ebd0[0x0][_0x1e4215(0x105)]<0x4;}else{if(_0x328c0a instanceof MultiPolygon){const _0x45d602=_0x328c0a[_0x1e4215(0x10b)]();return!_0x45d602||_0x45d602[_0x1e4215(0x105)]===0x0||_0x45d602[0x0][0x0][_0x1e4215(0x105)]<0x4;}}}}return![];}export function polygonToLines(_0x5ddb0e){const _0x5badf3=a81_0x2906f7;if(!_0x5ddb0e)return[];const _0x3172b6=_0x5ddb0e['getLinearRings']();return _0x3172b6[_0x5badf3(0x110)](_0x2adfe9=>new LineString(_0x2adfe9[_0x5badf3(0x10b)]()));}export function getGeometryCenter(_0x552f1a){const _0x2a75b1=a81_0x2906f7;if(!_0x552f1a)return undefined;const _0x2a32bc=_0x552f1a[_0x2a75b1(0xfa)]();if(_0x2a32bc===_0x2a75b1(0x10d))return new Point(_0x552f1a[_0x2a75b1(0x10b)]());if(_0x2a32bc===_0x2a75b1(0x103)||_0x2a32bc===_0x2a75b1(0xf1))return _0x552f1a[_0x2a75b1(0xf7)]();const _0x5a1c7c=getCenter(_0x552f1a[_0x2a75b1(0xf0)]());return new Point(_0x5a1c7c);}
|
|
1
|
+
const a81_0x4f02b5=a81_0x11db;(function(_0x45dcbe,_0x19ad55){const _0x1efc40=a81_0x11db,_0x4ee2b8=_0x45dcbe();while(!![]){try{const _0x15981b=parseInt(_0x1efc40(0x1d4))/0x1*(-parseInt(_0x1efc40(0x1c2))/0x2)+-parseInt(_0x1efc40(0x1d6))/0x3+parseInt(_0x1efc40(0x1b0))/0x4+parseInt(_0x1efc40(0x1bb))/0x5+-parseInt(_0x1efc40(0x1b7))/0x6+parseInt(_0x1efc40(0x1d8))/0x7*(parseInt(_0x1efc40(0x1be))/0x8)+parseInt(_0x1efc40(0x1c4))/0x9;if(_0x15981b===_0x19ad55)break;else _0x4ee2b8['push'](_0x4ee2b8['shift']());}catch(_0xe07827){_0x4ee2b8['push'](_0x4ee2b8['shift']());}}}(a81_0x6360,0x19884));import a81_0x5326cf from'ol/proj/Projection';import{getCenter}from'ol/extent';import{distance as a81_0x55b15b}from'ol/coordinate';import{getGeoProjection,isSpheroid,registerProj}from'./RegisterProjUtil';import{getLength as a81_0x11fce5,getArea as a81_0x5ca14a}from'ol/sphere';import a81_0x2194b9 from'jsts/org/locationtech/jts/operation/buffer/BufferOp.js';import a81_0x3fd01c from'jsts/org/locationtech/jts/operation/relate/RelateOp.js';import a81_0x1b3a83 from'jsts/org/locationtech/jts/operation/overlay/OverlayOp';import a81_0xa41e61 from'jsts/org/locationtech/jts/io/OL3Parser.js';import a81_0xd8cab2 from'jsts/org/locationtech/jts/operation/polygonize/Polygonizer.js';import a81_0x555710 from'jsts/org/locationtech/jts/operation/distance/DistanceOp';import a81_0x1a50d8 from'ol/format/GeoJSON';import{Circle,LineString,MultiLineString,MultiPoint,MultiPolygon,Point,LinearRing,Polygon,GeometryCollection}from'ol/geom.js';import{fromCircle}from'ol/geom/Polygon';import a81_0x1e74d2 from'ol/format/WKT';import a81_0x5cf481 from'ol/format/EsriJSON';const _parser=new a81_0xa41e61(undefined,undefined);_parser[a81_0x4f02b5(0x1d1)](Point,LineString,LinearRing,Polygon,MultiPoint,MultiLineString,MultiPolygon,GeometryCollection);export function getArea(_0x5f61ee,_0x46d549,_0x1a2b7b=![]){const _0x37eb83=a81_0x4f02b5;if(!_0x5f61ee)return 0x0;if(typeof _0x46d549==_0x37eb83(0x1c6)){let _0x5341ad=registerProj(_0x46d549);if(_0x5341ad==null)return console[_0x37eb83(0x1da)]('未找到投影信息'),0x0;_0x46d549=_0x5341ad;}const _0xc53054=isSpheroid(_0x46d549);if(_0x1a2b7b)return a81_0x5ca14a(_0x5f61ee,{'projection':_0x46d549});else{if(_0xc53054){const _0x144868=getGeoProjection(_0x5f61ee,_0x46d549);return _0x5f61ee[_0x37eb83(0x1b2)]()[_0x37eb83(0x1bf)](_0x46d549,_0x144868)[_0x37eb83(0x1c1)]();}return _0x5f61ee[_0x37eb83(0x1c1)]();}}export function getLength(_0x1af197,_0xb0fd7f,_0x4ee040=![]){const _0x5585fa=a81_0x4f02b5;if(!_0x1af197)return 0x0;if(typeof _0xb0fd7f==_0x5585fa(0x1c6)){let _0x473952=registerProj(_0xb0fd7f);if(_0x473952==null)return console['error'](_0x5585fa(0x1ce)),0x0;_0xb0fd7f=_0x473952;}const _0x25e44b=isSpheroid(_0xb0fd7f);if(_0x4ee040)return a81_0x11fce5(_0x1af197,{'projection':_0xb0fd7f});else{let _0x66c7ea=_0x1af197;if(_0x25e44b){const _0x43d148=getGeoProjection(_0x1af197,_0xb0fd7f);_0x66c7ea=_0x1af197[_0x5585fa(0x1b2)]()['transform'](_0xb0fd7f,_0x43d148);}if(_0x66c7ea instanceof LineString)return _0x66c7ea[_0x5585fa(0x1c9)]();else{let _0x401817=0x0;for(let _0x439043=0x0;_0x439043<_0x66c7ea[_0x5585fa(0x1cb)]()[_0x5585fa(0x1d0)];_0x439043++){_0x401817+=_0x66c7ea[_0x5585fa(0x1cb)]()[_0x439043][_0x5585fa(0x1c9)]();}return _0x401817;}}}export function bufferOp(_0xe3b3c5,_0x310a65){const _0x13991f=a81_0x4f02b5,_0x2fb041=_parser[_0x13991f(0x1bc)](_0xe3b3c5),_0x36baa5=a81_0x2194b9[_0x13991f(0x1c0)](_0x2fb041,_0x310a65);return _parser[_0x13991f(0x1dd)](_0x36baa5);}export function bufferPixel(_0x27ebe3,_0x1bb227,_0x3928a8){const _0x2c6c3a=a81_0x4f02b5,_0x373e0d=_0x3928a8[_0x2c6c3a(0x1b4)](_0x27ebe3['getCoordinates']()),_0x59f6cb=_0x3928a8[_0x2c6c3a(0x1ba)]([_0x373e0d[0x0]+_0x1bb227,_0x373e0d[0x1]]),_0x5d6e12=a81_0x55b15b(_0x27ebe3['getCoordinates'](),_0x59f6cb),_0x18ba02=bufferOp(_0x27ebe3,_0x5d6e12);return _0x18ba02;}export function contains(_0x52c699,_0x348565){const _0x3cb913=a81_0x4f02b5,_0x3e22ef=_parser[_0x3cb913(0x1bc)](_0x52c699),_0x4aa951=_parser[_0x3cb913(0x1bc)](_0x348565);return a81_0x3fd01c[_0x3cb913(0x1dc)](_0x3e22ef,_0x4aa951);}export function crosses(_0x3e71df,_0x476e47){const _0x36c67c=a81_0x4f02b5,_0xed83ea=_parser[_0x36c67c(0x1bc)](_0x3e71df),_0x42cb69=_parser[_0x36c67c(0x1bc)](_0x476e47);return a81_0x3fd01c[_0x36c67c(0x1db)](_0xed83ea,_0x42cb69);}export function intersects(_0xfab407,_0x56e381){const _0xf4fc99=a81_0x4f02b5,_0x35c486=_parser[_0xf4fc99(0x1bc)](_0xfab407),_0x5b71d2=_parser['read'](_0x56e381);return a81_0x3fd01c['intersects'](_0x35c486,_0x5b71d2);}export function intersection(_0x225782,_0x49cfe1){const _0x5974d7=a81_0x4f02b5,_0x43cdd5=_parser[_0x5974d7(0x1bc)](_0x225782),_0x4d6cc9=_parser[_0x5974d7(0x1bc)](_0x49cfe1);return _parser[_0x5974d7(0x1dd)](a81_0x1b3a83[_0x5974d7(0x1b8)](_0x43cdd5,_0x4d6cc9));}export function union(_0x1ef008,_0x357b62){const _0xfd8e12=a81_0x4f02b5,_0x444a1e=_parser[_0xfd8e12(0x1bc)](_0x1ef008),_0x33f612=_parser[_0xfd8e12(0x1bc)](_0x357b62);return _parser[_0xfd8e12(0x1dd)](a81_0x1b3a83[_0xfd8e12(0x1c7)](_0x444a1e,_0x33f612));}export function difference(_0x406e7e,_0x1abce9){const _0x70cce7=a81_0x4f02b5,_0x506600=_parser[_0x70cce7(0x1bc)](_0x406e7e),_0x468e92=_parser[_0x70cce7(0x1bc)](_0x1abce9);return _parser['write'](a81_0x1b3a83[_0x70cce7(0x1b6)](_0x506600,_0x468e92));}export function distance(_0x5bef7a,_0x45d3af){const _0x27fbf2=a81_0x4f02b5,_0x3dc5c9=_parser[_0x27fbf2(0x1bc)](_0x5bef7a),_0x1b1836=_parser[_0x27fbf2(0x1bc)](_0x45d3af);return _parser['write'](a81_0x555710[_0x27fbf2(0x1c8)](_0x3dc5c9,_0x1b1836));}export function jstlSplit(_0x2117e0,_0x191138){const _0x3e00f1=a81_0x4f02b5,_0x4d32a0=_parser['read'](_0x2117e0),_0x347ac9=_parser[_0x3e00f1(0x1bc)](_0x191138),_0x15fc1a=_0x4d32a0['getGeometryType']();let _0x4c92aa=[];function _0x3fe360(_0x411a65,_0xa6104f){const _0x4e9c9e=_0x3e00f1;let _0x1f6da2=_0x411a65[_0x4e9c9e(0x1cf)],_0x139ba9=_0x411a65[_0x4e9c9e(0x1b1)]()[_0x4e9c9e(0x1c7)](_0xa6104f),_0x155178=new a81_0xd8cab2();_0x155178[_0x4e9c9e(0x1d7)](_0x139ba9);let _0x23c924=_0x155178[_0x4e9c9e(0x1d3)]();_0x23c924[_0x4e9c9e(0x1c3)]['length']==0x2&&_0x23c924[_0x4e9c9e(0x1c3)][_0x4e9c9e(0x1b5)](_0x26e056=>{const _0xc9a400=_0x4e9c9e;_0x1f6da2['forEach'](_0x5e950e=>{const _0x57f76d=a81_0x11db;let _0x30b747=[];for(let _0x41de1a in _0x5e950e[_0x57f76d(0x1af)]()){_0x30b747[_0x57f76d(0x1cc)]([_0x5e950e[_0x57f76d(0x1af)]()[_0x41de1a]['x'],_0x5e950e[_0x57f76d(0x1af)]()[_0x41de1a]['y']]);}_0x5e950e=_parser['read']({'coordinates':[_0x30b747],'type':_0x57f76d(0x1b9)}),_0x26e056=_0x26e056[_0x57f76d(0x1b6)](_0x5e950e);}),_0x4c92aa[_0xc9a400(0x1cc)](_parser[_0xc9a400(0x1dd)](_0x26e056));});}if(_0x15fc1a===_0x3e00f1(0x1b9))_0x3fe360(_0x4d32a0,_0x347ac9);else{if(_0x15fc1a===_0x3e00f1(0x1d5))_0x4d32a0['_geometries'][_0x3e00f1(0x1b5)]((_0x3a8647,_0x1d93de)=>{_0x3fe360(_0x3a8647,_0x347ac9);});else throw new Error(_0x3e00f1(0x1c5));}return _0x4c92aa;}export function fromWKT(_0x47fc8e,_0x1c3065,_0x56ee37){const _0x564775=a81_0x4f02b5,_0x47745b=new a81_0x1e74d2();_0x1c3065&®isterProj(_0x1c3065);_0x56ee37&®isterProj(_0x56ee37);const _0x2790b9=_0x47745b['readGeometry'](_0x47fc8e);if(isGeometryEmpty(_0x2790b9))return null;return _0x1c3065&&_0x56ee37?_0x2790b9[_0x564775(0x1bf)](new a81_0x5326cf({'code':_0x1c3065}),new a81_0x5326cf({'code':_0x56ee37})):_0x2790b9;}function a81_0x11db(_0x66ea37,_0x158fbf){const _0x6360a=a81_0x6360();return a81_0x11db=function(_0x11db5c,_0x1ba7e5){_0x11db5c=_0x11db5c-0x1ae;let _0x2d44da=_0x6360a[_0x11db5c];return _0x2d44da;},a81_0x11db(_0x66ea37,_0x158fbf);}export function fromWKTs(_0x30a9ba,_0xef05d4,_0xb22f8f){const _0x45c6f2=a81_0x4f02b5,_0x593f25=new a81_0x1e74d2();let _0x1178ee=[];_0xef05d4&®isterProj(_0xef05d4);_0xb22f8f&®isterProj(_0xb22f8f);let _0x1f2ea9,_0x5a701a;_0xef05d4&&_0xb22f8f&&(_0x1f2ea9=new a81_0x5326cf({'code':_0xef05d4}),_0x5a701a=new a81_0x5326cf({'code':_0xb22f8f}));for(let _0x515d79=0x0;_0x515d79<_0x30a9ba[_0x45c6f2(0x1d0)];_0x515d79++){const _0x46a05b=_0x593f25[_0x45c6f2(0x1bd)](_0x30a9ba[_0x515d79]);if(isGeometryEmpty(_0x46a05b))continue;_0x1f2ea9&&_0x5a701a?_0x1178ee[_0x45c6f2(0x1cc)](_0x46a05b[_0x45c6f2(0x1bf)](_0x1f2ea9,_0x5a701a)):_0x1178ee[_0x45c6f2(0x1cc)](_0x46a05b);}return _0x1178ee;}export function toWKT(_0x249c7f){const _0x446279=a81_0x4f02b5,_0x2cdb87=new a81_0x1e74d2();if(isGeometryEmpty(_0x249c7f))return'';if(_0x249c7f instanceof Circle){const _0x4a85e9=fromCircle(_0x249c7f);return _0x2cdb87[_0x446279(0x1d2)](_0x4a85e9);}else return _0x2cdb87[_0x446279(0x1d2)](_0x249c7f);}export function toGeoJSON(_0x702da){const _0xf6d66b=a81_0x4f02b5,_0x7ef946=new a81_0x1a50d8();return _0x7ef946[_0xf6d66b(0x1d2)](_0x702da);}export function fromGeoJSON(_0xc0b5f0){const _0x345a4a=a81_0x4f02b5,_0x17ec65=new a81_0x1a50d8();return _0x17ec65[_0x345a4a(0x1bd)](_0xc0b5f0);}export function toEsriJSON(_0x4758a3){const _0x59ceb7=a81_0x4f02b5,_0xcae2c4=new a81_0x5cf481();return _0xcae2c4[_0x59ceb7(0x1d2)](_0x4758a3);}export function fromEsriJSON(_0x465d45){const _0x4baaf6=a81_0x4f02b5,_0x212bb3=new a81_0x5cf481();return _0x212bb3[_0x4baaf6(0x1bd)](_0x465d45);}export function expandExtent(_0x36fe3f,_0x4d841e){const _0x5634c6=_0x36fe3f[0x0],_0x5913ee=_0x36fe3f[0x1],_0x394483=_0x36fe3f[0x2],_0x59f0d1=_0x36fe3f[0x3],_0x155260=(_0x5634c6+_0x394483)/0x2,_0x3a4ace=(_0x5913ee+_0x59f0d1)/0x2,_0x5b39ed=_0x394483-_0x5634c6,_0x5d1250=_0x59f0d1-_0x5913ee,_0x3cd454=_0x5b39ed*_0x4d841e,_0x8ae022=_0x5d1250*_0x4d841e,_0xbe072e=_0x155260-_0x3cd454/0x2,_0x1de63d=_0x155260+_0x3cd454/0x2,_0x123e7e=_0x3a4ace-_0x8ae022/0x2,_0x2e25a8=_0x3a4ace+_0x8ae022/0x2;return[_0xbe072e,_0x123e7e,_0x1de63d,_0x2e25a8];}export function isGeometryEmpty(_0x21ceea){const _0x200d83=a81_0x4f02b5;if(!_0x21ceea)return!![];if(_0x21ceea instanceof Point||_0x21ceea instanceof MultiPoint){const _0x5a2fb7=_0x21ceea['getCoordinates']();return!_0x5a2fb7||_0x5a2fb7[_0x200d83(0x1ae)](_0x26ceae=>isNaN(_0x26ceae));}else{if(_0x21ceea instanceof LineString||_0x21ceea instanceof MultiLineString)return _0x21ceea['getCoordinates']()['length']<0x2;else{if(_0x21ceea instanceof Polygon){const _0x561869=_0x21ceea[_0x200d83(0x1af)]();return!_0x561869||_0x561869[_0x200d83(0x1d0)]===0x0||_0x561869[0x0][_0x200d83(0x1d0)]<0x4;}else{if(_0x21ceea instanceof MultiPolygon){const _0xd29c93=_0x21ceea['getCoordinates']();return!_0xd29c93||_0xd29c93['length']===0x0||_0xd29c93[0x0][0x0][_0x200d83(0x1d0)]<0x4;}}}}return![];}function a81_0x6360(){const _0x363482=['543912XzwrJC','getExteriorRing','clone','getLinearRings','getPixelFromCoordinate','forEach','difference','580110aAnOVA','intersection','Polygon','getCoordinateFromPixel','422940RSEVYv','read','readGeometry','2040sIMdsn','transform','bufferOp','getArea','72izessX','array','375255FNwosT','无法识别的数据类型','string','union','distance','getLength','map','getLineStrings','push','getExtent','未找到投影信息','_holes','length','inject','writeGeometry','getPolygons','3464DRcrIc','MultiPolygon','25371rWquFA','add','1981DENSwp','getInteriorPoint','error','crosses','contains','write','some','getCoordinates'];a81_0x6360=function(){return _0x363482;};return a81_0x6360();}export function polygonToLines(_0x4d40da){const _0x5d6130=a81_0x4f02b5;if(!_0x4d40da)return[];const _0x1d3e32=_0x4d40da[_0x5d6130(0x1b3)]();return _0x1d3e32[_0x5d6130(0x1ca)](_0x3ff773=>new LineString(_0x3ff773[_0x5d6130(0x1af)]()));}export function getGeometryCenter(_0x265f0e){const _0x17d188=a81_0x4f02b5;if(!_0x265f0e)return undefined;const _0x53e761=_0x265f0e['getType']();if(_0x53e761==='Point')return new Point(_0x265f0e['getCoordinates']());if(_0x53e761===_0x17d188(0x1b9)||_0x53e761==='MultiPolygon')return _0x265f0e[_0x17d188(0x1d9)]();const _0x2f9ef2=getCenter(_0x265f0e[_0x17d188(0x1cd)]());return new Point(_0x2f9ef2);}
|
package/utils/LayerUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x741797,_0x315c70){const _0x1a475d=a82_0x37c1,_0x2d8214=_0x741797();while(!![]){try{const _0x86df42=parseInt(_0x1a475d(0x1ee))/0x1+-parseInt(_0x1a475d(0x1f0))/0x2*(-parseInt(_0x1a475d(0x1d4))/0x3)+parseInt(_0x1a475d(0x1df))/0x4*(-parseInt(_0x1a475d(0x1d1))/0x5)+parseInt(_0x1a475d(0x1d8))/0x6*(parseInt(_0x1a475d(0x1e7))/0x7)+parseInt(_0x1a475d(0x1e4))/0x8+parseInt(_0x1a475d(0x1d3))/0x9*(-parseInt(_0x1a475d(0x1d7))/0xa)+-parseInt(_0x1a475d(0x1f1))/0xb*(parseInt(_0x1a475d(0x1e0))/0xc);if(_0x86df42===_0x315c70)break;else _0x2d8214['push'](_0x2d8214['shift']());}catch(_0xa4971a){_0x2d8214['push'](_0x2d8214['shift']());}}}(a82_0x38af,0x716c2));import a82_0x543c27 from'../utils/AxiosUtil';function a82_0x38af(){const _0x4e4c90=['url','2609728XOBBOS','Legend','sort','21NYzLgy','includes','assign','replace','&format=application/json','forEach','length','131898oZdUqg','service=WMS&version=1.1.0&request=GetLegendGraphic&layer=','46OyJDhW','594PVfRAo','get','sublayers','10KMJcLG','wms','8667FSgCzC','75366jHaCRr','&format=image/png','parentId','2320vHWaHH','575004BUsKvV','&height=','data','showIndex','&width=','push','title','450488oRyDXf','91152Zobdoy','children','geoserver'];a82_0x38af=function(){return _0x4e4c90;};return a82_0x38af();}export function mapServiceTreeTransform(_0x15502f){const _0x15aaba=a82_0x37c1;let _0xee5859=[];return _0x15502f&&_0x15502f[_0x15aaba(0x1ed)]>0x0&&(_0x15502f[_0x15aaba(0x1ec)](_0x120d80=>{const _0x26f1bd=_0x15aaba;(!_0x120d80['parentId']||_0x120d80[_0x26f1bd(0x1d6)]=='')&&_0xee5859['push'](Object[_0x26f1bd(0x1e9)]({},_0x120d80));}),_0xee5859=_0xee5859['sort']((_0x1ef82c,_0x5d57a2)=>{const _0x51eee0=_0x15aaba;return(_0x1ef82c[_0x51eee0(0x1db)]?_0x1ef82c['showIndex']:0x0)-(_0x5d57a2['showIndex']?_0x5d57a2[_0x51eee0(0x1db)]:0x0);}),_0xee5859[_0x15aaba(0x1ec)](_0x5b8b8a=>{const _0x10590a=_0x15aaba;_0x5b8b8a[_0x10590a(0x1e1)]=setChildren(_0x5b8b8a['id'],_0x15502f);})),_0xee5859;}function setChildren(_0x4c4935,_0x57644f){const _0x5615ff=a82_0x37c1;let _0x2822ca=[];return _0x57644f[_0x5615ff(0x1ec)](_0x941c3a=>{const _0x158688=_0x5615ff;_0x4c4935===(_0x941c3a['parentId']==null?'':_0x941c3a[_0x158688(0x1d6)])&&_0x2822ca[_0x158688(0x1dd)](Object[_0x158688(0x1e9)]({},_0x941c3a));}),_0x2822ca=_0x2822ca[_0x5615ff(0x1e6)]((_0x5e3f61,_0x5c6256)=>{const _0x1a90fc=_0x5615ff;return(_0x5e3f61[_0x1a90fc(0x1db)]?_0x5e3f61[_0x1a90fc(0x1db)]:0x0)-(_0x5c6256['showIndex']?_0x5c6256[_0x1a90fc(0x1db)]:0x0);}),_0x2822ca[_0x5615ff(0x1ed)]>0x0&&_0x2822ca[_0x5615ff(0x1ec)](_0xca1003=>{const _0x51a327=_0x5615ff;_0xca1003[_0x51a327(0x1e1)]=setChildren(_0xca1003['id'],_0x57644f);}),_0x2822ca;}function a82_0x37c1(_0x1cb9ca,_0x42b325){const _0x38afa2=a82_0x38af();return a82_0x37c1=function(_0x37c15e,_0x4666e8){_0x37c15e=_0x37c15e-0x1d1;let _0x3029dc=_0x38afa2[_0x37c15e];return _0x3029dc;},a82_0x37c1(_0x1cb9ca,_0x42b325);}export async function getLayerLegend(_0x37c1f2,_0x573b96){const _0x4d8ce9=a82_0x37c1;if(!_0x37c1f2||!_0x37c1f2[_0x4d8ce9(0x1e3)]||!_0x37c1f2[_0x4d8ce9(0x1f3)]||_0x37c1f2[_0x4d8ce9(0x1f3)][_0x4d8ce9(0x1ed)]==0x0||!_0x37c1f2['layerType'])return;if(_0x37c1f2['layerType']['indexOf'](_0x4d8ce9(0x1e2))>-0x1)return await getGeoServerLayerLegend(_0x37c1f2,_0x573b96);return;}export async function getGeoServerLayerLegend(_0x3a1415,_0x4f4247){const _0x383f09=a82_0x37c1;if(!_0x3a1415||!_0x3a1415[_0x383f09(0x1e3)]||!_0x3a1415[_0x383f09(0x1f3)]||_0x3a1415[_0x383f09(0x1f3)][_0x383f09(0x1ed)]==0x0)return;let _0x3d680d=_0x3a1415[_0x383f09(0x1e3)];const _0x4cd8ef=_0x3a1415['sublayers'];_0x3d680d=_0x3d680d[_0x383f09(0x1ea)]('gwc/service/wmts',_0x383f09(0x1d2));const _0x50f247=[];for(let _0x1e781c=0x0;_0x1e781c<_0x4cd8ef[_0x383f09(0x1ed)];_0x1e781c++){const _0x1d2835=_0x4cd8ef[_0x1e781c];let _0x2b1016=_0x383f09(0x1ef)+_0x1d2835+_0x383f09(0x1eb);const _0x5a6dd0=_0x3d680d['includes']('?')?_0x3d680d+'&'+_0x2b1016:_0x3d680d+'?'+_0x2b1016,_0x45c325=await a82_0x543c27[_0x383f09(0x1f2)](_0x5a6dd0);if(_0x45c325[_0x383f09(0x1da)]&&_0x45c325['data'][_0x383f09(0x1e5)]&&_0x45c325[_0x383f09(0x1da)][_0x383f09(0x1e5)]['length']>0x0)_0x50f247[_0x383f09(0x1dd)](_0x45c325['data'][_0x383f09(0x1e5)][0x0]);else{let _0x1e0ff4=_0x4f4247?_0x4f4247:0x10,_0x2fc584=_0x383f09(0x1ef)+_0x1d2835+_0x383f09(0x1dc)+_0x1e0ff4+_0x383f09(0x1d9)+_0x1e0ff4+_0x383f09(0x1d5);const _0x3031d1=_0x3d680d[_0x383f09(0x1e8)]('?')?_0x3d680d+'&'+_0x2fc584:_0x3d680d+'?'+_0x2fc584;_0x50f247[_0x383f09(0x1dd)]({'title':_0x3a1415[_0x383f09(0x1de)],'url':_0x3031d1});}}return _0x50f247;}
|