ym-gis-2d 1.0.21 → 1.0.22
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/LegendControl.js.map +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/feature/FeatureManager.js +1 -1
- package/index.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.js +1 -1
- package/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x23359d,_0x375cf0){const _0x37973f=a65_0xf59e,_0x13c524=_0x23359d();while(!![]){try{const _0x242903=parseInt(_0x37973f(0x1ad))/0x1+-parseInt(_0x37973f(0x1ab))/0x2*(parseInt(_0x37973f(0x1b3))/0x3)+-parseInt(_0x37973f(0x1a4))/0x4+-parseInt(_0x37973f(0x1c3))/0x5*(-parseInt(_0x37973f(0x1bc))/0x6)+parseInt(_0x37973f(0x1c2))/0x7*(-parseInt(_0x37973f(0x1a3))/0x8)+-parseInt(_0x37973f(0x1ce))/0x9+-parseInt(_0x37973f(0x1bf))/0xa*(-parseInt(_0x37973f(0x1ba))/0xb);if(_0x242903===_0x375cf0)break;else _0x13c524['push'](_0x13c524['shift']());}catch(_0x2b6d93){_0x13c524['push'](_0x13c524['shift']());}}}(a65_0x2294,0x3cb52));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(_0x517299,_0x50169d,_0x34c537,_0x50bcd5){const _0x4d6e92=a65_0xf59e;var _0x403ab0,_0x5ee8ec,_0x3cf23b;let _0x4d6de5=(_0x403ab0=_0x517299[_0x4d6e92(0x1c0)])!==null&&_0x403ab0!==void 0x0?_0x403ab0:0x0;const _0x18a568=_0x1f0ed4=>{const _0x19daed=_0x4d6e92;var _0xf71f30=_0x1f0ed4[_0x19daed(0x19f)]();if(_0xf71f30)return _getRealPolyline(_0xf71f30,_0x517299);return _0xf71f30;},_0x363da2=_0xe14cb4=>{const _0x4bd32e=_0x4d6e92;var _0x6fc765=_0xe14cb4[_0x4bd32e(0x19f)]();let _0x5d8f53=_0x6fc765;_0x6fc765&&(_0x5d8f53=_getRealPolyline(_0x6fc765,_0x517299));if(_0x5d8f53&&_0x5d8f53[_0x4bd32e(0x1a0)]()===_0x4bd32e(0x1a2))return new Point(_0x5d8f53[_0x4bd32e(0x19b)]());else{let _0x26b6c7=_0x5d8f53['getFlatMidpoints'](),_0x417fe3=0x2,_0x2e0f72=[];for(let _0x4cac78=0x0,_0x1e1f79=_0x26b6c7[_0x4bd32e(0x1aa)];_0x4cac78<_0x1e1f79;_0x4cac78+=_0x417fe3){let _0x598935=[_0x26b6c7[_0x4cac78],_0x26b6c7[_0x4cac78+0x1]];_0x2e0f72[_0x4bd32e(0x1a6)](_0x598935);}return new MultiPoint(_0x2e0f72);}};let _0x38556b=new Style({'geometry':_0x18a568,'stroke':new Stroke({'color':getColor(_0x517299['color'],_0x517299[_0x4d6e92(0x1c7)]),'width':_0x517299[_0x4d6e92(0x1c6)]}),'zIndex':_0x4d6de5}),_0x21d8e4=[_0x38556b];if(_0x517299[_0x4d6e92(0x1bb)]===_0x4d6e92(0x19c)){let _0x51ba4f=_0x517299[_0x4d6e92(0x1a5)]/0x2,_0x2cfc42=new Style({'geometry':_0x18a568,'zIndex':_0x4d6de5,'stroke':new Stroke({'color':getColor(_0x517299[_0x4d6e92(0x1b7)],_0x517299[_0x4d6e92(0x1c7)]),'width':_0x517299[_0x4d6e92(0x1c6)],'lineCap':'butt','lineDash':[_0x51ba4f,_0x51ba4f]})}),_0xa53fb2=new Style({'geometry':_0x18a568,'zIndex':_0x4d6de5+0.5,'stroke':new Stroke({'color':getColor(_0x517299[_0x4d6e92(0x1cb)],Number((_0x3cf23b=(_0x5ee8ec=_0x517299['outlineOpacity'])!==null&&_0x5ee8ec!==void 0x0?_0x5ee8ec:_0x517299[_0x4d6e92(0x1c7)])!==null&&_0x3cf23b!==void 0x0?_0x3cf23b:0x1)),'width':_0x517299['width'],'lineCap':_0x4d6e92(0x1c4),'lineDash':[_0x51ba4f,_0x51ba4f],'lineDashOffset':_0x51ba4f})});_0x21d8e4=[_0x2cfc42,_0xa53fb2];}_0x517299[_0x4d6e92(0x1bb)]===_0x4d6e92(0x19e)&&_0x38556b['setRenderer']((_0x5306e7,_0x456d3a)=>{const _0x4abe3b=_0x4d6e92;let _0xff7f8c=_0x456d3a[_0x4abe3b(0x1b6)],_0x12ea7c=parseInt((_0x517299[_0x4abe3b(0x1c6)]/0x4)[_0x4abe3b(0x1c9)]()),_0x1365a9=0xa,_0x442064=Math['sqrt'](Math[_0x4abe3b(0x1a7)](_0x1365a9,0x2)+Math[_0x4abe3b(0x1a7)](_0x517299[_0x4abe3b(0x1c6)]/0x2,0x2)),_0x20aec2=0x2d,_0x320022=_0x5306e7[_0x5306e7[_0x4abe3b(0x1aa)]-0x2][0x0],_0x4a233d=_0x5306e7[_0x5306e7['length']-0x2][0x1],_0x1cf090=_0x5306e7[_0x5306e7[_0x4abe3b(0x1aa)]-0x1][0x0],_0x4b615f=_0x5306e7[_0x5306e7[_0x4abe3b(0x1aa)]-0x1][0x1],_0x3a538d=Math[_0x4abe3b(0x1c1)](_0x4a233d-_0x4b615f,_0x320022-_0x1cf090)*0xb4/Math['PI'],_0x585b4b=(_0x3a538d+_0x20aec2)*Math['PI']/0xb4,_0x47b970=(_0x3a538d-_0x20aec2)*Math['PI']/0xb4,_0x596549=_0x442064*Math['cos'](_0x585b4b),_0x1cadae=_0x442064*Math[_0x4abe3b(0x1a1)](_0x585b4b),_0x57dcdc=_0x442064*Math[_0x4abe3b(0x19d)](_0x47b970),_0x3eb84f=_0x442064*Math[_0x4abe3b(0x1a1)](_0x47b970);_0xff7f8c['save'](),_0xff7f8c[_0x4abe3b(0x1af)]();let _0x2c3797,_0x5c6bd2;for(let _0x838293=0x0;_0x838293<_0x5306e7['length'];_0x838293++){_0x838293===0x0?_0xff7f8c['moveTo'](_0x5306e7[_0x838293][0x0],_0x5306e7[_0x838293][0x1]):_0xff7f8c['lineTo'](_0x5306e7[_0x838293][0x0],_0x5306e7[_0x838293][0x1]);}_0xff7f8c['strokeStyle']=getColor(_0x517299[_0x4abe3b(0x1b7)],_0x517299[_0x4abe3b(0x1c7)]),_0xff7f8c[_0x4abe3b(0x1bd)]=_0x12ea7c,_0xff7f8c[_0x4abe3b(0x1ac)]=_0x4abe3b(0x1c4),_0xff7f8c['stroke'](),_0x2c3797=_0x1cf090+_0x596549,_0x5c6bd2=_0x4b615f+_0x1cadae,_0xff7f8c['moveTo'](_0x2c3797,_0x5c6bd2),_0xff7f8c['lineTo'](_0x1cf090,_0x4b615f),_0x2c3797=_0x1cf090+_0x57dcdc,_0x5c6bd2=_0x4b615f+_0x3eb84f,_0xff7f8c[_0x4abe3b(0x19a)](_0x2c3797,_0x5c6bd2),_0xff7f8c[_0x4abe3b(0x1ac)]='butt',_0xff7f8c[_0x4abe3b(0x1a9)](),_0xff7f8c['restore']();});_0x517299[_0x4d6e92(0x1bb)]===_0x4d6e92(0x1c8)&&_0x38556b[_0x4d6e92(0x1b5)]((_0x42e62a,_0x48455b)=>{const _0x29de2c=_0x4d6e92;let _0x2c6119=_0x48455b[_0x29de2c(0x1b6)];_0x2c6119['save']();for(let _0x1116b1=0x0;_0x1116b1<0x4;_0x1116b1++){let _0x23410f=_0x517299[_0x29de2c(0x1c6)]/0xa*(_0x517299[_0x29de2c(0x1b2)]===0x0?0x1:_0x517299[_0x29de2c(0x1b2)]);_0x2c6119[_0x29de2c(0x1ca)]=getColor(_0x517299['color'],_0x517299[_0x29de2c(0x1c7)]),_0x2c6119[_0x29de2c(0x1c5)]=_0x517299[_0x29de2c(0x1c6)]/0x5*0x2,_0x2c6119['beginPath']();for(let _0x5a38bf=0x0;_0x5a38bf<_0x42e62a[_0x29de2c(0x1aa)];_0x5a38bf++){_0x5a38bf===0x0?_0x2c6119[_0x29de2c(0x1b8)](_0x42e62a[_0x5a38bf][0x0],_0x42e62a[_0x5a38bf][0x1]):_0x2c6119[_0x29de2c(0x19a)](_0x42e62a[_0x5a38bf][0x0],_0x42e62a[_0x5a38bf][0x1]);}_0x2c6119[_0x29de2c(0x1ac)]=_0x29de2c(0x1c4),_0x2c6119['lineWidth']=_0x23410f,_0x2c6119[_0x29de2c(0x1b4)]=getColor('white',_0x517299[_0x29de2c(0x1c7)]),_0x2c6119['stroke']();}_0x2c6119['restore']();});_0x517299[_0x4d6e92(0x1bb)]==='outline'&&_0x38556b['setRenderer']((_0x2d92f8,_0x31bb88)=>{const _0x5757b1=_0x4d6e92;let _0x4bee85=_0x31bb88[_0x5757b1(0x1b6)];_0x4bee85[_0x5757b1(0x1cd)](),_0x4bee85['beginPath']();for(let _0x25fdaf=0x0;_0x25fdaf<_0x2d92f8[_0x5757b1(0x1aa)];_0x25fdaf++){_0x25fdaf===0x0?_0x4bee85[_0x5757b1(0x1b8)](_0x2d92f8[_0x25fdaf][0x0],_0x2d92f8[_0x25fdaf][0x1]):_0x4bee85[_0x5757b1(0x19a)](_0x2d92f8[_0x25fdaf][0x0],_0x2d92f8[_0x25fdaf][0x1]);}_0x4bee85['lineCap']=_0x5757b1(0x1c4),_0x4bee85[_0x5757b1(0x1bd)]=_0x517299[_0x5757b1(0x1c6)],_0x4bee85[_0x5757b1(0x1b4)]=getColor(_0x517299[_0x5757b1(0x1cb)],_0x517299[_0x5757b1(0x1c7)]),_0x4bee85['stroke'](),_0x4bee85['beginPath']();for(let _0x2a6940=0x0;_0x2a6940<_0x2d92f8[_0x5757b1(0x1aa)];_0x2a6940++){_0x2a6940===0x0?_0x4bee85['moveTo'](_0x2d92f8[_0x2a6940][0x0],_0x2d92f8[_0x2a6940][0x1]):_0x4bee85['lineTo'](_0x2d92f8[_0x2a6940][0x0],_0x2d92f8[_0x2a6940][0x1]);}_0x4bee85['lineCap']=_0x5757b1(0x1c4),_0x517299[_0x5757b1(0x1a5)]>=_0x517299[_0x5757b1(0x1c6)]&&(_0x517299[_0x5757b1(0x1a5)]=_0x517299[_0x5757b1(0x1c6)]-0x1),_0x4bee85['lineWidth']=_0x517299['width']-_0x517299['outlineWidth'],_0x4bee85[_0x5757b1(0x1b4)]=getColor(_0x517299[_0x5757b1(0x1b7)],_0x517299[_0x5757b1(0x1c7)]),_0x4bee85[_0x5757b1(0x1a9)](),_0x4bee85[_0x5757b1(0x1b9)]();});let _0x1e365a=getImageOlStyle(_0x517299[_0x4d6e92(0x1b1)],_0x4d6de5,_0x34c537,_0x50bcd5);_0x1e365a&&(_0x1e365a[_0x4d6e92(0x198)](_0x363da2),_0x21d8e4[_0x4d6e92(0x1a6)](_0x1e365a));if(_0x517299[_0x4d6e92(0x1ae)]&&_0x517299[_0x4d6e92(0x1ae)][_0x4d6e92(0x1cc)]!==![]){let _0x4a4098=new Style({'geometry':_0x363da2,'text':createTextStyle(_0x517299['label'],_0x50169d,_0x34c537,_0x50bcd5),'zIndex':Number(_0x4d6de5)+0x1});_0x21d8e4[_0x4d6e92(0x1a6)](_0x4a4098);}return _0x21d8e4;}function a65_0xf59e(_0x4d924c,_0x4c08db){const _0x229448=a65_0x2294();return a65_0xf59e=function(_0xf59e3d,_0x3a66d6){_0xf59e3d=_0xf59e3d-0x198;let _0x20e6f4=_0x229448[_0xf59e3d];return _0x20e6f4;},a65_0xf59e(_0x4d924c,_0x4c08db);}function a65_0x2294(){const _0x5e2684=['lineWidth','closed','10WNHEoX','zIndex','atan2','1801583FbvBMN','70bZYMIn','butt','shadowBlur','width','opacity','glow','toString','shadowColor','outlineColor','show','save','2234295RORNrk','setGeometry','getCoordinates','lineTo','getFlatMidpoint','dash','cos','arrow','getGeometry','getType','sin','LineString','8vKdXyy','52704LuORzF','outlineWidth','push','pow','concat','stroke','length','2mvYHCt','lineCap','435347TGpbom','label','beginPath','getFirstCoordinate','billboard','glowPower','985242eTRfNU','strokeStyle','setRenderer','context','color','moveTo','restore','3229589iOzans','lineType','157254eOaZiv'];a65_0x2294=function(){return _0x5e2684;};return a65_0x2294();}function _getRealPolyline(_0x3619fa,_0x58e6c3){const _0x564fef=a65_0xf59e;if(!(_0x58e6c3===null||_0x58e6c3===void 0x0?void 0x0:_0x58e6c3[_0x564fef(0x1be)]))return _0x3619fa;else{if(_0x3619fa[_0x564fef(0x1a0)]()==='MultiLineString'){let _0x543e78=_0x3619fa[_0x564fef(0x199)]();for(let _0x56ce02 in _0x543e78){let _0x48f591=_0x543e78[_0x56ce02];_0x543e78[_0x56ce02]=_0x48f591[_0x564fef(0x1a8)]([_0x48f591[0x0]]);}return new MultiLineString(_0x543e78);}else return new LineString(_0x3619fa[_0x564fef(0x199)]()['concat']([_0x3619fa[_0x564fef(0x1b0)]()]));}}
|
package/style/StyleManager.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5dc498,_0x118304){const _0x452b96=a66_0x2887,_0x1a44f4=_0x5dc498();while(!![]){try{const _0x3af193=parseInt(_0x452b96(0x1f5))/0x1+-parseInt(_0x452b96(0x1e9))/0x2*(-parseInt(_0x452b96(0x1ea))/0x3)+parseInt(_0x452b96(0x1f9))/0x4+parseInt(_0x452b96(0x1fb))/0x5+parseInt(_0x452b96(0x1f6))/0x6+-parseInt(_0x452b96(0x1ee))/0x7+-parseInt(_0x452b96(0x1f2))/0x8;if(_0x3af193===_0x118304)break;else _0x1a44f4['push'](_0x1a44f4['shift']());}catch(_0x9fab9c){_0x1a44f4['push'](_0x1a44f4['shift']());}}}(a66_0x2d97,0xa6073));import a66_0x4ae1f6 from'ol/style/Circle';import a66_0x39cfbc from'ol/style/Fill';import a66_0x277b7f from'ol/style/Stroke';function a66_0x2d97(){const _0xb587f5=['rgba(0,\x20255,0,\x201)','setStroke','19145984KdDxYY','color','opacity','481682ByFhFI','7738440VFDJrq','rgba(0,\x20255,0,\x200)','text','1828732fgOICd','LineString','1498760bsTxDB','outlineColor','6LeJSaj','659397hByEoG','rgba(121,\x20243,\x20238,\x200.3)','rgba(121,\x20243,\x20238,\x201)','rgba(121,\x20243,\x20238,\x200)','801185jyBOOO','fill'];a66_0x2d97=function(){return _0xb587f5;};return a66_0x2d97();}import a66_0x1f97ac from'ol/style/Style';import{createTextStyle,getColor}from'./common';export function getSelectPointStyle(){const _0x2636c9=a66_0x2887;return new a66_0x1f97ac({'image':new a66_0x4ae1f6({'radius':0x5,'fill':new a66_0x39cfbc({'color':_0x2636c9(0x1ec)}),'stroke':new a66_0x277b7f({'color':'rgba(121,\x20243,\x20238,\x201)','width':0x1})})});}export function getSelectCancePointStyle(){const _0x35e21f=a66_0x2887;return new a66_0x1f97ac({'image':new a66_0x4ae1f6({'radius':0x5,'fill':new a66_0x39cfbc({'color':_0x35e21f(0x1ed)}),'stroke':new a66_0x277b7f({'color':'rgba(121,\x20243,\x20238,\x201)','width':0x1})})});}function a66_0x2887(_0xc4ee2,_0x503fcf){const _0x2d97d8=a66_0x2d97();return a66_0x2887=function(_0x28875,_0x3865b1){_0x28875=_0x28875-0x1e8;let _0x4b6e69=_0x2d97d8[_0x28875];return _0x4b6e69;},a66_0x2887(_0xc4ee2,_0x503fcf);}export function getSelectLineStyle(){return new a66_0x1f97ac({'stroke':new a66_0x277b7f({'color':'rgba(121,\x20243,\x20238,\x201)','width':0x2})});}export function getSelectCancelLineStyle(){const _0x3b4187=a66_0x2887;return new a66_0x1f97ac({'stroke':new a66_0x277b7f({'color':_0x3b4187(0x1f0),'width':0x2})});}export function getSelectPolygonStyle(){const _0x104430=a66_0x2887;return new a66_0x1f97ac({'stroke':new a66_0x277b7f({'color':_0x104430(0x1ec),'width':0x2}),'fill':new a66_0x39cfbc({'color':_0x104430(0x1eb)})});}export function getSelectCancelPolygonStyle(){const _0x34ebef=a66_0x2887;return new a66_0x1f97ac({'stroke':new a66_0x277b7f({'color':_0x34ebef(0x1f0),'width':0x2}),'fill':new a66_0x39cfbc({'color':_0x34ebef(0x1f7)})});}export function getStyle(_0x1cd49c){const _0x5325ed=a66_0x2887;if(_0x1cd49c){if(_0x1cd49c[_0x5325ed(0x1f8)])return new a66_0x1f97ac({'text':createTextStyle(_0x1cd49c,_0x1cd49c['text']),'zIndex':0x1});else{const _0x4924e1=new a66_0x1f97ac();return _0x1cd49c[_0x5325ed(0x1e8)]&&_0x4924e1[_0x5325ed(0x1f1)](new a66_0x277b7f({'color':getColor(_0x1cd49c[_0x5325ed(0x1e8)],_0x1cd49c['outlineOpacity']),'width':_0x1cd49c['outlineWidth']||0x1})),_0x1cd49c[_0x5325ed(0x1f3)]&&_0x4924e1['setFill'](new a66_0x39cfbc({'color':getColor(_0x1cd49c[_0x5325ed(0x1ef)],_0x1cd49c[_0x5325ed(0x1f4)])})),_0x4924e1;}}return new a66_0x1f97ac({'stroke':new a66_0x277b7f({'color':'rgba(121,\x20243,\x20238,\x201)','width':0x2}),'fill':new a66_0x39cfbc({'color':_0x5325ed(0x1eb)})});}export function getSelectStyle(_0x673ee0){const _0x3ca2c6=a66_0x2887;let _0xcd35ee=getSelectPolygonStyle();switch(_0x673ee0){case'MultiPolygon':case'Polygon':_0xcd35ee=getSelectPolygonStyle();break;case'MultiLineString':case _0x3ca2c6(0x1fa):_0xcd35ee=getSelectLineStyle();break;case'MultiPoint':case'Point':_0xcd35ee=getSelectPointStyle();break;default:break;}return _0xcd35ee;}
|
package/style/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x47bd79,_0x10b7a){const _0x34d08e=a62_0x354f,_0x40f39a=_0x47bd79();while(!![]){try{const _0x1a48b3=-parseInt(_0x34d08e(0x1c5))/0x1+parseInt(_0x34d08e(0x1bf))/0x2*(parseInt(_0x34d08e(0x1b2))/0x3)+parseInt(_0x34d08e(0x1c7))/0x4*(parseInt(_0x34d08e(0x1a0))/0x5)+-parseInt(_0x34d08e(0x1bc))/0x6*(-parseInt(_0x34d08e(0x1b3))/0x7)+parseInt(_0x34d08e(0x19f))/0x8+parseInt(_0x34d08e(0x1b4))/0x9+parseInt(_0x34d08e(0x1c4))/0xa*(-parseInt(_0x34d08e(0x1af))/0xb);if(_0x1a48b3===_0x10b7a)break;else _0x40f39a['push'](_0x40f39a['shift']());}catch(_0x3f7c9e){_0x40f39a['push'](_0x40f39a['shift']());}}}(a62_0x2ef1,0x8f6ff));import a62_0x5c11d1 from'color';import{Fill,Icon,Stroke,Text}from'ol/style';import a62_0x577ef6 from'../utils/plug/canvas/PinIcon';import a62_0x3fee8f from'ol/ImageState';export function isShowStyle(_0x43cc4e,_0x1b1c26,_0xedf263){const _0x3352b0=a62_0x354f;let _0x464838=!![];if(_0x1b1c26==undefined||_0xedf263==undefined)return _0x464838;if(_0x43cc4e&&typeof _0x43cc4e[_0x3352b0(0x1aa)]!=undefined&&typeof _0x43cc4e[_0x3352b0(0x1c1)]!=undefined){if(_0x43cc4e[_0x3352b0(0x1aa)]&&_0xedf263){_0x464838=![];let _0xb329ec=getLevel(_0x43cc4e[_0x3352b0(0x1aa)]),_0x270694=_0xedf263[_0x3352b0(0x1a7)]()['getResolutionForZoom'](_0xb329ec);_0x1b1c26<_0x270694&&(_0x464838=!![]);}if(_0x464838&&_0x43cc4e[_0x3352b0(0x1c1)]&&_0xedf263){_0x464838=![];let _0x20c99d=getLevel(_0x43cc4e[_0x3352b0(0x1c1)]),_0x228903=_0xedf263['getView']()['getResolutionForZoom'](_0x20c99d);_0x1b1c26>_0x228903&&(_0x464838=!![]);}}return _0x464838;}export function getLevel(_0x3401a5){const _0x2bf215=a62_0x354f,_0x2f83c2=3252.745,_0x460497=0.0009198301,_0x5a1758=52977.61,_0x15457a=-3228.107;return _0x15457a+(_0x2f83c2-_0x15457a)/(0x1+Math[_0x2bf215(0x1ba)](_0x3401a5/_0x5a1758,_0x460497));}export function toRadians(_0x3dbde7){if(_0x3dbde7)return-(_0x3dbde7*Math['PI'])/0xb4;return 0x0;}function a62_0x354f(_0x2bcf9c,_0x56ba42){const _0x2ef1ee=a62_0x2ef1();return a62_0x354f=function(_0x354f5b,_0x263382){_0x354f5b=_0x354f5b-0x19a;let _0x4ace95=_0x2ef1ee[_0x354f5b];return _0x4ace95;},a62_0x354f(_0x2bcf9c,_0x56ba42);}export function createTextStyle(_0x682954,_0x571cd1,_0x4248ba,_0x1a411c){const _0x26e7cf=a62_0x354f;if(_0x682954){let _0x4df4f1=isShowStyle(_0x682954,_0x4248ba,_0x1a411c);if(_0x4df4f1===![])return undefined;else{const _0x400742=_0x682954[_0x26e7cf(0x19b)],_0x5e5c5c=(_0x400742===null||_0x400742===void 0x0?void 0x0:_0x400742[_0x26e7cf(0x19c)])?'italic':'normal',_0x112641=(_0x400742===null||_0x400742===void 0x0?void 0x0:_0x400742['weight'])?'bold':_0x26e7cf(0x1bd),_0x2e2b62=(_0x400742===null||_0x400742===void 0x0?void 0x0:_0x400742[_0x26e7cf(0x1ab)])||'25',_0x49e724=(_0x400742===null||_0x400742===void 0x0?void 0x0:_0x400742[_0x26e7cf(0x1b9)])||'楷体';let _0x5a7e4f=_0x5e5c5c+_0x26e7cf(0x1bb)+_0x112641+'\x20'+_0x2e2b62+'px\x20'+_0x49e724,_0x2d0779=(_0x400742===null||_0x400742===void 0x0?void 0x0:_0x400742[_0x26e7cf(0x19d)])||0x0,_0x2063d3=(_0x400742===null||_0x400742===void 0x0?void 0x0:_0x400742[_0x26e7cf(0x1b6)])||0x0,_0x90c23=(_0x400742===null||_0x400742===void 0x0?void 0x0:_0x400742[_0x26e7cf(0x1c3)])||_0x26e7cf(0x1c2),_0x565625=(_0x400742===null||_0x400742===void 0x0?void 0x0:_0x400742[_0x26e7cf(0x1a8)])||'center';const _0x330dee=_0x682954[_0x26e7cf(0x1a2)]||0x1;return new Text({'text':_0x571cd1,'font':_0x5a7e4f,'offsetX':_0x2d0779,'offsetY':_0x2063d3,'textAlign':_0x565625,'textBaseline':_0x90c23,'fill':new Fill({'color':getColor(_0x682954[_0x26e7cf(0x19a)],_0x330dee)}),'stroke':_getLabelStroke(_0x682954),'backgroundFill':_0x682954[_0x26e7cf(0x1c6)]?new Fill({'color':getColor(_0x682954[_0x26e7cf(0x1c6)]||_0x26e7cf(0x1a5),_0x330dee)}):undefined});}}else return undefined;}export function getColor(_0x161abe,_0x46c295){const _0x18e462=a62_0x354f;return a62_0x5c11d1(_0x161abe)[_0x18e462(0x1b5)](_0x46c295!=undefined?_0x46c295:0x1)[_0x18e462(0x1ac)]();}function _getLabelStroke(_0x16e4c6){const _0x5694b5=a62_0x354f;if(_0x16e4c6[_0x5694b5(0x1b8)])return new Stroke({'color':getColor(_0x16e4c6[_0x5694b5(0x1b0)],_0x16e4c6[_0x5694b5(0x1a2)]),'width':_0x16e4c6[_0x5694b5(0x19e)]});if(_0x16e4c6[_0x5694b5(0x1a9)])return new Stroke({'color':getColor(_0x16e4c6[_0x5694b5(0x1ae)],_0x16e4c6[_0x5694b5(0x1a2)]),'width':_0x16e4c6['outlineWidth']});}export function preLoadImageRenderFunction(_0x1132d1,_0x9c0732,_0x19f346,_0x16a0c4,_0x5b968b){const _0x397229=a62_0x354f;let _0x53c647;_0x1132d1[_0x397229(0x1c0)]?_0x53c647=new a62_0x577ef6(_0x1132d1):_0x53c647=new Icon({'src':_0x1132d1[_0x397229(0x1c8)]});let _0x337952=_0x53c647[_0x397229(0x1ad)]();_0x337952===a62_0x3fee8f['LOADED']||_0x337952===a62_0x3fee8f[_0x397229(0x1b7)]?_0x5b968b(_0x1132d1,_0x9c0732,_0x19f346,_0x16a0c4,_0x53c647['getImage'](0x60)):(_0x337952===a62_0x3fee8f[_0x397229(0x1b1)]&&_0x53c647[_0x397229(0x1a4)](),_0x53c647[_0x397229(0x1a1)](_0x55e8b2=>{const _0x472d86=_0x397229;_0x337952=_0x55e8b2[_0x472d86(0x1be)]['getImageState'](),(_0x337952===a62_0x3fee8f[_0x472d86(0x1a3)]||_0x337952===a62_0x3fee8f['ERROR'])&&_0x5b968b(_0x1132d1,_0x9c0732,_0x19f346,_0x16a0c4,_0x53c647[_0x472d86(0x1a6)](0x60));}));}function a62_0x2ef1(){const _0x53bfc5=['24424BLgdir','image','color','font','italic','offsetX','border_width','3598352QkPqZR','695MjJLXJ','listenImageChange','opacity','LOADED','load','#2A2A2A','getImage','getView','textAlign','outline','distanceDisplayFar','size','hexa','getImageState','outlineColor','539RVNFei','border_color','IDLE','273DgmzAd','991697LfGYqm','1191627FVuVIi','alpha','offsetY','ERROR','border','family','pow','\x20normal\x20','6QoRTUx','normal','target','17814NRskHn','markerColor','distanceDisplayNear','middle','textBaseline','310910vLmSmw','272161fDkHvu','fill'];a62_0x2ef1=function(){return _0x53bfc5;};return a62_0x2ef1();}
|
package/utils/ArrayUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a67_0x14a7(_0x473d39,_0x4a68ff){const _0x98f992=a67_0x98f9();return a67_0x14a7=function(_0x14a779,_0x4c6c71){_0x14a779=_0x14a779-0xcf;let _0x5a431=_0x98f992[_0x14a779];return _0x5a431;},a67_0x14a7(_0x473d39,_0x4a68ff);}(function(_0x1170fe,_0x52946b){const _0x27db8f=a67_0x14a7,_0x2ea450=_0x1170fe();while(!![]){try{const _0xbf392e=parseInt(_0x27db8f(0xd6))/0x1*(-parseInt(_0x27db8f(0xd9))/0x2)+-parseInt(_0x27db8f(0xda))/0x3*(-parseInt(_0x27db8f(0xdc))/0x4)+-parseInt(_0x27db8f(0xd4))/0x5+parseInt(_0x27db8f(0xd3))/0x6*(parseInt(_0x27db8f(0xd7))/0x7)+parseInt(_0x27db8f(0xde))/0x8*(-parseInt(_0x27db8f(0xd5))/0x9)+parseInt(_0x27db8f(0xd8))/0xa+-parseInt(_0x27db8f(0xd1))/0xb*(parseInt(_0x27db8f(0xdb))/0xc);if(_0xbf392e===_0x52946b)break;else _0x2ea450['push'](_0x2ea450['shift']());}catch(_0x31d617){_0x2ea450['push'](_0x2ea450['shift']());}}}(a67_0x98f9,0xdf7f6));function a67_0x98f9(){const _0x292948=['length','19404ufkxjM','2114760ARWgtn','20016qZwynY','552106JJvXkE','1687IhnUeb','8917570imPfIK','4leRVVD','6fsgawX','12cfLwVs','3461076DZmsHb','every','2240apRHty','keys','reduce','object','isArray','3699949CEhwIr'];a67_0x98f9=function(){return _0x292948;};return a67_0x98f9();}export function getDeepth(_0x499b5e){function _0x52ac15(_0x525bbd,_0x305ce2){const _0x390d8c=a67_0x14a7;return _0x525bbd[_0x390d8c(0xe0)](function(_0x5ca374,_0xcc11b8){var _0x5d6e96;return Array['isArray'](_0xcc11b8)&&(_0x5d6e96=_0x52ac15(_0xcc11b8,_0x305ce2+0x1)),_0x5d6e96>_0x5ca374?_0x5d6e96:_0x5ca374;},_0x305ce2);}return _0x52ac15(_0x499b5e,0x1);}export function compareArray(_0x21df37,_0x3eeaae){const _0x5b5b29=a67_0x14a7;if(_0x21df37[_0x5b5b29(0xd2)]!==_0x3eeaae[_0x5b5b29(0xd2)])return![];const _0x257a94=_0x21df37['length'];for(let _0x1e9f68=0x0;_0x1e9f68<_0x257a94;_0x1e9f68++){if(!compare(_0x21df37[_0x1e9f68],_0x3eeaae[_0x1e9f68]))return![];}return!![];}export function compare(_0x33c8f8,_0x36d780){const _0x7f1f7b=a67_0x14a7;if(_0x33c8f8===_0x36d780)return!![];if(typeof _0x33c8f8!==typeof _0x36d780||_0x33c8f8===null||_0x36d780===null)return![];if(Array[_0x7f1f7b(0xd0)](_0x33c8f8)){if(!Array[_0x7f1f7b(0xd0)](_0x36d780))return![];return compareArray(_0x33c8f8,_0x36d780);}if(typeof _0x33c8f8===_0x7f1f7b(0xcf))return compareObject(_0x33c8f8,_0x36d780);return![];}export function compareObject(_0x1509de,_0x1ceb0b){const _0x17cfca=a67_0x14a7,_0x5a9cc0=Object[_0x17cfca(0xdf)](_0x1509de),_0x25fd07=Object[_0x17cfca(0xdf)](_0x1ceb0b);if(_0x5a9cc0[_0x17cfca(0xd2)]!==_0x25fd07[_0x17cfca(0xd2)])return![];return _0x5a9cc0[_0x17cfca(0xdd)](_0x598b79=>{if(!compare(_0x1509de[_0x598b79],_0x1ceb0b[_0x598b79]))return![];return!![];});}
|
package/utils/AxiosUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x21e0f4=a68_0x4dbd;(function(_0xfa5a7f,_0x49d889){const _0x46b615=a68_0x4dbd,_0x4665cb=_0xfa5a7f();while(!![]){try{const _0x206df=parseInt(_0x46b615(0x152))/0x1*(-parseInt(_0x46b615(0x15e))/0x2)+parseInt(_0x46b615(0x157))/0x3*(-parseInt(_0x46b615(0x163))/0x4)+-parseInt(_0x46b615(0x158))/0x5*(parseInt(_0x46b615(0x155))/0x6)+parseInt(_0x46b615(0x153))/0x7*(parseInt(_0x46b615(0x159))/0x8)+-parseInt(_0x46b615(0x15a))/0x9+parseInt(_0x46b615(0x160))/0xa+parseInt(_0x46b615(0x154))/0xb;if(_0x206df===_0x49d889)break;else _0x4665cb['push'](_0x4665cb['shift']());}catch(_0x28c4e5){_0x4665cb['push'](_0x4665cb['shift']());}}}(a68_0x4058,0x8c0fd));import a68_0x542ab6 from'axios';import a68_0x5e50f0 from'jquery';function a68_0x4058(){const _0x44ef56=['228lNzhCO','get','191KiZZjD','7pfKIJf','19886383MXAFqm','10020wuazoF','constructor','26043AfQZVy','3255jxsRzc','8821544SsmtSX','2506599CaVKwA','create','ajax','forEach','6046IgzCHS','hasOwnProperty','1010380oFRNwn','stringify','append'];a68_0x4058=function(){return _0x44ef56;};return a68_0x4058();}const request=a68_0x542ab6[a68_0x21e0f4(0x15b)]({'timeout':0xb4*0x3e8});export function jsonp(_0x5d1cab){return new Promise((_0x2fc2be,_0x146fd3)=>{const _0x4d2a7a=a68_0x4dbd;a68_0x5e50f0[_0x4d2a7a(0x15c)]({'url':_0x5d1cab,'type':_0x4d2a7a(0x164),'dataType':'jsonp','success':_0x1c7598=>{_0x2fc2be(_0x1c7598);},'error':_0x398cb5=>{_0x146fd3(_0x398cb5);}});});}function a68_0x4dbd(_0x3a21b7,_0x517e0c){const _0x405881=a68_0x4058();return a68_0x4dbd=function(_0x4dbd1d,_0x19e949){_0x4dbd1d=_0x4dbd1d-0x152;let _0x4879c3=_0x405881[_0x4dbd1d];return _0x4879c3;},a68_0x4dbd(_0x3a21b7,_0x517e0c);}export function stringify(_0x2cbf08){const _0x5c1cc1=a68_0x21e0f4,_0x18311a=new FormData();for(const _0x1f3ee4 in _0x2cbf08){if(_0x2cbf08[_0x5c1cc1(0x15f)](_0x1f3ee4)){if(_0x2cbf08[_0x1f3ee4]){if(_0x2cbf08[_0x1f3ee4][_0x5c1cc1(0x156)]===Array)_0x2cbf08[_0x1f3ee4][0x0]?_0x2cbf08[_0x1f3ee4][0x0]['constructor']===Object?_0x18311a[_0x5c1cc1(0x162)](_0x1f3ee4,JSON[_0x5c1cc1(0x161)](_0x2cbf08[_0x1f3ee4])):_0x2cbf08[_0x1f3ee4][_0x5c1cc1(0x15d)]((_0x4458ba,_0x4adf01)=>{const _0xcb0731=_0x5c1cc1;_0x18311a[_0xcb0731(0x162)](_0x1f3ee4+('['+_0x4adf01+']'),_0x4458ba);}):_0x18311a[_0x5c1cc1(0x162)](_0x1f3ee4+'[]','');else _0x2cbf08[_0x1f3ee4][_0x5c1cc1(0x156)]===Object?_0x18311a[_0x5c1cc1(0x162)](_0x1f3ee4,JSON[_0x5c1cc1(0x161)](_0x2cbf08[_0x1f3ee4])):_0x18311a[_0x5c1cc1(0x162)](_0x1f3ee4,_0x2cbf08[_0x1f3ee4]);}else _0x2cbf08[_0x1f3ee4]===0x0?_0x18311a[_0x5c1cc1(0x162)](_0x1f3ee4,'0'):_0x18311a[_0x5c1cc1(0x162)](_0x1f3ee4,'');}}return _0x18311a;}export default request;
|
package/utils/EsriUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x80483,_0x51f635){const _0x3e31f2=a69_0x4918,_0x21a4c1=_0x80483();while(!![]){try{const _0x4afba8=-parseInt(_0x3e31f2(0x82))/0x1+-parseInt(_0x3e31f2(0x8a))/0x2+-parseInt(_0x3e31f2(0x89))/0x3*(-parseInt(_0x3e31f2(0x80))/0x4)+parseInt(_0x3e31f2(0x8b))/0x5*(parseInt(_0x3e31f2(0x81))/0x6)+-parseInt(_0x3e31f2(0x84))/0x7+parseInt(_0x3e31f2(0x83))/0x8+parseInt(_0x3e31f2(0x85))/0x9;if(_0x4afba8===_0x51f635)break;else _0x21a4c1['push'](_0x21a4c1['shift']());}catch(_0x3cf455){_0x21a4c1['push'](_0x21a4c1['shift']());}}}(a69_0x5671,0x87b3c));export function getEsriSpatialReference(_0x111ab4){const _0xdd86d1=a69_0x4918;let _0x2efe5c;if(_0x111ab4){let _0xcc19bf=_0x111ab4[_0xdd86d1(0x87)]();_0xcc19bf['indexOf'](_0xdd86d1(0x86))===0x0?_0x2efe5c=_0x111ab4[_0xdd86d1(0x88)](_0xdd86d1(0x86),''):_0x2efe5c=_0x111ab4;}return _0x2efe5c;}function a69_0x4918(_0x145acd,_0x1cbd10){const _0x567188=a69_0x5671();return a69_0x4918=function(_0x4918fb,_0x6b9496){_0x4918fb=_0x4918fb-0x80;let _0x489937=_0x567188[_0x4918fb];return _0x489937;},a69_0x4918(_0x145acd,_0x1cbd10);}function a69_0x5671(){const _0x54789d=['322374AznnzE','2098534PqgRDJ','141565myVLhV','12bwItRo','54FRtgtJ','318353KHEAMX','5324168vFfbqr','6303605EQsumd','14231331awJOIg','EPSG:','toUpperCase','replace'];a69_0x5671=function(){return _0x54789d;};return a69_0x5671();}
|
package/utils/GeometryUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a72_0x25c77e=a72_0x7a3d;(function(_0x4fb832,_0x2f0a1a){const _0x1f9f51=a72_0x7a3d,_0xfa455=_0x4fb832();while(!![]){try{const _0xc2fd28=-parseInt(_0x1f9f51(0x15b))/0x1+-parseInt(_0x1f9f51(0x143))/0x2*(parseInt(_0x1f9f51(0x138))/0x3)+parseInt(_0x1f9f51(0x13c))/0x4*(parseInt(_0x1f9f51(0x15e))/0x5)+-parseInt(_0x1f9f51(0x155))/0x6+parseInt(_0x1f9f51(0x14a))/0x7*(parseInt(_0x1f9f51(0x146))/0x8)+-parseInt(_0x1f9f51(0x148))/0x9*(-parseInt(_0x1f9f51(0x14b))/0xa)+parseInt(_0x1f9f51(0x156))/0xb*(-parseInt(_0x1f9f51(0x13f))/0xc);if(_0xc2fd28===_0x2f0a1a)break;else _0xfa455['push'](_0xfa455['shift']());}catch(_0x4e2c73){_0xfa455['push'](_0xfa455['shift']());}}}(a72_0x1b16,0x33e53));import a72_0x5f1bcc from'ol/proj/Projection';import{distance as a72_0x197910}from'ol/coordinate';import{getGeoProjection,isSpheroid,registerProj}from'./RegisterProjUtil';import{getArea as a72_0x10c5e9}from'ol/sphere';import a72_0x5a666c from'jsts/org/locationtech/jts/operation/buffer/BufferOp.js';import a72_0x4af8de from'jsts/org/locationtech/jts/operation/relate/RelateOp.js';import a72_0x45eeb0 from'jsts/org/locationtech/jts/operation/overlay/OverlayOp';import a72_0xaa8187 from'jsts/org/locationtech/jts/io/OL3Parser.js';import a72_0x2294b7 from'jsts/org/locationtech/jts/operation/polygonize/Polygonizer.js';import a72_0x5d3ebf from'jsts/org/locationtech/jts/operation/distance/DistanceOp';import a72_0x5e6f25 from'ol/format/GeoJSON';import{LineString,MultiLineString,MultiPoint,MultiPolygon,Point,LinearRing,Polygon,GeometryCollection}from'ol/geom.js';import a72_0x5d8931 from'ol/format/WKT';import a72_0x4a5dc0 from'ol/format/EsriJSON';const _parser=new a72_0xaa8187(undefined,undefined);_parser[a72_0x25c77e(0x160)](Point,LineString,LinearRing,Polygon,MultiPoint,MultiLineString,MultiPolygon,GeometryCollection);export function getArea(_0x4546b7,_0x4175a9,_0x4b2458=![]){const _0x27be04=a72_0x25c77e;if(!_0x4546b7)return 0x0;const _0x2764a1=isSpheroid(_0x4175a9);if(_0x4b2458)return a72_0x10c5e9(_0x4546b7,{'projection':_0x4175a9});else{if(_0x2764a1){const _0x5549ce=getGeoProjection(_0x4546b7,_0x4175a9);return _0x4546b7[_0x27be04(0x13e)]()['transform'](_0x4175a9,_0x5549ce)['getArea']();}return _0x4546b7[_0x27be04(0x144)]();}}export function bufferOp(_0x576f83,_0xd715){const _0x2eae0a=a72_0x25c77e,_0x2f2484=_parser['read'](_0x576f83),_0x49a580=a72_0x5a666c[_0x2eae0a(0x14f)](_0x2f2484,_0xd715);return _parser[_0x2eae0a(0x154)](_0x49a580);}export function bufferPixel(_0x4f2286,_0x2fd4a7,_0x4847fe){const _0x52e9eb=a72_0x25c77e,_0x800e6c=_0x4847fe[_0x52e9eb(0x145)](_0x4f2286[_0x52e9eb(0x142)]()),_0x3f4699=_0x4847fe[_0x52e9eb(0x149)]([_0x800e6c[0x0]+_0x2fd4a7,_0x800e6c[0x1]]),_0x41f039=a72_0x197910(_0x4f2286['getCoordinates'](),_0x3f4699),_0x1e2941=bufferOp(_0x4f2286,_0x41f039);return _0x1e2941;}function a72_0x1b16(){const _0x24303e=['1727xmrhZY','Polygon','read','length','_geometries','1757AWRWTY','array','crosses','1686125dYdvIP','intersects','inject','381AFPHYu','difference','some','无法识别的数据类型','4NzWXHw','forEach','clone','40140qqJxrD','distance','add','getCoordinates','4116ZeHDIK','getArea','getPixelFromCoordinate','328EjmhMe','getPolygons','706779TRAXEB','getCoordinateFromPixel','47537GkkboO','50WUeqOM','push','writeGeometry','readGeometry','bufferOp','contains','intersection','_holes','union','write','44760RwqxTD'];a72_0x1b16=function(){return _0x24303e;};return a72_0x1b16();}export function contains(_0x5af41f,_0x1f7443){const _0x1b4659=a72_0x25c77e,_0x2c2618=_parser['read'](_0x5af41f),_0x24eaf1=_parser['read'](_0x1f7443);return a72_0x4af8de[_0x1b4659(0x150)](_0x2c2618,_0x24eaf1);}export function crosses(_0x26d89d,_0x1db543){const _0x401a46=a72_0x25c77e,_0x398356=_parser['read'](_0x26d89d),_0x2468f2=_parser[_0x401a46(0x158)](_0x1db543);return a72_0x4af8de[_0x401a46(0x15d)](_0x398356,_0x2468f2);}export function intersects(_0x254b1f,_0x31fa78){const _0x29afb5=a72_0x25c77e,_0x3fd5c2=_parser[_0x29afb5(0x158)](_0x254b1f),_0x8e7af0=_parser[_0x29afb5(0x158)](_0x31fa78);return a72_0x4af8de[_0x29afb5(0x15f)](_0x3fd5c2,_0x8e7af0);}export function intersection(_0x965596,_0x4bceeb){const _0x2f4cf3=a72_0x25c77e,_0x1dc7e7=_parser[_0x2f4cf3(0x158)](_0x965596),_0x1b4d41=_parser['read'](_0x4bceeb);return _parser['write'](a72_0x45eeb0[_0x2f4cf3(0x151)](_0x1dc7e7,_0x1b4d41));}export function union(_0x16f171,_0x2d4b69){const _0x5ef7f1=a72_0x25c77e,_0xa16eab=_parser[_0x5ef7f1(0x158)](_0x16f171),_0x4592d8=_parser['read'](_0x2d4b69);return _parser[_0x5ef7f1(0x154)](a72_0x45eeb0[_0x5ef7f1(0x153)](_0xa16eab,_0x4592d8));}export function difference(_0xc01e7,_0x25b80e){const _0x27ca86=a72_0x25c77e,_0x480aaf=_parser[_0x27ca86(0x158)](_0xc01e7),_0x4d6f83=_parser[_0x27ca86(0x158)](_0x25b80e);return _parser[_0x27ca86(0x154)](a72_0x45eeb0[_0x27ca86(0x139)](_0x480aaf,_0x4d6f83));}export function distance(_0x32f1f7,_0x3fad23){const _0x5665be=a72_0x25c77e,_0x48806c=_parser['read'](_0x32f1f7),_0x40964f=_parser[_0x5665be(0x158)](_0x3fad23);return _parser['write'](a72_0x5d3ebf[_0x5665be(0x140)](_0x48806c,_0x40964f));}export function jstlSplit(_0x372205,_0x361dd5){const _0xe56930=a72_0x25c77e,_0x50a5f7=_parser[_0xe56930(0x158)](_0x372205),_0x4511fa=_parser[_0xe56930(0x158)](_0x361dd5),_0x59b271=_0x50a5f7['getGeometryType']();let _0x42c07e=[];function _0x6e1e40(_0x3851d5,_0x1599a5){const _0x486d21=_0xe56930;let _0x116f1a=_0x3851d5[_0x486d21(0x152)],_0x62417a=_0x3851d5['getExteriorRing']()[_0x486d21(0x153)](_0x1599a5),_0x5f18a6=new a72_0x2294b7();_0x5f18a6[_0x486d21(0x141)](_0x62417a);let _0xc9927f=_0x5f18a6[_0x486d21(0x147)]();_0xc9927f[_0x486d21(0x15c)][_0x486d21(0x159)]==0x2&&_0xc9927f['array'][_0x486d21(0x13d)](_0x5a0c89=>{const _0x59bc03=_0x486d21;_0x116f1a[_0x59bc03(0x13d)](_0x2ea1f0=>{const _0x13930b=_0x59bc03;let _0x622e87=[];for(let _0x532754 in _0x2ea1f0[_0x13930b(0x142)]()){_0x622e87['push']([_0x2ea1f0['getCoordinates']()[_0x532754]['x'],_0x2ea1f0[_0x13930b(0x142)]()[_0x532754]['y']]);}_0x2ea1f0=_parser[_0x13930b(0x158)]({'coordinates':[_0x622e87],'type':_0x13930b(0x157)}),_0x5a0c89=_0x5a0c89['difference'](_0x2ea1f0);}),_0x42c07e[_0x59bc03(0x14c)](_parser['write'](_0x5a0c89));});}if(_0x59b271==='Polygon')_0x6e1e40(_0x50a5f7,_0x4511fa);else{if(_0x59b271==='MultiPolygon')_0x50a5f7[_0xe56930(0x15a)]['forEach']((_0x3471d4,_0x3bae62)=>{_0x6e1e40(_0x3471d4,_0x4511fa);});else throw new Error(_0xe56930(0x13b));}return _0x42c07e;}export function fromWKT(_0x5c8627,_0x3b1b75,_0x42da60){const _0x543efc=new a72_0x5d8931();_0x3b1b75&®isterProj(_0x3b1b75);_0x42da60&®isterProj(_0x42da60);const _0x4a2b93=_0x543efc['readGeometry'](_0x5c8627);if(isGeometryEmpty(_0x4a2b93))return null;return _0x3b1b75&&_0x42da60?_0x4a2b93['transform'](new a72_0x5f1bcc({'code':_0x3b1b75}),new a72_0x5f1bcc({'code':_0x42da60})):_0x4a2b93;}export function fromWKTs(_0x574528,_0x56e6dd,_0x551f19){const _0x14daae=a72_0x25c77e,_0x27d9c0=new a72_0x5d8931();let _0x137ea6=[];_0x56e6dd&®isterProj(_0x56e6dd);_0x551f19&®isterProj(_0x551f19);let _0x57068a,_0x1d1620;_0x56e6dd&&_0x551f19&&(_0x57068a=new a72_0x5f1bcc({'code':_0x56e6dd}),_0x1d1620=new a72_0x5f1bcc({'code':_0x551f19}));for(let _0x4148f6=0x0;_0x4148f6<_0x574528[_0x14daae(0x159)];_0x4148f6++){const _0xd71a05=_0x27d9c0['readGeometry'](_0x574528[_0x4148f6]);if(isGeometryEmpty(_0xd71a05))continue;_0x57068a&&_0x1d1620?_0x137ea6['push'](_0xd71a05['transform'](_0x57068a,_0x1d1620)):_0x137ea6[_0x14daae(0x14c)](_0xd71a05);}return _0x137ea6;}export function toWKT(_0x5723cf){const _0xf13c8=a72_0x25c77e,_0x40a4f7=new a72_0x5d8931();return _0x40a4f7[_0xf13c8(0x14d)](_0x5723cf);}export function toGeoJSON(_0x7c2ac0){const _0x3d67c5=new a72_0x5e6f25();return _0x3d67c5['writeGeometry'](_0x7c2ac0);}export function fromGeoJSON(_0x5ead9d){const _0x5001d4=a72_0x25c77e,_0x35f693=new a72_0x5e6f25();return _0x35f693[_0x5001d4(0x14e)](_0x5ead9d);}export function toEsriJSON(_0x234cb5){const _0xbaef0=a72_0x25c77e,_0x2bc4f8=new a72_0x4a5dc0();return _0x2bc4f8[_0xbaef0(0x14d)](_0x234cb5);}function a72_0x7a3d(_0x1c6796,_0x1fc589){const _0x1b16bd=a72_0x1b16();return a72_0x7a3d=function(_0x7a3d0d,_0x2cf8da){_0x7a3d0d=_0x7a3d0d-0x138;let _0x2d2728=_0x1b16bd[_0x7a3d0d];return _0x2d2728;},a72_0x7a3d(_0x1c6796,_0x1fc589);}export function fromEsriJSON(_0x7efd76){const _0x4b70e8=a72_0x25c77e,_0x331a75=new a72_0x4a5dc0();return _0x331a75[_0x4b70e8(0x14e)](_0x7efd76);}export function expandExtent(_0x4649c2,_0x3641e2){const _0x457079=_0x4649c2[0x0],_0x83f42a=_0x4649c2[0x1],_0x4e74ac=_0x4649c2[0x2],_0x42a371=_0x4649c2[0x3],_0x49900f=(_0x457079+_0x4e74ac)/0x2,_0x401745=(_0x83f42a+_0x42a371)/0x2,_0x329089=_0x4e74ac-_0x457079,_0x163c1c=_0x42a371-_0x83f42a,_0x1f486b=_0x329089*_0x3641e2,_0x553bb7=_0x163c1c*_0x3641e2,_0x4fd0c7=_0x49900f-_0x1f486b/0x2,_0x51ce3b=_0x49900f+_0x1f486b/0x2,_0x46c48e=_0x401745-_0x553bb7/0x2,_0x562b0c=_0x401745+_0x553bb7/0x2;return[_0x4fd0c7,_0x46c48e,_0x51ce3b,_0x562b0c];}export function isGeometryEmpty(_0x1965cf){const _0x64ca0a=a72_0x25c77e;if(!_0x1965cf)return!![];if(_0x1965cf instanceof Point||_0x1965cf instanceof MultiPoint){const _0x1353ec=_0x1965cf[_0x64ca0a(0x142)]();return!_0x1353ec||_0x1353ec[_0x64ca0a(0x13a)](_0x53ee2c=>isNaN(_0x53ee2c));}else{if(_0x1965cf instanceof LineString||_0x1965cf instanceof MultiLineString)return _0x1965cf[_0x64ca0a(0x142)]()[_0x64ca0a(0x159)]<0x2;else{if(_0x1965cf instanceof Polygon){const _0x2b0b73=_0x1965cf[_0x64ca0a(0x142)]();return!_0x2b0b73||_0x2b0b73[_0x64ca0a(0x159)]===0x0||_0x2b0b73[0x0]['length']<0x4;}else{if(_0x1965cf instanceof MultiPolygon){const _0x94f9f9=_0x1965cf['getCoordinates']();return!_0x94f9f9||_0x94f9f9[_0x64ca0a(0x159)]===0x0||_0x94f9f9[0x0][0x0][_0x64ca0a(0x159)]<0x4;}}}}return![];}
|
package/utils/LayerUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a73_0x3558(_0x40c97f,_0x55ea53){const _0x4b57e9=a73_0x4b57();return a73_0x3558=function(_0x35587f,_0x451270){_0x35587f=_0x35587f-0xf9;let _0x5be520=_0x4b57e9[_0x35587f];return _0x5be520;},a73_0x3558(_0x40c97f,_0x55ea53);}(function(_0x2fdaed,_0x537efc){const _0x4cb455=a73_0x3558,_0x4002ab=_0x2fdaed();while(!![]){try{const _0x47872b=parseInt(_0x4cb455(0x118))/0x1*(parseInt(_0x4cb455(0x116))/0x2)+parseInt(_0x4cb455(0x10b))/0x3+parseInt(_0x4cb455(0x10a))/0x4*(parseInt(_0x4cb455(0x103))/0x5)+-parseInt(_0x4cb455(0x102))/0x6*(-parseInt(_0x4cb455(0x110))/0x7)+-parseInt(_0x4cb455(0x108))/0x8+-parseInt(_0x4cb455(0x113))/0x9*(parseInt(_0x4cb455(0xf9))/0xa)+parseInt(_0x4cb455(0x117))/0xb*(-parseInt(_0x4cb455(0x115))/0xc);if(_0x47872b===_0x537efc)break;else _0x4002ab['push'](_0x4002ab['shift']());}catch(_0x4e0356){_0x4002ab['push'](_0x4002ab['shift']());}}}(a73_0x4b57,0xac2b5));function a73_0x4b57(){const _0x1f20c3=['service=WMS&version=1.1.0&request=GetLegendGraphic&layer=','showIndex','203328rFrXaM','includes','24COpEHf','16icBoWs','1427107GirUvJ','73324TVvsbI','children','length','sort','gwc/service/wmts','80IcaDCr','&format=application/json','parentId','assign','get','&height=','forEach','Legend','url','6JCSGrE','40JdwJaX','&format=image/png','push','data','sublayers','6702144KSfBHn','title','308236IxBhCO','942273THURdW','&width=','layerType','replace','indexOf','3262196GdhdEd'];a73_0x4b57=function(){return _0x1f20c3;};return a73_0x4b57();}import a73_0x10b2fd from'../utils/AxiosUtil';export function mapServiceTreeTransform(_0x23034e){const _0x20dcb4=a73_0x3558;let _0x35c373=[];return _0x23034e&&_0x23034e['length']>0x0&&(_0x23034e[_0x20dcb4(0xff)](_0x23a5b4=>{const _0x3d2ace=_0x20dcb4;(!_0x23a5b4[_0x3d2ace(0xfb)]||_0x23a5b4[_0x3d2ace(0xfb)]=='')&&_0x35c373['push'](Object[_0x3d2ace(0xfc)]({},_0x23a5b4));}),_0x35c373=_0x35c373['sort']((_0xe061ec,_0x48bc0e)=>{const _0x55c506=_0x20dcb4;return(_0xe061ec[_0x55c506(0x112)]?_0xe061ec[_0x55c506(0x112)]:0x0)-(_0x48bc0e[_0x55c506(0x112)]?_0x48bc0e[_0x55c506(0x112)]:0x0);}),_0x35c373['forEach'](_0x2ca6dd=>{const _0x3d964d=_0x20dcb4;_0x2ca6dd[_0x3d964d(0x119)]=setChildren(_0x2ca6dd['id'],_0x23034e);})),_0x35c373;}function setChildren(_0x4a248c,_0x4b5399){const _0x21983b=a73_0x3558;let _0x10f2bb=[];return _0x4b5399[_0x21983b(0xff)](_0x25b153=>{const _0x355024=_0x21983b;_0x4a248c===(_0x25b153[_0x355024(0xfb)]==null?'':_0x25b153[_0x355024(0xfb)])&&_0x10f2bb['push'](Object[_0x355024(0xfc)]({},_0x25b153));}),_0x10f2bb=_0x10f2bb[_0x21983b(0x11b)]((_0x2d97a5,_0x32ae02)=>{const _0x11654c=_0x21983b;return(_0x2d97a5[_0x11654c(0x112)]?_0x2d97a5[_0x11654c(0x112)]:0x0)-(_0x32ae02['showIndex']?_0x32ae02[_0x11654c(0x112)]:0x0);}),_0x10f2bb[_0x21983b(0x11a)]>0x0&&_0x10f2bb['forEach'](_0x1c1e55=>{const _0x14474a=_0x21983b;_0x1c1e55[_0x14474a(0x119)]=setChildren(_0x1c1e55['id'],_0x4b5399);}),_0x10f2bb;}export async function getLayerLegend(_0x5acdc8,_0x22be86){const _0x58bca6=a73_0x3558;if(!_0x5acdc8||!_0x5acdc8[_0x58bca6(0x101)]||!_0x5acdc8[_0x58bca6(0x107)]||_0x5acdc8['sublayers'][_0x58bca6(0x11a)]==0x0||!_0x5acdc8[_0x58bca6(0x10d)])return;if(_0x5acdc8[_0x58bca6(0x10d)][_0x58bca6(0x10f)]('geoserver')>-0x1)return await getGeoServerLayerLegend(_0x5acdc8,_0x22be86);return;}export async function getGeoServerLayerLegend(_0x26a104,_0x912413){const _0xd57bfa=a73_0x3558;if(!_0x26a104||!_0x26a104['url']||!_0x26a104['sublayers']||_0x26a104[_0xd57bfa(0x107)][_0xd57bfa(0x11a)]==0x0)return;let _0xe3f715=_0x26a104[_0xd57bfa(0x101)];const _0x232e76=_0x26a104['sublayers'];_0xe3f715=_0xe3f715[_0xd57bfa(0x10e)](_0xd57bfa(0x11c),'wms');const _0x51979e=[];for(let _0x517b95=0x0;_0x517b95<_0x232e76[_0xd57bfa(0x11a)];_0x517b95++){const _0x31cfe3=_0x232e76[_0x517b95];let _0x16886c=_0xd57bfa(0x111)+_0x31cfe3+_0xd57bfa(0xfa);const _0xf8d739=_0xe3f715[_0xd57bfa(0x114)]('?')?_0xe3f715+'&'+_0x16886c:_0xe3f715+'?'+_0x16886c,_0x3a5387=await a73_0x10b2fd[_0xd57bfa(0xfd)](_0xf8d739);if(_0x3a5387['data']&&_0x3a5387[_0xd57bfa(0x106)][_0xd57bfa(0x100)]&&_0x3a5387['data'][_0xd57bfa(0x100)][_0xd57bfa(0x11a)]>0x0)_0x51979e[_0xd57bfa(0x105)](_0x3a5387[_0xd57bfa(0x106)][_0xd57bfa(0x100)][0x0]);else{let _0x5c27f1=_0x912413?_0x912413:0x10,_0x2355c6='service=WMS&version=1.1.0&request=GetLegendGraphic&layer='+_0x31cfe3+_0xd57bfa(0x10c)+_0x5c27f1+_0xd57bfa(0xfe)+_0x5c27f1+_0xd57bfa(0x104);const _0x5564a9=_0xe3f715['includes']('?')?_0xe3f715+'&'+_0x2355c6:_0xe3f715+'?'+_0x2355c6;_0x51979e[_0xd57bfa(0x105)]({'title':_0x26a104[_0xd57bfa(0x109)],'url':_0x5564a9});}}return _0x51979e;}
|