ym-gis-2d 1.0.19 → 1.0.21
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.d.ts +1 -0
- package/controls/LegendControl.d.ts.map +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(_0x41ec0a,_0x370a93){const _0x8cf1=a65_0xe0ba,_0x30dc94=_0x41ec0a();while(!![]){try{const _0x2ac4e2=parseInt(_0x8cf1(0xa3))/0x1+parseInt(_0x8cf1(0xc2))/0x2*(parseInt(_0x8cf1(0xa6))/0x3)+-parseInt(_0x8cf1(0x9f))/0x4*(parseInt(_0x8cf1(0x9e))/0x5)+-parseInt(_0x8cf1(0xaa))/0x6*(parseInt(_0x8cf1(0xae))/0x7)+-parseInt(_0x8cf1(0x9a))/0x8*(-parseInt(_0x8cf1(0xb4))/0x9)+-parseInt(_0x8cf1(0x99))/0xa*(-parseInt(_0x8cf1(0xa8))/0xb)+-parseInt(_0x8cf1(0xad))/0xc;if(_0x2ac4e2===_0x370a93)break;else _0x30dc94['push'](_0x30dc94['shift']());}catch(_0x166fd1){_0x30dc94['push'](_0x30dc94['shift']());}}}(a65_0x54df,0x43f0c));function a65_0x54df(){const _0x11075c=['590271ohgPQc','moveTo','404466WPgwHT','toString','length','8753544vTiEqO','7iXEcen','strokeStyle','atan2','lineType','pow','outlineColor','1396071FbGOch','sqrt','shadowColor','cos','outlineWidth','stroke','width','white','lineTo','getType','concat','lineWidth','getFirstCoordinate','getFlatMidpoint','24DZDqth','lineCap','beginPath','glow','push','show','setRenderer','label','closed','getCoordinates','LineString','getGeometry','dash','color','outline','20iXCBsg','16IXEQXk','context','save','getFlatMidpoints','3670LlXkLb','984KSPoyE','restore','glowPower','butt','469473bENjOx','outlineOpacity','opacity','92172DYVgSN','sin'];a65_0x54df=function(){return _0x11075c;};return a65_0x54df();}function a65_0xe0ba(_0x368e0c,_0x516fe9){const _0x54dfa7=a65_0x54df();return a65_0xe0ba=function(_0xe0ba0b,_0x35f4b6){_0xe0ba0b=_0xe0ba0b-0x93;let _0x197737=_0x54dfa7[_0xe0ba0b];return _0x197737;},a65_0xe0ba(_0x368e0c,_0x516fe9);}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(_0x4a3fd3,_0x587998,_0x25196a,_0x45661c){const _0x584457=a65_0xe0ba;var _0x51eaf7,_0x3d02bc,_0x1534e9;let _0x1b41bd=(_0x51eaf7=_0x4a3fd3['zIndex'])!==null&&_0x51eaf7!==void 0x0?_0x51eaf7:0x0;const _0x5676ac=_0x2f1dfc=>{const _0x248b27=a65_0xe0ba;var _0x27429b=_0x2f1dfc[_0x248b27(0x95)]();if(_0x27429b)return _getRealPolyline(_0x27429b,_0x4a3fd3);return _0x27429b;},_0x2ded63=_0x20bfe0=>{const _0x19905f=a65_0xe0ba;var _0x2dfa70=_0x20bfe0[_0x19905f(0x95)]();let _0x221d17=_0x2dfa70;_0x2dfa70&&(_0x221d17=_getRealPolyline(_0x2dfa70,_0x4a3fd3));if(_0x221d17&&_0x221d17[_0x19905f(0xbd)]()===_0x19905f(0x94))return new Point(_0x221d17[_0x19905f(0xc1)]());else{let _0x5e9a4e=_0x221d17[_0x19905f(0x9d)](),_0x26482c=0x2,_0x5ed116=[];for(let _0x2ccfbc=0x0,_0x3acbc0=_0x5e9a4e[_0x19905f(0xac)];_0x2ccfbc<_0x3acbc0;_0x2ccfbc+=_0x26482c){let _0x5788ff=[_0x5e9a4e[_0x2ccfbc],_0x5e9a4e[_0x2ccfbc+0x1]];_0x5ed116[_0x19905f(0xc6)](_0x5788ff);}return new MultiPoint(_0x5ed116);}};let _0x4afc74=new Style({'geometry':_0x5676ac,'stroke':new Stroke({'color':getColor(_0x4a3fd3[_0x584457(0x97)],_0x4a3fd3[_0x584457(0xa5)]),'width':_0x4a3fd3['width']}),'zIndex':_0x1b41bd}),_0x582dea=[_0x4afc74];if(_0x4a3fd3[_0x584457(0xb1)]===_0x584457(0x96)){let _0x4bc2ce=_0x4a3fd3[_0x584457(0xb8)]/0x2,_0xeca09f=new Style({'geometry':_0x5676ac,'zIndex':_0x1b41bd,'stroke':new Stroke({'color':getColor(_0x4a3fd3['color'],_0x4a3fd3['opacity']),'width':_0x4a3fd3[_0x584457(0xba)],'lineCap':_0x584457(0xa2),'lineDash':[_0x4bc2ce,_0x4bc2ce]})}),_0x18440a=new Style({'geometry':_0x5676ac,'zIndex':_0x1b41bd+0.5,'stroke':new Stroke({'color':getColor(_0x4a3fd3['outlineColor'],Number((_0x1534e9=(_0x3d02bc=_0x4a3fd3[_0x584457(0xa4)])!==null&&_0x3d02bc!==void 0x0?_0x3d02bc:_0x4a3fd3[_0x584457(0xa5)])!==null&&_0x1534e9!==void 0x0?_0x1534e9:0x1)),'width':_0x4a3fd3[_0x584457(0xba)],'lineCap':_0x584457(0xa2),'lineDash':[_0x4bc2ce,_0x4bc2ce],'lineDashOffset':_0x4bc2ce})});_0x582dea=[_0xeca09f,_0x18440a];}_0x4a3fd3[_0x584457(0xb1)]==='arrow'&&_0x4afc74['setRenderer']((_0x1f98c0,_0x388cdb)=>{const _0xb7ee42=_0x584457;let _0x3d2c10=_0x388cdb['context'],_0x1d69c6=parseInt((_0x4a3fd3['width']/0x4)[_0xb7ee42(0xab)]()),_0x267b9c=0xa,_0x4a6cbc=Math[_0xb7ee42(0xb5)](Math[_0xb7ee42(0xb2)](_0x267b9c,0x2)+Math[_0xb7ee42(0xb2)](_0x4a3fd3[_0xb7ee42(0xba)]/0x2,0x2)),_0x7b7ff0=0x2d,_0x2c8643=_0x1f98c0[_0x1f98c0[_0xb7ee42(0xac)]-0x2][0x0],_0x408bee=_0x1f98c0[_0x1f98c0['length']-0x2][0x1],_0x3c26b4=_0x1f98c0[_0x1f98c0[_0xb7ee42(0xac)]-0x1][0x0],_0x35c5c7=_0x1f98c0[_0x1f98c0[_0xb7ee42(0xac)]-0x1][0x1],_0x2a8d0e=Math[_0xb7ee42(0xb0)](_0x408bee-_0x35c5c7,_0x2c8643-_0x3c26b4)*0xb4/Math['PI'],_0x2bcb06=(_0x2a8d0e+_0x7b7ff0)*Math['PI']/0xb4,_0x58da3e=(_0x2a8d0e-_0x7b7ff0)*Math['PI']/0xb4,_0x49e1ac=_0x4a6cbc*Math[_0xb7ee42(0xb7)](_0x2bcb06),_0x5240a4=_0x4a6cbc*Math[_0xb7ee42(0xa7)](_0x2bcb06),_0x41e932=_0x4a6cbc*Math[_0xb7ee42(0xb7)](_0x58da3e),_0x2257c8=_0x4a6cbc*Math[_0xb7ee42(0xa7)](_0x58da3e);_0x3d2c10[_0xb7ee42(0x9c)](),_0x3d2c10[_0xb7ee42(0xc4)]();let _0xf36f52,_0x75be95;for(let _0x32f42c=0x0;_0x32f42c<_0x1f98c0[_0xb7ee42(0xac)];_0x32f42c++){_0x32f42c===0x0?_0x3d2c10[_0xb7ee42(0xa9)](_0x1f98c0[_0x32f42c][0x0],_0x1f98c0[_0x32f42c][0x1]):_0x3d2c10[_0xb7ee42(0xbc)](_0x1f98c0[_0x32f42c][0x0],_0x1f98c0[_0x32f42c][0x1]);}_0x3d2c10[_0xb7ee42(0xaf)]=getColor(_0x4a3fd3['color'],_0x4a3fd3[_0xb7ee42(0xa5)]),_0x3d2c10[_0xb7ee42(0xbf)]=_0x1d69c6,_0x3d2c10[_0xb7ee42(0xc3)]=_0xb7ee42(0xa2),_0x3d2c10[_0xb7ee42(0xb9)](),_0xf36f52=_0x3c26b4+_0x49e1ac,_0x75be95=_0x35c5c7+_0x5240a4,_0x3d2c10[_0xb7ee42(0xa9)](_0xf36f52,_0x75be95),_0x3d2c10[_0xb7ee42(0xbc)](_0x3c26b4,_0x35c5c7),_0xf36f52=_0x3c26b4+_0x41e932,_0x75be95=_0x35c5c7+_0x2257c8,_0x3d2c10[_0xb7ee42(0xbc)](_0xf36f52,_0x75be95),_0x3d2c10[_0xb7ee42(0xc3)]=_0xb7ee42(0xa2),_0x3d2c10['stroke'](),_0x3d2c10[_0xb7ee42(0xa0)]();});_0x4a3fd3['lineType']===_0x584457(0xc5)&&_0x4afc74[_0x584457(0xc8)]((_0x44fe37,_0x589645)=>{const _0x733a50=_0x584457;let _0x1d88a7=_0x589645[_0x733a50(0x9b)];_0x1d88a7[_0x733a50(0x9c)]();for(let _0x3a3350=0x0;_0x3a3350<0x4;_0x3a3350++){let _0x301994=_0x4a3fd3[_0x733a50(0xba)]/0xa*(_0x4a3fd3[_0x733a50(0xa1)]===0x0?0x1:_0x4a3fd3['glowPower']);_0x1d88a7[_0x733a50(0xb6)]=getColor(_0x4a3fd3[_0x733a50(0x97)],_0x4a3fd3['opacity']),_0x1d88a7['shadowBlur']=_0x4a3fd3['width']/0x5*0x2,_0x1d88a7['beginPath']();for(let _0x3515f8=0x0;_0x3515f8<_0x44fe37[_0x733a50(0xac)];_0x3515f8++){_0x3515f8===0x0?_0x1d88a7[_0x733a50(0xa9)](_0x44fe37[_0x3515f8][0x0],_0x44fe37[_0x3515f8][0x1]):_0x1d88a7[_0x733a50(0xbc)](_0x44fe37[_0x3515f8][0x0],_0x44fe37[_0x3515f8][0x1]);}_0x1d88a7[_0x733a50(0xc3)]='butt',_0x1d88a7[_0x733a50(0xbf)]=_0x301994,_0x1d88a7[_0x733a50(0xaf)]=getColor(_0x733a50(0xbb),_0x4a3fd3[_0x733a50(0xa5)]),_0x1d88a7[_0x733a50(0xb9)]();}_0x1d88a7['restore']();});_0x4a3fd3['lineType']===_0x584457(0x98)&&_0x4afc74['setRenderer']((_0x3065ae,_0x4f755f)=>{const _0x1a6b16=_0x584457;let _0x4a09c8=_0x4f755f[_0x1a6b16(0x9b)];_0x4a09c8[_0x1a6b16(0x9c)](),_0x4a09c8['beginPath']();for(let _0x37d120=0x0;_0x37d120<_0x3065ae[_0x1a6b16(0xac)];_0x37d120++){_0x37d120===0x0?_0x4a09c8['moveTo'](_0x3065ae[_0x37d120][0x0],_0x3065ae[_0x37d120][0x1]):_0x4a09c8[_0x1a6b16(0xbc)](_0x3065ae[_0x37d120][0x0],_0x3065ae[_0x37d120][0x1]);}_0x4a09c8[_0x1a6b16(0xc3)]='butt',_0x4a09c8['lineWidth']=_0x4a3fd3[_0x1a6b16(0xba)],_0x4a09c8[_0x1a6b16(0xaf)]=getColor(_0x4a3fd3[_0x1a6b16(0xb3)],_0x4a3fd3[_0x1a6b16(0xa5)]),_0x4a09c8['stroke'](),_0x4a09c8['beginPath']();for(let _0x2b365d=0x0;_0x2b365d<_0x3065ae[_0x1a6b16(0xac)];_0x2b365d++){_0x2b365d===0x0?_0x4a09c8[_0x1a6b16(0xa9)](_0x3065ae[_0x2b365d][0x0],_0x3065ae[_0x2b365d][0x1]):_0x4a09c8[_0x1a6b16(0xbc)](_0x3065ae[_0x2b365d][0x0],_0x3065ae[_0x2b365d][0x1]);}_0x4a09c8[_0x1a6b16(0xc3)]=_0x1a6b16(0xa2),_0x4a3fd3['outlineWidth']>=_0x4a3fd3[_0x1a6b16(0xba)]&&(_0x4a3fd3[_0x1a6b16(0xb8)]=_0x4a3fd3['width']-0x1),_0x4a09c8['lineWidth']=_0x4a3fd3['width']-_0x4a3fd3[_0x1a6b16(0xb8)],_0x4a09c8['strokeStyle']=getColor(_0x4a3fd3['color'],_0x4a3fd3['opacity']),_0x4a09c8[_0x1a6b16(0xb9)](),_0x4a09c8[_0x1a6b16(0xa0)]();});let _0x10c3de=getImageOlStyle(_0x4a3fd3['billboard'],_0x1b41bd,_0x25196a,_0x45661c);_0x10c3de&&(_0x10c3de['setGeometry'](_0x2ded63),_0x582dea[_0x584457(0xc6)](_0x10c3de));if(_0x4a3fd3[_0x584457(0xc9)]&&_0x4a3fd3['label'][_0x584457(0xc7)]!==![]){let _0xc2e6a0=new Style({'geometry':_0x2ded63,'text':createTextStyle(_0x4a3fd3[_0x584457(0xc9)],_0x587998,_0x25196a,_0x45661c),'zIndex':Number(_0x1b41bd)+0x1});_0x582dea['push'](_0xc2e6a0);}return _0x582dea;}function _getRealPolyline(_0x5994a1,_0x215fdb){const _0x388b6b=a65_0xe0ba;if(!(_0x215fdb===null||_0x215fdb===void 0x0?void 0x0:_0x215fdb[_0x388b6b(0xca)]))return _0x5994a1;else{if(_0x5994a1[_0x388b6b(0xbd)]()==='MultiLineString'){let _0x2a1dcf=_0x5994a1[_0x388b6b(0x93)]();for(let _0xe4c561 in _0x2a1dcf){let _0x127e07=_0x2a1dcf[_0xe4c561];_0x2a1dcf[_0xe4c561]=_0x127e07[_0x388b6b(0xbe)]([_0x127e07[0x0]]);}return new MultiLineString(_0x2a1dcf);}else return new LineString(_0x5994a1[_0x388b6b(0x93)]()[_0x388b6b(0xbe)]([_0x5994a1[_0x388b6b(0xc0)]()]));}}
|
package/style/StyleManager.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1262ef,_0x550fef){const _0x27a567=a66_0x58c7,_0x9be831=_0x1262ef();while(!![]){try{const _0x36ddd7=parseInt(_0x27a567(0x1ad))/0x1*(parseInt(_0x27a567(0x1b3))/0x2)+-parseInt(_0x27a567(0x1b2))/0x3*(parseInt(_0x27a567(0x1af))/0x4)+-parseInt(_0x27a567(0x19e))/0x5*(-parseInt(_0x27a567(0x1b1))/0x6)+parseInt(_0x27a567(0x1a9))/0x7+-parseInt(_0x27a567(0x1a2))/0x8*(parseInt(_0x27a567(0x1ac))/0x9)+parseInt(_0x27a567(0x1a7))/0xa+-parseInt(_0x27a567(0x1b0))/0xb*(parseInt(_0x27a567(0x19c))/0xc);if(_0x36ddd7===_0x550fef)break;else _0x9be831['push'](_0x9be831['shift']());}catch(_0x1f4d58){_0x9be831['push'](_0x9be831['shift']());}}}(a66_0x5713,0xcd3b9));import a66_0x24314f from'ol/style/Circle';import a66_0x4031b0 from'ol/style/Fill';import a66_0x535f1d from'ol/style/Stroke';import a66_0x519206 from'ol/style/Style';import{createTextStyle,getColor}from'./common';export function getSelectPointStyle(){const _0x2e6fa6=a66_0x58c7;return new a66_0x519206({'image':new a66_0x24314f({'radius':0x5,'fill':new a66_0x4031b0({'color':_0x2e6fa6(0x1a3)}),'stroke':new a66_0x535f1d({'color':_0x2e6fa6(0x1a3),'width':0x1})})});}function a66_0x58c7(_0x36b60e,_0x1f0f01){const _0x5713a0=a66_0x5713();return a66_0x58c7=function(_0x58c770,_0x88bbd3){_0x58c770=_0x58c770-0x196;let _0x38fb8f=_0x5713a0[_0x58c770];return _0x38fb8f;},a66_0x58c7(_0x36b60e,_0x1f0f01);}export function getSelectCancePointStyle(){const _0x5e6f9b=a66_0x58c7;return new a66_0x519206({'image':new a66_0x24314f({'radius':0x5,'fill':new a66_0x4031b0({'color':_0x5e6f9b(0x1a1)}),'stroke':new a66_0x535f1d({'color':_0x5e6f9b(0x1a3),'width':0x1})})});}function a66_0x5713(){const _0x517f8a=['8kLRgns','rgba(121,\x20243,\x20238,\x201)','rgba(0,\x20255,0,\x200)','outlineColor','fill','498950JUSGtA','MultiPoint','4973311RFOZKb','color','setStroke','663606phLRON','25867WRXlKC','LineString','447388lEkSWV','5214afgdmY','24uHXRAc','6OUIInv','38hfBkzS','outlineOpacity','rgba(0,\x20255,0,\x201)','rgba(121,\x20243,\x20238,\x200.3)','opacity','Polygon','MultiLineString','22032JVOrcu','setFill','945605DxBSht','outlineWidth','MultiPolygon','rgba(121,\x20243,\x20238,\x200)'];a66_0x5713=function(){return _0x517f8a;};return a66_0x5713();}export function getSelectLineStyle(){const _0x36964d=a66_0x58c7;return new a66_0x519206({'stroke':new a66_0x535f1d({'color':_0x36964d(0x1a3),'width':0x2})});}export function getSelectCancelLineStyle(){const _0x603cb=a66_0x58c7;return new a66_0x519206({'stroke':new a66_0x535f1d({'color':_0x603cb(0x197),'width':0x2})});}export function getSelectPolygonStyle(){const _0x13e6c7=a66_0x58c7;return new a66_0x519206({'stroke':new a66_0x535f1d({'color':_0x13e6c7(0x1a3),'width':0x2}),'fill':new a66_0x4031b0({'color':_0x13e6c7(0x198)})});}export function getSelectCancelPolygonStyle(){const _0x2dcfe5=a66_0x58c7;return new a66_0x519206({'stroke':new a66_0x535f1d({'color':_0x2dcfe5(0x197),'width':0x2}),'fill':new a66_0x4031b0({'color':_0x2dcfe5(0x1a4)})});}export function getStyle(_0x51f88e){const _0xd82862=a66_0x58c7;if(_0x51f88e){if(_0x51f88e['text'])return new a66_0x519206({'text':createTextStyle(_0x51f88e,_0x51f88e['text']),'zIndex':0x1});else{const _0x374beb=new a66_0x519206();return _0x51f88e[_0xd82862(0x1a5)]&&_0x374beb[_0xd82862(0x1ab)](new a66_0x535f1d({'color':getColor(_0x51f88e[_0xd82862(0x1a5)],_0x51f88e[_0xd82862(0x196)]),'width':_0x51f88e[_0xd82862(0x19f)]||0x1})),_0x51f88e[_0xd82862(0x1aa)]&&_0x374beb[_0xd82862(0x19d)](new a66_0x4031b0({'color':getColor(_0x51f88e[_0xd82862(0x1a6)],_0x51f88e[_0xd82862(0x199)])})),_0x374beb;}}return new a66_0x519206({'stroke':new a66_0x535f1d({'color':'rgba(121,\x20243,\x20238,\x201)','width':0x2}),'fill':new a66_0x4031b0({'color':_0xd82862(0x198)})});}export function getSelectStyle(_0x501ba0){const _0x51a2f0=a66_0x58c7;let _0x1562c7=getSelectPolygonStyle();switch(_0x501ba0){case _0x51a2f0(0x1a0):case _0x51a2f0(0x19a):_0x1562c7=getSelectPolygonStyle();break;case _0x51a2f0(0x19b):case _0x51a2f0(0x1ae):_0x1562c7=getSelectLineStyle();break;case _0x51a2f0(0x1a8):case'Point':_0x1562c7=getSelectPointStyle();break;default:break;}return _0x1562c7;}
|
package/style/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37c6df,_0x175716){const _0x427edc=a62_0x435a,_0x2883bb=_0x37c6df();while(!![]){try{const _0x52af64=parseInt(_0x427edc(0x1ce))/0x1*(-parseInt(_0x427edc(0x1a4))/0x2)+parseInt(_0x427edc(0x1c6))/0x3*(-parseInt(_0x427edc(0x1a0))/0x4)+parseInt(_0x427edc(0x1cf))/0x5*(parseInt(_0x427edc(0x1b3))/0x6)+parseInt(_0x427edc(0x1a7))/0x7+-parseInt(_0x427edc(0x1ba))/0x8+parseInt(_0x427edc(0x1a2))/0x9+parseInt(_0x427edc(0x1bf))/0xa*(parseInt(_0x427edc(0x1bb))/0xb);if(_0x52af64===_0x175716)break;else _0x2883bb['push'](_0x2883bb['shift']());}catch(_0x3e5009){_0x2883bb['push'](_0x2883bb['shift']());}}}(a62_0x3423,0x8b81a));import a62_0x595862 from'color';function a62_0x435a(_0x304b47,_0x400d8a){const _0x3423b8=a62_0x3423();return a62_0x435a=function(_0x435afc,_0x59244d){_0x435afc=_0x435afc-0x1a0;let _0x4b3346=_0x3423b8[_0x435afc];return _0x4b3346;},a62_0x435a(_0x304b47,_0x400d8a);}import{Fill,Icon,Stroke,Text}from'ol/style';import a62_0x2de5fd from'../utils/plug/canvas/PinIcon';import a62_0x1f3577 from'ol/ImageState';function a62_0x3423(){const _0x78a4de=['color','border_width','outlineColor','border_color','6701504dnHwXL','1620949VSHRKM','outline','distanceDisplayNear','offsetX','110xplgSh','getView','textBaseline','border','weight','italic','\x20normal\x20','9lQCHzI','getResolutionForZoom','#2A2A2A','fill','markerColor','getImageState','getImage','center','71037eWOtbN','7845eYDMqW','515308JVdWaJ','font','610407YfPMhI','alpha','12NckLss','LOADED','normal','623070aiVyEO','size','pow','bold','opacity','outlineWidth','px\x20','offsetY','ERROR','load','IDLE','hexa','1698DzlKIV','target','distanceDisplayFar'];a62_0x3423=function(){return _0x78a4de;};return a62_0x3423();}export function isShowStyle(_0x549805,_0x43a4c3,_0x143a98){const _0x1530c3=a62_0x435a;let _0x36ab6d=!![];if(_0x43a4c3==undefined||_0x143a98==undefined)return _0x36ab6d;if(_0x549805&&typeof _0x549805[_0x1530c3(0x1b5)]!=undefined&&typeof _0x549805[_0x1530c3(0x1bd)]!=undefined){if(_0x549805['distanceDisplayFar']&&_0x143a98){_0x36ab6d=![];let _0x24b6ac=getLevel(_0x549805[_0x1530c3(0x1b5)]),_0x179fc9=_0x143a98[_0x1530c3(0x1c0)]()[_0x1530c3(0x1c7)](_0x24b6ac);_0x43a4c3<_0x179fc9&&(_0x36ab6d=!![]);}if(_0x36ab6d&&_0x549805[_0x1530c3(0x1bd)]&&_0x143a98){_0x36ab6d=![];let _0x2672fa=getLevel(_0x549805[_0x1530c3(0x1bd)]),_0x3dad66=_0x143a98[_0x1530c3(0x1c0)]()[_0x1530c3(0x1c7)](_0x2672fa);_0x43a4c3>_0x3dad66&&(_0x36ab6d=!![]);}}return _0x36ab6d;}export function getLevel(_0xd52fdf){const _0x2c9517=a62_0x435a,_0xd1c78b=3252.745,_0x366821=0.0009198301,_0x5cb7b0=52977.61,_0x45a480=-3228.107;return _0x45a480+(_0xd1c78b-_0x45a480)/(0x1+Math[_0x2c9517(0x1a9)](_0xd52fdf/_0x5cb7b0,_0x366821));}export function toRadians(_0x491d40){if(_0x491d40)return-(_0x491d40*Math['PI'])/0xb4;return 0x0;}export function createTextStyle(_0x54975a,_0x32e690,_0x4f0979,_0x5d9195){const _0x14c4a3=a62_0x435a;if(_0x54975a){let _0x2ead83=isShowStyle(_0x54975a,_0x4f0979,_0x5d9195);if(_0x2ead83===![])return undefined;else{const _0x4f383d=_0x54975a[_0x14c4a3(0x1a1)],_0x298a2d=(_0x4f383d===null||_0x4f383d===void 0x0?void 0x0:_0x4f383d['italic'])?_0x14c4a3(0x1c4):_0x14c4a3(0x1a6),_0x57db67=(_0x4f383d===null||_0x4f383d===void 0x0?void 0x0:_0x4f383d[_0x14c4a3(0x1c3)])?_0x14c4a3(0x1aa):'normal',_0x83aaa5=(_0x4f383d===null||_0x4f383d===void 0x0?void 0x0:_0x4f383d[_0x14c4a3(0x1a8)])||'25',_0x2d4c62=(_0x4f383d===null||_0x4f383d===void 0x0?void 0x0:_0x4f383d['family'])||'楷体';let _0x53f7a4=_0x298a2d+_0x14c4a3(0x1c5)+_0x57db67+'\x20'+_0x83aaa5+_0x14c4a3(0x1ad)+_0x2d4c62,_0x42cffd=(_0x4f383d===null||_0x4f383d===void 0x0?void 0x0:_0x4f383d[_0x14c4a3(0x1be)])||0x0,_0x30514b=(_0x4f383d===null||_0x4f383d===void 0x0?void 0x0:_0x4f383d[_0x14c4a3(0x1ae)])||0x0,_0x272b06=(_0x4f383d===null||_0x4f383d===void 0x0?void 0x0:_0x4f383d[_0x14c4a3(0x1c1)])||'middle',_0x5e5939=(_0x4f383d===null||_0x4f383d===void 0x0?void 0x0:_0x4f383d['textAlign'])||_0x14c4a3(0x1cd);const _0x216f96=_0x54975a[_0x14c4a3(0x1ab)]||0x1;return new Text({'text':_0x32e690,'font':_0x53f7a4,'offsetX':_0x42cffd,'offsetY':_0x30514b,'textAlign':_0x5e5939,'textBaseline':_0x272b06,'fill':new Fill({'color':getColor(_0x54975a[_0x14c4a3(0x1b6)],_0x216f96)}),'stroke':_getLabelStroke(_0x54975a),'backgroundFill':_0x54975a[_0x14c4a3(0x1c9)]?new Fill({'color':getColor(_0x54975a[_0x14c4a3(0x1c9)]||_0x14c4a3(0x1c8),_0x216f96)}):undefined});}}else return undefined;}export function getColor(_0xfa9fe5,_0x4fac1d){const _0x2316a=a62_0x435a;return a62_0x595862(_0xfa9fe5)[_0x2316a(0x1a3)](_0x4fac1d!=undefined?_0x4fac1d:0x1)[_0x2316a(0x1b2)]();}function _getLabelStroke(_0x26d410){const _0x1d11f7=a62_0x435a;if(_0x26d410[_0x1d11f7(0x1c2)])return new Stroke({'color':getColor(_0x26d410[_0x1d11f7(0x1b9)],_0x26d410[_0x1d11f7(0x1ab)]),'width':_0x26d410[_0x1d11f7(0x1b7)]});if(_0x26d410[_0x1d11f7(0x1bc)])return new Stroke({'color':getColor(_0x26d410[_0x1d11f7(0x1b8)],_0x26d410[_0x1d11f7(0x1ab)]),'width':_0x26d410[_0x1d11f7(0x1ac)]});}export function preLoadImageRenderFunction(_0x335f33,_0x2e6e53,_0x3e518d,_0x42cdb0,_0xf75281){const _0x189dc7=a62_0x435a;let _0x18c42b;_0x335f33[_0x189dc7(0x1ca)]?_0x18c42b=new a62_0x2de5fd(_0x335f33):_0x18c42b=new Icon({'src':_0x335f33['image']});let _0x188171=_0x18c42b[_0x189dc7(0x1cb)]();_0x188171===a62_0x1f3577[_0x189dc7(0x1a5)]||_0x188171===a62_0x1f3577[_0x189dc7(0x1af)]?_0xf75281(_0x335f33,_0x2e6e53,_0x3e518d,_0x42cdb0,_0x18c42b[_0x189dc7(0x1cc)](0x60)):(_0x188171===a62_0x1f3577[_0x189dc7(0x1b1)]&&_0x18c42b[_0x189dc7(0x1b0)](),_0x18c42b['listenImageChange'](_0x22b108=>{const _0x1b39a5=_0x189dc7;_0x188171=_0x22b108[_0x1b39a5(0x1b4)][_0x1b39a5(0x1cb)](),(_0x188171===a62_0x1f3577[_0x1b39a5(0x1a5)]||_0x188171===a62_0x1f3577[_0x1b39a5(0x1af)])&&_0xf75281(_0x335f33,_0x2e6e53,_0x3e518d,_0x42cdb0,_0x18c42b[_0x1b39a5(0x1cc)](0x60));}));}
|
package/utils/ArrayUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x310bec,_0x295078){const _0x395388=a67_0x461d,_0x3a497e=_0x310bec();while(!![]){try{const _0xcb9a9b=parseInt(_0x395388(0x7b))/0x1*(parseInt(_0x395388(0x7a))/0x2)+-parseInt(_0x395388(0x79))/0x3*(-parseInt(_0x395388(0x72))/0x4)+-parseInt(_0x395388(0x6e))/0x5*(parseInt(_0x395388(0x7c))/0x6)+parseInt(_0x395388(0x71))/0x7+-parseInt(_0x395388(0x6f))/0x8+-parseInt(_0x395388(0x75))/0x9*(-parseInt(_0x395388(0x73))/0xa)+-parseInt(_0x395388(0x78))/0xb;if(_0xcb9a9b===_0x295078)break;else _0x3a497e['push'](_0x3a497e['shift']());}catch(_0x462901){_0x3a497e['push'](_0x3a497e['shift']());}}}(a67_0x5a66,0x90fdd));export function getDeepth(_0x283e8b){function _0x25a353(_0x2c8449,_0x2ab48d){const _0x4895b8=a67_0x461d;return _0x2c8449[_0x4895b8(0x76)](function(_0x26722d,_0x2d0ba2){const _0x1195e5=_0x4895b8;var _0xfd094f;return Array[_0x1195e5(0x70)](_0x2d0ba2)&&(_0xfd094f=_0x25a353(_0x2d0ba2,_0x2ab48d+0x1)),_0xfd094f>_0x26722d?_0xfd094f:_0x26722d;},_0x2ab48d);}return _0x25a353(_0x283e8b,0x1);}function a67_0x5a66(){const _0xacc060=['2962056EtnsOk','object','5AuTxsI','6245816UlidXr','isArray','6294484aXHUzF','543492vHlfDf','10iuoWGE','length','7635744WjyxRD','reduce','keys','7312987IuizuR','9fFQSam','58132ZolPMo','13ARnxRL'];a67_0x5a66=function(){return _0xacc060;};return a67_0x5a66();}export function compareArray(_0xea250e,_0x548d0a){if(_0xea250e['length']!==_0x548d0a['length'])return![];const _0x470a50=_0xea250e['length'];for(let _0x5683a4=0x0;_0x5683a4<_0x470a50;_0x5683a4++){if(!compare(_0xea250e[_0x5683a4],_0x548d0a[_0x5683a4]))return![];}return!![];}export function compare(_0x478b0c,_0x2e7afe){const _0x166b49=a67_0x461d;if(_0x478b0c===_0x2e7afe)return!![];if(typeof _0x478b0c!==typeof _0x2e7afe||_0x478b0c===null||_0x2e7afe===null)return![];if(Array['isArray'](_0x478b0c)){if(!Array[_0x166b49(0x70)](_0x2e7afe))return![];return compareArray(_0x478b0c,_0x2e7afe);}if(typeof _0x478b0c===_0x166b49(0x7d))return compareObject(_0x478b0c,_0x2e7afe);return![];}function a67_0x461d(_0x2891ab,_0x3fb648){const _0x5a66d2=a67_0x5a66();return a67_0x461d=function(_0x461d1e,_0x77b547){_0x461d1e=_0x461d1e-0x6e;let _0x9184e2=_0x5a66d2[_0x461d1e];return _0x9184e2;},a67_0x461d(_0x2891ab,_0x3fb648);}export function compareObject(_0x1f94d5,_0x436210){const _0x228073=a67_0x461d,_0x1bd729=Object['keys'](_0x1f94d5),_0x49aa10=Object[_0x228073(0x77)](_0x436210);if(_0x1bd729[_0x228073(0x74)]!==_0x49aa10[_0x228073(0x74)])return![];return _0x1bd729['every'](_0x32fbc0=>{if(!compare(_0x1f94d5[_0x32fbc0],_0x436210[_0x32fbc0]))return![];return!![];});}
|
package/utils/AxiosUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x4931ae=a68_0x2e88;(function(_0x35e176,_0x127a45){const _0x35cc4c=a68_0x2e88,_0x104683=_0x35e176();while(!![]){try{const _0xd8c49f=-parseInt(_0x35cc4c(0x10f))/0x1+parseInt(_0x35cc4c(0x105))/0x2*(-parseInt(_0x35cc4c(0x107))/0x3)+-parseInt(_0x35cc4c(0x114))/0x4+-parseInt(_0x35cc4c(0x112))/0x5+-parseInt(_0x35cc4c(0x113))/0x6+parseInt(_0x35cc4c(0x10b))/0x7*(parseInt(_0x35cc4c(0x109))/0x8)+-parseInt(_0x35cc4c(0x104))/0x9*(-parseInt(_0x35cc4c(0x110))/0xa);if(_0xd8c49f===_0x127a45)break;else _0x104683['push'](_0x104683['shift']());}catch(_0x47ca2d){_0x104683['push'](_0x104683['shift']());}}}(a68_0x4ae6,0x40375));import a68_0x4c1f9d from'axios';function a68_0x2e88(_0x26276,_0x50983e){const _0x4ae651=a68_0x4ae6();return a68_0x2e88=function(_0x2e88ef,_0x5ca676){_0x2e88ef=_0x2e88ef-0x103;let _0x34b15e=_0x4ae651[_0x2e88ef];return _0x34b15e;},a68_0x2e88(_0x26276,_0x50983e);}import a68_0x1873f0 from'jquery';const request=a68_0x4c1f9d[a68_0x4931ae(0x10e)]({'timeout':0xb4*0x3e8});export function jsonp(_0x307e2d){return new Promise((_0x539c8f,_0x3ce4a4)=>{const _0x5d1fc6=a68_0x2e88;a68_0x1873f0[_0x5d1fc6(0x103)]({'url':_0x307e2d,'type':_0x5d1fc6(0x10c),'dataType':_0x5d1fc6(0x10d),'success':_0x3fb26a=>{_0x539c8f(_0x3fb26a);},'error':_0x2b0fa1=>{_0x3ce4a4(_0x2b0fa1);}});});}function a68_0x4ae6(){const _0xec9d4f=['13170600VVmFZi','8822ABhbhF','hasOwnProperty','129uSfNOI','constructor','459152Mouuqt','stringify','14GgfxRL','get','jsonp','create','523186AzIocd','10pCOpiV','forEach','251775xzDHAn','1755378ywGItl','1037528UmIfWU','append','ajax'];a68_0x4ae6=function(){return _0xec9d4f;};return a68_0x4ae6();}export function stringify(_0x1f70a7){const _0x3cb922=a68_0x4931ae,_0x80374=new FormData();for(const _0x59c66f in _0x1f70a7){if(_0x1f70a7[_0x3cb922(0x106)](_0x59c66f)){if(_0x1f70a7[_0x59c66f]){if(_0x1f70a7[_0x59c66f]['constructor']===Array)_0x1f70a7[_0x59c66f][0x0]?_0x1f70a7[_0x59c66f][0x0][_0x3cb922(0x108)]===Object?_0x80374[_0x3cb922(0x115)](_0x59c66f,JSON[_0x3cb922(0x10a)](_0x1f70a7[_0x59c66f])):_0x1f70a7[_0x59c66f][_0x3cb922(0x111)]((_0xb605c6,_0x366cb7)=>{const _0x1ed5cf=_0x3cb922;_0x80374[_0x1ed5cf(0x115)](_0x59c66f+('['+_0x366cb7+']'),_0xb605c6);}):_0x80374[_0x3cb922(0x115)](_0x59c66f+'[]','');else _0x1f70a7[_0x59c66f][_0x3cb922(0x108)]===Object?_0x80374['append'](_0x59c66f,JSON[_0x3cb922(0x10a)](_0x1f70a7[_0x59c66f])):_0x80374[_0x3cb922(0x115)](_0x59c66f,_0x1f70a7[_0x59c66f]);}else _0x1f70a7[_0x59c66f]===0x0?_0x80374[_0x3cb922(0x115)](_0x59c66f,'0'):_0x80374[_0x3cb922(0x115)](_0x59c66f,'');}}return _0x80374;}export default request;
|
package/utils/EsriUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a69_0x2a14(_0x2b2bf5,_0x5c5867){const _0x30531f=a69_0x3053();return a69_0x2a14=function(_0x2a14d5,_0x106b8e){_0x2a14d5=_0x2a14d5-0xbb;let _0x54c4df=_0x30531f[_0x2a14d5];return _0x54c4df;},a69_0x2a14(_0x2b2bf5,_0x5c5867);}function a69_0x3053(){const _0x32264d=['EPSG:','2625237atFdeC','5882270woPJhT','417019chwVwy','toUpperCase','replace','267465APabto','134846YGAPlJ','24knTqTS','4222778DJEIKu','3393648lLklcO','indexOf','24KwXUPJ','8pRlXIe'];a69_0x3053=function(){return _0x32264d;};return a69_0x3053();}(function(_0x27f0fb,_0x2cefd3){const _0x3f2641=a69_0x2a14,_0x5d2224=_0x27f0fb();while(!![]){try{const _0x264928=parseInt(_0x3f2641(0xc7))/0x1+-parseInt(_0x3f2641(0xbd))/0x2*(parseInt(_0x3f2641(0xc2))/0x3)+-parseInt(_0x3f2641(0xbe))/0x4*(parseInt(_0x3f2641(0xbc))/0x5)+parseInt(_0x3f2641(0xc0))/0x6+-parseInt(_0x3f2641(0xbf))/0x7*(parseInt(_0x3f2641(0xc3))/0x8)+parseInt(_0x3f2641(0xc5))/0x9+parseInt(_0x3f2641(0xc6))/0xa;if(_0x264928===_0x2cefd3)break;else _0x5d2224['push'](_0x5d2224['shift']());}catch(_0x29f5e0){_0x5d2224['push'](_0x5d2224['shift']());}}}(a69_0x3053,0x61667));export function getEsriSpatialReference(_0x4294a0){const _0x2c04c9=a69_0x2a14;let _0x25786;if(_0x4294a0){let _0x58a244=_0x4294a0[_0x2c04c9(0xc8)]();_0x58a244[_0x2c04c9(0xc1)](_0x2c04c9(0xc4))===0x0?_0x25786=_0x4294a0[_0x2c04c9(0xbb)](_0x2c04c9(0xc4),''):_0x25786=_0x4294a0;}return _0x25786;}
|
package/utils/GeometryUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3ab672,_0x5d0d70){const _0x173c8f=a72_0x4318,_0x493274=_0x3ab672();while(!![]){try{const _0x4267a2=-parseInt(_0x173c8f(0xbf))/0x1*(-parseInt(_0x173c8f(0xbb))/0x2)+parseInt(_0x173c8f(0xc9))/0x3+parseInt(_0x173c8f(0xb1))/0x4*(parseInt(_0x173c8f(0xc5))/0x5)+parseInt(_0x173c8f(0xd3))/0x6*(-parseInt(_0x173c8f(0xcb))/0x7)+-parseInt(_0x173c8f(0xce))/0x8+-parseInt(_0x173c8f(0xc3))/0x9+-parseInt(_0x173c8f(0xb9))/0xa;if(_0x4267a2===_0x5d0d70)break;else _0x493274['push'](_0x493274['shift']());}catch(_0x20f85a){_0x493274['push'](_0x493274['shift']());}}}(a72_0x33c1,0xa7818));import a72_0xc8446e from'ol/proj/Projection';import{distance as a72_0x4addea}from'ol/coordinate';import{getGeoProjection,isSpheroid,registerProj}from'./RegisterProjUtil';import{getArea as a72_0x16b4ba}from'ol/sphere';import a72_0x2b1fc5 from'jsts/org/locationtech/jts/operation/buffer/BufferOp.js';import a72_0x2ac659 from'jsts/org/locationtech/jts/operation/relate/RelateOp.js';import a72_0x46e819 from'jsts/org/locationtech/jts/operation/overlay/OverlayOp';import a72_0x5007cc from'jsts/org/locationtech/jts/io/OL3Parser.js';import a72_0x38be88 from'jsts/org/locationtech/jts/operation/polygonize/Polygonizer.js';import a72_0x2fb5c1 from'jsts/org/locationtech/jts/operation/distance/DistanceOp';import a72_0xd505be from'ol/format/GeoJSON';function a72_0x33c1(){const _0x168c8f=['2737719RDyMMN','getGeometryType','4645115kqJVXY','_geometries','write','无法识别的数据类型','476343LXhlkf','getArea','292558KFheGv','intersects','push','1101584wOtXIA','MultiPolygon','contains','some','getCoordinateFromPixel','42LdidqX','difference','4aUxdFb','union','getPolygons','clone','forEach','transform','readGeometry','writeGeometry','9851980LFBbjf','read','246vjroiI','Polygon','getExteriorRing','intersection','10715GUnRtj','length','getPixelFromCoordinate','getCoordinates'];a72_0x33c1=function(){return _0x168c8f;};return a72_0x33c1();}import{LineString,MultiLineString,MultiPoint,MultiPolygon,Point,LinearRing,Polygon,GeometryCollection}from'ol/geom.js';import a72_0x429173 from'ol/format/WKT';import a72_0x5db19c from'ol/format/EsriJSON';const _parser=new a72_0x5007cc(undefined,undefined);_parser['inject'](Point,LineString,LinearRing,Polygon,MultiPoint,MultiLineString,MultiPolygon,GeometryCollection);export function getArea(_0x4fe5b0,_0x1ee450,_0x4c9c8f=![]){const _0x752713=a72_0x4318;if(!_0x4fe5b0)return 0x0;const _0x407e6b=isSpheroid(_0x1ee450);if(_0x4c9c8f)return a72_0x16b4ba(_0x4fe5b0,{'projection':_0x1ee450});else{if(_0x407e6b){const _0x2ba078=getGeoProjection(_0x4fe5b0,_0x1ee450);return _0x4fe5b0[_0x752713(0xb4)]()[_0x752713(0xb6)](_0x1ee450,_0x2ba078)[_0x752713(0xca)]();}return _0x4fe5b0['getArea']();}}export function bufferOp(_0x4f53cb,_0x1f4107){const _0x27bf17=a72_0x4318,_0x196e82=_parser[_0x27bf17(0xba)](_0x4f53cb),_0x1559f1=a72_0x2b1fc5['bufferOp'](_0x196e82,_0x1f4107);return _parser[_0x27bf17(0xc7)](_0x1559f1);}export function bufferPixel(_0x6a4fa6,_0x50c556,_0x2ab83d){const _0x13e01c=a72_0x4318,_0x3ebb2f=_0x2ab83d[_0x13e01c(0xc1)](_0x6a4fa6['getCoordinates']()),_0x1ea544=_0x2ab83d[_0x13e01c(0xd2)]([_0x3ebb2f[0x0]+_0x50c556,_0x3ebb2f[0x1]]),_0x30cd5c=a72_0x4addea(_0x6a4fa6[_0x13e01c(0xc2)](),_0x1ea544),_0x115367=bufferOp(_0x6a4fa6,_0x30cd5c);return _0x115367;}export function contains(_0x2e73dc,_0x5ee0af){const _0x327d45=a72_0x4318,_0x25bc5d=_parser[_0x327d45(0xba)](_0x2e73dc),_0x35a9f8=_parser['read'](_0x5ee0af);return a72_0x2ac659[_0x327d45(0xd0)](_0x25bc5d,_0x35a9f8);}function a72_0x4318(_0x2fa56e,_0x5caf10){const _0x33c15a=a72_0x33c1();return a72_0x4318=function(_0x431810,_0x330ae2){_0x431810=_0x431810-0xb0;let _0x5c909f=_0x33c15a[_0x431810];return _0x5c909f;},a72_0x4318(_0x2fa56e,_0x5caf10);}export function crosses(_0x374f97,_0x58048f){const _0x1c582e=a72_0x4318,_0x2e48be=_parser[_0x1c582e(0xba)](_0x374f97),_0x1b76e3=_parser[_0x1c582e(0xba)](_0x58048f);return a72_0x2ac659['crosses'](_0x2e48be,_0x1b76e3);}export function intersects(_0x32ea88,_0x10c255){const _0x19db3a=a72_0x4318,_0x31972e=_parser[_0x19db3a(0xba)](_0x32ea88),_0x350fa3=_parser[_0x19db3a(0xba)](_0x10c255);return a72_0x2ac659[_0x19db3a(0xcc)](_0x31972e,_0x350fa3);}export function intersection(_0x402657,_0x3bd5c8){const _0x28821d=a72_0x4318,_0x12a3e8=_parser['read'](_0x402657),_0x5c0a09=_parser['read'](_0x3bd5c8);return _parser[_0x28821d(0xc7)](a72_0x46e819[_0x28821d(0xbe)](_0x12a3e8,_0x5c0a09));}export function union(_0x5ba067,_0x352356){const _0x14499d=a72_0x4318,_0x3d7f07=_parser[_0x14499d(0xba)](_0x5ba067),_0x4539f8=_parser['read'](_0x352356);return _parser[_0x14499d(0xc7)](a72_0x46e819[_0x14499d(0xb2)](_0x3d7f07,_0x4539f8));}export function difference(_0x3cd6f6,_0x3ae73d){const _0x4e0ab2=a72_0x4318,_0x228d4e=_parser[_0x4e0ab2(0xba)](_0x3cd6f6),_0x128749=_parser[_0x4e0ab2(0xba)](_0x3ae73d);return _parser[_0x4e0ab2(0xc7)](a72_0x46e819[_0x4e0ab2(0xb0)](_0x228d4e,_0x128749));}export function distance(_0xd604ff,_0x2b0517){const _0x402bd5=a72_0x4318,_0x55d58f=_parser[_0x402bd5(0xba)](_0xd604ff),_0xad8f0d=_parser[_0x402bd5(0xba)](_0x2b0517);return _parser['write'](a72_0x2fb5c1['distance'](_0x55d58f,_0xad8f0d));}export function jstlSplit(_0x5bd1c8,_0x4650ea){const _0x14f8a5=a72_0x4318,_0x5cd639=_parser['read'](_0x5bd1c8),_0x4316c4=_parser[_0x14f8a5(0xba)](_0x4650ea),_0x59cd49=_0x5cd639[_0x14f8a5(0xc4)]();let _0x1a5b4b=[];function _0x1e3e30(_0xd122e6,_0x723047){const _0xca086f=_0x14f8a5;let _0x54c699=_0xd122e6['_holes'],_0x1dcd68=_0xd122e6[_0xca086f(0xbd)]()[_0xca086f(0xb2)](_0x723047),_0xd3fb74=new a72_0x38be88();_0xd3fb74['add'](_0x1dcd68);let _0x27f034=_0xd3fb74[_0xca086f(0xb3)]();_0x27f034['array'][_0xca086f(0xc0)]==0x2&&_0x27f034['array'][_0xca086f(0xb5)](_0x162179=>{const _0xfcfc1e=_0xca086f;_0x54c699['forEach'](_0x93a10c=>{const _0x5d981c=a72_0x4318;let _0x50bf55=[];for(let _0x252ed7 in _0x93a10c['getCoordinates']()){_0x50bf55[_0x5d981c(0xcd)]([_0x93a10c['getCoordinates']()[_0x252ed7]['x'],_0x93a10c[_0x5d981c(0xc2)]()[_0x252ed7]['y']]);}_0x93a10c=_parser[_0x5d981c(0xba)]({'coordinates':[_0x50bf55],'type':_0x5d981c(0xbc)}),_0x162179=_0x162179[_0x5d981c(0xb0)](_0x93a10c);}),_0x1a5b4b[_0xfcfc1e(0xcd)](_parser[_0xfcfc1e(0xc7)](_0x162179));});}if(_0x59cd49===_0x14f8a5(0xbc))_0x1e3e30(_0x5cd639,_0x4316c4);else{if(_0x59cd49===_0x14f8a5(0xcf))_0x5cd639[_0x14f8a5(0xc6)][_0x14f8a5(0xb5)]((_0x5de4ff,_0x145a16)=>{_0x1e3e30(_0x5de4ff,_0x4316c4);});else throw new Error(_0x14f8a5(0xc8));}return _0x1a5b4b;}export function fromWKT(_0x48adc5,_0x139b98,_0x4fabec){const _0x287dd8=a72_0x4318,_0x480315=new a72_0x429173();_0x139b98&®isterProj(_0x139b98);_0x4fabec&®isterProj(_0x4fabec);const _0x481f75=_0x480315[_0x287dd8(0xb7)](_0x48adc5);if(isGeometryEmpty(_0x481f75))return null;return _0x139b98&&_0x4fabec?_0x481f75[_0x287dd8(0xb6)](new a72_0xc8446e({'code':_0x139b98}),new a72_0xc8446e({'code':_0x4fabec})):_0x481f75;}export function fromWKTs(_0x4eb0dd,_0x159edc,_0x1e585e){const _0x5d6656=a72_0x4318,_0x1f5f46=new a72_0x429173();let _0x261dad=[];_0x159edc&®isterProj(_0x159edc);_0x1e585e&®isterProj(_0x1e585e);let _0x45e59e,_0x4356b1;_0x159edc&&_0x1e585e&&(_0x45e59e=new a72_0xc8446e({'code':_0x159edc}),_0x4356b1=new a72_0xc8446e({'code':_0x1e585e}));for(let _0x4ed25b=0x0;_0x4ed25b<_0x4eb0dd[_0x5d6656(0xc0)];_0x4ed25b++){const _0x3394a1=_0x1f5f46[_0x5d6656(0xb7)](_0x4eb0dd[_0x4ed25b]);if(isGeometryEmpty(_0x3394a1))continue;_0x45e59e&&_0x4356b1?_0x261dad[_0x5d6656(0xcd)](_0x3394a1[_0x5d6656(0xb6)](_0x45e59e,_0x4356b1)):_0x261dad[_0x5d6656(0xcd)](_0x3394a1);}return _0x261dad;}export function toWKT(_0x2925ef){const _0x31ed3e=new a72_0x429173();return _0x31ed3e['writeGeometry'](_0x2925ef);}export function toGeoJSON(_0x2d87d5){const _0x222358=new a72_0xd505be();return _0x222358['writeGeometry'](_0x2d87d5);}export function fromGeoJSON(_0x568889){const _0x8a870b=a72_0x4318,_0x2a48d3=new a72_0xd505be();return _0x2a48d3[_0x8a870b(0xb7)](_0x568889);}export function toEsriJSON(_0x490382){const _0x42607b=a72_0x4318,_0x119faa=new a72_0x5db19c();return _0x119faa[_0x42607b(0xb8)](_0x490382);}export function fromEsriJSON(_0x56afdb){const _0x5d00a4=a72_0x4318,_0x5768b8=new a72_0x5db19c();return _0x5768b8[_0x5d00a4(0xb7)](_0x56afdb);}export function expandExtent(_0x5cc1d3,_0x437cc8){const _0xe00219=_0x5cc1d3[0x0],_0x513685=_0x5cc1d3[0x1],_0x9072d8=_0x5cc1d3[0x2],_0x1f84b0=_0x5cc1d3[0x3],_0x20bdfe=(_0xe00219+_0x9072d8)/0x2,_0x368b53=(_0x513685+_0x1f84b0)/0x2,_0x3a265a=_0x9072d8-_0xe00219,_0x382337=_0x1f84b0-_0x513685,_0x1cb3f0=_0x3a265a*_0x437cc8,_0x254673=_0x382337*_0x437cc8,_0x16d518=_0x20bdfe-_0x1cb3f0/0x2,_0x5318a1=_0x20bdfe+_0x1cb3f0/0x2,_0x867a0a=_0x368b53-_0x254673/0x2,_0x1d674d=_0x368b53+_0x254673/0x2;return[_0x16d518,_0x867a0a,_0x5318a1,_0x1d674d];}export function isGeometryEmpty(_0x4c4907){const _0xc98f2f=a72_0x4318;if(!_0x4c4907)return!![];if(_0x4c4907 instanceof Point||_0x4c4907 instanceof MultiPoint){const _0x2420ea=_0x4c4907[_0xc98f2f(0xc2)]();return!_0x2420ea||_0x2420ea[_0xc98f2f(0xd1)](_0x3cd024=>isNaN(_0x3cd024));}else{if(_0x4c4907 instanceof LineString||_0x4c4907 instanceof MultiLineString)return _0x4c4907[_0xc98f2f(0xc2)]()['length']<0x2;else{if(_0x4c4907 instanceof Polygon){const _0x2dd6a1=_0x4c4907[_0xc98f2f(0xc2)]();return!_0x2dd6a1||_0x2dd6a1['length']===0x0||_0x2dd6a1[0x0][_0xc98f2f(0xc0)]<0x4;}else{if(_0x4c4907 instanceof MultiPolygon){const _0x1af88d=_0x4c4907[_0xc98f2f(0xc2)]();return!_0x1af88d||_0x1af88d[_0xc98f2f(0xc0)]===0x0||_0x1af88d[0x0][0x0][_0xc98f2f(0xc0)]<0x4;}}}}return![];}
|
package/utils/LayerUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1a1dcc,_0xa0b024){const _0x43c2c2=a73_0x3d60,_0x425733=_0x1a1dcc();while(!![]){try{const _0x4cc111=-parseInt(_0x43c2c2(0x16a))/0x1*(parseInt(_0x43c2c2(0x163))/0x2)+-parseInt(_0x43c2c2(0x165))/0x3*(parseInt(_0x43c2c2(0x160))/0x4)+parseInt(_0x43c2c2(0x156))/0x5+-parseInt(_0x43c2c2(0x153))/0x6*(parseInt(_0x43c2c2(0x161))/0x7)+parseInt(_0x43c2c2(0x164))/0x8*(parseInt(_0x43c2c2(0x15d))/0x9)+-parseInt(_0x43c2c2(0x151))/0xa*(parseInt(_0x43c2c2(0x171))/0xb)+parseInt(_0x43c2c2(0x166))/0xc*(parseInt(_0x43c2c2(0x15b))/0xd);if(_0x4cc111===_0xa0b024)break;else _0x425733['push'](_0x425733['shift']());}catch(_0x3f0136){_0x425733['push'](_0x425733['shift']());}}}(a73_0x3400,0x84925));import a73_0x9aafcb from'../utils/AxiosUtil';export function mapServiceTreeTransform(_0x2f25e6){const _0x232e4f=a73_0x3d60;let _0x23d84b=[];return _0x2f25e6&&_0x2f25e6[_0x232e4f(0x155)]>0x0&&(_0x2f25e6[_0x232e4f(0x168)](_0x151bca=>{const _0x5212de=_0x232e4f;(!_0x151bca[_0x5212de(0x16d)]||_0x151bca['parentId']=='')&&_0x23d84b['push'](Object[_0x5212de(0x16b)]({},_0x151bca));}),_0x23d84b=_0x23d84b[_0x232e4f(0x16c)]((_0x22709c,_0x40ac01)=>{const _0x4b32ee=_0x232e4f;return(_0x22709c['showIndex']?_0x22709c[_0x4b32ee(0x16e)]:0x0)-(_0x40ac01[_0x4b32ee(0x16e)]?_0x40ac01[_0x4b32ee(0x16e)]:0x0);}),_0x23d84b[_0x232e4f(0x168)](_0x57eb1f=>{const _0x274184=_0x232e4f;_0x57eb1f[_0x274184(0x169)]=setChildren(_0x57eb1f['id'],_0x2f25e6);})),_0x23d84b;}function setChildren(_0x46ba71,_0x2ba9ee){const _0x945774=a73_0x3d60;let _0x51f89b=[];return _0x2ba9ee[_0x945774(0x168)](_0x40de46=>{const _0x441e15=_0x945774;_0x46ba71===(_0x40de46[_0x441e15(0x16d)]==null?'':_0x40de46[_0x441e15(0x16d)])&&_0x51f89b[_0x441e15(0x152)](Object[_0x441e15(0x16b)]({},_0x40de46));}),_0x51f89b=_0x51f89b[_0x945774(0x16c)]((_0xd41b3f,_0x3a2d64)=>{const _0x45c569=_0x945774;return(_0xd41b3f[_0x45c569(0x16e)]?_0xd41b3f['showIndex']:0x0)-(_0x3a2d64[_0x45c569(0x16e)]?_0x3a2d64[_0x45c569(0x16e)]:0x0);}),_0x51f89b[_0x945774(0x155)]>0x0&&_0x51f89b[_0x945774(0x168)](_0x2b775f=>{const _0x15b2ee=_0x945774;_0x2b775f[_0x15b2ee(0x169)]=setChildren(_0x2b775f['id'],_0x2ba9ee);}),_0x51f89b;}export async function getLayerLegend(_0x91699b,_0x7d9007){const _0x52e508=a73_0x3d60;if(!_0x91699b||!_0x91699b[_0x52e508(0x174)]||!_0x91699b[_0x52e508(0x173)]||_0x91699b['sublayers']['length']==0x0||!_0x91699b[_0x52e508(0x162)])return;if(_0x91699b[_0x52e508(0x162)]['indexOf'](_0x52e508(0x15a))>-0x1)return await getGeoServerLayerLegend(_0x91699b,_0x7d9007);return;}function a73_0x3d60(_0x2808f6,_0x2da926){const _0x3400d0=a73_0x3400();return a73_0x3d60=function(_0x3d60e8,_0x48449d){_0x3d60e8=_0x3d60e8-0x151;let _0xc9baea=_0x3400d0[_0x3d60e8];return _0xc9baea;},a73_0x3d60(_0x2808f6,_0x2da926);}function a73_0x3400(){const _0x3b36ff=['10ZMmQMB','push','6ULWYty','data','length','4613930ciutLe','service=WMS&version=1.1.0&request=GetLegendGraphic&layer=','&width=','&format=image/png','geoserver','86749hisnBl','&height=','1532493RKyZlc','Legend','&format=application/json','53412vUJLGY','5194651MgLslM','layerType','1664SwqHOa','8iXbaMP','123oQwZcO','3564xfmdpy','wms','forEach','children','1135dGBbnd','assign','sort','parentId','showIndex','gwc/service/wmts','replace','3278495UKypzj','includes','sublayers','url'];a73_0x3400=function(){return _0x3b36ff;};return a73_0x3400();}export async function getGeoServerLayerLegend(_0x1e06dd,_0xad2cbd){const _0x207722=a73_0x3d60;if(!_0x1e06dd||!_0x1e06dd[_0x207722(0x174)]||!_0x1e06dd[_0x207722(0x173)]||_0x1e06dd[_0x207722(0x173)][_0x207722(0x155)]==0x0)return;let _0x2e64bc=_0x1e06dd[_0x207722(0x174)];const _0x27d02e=_0x1e06dd[_0x207722(0x173)];_0x2e64bc=_0x2e64bc[_0x207722(0x170)](_0x207722(0x16f),_0x207722(0x167));const _0x146b98=[];for(let _0x5d8075=0x0;_0x5d8075<_0x27d02e[_0x207722(0x155)];_0x5d8075++){const _0x28a082=_0x27d02e[_0x5d8075];let _0x30d78b=_0x207722(0x157)+_0x28a082+_0x207722(0x15f);const _0x2b9ed3=_0x2e64bc[_0x207722(0x172)]('?')?_0x2e64bc+'&'+_0x30d78b:_0x2e64bc+'?'+_0x30d78b,_0x25c42d=await a73_0x9aafcb['get'](_0x2b9ed3);if(_0x25c42d[_0x207722(0x154)]&&_0x25c42d[_0x207722(0x154)][_0x207722(0x15e)]&&_0x25c42d[_0x207722(0x154)][_0x207722(0x15e)]['length']>0x0)_0x146b98[_0x207722(0x152)](_0x25c42d[_0x207722(0x154)][_0x207722(0x15e)][0x0]);else{let _0x5a8d93=_0xad2cbd?_0xad2cbd:0x10,_0x2b0446=_0x207722(0x157)+_0x28a082+_0x207722(0x158)+_0x5a8d93+_0x207722(0x15c)+_0x5a8d93+_0x207722(0x159);const _0x2127bc=_0x2e64bc[_0x207722(0x172)]('?')?_0x2e64bc+'&'+_0x2b0446:_0x2e64bc+'?'+_0x2b0446;_0x146b98['push']({'title':_0x1e06dd['title'],'url':_0x2127bc});}}return _0x146b98;}
|