ym-gis-2d 1.0.16 → 1.0.17
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 -1
- 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/entity/layer/IMapService.d.ts +4 -0
- package/entity/layer/IMapService.d.ts.map +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.d.ts.map +1 -1
- package/interaction/Select.js +1 -1
- package/interaction/Select.js.map +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.d.ts +6 -0
- package/mapView/Map.d.ts.map +1 -1
- package/mapView/Map.js +1 -1
- package/mapView/Map.js.map +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
|
-
const
|
|
1
|
+
const a75_0x4ba619=a75_0x11d0;(function(_0x13358f,_0x1b78d5){const _0x44cbab=a75_0x11d0,_0x79e6b2=_0x13358f();while(!![]){try{const _0x49a224=parseInt(_0x44cbab(0x106))/0x1+-parseInt(_0x44cbab(0x128))/0x2+-parseInt(_0x44cbab(0x108))/0x3+parseInt(_0x44cbab(0x107))/0x4+parseInt(_0x44cbab(0x112))/0x5+-parseInt(_0x44cbab(0x124))/0x6*(parseInt(_0x44cbab(0x122))/0x7)+parseInt(_0x44cbab(0xf8))/0x8;if(_0x49a224===_0x1b78d5)break;else _0x79e6b2['push'](_0x79e6b2['shift']());}catch(_0x2d1291){_0x79e6b2['push'](_0x79e6b2['shift']());}}}(a75_0x1b21,0xed420));import a75_0x5e6989 from'color';import a75_0x1905e0 from'./writeTextToCanvas';import{Icon}from'ol/style';import a75_0x3c760c from'ol/ImageState';import{parseImage}from'../../UrlUtil.js';function a75_0x1b21(){const _0x44a12b=['IDLE','restore','color\x20is\x20required','toDataURL','fromMakiIconId','2189159aNVRBs','lighten','6vPDazh','bold\x20','lineTo','drawImage','2685334kIiqRF','fromUrl','lineWidth','width','getContext','510944jnjzsz','save','size\x20is\x20required','getImageState','height','canvas','destination-out','strokeStyle','listenImageChange','text\x20is\x20required','createElement','stroke','fillRect','_cache','119978OlESMB','6141992vMOQoH','551886hruRoL','target','ERROR','moveTo','fillStyle','load','LOADED','#000000','#FFFFFF','hexa','5459150bcaAHA','beginPath','url\x20is\x20required','bezierCurveTo','scale','fromColor','globalCompositeOperation','id\x20is\x20required','closePath','round','getImage'];a75_0x1b21=function(){return _0x44a12b;};return a75_0x1b21();}class PinBuilder{constructor(){const _0x3be6a6=a75_0x11d0;this[_0x3be6a6(0x105)]={};}[a75_0x4ba619(0x117)](_0xaca61,_0x230a81){const _0x2bb37b=a75_0x4ba619;if(!_0xaca61)throw new Error('color\x20is\x20required');if(!_0x230a81)throw new Error(_0x2bb37b(0xfa));return createPin('','',_0xaca61,_0x230a81,this[_0x2bb37b(0x105)]);}[a75_0x4ba619(0x129)](_0x536a5f,_0x22d3c2,_0x266519){const _0x25ac54=a75_0x4ba619;if(!_0x536a5f)throw new Error(_0x25ac54(0x114));if(!_0x22d3c2)throw new Error('color\x20is\x20required');if(!_0x266519)throw new Error(_0x25ac54(0xfa));return createPin(_0x536a5f,'',_0x22d3c2,_0x266519,this[_0x25ac54(0x105)]);}[a75_0x4ba619(0x121)](_0x1e0656,_0x267b1b,_0x51c92d){const _0x4fdbab=a75_0x4ba619;if(!_0x1e0656)throw new Error(_0x4fdbab(0x119));if(!_0x267b1b)throw new Error(_0x4fdbab(0x11f));if(!_0x51c92d)throw new Error(_0x4fdbab(0xfa));return createPin(parseImage(_0x1e0656),'',_0x267b1b,_0x51c92d,this[_0x4fdbab(0x105)]);}['fromText'](_0xd1ad8c,_0x57cd7f,_0x212538){const _0x110f7e=a75_0x4ba619;if(!_0xd1ad8c)throw new Error(_0x110f7e(0x101));if(!_0x57cd7f)throw new Error(_0x110f7e(0x11f));if(!_0x212538)throw new Error(_0x110f7e(0xfa));return createPin('',_0xd1ad8c,_0x57cd7f,_0x212538,this[_0x110f7e(0x105)]);}}function a75_0x11d0(_0x32e5bf,_0x253a27){const _0x1b219c=a75_0x1b21();return a75_0x11d0=function(_0x11d073,_0x4d5da8){_0x11d073=_0x11d073-0xf7;let _0x1417c8=_0x1b219c[_0x11d073];return _0x1417c8;},a75_0x11d0(_0x32e5bf,_0x253a27);}function drawPin(_0x3e5ad0,_0x2b421d,_0x4ff774){const _0x1e2821=a75_0x4ba619;_0x3e5ad0[_0x1e2821(0xf9)](),_0x3e5ad0[_0x1e2821(0x116)](_0x4ff774/0x18,_0x4ff774/0x18),_0x3e5ad0[_0x1e2821(0x10c)]=_0x2b421d,_0x3e5ad0[_0x1e2821(0xff)]=a75_0x5e6989(_0x2b421d)[_0x1e2821(0x123)](0.6)[_0x1e2821(0x111)](),_0x3e5ad0[_0x1e2821(0x12a)]=0.846,_0x3e5ad0[_0x1e2821(0x113)](),_0x3e5ad0[_0x1e2821(0x10b)](6.72,0.422),_0x3e5ad0[_0x1e2821(0x126)](17.28,0.422),_0x3e5ad0[_0x1e2821(0x115)](18.553,0.422,19.577,1.758,19.577,3.415),_0x3e5ad0[_0x1e2821(0x126)](19.577,10.973),_0x3e5ad0[_0x1e2821(0x115)](19.577,12.63,18.553,13.966,17.282,13.966),_0x3e5ad0[_0x1e2821(0x126)](14.386,14.008),_0x3e5ad0['lineTo'](11.826,23.578),_0x3e5ad0['lineTo'](9.614,14.008),_0x3e5ad0['lineTo'](6.719,13.965),_0x3e5ad0[_0x1e2821(0x115)](5.446,13.983,4.422,12.629,4.422,10.972),_0x3e5ad0[_0x1e2821(0x126)](4.422,3.416),_0x3e5ad0[_0x1e2821(0x115)](4.423,1.76,5.447,0.423,6.718,0.423),_0x3e5ad0[_0x1e2821(0x11a)](),_0x3e5ad0['fill'](),_0x3e5ad0[_0x1e2821(0x103)](),_0x3e5ad0[_0x1e2821(0x11e)]();}function drawIcon(_0x2667b1,_0x5d2723,_0x2e33b3){const _0x16512d=a75_0x4ba619,_0x1606c9=_0x2e33b3/2.5;let _0x153ac6=_0x1606c9,_0x13a9a8=_0x1606c9;if(_0x5d2723[_0x16512d(0x12b)]>_0x5d2723[_0x16512d(0xfc)])_0x13a9a8=_0x1606c9*(_0x5d2723[_0x16512d(0xfc)]/_0x5d2723[_0x16512d(0x12b)]);else _0x5d2723[_0x16512d(0x12b)]<_0x5d2723[_0x16512d(0xfc)]&&(_0x153ac6=_0x1606c9*(_0x5d2723[_0x16512d(0x12b)]/_0x5d2723['height']));const _0x34002c=Math[_0x16512d(0x11b)]((_0x2e33b3-_0x153ac6)/0x2),_0x11f564=Math[_0x16512d(0x11b)](0x7/0x18*_0x2e33b3-_0x13a9a8/0x2);_0x2667b1[_0x16512d(0x118)]=_0x16512d(0xfe),_0x2667b1[_0x16512d(0x127)](_0x5d2723,_0x34002c-0x1,_0x11f564,_0x153ac6,_0x13a9a8),_0x2667b1[_0x16512d(0x127)](_0x5d2723,_0x34002c,_0x11f564-0x1,_0x153ac6,_0x13a9a8),_0x2667b1[_0x16512d(0x127)](_0x5d2723,_0x34002c+0x1,_0x11f564,_0x153ac6,_0x13a9a8),_0x2667b1['drawImage'](_0x5d2723,_0x34002c,_0x11f564+0x1,_0x153ac6,_0x13a9a8),_0x2667b1[_0x16512d(0x118)]='destination-over',_0x2667b1[_0x16512d(0x10c)]=_0x16512d(0x10f),_0x2667b1['fillRect'](_0x34002c-0x1,_0x11f564-0x1,_0x153ac6+0x2,_0x13a9a8+0x2),_0x2667b1[_0x16512d(0x118)]=_0x16512d(0xfe),_0x2667b1[_0x16512d(0x127)](_0x5d2723,_0x34002c,_0x11f564,_0x153ac6,_0x13a9a8),_0x2667b1[_0x16512d(0x118)]='destination-over',_0x2667b1[_0x16512d(0x10c)]=_0x16512d(0x110),_0x2667b1[_0x16512d(0x104)](_0x34002c-0x1,_0x11f564-0x2,_0x153ac6+0x2,_0x13a9a8+0x2);}const stringifyScratch=new Array(0x4);function createPin(_0x5ec6ca,_0x18619b,_0x29ea2d,_0x4d464e,_0x3165b4){const _0x1b4620=a75_0x4ba619;stringifyScratch[0x0]=_0x5ec6ca,stringifyScratch[0x1]=_0x18619b,stringifyScratch[0x2]=_0x29ea2d,stringifyScratch[0x3]=_0x4d464e;const _0x20201f=JSON['stringify'](stringifyScratch),_0x12a044=_0x3165b4[_0x20201f];if(_0x12a044)return _0x12a044;const _0x56d33a=document[_0x1b4620(0x102)](_0x1b4620(0xfd));_0x56d33a['width']=_0x4d464e,_0x56d33a['height']=_0x4d464e;const _0x486dca=_0x56d33a[_0x1b4620(0xf7)]('2d');drawPin(_0x486dca,_0x29ea2d,_0x4d464e);if(_0x5ec6ca)return new Promise(_0x449dff=>{const _0x315d4f=_0x1b4620;let _0x46fb55=new Icon({'src':_0x5ec6ca}),_0xd73ac2=_0x46fb55['getImageState']();_0xd73ac2===a75_0x3c760c['LOADED']||_0xd73ac2===a75_0x3c760c[_0x315d4f(0x10a)]?(drawIcon(_0x486dca,_0x46fb55[_0x315d4f(0x11c)](0x60),_0x4d464e),_0x3165b4[_0x20201f]=_0x56d33a['toDataURL'](),_0x449dff(_0x56d33a[_0x315d4f(0x120)]())):(_0xd73ac2===a75_0x3c760c[_0x315d4f(0x11d)]&&_0x46fb55[_0x315d4f(0x10d)](),_0x46fb55[_0x315d4f(0x100)](_0x45d4a1=>{const _0x47487f=_0x315d4f;_0xd73ac2=_0x45d4a1[_0x47487f(0x109)][_0x47487f(0xfb)](),(_0xd73ac2===a75_0x3c760c[_0x47487f(0x10e)]||_0xd73ac2===a75_0x3c760c[_0x47487f(0x10a)])&&(drawIcon(_0x486dca,_0x46fb55['getImage'](0x60),_0x4d464e),_0x3165b4[_0x20201f]=_0x56d33a[_0x47487f(0x120)](),_0x449dff(_0x56d33a[_0x47487f(0x120)]()));}));});else{if(_0x18619b){const _0xb4c8b=a75_0x1905e0(_0x18619b,{'font':_0x1b4620(0x125)+_0x4d464e+'px\x20sans-serif'});drawIcon(_0x486dca,_0xb4c8b,_0x4d464e);}}return _0x3165b4[_0x20201f]=_0x56d33a[_0x1b4620(0x120)](),_0x56d33a[_0x1b4620(0x120)]();}export default PinBuilder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a76_0x23be9c=a76_0x3da1;(function(_0x549560,_0x52dd6f){const _0x3abacb=a76_0x3da1,_0x566a86=_0x549560();while(!![]){try{const _0x289e17=-parseInt(_0x3abacb(0x11a))/0x1*(-parseInt(_0x3abacb(0x114))/0x2)+-parseInt(_0x3abacb(0xfd))/0x3+-parseInt(_0x3abacb(0xfc))/0x4+parseInt(_0x3abacb(0x10e))/0x5*(parseInt(_0x3abacb(0x113))/0x6)+parseInt(_0x3abacb(0x116))/0x7*(parseInt(_0x3abacb(0x118))/0x8)+-parseInt(_0x3abacb(0x11e))/0x9+-parseInt(_0x3abacb(0x10c))/0xa*(-parseInt(_0x3abacb(0x10f))/0xb);if(_0x289e17===_0x52dd6f)break;else _0x566a86['push'](_0x566a86['shift']());}catch(_0x13a6e2){_0x566a86['push'](_0x566a86['shift']());}}}(a76_0x2e92,0x1c131));import a76_0x114cbe from'./PinBuilder';function a76_0x3da1(_0x2fa687,_0x3328c1){const _0x2e9270=a76_0x2e92();return a76_0x3da1=function(_0x3da1d2,_0x10a143){_0x3da1d2=_0x3da1d2-0xfb;let _0x2ef3a6=_0x2e9270[_0x3da1d2];return _0x2ef3a6;},a76_0x3da1(_0x2fa687,_0x3328c1);}import{Icon}from'ol/style';import a76_0x3ded9a from'ol/ImageState';import a76_0x40ba96 from'ol/events/Event';import{shared as a76_0x2c968b}from'./ImageCache';function a76_0x2e92(){const _0x5486b0=['52646MPRlzX','image','_icon','fromText','238620xrUDFl','34wbfMkj','markerColor','602ljVIvM','_listener','5272yJlFox','set','12574ECHePN','listenImageChange','markerSize','get','528579DbYFfX','markerLabel','catch','898316Hofxhq','353091dVeBcX','then','ERROR','warn','load','dispatchEvent','getImage','fromUrl','loadIcon','target','error','LOADED','_imageState','IDLE','options','430gTVHlH','getImageState','5ZndJSE'];a76_0x2e92=function(){return _0x5486b0;};return a76_0x2e92();}export default class PinIcon{constructor(_0x5658a0){const _0x173e1a=a76_0x3da1;this[_0x173e1a(0x10b)]=_0x5658a0||{},this[_0x173e1a(0x109)]=a76_0x3ded9a[_0x173e1a(0x10a)],this[_0x173e1a(0x111)]=a76_0x2c968b[_0x173e1a(0x11d)](this[_0x173e1a(0x10b)]),this[_0x173e1a(0x111)]&&(this[_0x173e1a(0x109)]=a76_0x3ded9a[_0x173e1a(0x108)]);}[a76_0x23be9c(0x101)](){const _0x57492d=a76_0x23be9c;try{let _0xd7d7d5,_0x3551ab=new a76_0x114cbe();if(this[_0x57492d(0x10b)][_0x57492d(0x11f)])_0xd7d7d5=_0x3551ab[_0x57492d(0x112)](this[_0x57492d(0x10b)][_0x57492d(0x11f)],this[_0x57492d(0x10b)]['markerColor'],this[_0x57492d(0x10b)][_0x57492d(0x11c)]||0x30);else this['options'][_0x57492d(0x110)]&&(_0xd7d7d5=_0x3551ab[_0x57492d(0x104)](this['options']['image'],this['options'][_0x57492d(0x115)],this[_0x57492d(0x10b)][_0x57492d(0x11c)]||0x30));Promise['resolve'](_0xd7d7d5)[_0x57492d(0xfe)](_0x6ee6a8=>{const _0x559517=_0x57492d;this[_0x559517(0x105)](_0x6ee6a8);})[_0x57492d(0xfb)](_0xa47167=>{const _0x4adbef=_0x57492d;console['warn'](_0xa47167),this['_imageState']=a76_0x3ded9a[_0x4adbef(0xff)],this['dispatchEvent']('error');});}catch(_0x30e9d4){console[_0x57492d(0x100)](_0x30e9d4),this['_imageState']=a76_0x3ded9a[_0x57492d(0xff)],this[_0x57492d(0x102)](_0x57492d(0x107));}}[a76_0x23be9c(0x105)](_0x27a9c6){const _0x2fed22=a76_0x23be9c;this['_icon']=new Icon({'src':_0x27a9c6}),a76_0x2c968b[_0x2fed22(0x119)](this['options'],this[_0x2fed22(0x111)]);let _0x42583e=this[_0x2fed22(0x111)][_0x2fed22(0x10d)]();_0x42583e===a76_0x3ded9a[_0x2fed22(0x108)]||_0x42583e===a76_0x3ded9a[_0x2fed22(0xff)]?(this['_imageState']=this['_icon'][_0x2fed22(0x10d)](),this[_0x2fed22(0x102)](_0x2fed22(0x101))):(_0x42583e===a76_0x3ded9a[_0x2fed22(0x10a)]&&this[_0x2fed22(0x111)][_0x2fed22(0x101)](),this[_0x2fed22(0x111)][_0x2fed22(0x11b)](_0x3ff216=>{const _0x2869fd=_0x2fed22;_0x42583e=_0x3ff216[_0x2869fd(0x106)][_0x2869fd(0x10d)](),(_0x42583e===a76_0x3ded9a[_0x2869fd(0x108)]||_0x42583e===a76_0x3ded9a[_0x2869fd(0xff)])&&(this[_0x2869fd(0x109)]=this['_icon'][_0x2869fd(0x10d)](),this[_0x2869fd(0x102)](_0x2869fd(0x101)));}));}[a76_0x23be9c(0x10d)](){const _0x4f0f8e=a76_0x23be9c;return this[_0x4f0f8e(0x109)];}[a76_0x23be9c(0x103)](){const _0x2c7861=a76_0x23be9c;var _0x327f5c;return(_0x327f5c=this[_0x2c7861(0x111)])===null||_0x327f5c===void 0x0?void 0x0:_0x327f5c['getImage']();}[a76_0x23be9c(0x11b)](_0x1ec71f){const _0x540317=a76_0x23be9c;this[_0x540317(0x117)]=_0x1ec71f;}[a76_0x23be9c(0x102)](_0x45a284){const _0x77f19a=a76_0x23be9c;if(this[_0x77f19a(0x117)]){let _0x4a9f0b=new a76_0x40ba96(_0x45a284);_0x4a9f0b[_0x77f19a(0x106)]=this,this[_0x77f19a(0x117)](_0x4a9f0b);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a77_0x11fd(_0x11a73b,_0x5dff45){const _0x48103f=a77_0x4810();return a77_0x11fd=function(_0x11fd40,_0x8d777d){_0x11fd40=_0x11fd40-0x1e7;let _0x3352c0=_0x48103f[_0x11fd40];return _0x3352c0;},a77_0x11fd(_0x11a73b,_0x5dff45);}function a77_0x4810(){const _0x2b2914=['strokeWidth','1540707CASZln','4uszYFX','getComputedStyle','ceil','visibility','lineJoin','2715345VioFQo','55612678NeIXfr','hidden','body','white','data','style','115530ocyrfI','defaultView','dimensions','#00000000','length','mozImageSmoothingEnabled','470617AqWrIb','12pHiEVS','black','lineWidth','padding','round','getContext','font-size','createElement','10px\x20sans-serif','height','removeChild','stroke','5431936nKfjgB','132roNRXP','fillRect','ascent','text\x20is\x20required.','imageSmoothingEnabled','#000000','strokeStyle','fillStyle','#FFFFFF','strokeText','fillColor','width','font','fillText','10HFMYAD','305811fUtwOI','msImageSmoothingEnabled','canvas','test','56WDGiun','minx'];a77_0x4810=function(){return _0x2b2914;};return a77_0x4810();}(function(_0x516e35,_0x16a25f){const _0x237ce5=a77_0x11fd,_0x9be101=_0x516e35();while(!![]){try{const _0x598e1e=-parseInt(_0x237ce5(0x1ee))/0x1+-parseInt(_0x237ce5(0x1eb))/0x2*(parseInt(_0x237ce5(0x1fb))/0x3)+parseInt(_0x237ce5(0x1ef))/0x4*(parseInt(_0x237ce5(0x1f4))/0x5)+-parseInt(_0x237ce5(0x20f))/0x6*(parseInt(_0x237ce5(0x201))/0x7)+-parseInt(_0x237ce5(0x20e))/0x8+parseInt(_0x237ce5(0x1e7))/0x9*(parseInt(_0x237ce5(0x21d))/0xa)+parseInt(_0x237ce5(0x1f5))/0xb*(parseInt(_0x237ce5(0x202))/0xc);if(_0x598e1e===_0x16a25f)break;else _0x9be101['push'](_0x9be101['shift']());}catch(_0x5c3e9c){_0x9be101['push'](_0x9be101['shift']());}}}(a77_0x4810,0xd0e85));function measureText(_0x3340b9,_0x2a586d,_0xc47179,_0x8b4398,_0x47b173){const _0x51177d=a77_0x11fd,_0x56b46f=_0x3340b9['measureText'](_0x2a586d),_0x1dc0ae=!/\S/[_0x51177d(0x1ea)](_0x2a586d);if(!_0x1dc0ae&&document[_0x51177d(0x1fc)]){const _0x313af2=document[_0x51177d(0x1fc)][_0x51177d(0x1f0)](_0x3340b9['canvas'])['getPropertyValue'](_0x51177d(0x208))['replace']('px',''),_0x4f1165=document[_0x51177d(0x209)](_0x51177d(0x1e9)),_0x6ed2d0=0x64,_0x13b237=_0x56b46f[_0x51177d(0x21a)]+_0x6ed2d0|0x0,_0x310011=0x3*(_0x313af2-0x0),_0x2389f1=_0x310011/0x2;_0x4f1165[_0x51177d(0x21a)]=_0x13b237,_0x4f1165['height']=_0x310011;const _0x5ba976=_0x4f1165['getContext']('2d');if(!_0x5ba976)return{};_0x5ba976[_0x51177d(0x21b)]=_0xc47179,_0x5ba976['fillStyle']=_0x51177d(0x1f8),_0x5ba976['fillRect'](0x0,0x0,_0x4f1165[_0x51177d(0x21a)]+0x1,_0x4f1165[_0x51177d(0x20b)]+0x1);_0x8b4398&&(_0x5ba976[_0x51177d(0x215)]=_0x51177d(0x203),_0x5ba976[_0x51177d(0x204)]=_0x3340b9[_0x51177d(0x204)],_0x5ba976['strokeText'](_0x2a586d,_0x6ed2d0/0x2,_0x2389f1));_0x47b173&&(_0x5ba976[_0x51177d(0x216)]=_0x51177d(0x203),_0x5ba976[_0x51177d(0x21c)](_0x2a586d,_0x6ed2d0/0x2,_0x2389f1));const _0x15b5ba=_0x5ba976['getImageData'](0x0,0x0,_0x13b237,_0x310011)[_0x51177d(0x1f9)],_0x18d3f2=_0x15b5ba[_0x51177d(0x1ff)],_0x339969=_0x13b237*0x4;let _0x11e57c,_0x1679be,_0xaff2cd=0x0,_0x29d69a=0x0;for(_0x11e57c=0x0;_0x11e57c<_0x18d3f2;++_0x11e57c){if(_0x15b5ba[_0x11e57c]!==0xff){_0xaff2cd=_0x11e57c/_0x339969|0x0;break;}}for(_0x11e57c=_0x18d3f2-0x1;_0x11e57c>=0x0;--_0x11e57c){if(_0x15b5ba[_0x11e57c]!==0xff){_0x29d69a=_0x11e57c/_0x339969|0x0;break;}}let _0xde3290=-0x1;for(_0x11e57c=0x0;_0x11e57c<_0x13b237&&_0xde3290===-0x1;++_0x11e57c){for(_0x1679be=0x0;_0x1679be<_0x310011;++_0x1679be){const _0x1b5372=_0x11e57c*0x4+_0x1679be*_0x339969;if(_0x15b5ba[_0x1b5372]!==0xff||_0x15b5ba[_0x1b5372+0x1]!==0xff||_0x15b5ba[_0x1b5372+0x2]!==0xff||_0x15b5ba[_0x1b5372+0x3]!==0xff){_0xde3290=_0x11e57c;break;}}}return{'width':_0x56b46f[_0x51177d(0x21a)],'height':_0x29d69a-_0xaff2cd,'ascent':_0x2389f1-_0xaff2cd,'descent':_0x29d69a-_0x2389f1,'minx':_0xde3290-_0x6ed2d0/0x2};}return{'width':_0x56b46f['width'],'height':0x0,'ascent':0x0,'descent':0x0,'minx':0x0};}let imageSmoothingEnabledName='';function writeTextToCanvas(_0x18fcb0,_0x1a38f5){const _0x28fbed=a77_0x11fd;if(!_0x18fcb0)throw new Error(_0x28fbed(0x212));if(_0x18fcb0==='')return undefined;_0x1a38f5=defaultValue(_0x1a38f5,{});const _0x589ba7=defaultValue(_0x1a38f5[_0x28fbed(0x21b)],_0x28fbed(0x20a)),_0x121c60=defaultValue(_0x1a38f5[_0x28fbed(0x20d)],![]),_0xa67bc3=defaultValue(_0x1a38f5['fill'],!![]),_0x2f3112=defaultValue(_0x1a38f5[_0x28fbed(0x1ed)],0x1),_0x4b0bb2=defaultValue(_0x1a38f5['backgroundColor'],_0x28fbed(0x1fe)),_0x493ecd=defaultValue(_0x1a38f5[_0x28fbed(0x205)],0x0),_0x491282=_0x493ecd*0x2,_0x29647d=document[_0x28fbed(0x209)]('canvas');_0x29647d[_0x28fbed(0x21a)]=0x1,_0x29647d[_0x28fbed(0x20b)]=0x1,_0x29647d[_0x28fbed(0x1fa)][_0x28fbed(0x21b)]=_0x589ba7;const _0x21542a=_0x29647d[_0x28fbed(0x207)]('2d');if(!imageSmoothingEnabledName&&_0x21542a){if(_0x21542a[_0x28fbed(0x213)])imageSmoothingEnabledName=_0x28fbed(0x213);else{if(_0x21542a[_0x28fbed(0x200)])imageSmoothingEnabledName='mozImageSmoothingEnabled';else{if(_0x21542a['webkitImageSmoothingEnabled'])imageSmoothingEnabledName='webkitImageSmoothingEnabled';else _0x21542a[_0x28fbed(0x1e8)]&&(imageSmoothingEnabledName='msImageSmoothingEnabled');}}}_0x21542a[_0x28fbed(0x21b)]=_0x589ba7,_0x21542a[_0x28fbed(0x1f3)]=_0x28fbed(0x206),_0x21542a[_0x28fbed(0x204)]=_0x2f3112,_0x21542a[imageSmoothingEnabledName]=![],_0x29647d[_0x28fbed(0x1fa)]['visibility']=_0x28fbed(0x1f6),document[_0x28fbed(0x1f7)]['appendChild'](_0x29647d);const _0x227b9a=measureText(_0x21542a,_0x18fcb0,_0x589ba7,_0x121c60,_0xa67bc3);if(!_0x227b9a)return;_0x29647d[_0x28fbed(0x1fd)]=_0x227b9a,document['body'][_0x28fbed(0x20c)](_0x29647d),_0x29647d[_0x28fbed(0x1fa)][_0x28fbed(0x1f2)]='';const _0x5289a0=-(_0x227b9a['minx']?_0x227b9a[_0x28fbed(0x1ec)]:0x0),_0x4551ca=Math[_0x28fbed(0x1f1)](_0x227b9a[_0x28fbed(0x21a)])+_0x5289a0+_0x491282,_0x155add=(_0x227b9a['height']?_0x227b9a['height']:0x0)+_0x491282,_0xa51deb=_0x155add-(_0x227b9a['ascent']?_0x227b9a[_0x28fbed(0x211)]:0x0)+_0x493ecd,_0x32697c=_0x155add-_0xa51deb+_0x491282;return _0x29647d[_0x28fbed(0x21a)]=_0x4551ca,_0x29647d[_0x28fbed(0x20b)]=_0x155add,_0x21542a['font']=_0x589ba7,_0x21542a[_0x28fbed(0x1f3)]=_0x28fbed(0x206),_0x21542a[_0x28fbed(0x204)]=_0x2f3112,_0x21542a[imageSmoothingEnabledName]=![],_0x4b0bb2!==_0x28fbed(0x1fe)&&(_0x21542a[_0x28fbed(0x216)]=_0x4b0bb2,_0x21542a[_0x28fbed(0x210)](0x0,0x0,_0x29647d[_0x28fbed(0x21a)],_0x29647d[_0x28fbed(0x20b)])),_0x121c60&&(_0x21542a[_0x28fbed(0x215)]=defaultValue(_0x1a38f5['strokeColor'],_0x28fbed(0x214)),_0x21542a[_0x28fbed(0x218)](_0x18fcb0,_0x5289a0+_0x493ecd,_0x32697c)),_0xa67bc3&&(_0x21542a[_0x28fbed(0x216)]=defaultValue(_0x1a38f5[_0x28fbed(0x219)],_0x28fbed(0x217)),_0x21542a[_0x28fbed(0x21c)](_0x18fcb0,_0x5289a0+_0x493ecd,_0x32697c)),_0x29647d;}function defaultValue(_0x3ff95b,_0xb87520){if(_0x3ff95b!==undefined&&_0x3ff95b!==null)return _0x3ff95b;return _0xb87520;}export default writeTextToCanvas;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82_0x424f89=a82_0x4b95;function a82_0x331f(){const _0x3c6e40=['101646vKeZPL','getCode','layers','getProjection','12VmwFYP','73765PVPQnQ','getSize','geometryType','params','run','writeGeometryObject','getView','valueOf','path','all','getCenter','returnZ','142895fyfQff','inSR','returnM','_setGeometryParams','request','746571hoEHqQ','between','110dCPdXw','calculateExtent','url','240468hqhLjy','6PilpqT','imageDisplay','8425461AvzgkW','getType','resolution','8mxeHBc','time','160936MxAmOl','layerDefs','getResolution','geometry','returnGeometry'];a82_0x331f=function(){return _0x3c6e40;};return a82_0x331f();}function a82_0x4b95(_0x358e3f,_0xf448e){const _0x331fce=a82_0x331f();return a82_0x4b95=function(_0x4b9579,_0x37f8e7){_0x4b9579=_0x4b9579-0x14f;let _0x49c884=_0x331fce[_0x4b9579];return _0x49c884;},a82_0x4b95(_0x358e3f,_0xf448e);}(function(_0x43d11a,_0x34a0e8){const _0x348006=a82_0x4b95,_0x5e2528=_0x43d11a();while(!![]){try{const _0x21546c=-parseInt(_0x348006(0x15d))/0x1+-parseInt(_0x348006(0x167))/0x2+-parseInt(_0x348006(0x150))/0x3*(parseInt(_0x348006(0x16f))/0x4)+-parseInt(_0x348006(0x151))/0x5*(-parseInt(_0x348006(0x168))/0x6)+parseInt(_0x348006(0x162))/0x7*(-parseInt(_0x348006(0x16d))/0x8)+parseInt(_0x348006(0x174))/0x9*(-parseInt(_0x348006(0x164))/0xa)+parseInt(_0x348006(0x16a))/0xb;if(_0x21546c===_0x34a0e8)break;else _0x5e2528['push'](_0x5e2528['shift']());}catch(_0x499eca){_0x5e2528['push'](_0x5e2528['shift']());}}}(a82_0x331f,0x1eb38));import a82_0x348ab2 from'ol/format/EsriJSON';import a82_0x33b240 from'ol/format/GeoJSON';import{getPointResolution}from'ol/proj';import a82_0x4aea5a from'./Task';import{appendPath}from'../../UrlUtil';import{getEsriSpatialReference}from'../../EsriUtil';export default class Identify extends a82_0x4aea5a{constructor(_0x2205f1,_0x4b2be4,_0x4042e2){const _0x18f2b8=a82_0x4b95;super(_0x2205f1,_0x4b2be4,_0x4042e2),this[_0x18f2b8(0x159)]='identify',this[_0x18f2b8(0x154)]={'layers':_0x18f2b8(0x15a),'tolerance':0x0,'returnGeometry':!![]},this['tolerance']=0x3,this[_0x18f2b8(0x16c)]=0x0,this['url']=appendPath(this[_0x18f2b8(0x166)],this[_0x18f2b8(0x159)]),_0x4b2be4&&((_0x4b2be4[_0x18f2b8(0x173)]===!![]||_0x4b2be4[_0x18f2b8(0x173)]===![])&&(this[_0x18f2b8(0x154)][_0x18f2b8(0x173)]=_0x4b2be4['returnGeometry']),_0x4b2be4[_0x18f2b8(0x176)]&&(this[_0x18f2b8(0x154)][_0x18f2b8(0x176)]=_0x4b2be4[_0x18f2b8(0x176)]),_0x4b2be4[_0x18f2b8(0x170)]&&(this[_0x18f2b8(0x154)][_0x18f2b8(0x170)]=_0x4b2be4[_0x18f2b8(0x170)]),(_0x4b2be4[_0x18f2b8(0x15c)]===!![]||_0x4b2be4[_0x18f2b8(0x15c)]===![])&&(this[_0x18f2b8(0x154)][_0x18f2b8(0x15c)]=_0x4b2be4[_0x18f2b8(0x15c)]),(_0x4b2be4[_0x18f2b8(0x15f)]===!![]||_0x4b2be4['returnM']===![])&&(this[_0x18f2b8(0x154)][_0x18f2b8(0x15f)]=_0x4b2be4['returnM']));}['at'](_0x81cbd3,_0x6c1cf6){const _0x429311=a82_0x4b95;let _0x19c71a,_0x122c11;const _0x1345d2=new a82_0x33b240();_0x19c71a=_0x81cbd3,_0x122c11=getEsriSpatialReference(_0x6c1cf6[_0x429311(0x157)]()['getProjection']()['getCode']());const _0x59d3c8=_0x6c1cf6['getSize']();_0x59d3c8&&(this[_0x429311(0x154)][_0x429311(0x169)]=[_0x59d3c8[0x0],_0x59d3c8[0x1],0x60]);this[_0x429311(0x154)]['sr']=_0x122c11;const _0x412bf2=_0x6c1cf6[_0x429311(0x157)]()[_0x429311(0x165)](_0x6c1cf6[_0x429311(0x152)]());this[_0x429311(0x154)]['mapExtent']={'xmin':_0x412bf2[0x0],'ymin':_0x412bf2[0x1],'xmax':_0x412bf2[0x2],'ymax':_0x412bf2[0x3],'spatialReference':_0x122c11};const _0x4634b2=_0x6c1cf6[_0x429311(0x157)]()[_0x429311(0x171)](),_0x3c817=_0x6c1cf6[_0x429311(0x157)]()[_0x429311(0x15b)]();return _0x4634b2&&_0x3c817&&(this[_0x429311(0x16c)]=getPointResolution(_0x6c1cf6[_0x429311(0x157)]()['getProjection'](),_0x4634b2,_0x3c817)),this[_0x429311(0x160)](_0x19c71a,_0x6c1cf6[_0x429311(0x157)]()[_0x429311(0x14f)]()[_0x429311(0x175)]()),this;}[a82_0x424f89(0x163)](_0xcb632b,_0x5eb669){const _0x491474=a82_0x424f89;return this['params'][_0x491474(0x16e)]=[_0xcb632b[_0x491474(0x158)](),_0x5eb669[_0x491474(0x158)]()],this;}[a82_0x424f89(0x155)](){const _0x3bd29d=a82_0x424f89;this[_0x3bd29d(0x161)]();}[a82_0x424f89(0x160)](_0x2fbfd3,_0x2918db){const _0x36beb8=a82_0x424f89;var _0x29c9e2=new a82_0x348ab2();const _0x3ef8ac=_0x29c9e2[_0x36beb8(0x156)](_0x2fbfd3);this[_0x36beb8(0x154)][_0x36beb8(0x15e)]=getEsriSpatialReference(_0x2918db),this['params'][_0x36beb8(0x172)]=_0x3ef8ac,this[_0x36beb8(0x154)][_0x36beb8(0x153)]=this['geojsonTypeToArcGIS'](_0x2fbfd3[_0x36beb8(0x16b)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a83_0x170eab=a83_0x5b42;(function(_0x2a285d,_0x342e97){const _0x866284=a83_0x5b42,_0x1af680=_0x2a285d();while(!![]){try{const _0x3bbb51=-parseInt(_0x866284(0x13f))/0x1*(-parseInt(_0x866284(0x123))/0x2)+parseInt(_0x866284(0x111))/0x3+parseInt(_0x866284(0x12d))/0x4*(parseInt(_0x866284(0x12f))/0x5)+-parseInt(_0x866284(0x12e))/0x6+parseInt(_0x866284(0x126))/0x7+-parseInt(_0x866284(0x115))/0x8*(parseInt(_0x866284(0x12a))/0x9)+-parseInt(_0x866284(0x135))/0xa*(parseInt(_0x866284(0x128))/0xb);if(_0x3bbb51===_0x342e97)break;else _0x1af680['push'](_0x1af680['shift']());}catch(_0x2dbfcf){_0x1af680['push'](_0x1af680['shift']());}}}(a83_0x2bd9,0xb5883));import a83_0x3b2ea2 from'ol/format/EsriJSON';import a83_0x19b592 from'./Task';import{getEsriSpatialReference}from'../../EsriUtil';import{appendPath}from'../../UrlUtil';function a83_0x5b42(_0x42bf4e,_0x3100b3){const _0x2bd9e9=a83_0x2bd9();return a83_0x5b42=function(_0x5b4282,_0xde29e8){_0x5b4282=_0x5b4282-0x10e;let _0x371696=_0x2bd9e9[_0x5b4282];return _0x371696;},a83_0x5b42(_0x42bf4e,_0x3100b3);}function a83_0x2bd9(){const _0x18077e=['overlaps','units','geometry','656127dXaYmr','forEach','warn','query','27416yqVNQJ','distance','url','esriSpatialRelEnvelopeIntersects','getExtent','returnZ','where','ids','esriSpatialRelContains','readFeature','returnDistinctValues','data','returnGeometry','/query','539468koANPk','length','geojsonTypeToArcGIS','6790798LrAZgo','esriSpatialRelOverlaps','770693BeGdur','crosses','2628PndIPV','returnIdsOnly','ASC','76JBhyTP','1920744aggcnN','333665IDaqHT','maxAllowableOffset','abs','returnM','orderBy','geometryType','210OoefbD','returnCountOnly','one\x20common\x20syntax\x20error\x20in\x20query\x20requests\x20is\x20encasing\x20string\x20values\x20in\x20double\x20quotes\x20instead\x20of\x20single\x20quotes','params','esriSRUnit_Meter','apply','intersects','nearby','contains','1=1','4ajzLMV','layer','_setGeometryParams','path','within','spatialRel','_trapSQLerrors','simplify','esriSpatialRelTouches','between','esriSpatialRelIndexIntersects','bboxIntersects','getSize','No\x20features\x20found','push','outSR','request','orderByFields','_cleanParams','distinct','esriSpatialRelWithin','valueOf','features','getTime','returnExtentOnly'];a83_0x2bd9=function(){return _0x18077e;};return a83_0x2bd9();}export default class Query extends a83_0x19b592{constructor(_0x33f652,_0x2b143c,_0x456db7){const _0x484e9a=a83_0x5b42;super(_0x33f652,_0x2b143c,_0x456db7),this[_0x484e9a(0x142)]=_0x484e9a(0x114),this[_0x484e9a(0x138)]={'returnGeometry':!![],'where':_0x484e9a(0x13e),'outFields':'*','returnZ':![],'returnM':![],'t':new Date()[_0x484e9a(0x156)]()},this[_0x484e9a(0x117)]=appendPath(this[_0x484e9a(0x117)],this[_0x484e9a(0x142)]),_0x2b143c&&((_0x2b143c['returnGeometry']===!![]||_0x2b143c[_0x484e9a(0x121)]===![])&&(this['params'][_0x484e9a(0x121)]=_0x2b143c[_0x484e9a(0x121)]),_0x2b143c[_0x484e9a(0x11b)]&&(this[_0x484e9a(0x138)]['where']=_0x2b143c['where']),_0x2b143c[_0x484e9a(0x14e)]&&(this[_0x484e9a(0x138)]['outSR']=getEsriSpatialReference(_0x2b143c[_0x484e9a(0x14e)])),(_0x2b143c[_0x484e9a(0x11a)]===!![]||_0x2b143c[_0x484e9a(0x11a)]===![])&&(this[_0x484e9a(0x138)]['returnZ']=_0x2b143c[_0x484e9a(0x11a)]),(_0x2b143c['returnM']===!![]||_0x2b143c[_0x484e9a(0x132)]===![])&&(this[_0x484e9a(0x138)][_0x484e9a(0x132)]=_0x2b143c[_0x484e9a(0x132)]));}[a83_0x170eab(0x143)](_0x49e798,_0x4278b7){const _0x1c7ff7=a83_0x170eab;return this[_0x1c7ff7(0x141)](_0x49e798,_0x4278b7),this[_0x1c7ff7(0x138)]['spatialRel']=_0x1c7ff7(0x11d),this;}[a83_0x170eab(0x13b)](_0x3befae,_0x5735fe){const _0x6c152f=a83_0x170eab;return this[_0x6c152f(0x141)](_0x3befae,_0x5735fe),this[_0x6c152f(0x138)][_0x6c152f(0x144)]='esriSpatialRelIntersects',this;}[a83_0x170eab(0x13d)](_0x37d5b6,_0x2892a8){const _0x23c440=a83_0x170eab;return this[_0x23c440(0x141)](_0x37d5b6,_0x2892a8),this[_0x23c440(0x138)][_0x23c440(0x144)]=_0x23c440(0x153),this;}[a83_0x170eab(0x129)](_0x52fdb3,_0xbffd22){const _0x27d559=a83_0x170eab;return this[_0x27d559(0x141)](_0x52fdb3,_0xbffd22),this['params'][_0x27d559(0x144)]='esriSpatialRelCrosses',this;}['touches'](_0x8b66c3,_0x5e79fa){const _0x28434b=a83_0x170eab;return this['_setGeometryParams'](_0x8b66c3,_0x5e79fa),this[_0x28434b(0x138)][_0x28434b(0x144)]=_0x28434b(0x147),this;}[a83_0x170eab(0x10e)](_0x3e8096,_0x294131){const _0x2d4886=a83_0x170eab;return this['_setGeometryParams'](_0x3e8096,_0x294131),this[_0x2d4886(0x138)]['spatialRel']=_0x2d4886(0x127),this;}[a83_0x170eab(0x14a)](_0x5100e7,_0x42b5c7){const _0x157a3e=a83_0x170eab;return this['_setGeometryParams'](_0x5100e7,_0x42b5c7),this['params'][_0x157a3e(0x144)]=_0x157a3e(0x118),this;}['indexIntersects'](_0x752cc1,_0x1f0961){const _0x1d15d6=a83_0x170eab;return this[_0x1d15d6(0x141)](_0x752cc1,_0x1f0961),this['params'][_0x1d15d6(0x144)]=_0x1d15d6(0x149),this;}[a83_0x170eab(0x13c)](_0x170064,_0x25be13,_0x2a7358){const _0x3fd6e8=a83_0x170eab;return this[_0x3fd6e8(0x141)](_0x170064,_0x25be13),this[_0x3fd6e8(0x138)][_0x3fd6e8(0x144)]='esriSpatialRelIntersects',this[_0x3fd6e8(0x138)][_0x3fd6e8(0x10f)]=_0x3fd6e8(0x139),this[_0x3fd6e8(0x138)][_0x3fd6e8(0x116)]=_0x2a7358,this;}[a83_0x170eab(0x11b)](_0x8f041){const _0x1b05d9=a83_0x170eab;return this[_0x1b05d9(0x138)]['where']=_0x8f041,this;}[a83_0x170eab(0x148)](_0x39927b,_0x19d037){const _0x1c4a44=a83_0x170eab;return this['params']['time']=[_0x39927b[_0x1c4a44(0x154)](),_0x19d037[_0x1c4a44(0x154)]()],this;}[a83_0x170eab(0x146)](_0x33b05c,_0x2fc122){const _0x18c1b7=a83_0x170eab,_0x193482=_0x33b05c[_0x18c1b7(0x119)]();var _0xd3cb2b=Math[_0x18c1b7(0x131)](_0x193482[0x2]-_0x193482[0x0]);const _0x35153a=_0x33b05c[_0x18c1b7(0x14b)]();if(_0x35153a)return this[_0x18c1b7(0x138)][_0x18c1b7(0x130)]=_0xd3cb2b/_0x35153a[0x1]*_0x2fc122,this;}[a83_0x170eab(0x133)](_0x12a0ec,_0x955177){const _0x4d4cc2=a83_0x170eab;return _0x955177=_0x955177||_0x4d4cc2(0x12c),this[_0x4d4cc2(0x138)][_0x4d4cc2(0x150)]=this['params'][_0x4d4cc2(0x150)]?this[_0x4d4cc2(0x138)][_0x4d4cc2(0x150)]+',':'',this[_0x4d4cc2(0x138)]['orderByFields']+=[_0x12a0ec,_0x955177]['join']('\x20'),this;}async['run'](){const _0x9a88b3=a83_0x170eab;this[_0x9a88b3(0x151)]();const _0x42e19e=await this['request']()['catch'](_0x203244=>{throw new Error(_0x203244);});if(_0x42e19e['status']!==0xc8)throw new Error(_0x9a88b3(0x14c));if(_0x42e19e[_0x9a88b3(0x120)]&&_0x42e19e[_0x9a88b3(0x120)][_0x9a88b3(0x155)]&&_0x42e19e[_0x9a88b3(0x120)]['features'][_0x9a88b3(0x124)]>0x0){var _0x28adcc=new a83_0x3b2ea2();let _0x16e318=[];return _0x42e19e[_0x9a88b3(0x120)][_0x9a88b3(0x155)][_0x9a88b3(0x112)](_0x286bd4=>{const _0x6b4704=_0x9a88b3,_0x543869=_0x28adcc[_0x6b4704(0x11e)](_0x286bd4);_0x16e318[_0x6b4704(0x14d)](_0x543869);}),_0x16e318;}return[];}['count'](){const _0x5ee98c=a83_0x170eab;this[_0x5ee98c(0x151)](),this[_0x5ee98c(0x138)]['returnCountOnly']=!![],this[_0x5ee98c(0x14f)]();}[a83_0x170eab(0x11c)](){const _0x39d56f=a83_0x170eab;this['_cleanParams'](),this[_0x39d56f(0x138)][_0x39d56f(0x12b)]=!![],this[_0x39d56f(0x14f)]();}[a83_0x170eab(0x152)](){const _0x5d0b47=a83_0x170eab;return this[_0x5d0b47(0x138)]['returnGeometry']=![],this['params'][_0x5d0b47(0x11f)]=!![],this;}[a83_0x170eab(0x140)](_0x116617){const _0x50ca03=a83_0x170eab;return this['path']=_0x116617+_0x50ca03(0x122),this;}[a83_0x170eab(0x145)](_0x5f57c0){const _0x5eb0ad=a83_0x170eab;_0x5f57c0&&(_0x5f57c0['code']==='400'&&console[_0x5eb0ad(0x113)][_0x5eb0ad(0x13a)](_0x5eb0ad(0x137)));}[a83_0x170eab(0x151)](){const _0x2034e8=a83_0x170eab;delete this[_0x2034e8(0x138)]['returnIdsOnly'],delete this[_0x2034e8(0x138)][_0x2034e8(0x157)],delete this['params'][_0x2034e8(0x136)];}[a83_0x170eab(0x141)](_0x5cee86,_0x1dbb8b){const _0x585d27=a83_0x170eab;var _0x48b9d4=new a83_0x3b2ea2();const _0x455bd9=_0x48b9d4['writeGeometryObject'](_0x5cee86);this[_0x585d27(0x138)]['inSR']=getEsriSpatialReference(_0x1dbb8b),this[_0x585d27(0x138)][_0x585d27(0x110)]=_0x455bd9,this['params'][_0x585d27(0x134)]=this[_0x585d27(0x125)](_0x5cee86['getType']());}}
|
package/utils/tasks/esri/Task.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a84_0x46ac0d=a84_0x49fa;(function(_0x1015b1,_0x15b635){var _0x164e61=a84_0x49fa,_0x15c76d=_0x1015b1();while(!![]){try{var _0x32a64b=parseInt(_0x164e61(0x141))/0x1+-parseInt(_0x164e61(0x14b))/0x2*(parseInt(_0x164e61(0x136))/0x3)+-parseInt(_0x164e61(0x140))/0x4+parseInt(_0x164e61(0x12b))/0x5*(parseInt(_0x164e61(0x130))/0x6)+-parseInt(_0x164e61(0x14f))/0x7*(parseInt(_0x164e61(0x133))/0x8)+parseInt(_0x164e61(0x129))/0x9+parseInt(_0x164e61(0x132))/0xa*(parseInt(_0x164e61(0x145))/0xb);if(_0x32a64b===_0x15b635)break;else _0x15c76d['push'](_0x15c76d['shift']());}catch(_0x2d2e3e){_0x15c76d['push'](_0x15c76d['shift']());}}}(a84_0x4f1a,0x3d1c4));function a84_0x49fa(_0x164af4,_0x2661d0){var _0x4f1aaa=a84_0x4f1a();return a84_0x49fa=function(_0x49faf8,_0xd7a32a){_0x49faf8=_0x49faf8-0x127;var _0x7d06be=_0x4f1aaa[_0x49faf8];return _0x7d06be;},a84_0x49fa(_0x164af4,_0x2661d0);}function a84_0x4f1a(){var _0x3085be=['310445pqgDri','toString','request','Polygon','1511851YReteA','prototype','[object\x20Date]','LineString','join','MultiPoint','8PWZrqQ','returnUnformattedValues','post','stringify','154LeVLkl','Point','serialize','4446459nbblgb','params','287865ZMEghC','format','[object\x20Object]','esriGeometryPolyline','url','6VEUkBm','test','10zhadtG','99688iNBZFH','geojsonTypeToArcGIS','hasOwnProperty','185847sSuDDv','valueOf','call','esriGeometryPolygon','JSONP','esriGeometryMultipoint','length','json','method','GET','909056ivVRuy'];a84_0x4f1a=function(){return _0x3085be;};return a84_0x4f1a();}import a84_0x6bb4e2 from'../../AxiosUtil';import{jsonp,stringify}from'../../AxiosUtil';export default class Task{constructor(_0x27d3cd,_0x1923eb,_0x27b18f){var _0x5e68db=a84_0x49fa;this[_0x5e68db(0x12f)]=_0x27d3cd,this['params']=_0x1923eb||{},this['method']=!_0x27b18f?'GET':_0x27b18f;}[a84_0x46ac0d(0x134)](_0x1e8775){var _0x93a0d2=a84_0x46ac0d,_0xd3f737;switch(_0x1e8775){case _0x93a0d2(0x127):_0xd3f737='esriGeometryPoint';break;case _0x93a0d2(0x14a):_0xd3f737=_0x93a0d2(0x13b);break;case _0x93a0d2(0x148):_0xd3f737=_0x93a0d2(0x12e);break;case'MultiLineString':_0xd3f737='esriGeometryPolyline';break;case _0x93a0d2(0x144):_0xd3f737=_0x93a0d2(0x139);break;case'MultiPolygon':_0xd3f737=_0x93a0d2(0x139);break;}return _0xd3f737;}['isArcgisOnline'](_0x16d493){var _0x5d2752=a84_0x46ac0d;return/^(?!.*utility\.arcgis\.com).*\.arcgis\.com.*FeatureServer/i[_0x5d2752(0x131)](_0x16d493);}['serialize'](_0x51a5e8){var _0x4bc1aa=a84_0x46ac0d,_0x278aa8='';_0x51a5e8['f']=_0x51a5e8['f']||_0x4bc1aa(0x13d);for(var _0x3bc6f5 in _0x51a5e8){if(Object['prototype'][_0x4bc1aa(0x135)][_0x4bc1aa(0x138)](_0x51a5e8,_0x3bc6f5)){var _0x2bedab=_0x51a5e8[_0x3bc6f5],_0x3c02ea=Object[_0x4bc1aa(0x146)][_0x4bc1aa(0x142)][_0x4bc1aa(0x138)](_0x2bedab),_0x36d775;_0x278aa8[_0x4bc1aa(0x13c)]&&(_0x278aa8+='&');if(_0x3c02ea==='[object\x20Array]')_0x36d775=Object[_0x4bc1aa(0x146)][_0x4bc1aa(0x142)][_0x4bc1aa(0x138)](_0x2bedab[0x0])===_0x4bc1aa(0x12d)?JSON[_0x4bc1aa(0x14e)](_0x2bedab):_0x2bedab[_0x4bc1aa(0x149)](',');else{if(_0x3c02ea===_0x4bc1aa(0x12d))_0x36d775=JSON[_0x4bc1aa(0x14e)](_0x2bedab);else _0x3c02ea===_0x4bc1aa(0x147)?_0x36d775=_0x2bedab[_0x4bc1aa(0x137)]():_0x36d775=_0x2bedab;}_0x278aa8+=encodeURIComponent(_0x3bc6f5)+'='+encodeURIComponent(_0x36d775);}}return _0x278aa8;}[a84_0x46ac0d(0x12c)](_0x596727){var _0x502a61=a84_0x46ac0d;return this[_0x502a61(0x12a)][_0x502a61(0x14c)]=!_0x596727,this;}async[a84_0x46ac0d(0x143)](){var _0x4ecc3e=a84_0x46ac0d,_0x434e9d=this[_0x4ecc3e(0x128)](this[_0x4ecc3e(0x12a)]);const _0x292cc8=this[_0x4ecc3e(0x12f)]['indexOf']('?')>-0x1?this[_0x4ecc3e(0x12f)]+'&'+_0x434e9d:this[_0x4ecc3e(0x12f)]+'?'+_0x434e9d;if(this[_0x4ecc3e(0x13e)]===_0x4ecc3e(0x13f))return a84_0x6bb4e2['get'](_0x292cc8);else{if(this['method']===_0x4ecc3e(0x13a))return jsonp(_0x292cc8);else{const _0x522899=stringify(this[_0x4ecc3e(0x12a)]);return a84_0x6bb4e2[_0x4ecc3e(0x14d)](this[_0x4ecc3e(0x12f)],_0x522899);}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x4594e8=a86_0x3008;(function(_0x3b6954,_0x2c2899){const _0x176e97=a86_0x3008,_0x27f24b=_0x3b6954();while(!![]){try{const _0x36426b=parseInt(_0x176e97(0x1fc))/0x1+parseInt(_0x176e97(0x208))/0x2+-parseInt(_0x176e97(0x1f0))/0x3+-parseInt(_0x176e97(0x20c))/0x4+-parseInt(_0x176e97(0x1f6))/0x5*(parseInt(_0x176e97(0x20d))/0x6)+parseInt(_0x176e97(0x1f3))/0x7*(parseInt(_0x176e97(0x209))/0x8)+parseInt(_0x176e97(0x205))/0x9;if(_0x36426b===_0x2c2899)break;else _0x27f24b['push'](_0x27f24b['shift']());}catch(_0x23c392){_0x27f24b['push'](_0x27f24b['shift']());}}}(a86_0x35ff,0x94869));import{and,intersects}from'ol/format/filter';import a86_0x3a7c56 from'../../format/CQL';import a86_0x35e82d from'ol/format/WFS';function a86_0x3008(_0x1675f4,_0x2b661b){const _0x35ffbf=a86_0x35ff();return a86_0x3008=function(_0x30082c,_0x155e33){_0x30082c=_0x30082c-0x1f0;let _0x4c6284=_0x35ffbf[_0x30082c];return _0x4c6284;},a86_0x3008(_0x1675f4,_0x2b661b);}import a86_0x3c77bd from'ol/format/GeoJSON';function a86_0x35ff(){const _0x1da774=['execute','5bVkBmx','catch','queryParameters','stringify','error','url','1054118lIWKMq','features','writeGetFeature','read','_geoserverQuery','readFeature','the_geom','geometryName','where','7613568Kocyom','serializeToString','geometry','1267340LBGutY','444504solMGA','application/json','map','3997744DZiloK','6317502YrxVDP','tableName','json','1285968xteIFy','srsName','POST','70XvURDg','then'];a86_0x35ff=function(){return _0x1da774;};return a86_0x35ff();}export default class QueryTask{constructor(_0x34e8f5){const _0x30ea20=a86_0x3008;this['queryParameters']={},this[_0x30ea20(0x1fb)]=_0x34e8f5;}async[a86_0x4594e8(0x1f5)](_0x1fd533){const _0x293c37=a86_0x4594e8;this[_0x293c37(0x1f8)]=_0x1fd533||{};const _0x34651f=this[_0x293c37(0x1f8)][_0x293c37(0x203)]||_0x293c37(0x202);let _0x2626f2=this['queryParameters'][_0x293c37(0x204)],_0x1c587e;_0x2626f2&&(_0x1c587e=new a86_0x3a7c56()[_0x293c37(0x1ff)](_0x2626f2));let _0x5e78a5=_0x1c587e;if(this[_0x293c37(0x1f8)]['geometry']){if(!this[_0x293c37(0x1f8)][_0x293c37(0x1f1)])throw new Error('srsName\x20is\x20required');const _0x56cc85=intersects(_0x34651f,this[_0x293c37(0x1f8)][_0x293c37(0x207)]);_0x5e78a5=_0x1c587e?and(_0x1c587e,_0x56cc85):_0x56cc85;}let _0x5ba8cc=new a86_0x35e82d()[_0x293c37(0x1fe)]({'srsName':this[_0x293c37(0x1f8)]['srsName'],'featureNS':'','featurePrefix':'','featureTypes':[this[_0x293c37(0x1f8)]['tableName']],'outputFormat':'application/json','geometryName':_0x34651f,'filter':_0x5e78a5});const _0x427d02=await fetch(this[_0x293c37(0x1fb)],{'method':_0x293c37(0x1f2),'body':new XMLSerializer()[_0x293c37(0x206)](_0x5ba8cc)}),_0x17ea40=await _0x427d02[_0x293c37(0x20f)]();let _0x12295c=[];const _0x4046b5=new a86_0x3c77bd();return _0x12295c=_0x17ea40[_0x293c37(0x1fd)][_0x293c37(0x20b)](_0x41f1d0=>{const _0x58b2ec=_0x293c37;return _0x4046b5[_0x58b2ec(0x201)](JSON['stringify'](_0x41f1d0));}),_0x12295c;}[a86_0x4594e8(0x200)](){const _0x4e5cb9=a86_0x4594e8,_0x35626b=this[_0x4e5cb9(0x1f8)][_0x4e5cb9(0x203)]||_0x4e5cb9(0x202);let _0x2ae3a3=this[_0x4e5cb9(0x1f8)][_0x4e5cb9(0x204)],_0x4e977d;_0x2ae3a3&&(_0x4e977d=new a86_0x3a7c56()[_0x4e5cb9(0x1ff)](_0x2ae3a3));let _0x2e4598=_0x4e977d;if(this[_0x4e5cb9(0x1f8)][_0x4e5cb9(0x207)]){const _0x488252=intersects(_0x35626b,this['queryParameters']['geometry']);_0x2e4598=_0x4e977d?and(_0x4e977d,_0x488252):_0x488252;}let _0x480a98=new a86_0x35e82d()[_0x4e5cb9(0x1fe)]({'srsName':this[_0x4e5cb9(0x1f8)][_0x4e5cb9(0x1f1)],'featureNS':'','featurePrefix':'','featureTypes':[this['queryParameters'][_0x4e5cb9(0x20e)]],'outputFormat':_0x4e5cb9(0x20a),'geometryName':_0x35626b,'filter':_0x2e4598});return new Promise(_0x57027b=>{const _0x2ef8d0=_0x4e5cb9;fetch(this['url'],{'method':'POST','body':new XMLSerializer()[_0x2ef8d0(0x206)](_0x480a98)})[_0x2ef8d0(0x1f4)](_0xb34a4e=>{return _0xb34a4e['json']();})[_0x2ef8d0(0x1f4)](_0x44b47d=>{const _0x453c11=_0x2ef8d0;let _0x2ee2b7=[];const _0x5780f3=new a86_0x3c77bd();_0x2ee2b7=_0x44b47d['features'][_0x453c11(0x20b)](_0x568ad0=>{const _0x47201d=_0x453c11;return _0x5780f3['readFeature'](JSON[_0x47201d(0x1f9)](_0x568ad0));}),_0x57027b(_0x2ee2b7);})[_0x2ef8d0(0x1f7)](_0x1196c3=>{const _0x56755d=_0x2ef8d0;_0x57027b([]),console[_0x56755d(0x1fa)](_0x1196c3);});});}}
|
package/utils/tasks/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4418a4,_0x18b2ec){const _0x46128c=a87_0x2baa,_0x842c49=_0x4418a4();while(!![]){try{const _0x563da4=-parseInt(_0x46128c(0x187))/0x1*(-parseInt(_0x46128c(0x18a))/0x2)+-parseInt(_0x46128c(0x188))/0x3+-parseInt(_0x46128c(0x180))/0x4+-parseInt(_0x46128c(0x181))/0x5*(parseInt(_0x46128c(0x185))/0x6)+-parseInt(_0x46128c(0x18c))/0x7*(-parseInt(_0x46128c(0x17f))/0x8)+-parseInt(_0x46128c(0x186))/0x9+-parseInt(_0x46128c(0x189))/0xa*(-parseInt(_0x46128c(0x18e))/0xb);if(_0x563da4===_0x18b2ec)break;else _0x842c49['push'](_0x842c49['shift']());}catch(_0x1174f9){_0x842c49['push'](_0x842c49['shift']());}}}(a87_0x57d2,0xdffe3));import{appendPath}from'../UrlUtil';import a87_0x27ff59 from'./esri/Query';function a87_0x2baa(_0x17403c,_0x1f2f77){const _0x57d21f=a87_0x57d2();return a87_0x2baa=function(_0x2baaf6,_0x433f9d){_0x2baaf6=_0x2baaf6-0x17d;let _0x3da459=_0x57d21f[_0x2baaf6];return _0x3da459;},a87_0x2baa(_0x17403c,_0x1f2f77);}function a87_0x57d2(){const _0x3a0275=['2971284dFRlos','932110nWDFdR','108NfnGvF','execute','3256519FExxHF','find','143mTcqJP','intersects','name','run','arcgis-feature','geoserver-wfs','24juUSKh','2465368yTTGma','3962410KQKDgb','fieldType','arcgis-dynamic','geoserver-wms','6ysKqQS','9825561OjDEOa','33353mcQgGK'];a87_0x57d2=function(){return _0x3a0275;};return a87_0x57d2();}import a87_0x1dbd5b from'./geoserver/QueryTask';import{getWFSLayerCapabilities}from'../../capabilities';export async function selectFeaturesByGeo(_0x13bc73,_0x570df4,_0x15f952,_0x43fea4,_0x3c6435,_0x15d9fa){const _0x4c2d46=a87_0x2baa;if(!_0x15f952||!_0x43fea4||!_0x3c6435||!_0x3c6435)return[];let _0x1735d1=[];if(_0x3c6435==_0x4c2d46(0x183)||_0x3c6435==_0x4c2d46(0x17d)){const _0x1bed17=appendPath(_0x15f952,_0x43fea4),_0x587266=new a87_0x27ff59(_0x1bed17,{'outSR':_0x570df4,'where':_0x15d9fa});_0x587266[_0x4c2d46(0x18f)](_0x13bc73,_0x570df4),_0x1735d1=await _0x587266[_0x4c2d46(0x191)]();}else{if(_0x3c6435==_0x4c2d46(0x17e)||_0x3c6435==_0x4c2d46(0x184)){const _0x5352ee=new a87_0x1dbd5b(_0x15f952),_0x19d3a8=await getWFSLayerCapabilities(_0x15f952,_0x43fea4),_0x276ff2=_0x19d3a8['layerFields'][_0x4c2d46(0x18d)](_0x4fc54d=>_0x4fc54d[_0x4c2d46(0x182)]==0x6);_0x1735d1=await _0x5352ee[_0x4c2d46(0x18b)]({'geometry':_0x13bc73,'tableName':_0x43fea4,'geometryName':_0x276ff2?_0x276ff2[_0x4c2d46(0x190)]:'','srsName':_0x570df4,'where':_0x15d9fa});}}return _0x1735d1;}
|