ym-gis-2d 1.0.24 → 1.0.25
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(_0x1b7af6,_0x1ed0cf){const _0x3783f7=a65_0xd48d,_0x58a5e3=_0x1b7af6();while(!![]){try{const _0x1be4a2=-parseInt(_0x3783f7(0x102))/0x1+parseInt(_0x3783f7(0x103))/0x2*(parseInt(_0x3783f7(0xfb))/0x3)+-parseInt(_0x3783f7(0xe3))/0x4+-parseInt(_0x3783f7(0xe9))/0x5*(-parseInt(_0x3783f7(0x104))/0x6)+-parseInt(_0x3783f7(0xfa))/0x7+-parseInt(_0x3783f7(0xdf))/0x8+parseInt(_0x3783f7(0xdb))/0x9*(parseInt(_0x3783f7(0xe4))/0xa);if(_0x1be4a2===_0x1ed0cf)break;else _0x58a5e3['push'](_0x58a5e3['shift']());}catch(_0x34f6f3){_0x58a5e3['push'](_0x58a5e3['shift']());}}}(a65_0x1854,0x403c7));function a65_0xd48d(_0x32efac,_0x413969){const _0x18540c=a65_0x1854();return a65_0xd48d=function(_0xd48db0,_0x667d64){_0xd48db0=_0xd48db0-0xd6;let _0x32a992=_0x18540c[_0xd48db0];return _0x32a992;},a65_0xd48d(_0x32efac,_0x413969);}import{createTextStyle,getColor}from'./common';import{Stroke,Style}from'ol/style';function a65_0x1854(){const _0x58b8fb=['opacity','setRenderer','dash','sin','push','strokeStyle','length','getGeometry','context','glow','color','6660QrxaUt','zIndex','glowPower','stroke','4027712BxZsoD','sqrt','shadowColor','beginPath','1892764wsnagI','17130NDBtib','lineWidth','MultiLineString','getFlatMidpoints','label','2975uOEXZq','outline','moveTo','getCoordinates','concat','arrow','save','width','pow','outlineColor','shadowBlur','lineCap','closed','restore','getFlatMidpoint','lineType','toString','2268511EHBpgo','2913WSFWtW','white','getType','setGeometry','lineTo','butt','cos','265301zHkyLv','860HaMUcY','1452rwMWYJ','LineString','billboard','outlineWidth'];a65_0x1854=function(){return _0x58b8fb;};return a65_0x1854();}import{getImageOlStyle}from'./PointStyleFormat';import{LineString,Point,MultiLineString,MultiPoint}from'ol/geom';export function getPolylineStyle(_0x4faeba,_0x1d9dc5,_0x3feccf,_0x1add34){const _0x1d5a24=a65_0xd48d;var _0x39f171,_0x1ece1c,_0x44efc4;let _0x77dd4=(_0x39f171=_0x4faeba[_0x1d5a24(0xdc)])!==null&&_0x39f171!==void 0x0?_0x39f171:0x0;const _0x2ebd65=_0x1d8225=>{var _0x14178c=_0x1d8225['getGeometry']();if(_0x14178c)return _getRealPolyline(_0x14178c,_0x4faeba);return _0x14178c;},_0xe53a0c=_0x4baf77=>{const _0x3a9f17=_0x1d5a24;var _0x1da252=_0x4baf77[_0x3a9f17(0xd7)]();let _0x2cde93=_0x1da252;_0x1da252&&(_0x2cde93=_getRealPolyline(_0x1da252,_0x4faeba));if(_0x2cde93&&_0x2cde93[_0x3a9f17(0xfd)]()===_0x3a9f17(0x105))return new Point(_0x2cde93[_0x3a9f17(0xf7)]());else{let _0x2f640d=_0x2cde93[_0x3a9f17(0xe7)](),_0x5cfc20=0x2,_0x2c2e7a=[];for(let _0x2b1db3=0x0,_0xe5ec25=_0x2f640d[_0x3a9f17(0xd6)];_0x2b1db3<_0xe5ec25;_0x2b1db3+=_0x5cfc20){let _0x32b3b8=[_0x2f640d[_0x2b1db3],_0x2f640d[_0x2b1db3+0x1]];_0x2c2e7a['push'](_0x32b3b8);}return new MultiPoint(_0x2c2e7a);}};let _0x468007=new Style({'geometry':_0x2ebd65,'stroke':new Stroke({'color':getColor(_0x4faeba[_0x1d5a24(0xda)],_0x4faeba[_0x1d5a24(0x108)]),'width':_0x4faeba[_0x1d5a24(0xf0)]}),'zIndex':_0x77dd4}),_0x9e58ad=[_0x468007];if(_0x4faeba[_0x1d5a24(0xf8)]===_0x1d5a24(0x10a)){let _0x16dc1d=_0x4faeba[_0x1d5a24(0x107)]/0x2,_0x4d0f3e=new Style({'geometry':_0x2ebd65,'zIndex':_0x77dd4,'stroke':new Stroke({'color':getColor(_0x4faeba['color'],_0x4faeba['opacity']),'width':_0x4faeba[_0x1d5a24(0xf0)],'lineCap':_0x1d5a24(0x100),'lineDash':[_0x16dc1d,_0x16dc1d]})}),_0x1afe1a=new Style({'geometry':_0x2ebd65,'zIndex':_0x77dd4+0.5,'stroke':new Stroke({'color':getColor(_0x4faeba[_0x1d5a24(0xf2)],Number((_0x44efc4=(_0x1ece1c=_0x4faeba['outlineOpacity'])!==null&&_0x1ece1c!==void 0x0?_0x1ece1c:_0x4faeba[_0x1d5a24(0x108)])!==null&&_0x44efc4!==void 0x0?_0x44efc4:0x1)),'width':_0x4faeba[_0x1d5a24(0xf0)],'lineCap':_0x1d5a24(0x100),'lineDash':[_0x16dc1d,_0x16dc1d],'lineDashOffset':_0x16dc1d})});_0x9e58ad=[_0x4d0f3e,_0x1afe1a];}_0x4faeba[_0x1d5a24(0xf8)]===_0x1d5a24(0xee)&&_0x468007[_0x1d5a24(0x109)]((_0x4b6749,_0x3aeccd)=>{const _0x53d019=_0x1d5a24;let _0x142aa7=_0x3aeccd['context'],_0x3a0ca1=parseInt((_0x4faeba[_0x53d019(0xf0)]/0x4)[_0x53d019(0xf9)]()),_0x9d505e=0xa,_0x5bb4fe=Math[_0x53d019(0xe0)](Math[_0x53d019(0xf1)](_0x9d505e,0x2)+Math[_0x53d019(0xf1)](_0x4faeba['width']/0x2,0x2)),_0x2a1b15=0x2d,_0x3b6f65=_0x4b6749[_0x4b6749[_0x53d019(0xd6)]-0x2][0x0],_0x42fece=_0x4b6749[_0x4b6749[_0x53d019(0xd6)]-0x2][0x1],_0x246224=_0x4b6749[_0x4b6749[_0x53d019(0xd6)]-0x1][0x0],_0x38dbe3=_0x4b6749[_0x4b6749[_0x53d019(0xd6)]-0x1][0x1],_0x5339b=Math['atan2'](_0x42fece-_0x38dbe3,_0x3b6f65-_0x246224)*0xb4/Math['PI'],_0x5ac870=(_0x5339b+_0x2a1b15)*Math['PI']/0xb4,_0x2540c3=(_0x5339b-_0x2a1b15)*Math['PI']/0xb4,_0x4af88a=_0x5bb4fe*Math['cos'](_0x5ac870),_0x4fd70f=_0x5bb4fe*Math[_0x53d019(0x10b)](_0x5ac870),_0x59c7d1=_0x5bb4fe*Math[_0x53d019(0x101)](_0x2540c3),_0x4f7abd=_0x5bb4fe*Math[_0x53d019(0x10b)](_0x2540c3);_0x142aa7[_0x53d019(0xef)](),_0x142aa7[_0x53d019(0xe2)]();let _0x3eb326,_0x226f39;for(let _0x5eb4a2=0x0;_0x5eb4a2<_0x4b6749[_0x53d019(0xd6)];_0x5eb4a2++){_0x5eb4a2===0x0?_0x142aa7['moveTo'](_0x4b6749[_0x5eb4a2][0x0],_0x4b6749[_0x5eb4a2][0x1]):_0x142aa7['lineTo'](_0x4b6749[_0x5eb4a2][0x0],_0x4b6749[_0x5eb4a2][0x1]);}_0x142aa7[_0x53d019(0x10d)]=getColor(_0x4faeba[_0x53d019(0xda)],_0x4faeba[_0x53d019(0x108)]),_0x142aa7['lineWidth']=_0x3a0ca1,_0x142aa7[_0x53d019(0xf4)]=_0x53d019(0x100),_0x142aa7[_0x53d019(0xde)](),_0x3eb326=_0x246224+_0x4af88a,_0x226f39=_0x38dbe3+_0x4fd70f,_0x142aa7[_0x53d019(0xeb)](_0x3eb326,_0x226f39),_0x142aa7[_0x53d019(0xff)](_0x246224,_0x38dbe3),_0x3eb326=_0x246224+_0x59c7d1,_0x226f39=_0x38dbe3+_0x4f7abd,_0x142aa7[_0x53d019(0xff)](_0x3eb326,_0x226f39),_0x142aa7['lineCap']=_0x53d019(0x100),_0x142aa7['stroke'](),_0x142aa7['restore']();});_0x4faeba[_0x1d5a24(0xf8)]===_0x1d5a24(0xd9)&&_0x468007['setRenderer']((_0xee561f,_0x5800cc)=>{const _0x6ae5e4=_0x1d5a24;let _0x3c3ba8=_0x5800cc[_0x6ae5e4(0xd8)];_0x3c3ba8['save']();for(let _0x23dda8=0x0;_0x23dda8<0x4;_0x23dda8++){let _0x10370d=_0x4faeba[_0x6ae5e4(0xf0)]/0xa*(_0x4faeba[_0x6ae5e4(0xdd)]===0x0?0x1:_0x4faeba[_0x6ae5e4(0xdd)]);_0x3c3ba8[_0x6ae5e4(0xe1)]=getColor(_0x4faeba['color'],_0x4faeba[_0x6ae5e4(0x108)]),_0x3c3ba8[_0x6ae5e4(0xf3)]=_0x4faeba['width']/0x5*0x2,_0x3c3ba8[_0x6ae5e4(0xe2)]();for(let _0x551eef=0x0;_0x551eef<_0xee561f[_0x6ae5e4(0xd6)];_0x551eef++){_0x551eef===0x0?_0x3c3ba8[_0x6ae5e4(0xeb)](_0xee561f[_0x551eef][0x0],_0xee561f[_0x551eef][0x1]):_0x3c3ba8[_0x6ae5e4(0xff)](_0xee561f[_0x551eef][0x0],_0xee561f[_0x551eef][0x1]);}_0x3c3ba8['lineCap']=_0x6ae5e4(0x100),_0x3c3ba8[_0x6ae5e4(0xe5)]=_0x10370d,_0x3c3ba8[_0x6ae5e4(0x10d)]=getColor(_0x6ae5e4(0xfc),_0x4faeba[_0x6ae5e4(0x108)]),_0x3c3ba8['stroke']();}_0x3c3ba8[_0x6ae5e4(0xf6)]();});_0x4faeba[_0x1d5a24(0xf8)]===_0x1d5a24(0xea)&&_0x468007[_0x1d5a24(0x109)]((_0x4c93d4,_0x2654de)=>{const _0x5eeb87=_0x1d5a24;let _0xaff386=_0x2654de[_0x5eeb87(0xd8)];_0xaff386['save'](),_0xaff386[_0x5eeb87(0xe2)]();for(let _0x41290d=0x0;_0x41290d<_0x4c93d4[_0x5eeb87(0xd6)];_0x41290d++){_0x41290d===0x0?_0xaff386[_0x5eeb87(0xeb)](_0x4c93d4[_0x41290d][0x0],_0x4c93d4[_0x41290d][0x1]):_0xaff386[_0x5eeb87(0xff)](_0x4c93d4[_0x41290d][0x0],_0x4c93d4[_0x41290d][0x1]);}_0xaff386[_0x5eeb87(0xf4)]='butt',_0xaff386['lineWidth']=_0x4faeba[_0x5eeb87(0xf0)],_0xaff386[_0x5eeb87(0x10d)]=getColor(_0x4faeba[_0x5eeb87(0xf2)],_0x4faeba[_0x5eeb87(0x108)]),_0xaff386['stroke'](),_0xaff386[_0x5eeb87(0xe2)]();for(let _0x5ac459=0x0;_0x5ac459<_0x4c93d4[_0x5eeb87(0xd6)];_0x5ac459++){_0x5ac459===0x0?_0xaff386['moveTo'](_0x4c93d4[_0x5ac459][0x0],_0x4c93d4[_0x5ac459][0x1]):_0xaff386[_0x5eeb87(0xff)](_0x4c93d4[_0x5ac459][0x0],_0x4c93d4[_0x5ac459][0x1]);}_0xaff386[_0x5eeb87(0xf4)]=_0x5eeb87(0x100),_0x4faeba[_0x5eeb87(0x107)]>=_0x4faeba[_0x5eeb87(0xf0)]&&(_0x4faeba[_0x5eeb87(0x107)]=_0x4faeba[_0x5eeb87(0xf0)]-0x1),_0xaff386[_0x5eeb87(0xe5)]=_0x4faeba[_0x5eeb87(0xf0)]-_0x4faeba[_0x5eeb87(0x107)],_0xaff386[_0x5eeb87(0x10d)]=getColor(_0x4faeba['color'],_0x4faeba[_0x5eeb87(0x108)]),_0xaff386[_0x5eeb87(0xde)](),_0xaff386[_0x5eeb87(0xf6)]();});let _0x26a6cc=getImageOlStyle(_0x4faeba[_0x1d5a24(0x106)],_0x77dd4,_0x3feccf,_0x1add34);_0x26a6cc&&(_0x26a6cc[_0x1d5a24(0xfe)](_0xe53a0c),_0x9e58ad[_0x1d5a24(0x10c)](_0x26a6cc));if(_0x4faeba[_0x1d5a24(0xe8)]&&_0x4faeba[_0x1d5a24(0xe8)]['show']!==![]){let _0x12e6d0=new Style({'geometry':_0xe53a0c,'text':createTextStyle(_0x4faeba[_0x1d5a24(0xe8)],_0x1d9dc5,_0x3feccf,_0x1add34),'zIndex':Number(_0x77dd4)+0x1});_0x9e58ad['push'](_0x12e6d0);}return _0x9e58ad;}function _getRealPolyline(_0x12f8db,_0x23f17d){const _0x42b20b=a65_0xd48d;if(!(_0x23f17d===null||_0x23f17d===void 0x0?void 0x0:_0x23f17d[_0x42b20b(0xf5)]))return _0x12f8db;else{if(_0x12f8db['getType']()===_0x42b20b(0xe6)){let _0x54dd3c=_0x12f8db[_0x42b20b(0xec)]();for(let _0x288cdd in _0x54dd3c){let _0x1b0e54=_0x54dd3c[_0x288cdd];_0x54dd3c[_0x288cdd]=_0x1b0e54[_0x42b20b(0xed)]([_0x1b0e54[0x0]]);}return new MultiLineString(_0x54dd3c);}else return new LineString(_0x12f8db[_0x42b20b(0xec)]()[_0x42b20b(0xed)]([_0x12f8db['getFirstCoordinate']()]));}}
|
package/style/StyleManager.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1c9506,_0x2fbb6c){const _0x118e44=a66_0x498d,_0x655ae1=_0x1c9506();while(!![]){try{const _0x2852a1=-parseInt(_0x118e44(0x13b))/0x1*(-parseInt(_0x118e44(0x136))/0x2)+-parseInt(_0x118e44(0x138))/0x3+parseInt(_0x118e44(0x146))/0x4+-parseInt(_0x118e44(0x14c))/0x5+-parseInt(_0x118e44(0x149))/0x6+parseInt(_0x118e44(0x13c))/0x7+-parseInt(_0x118e44(0x140))/0x8*(-parseInt(_0x118e44(0x14a))/0x9);if(_0x2852a1===_0x2fbb6c)break;else _0x655ae1['push'](_0x655ae1['shift']());}catch(_0x1b6859){_0x655ae1['push'](_0x655ae1['shift']());}}}(a66_0x5bc3,0xead83));import a66_0x783332 from'ol/style/Circle';import a66_0x7cbc50 from'ol/style/Fill';function a66_0x498d(_0x431588,_0x201c18){const _0x5bc351=a66_0x5bc3();return a66_0x498d=function(_0x498dd7,_0x620ea5){_0x498dd7=_0x498dd7-0x136;let _0x277d90=_0x5bc351[_0x498dd7];return _0x277d90;},a66_0x498d(_0x431588,_0x201c18);}import a66_0x473ba1 from'ol/style/Stroke';function a66_0x5bc3(){const _0x21167f=['LineString','4604952Rifyuh','rgba(121,\x20243,\x20238,\x201)','text','6228738KCxJrc','6411789FVXvBL','rgba(121,\x20243,\x20238,\x200.3)','8339195yTHxbT','Polygon','1112xqhJOt','setFill','5298846ZrLsWx','rgba(0,\x20255,0,\x200)','MultiPoint','3259UeTrnq','2335634Myzohv','MultiPolygon','outlineOpacity','rgba(0,\x20255,0,\x201)','24ooeNhx','opacity','rgba(121,\x20243,\x20238,\x200)','outlineColor','setStroke'];a66_0x5bc3=function(){return _0x21167f;};return a66_0x5bc3();}import a66_0x1d6f9d from'ol/style/Style';import{createTextStyle,getColor}from'./common';export function getSelectPointStyle(){const _0x56d84c=a66_0x498d;return new a66_0x1d6f9d({'image':new a66_0x783332({'radius':0x5,'fill':new a66_0x7cbc50({'color':'rgba(121,\x20243,\x20238,\x201)'}),'stroke':new a66_0x473ba1({'color':_0x56d84c(0x147),'width':0x1})})});}export function getSelectCancePointStyle(){const _0x9d8fc5=a66_0x498d;return new a66_0x1d6f9d({'image':new a66_0x783332({'radius':0x5,'fill':new a66_0x7cbc50({'color':_0x9d8fc5(0x142)}),'stroke':new a66_0x473ba1({'color':_0x9d8fc5(0x147),'width':0x1})})});}export function getSelectLineStyle(){return new a66_0x1d6f9d({'stroke':new a66_0x473ba1({'color':'rgba(121,\x20243,\x20238,\x201)','width':0x2})});}export function getSelectCancelLineStyle(){return new a66_0x1d6f9d({'stroke':new a66_0x473ba1({'color':'rgba(0,\x20255,0,\x201)','width':0x2})});}export function getSelectPolygonStyle(){const _0x55e38a=a66_0x498d;return new a66_0x1d6f9d({'stroke':new a66_0x473ba1({'color':_0x55e38a(0x147),'width':0x2}),'fill':new a66_0x7cbc50({'color':_0x55e38a(0x14b)})});}export function getSelectCancelPolygonStyle(){const _0x3fd5f7=a66_0x498d;return new a66_0x1d6f9d({'stroke':new a66_0x473ba1({'color':_0x3fd5f7(0x13f),'width':0x2}),'fill':new a66_0x7cbc50({'color':_0x3fd5f7(0x139)})});}export function getStyle(_0x423151){const _0x455912=a66_0x498d;if(_0x423151){if(_0x423151[_0x455912(0x148)])return new a66_0x1d6f9d({'text':createTextStyle(_0x423151,_0x423151[_0x455912(0x148)]),'zIndex':0x1});else{const _0x3c95e7=new a66_0x1d6f9d();return _0x423151[_0x455912(0x143)]&&_0x3c95e7[_0x455912(0x144)](new a66_0x473ba1({'color':getColor(_0x423151[_0x455912(0x143)],_0x423151[_0x455912(0x13e)]),'width':_0x423151['outlineWidth']||0x1})),_0x423151['color']&&_0x3c95e7[_0x455912(0x137)](new a66_0x7cbc50({'color':getColor(_0x423151['fill'],_0x423151[_0x455912(0x141)])})),_0x3c95e7;}}return new a66_0x1d6f9d({'stroke':new a66_0x473ba1({'color':'rgba(121,\x20243,\x20238,\x201)','width':0x2}),'fill':new a66_0x7cbc50({'color':_0x455912(0x14b)})});}export function getSelectStyle(_0x3fba2e){const _0x114eef=a66_0x498d;let _0x563832=getSelectPolygonStyle();switch(_0x3fba2e){case _0x114eef(0x13d):case _0x114eef(0x14d):_0x563832=getSelectPolygonStyle();break;case'MultiLineString':case _0x114eef(0x145):_0x563832=getSelectLineStyle();break;case _0x114eef(0x13a):case'Point':_0x563832=getSelectPointStyle();break;default:break;}return _0x563832;}
|
package/style/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x23bef6,_0x3e682e){const _0x563f2b=a62_0x19e8,_0x181856=_0x23bef6();while(!![]){try{const _0x455a36=parseInt(_0x563f2b(0x18d))/0x1+-parseInt(_0x563f2b(0x199))/0x2*(-parseInt(_0x563f2b(0x19c))/0x3)+-parseInt(_0x563f2b(0x18c))/0x4+parseInt(_0x563f2b(0x184))/0x5*(-parseInt(_0x563f2b(0x190))/0x6)+parseInt(_0x563f2b(0x196))/0x7+parseInt(_0x563f2b(0x1a9))/0x8+parseInt(_0x563f2b(0x181))/0x9*(-parseInt(_0x563f2b(0x185))/0xa);if(_0x455a36===_0x3e682e)break;else _0x181856['push'](_0x181856['shift']());}catch(_0x1e3b34){_0x181856['push'](_0x181856['shift']());}}}(a62_0x9039,0xd89b0));import a62_0x482612 from'color';import{Fill,Icon,Stroke,Text}from'ol/style';import a62_0x3117e1 from'../utils/plug/canvas/PinIcon';import a62_0x59132f from'ol/ImageState';export function isShowStyle(_0x136d8d,_0x5d00d6,_0x2d6eae){const _0x4838e6=a62_0x19e8;let _0x462d9d=!![];if(_0x5d00d6==undefined||_0x2d6eae==undefined)return _0x462d9d;if(_0x136d8d&&typeof _0x136d8d[_0x4838e6(0x183)]!=undefined&&typeof _0x136d8d[_0x4838e6(0x1a8)]!=undefined){if(_0x136d8d['distanceDisplayFar']&&_0x2d6eae){_0x462d9d=![];let _0x457a7c=getLevel(_0x136d8d[_0x4838e6(0x183)]),_0x17f975=_0x2d6eae['getView']()['getResolutionForZoom'](_0x457a7c);_0x5d00d6<_0x17f975&&(_0x462d9d=!![]);}if(_0x462d9d&&_0x136d8d[_0x4838e6(0x1a8)]&&_0x2d6eae){_0x462d9d=![];let _0x150578=getLevel(_0x136d8d[_0x4838e6(0x1a8)]),_0x5e10e2=_0x2d6eae[_0x4838e6(0x1a4)]()[_0x4838e6(0x180)](_0x150578);_0x5d00d6>_0x5e10e2&&(_0x462d9d=!![]);}}return _0x462d9d;}export function getLevel(_0x350b18){const _0x2e71e0=a62_0x19e8,_0xf1c46a=3252.745,_0x179941=0.0009198301,_0x19fdd9=52977.61,_0x1f5fad=-3228.107;return _0x1f5fad+(_0xf1c46a-_0x1f5fad)/(0x1+Math[_0x2e71e0(0x186)](_0x350b18/_0x19fdd9,_0x179941));}export function toRadians(_0x515460){if(_0x515460)return-(_0x515460*Math['PI'])/0xb4;return 0x0;}export function createTextStyle(_0x1b3270,_0xd72b4b,_0x236f82,_0x372aa7){const _0x5f4d44=a62_0x19e8;if(_0x1b3270){let _0x1d8963=isShowStyle(_0x1b3270,_0x236f82,_0x372aa7);if(_0x1d8963===![])return undefined;else{const _0x1998b9=_0x1b3270['font'],_0x501e93=(_0x1998b9===null||_0x1998b9===void 0x0?void 0x0:_0x1998b9[_0x5f4d44(0x182)])?'italic':_0x5f4d44(0x19d),_0x426bc9=(_0x1998b9===null||_0x1998b9===void 0x0?void 0x0:_0x1998b9['weight'])?'bold':_0x5f4d44(0x19d),_0x56e5be=(_0x1998b9===null||_0x1998b9===void 0x0?void 0x0:_0x1998b9[_0x5f4d44(0x188)])||'25',_0x320222=(_0x1998b9===null||_0x1998b9===void 0x0?void 0x0:_0x1998b9['family'])||'楷体';let _0x2c9813=_0x501e93+_0x5f4d44(0x1a3)+_0x426bc9+'\x20'+_0x56e5be+_0x5f4d44(0x1aa)+_0x320222,_0x33fd00=(_0x1998b9===null||_0x1998b9===void 0x0?void 0x0:_0x1998b9[_0x5f4d44(0x198)])||0x0,_0x8fcdd4=(_0x1998b9===null||_0x1998b9===void 0x0?void 0x0:_0x1998b9[_0x5f4d44(0x1a5)])||0x0,_0x3c7da6=(_0x1998b9===null||_0x1998b9===void 0x0?void 0x0:_0x1998b9[_0x5f4d44(0x19a)])||_0x5f4d44(0x1a7),_0xa092f3=(_0x1998b9===null||_0x1998b9===void 0x0?void 0x0:_0x1998b9[_0x5f4d44(0x195)])||'center';const _0x3d99b4=_0x1b3270[_0x5f4d44(0x197)]||0x1;return new Text({'text':_0xd72b4b,'font':_0x2c9813,'offsetX':_0x33fd00,'offsetY':_0x8fcdd4,'textAlign':_0xa092f3,'textBaseline':_0x3c7da6,'fill':new Fill({'color':getColor(_0x1b3270[_0x5f4d44(0x18b)],_0x3d99b4)}),'stroke':_getLabelStroke(_0x1b3270),'backgroundFill':_0x1b3270[_0x5f4d44(0x1a2)]?new Fill({'color':getColor(_0x1b3270[_0x5f4d44(0x1a2)]||_0x5f4d44(0x18a),_0x3d99b4)}):undefined});}}else return undefined;}function a62_0x19e8(_0x27ccb8,_0xa04850){const _0x90392c=a62_0x9039();return a62_0x19e8=function(_0x19e873,_0x257884){_0x19e873=_0x19e873-0x180;let _0x2e91fa=_0x90392c[_0x19e873];return _0x2e91fa;},a62_0x19e8(_0x27ccb8,_0xa04850);}function a62_0x9039(){const _0x3eced1=['20818610jdsIEt','pow','markerColor','size','hexa','#2A2A2A','color','2825580YqTtYb','849463FQyjlE','outline','load','312oVPLxQ','border_color','outlineColor','border_width','LOADED','textAlign','12092409xibHmA','opacity','offsetX','34TnSaiM','textBaseline','ERROR','87303hpEqGl','normal','border','getImageState','outlineWidth','getImage','fill','\x20normal\x20','getView','offsetY','image','middle','distanceDisplayNear','10774248vciLNP','px\x20','getResolutionForZoom','9LbXCKD','italic','distanceDisplayFar','71440opefxp'];a62_0x9039=function(){return _0x3eced1;};return a62_0x9039();}export function getColor(_0x611479,_0x5b227f){const _0x3066f0=a62_0x19e8;return a62_0x482612(_0x611479)['alpha'](_0x5b227f!=undefined?_0x5b227f:0x1)[_0x3066f0(0x189)]();}function _getLabelStroke(_0x2eccb2){const _0x1b6881=a62_0x19e8;if(_0x2eccb2[_0x1b6881(0x19e)])return new Stroke({'color':getColor(_0x2eccb2[_0x1b6881(0x191)],_0x2eccb2[_0x1b6881(0x197)]),'width':_0x2eccb2[_0x1b6881(0x193)]});if(_0x2eccb2[_0x1b6881(0x18e)])return new Stroke({'color':getColor(_0x2eccb2[_0x1b6881(0x192)],_0x2eccb2['opacity']),'width':_0x2eccb2[_0x1b6881(0x1a0)]});}export function preLoadImageRenderFunction(_0x42f317,_0x552f17,_0x5a1f1a,_0x416ba9,_0x1e4876){const _0x3e74b1=a62_0x19e8;let _0x46e833;_0x42f317[_0x3e74b1(0x187)]?_0x46e833=new a62_0x3117e1(_0x42f317):_0x46e833=new Icon({'src':_0x42f317[_0x3e74b1(0x1a6)]});let _0x4165f4=_0x46e833[_0x3e74b1(0x19f)]();_0x4165f4===a62_0x59132f['LOADED']||_0x4165f4===a62_0x59132f[_0x3e74b1(0x19b)]?_0x1e4876(_0x42f317,_0x552f17,_0x5a1f1a,_0x416ba9,_0x46e833[_0x3e74b1(0x1a1)](0x60)):(_0x4165f4===a62_0x59132f['IDLE']&&_0x46e833[_0x3e74b1(0x18f)](),_0x46e833['listenImageChange'](_0x2e416a=>{const _0x30e172=_0x3e74b1;_0x4165f4=_0x2e416a['target'][_0x30e172(0x19f)](),(_0x4165f4===a62_0x59132f[_0x30e172(0x194)]||_0x4165f4===a62_0x59132f[_0x30e172(0x19b)])&&_0x1e4876(_0x42f317,_0x552f17,_0x5a1f1a,_0x416ba9,_0x46e833[_0x30e172(0x1a1)](0x60));}));}
|
package/utils/ArrayUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x32fe56,_0x12ca7c){const _0x3918ea=a67_0x275d,_0xdbeaf8=_0x32fe56();while(!![]){try{const _0x49b499=parseInt(_0x3918ea(0x186))/0x1*(parseInt(_0x3918ea(0x17d))/0x2)+parseInt(_0x3918ea(0x184))/0x3*(-parseInt(_0x3918ea(0x181))/0x4)+-parseInt(_0x3918ea(0x18a))/0x5+-parseInt(_0x3918ea(0x17f))/0x6*(parseInt(_0x3918ea(0x17c))/0x7)+parseInt(_0x3918ea(0x180))/0x8*(parseInt(_0x3918ea(0x187))/0x9)+parseInt(_0x3918ea(0x18d))/0xa+-parseInt(_0x3918ea(0x18b))/0xb*(-parseInt(_0x3918ea(0x189))/0xc);if(_0x49b499===_0x12ca7c)break;else _0xdbeaf8['push'](_0xdbeaf8['shift']());}catch(_0xddb760){_0xdbeaf8['push'](_0xdbeaf8['shift']());}}}(a67_0x5576,0x9203f));export function getDeepth(_0x5674a2){function _0x34a0f6(_0x5a6f02,_0x425ffc){const _0x278df8=a67_0x275d;return _0x5a6f02[_0x278df8(0x18c)](function(_0x5836cb,_0x5140a9){const _0x33df7b=_0x278df8;var _0xf8778d;return Array[_0x33df7b(0x183)](_0x5140a9)&&(_0xf8778d=_0x34a0f6(_0x5140a9,_0x425ffc+0x1)),_0xf8778d>_0x5836cb?_0xf8778d:_0x5836cb;},_0x425ffc);}return _0x34a0f6(_0x5674a2,0x1);}export function compareArray(_0x1a8d91,_0x3b0173){const _0x297fd3=a67_0x275d;if(_0x1a8d91['length']!==_0x3b0173[_0x297fd3(0x17e)])return![];const _0x40d22f=_0x1a8d91['length'];for(let _0x111a3f=0x0;_0x111a3f<_0x40d22f;_0x111a3f++){if(!compare(_0x1a8d91[_0x111a3f],_0x3b0173[_0x111a3f]))return![];}return!![];}export function compare(_0x54f8ac,_0x56df30){const _0x579c7b=a67_0x275d;if(_0x54f8ac===_0x56df30)return!![];if(typeof _0x54f8ac!==typeof _0x56df30||_0x54f8ac===null||_0x56df30===null)return![];if(Array[_0x579c7b(0x183)](_0x54f8ac)){if(!Array['isArray'](_0x56df30))return![];return compareArray(_0x54f8ac,_0x56df30);}if(typeof _0x54f8ac===_0x579c7b(0x185))return compareObject(_0x54f8ac,_0x56df30);return![];}function a67_0x275d(_0x1677d2,_0x5bc3c9){const _0x557623=a67_0x5576();return a67_0x275d=function(_0x275dac,_0x21973e){_0x275dac=_0x275dac-0x17c;let _0x5d84e5=_0x557623[_0x275dac];return _0x5d84e5;},a67_0x275d(_0x1677d2,_0x5bc3c9);}function a67_0x5576(){const _0x31afaf=['isArray','3hAxcwv','object','4swKlNg','3879NoTFNG','keys','8148RDYGvP','2743915NAOUHD','21098LFXcrF','reduce','4277810KecDEI','2373GKsatV','465412gsAenb','length','14772qEdZhb','5808ulwWae','3969412hEDSEq','every'];a67_0x5576=function(){return _0x31afaf;};return a67_0x5576();}export function compareObject(_0x5ea04d,_0x16928b){const _0x252fc2=a67_0x275d,_0x445e9a=Object['keys'](_0x5ea04d),_0x182f14=Object[_0x252fc2(0x188)](_0x16928b);if(_0x445e9a[_0x252fc2(0x17e)]!==_0x182f14[_0x252fc2(0x17e)])return![];return _0x445e9a[_0x252fc2(0x182)](_0x12cb1e=>{if(!compare(_0x5ea04d[_0x12cb1e],_0x16928b[_0x12cb1e]))return![];return!![];});}
|
package/utils/AxiosUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x1d0f45=a68_0x5852;function a68_0x5852(_0x2cdebc,_0x47a000){const _0x26683f=a68_0x2668();return a68_0x5852=function(_0x58524d,_0x3d61f8){_0x58524d=_0x58524d-0x172;let _0x18f559=_0x26683f[_0x58524d];return _0x18f559;},a68_0x5852(_0x2cdebc,_0x47a000);}(function(_0xd0ec56,_0x516b51){const _0x58b6c1=a68_0x5852,_0x2bb664=_0xd0ec56();while(!![]){try{const _0x1ad37f=-parseInt(_0x58b6c1(0x175))/0x1*(-parseInt(_0x58b6c1(0x17f))/0x2)+parseInt(_0x58b6c1(0x17a))/0x3*(parseInt(_0x58b6c1(0x174))/0x4)+parseInt(_0x58b6c1(0x172))/0x5*(-parseInt(_0x58b6c1(0x17e))/0x6)+-parseInt(_0x58b6c1(0x183))/0x7*(parseInt(_0x58b6c1(0x17d))/0x8)+-parseInt(_0x58b6c1(0x178))/0x9+parseInt(_0x58b6c1(0x180))/0xa+-parseInt(_0x58b6c1(0x17b))/0xb*(parseInt(_0x58b6c1(0x179))/0xc);if(_0x1ad37f===_0x516b51)break;else _0x2bb664['push'](_0x2bb664['shift']());}catch(_0xbcfe98){_0x2bb664['push'](_0x2bb664['shift']());}}}(a68_0x2668,0x1d246));import a68_0x422e6e from'axios';import a68_0x524f0d from'jquery';const request=a68_0x422e6e[a68_0x1d0f45(0x173)]({'timeout':0xb4*0x3e8});export function jsonp(_0x3ee3ba){return new Promise((_0x551de3,_0x6538bc)=>{const _0x487efb=a68_0x5852;a68_0x524f0d[_0x487efb(0x17c)]({'url':_0x3ee3ba,'type':'get','dataType':'jsonp','success':_0x3796d4=>{_0x551de3(_0x3796d4);},'error':_0x40068b=>{_0x6538bc(_0x40068b);}});});}function a68_0x2668(){const _0x2e818d=['stringify','append','28LHRBLR','10oWrbCg','create','740RryzTq','2IRhdfE','constructor','forEach','1990125nAvEdA','72sSKmFg','2283wfUSqn','92180qVnfoM','ajax','63064RlvqyK','63870rCOldy','133422xiCPFk','1693860gOfjrm'];a68_0x2668=function(){return _0x2e818d;};return a68_0x2668();}export function stringify(_0x3fd782){const _0x302e60=a68_0x1d0f45,_0x22a7e1=new FormData();for(const _0xff8f73 in _0x3fd782){if(_0x3fd782['hasOwnProperty'](_0xff8f73)){if(_0x3fd782[_0xff8f73]){if(_0x3fd782[_0xff8f73]['constructor']===Array)_0x3fd782[_0xff8f73][0x0]?_0x3fd782[_0xff8f73][0x0][_0x302e60(0x176)]===Object?_0x22a7e1['append'](_0xff8f73,JSON[_0x302e60(0x181)](_0x3fd782[_0xff8f73])):_0x3fd782[_0xff8f73][_0x302e60(0x177)]((_0x209cab,_0x3d8f14)=>{_0x22a7e1['append'](_0xff8f73+('['+_0x3d8f14+']'),_0x209cab);}):_0x22a7e1[_0x302e60(0x182)](_0xff8f73+'[]','');else _0x3fd782[_0xff8f73][_0x302e60(0x176)]===Object?_0x22a7e1['append'](_0xff8f73,JSON[_0x302e60(0x181)](_0x3fd782[_0xff8f73])):_0x22a7e1[_0x302e60(0x182)](_0xff8f73,_0x3fd782[_0xff8f73]);}else _0x3fd782[_0xff8f73]===0x0?_0x22a7e1[_0x302e60(0x182)](_0xff8f73,'0'):_0x22a7e1[_0x302e60(0x182)](_0xff8f73,'');}}return _0x22a7e1;}export default request;
|
package/utils/EsriUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a69_0x1c7f(){const _0x3a1e9d=['163719vPafRl','indexOf','40563260ZyVmub','18LVugqX','3733500phtEwP','toUpperCase','2554808yFuXHA','10NCXtZq','EPSG:','2350rXkJVL','12176wUBlZa','390803QhyzOr','replace','8082711XFAmhB'];a69_0x1c7f=function(){return _0x3a1e9d;};return a69_0x1c7f();}function a69_0x1800(_0x53844c,_0x1fb12f){const _0x1c7f1a=a69_0x1c7f();return a69_0x1800=function(_0x1800c7,_0x43dd6f){_0x1800c7=_0x1800c7-0x1cd;let _0x4e4d42=_0x1c7f1a[_0x1800c7];return _0x4e4d42;},a69_0x1800(_0x53844c,_0x1fb12f);}(function(_0x3c7482,_0x13621c){const _0x5606b3=a69_0x1800,_0x5b17fd=_0x3c7482();while(!![]){try{const _0x9b9605=-parseInt(_0x5606b3(0x1ce))/0x1+-parseInt(_0x5606b3(0x1d8))/0x2*(parseInt(_0x5606b3(0x1d1))/0x3)+-parseInt(_0x5606b3(0x1cd))/0x4*(parseInt(_0x5606b3(0x1da))/0x5)+parseInt(_0x5606b3(0x1d5))/0x6+-parseInt(_0x5606b3(0x1d0))/0x7+-parseInt(_0x5606b3(0x1d7))/0x8*(parseInt(_0x5606b3(0x1d4))/0x9)+parseInt(_0x5606b3(0x1d3))/0xa;if(_0x9b9605===_0x13621c)break;else _0x5b17fd['push'](_0x5b17fd['shift']());}catch(_0x30312e){_0x5b17fd['push'](_0x5b17fd['shift']());}}}(a69_0x1c7f,0xc1145));export function getEsriSpatialReference(_0x23bdfe){const _0xfbb619=a69_0x1800;let _0x3447f5;if(_0x23bdfe){let _0x3a49e7=_0x23bdfe[_0xfbb619(0x1d6)]();_0x3a49e7[_0xfbb619(0x1d2)](_0xfbb619(0x1d9))===0x0?_0x3447f5=_0x23bdfe[_0xfbb619(0x1cf)](_0xfbb619(0x1d9),''):_0x3447f5=_0x23bdfe;}return _0x3447f5;}
|
package/utils/GeometryUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x48ffe9=a72_0x2068;(function(_0x11a699,_0x31a19b){const _0x58fe03=a72_0x2068,_0x4af7e1=_0x11a699();while(!![]){try{const _0xd4ab30=-parseInt(_0x58fe03(0x173))/0x1+-parseInt(_0x58fe03(0x181))/0x2*(parseInt(_0x58fe03(0x169))/0x3)+parseInt(_0x58fe03(0x175))/0x4+-parseInt(_0x58fe03(0x183))/0x5*(parseInt(_0x58fe03(0x171))/0x6)+-parseInt(_0x58fe03(0x17b))/0x7*(parseInt(_0x58fe03(0x167))/0x8)+parseInt(_0x58fe03(0x17d))/0x9*(-parseInt(_0x58fe03(0x172))/0xa)+parseInt(_0x58fe03(0x180))/0xb;if(_0xd4ab30===_0x31a19b)break;else _0x4af7e1['push'](_0x4af7e1['shift']());}catch(_0x2d464e){_0x4af7e1['push'](_0x4af7e1['shift']());}}}(a72_0xe469,0x7a9a2));import a72_0x5a9e82 from'ol/proj/Projection';import{distance as a72_0x5436cb}from'ol/coordinate';import{getGeoProjection,isSpheroid,registerProj}from'./RegisterProjUtil';import{getArea as a72_0x3482c1}from'ol/sphere';import a72_0x5bfb5c from'jsts/org/locationtech/jts/operation/buffer/BufferOp.js';import a72_0x3b3bab from'jsts/org/locationtech/jts/operation/relate/RelateOp.js';function a72_0xe469(){const _0x1f98bb=['transform','getCoordinates','getPolygons','forEach','inject','difference','union','16wkOBuP','_geometries','3LCmRbg','contains','getGeometryType','write','clone','push','无法识别的数据类型','distance','6nxgijy','100790oGQXUl','742534gEadzH','bufferOp','3325176xEQtzr','getCoordinateFromPixel','Polygon','length','_holes','getArea','1097768bAaTvV','read','549oeRQdR','readGeometry','MultiPolygon','30854582oUetqE','1048836xuCiTh','writeGeometry','4693295vVrDHo'];a72_0xe469=function(){return _0x1f98bb;};return a72_0xe469();}import a72_0x44747b from'jsts/org/locationtech/jts/operation/overlay/OverlayOp';import a72_0x5370a2 from'jsts/org/locationtech/jts/io/OL3Parser.js';import a72_0x19f99c from'jsts/org/locationtech/jts/operation/polygonize/Polygonizer.js';import a72_0x4fe216 from'jsts/org/locationtech/jts/operation/distance/DistanceOp';import a72_0xeac95d 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 a72_0x22d2f6 from'ol/format/WKT';import a72_0x214f6a from'ol/format/EsriJSON';const _parser=new a72_0x5370a2(undefined,undefined);_parser[a72_0x48ffe9(0x188)](Point,LineString,LinearRing,Polygon,MultiPoint,MultiLineString,MultiPolygon,GeometryCollection);export function getArea(_0x436012,_0x38a8cf,_0x406835=![]){const _0x197c57=a72_0x48ffe9;if(!_0x436012)return 0x0;const _0x5ae926=isSpheroid(_0x38a8cf);if(_0x406835)return a72_0x3482c1(_0x436012,{'projection':_0x38a8cf});else{if(_0x5ae926){const _0x3c92e0=getGeoProjection(_0x436012,_0x38a8cf);return _0x436012[_0x197c57(0x16d)]()[_0x197c57(0x184)](_0x38a8cf,_0x3c92e0)[_0x197c57(0x17a)]();}return _0x436012['getArea']();}}export function bufferOp(_0x5a33ba,_0x566ad9){const _0x15660b=a72_0x48ffe9,_0xa1e7c2=_parser[_0x15660b(0x17c)](_0x5a33ba),_0x4dd0cf=a72_0x5bfb5c[_0x15660b(0x174)](_0xa1e7c2,_0x566ad9);return _parser[_0x15660b(0x16c)](_0x4dd0cf);}export function bufferPixel(_0x15b364,_0x15c67f,_0x2a161b){const _0x33411c=a72_0x48ffe9,_0x10b286=_0x2a161b['getPixelFromCoordinate'](_0x15b364[_0x33411c(0x185)]()),_0x3cc109=_0x2a161b[_0x33411c(0x176)]([_0x10b286[0x0]+_0x15c67f,_0x10b286[0x1]]),_0x5541b3=a72_0x5436cb(_0x15b364[_0x33411c(0x185)](),_0x3cc109),_0x42bb27=bufferOp(_0x15b364,_0x5541b3);return _0x42bb27;}export function contains(_0x4e0a81,_0x3db35e){const _0xef5d71=a72_0x48ffe9,_0x41fee5=_parser[_0xef5d71(0x17c)](_0x4e0a81),_0x3e195c=_parser[_0xef5d71(0x17c)](_0x3db35e);return a72_0x3b3bab[_0xef5d71(0x16a)](_0x41fee5,_0x3e195c);}export function crosses(_0x374c45,_0x39c64d){const _0x139b0c=a72_0x48ffe9,_0x12a2bb=_parser[_0x139b0c(0x17c)](_0x374c45),_0x10c4f9=_parser['read'](_0x39c64d);return a72_0x3b3bab['crosses'](_0x12a2bb,_0x10c4f9);}export function intersects(_0x2ff696,_0x250655){const _0x738d5c=a72_0x48ffe9,_0x4a1ead=_parser[_0x738d5c(0x17c)](_0x2ff696),_0x3e9301=_parser[_0x738d5c(0x17c)](_0x250655);return a72_0x3b3bab['intersects'](_0x4a1ead,_0x3e9301);}export function intersection(_0x2bb4cb,_0x4e3d1e){const _0x275dd7=a72_0x48ffe9,_0x120d84=_parser[_0x275dd7(0x17c)](_0x2bb4cb),_0x395f22=_parser[_0x275dd7(0x17c)](_0x4e3d1e);return _parser[_0x275dd7(0x16c)](a72_0x44747b['intersection'](_0x120d84,_0x395f22));}export function union(_0x88ccdd,_0x1a875e){const _0x37f141=a72_0x48ffe9,_0x21fee7=_parser[_0x37f141(0x17c)](_0x88ccdd),_0x20eb75=_parser[_0x37f141(0x17c)](_0x1a875e);return _parser[_0x37f141(0x16c)](a72_0x44747b[_0x37f141(0x166)](_0x21fee7,_0x20eb75));}export function difference(_0x3b4638,_0x86abbc){const _0x5d4aba=a72_0x48ffe9,_0x31af6=_parser['read'](_0x3b4638),_0x4dc1ed=_parser[_0x5d4aba(0x17c)](_0x86abbc);return _parser[_0x5d4aba(0x16c)](a72_0x44747b[_0x5d4aba(0x165)](_0x31af6,_0x4dc1ed));}export function distance(_0x3c53ac,_0x4f3b58){const _0x10b72c=a72_0x48ffe9,_0x383940=_parser[_0x10b72c(0x17c)](_0x3c53ac),_0x141a82=_parser[_0x10b72c(0x17c)](_0x4f3b58);return _parser['write'](a72_0x4fe216[_0x10b72c(0x170)](_0x383940,_0x141a82));}function a72_0x2068(_0x26be59,_0x477755){const _0xe469e9=a72_0xe469();return a72_0x2068=function(_0x206862,_0x56bcfc){_0x206862=_0x206862-0x165;let _0x353125=_0xe469e9[_0x206862];return _0x353125;},a72_0x2068(_0x26be59,_0x477755);}export function jstlSplit(_0x1f8cc1,_0x328709){const _0x2a1614=a72_0x48ffe9,_0x4ad47b=_parser['read'](_0x1f8cc1),_0x38d0de=_parser[_0x2a1614(0x17c)](_0x328709),_0x557e36=_0x4ad47b[_0x2a1614(0x16b)]();let _0x467d2a=[];function _0x912bad(_0x5ba8ae,_0x3eb759){const _0x3ad44b=_0x2a1614;let _0x599f3c=_0x5ba8ae[_0x3ad44b(0x179)],_0x2f2733=_0x5ba8ae['getExteriorRing']()[_0x3ad44b(0x166)](_0x3eb759),_0x4d33d5=new a72_0x19f99c();_0x4d33d5['add'](_0x2f2733);let _0x4c0be4=_0x4d33d5[_0x3ad44b(0x186)]();_0x4c0be4['array']['length']==0x2&&_0x4c0be4['array'][_0x3ad44b(0x187)](_0x4caece=>{const _0x4ac766=_0x3ad44b;_0x599f3c[_0x4ac766(0x187)](_0x398a77=>{const _0x28da76=_0x4ac766;let _0x53bd0a=[];for(let _0x3f739a in _0x398a77[_0x28da76(0x185)]()){_0x53bd0a[_0x28da76(0x16e)]([_0x398a77[_0x28da76(0x185)]()[_0x3f739a]['x'],_0x398a77[_0x28da76(0x185)]()[_0x3f739a]['y']]);}_0x398a77=_parser['read']({'coordinates':[_0x53bd0a],'type':_0x28da76(0x177)}),_0x4caece=_0x4caece[_0x28da76(0x165)](_0x398a77);}),_0x467d2a[_0x4ac766(0x16e)](_parser[_0x4ac766(0x16c)](_0x4caece));});}if(_0x557e36===_0x2a1614(0x177))_0x912bad(_0x4ad47b,_0x38d0de);else{if(_0x557e36===_0x2a1614(0x17f))_0x4ad47b[_0x2a1614(0x168)]['forEach']((_0x52ead5,_0x3e47bd)=>{_0x912bad(_0x52ead5,_0x38d0de);});else throw new Error(_0x2a1614(0x16f));}return _0x467d2a;}export function fromWKT(_0x2cca64,_0x10c624,_0x5c84f9){const _0x20d631=a72_0x48ffe9,_0x39347d=new a72_0x22d2f6();_0x10c624&®isterProj(_0x10c624);_0x5c84f9&®isterProj(_0x5c84f9);const _0x32466d=_0x39347d['readGeometry'](_0x2cca64);if(isGeometryEmpty(_0x32466d))return null;return _0x10c624&&_0x5c84f9?_0x32466d[_0x20d631(0x184)](new a72_0x5a9e82({'code':_0x10c624}),new a72_0x5a9e82({'code':_0x5c84f9})):_0x32466d;}export function fromWKTs(_0xc216a4,_0x50f9c8,_0x1a362d){const _0xbcae4a=a72_0x48ffe9,_0xbc0e3=new a72_0x22d2f6();let _0x118bdb=[];_0x50f9c8&®isterProj(_0x50f9c8);_0x1a362d&®isterProj(_0x1a362d);let _0x1acd5e,_0x42df44;_0x50f9c8&&_0x1a362d&&(_0x1acd5e=new a72_0x5a9e82({'code':_0x50f9c8}),_0x42df44=new a72_0x5a9e82({'code':_0x1a362d}));for(let _0x1ac752=0x0;_0x1ac752<_0xc216a4['length'];_0x1ac752++){const _0x1a1d2e=_0xbc0e3['readGeometry'](_0xc216a4[_0x1ac752]);if(isGeometryEmpty(_0x1a1d2e))continue;_0x1acd5e&&_0x42df44?_0x118bdb[_0xbcae4a(0x16e)](_0x1a1d2e[_0xbcae4a(0x184)](_0x1acd5e,_0x42df44)):_0x118bdb[_0xbcae4a(0x16e)](_0x1a1d2e);}return _0x118bdb;}export function toWKT(_0x4d5692){const _0x2198aa=a72_0x48ffe9,_0x4ed08d=new a72_0x22d2f6();if(isGeometryEmpty(_0x4d5692))return'';if(_0x4d5692 instanceof Circle){const _0x1eabf3=fromCircle(_0x4d5692);return _0x4ed08d[_0x2198aa(0x182)](_0x1eabf3);}else return _0x4ed08d[_0x2198aa(0x182)](_0x4d5692);}export function toGeoJSON(_0x3a5ece){const _0x368080=a72_0x48ffe9,_0xde0ff7=new a72_0xeac95d();return _0xde0ff7[_0x368080(0x182)](_0x3a5ece);}export function fromGeoJSON(_0x44655f){const _0x2e9e17=a72_0x48ffe9,_0x5c7b1e=new a72_0xeac95d();return _0x5c7b1e[_0x2e9e17(0x17e)](_0x44655f);}export function toEsriJSON(_0x53a9f4){const _0x42e997=a72_0x48ffe9,_0x6aa1b9=new a72_0x214f6a();return _0x6aa1b9[_0x42e997(0x182)](_0x53a9f4);}export function fromEsriJSON(_0x12e323){const _0x48507d=new a72_0x214f6a();return _0x48507d['readGeometry'](_0x12e323);}export function expandExtent(_0x406d0e,_0x20b6f6){const _0xf22c08=_0x406d0e[0x0],_0xcc0e00=_0x406d0e[0x1],_0x291117=_0x406d0e[0x2],_0x201b15=_0x406d0e[0x3],_0x483a4c=(_0xf22c08+_0x291117)/0x2,_0x4feb0f=(_0xcc0e00+_0x201b15)/0x2,_0x4d2125=_0x291117-_0xf22c08,_0x6b5675=_0x201b15-_0xcc0e00,_0x23996c=_0x4d2125*_0x20b6f6,_0x45e143=_0x6b5675*_0x20b6f6,_0x2c9e30=_0x483a4c-_0x23996c/0x2,_0x3dcf59=_0x483a4c+_0x23996c/0x2,_0x171805=_0x4feb0f-_0x45e143/0x2,_0x5ead08=_0x4feb0f+_0x45e143/0x2;return[_0x2c9e30,_0x171805,_0x3dcf59,_0x5ead08];}export function isGeometryEmpty(_0x256f08){const _0x477e58=a72_0x48ffe9;if(!_0x256f08)return!![];if(_0x256f08 instanceof Point||_0x256f08 instanceof MultiPoint){const _0x238b37=_0x256f08['getCoordinates']();return!_0x238b37||_0x238b37['some'](_0x9c64f1=>isNaN(_0x9c64f1));}else{if(_0x256f08 instanceof LineString||_0x256f08 instanceof MultiLineString)return _0x256f08[_0x477e58(0x185)]()['length']<0x2;else{if(_0x256f08 instanceof Polygon){const _0x9703fa=_0x256f08[_0x477e58(0x185)]();return!_0x9703fa||_0x9703fa['length']===0x0||_0x9703fa[0x0][_0x477e58(0x178)]<0x4;}else{if(_0x256f08 instanceof MultiPolygon){const _0x30a4cd=_0x256f08[_0x477e58(0x185)]();return!_0x30a4cd||_0x30a4cd[_0x477e58(0x178)]===0x0||_0x30a4cd[0x0][0x0][_0x477e58(0x178)]<0x4;}}}}return![];}
|
package/utils/LayerUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2c3f8a,_0x3d31b6){const _0x4fa612=a73_0xdfdc,_0x2e73c2=_0x2c3f8a();while(!![]){try{const _0x39d7cf=-parseInt(_0x4fa612(0x1df))/0x1*(parseInt(_0x4fa612(0x1d7))/0x2)+-parseInt(_0x4fa612(0x1e5))/0x3+parseInt(_0x4fa612(0x1e6))/0x4+parseInt(_0x4fa612(0x1eb))/0x5+-parseInt(_0x4fa612(0x1e2))/0x6+parseInt(_0x4fa612(0x1f3))/0x7+-parseInt(_0x4fa612(0x1f2))/0x8*(-parseInt(_0x4fa612(0x1da))/0x9);if(_0x39d7cf===_0x3d31b6)break;else _0x2e73c2['push'](_0x2e73c2['shift']());}catch(_0x481674){_0x2e73c2['push'](_0x2e73c2['shift']());}}}(a73_0x50c7,0x2f436));function a73_0xdfdc(_0x411e39,_0x33ee7f){const _0x50c772=a73_0x50c7();return a73_0xdfdc=function(_0xdfdc4d,_0x1aeb4f){_0xdfdc4d=_0xdfdc4d-0x1d4;let _0x581ab1=_0x50c772[_0xdfdc4d];return _0x581ab1;},a73_0xdfdc(_0x411e39,_0x33ee7f);}import a73_0xa7ee51 from'../utils/AxiosUtil';export function mapServiceTreeTransform(_0xbd8c96){const _0x160348=a73_0xdfdc;let _0x50440c=[];return _0xbd8c96&&_0xbd8c96['length']>0x0&&(_0xbd8c96[_0x160348(0x1ec)](_0x292a5f=>{const _0x5877b3=_0x160348;(!_0x292a5f[_0x5877b3(0x1f0)]||_0x292a5f['parentId']=='')&&_0x50440c[_0x5877b3(0x1ea)](Object['assign']({},_0x292a5f));}),_0x50440c=_0x50440c['sort']((_0x490601,_0x338ee9)=>{const _0x33d322=_0x160348;return(_0x490601[_0x33d322(0x1e4)]?_0x490601[_0x33d322(0x1e4)]:0x0)-(_0x338ee9['showIndex']?_0x338ee9['showIndex']:0x0);}),_0x50440c[_0x160348(0x1ec)](_0x26f41e=>{const _0x3385f1=_0x160348;_0x26f41e[_0x3385f1(0x1e3)]=setChildren(_0x26f41e['id'],_0xbd8c96);})),_0x50440c;}function setChildren(_0x1f52e4,_0x2ba8f7){const _0x433e54=a73_0xdfdc;let _0x290ea2=[];return _0x2ba8f7['forEach'](_0x15d4c6=>{const _0x426fa0=a73_0xdfdc;_0x1f52e4===(_0x15d4c6['parentId']==null?'':_0x15d4c6['parentId'])&&_0x290ea2[_0x426fa0(0x1ea)](Object[_0x426fa0(0x1e9)]({},_0x15d4c6));}),_0x290ea2=_0x290ea2[_0x433e54(0x1e0)]((_0x50eb14,_0x49554f)=>{const _0x361353=_0x433e54;return(_0x50eb14[_0x361353(0x1e4)]?_0x50eb14[_0x361353(0x1e4)]:0x0)-(_0x49554f[_0x361353(0x1e4)]?_0x49554f['showIndex']:0x0);}),_0x290ea2['length']>0x0&&_0x290ea2[_0x433e54(0x1ec)](_0x2fc40b=>{const _0x14aa21=_0x433e54;_0x2fc40b[_0x14aa21(0x1e3)]=setChildren(_0x2fc40b['id'],_0x2ba8f7);}),_0x290ea2;}function a73_0x50c7(){const _0x10ffc6=['get','replace','includes','parentId','title','1385192cwzkYZ','2088478WwugqJ','Legend','layerType','wms','4ueBjdF','&format=application/json','&format=image/png','18Uwtgnc','sublayers','geoserver','data','&width=','128551OmXmtM','sort','url','1660464wHrMjT','children','showIndex','418212yymgnF','322460xPcOiS','indexOf','length','assign','push','707865hNeAqY','forEach'];a73_0x50c7=function(){return _0x10ffc6;};return a73_0x50c7();}export async function getLayerLegend(_0x5d503b,_0x3f9be0){const _0x5aa9b7=a73_0xdfdc;if(!_0x5d503b||!_0x5d503b[_0x5aa9b7(0x1e1)]||!_0x5d503b['sublayers']||_0x5d503b[_0x5aa9b7(0x1db)][_0x5aa9b7(0x1e8)]==0x0||!_0x5d503b[_0x5aa9b7(0x1d5)])return;if(_0x5d503b['layerType'][_0x5aa9b7(0x1e7)](_0x5aa9b7(0x1dc))>-0x1)return await getGeoServerLayerLegend(_0x5d503b,_0x3f9be0);return;}export async function getGeoServerLayerLegend(_0x2aecfa,_0x5c3db4){const _0x11cc1a=a73_0xdfdc;if(!_0x2aecfa||!_0x2aecfa['url']||!_0x2aecfa['sublayers']||_0x2aecfa['sublayers'][_0x11cc1a(0x1e8)]==0x0)return;let _0x1d8680=_0x2aecfa['url'];const _0x17a75f=_0x2aecfa[_0x11cc1a(0x1db)];_0x1d8680=_0x1d8680[_0x11cc1a(0x1ee)]('gwc/service/wmts',_0x11cc1a(0x1d6));const _0x18d183=[];for(let _0x4fb826=0x0;_0x4fb826<_0x17a75f[_0x11cc1a(0x1e8)];_0x4fb826++){const _0x57d250=_0x17a75f[_0x4fb826];let _0x52a4cd='service=WMS&version=1.1.0&request=GetLegendGraphic&layer='+_0x57d250+_0x11cc1a(0x1d8);const _0x1d7f6b=_0x1d8680[_0x11cc1a(0x1ef)]('?')?_0x1d8680+'&'+_0x52a4cd:_0x1d8680+'?'+_0x52a4cd,_0x4b6f5e=await a73_0xa7ee51[_0x11cc1a(0x1ed)](_0x1d7f6b);if(_0x4b6f5e[_0x11cc1a(0x1dd)]&&_0x4b6f5e[_0x11cc1a(0x1dd)]['Legend']&&_0x4b6f5e['data']['Legend'][_0x11cc1a(0x1e8)]>0x0)_0x18d183['push'](_0x4b6f5e[_0x11cc1a(0x1dd)][_0x11cc1a(0x1d4)][0x0]);else{let _0x1a6d4b=_0x5c3db4?_0x5c3db4:0x10,_0x3c1322='service=WMS&version=1.1.0&request=GetLegendGraphic&layer='+_0x57d250+_0x11cc1a(0x1de)+_0x1a6d4b+'&height='+_0x1a6d4b+_0x11cc1a(0x1d9);const _0x83da44=_0x1d8680[_0x11cc1a(0x1ef)]('?')?_0x1d8680+'&'+_0x3c1322:_0x1d8680+'?'+_0x3c1322;_0x18d183[_0x11cc1a(0x1ea)]({'title':_0x2aecfa[_0x11cc1a(0x1f1)],'url':_0x83da44});}}return _0x18d183;}
|