ym-gis-2d 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/capabilities/index.js +1 -1
- package/controls/ControlManager.js +1 -1
- package/controls/LegendControl.js +1 -1
- package/controls/MousePositionControl.js +1 -1
- package/controls/SwipeLayerControl.js +1 -1
- package/conver/kml/geoJSONToKml.js +1 -1
- package/conver/kml/index.js +1 -1
- package/conver/kml/kmlToGeoJSON.js +1 -1
- package/entity/Feature.js +1 -1
- package/entity/GeometryType.js +1 -1
- package/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.d.ts +4 -4
- package/mapView/Map.d.ts.map +1 -1
- package/mapView/Map.js +1 -1
- package/mapView/Map.js.map +1 -1
- package/mapView/View.d.ts.map +1 -1
- package/mapView/View.js +1 -1
- package/mapView/View.js.map +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.d.ts +7 -1
- package/utils/GeometryUtil.d.ts.map +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/GeometryUtil.js.map +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
|
+
function a75_0x1502(_0x50ffec,_0x4e3693){const _0x2a908c=a75_0x2a90();return a75_0x1502=function(_0x1502cb,_0x428448){_0x1502cb=_0x1502cb-0x18a;let _0x185f80=_0x2a908c[_0x1502cb];return _0x185f80;},a75_0x1502(_0x50ffec,_0x4e3693);}const a75_0x403859=a75_0x1502;(function(_0x212f19,_0x98caaf){const _0xc848e8=a75_0x1502,_0x475764=_0x212f19();while(!![]){try{const _0x393545=-parseInt(_0xc848e8(0x191))/0x1+parseInt(_0xc848e8(0x1a2))/0x2*(-parseInt(_0xc848e8(0x1ad))/0x3)+-parseInt(_0xc848e8(0x1aa))/0x4+parseInt(_0xc848e8(0x1ab))/0x5+parseInt(_0xc848e8(0x197))/0x6*(-parseInt(_0xc848e8(0x1a1))/0x7)+-parseInt(_0xc848e8(0x1a9))/0x8+parseInt(_0xc848e8(0x1b8))/0x9;if(_0x393545===_0x98caaf)break;else _0x475764['push'](_0x475764['shift']());}catch(_0x138021){_0x475764['push'](_0x475764['shift']());}}}(a75_0x2a90,0x31188));import a75_0xb2a76b from'color';import a75_0x5ae5b6 from'./writeTextToCanvas';import{Icon}from'ol/style';import a75_0x18ecca from'ol/ImageState';import{parseImage}from'../../UrlUtil.js';class PinBuilder{constructor(){const _0x19e48e=a75_0x1502;this[_0x19e48e(0x1a3)]={};}[a75_0x403859(0x1b5)](_0x28d386,_0x3f2d26){const _0x4c013d=a75_0x403859;if(!_0x28d386)throw new Error(_0x4c013d(0x1a4));if(!_0x3f2d26)throw new Error('size\x20is\x20required');return createPin('','',_0x28d386,_0x3f2d26,this['_cache']);}[a75_0x403859(0x18e)](_0xb85e8e,_0x2e256c,_0x11ba79){const _0x19b848=a75_0x403859;if(!_0xb85e8e)throw new Error(_0x19b848(0x1a0));if(!_0x2e256c)throw new Error('color\x20is\x20required');if(!_0x11ba79)throw new Error('size\x20is\x20required');return createPin(_0xb85e8e,'',_0x2e256c,_0x11ba79,this[_0x19b848(0x1a3)]);}[a75_0x403859(0x1b9)](_0x3465a9,_0x240972,_0x176966){const _0x31cd2b=a75_0x403859;if(!_0x3465a9)throw new Error(_0x31cd2b(0x1a7));if(!_0x240972)throw new Error(_0x31cd2b(0x1a4));if(!_0x176966)throw new Error(_0x31cd2b(0x196));return createPin(parseImage(_0x3465a9),'',_0x240972,_0x176966,this[_0x31cd2b(0x1a3)]);}[a75_0x403859(0x193)](_0x3f9fa8,_0x7a7dcb,_0x3c6b43){const _0x3da284=a75_0x403859;if(!_0x3f9fa8)throw new Error('text\x20is\x20required');if(!_0x7a7dcb)throw new Error(_0x3da284(0x1a4));if(!_0x3c6b43)throw new Error(_0x3da284(0x196));return createPin('',_0x3f9fa8,_0x7a7dcb,_0x3c6b43,this[_0x3da284(0x1a3)]);}}function a75_0x2a90(){const _0x5324d0=['save','id\x20is\x20required','fill','1572960cYcuZI','1236132IFuTwo','596195EOcgHC','width','405wkSoEj','LOADED','getImageState','destination-out','drawImage','destination-over','globalCompositeOperation','closePath','fromColor','bezierCurveTo','ERROR','12369537cxfGXo','fromMakiIconId','stringify','IDLE','bold\x20','hexa','fromUrl','px\x20sans-serif','round','376790gnxBdu','getContext','fromText','target','height','size\x20is\x20required','2022QOITNI','stroke','fillStyle','lineTo','getImage','fillRect','#FFFFFF','toDataURL','beginPath','url\x20is\x20required','518cbrRnd','5706cvDbaV','_cache','color\x20is\x20required','lineWidth'];a75_0x2a90=function(){return _0x5324d0;};return a75_0x2a90();}function drawPin(_0x1e0106,_0x14d9f4,_0x41e532){const _0x5a227c=a75_0x403859;_0x1e0106[_0x5a227c(0x1a6)](),_0x1e0106['scale'](_0x41e532/0x18,_0x41e532/0x18),_0x1e0106[_0x5a227c(0x199)]=_0x14d9f4,_0x1e0106['strokeStyle']=a75_0xb2a76b(_0x14d9f4)['lighten'](0.6)[_0x5a227c(0x18d)](),_0x1e0106[_0x5a227c(0x1a5)]=0.846,_0x1e0106[_0x5a227c(0x19f)](),_0x1e0106['moveTo'](6.72,0.422),_0x1e0106[_0x5a227c(0x19a)](17.28,0.422),_0x1e0106[_0x5a227c(0x1b6)](18.553,0.422,19.577,1.758,19.577,3.415),_0x1e0106[_0x5a227c(0x19a)](19.577,10.973),_0x1e0106[_0x5a227c(0x1b6)](19.577,12.63,18.553,13.966,17.282,13.966),_0x1e0106[_0x5a227c(0x19a)](14.386,14.008),_0x1e0106[_0x5a227c(0x19a)](11.826,23.578),_0x1e0106[_0x5a227c(0x19a)](9.614,14.008),_0x1e0106[_0x5a227c(0x19a)](6.719,13.965),_0x1e0106['bezierCurveTo'](5.446,13.983,4.422,12.629,4.422,10.972),_0x1e0106[_0x5a227c(0x19a)](4.422,3.416),_0x1e0106[_0x5a227c(0x1b6)](4.423,1.76,5.447,0.423,6.718,0.423),_0x1e0106[_0x5a227c(0x1b4)](),_0x1e0106[_0x5a227c(0x1a8)](),_0x1e0106[_0x5a227c(0x198)](),_0x1e0106['restore']();}function drawIcon(_0x1968f3,_0x2dc52e,_0x540b28){const _0x2922bb=a75_0x403859,_0x1db56f=_0x540b28/2.5;let _0x14fbc4=_0x1db56f,_0x50c0bb=_0x1db56f;if(_0x2dc52e[_0x2922bb(0x1ac)]>_0x2dc52e[_0x2922bb(0x195)])_0x50c0bb=_0x1db56f*(_0x2dc52e[_0x2922bb(0x195)]/_0x2dc52e[_0x2922bb(0x1ac)]);else _0x2dc52e[_0x2922bb(0x1ac)]<_0x2dc52e[_0x2922bb(0x195)]&&(_0x14fbc4=_0x1db56f*(_0x2dc52e[_0x2922bb(0x1ac)]/_0x2dc52e[_0x2922bb(0x195)]));const _0x811684=Math[_0x2922bb(0x190)]((_0x540b28-_0x14fbc4)/0x2),_0x10184e=Math[_0x2922bb(0x190)](0x7/0x18*_0x540b28-_0x50c0bb/0x2);_0x1968f3['globalCompositeOperation']=_0x2922bb(0x1b0),_0x1968f3[_0x2922bb(0x1b1)](_0x2dc52e,_0x811684-0x1,_0x10184e,_0x14fbc4,_0x50c0bb),_0x1968f3['drawImage'](_0x2dc52e,_0x811684,_0x10184e-0x1,_0x14fbc4,_0x50c0bb),_0x1968f3['drawImage'](_0x2dc52e,_0x811684+0x1,_0x10184e,_0x14fbc4,_0x50c0bb),_0x1968f3[_0x2922bb(0x1b1)](_0x2dc52e,_0x811684,_0x10184e+0x1,_0x14fbc4,_0x50c0bb),_0x1968f3['globalCompositeOperation']=_0x2922bb(0x1b2),_0x1968f3[_0x2922bb(0x199)]='#000000',_0x1968f3[_0x2922bb(0x19c)](_0x811684-0x1,_0x10184e-0x1,_0x14fbc4+0x2,_0x50c0bb+0x2),_0x1968f3[_0x2922bb(0x1b3)]=_0x2922bb(0x1b0),_0x1968f3[_0x2922bb(0x1b1)](_0x2dc52e,_0x811684,_0x10184e,_0x14fbc4,_0x50c0bb),_0x1968f3[_0x2922bb(0x1b3)]='destination-over',_0x1968f3[_0x2922bb(0x199)]=_0x2922bb(0x19d),_0x1968f3[_0x2922bb(0x19c)](_0x811684-0x1,_0x10184e-0x2,_0x14fbc4+0x2,_0x50c0bb+0x2);}const stringifyScratch=new Array(0x4);function createPin(_0x5a3d0e,_0x4e6bc9,_0x346014,_0x492a29,_0x58ed36){const _0x47b941=a75_0x403859;stringifyScratch[0x0]=_0x5a3d0e,stringifyScratch[0x1]=_0x4e6bc9,stringifyScratch[0x2]=_0x346014,stringifyScratch[0x3]=_0x492a29;const _0xfee791=JSON[_0x47b941(0x18a)](stringifyScratch),_0x16d313=_0x58ed36[_0xfee791];if(_0x16d313)return _0x16d313;const _0x5d498a=document['createElement']('canvas');_0x5d498a[_0x47b941(0x1ac)]=_0x492a29,_0x5d498a[_0x47b941(0x195)]=_0x492a29;const _0x3e28b7=_0x5d498a[_0x47b941(0x192)]('2d');drawPin(_0x3e28b7,_0x346014,_0x492a29);if(_0x5a3d0e)return new Promise(_0x54b446=>{const _0xdce82=_0x47b941;let _0x5d97d5=new Icon({'src':_0x5a3d0e}),_0x40de6e=_0x5d97d5[_0xdce82(0x1af)]();_0x40de6e===a75_0x18ecca['LOADED']||_0x40de6e===a75_0x18ecca[_0xdce82(0x1b7)]?(drawIcon(_0x3e28b7,_0x5d97d5['getImage'](0x60),_0x492a29),_0x58ed36[_0xfee791]=_0x5d498a[_0xdce82(0x19e)](),_0x54b446(_0x5d498a['toDataURL']())):(_0x40de6e===a75_0x18ecca[_0xdce82(0x18b)]&&_0x5d97d5['load'](),_0x5d97d5['listenImageChange'](_0x24a748=>{const _0x50a264=_0xdce82;_0x40de6e=_0x24a748[_0x50a264(0x194)][_0x50a264(0x1af)](),(_0x40de6e===a75_0x18ecca[_0x50a264(0x1ae)]||_0x40de6e===a75_0x18ecca[_0x50a264(0x1b7)])&&(drawIcon(_0x3e28b7,_0x5d97d5[_0x50a264(0x19b)](0x60),_0x492a29),_0x58ed36[_0xfee791]=_0x5d498a[_0x50a264(0x19e)](),_0x54b446(_0x5d498a[_0x50a264(0x19e)]()));}));});else{if(_0x4e6bc9){const _0xbb4e83=a75_0x5ae5b6(_0x4e6bc9,{'font':_0x47b941(0x18c)+_0x492a29+_0x47b941(0x18f)});drawIcon(_0x3e28b7,_0xbb4e83,_0x492a29);}}return _0x58ed36[_0xfee791]=_0x5d498a[_0x47b941(0x19e)](),_0x5d498a[_0x47b941(0x19e)]();}export default PinBuilder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a76_0x4b16(_0x496ab4,_0x21b75a){const _0x5e32ca=a76_0x5e32();return a76_0x4b16=function(_0x4b16fc,_0x453c6e){_0x4b16fc=_0x4b16fc-0x183;let _0x2190af=_0x5e32ca[_0x4b16fc];return _0x2190af;},a76_0x4b16(_0x496ab4,_0x21b75a);}const a76_0x5e084a=a76_0x4b16;(function(_0xfde40f,_0x150e7a){const _0x1ce62d=a76_0x4b16,_0x12b8e5=_0xfde40f();while(!![]){try{const _0x131d1e=parseInt(_0x1ce62d(0x197))/0x1*(-parseInt(_0x1ce62d(0x184))/0x2)+-parseInt(_0x1ce62d(0x187))/0x3+parseInt(_0x1ce62d(0x19b))/0x4*(parseInt(_0x1ce62d(0x19d))/0x5)+parseInt(_0x1ce62d(0x199))/0x6+parseInt(_0x1ce62d(0x18f))/0x7*(-parseInt(_0x1ce62d(0x195))/0x8)+-parseInt(_0x1ce62d(0x18b))/0x9*(parseInt(_0x1ce62d(0x196))/0xa)+parseInt(_0x1ce62d(0x1a4))/0xb*(parseInt(_0x1ce62d(0x192))/0xc);if(_0x131d1e===_0x150e7a)break;else _0x12b8e5['push'](_0x12b8e5['shift']());}catch(_0x5cd2ac){_0x12b8e5['push'](_0x12b8e5['shift']());}}}(a76_0x5e32,0xb4d31));import a76_0x1b232b from'./PinBuilder';import{Icon}from'ol/style';import a76_0xf28b76 from'ol/ImageState';import a76_0x425e71 from'ol/events/Event';import{shared as a76_0x82dec3}from'./ImageCache';function a76_0x5e32(){const _0x19cc73=['getImageState','1231866EdFhmh','load','_icon','markerColor','63RUxROp','markerSize','image','8149524sqOQQi','get','target','158024JJGfTW','50vTaMmD','162jfbmqK','getImage','5941134jmerlX','LOADED','1318924qXqCsA','error','15AOYmJT','loadIcon','_listener','dispatchEvent','fromText','_imageState','ERROR','11kBnIqa','warn','resolve','listenImageChange','11318vSRvWy','markerLabel','options','416841tRwGoV','fromUrl','IDLE'];a76_0x5e32=function(){return _0x19cc73;};return a76_0x5e32();}export default class PinIcon{constructor(_0x2228af){const _0x4eb9ed=a76_0x4b16;this[_0x4eb9ed(0x186)]=_0x2228af||{},this[_0x4eb9ed(0x1a2)]=a76_0xf28b76['IDLE'],this[_0x4eb9ed(0x18d)]=a76_0x82dec3[_0x4eb9ed(0x193)](this[_0x4eb9ed(0x186)]),this[_0x4eb9ed(0x18d)]&&(this[_0x4eb9ed(0x1a2)]=a76_0xf28b76['LOADED']);}['load'](){const _0x3666fe=a76_0x4b16;try{let _0x5eb5a6,_0x46a3f2=new a76_0x1b232b();if(this[_0x3666fe(0x186)][_0x3666fe(0x185)])_0x5eb5a6=_0x46a3f2[_0x3666fe(0x1a1)](this[_0x3666fe(0x186)][_0x3666fe(0x185)],this[_0x3666fe(0x186)][_0x3666fe(0x18e)],this[_0x3666fe(0x186)][_0x3666fe(0x190)]||0x30);else this[_0x3666fe(0x186)]['image']&&(_0x5eb5a6=_0x46a3f2[_0x3666fe(0x188)](this['options'][_0x3666fe(0x191)],this[_0x3666fe(0x186)][_0x3666fe(0x18e)],this[_0x3666fe(0x186)][_0x3666fe(0x190)]||0x30));Promise[_0x3666fe(0x1a6)](_0x5eb5a6)['then'](_0xe94a29=>{this['loadIcon'](_0xe94a29);})['catch'](_0x27b873=>{const _0x24d332=_0x3666fe;console[_0x24d332(0x1a5)](_0x27b873),this['_imageState']=a76_0xf28b76[_0x24d332(0x1a3)],this[_0x24d332(0x1a0)](_0x24d332(0x19c));});}catch(_0xa9ffaf){console[_0x3666fe(0x1a5)](_0xa9ffaf),this[_0x3666fe(0x1a2)]=a76_0xf28b76[_0x3666fe(0x1a3)],this[_0x3666fe(0x1a0)](_0x3666fe(0x19c));}}[a76_0x5e084a(0x19e)](_0x29e826){const _0x51832e=a76_0x5e084a;this['_icon']=new Icon({'src':_0x29e826}),a76_0x82dec3['set'](this[_0x51832e(0x186)],this[_0x51832e(0x18d)]);let _0x31d0d0=this[_0x51832e(0x18d)][_0x51832e(0x18a)]();_0x31d0d0===a76_0xf28b76[_0x51832e(0x19a)]||_0x31d0d0===a76_0xf28b76['ERROR']?(this[_0x51832e(0x1a2)]=this[_0x51832e(0x18d)]['getImageState'](),this[_0x51832e(0x1a0)](_0x51832e(0x18c))):(_0x31d0d0===a76_0xf28b76[_0x51832e(0x189)]&&this[_0x51832e(0x18d)][_0x51832e(0x18c)](),this['_icon']['listenImageChange'](_0x2bbdbb=>{const _0x3d2e1a=_0x51832e;_0x31d0d0=_0x2bbdbb[_0x3d2e1a(0x194)][_0x3d2e1a(0x18a)](),(_0x31d0d0===a76_0xf28b76[_0x3d2e1a(0x19a)]||_0x31d0d0===a76_0xf28b76[_0x3d2e1a(0x1a3)])&&(this[_0x3d2e1a(0x1a2)]=this[_0x3d2e1a(0x18d)]['getImageState'](),this[_0x3d2e1a(0x1a0)](_0x3d2e1a(0x18c)));}));}[a76_0x5e084a(0x18a)](){return this['_imageState'];}[a76_0x5e084a(0x198)](){const _0x25c171=a76_0x5e084a;var _0x46f7bf;return(_0x46f7bf=this[_0x25c171(0x18d)])===null||_0x46f7bf===void 0x0?void 0x0:_0x46f7bf[_0x25c171(0x198)]();}[a76_0x5e084a(0x183)](_0x3f0155){const _0x12a202=a76_0x5e084a;this[_0x12a202(0x19f)]=_0x3f0155;}[a76_0x5e084a(0x1a0)](_0x103f03){const _0x579511=a76_0x5e084a;if(this['_listener']){let _0x4f7a7e=new a76_0x425e71(_0x103f03);_0x4f7a7e['target']=this,this[_0x579511(0x19f)](_0x4f7a7e);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a77_0x3b3c(){const _0x4749f7=['getPropertyValue','26jjarVc','2092732oXjLtx','black','6564775vFRzKt','fillStyle','ceil','6234273dHrFto','font','width','test','22htSyjS','height','mozImageSmoothingEnabled','canvas','body','padding','measureText','getImageData','ascent','1911018cEfGvi','strokeStyle','length','getContext','data','strokeText','font-size','imageSmoothingEnabled','appendChild','createElement','fill','7hptdVx','replace','lineWidth','getComputedStyle','defaultView','strokeColor','fillText','#00000000','strokeWidth','#000000','4518980easeKl','msImageSmoothingEnabled','fillColor','83903BRLGpD','lineJoin','8756072duuFKY','round','hidden','fillRect','stroke','backgroundColor','minx','style','6liQXRh'];a77_0x3b3c=function(){return _0x4749f7;};return a77_0x3b3c();}(function(_0x486bef,_0x5e8d27){const _0x5b1cb1=a77_0x1ccf,_0x4ec2de=_0x486bef();while(!![]){try{const _0x2443d6=parseInt(_0x5b1cb1(0x8e))/0x1*(-parseInt(_0x5b1cb1(0x9a))/0x2)+parseInt(_0x5b1cb1(0x98))/0x3*(parseInt(_0x5b1cb1(0x9b))/0x4)+parseInt(_0x5b1cb1(0x9d))/0x5+parseInt(_0x5b1cb1(0xad))/0x6+parseInt(_0x5b1cb1(0xb8))/0x7*(-parseInt(_0x5b1cb1(0x90))/0x8)+-parseInt(_0x5b1cb1(0xa0))/0x9+-parseInt(_0x5b1cb1(0x8b))/0xa*(-parseInt(_0x5b1cb1(0xa4))/0xb);if(_0x2443d6===_0x5e8d27)break;else _0x4ec2de['push'](_0x4ec2de['shift']());}catch(_0x24760c){_0x4ec2de['push'](_0x4ec2de['shift']());}}}(a77_0x3b3c,0xabcbb));function measureText(_0x357338,_0x3c00c,_0x17d1c3,_0x57b590,_0x75c057){const _0x34938d=a77_0x1ccf,_0xa23ee0=_0x357338[_0x34938d(0xaa)](_0x3c00c),_0x301955=!/\S/[_0x34938d(0xa3)](_0x3c00c);if(!_0x301955&&document[_0x34938d(0xbc)]){const _0x2e7e6e=document[_0x34938d(0xbc)][_0x34938d(0xbb)](_0x357338[_0x34938d(0xa7)])[_0x34938d(0x99)](_0x34938d(0xb3))[_0x34938d(0xb9)]('px',''),_0x3d1080=document['createElement'](_0x34938d(0xa7)),_0x1fa047=0x64,_0x228fd0=_0xa23ee0[_0x34938d(0xa2)]+_0x1fa047|0x0,_0x31316c=0x3*(_0x2e7e6e-0x0),_0x1b9ec6=_0x31316c/0x2;_0x3d1080['width']=_0x228fd0,_0x3d1080[_0x34938d(0xa5)]=_0x31316c;const _0x1e9ad6=_0x3d1080[_0x34938d(0xb0)]('2d');if(!_0x1e9ad6)return{};_0x1e9ad6[_0x34938d(0xa1)]=_0x17d1c3,_0x1e9ad6['fillStyle']='white',_0x1e9ad6[_0x34938d(0x93)](0x0,0x0,_0x3d1080[_0x34938d(0xa2)]+0x1,_0x3d1080[_0x34938d(0xa5)]+0x1);_0x57b590&&(_0x1e9ad6[_0x34938d(0xae)]=_0x34938d(0x9c),_0x1e9ad6['lineWidth']=_0x357338[_0x34938d(0xba)],_0x1e9ad6['strokeText'](_0x3c00c,_0x1fa047/0x2,_0x1b9ec6));_0x75c057&&(_0x1e9ad6[_0x34938d(0x9e)]='black',_0x1e9ad6[_0x34938d(0xbe)](_0x3c00c,_0x1fa047/0x2,_0x1b9ec6));const _0x30263a=_0x1e9ad6[_0x34938d(0xab)](0x0,0x0,_0x228fd0,_0x31316c)[_0x34938d(0xb1)],_0x2b1a29=_0x30263a[_0x34938d(0xaf)],_0x4adf5e=_0x228fd0*0x4;let _0x4cae08,_0x25cf4f,_0x4e4d73=0x0,_0x33f71f=0x0;for(_0x4cae08=0x0;_0x4cae08<_0x2b1a29;++_0x4cae08){if(_0x30263a[_0x4cae08]!==0xff){_0x4e4d73=_0x4cae08/_0x4adf5e|0x0;break;}}for(_0x4cae08=_0x2b1a29-0x1;_0x4cae08>=0x0;--_0x4cae08){if(_0x30263a[_0x4cae08]!==0xff){_0x33f71f=_0x4cae08/_0x4adf5e|0x0;break;}}let _0x7f4927=-0x1;for(_0x4cae08=0x0;_0x4cae08<_0x228fd0&&_0x7f4927===-0x1;++_0x4cae08){for(_0x25cf4f=0x0;_0x25cf4f<_0x31316c;++_0x25cf4f){const _0x15f87a=_0x4cae08*0x4+_0x25cf4f*_0x4adf5e;if(_0x30263a[_0x15f87a]!==0xff||_0x30263a[_0x15f87a+0x1]!==0xff||_0x30263a[_0x15f87a+0x2]!==0xff||_0x30263a[_0x15f87a+0x3]!==0xff){_0x7f4927=_0x4cae08;break;}}}return{'width':_0xa23ee0[_0x34938d(0xa2)],'height':_0x33f71f-_0x4e4d73,'ascent':_0x1b9ec6-_0x4e4d73,'descent':_0x33f71f-_0x1b9ec6,'minx':_0x7f4927-_0x1fa047/0x2};}return{'width':_0xa23ee0[_0x34938d(0xa2)],'height':0x0,'ascent':0x0,'descent':0x0,'minx':0x0};}let imageSmoothingEnabledName='';function writeTextToCanvas(_0x4955bf,_0xf0b06d){const _0x5a9832=a77_0x1ccf;if(!_0x4955bf)throw new Error('text\x20is\x20required.');if(_0x4955bf==='')return undefined;_0xf0b06d=defaultValue(_0xf0b06d,{});const _0xced1b=defaultValue(_0xf0b06d[_0x5a9832(0xa1)],'10px\x20sans-serif'),_0x476619=defaultValue(_0xf0b06d[_0x5a9832(0x94)],![]),_0x58c999=defaultValue(_0xf0b06d[_0x5a9832(0xb7)],!![]),_0x36d388=defaultValue(_0xf0b06d[_0x5a9832(0xc0)],0x1),_0x3cdee8=defaultValue(_0xf0b06d[_0x5a9832(0x95)],_0x5a9832(0xbf)),_0x4fab1b=defaultValue(_0xf0b06d[_0x5a9832(0xa9)],0x0),_0x365a31=_0x4fab1b*0x2,_0x4c8f88=document[_0x5a9832(0xb6)](_0x5a9832(0xa7));_0x4c8f88['width']=0x1,_0x4c8f88[_0x5a9832(0xa5)]=0x1,_0x4c8f88[_0x5a9832(0x97)][_0x5a9832(0xa1)]=_0xced1b;const _0x5d79ab=_0x4c8f88[_0x5a9832(0xb0)]('2d');if(!imageSmoothingEnabledName&&_0x5d79ab){if(_0x5d79ab[_0x5a9832(0xb4)])imageSmoothingEnabledName=_0x5a9832(0xb4);else{if(_0x5d79ab[_0x5a9832(0xa6)])imageSmoothingEnabledName='mozImageSmoothingEnabled';else{if(_0x5d79ab['webkitImageSmoothingEnabled'])imageSmoothingEnabledName='webkitImageSmoothingEnabled';else _0x5d79ab['msImageSmoothingEnabled']&&(imageSmoothingEnabledName=_0x5a9832(0x8c));}}}_0x5d79ab['font']=_0xced1b,_0x5d79ab[_0x5a9832(0x8f)]='round',_0x5d79ab[_0x5a9832(0xba)]=_0x36d388,_0x5d79ab[imageSmoothingEnabledName]=![],_0x4c8f88[_0x5a9832(0x97)]['visibility']=_0x5a9832(0x92),document[_0x5a9832(0xa8)][_0x5a9832(0xb5)](_0x4c8f88);const _0x19b3af=measureText(_0x5d79ab,_0x4955bf,_0xced1b,_0x476619,_0x58c999);if(!_0x19b3af)return;_0x4c8f88['dimensions']=_0x19b3af,document[_0x5a9832(0xa8)]['removeChild'](_0x4c8f88),_0x4c8f88[_0x5a9832(0x97)]['visibility']='';const _0x48dd2b=-(_0x19b3af[_0x5a9832(0x96)]?_0x19b3af[_0x5a9832(0x96)]:0x0),_0xa41632=Math[_0x5a9832(0x9f)](_0x19b3af[_0x5a9832(0xa2)])+_0x48dd2b+_0x365a31,_0x559224=(_0x19b3af[_0x5a9832(0xa5)]?_0x19b3af[_0x5a9832(0xa5)]:0x0)+_0x365a31,_0x2afe9d=_0x559224-(_0x19b3af['ascent']?_0x19b3af[_0x5a9832(0xac)]:0x0)+_0x4fab1b,_0x5a6008=_0x559224-_0x2afe9d+_0x365a31;return _0x4c8f88[_0x5a9832(0xa2)]=_0xa41632,_0x4c8f88['height']=_0x559224,_0x5d79ab[_0x5a9832(0xa1)]=_0xced1b,_0x5d79ab['lineJoin']=_0x5a9832(0x91),_0x5d79ab[_0x5a9832(0xba)]=_0x36d388,_0x5d79ab[imageSmoothingEnabledName]=![],_0x3cdee8!==_0x5a9832(0xbf)&&(_0x5d79ab['fillStyle']=_0x3cdee8,_0x5d79ab['fillRect'](0x0,0x0,_0x4c8f88[_0x5a9832(0xa2)],_0x4c8f88[_0x5a9832(0xa5)])),_0x476619&&(_0x5d79ab[_0x5a9832(0xae)]=defaultValue(_0xf0b06d[_0x5a9832(0xbd)],_0x5a9832(0xc1)),_0x5d79ab[_0x5a9832(0xb2)](_0x4955bf,_0x48dd2b+_0x4fab1b,_0x5a6008)),_0x58c999&&(_0x5d79ab['fillStyle']=defaultValue(_0xf0b06d[_0x5a9832(0x8d)],'#FFFFFF'),_0x5d79ab[_0x5a9832(0xbe)](_0x4955bf,_0x48dd2b+_0x4fab1b,_0x5a6008)),_0x4c8f88;}function a77_0x1ccf(_0xbf5382,_0x4ac0fb){const _0x3b3cf6=a77_0x3b3c();return a77_0x1ccf=function(_0x1ccfe8,_0xffc519){_0x1ccfe8=_0x1ccfe8-0x8b;let _0x2add57=_0x3b3cf6[_0x1ccfe8];return _0x2add57;},a77_0x1ccf(_0xbf5382,_0x4ac0fb);}function defaultValue(_0x34d9f8,_0x3ef684){if(_0x34d9f8!==undefined&&_0x34d9f8!==null)return _0x34d9f8;return _0x3ef684;}export default writeTextToCanvas;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82_0x5bb5a6=a82_0x105d;(function(_0x3cb3d9,_0x34819d){const _0x2e98ca=a82_0x105d,_0x465bb7=_0x3cb3d9();while(!![]){try{const _0x383277=-parseInt(_0x2e98ca(0x1e9))/0x1*(-parseInt(_0x2e98ca(0x1fa))/0x2)+parseInt(_0x2e98ca(0x20a))/0x3*(parseInt(_0x2e98ca(0x1ed))/0x4)+parseInt(_0x2e98ca(0x206))/0x5+parseInt(_0x2e98ca(0x1fc))/0x6*(-parseInt(_0x2e98ca(0x1f0))/0x7)+-parseInt(_0x2e98ca(0x203))/0x8*(-parseInt(_0x2e98ca(0x1f1))/0x9)+parseInt(_0x2e98ca(0x208))/0xa+-parseInt(_0x2e98ca(0x1ee))/0xb;if(_0x383277===_0x34819d)break;else _0x465bb7['push'](_0x465bb7['shift']());}catch(_0x5015ca){_0x465bb7['push'](_0x465bb7['shift']());}}}(a82_0x337f,0xe509c));import a82_0x5d6ed9 from'ol/format/EsriJSON';import a82_0x12ced5 from'ol/format/GeoJSON';import{getPointResolution}from'ol/proj';import a82_0x1afddc from'./Task';import{appendPath}from'../../UrlUtil';function a82_0x105d(_0x574b3d,_0x5b5425){const _0x337f47=a82_0x337f();return a82_0x105d=function(_0x105dbc,_0x4ab26a){_0x105dbc=_0x105dbc-0x1e9;let _0x4d39c0=_0x337f47[_0x105dbc];return _0x4d39c0;},a82_0x105d(_0x574b3d,_0x5b5425);}function a82_0x337f(){const _0x23b70e=['time','getSize','resolution','tolerance','valueOf','getResolution','128PUknXZ','identify','returnM','3458745dTgyvb','inSR','14605860naSmTZ','mapExtent','3OJRXGi','_setGeometryParams','writeGeometryObject','geometry','path','getProjection','456618Foxzcc','all','url','layers','1083480PhgufE','30065871eXYVSa','params','1603vUrtSH','455319vJlOwo','getCenter','imageDisplay','getView','returnGeometry','getType','between','layerDefs','returnZ','6YEwjsN','getCode','24396wWzLjX'];a82_0x337f=function(){return _0x23b70e;};return a82_0x337f();}import{getEsriSpatialReference}from'../../EsriUtil';export default class Identify extends a82_0x1afddc{constructor(_0x1ddf2d,_0x47ebac,_0x3a9f07){const _0x367387=a82_0x105d;super(_0x1ddf2d,_0x47ebac,_0x3a9f07),this[_0x367387(0x20e)]=_0x367387(0x204),this[_0x367387(0x1ef)]={'layers':_0x367387(0x1ea),'tolerance':0x0,'returnGeometry':!![]},this[_0x367387(0x200)]=0x3,this[_0x367387(0x1ff)]=0x0,this[_0x367387(0x1eb)]=appendPath(this['url'],this['path']),_0x47ebac&&((_0x47ebac['returnGeometry']===!![]||_0x47ebac[_0x367387(0x1f5)]===![])&&(this[_0x367387(0x1ef)][_0x367387(0x1f5)]=_0x47ebac[_0x367387(0x1f5)]),_0x47ebac[_0x367387(0x1ec)]&&(this[_0x367387(0x1ef)][_0x367387(0x1ec)]=_0x47ebac['layers']),_0x47ebac[_0x367387(0x1f8)]&&(this[_0x367387(0x1ef)][_0x367387(0x1f8)]=_0x47ebac[_0x367387(0x1f8)]),(_0x47ebac['returnZ']===!![]||_0x47ebac['returnZ']===![])&&(this[_0x367387(0x1ef)][_0x367387(0x1f9)]=_0x47ebac[_0x367387(0x1f9)]),(_0x47ebac[_0x367387(0x205)]===!![]||_0x47ebac['returnM']===![])&&(this[_0x367387(0x1ef)][_0x367387(0x205)]=_0x47ebac[_0x367387(0x205)]));}['at'](_0x543456,_0x2b0604){const _0x4b3713=a82_0x105d;let _0x14ef5a,_0x504ed7;const _0xe6756d=new a82_0x12ced5();_0x14ef5a=_0x543456,_0x504ed7=getEsriSpatialReference(_0x2b0604[_0x4b3713(0x1f4)]()['getProjection']()['getCode']());const _0x49b8be=_0x2b0604[_0x4b3713(0x1fe)]();_0x49b8be&&(this[_0x4b3713(0x1ef)][_0x4b3713(0x1f3)]=[_0x49b8be[0x0],_0x49b8be[0x1],0x60]);this[_0x4b3713(0x1ef)]['sr']=_0x504ed7;const _0x4b8ac0=_0x2b0604[_0x4b3713(0x1f4)]()['calculateExtent'](_0x2b0604[_0x4b3713(0x1fe)]());this[_0x4b3713(0x1ef)][_0x4b3713(0x209)]={'xmin':_0x4b8ac0[0x0],'ymin':_0x4b8ac0[0x1],'xmax':_0x4b8ac0[0x2],'ymax':_0x4b8ac0[0x3],'spatialReference':_0x504ed7};const _0x32680e=_0x2b0604[_0x4b3713(0x1f4)]()[_0x4b3713(0x202)](),_0x5b3fc9=_0x2b0604[_0x4b3713(0x1f4)]()[_0x4b3713(0x1f2)]();return _0x32680e&&_0x5b3fc9&&(this[_0x4b3713(0x1ff)]=getPointResolution(_0x2b0604[_0x4b3713(0x1f4)]()[_0x4b3713(0x20f)](),_0x32680e,_0x5b3fc9)),this[_0x4b3713(0x20b)](_0x14ef5a,_0x2b0604[_0x4b3713(0x1f4)]()[_0x4b3713(0x20f)]()[_0x4b3713(0x1fb)]()),this;}[a82_0x5bb5a6(0x1f7)](_0x4407f1,_0x454094){const _0x2271f3=a82_0x5bb5a6;return this['params'][_0x2271f3(0x1fd)]=[_0x4407f1[_0x2271f3(0x201)](),_0x454094[_0x2271f3(0x201)]()],this;}['run'](){this['request']();}[a82_0x5bb5a6(0x20b)](_0x9561d2,_0x32e623){const _0x570742=a82_0x5bb5a6;var _0x2926eb=new a82_0x5d6ed9();const _0x263f7e=_0x2926eb[_0x570742(0x20c)](_0x9561d2);this[_0x570742(0x1ef)][_0x570742(0x207)]=getEsriSpatialReference(_0x32e623),this[_0x570742(0x1ef)][_0x570742(0x20d)]=_0x263f7e,this[_0x570742(0x1ef)]['geometryType']=this['geojsonTypeToArcGIS'](_0x9561d2[_0x570742(0x1f6)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a83_0x2f37f8=a83_0x1675;function a83_0x4bc1(){const _0x12d33a=['geometry','bboxIntersects','1183350ElMEwh','valueOf','status','request','_setGeometryParams','3511688AxqPQW','1=1','one\x20common\x20syntax\x20error\x20in\x20query\x20requests\x20is\x20encasing\x20string\x20values\x20in\x20double\x20quotes\x20instead\x20of\x20single\x20quotes','esriSpatialRelOverlaps','returnExtentOnly','layer','getType','intersects','_cleanParams','inSR','returnGeometry','getExtent','time','esriSpatialRelContains','returnZ','geojsonTypeToArcGIS','5734040MuNcSX','/query','params','distinct','push','esriSpatialRelCrosses','198KRPeXZ','returnDistinctValues','join','data','esriSpatialRelIndexIntersects','overlaps','readFeature','within','count','325121GGboIo','abs','125368BMXZss','forEach','112SZaJlQ','outSR','where','features','esriSRUnit_Meter','getTime','returnCountOnly','getSize','simplify','returnIdsOnly','writeGeometryObject','spatialRel','apply','206784TLkkpg','orderByFields','run','between','nearby','3102474komVlK','path','4SaeNDl','distance','length','400','contains','units','No\x20features\x20found','touches','warn','url','esriSpatialRelWithin','maxAllowableOffset','returnM','query','catch','orderBy'];a83_0x4bc1=function(){return _0x12d33a;};return a83_0x4bc1();}(function(_0x592450,_0x481961){const _0x349077=a83_0x1675,_0x3bb7fc=_0x592450();while(!![]){try{const _0x5cc0e7=-parseInt(_0x349077(0x10a))/0x1*(-parseInt(_0x349077(0x122))/0x2)+-parseInt(_0x349077(0x120))/0x3+parseInt(_0x349077(0x139))/0x4+-parseInt(_0x349077(0x134))/0x5+-parseInt(_0x349077(0x11b))/0x6*(parseInt(_0x349077(0x10e))/0x7)+-parseInt(_0x349077(0x10c))/0x8*(-parseInt(_0x349077(0x14f))/0x9)+parseInt(_0x349077(0x149))/0xa;if(_0x5cc0e7===_0x481961)break;else _0x3bb7fc['push'](_0x3bb7fc['shift']());}catch(_0x1c6407){_0x3bb7fc['push'](_0x3bb7fc['shift']());}}}(a83_0x4bc1,0x985ce));import a83_0x14007e from'ol/format/EsriJSON';import a83_0x17068b from'./Task';import{getEsriSpatialReference}from'../../EsriUtil';function a83_0x1675(_0x197e12,_0x5ae139){const _0x4bc159=a83_0x4bc1();return a83_0x1675=function(_0x167583,_0x2377ad){_0x167583=_0x167583-0x105;let _0x271bb8=_0x4bc159[_0x167583];return _0x271bb8;},a83_0x1675(_0x197e12,_0x5ae139);}import{appendPath}from'../../UrlUtil';export default class Query extends a83_0x17068b{constructor(_0x3dcae9,_0x13179c,_0x146293){const _0x339c0a=a83_0x1675;super(_0x3dcae9,_0x13179c,_0x146293),this[_0x339c0a(0x121)]=_0x339c0a(0x12f),this[_0x339c0a(0x14b)]={'returnGeometry':!![],'where':_0x339c0a(0x13a),'outFields':'*','returnZ':![],'returnM':![],'t':new Date()[_0x339c0a(0x113)]()},this[_0x339c0a(0x12b)]=appendPath(this[_0x339c0a(0x12b)],this[_0x339c0a(0x121)]),_0x13179c&&((_0x13179c[_0x339c0a(0x143)]===!![]||_0x13179c[_0x339c0a(0x143)]===![])&&(this[_0x339c0a(0x14b)]['returnGeometry']=_0x13179c[_0x339c0a(0x143)]),_0x13179c[_0x339c0a(0x110)]&&(this[_0x339c0a(0x14b)]['where']=_0x13179c[_0x339c0a(0x110)]),_0x13179c[_0x339c0a(0x10f)]&&(this['params'][_0x339c0a(0x10f)]=getEsriSpatialReference(_0x13179c['outSR'])),(_0x13179c['returnZ']===!![]||_0x13179c[_0x339c0a(0x147)]===![])&&(this[_0x339c0a(0x14b)][_0x339c0a(0x147)]=_0x13179c['returnZ']),(_0x13179c['returnM']===!![]||_0x13179c[_0x339c0a(0x12e)]===![])&&(this['params'][_0x339c0a(0x12e)]=_0x13179c[_0x339c0a(0x12e)]));}[a83_0x2f37f8(0x108)](_0x1b52e5,_0x223884){const _0x528d51=a83_0x2f37f8;return this['_setGeometryParams'](_0x1b52e5,_0x223884),this[_0x528d51(0x14b)][_0x528d51(0x119)]=_0x528d51(0x146),this;}[a83_0x2f37f8(0x140)](_0x3c8b5b,_0x5651c7){const _0x4b6fe4=a83_0x2f37f8;return this['_setGeometryParams'](_0x3c8b5b,_0x5651c7),this[_0x4b6fe4(0x14b)][_0x4b6fe4(0x119)]='esriSpatialRelIntersects',this;}[a83_0x2f37f8(0x126)](_0x617274,_0x288134){const _0x2d3cee=a83_0x2f37f8;return this[_0x2d3cee(0x138)](_0x617274,_0x288134),this['params'][_0x2d3cee(0x119)]=_0x2d3cee(0x12c),this;}['crosses'](_0xd84da2,_0x443580){const _0x53f590=a83_0x2f37f8;return this[_0x53f590(0x138)](_0xd84da2,_0x443580),this[_0x53f590(0x14b)][_0x53f590(0x119)]=_0x53f590(0x14e),this;}[a83_0x2f37f8(0x129)](_0x5c8a99,_0x220e38){const _0xd649f2=a83_0x2f37f8;return this[_0xd649f2(0x138)](_0x5c8a99,_0x220e38),this[_0xd649f2(0x14b)][_0xd649f2(0x119)]='esriSpatialRelTouches',this;}[a83_0x2f37f8(0x106)](_0x190b61,_0xd244a8){const _0x3811ed=a83_0x2f37f8;return this['_setGeometryParams'](_0x190b61,_0xd244a8),this[_0x3811ed(0x14b)]['spatialRel']=_0x3811ed(0x13c),this;}[a83_0x2f37f8(0x133)](_0x41fb6c,_0x56772c){const _0x561457=a83_0x2f37f8;return this[_0x561457(0x138)](_0x41fb6c,_0x56772c),this[_0x561457(0x14b)][_0x561457(0x119)]='esriSpatialRelEnvelopeIntersects',this;}['indexIntersects'](_0x553e53,_0x420328){const _0x3217f3=a83_0x2f37f8;return this[_0x3217f3(0x138)](_0x553e53,_0x420328),this[_0x3217f3(0x14b)][_0x3217f3(0x119)]=_0x3217f3(0x105),this;}[a83_0x2f37f8(0x11f)](_0x4b7737,_0x286dbc,_0x56cae6){const _0x3ead59=a83_0x2f37f8;return this['_setGeometryParams'](_0x4b7737,_0x286dbc),this[_0x3ead59(0x14b)]['spatialRel']='esriSpatialRelIntersects',this[_0x3ead59(0x14b)][_0x3ead59(0x127)]=_0x3ead59(0x112),this['params'][_0x3ead59(0x123)]=_0x56cae6,this;}[a83_0x2f37f8(0x110)](_0x1c85ff){const _0x519606=a83_0x2f37f8;return this[_0x519606(0x14b)]['where']=_0x1c85ff,this;}[a83_0x2f37f8(0x11e)](_0x2f2af4,_0x421f25){const _0x4dac81=a83_0x2f37f8;return this[_0x4dac81(0x14b)][_0x4dac81(0x145)]=[_0x2f2af4['valueOf'](),_0x421f25[_0x4dac81(0x135)]()],this;}[a83_0x2f37f8(0x116)](_0x5b260e,_0x59d51e){const _0x4f23c5=a83_0x2f37f8,_0x2e3dee=_0x5b260e[_0x4f23c5(0x144)]();var _0xf415b1=Math[_0x4f23c5(0x10b)](_0x2e3dee[0x2]-_0x2e3dee[0x0]);const _0xd74de5=_0x5b260e[_0x4f23c5(0x115)]();if(_0xd74de5)return this[_0x4f23c5(0x14b)][_0x4f23c5(0x12d)]=_0xf415b1/_0xd74de5[0x1]*_0x59d51e,this;}[a83_0x2f37f8(0x131)](_0x3d3b2e,_0x5e9ac1){const _0x7712f8=a83_0x2f37f8;return _0x5e9ac1=_0x5e9ac1||'ASC',this[_0x7712f8(0x14b)][_0x7712f8(0x11c)]=this['params']['orderByFields']?this[_0x7712f8(0x14b)][_0x7712f8(0x11c)]+',':'',this[_0x7712f8(0x14b)][_0x7712f8(0x11c)]+=[_0x3d3b2e,_0x5e9ac1][_0x7712f8(0x151)]('\x20'),this;}async[a83_0x2f37f8(0x11d)](){const _0x540eda=a83_0x2f37f8;this[_0x540eda(0x141)]();const _0x37a27e=await this['request']()[_0x540eda(0x130)](_0xa33c46=>{throw new Error(_0xa33c46);});if(_0x37a27e[_0x540eda(0x136)]!==0xc8)throw new Error(_0x540eda(0x128));if(_0x37a27e[_0x540eda(0x152)]&&_0x37a27e[_0x540eda(0x152)][_0x540eda(0x111)]&&_0x37a27e[_0x540eda(0x152)][_0x540eda(0x111)][_0x540eda(0x124)]>0x0){var _0x764b5a=new a83_0x14007e();let _0xdaa2c1=[];return _0x37a27e[_0x540eda(0x152)][_0x540eda(0x111)][_0x540eda(0x10d)](_0x22e9ff=>{const _0xd2e46f=_0x540eda,_0x38c57a=_0x764b5a[_0xd2e46f(0x107)](_0x22e9ff);_0xdaa2c1[_0xd2e46f(0x14d)](_0x38c57a);}),_0xdaa2c1;}return[];}[a83_0x2f37f8(0x109)](){const _0x30641b=a83_0x2f37f8;this[_0x30641b(0x141)](),this[_0x30641b(0x14b)][_0x30641b(0x114)]=!![],this[_0x30641b(0x137)]();}['ids'](){const _0x2f1a64=a83_0x2f37f8;this[_0x2f1a64(0x141)](),this['params'][_0x2f1a64(0x117)]=!![],this[_0x2f1a64(0x137)]();}[a83_0x2f37f8(0x14c)](){const _0x90b284=a83_0x2f37f8;return this['params'][_0x90b284(0x143)]=![],this['params'][_0x90b284(0x150)]=!![],this;}[a83_0x2f37f8(0x13e)](_0x383df5){const _0x26e777=a83_0x2f37f8;return this[_0x26e777(0x121)]=_0x383df5+_0x26e777(0x14a),this;}['_trapSQLerrors'](_0x2fb572){const _0x55bbc5=a83_0x2f37f8;_0x2fb572&&(_0x2fb572['code']===_0x55bbc5(0x125)&&console[_0x55bbc5(0x12a)][_0x55bbc5(0x11a)](_0x55bbc5(0x13b)));}[a83_0x2f37f8(0x141)](){const _0x422816=a83_0x2f37f8;delete this['params']['returnIdsOnly'],delete this['params'][_0x422816(0x13d)],delete this['params'][_0x422816(0x114)];}['_setGeometryParams'](_0x33885b,_0x4f475a){const _0x1b1e48=a83_0x2f37f8;var _0x5c4c57=new a83_0x14007e();const _0x356682=_0x5c4c57[_0x1b1e48(0x118)](_0x33885b);this[_0x1b1e48(0x14b)][_0x1b1e48(0x142)]=getEsriSpatialReference(_0x4f475a),this['params'][_0x1b1e48(0x132)]=_0x356682,this['params']['geometryType']=this[_0x1b1e48(0x148)](_0x33885b[_0x1b1e48(0x13f)]());}}
|
package/utils/tasks/esri/Task.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a84_0x5a2831=a84_0x22aa;function a84_0x22aa(_0x47b7b7,_0x2a4cab){var _0x5a36b2=a84_0x5a36();return a84_0x22aa=function(_0x22aa86,_0x5d2c58){_0x22aa86=_0x22aa86-0x1c1;var _0x3bf717=_0x5a36b2[_0x22aa86];return _0x3bf717;},a84_0x22aa(_0x47b7b7,_0x2a4cab);}(function(_0x34e914,_0x4fbbf3){var _0x1143e9=a84_0x22aa,_0x3202b8=_0x34e914();while(!![]){try{var _0x134237=parseInt(_0x1143e9(0x1ca))/0x1+parseInt(_0x1143e9(0x1de))/0x2+-parseInt(_0x1143e9(0x1c5))/0x3+-parseInt(_0x1143e9(0x1c7))/0x4*(-parseInt(_0x1143e9(0x1d5))/0x5)+parseInt(_0x1143e9(0x1d8))/0x6*(-parseInt(_0x1143e9(0x1dd))/0x7)+-parseInt(_0x1143e9(0x1d9))/0x8+parseInt(_0x1143e9(0x1e4))/0x9*(parseInt(_0x1143e9(0x1e5))/0xa);if(_0x134237===_0x4fbbf3)break;else _0x3202b8['push'](_0x3202b8['shift']());}catch(_0x3bfb52){_0x3202b8['push'](_0x3202b8['shift']());}}}(a84_0x5a36,0x90582));import a84_0x2bf05a from'../../AxiosUtil';import{jsonp,stringify}from'../../AxiosUtil';export default class Task{constructor(_0x3344a8,_0x4b72e1,_0x21bf0f){var _0x4409f9=a84_0x22aa;this[_0x4409f9(0x1cc)]=_0x3344a8,this[_0x4409f9(0x1d4)]=_0x4b72e1||{},this['method']=!_0x21bf0f?_0x4409f9(0x1dc):_0x21bf0f;}[a84_0x5a2831(0x1ce)](_0x48dbab){var _0x4aa34e=a84_0x5a2831,_0x430b61;switch(_0x48dbab){case _0x4aa34e(0x1df):_0x430b61=_0x4aa34e(0x1d7);break;case _0x4aa34e(0x1db):_0x430b61=_0x4aa34e(0x1e6);break;case _0x4aa34e(0x1da):_0x430b61=_0x4aa34e(0x1cb);break;case'MultiLineString':_0x430b61='esriGeometryPolyline';break;case _0x4aa34e(0x1d6):_0x430b61=_0x4aa34e(0x1d3);break;case _0x4aa34e(0x1c9):_0x430b61=_0x4aa34e(0x1d3);break;}return _0x430b61;}['isArcgisOnline'](_0x62411b){var _0x4c91c2=a84_0x5a2831;return/^(?!.*utility\.arcgis\.com).*\.arcgis\.com.*FeatureServer/i[_0x4c91c2(0x1c3)](_0x62411b);}[a84_0x5a2831(0x1d0)](_0x20a066){var _0x5e1e7e=a84_0x5a2831,_0x4938fa='';_0x20a066['f']=_0x20a066['f']||_0x5e1e7e(0x1c6);for(var _0x3d9603 in _0x20a066){if(Object[_0x5e1e7e(0x1e8)][_0x5e1e7e(0x1c1)][_0x5e1e7e(0x1d1)](_0x20a066,_0x3d9603)){var _0x4937ac=_0x20a066[_0x3d9603],_0x1ecb2e=Object[_0x5e1e7e(0x1e8)][_0x5e1e7e(0x1cd)][_0x5e1e7e(0x1d1)](_0x4937ac),_0x9f355f;_0x4938fa[_0x5e1e7e(0x1e2)]&&(_0x4938fa+='&');if(_0x1ecb2e===_0x5e1e7e(0x1c2))_0x9f355f=Object[_0x5e1e7e(0x1e8)][_0x5e1e7e(0x1cd)][_0x5e1e7e(0x1d1)](_0x4937ac[0x0])===_0x5e1e7e(0x1e7)?JSON[_0x5e1e7e(0x1cf)](_0x4937ac):_0x4937ac[_0x5e1e7e(0x1e0)](',');else{if(_0x1ecb2e===_0x5e1e7e(0x1e7))_0x9f355f=JSON[_0x5e1e7e(0x1cf)](_0x4937ac);else _0x1ecb2e==='[object\x20Date]'?_0x9f355f=_0x4937ac['valueOf']():_0x9f355f=_0x4937ac;}_0x4938fa+=encodeURIComponent(_0x3d9603)+'='+encodeURIComponent(_0x9f355f);}}return _0x4938fa;}[a84_0x5a2831(0x1e3)](_0x1c809a){var _0x507a66=a84_0x5a2831;return this[_0x507a66(0x1d4)][_0x507a66(0x1c4)]=!_0x1c809a,this;}async['request'](){var _0x489193=a84_0x5a2831,_0x25c09f=this['serialize'](this[_0x489193(0x1d4)]);const _0x46c46f=this[_0x489193(0x1cc)][_0x489193(0x1c8)]('?')>-0x1?this['url']+'&'+_0x25c09f:this[_0x489193(0x1cc)]+'?'+_0x25c09f;if(this[_0x489193(0x1d2)]===_0x489193(0x1dc))return a84_0x2bf05a[_0x489193(0x1e1)](_0x46c46f);else{if(this[_0x489193(0x1d2)]==='JSONP')return jsonp(_0x46c46f);else{const _0x899e45=stringify(this[_0x489193(0x1d4)]);return a84_0x2bf05a['post'](this[_0x489193(0x1cc)],_0x899e45);}}}}function a84_0x5a36(){var _0x18beb6=['toString','geojsonTypeToArcGIS','stringify','serialize','call','method','esriGeometryPolygon','params','3115YyeVet','Polygon','esriGeometryPoint','384uqgYgs','1727560HSTSgv','LineString','MultiPoint','GET','49861LCTXWj','196370jiwsFq','Point','join','get','length','format','9oppYce','1707820aqgVGf','esriGeometryMultipoint','[object\x20Object]','prototype','hasOwnProperty','[object\x20Array]','test','returnUnformattedValues','1010325lcWjEr','json','4036SUgLvN','indexOf','MultiPolygon','702252quObMK','esriGeometryPolyline','url'];a84_0x5a36=function(){return _0x18beb6;};return a84_0x5a36();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a86_0x3184(_0x13961f,_0x7200e){const _0x2191c0=a86_0x2191();return a86_0x3184=function(_0x31848c,_0x536c29){_0x31848c=_0x31848c-0x131;let _0x15f454=_0x2191c0[_0x31848c];return _0x15f454;},a86_0x3184(_0x13961f,_0x7200e);}const a86_0x5ab0b5=a86_0x3184;(function(_0x5ab742,_0x5dd7d0){const _0x607378=a86_0x3184,_0x3b0fd7=_0x5ab742();while(!![]){try{const _0x560d2b=parseInt(_0x607378(0x151))/0x1+-parseInt(_0x607378(0x131))/0x2+parseInt(_0x607378(0x142))/0x3+-parseInt(_0x607378(0x13d))/0x4*(-parseInt(_0x607378(0x14e))/0x5)+parseInt(_0x607378(0x140))/0x6*(-parseInt(_0x607378(0x14c))/0x7)+parseInt(_0x607378(0x141))/0x8+-parseInt(_0x607378(0x13c))/0x9*(parseInt(_0x607378(0x137))/0xa);if(_0x560d2b===_0x5dd7d0)break;else _0x3b0fd7['push'](_0x3b0fd7['shift']());}catch(_0x17f3bb){_0x3b0fd7['push'](_0x3b0fd7['shift']());}}}(a86_0x2191,0x406e3));function a86_0x2191(){const _0x2518d0=['2349152ncYSaS','1516779cuXieK','serializeToString','features','execute','geometry','read','stringify','writeGetFeature','readFeature','where','28zMElyF','queryParameters','34430qUgUhu','_geoserverQuery','json','235907tUFJSs','256896ESnPaL','map','tableName','error','application/json','then','55450nhBodH','srsName','url','catch','the_geom','999uVSqTR','116TntBiH','POST','geometryName','340482FspNhf'];a86_0x2191=function(){return _0x2518d0;};return a86_0x2191();}import{and,intersects}from'ol/format/filter';import a86_0x1a6e26 from'../../format/CQL';import a86_0x28cf51 from'ol/format/WFS';import a86_0x474ecf from'ol/format/GeoJSON';export default class QueryTask{constructor(_0x339081){const _0x479cff=a86_0x3184;this[_0x479cff(0x14d)]={},this[_0x479cff(0x139)]=_0x339081;}async[a86_0x5ab0b5(0x145)](_0x269ef4){const _0x52d1fb=a86_0x5ab0b5;this[_0x52d1fb(0x14d)]=_0x269ef4||{};const _0x149367=this[_0x52d1fb(0x14d)][_0x52d1fb(0x13f)]||_0x52d1fb(0x13b);let _0x4683b7=this[_0x52d1fb(0x14d)]['where'],_0x639bc3;_0x4683b7&&(_0x639bc3=new a86_0x1a6e26()[_0x52d1fb(0x147)](_0x4683b7));let _0x190316=_0x639bc3;if(this[_0x52d1fb(0x14d)][_0x52d1fb(0x146)]){if(!this['queryParameters'][_0x52d1fb(0x138)])throw new Error('srsName\x20is\x20required');const _0x311a29=intersects(_0x149367,this[_0x52d1fb(0x14d)][_0x52d1fb(0x146)]);_0x190316=_0x639bc3?and(_0x639bc3,_0x311a29):_0x311a29;}let _0x174113=new a86_0x28cf51()[_0x52d1fb(0x149)]({'srsName':this['queryParameters'][_0x52d1fb(0x138)],'featureNS':'','featurePrefix':'','featureTypes':[this['queryParameters']['tableName']],'outputFormat':_0x52d1fb(0x135),'geometryName':_0x149367,'filter':_0x190316});const _0x20b793=await fetch(this['url'],{'method':_0x52d1fb(0x13e),'body':new XMLSerializer()[_0x52d1fb(0x143)](_0x174113)}),_0x23302a=await _0x20b793['json']();let _0x5bbf9c=[];const _0x2a9765=new a86_0x474ecf();return _0x5bbf9c=_0x23302a[_0x52d1fb(0x144)][_0x52d1fb(0x132)](_0x1afc60=>{const _0x3e3ec5=_0x52d1fb;return _0x2a9765[_0x3e3ec5(0x14a)](JSON[_0x3e3ec5(0x148)](_0x1afc60));}),_0x5bbf9c;}[a86_0x5ab0b5(0x14f)](){const _0x59dbcf=a86_0x5ab0b5,_0x34b06a=this['queryParameters'][_0x59dbcf(0x13f)]||_0x59dbcf(0x13b);let _0x4cff7a=this[_0x59dbcf(0x14d)][_0x59dbcf(0x14b)],_0x27e1f3;_0x4cff7a&&(_0x27e1f3=new a86_0x1a6e26()[_0x59dbcf(0x147)](_0x4cff7a));let _0x5dae6e=_0x27e1f3;if(this[_0x59dbcf(0x14d)]['geometry']){const _0x5b46b9=intersects(_0x34b06a,this['queryParameters'][_0x59dbcf(0x146)]);_0x5dae6e=_0x27e1f3?and(_0x27e1f3,_0x5b46b9):_0x5b46b9;}let _0x17a64f=new a86_0x28cf51()['writeGetFeature']({'srsName':this[_0x59dbcf(0x14d)][_0x59dbcf(0x138)],'featureNS':'','featurePrefix':'','featureTypes':[this[_0x59dbcf(0x14d)][_0x59dbcf(0x133)]],'outputFormat':'application/json','geometryName':_0x34b06a,'filter':_0x5dae6e});return new Promise(_0x1325c1=>{const _0x3909d1=_0x59dbcf;fetch(this['url'],{'method':'POST','body':new XMLSerializer()['serializeToString'](_0x17a64f)})[_0x3909d1(0x136)](_0x25d7e2=>{const _0x5d4ba5=_0x3909d1;return _0x25d7e2[_0x5d4ba5(0x150)]();})['then'](_0x2ab11f=>{const _0x52982d=_0x3909d1;let _0x40b707=[];const _0x5a8074=new a86_0x474ecf();_0x40b707=_0x2ab11f[_0x52982d(0x144)]['map'](_0x4d8659=>{const _0x1ea4ea=_0x52982d;return _0x5a8074[_0x1ea4ea(0x14a)](JSON['stringify'](_0x4d8659));}),_0x1325c1(_0x40b707);})[_0x3909d1(0x13a)](_0x7c376=>{const _0x28b7b5=_0x3909d1;_0x1325c1([]),console[_0x28b7b5(0x134)](_0x7c376);});});}}
|
package/utils/tasks/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2d7393,_0x544863){const _0x2b2ebd=a87_0x3be3,_0x49d57d=_0x2d7393();while(!![]){try{const _0xcbe35a=-parseInt(_0x2b2ebd(0xbb))/0x1*(parseInt(_0x2b2ebd(0xc0))/0x2)+-parseInt(_0x2b2ebd(0xba))/0x3+parseInt(_0x2b2ebd(0xbe))/0x4*(-parseInt(_0x2b2ebd(0xb7))/0x5)+-parseInt(_0x2b2ebd(0xb1))/0x6+parseInt(_0x2b2ebd(0xb4))/0x7+parseInt(_0x2b2ebd(0xc1))/0x8*(-parseInt(_0x2b2ebd(0xaf))/0x9)+parseInt(_0x2b2ebd(0xb2))/0xa;if(_0xcbe35a===_0x544863)break;else _0x49d57d['push'](_0x49d57d['shift']());}catch(_0x14743b){_0x49d57d['push'](_0x49d57d['shift']());}}}(a87_0x24f1,0x5b50b));import{appendPath}from'../UrlUtil';import a87_0x4ad465 from'./esri/Query';function a87_0x3be3(_0x1041aa,_0xbe8bc3){const _0x24f147=a87_0x24f1();return a87_0x3be3=function(_0x3be31c,_0x393bdd){_0x3be31c=_0x3be31c-0xaf;let _0x8b07d5=_0x24f147[_0x3be31c];return _0x8b07d5;},a87_0x3be3(_0x1041aa,_0xbe8bc3);}import a87_0x21ec5f from'./geoserver/QueryTask';function a87_0x24f1(){const _0x5d2f24=['204208jcwRlJ','45oTjYxY','run','1929996AENrVL','26153400RnFPLq','geoserver-wms','26894DIwTFl','arcgis-feature','name','23845IwIOZo','layerFields','fieldType','2006808rlwSvr','32qEZNvE','find','arcgis-dynamic','556wZKxeT','execute','29002JBkPHB'];a87_0x24f1=function(){return _0x5d2f24;};return a87_0x24f1();}import{getWFSLayerCapabilities}from'../../capabilities';export async function selectFeaturesByGeo(_0x16febd,_0x3f0b45,_0x8730ce,_0x1f6981,_0x275221,_0x4203ae){const _0x55d6dc=a87_0x3be3;if(!_0x8730ce||!_0x1f6981||!_0x275221||!_0x275221)return[];let _0x4a9d00=[];if(_0x275221==_0x55d6dc(0xbd)||_0x275221==_0x55d6dc(0xb5)){const _0x1d344a=appendPath(_0x8730ce,_0x1f6981),_0x5e6018=new a87_0x4ad465(_0x1d344a,{'outSR':_0x3f0b45,'where':_0x4203ae});_0x5e6018['intersects'](_0x16febd,_0x3f0b45),_0x4a9d00=await _0x5e6018[_0x55d6dc(0xb0)]();}else{if(_0x275221=='geoserver-wfs'||_0x275221==_0x55d6dc(0xb3)){const _0x5ce74d=new a87_0x21ec5f(_0x8730ce),_0x1bd32f=await getWFSLayerCapabilities(_0x8730ce,_0x1f6981),_0x4dfc84=_0x1bd32f[_0x55d6dc(0xb8)][_0x55d6dc(0xbc)](_0x2685bd=>_0x2685bd[_0x55d6dc(0xb9)]==0x6);_0x4a9d00=await _0x5ce74d[_0x55d6dc(0xbf)]({'geometry':_0x16febd,'tableName':_0x1f6981,'geometryName':_0x4dfc84?_0x4dfc84[_0x55d6dc(0xb6)]:'','srsName':_0x3f0b45,'where':_0x4203ae});}}return _0x4a9d00;}
|