ym-gis-2d 1.0.23 → 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.d.ts +2 -2
- 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
|
+
function a75_0x54bf(){const _0x13dea3=['fromColor','ERROR','fillRect','1DQobvQ','color\x20is\x20required','id\x20is\x20required','353838izLbfA','beginPath','stringify','save','url\x20is\x20required','9urVlRz','destination-out','102004hLPqFA','fillStyle','fromText','#000000','size\x20is\x20required','text\x20is\x20required','_cache','LOADED','globalCompositeOperation','height','toDataURL','104168rLyGub','lineTo','IDLE','width','closePath','round','strokeStyle','moveTo','3008082PKOPlK','fromUrl','258tgmMck','destination-over','getImage','canvas','3381760uSGrPK','drawImage','27620VOLQFa','lineWidth','bold\x20','bezierCurveTo','getContext','stroke','#FFFFFF','getImageState','hexa','2972136vFIGQu'];a75_0x54bf=function(){return _0x13dea3;};return a75_0x54bf();}const a75_0x3fd648=a75_0x1eb2;(function(_0x1b913d,_0x5bf179){const _0xb43ea=a75_0x1eb2,_0x3b133a=_0x1b913d();while(!![]){try{const _0x11e012=parseInt(_0xb43ea(0x155))/0x1*(parseInt(_0xb43ea(0x16a))/0x2)+parseInt(_0xb43ea(0x158))/0x3+-parseInt(_0xb43ea(0x15f))/0x4+parseInt(_0xb43ea(0x17a))/0x5*(-parseInt(_0xb43ea(0x174))/0x6)+parseInt(_0xb43ea(0x172))/0x7+-parseInt(_0xb43ea(0x151))/0x8*(parseInt(_0xb43ea(0x15d))/0x9)+parseInt(_0xb43ea(0x178))/0xa;if(_0x11e012===_0x5bf179)break;else _0x3b133a['push'](_0x3b133a['shift']());}catch(_0x221f21){_0x3b133a['push'](_0x3b133a['shift']());}}}(a75_0x54bf,0x4a116));function a75_0x1eb2(_0x1ea689,_0x3f04ad){const _0x54bf2=a75_0x54bf();return a75_0x1eb2=function(_0x1eb2aa,_0x50e29d){_0x1eb2aa=_0x1eb2aa-0x149;let _0x2bc41b=_0x54bf2[_0x1eb2aa];return _0x2bc41b;},a75_0x1eb2(_0x1ea689,_0x3f04ad);}import a75_0x495869 from'color';import a75_0x39fbb5 from'./writeTextToCanvas';import{Icon}from'ol/style';import a75_0x6cff99 from'ol/ImageState';import{parseImage}from'../../UrlUtil.js';class PinBuilder{constructor(){const _0x58c407=a75_0x1eb2;this[_0x58c407(0x165)]={};}[a75_0x3fd648(0x152)](_0x1ab247,_0x2f3f35){const _0x47ccd7=a75_0x3fd648;if(!_0x1ab247)throw new Error(_0x47ccd7(0x156));if(!_0x2f3f35)throw new Error(_0x47ccd7(0x163));return createPin('','',_0x1ab247,_0x2f3f35,this[_0x47ccd7(0x165)]);}[a75_0x3fd648(0x173)](_0x4cb486,_0x16d102,_0x88fa9b){const _0x4b6421=a75_0x3fd648;if(!_0x4cb486)throw new Error(_0x4b6421(0x15c));if(!_0x16d102)throw new Error('color\x20is\x20required');if(!_0x88fa9b)throw new Error(_0x4b6421(0x163));return createPin(_0x4cb486,'',_0x16d102,_0x88fa9b,this[_0x4b6421(0x165)]);}['fromMakiIconId'](_0x1bd6ca,_0x105fad,_0x3cdca2){const _0x275b50=a75_0x3fd648;if(!_0x1bd6ca)throw new Error(_0x275b50(0x157));if(!_0x105fad)throw new Error(_0x275b50(0x156));if(!_0x3cdca2)throw new Error('size\x20is\x20required');return createPin(parseImage(_0x1bd6ca),'',_0x105fad,_0x3cdca2,this['_cache']);}[a75_0x3fd648(0x161)](_0x5775f1,_0x3a9692,_0x794e97){const _0x1ca12e=a75_0x3fd648;if(!_0x5775f1)throw new Error(_0x1ca12e(0x164));if(!_0x3a9692)throw new Error(_0x1ca12e(0x156));if(!_0x794e97)throw new Error(_0x1ca12e(0x163));return createPin('',_0x5775f1,_0x3a9692,_0x794e97,this[_0x1ca12e(0x165)]);}}function drawPin(_0x2defcb,_0x5815f5,_0x2cdc34){const _0x51d0c5=a75_0x3fd648;_0x2defcb[_0x51d0c5(0x15b)](),_0x2defcb['scale'](_0x2cdc34/0x18,_0x2cdc34/0x18),_0x2defcb[_0x51d0c5(0x160)]=_0x5815f5,_0x2defcb[_0x51d0c5(0x170)]=a75_0x495869(_0x5815f5)['lighten'](0.6)[_0x51d0c5(0x150)](),_0x2defcb[_0x51d0c5(0x149)]=0.846,_0x2defcb[_0x51d0c5(0x159)](),_0x2defcb[_0x51d0c5(0x171)](6.72,0.422),_0x2defcb[_0x51d0c5(0x16b)](17.28,0.422),_0x2defcb[_0x51d0c5(0x14b)](18.553,0.422,19.577,1.758,19.577,3.415),_0x2defcb[_0x51d0c5(0x16b)](19.577,10.973),_0x2defcb[_0x51d0c5(0x14b)](19.577,12.63,18.553,13.966,17.282,13.966),_0x2defcb[_0x51d0c5(0x16b)](14.386,14.008),_0x2defcb[_0x51d0c5(0x16b)](11.826,23.578),_0x2defcb[_0x51d0c5(0x16b)](9.614,14.008),_0x2defcb[_0x51d0c5(0x16b)](6.719,13.965),_0x2defcb[_0x51d0c5(0x14b)](5.446,13.983,4.422,12.629,4.422,10.972),_0x2defcb[_0x51d0c5(0x16b)](4.422,3.416),_0x2defcb[_0x51d0c5(0x14b)](4.423,1.76,5.447,0.423,6.718,0.423),_0x2defcb[_0x51d0c5(0x16e)](),_0x2defcb['fill'](),_0x2defcb[_0x51d0c5(0x14d)](),_0x2defcb['restore']();}function drawIcon(_0x133e0f,_0x4722a4,_0x359a3a){const _0x43a052=a75_0x3fd648,_0x22b39f=_0x359a3a/2.5;let _0x3e0947=_0x22b39f,_0xfa4869=_0x22b39f;if(_0x4722a4[_0x43a052(0x16d)]>_0x4722a4[_0x43a052(0x168)])_0xfa4869=_0x22b39f*(_0x4722a4[_0x43a052(0x168)]/_0x4722a4[_0x43a052(0x16d)]);else _0x4722a4[_0x43a052(0x16d)]<_0x4722a4['height']&&(_0x3e0947=_0x22b39f*(_0x4722a4[_0x43a052(0x16d)]/_0x4722a4['height']));const _0xcfb4f6=Math[_0x43a052(0x16f)]((_0x359a3a-_0x3e0947)/0x2),_0x16ee81=Math[_0x43a052(0x16f)](0x7/0x18*_0x359a3a-_0xfa4869/0x2);_0x133e0f[_0x43a052(0x167)]=_0x43a052(0x15e),_0x133e0f['drawImage'](_0x4722a4,_0xcfb4f6-0x1,_0x16ee81,_0x3e0947,_0xfa4869),_0x133e0f[_0x43a052(0x179)](_0x4722a4,_0xcfb4f6,_0x16ee81-0x1,_0x3e0947,_0xfa4869),_0x133e0f[_0x43a052(0x179)](_0x4722a4,_0xcfb4f6+0x1,_0x16ee81,_0x3e0947,_0xfa4869),_0x133e0f[_0x43a052(0x179)](_0x4722a4,_0xcfb4f6,_0x16ee81+0x1,_0x3e0947,_0xfa4869),_0x133e0f['globalCompositeOperation']=_0x43a052(0x175),_0x133e0f['fillStyle']=_0x43a052(0x162),_0x133e0f[_0x43a052(0x154)](_0xcfb4f6-0x1,_0x16ee81-0x1,_0x3e0947+0x2,_0xfa4869+0x2),_0x133e0f[_0x43a052(0x167)]=_0x43a052(0x15e),_0x133e0f[_0x43a052(0x179)](_0x4722a4,_0xcfb4f6,_0x16ee81,_0x3e0947,_0xfa4869),_0x133e0f['globalCompositeOperation']=_0x43a052(0x175),_0x133e0f[_0x43a052(0x160)]=_0x43a052(0x14e),_0x133e0f['fillRect'](_0xcfb4f6-0x1,_0x16ee81-0x2,_0x3e0947+0x2,_0xfa4869+0x2);}const stringifyScratch=new Array(0x4);function createPin(_0x398141,_0x3c1ee9,_0x33f0c2,_0x1b6e40,_0x520d07){const _0xda0ae2=a75_0x3fd648;stringifyScratch[0x0]=_0x398141,stringifyScratch[0x1]=_0x3c1ee9,stringifyScratch[0x2]=_0x33f0c2,stringifyScratch[0x3]=_0x1b6e40;const _0x45f7a3=JSON[_0xda0ae2(0x15a)](stringifyScratch),_0x4e4152=_0x520d07[_0x45f7a3];if(_0x4e4152)return _0x4e4152;const _0xd9a1ba=document['createElement'](_0xda0ae2(0x177));_0xd9a1ba[_0xda0ae2(0x16d)]=_0x1b6e40,_0xd9a1ba['height']=_0x1b6e40;const _0x183786=_0xd9a1ba[_0xda0ae2(0x14c)]('2d');drawPin(_0x183786,_0x33f0c2,_0x1b6e40);if(_0x398141)return new Promise(_0x2bb386=>{const _0x579733=_0xda0ae2;let _0x15d916=new Icon({'src':_0x398141}),_0x7d9ee4=_0x15d916[_0x579733(0x14f)]();_0x7d9ee4===a75_0x6cff99['LOADED']||_0x7d9ee4===a75_0x6cff99[_0x579733(0x153)]?(drawIcon(_0x183786,_0x15d916['getImage'](0x60),_0x1b6e40),_0x520d07[_0x45f7a3]=_0xd9a1ba['toDataURL'](),_0x2bb386(_0xd9a1ba[_0x579733(0x169)]())):(_0x7d9ee4===a75_0x6cff99[_0x579733(0x16c)]&&_0x15d916['load'](),_0x15d916['listenImageChange'](_0x435a56=>{const _0x7fcb30=_0x579733;_0x7d9ee4=_0x435a56['target'][_0x7fcb30(0x14f)](),(_0x7d9ee4===a75_0x6cff99[_0x7fcb30(0x166)]||_0x7d9ee4===a75_0x6cff99['ERROR'])&&(drawIcon(_0x183786,_0x15d916[_0x7fcb30(0x176)](0x60),_0x1b6e40),_0x520d07[_0x45f7a3]=_0xd9a1ba[_0x7fcb30(0x169)](),_0x2bb386(_0xd9a1ba['toDataURL']()));}));});else{if(_0x3c1ee9){const _0x2c9785=a75_0x39fbb5(_0x3c1ee9,{'font':_0xda0ae2(0x14a)+_0x1b6e40+'px\x20sans-serif'});drawIcon(_0x183786,_0x2c9785,_0x1b6e40);}}return _0x520d07[_0x45f7a3]=_0xd9a1ba[_0xda0ae2(0x169)](),_0xd9a1ba['toDataURL']();}export default PinBuilder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x16a2d0=a76_0x3a65;function a76_0x975c(){const _0x3d7d03=['load','then','344VHeNTy','markerSize','get','warn','1103040ohEjRt','listenImageChange','_listener','_icon','image','getImage','2135ArVAKa','_imageState','loadIcon','options','945896KyTyNe','LOADED','472LIWZCu','error','299656KZKatV','177390JsHQhx','markerColor','3618gcjvFm','3893680YgOPGf','fromUrl','IDLE','fromText','markerLabel','9cWwKmg','ERROR','target','getImageState','set','dispatchEvent'];a76_0x975c=function(){return _0x3d7d03;};return a76_0x975c();}(function(_0x946829,_0xcb5eca){const _0xdf2d81=a76_0x3a65,_0x448250=_0x946829();while(!![]){try{const _0x5095ff=parseInt(_0xdf2d81(0x90))/0x1*(-parseInt(_0xdf2d81(0xa9))/0x2)+parseInt(_0xdf2d81(0x9b))/0x3*(-parseInt(_0xdf2d81(0x96))/0x4)+parseInt(_0xdf2d81(0x99))/0x5+parseInt(_0xdf2d81(0xad))/0x6+parseInt(_0xdf2d81(0x94))/0x7+parseInt(_0xdf2d81(0x98))/0x8*(-parseInt(_0xdf2d81(0xa1))/0x9)+parseInt(_0xdf2d81(0x9c))/0xa;if(_0x5095ff===_0xcb5eca)break;else _0x448250['push'](_0x448250['shift']());}catch(_0x488543){_0x448250['push'](_0x448250['shift']());}}}(a76_0x975c,0x300dd));import a76_0x43fb2b from'./PinBuilder';import{Icon}from'ol/style';import a76_0x41ec45 from'ol/ImageState';import a76_0x2dc7b3 from'ol/events/Event';function a76_0x3a65(_0x116109,_0xa7f64f){const _0x975cd8=a76_0x975c();return a76_0x3a65=function(_0x3a65c5,_0x26b030){_0x3a65c5=_0x3a65c5-0x8c;let _0x311e78=_0x975cd8[_0x3a65c5];return _0x311e78;},a76_0x3a65(_0x116109,_0xa7f64f);}import{shared as a76_0x59fe1e}from'./ImageCache';export default class PinIcon{constructor(_0x83810a){const _0x1e7f88=a76_0x3a65;this[_0x1e7f88(0x93)]=_0x83810a||{},this[_0x1e7f88(0x91)]=a76_0x41ec45[_0x1e7f88(0x9e)],this[_0x1e7f88(0x8d)]=a76_0x59fe1e[_0x1e7f88(0xab)](this['options']),this[_0x1e7f88(0x8d)]&&(this['_imageState']=a76_0x41ec45[_0x1e7f88(0x95)]);}['load'](){const _0x424e6d=a76_0x3a65;try{let _0xdbf7b1,_0x1f7827=new a76_0x43fb2b();if(this[_0x424e6d(0x93)][_0x424e6d(0xa0)])_0xdbf7b1=_0x1f7827[_0x424e6d(0x9f)](this[_0x424e6d(0x93)][_0x424e6d(0xa0)],this['options']['markerColor'],this[_0x424e6d(0x93)][_0x424e6d(0xaa)]||0x30);else this[_0x424e6d(0x93)][_0x424e6d(0x8e)]&&(_0xdbf7b1=_0x1f7827[_0x424e6d(0x9d)](this[_0x424e6d(0x93)][_0x424e6d(0x8e)],this[_0x424e6d(0x93)][_0x424e6d(0x9a)],this[_0x424e6d(0x93)][_0x424e6d(0xaa)]||0x30));Promise['resolve'](_0xdbf7b1)[_0x424e6d(0xa8)](_0x2ac80f=>{const _0x147e0c=_0x424e6d;this[_0x147e0c(0x92)](_0x2ac80f);})['catch'](_0x19bb45=>{const _0x279e64=_0x424e6d;console[_0x279e64(0xac)](_0x19bb45),this[_0x279e64(0x91)]=a76_0x41ec45[_0x279e64(0xa2)],this[_0x279e64(0xa6)](_0x279e64(0x97));});}catch(_0x104867){console[_0x424e6d(0xac)](_0x104867),this[_0x424e6d(0x91)]=a76_0x41ec45['ERROR'],this[_0x424e6d(0xa6)](_0x424e6d(0x97));}}[a76_0x16a2d0(0x92)](_0x5dd73e){const _0x2dfdc5=a76_0x16a2d0;this[_0x2dfdc5(0x8d)]=new Icon({'src':_0x5dd73e}),a76_0x59fe1e[_0x2dfdc5(0xa5)](this[_0x2dfdc5(0x93)],this[_0x2dfdc5(0x8d)]);let _0xec5d61=this[_0x2dfdc5(0x8d)][_0x2dfdc5(0xa4)]();_0xec5d61===a76_0x41ec45[_0x2dfdc5(0x95)]||_0xec5d61===a76_0x41ec45[_0x2dfdc5(0xa2)]?(this[_0x2dfdc5(0x91)]=this[_0x2dfdc5(0x8d)][_0x2dfdc5(0xa4)](),this[_0x2dfdc5(0xa6)](_0x2dfdc5(0xa7))):(_0xec5d61===a76_0x41ec45['IDLE']&&this[_0x2dfdc5(0x8d)]['load'](),this[_0x2dfdc5(0x8d)][_0x2dfdc5(0xae)](_0x3fe161=>{const _0x22ec3d=_0x2dfdc5;_0xec5d61=_0x3fe161['target']['getImageState'](),(_0xec5d61===a76_0x41ec45[_0x22ec3d(0x95)]||_0xec5d61===a76_0x41ec45['ERROR'])&&(this[_0x22ec3d(0x91)]=this[_0x22ec3d(0x8d)][_0x22ec3d(0xa4)](),this['dispatchEvent']('load'));}));}[a76_0x16a2d0(0xa4)](){return this['_imageState'];}['getImage'](){const _0x4b8d67=a76_0x16a2d0;var _0x298645;return(_0x298645=this[_0x4b8d67(0x8d)])===null||_0x298645===void 0x0?void 0x0:_0x298645[_0x4b8d67(0x8f)]();}[a76_0x16a2d0(0xae)](_0x2880d7){const _0x55b1b9=a76_0x16a2d0;this[_0x55b1b9(0x8c)]=_0x2880d7;}[a76_0x16a2d0(0xa6)](_0x23913f){const _0x3d5565=a76_0x16a2d0;if(this[_0x3d5565(0x8c)]){let _0x2b0d1d=new a76_0x2dc7b3(_0x23913f);_0x2b0d1d[_0x3d5565(0xa3)]=this,this['_listener'](_0x2b0d1d);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a77_0x137f(_0x337008,_0x32b5ba){const _0x2e4fc1=a77_0x2e4f();return a77_0x137f=function(_0x137f34,_0x300912){_0x137f34=_0x137f34-0x1ec;let _0x970a93=_0x2e4fc1[_0x137f34];return _0x970a93;},a77_0x137f(_0x337008,_0x32b5ba);}(function(_0xd86c42,_0x354987){const _0x23de12=a77_0x137f,_0x1d6c6c=_0xd86c42();while(!![]){try{const _0x6addaf=-parseInt(_0x23de12(0x1ed))/0x1+-parseInt(_0x23de12(0x213))/0x2+-parseInt(_0x23de12(0x1ef))/0x3+parseInt(_0x23de12(0x206))/0x4*(-parseInt(_0x23de12(0x1ec))/0x5)+-parseInt(_0x23de12(0x1f0))/0x6+-parseInt(_0x23de12(0x21c))/0x7*(-parseInt(_0x23de12(0x1fa))/0x8)+parseInt(_0x23de12(0x20f))/0x9*(parseInt(_0x23de12(0x208))/0xa);if(_0x6addaf===_0x354987)break;else _0x1d6c6c['push'](_0x1d6c6c['shift']());}catch(_0x36cc97){_0x1d6c6c['push'](_0x1d6c6c['shift']());}}}(a77_0x2e4f,0x8fed6));function measureText(_0x10a98c,_0x32cfff,_0x702306,_0x4e9458,_0x1741c4){const _0x3519f1=a77_0x137f,_0x5451a1=_0x10a98c[_0x3519f1(0x21f)](_0x32cfff),_0x2c20c6=!/\S/[_0x3519f1(0x200)](_0x32cfff);if(!_0x2c20c6&&document['defaultView']){const _0x2789ec=document['defaultView'][_0x3519f1(0x1ff)](_0x10a98c[_0x3519f1(0x211)])[_0x3519f1(0x215)](_0x3519f1(0x223))[_0x3519f1(0x202)]('px',''),_0x533cc8=document[_0x3519f1(0x20c)](_0x3519f1(0x211)),_0xfbfb28=0x64,_0x1039f1=_0x5451a1[_0x3519f1(0x20d)]+_0xfbfb28|0x0,_0x19f9a9=0x3*(_0x2789ec-0x0),_0x37fd07=_0x19f9a9/0x2;_0x533cc8[_0x3519f1(0x20d)]=_0x1039f1,_0x533cc8['height']=_0x19f9a9;const _0x28753e=_0x533cc8[_0x3519f1(0x220)]('2d');if(!_0x28753e)return{};_0x28753e[_0x3519f1(0x1f4)]=_0x702306,_0x28753e['fillStyle']=_0x3519f1(0x218),_0x28753e[_0x3519f1(0x1fc)](0x0,0x0,_0x533cc8[_0x3519f1(0x20d)]+0x1,_0x533cc8['height']+0x1);_0x4e9458&&(_0x28753e[_0x3519f1(0x21a)]=_0x3519f1(0x20b),_0x28753e[_0x3519f1(0x1fe)]=_0x10a98c[_0x3519f1(0x1fe)],_0x28753e[_0x3519f1(0x210)](_0x32cfff,_0xfbfb28/0x2,_0x37fd07));_0x1741c4&&(_0x28753e[_0x3519f1(0x222)]='black',_0x28753e[_0x3519f1(0x21d)](_0x32cfff,_0xfbfb28/0x2,_0x37fd07));const _0x4d7b72=_0x28753e[_0x3519f1(0x1f1)](0x0,0x0,_0x1039f1,_0x19f9a9)['data'],_0x48afeb=_0x4d7b72[_0x3519f1(0x204)],_0x1d42b1=_0x1039f1*0x4;let _0x354557,_0x227bae,_0x5ed738=0x0,_0x3b571a=0x0;for(_0x354557=0x0;_0x354557<_0x48afeb;++_0x354557){if(_0x4d7b72[_0x354557]!==0xff){_0x5ed738=_0x354557/_0x1d42b1|0x0;break;}}for(_0x354557=_0x48afeb-0x1;_0x354557>=0x0;--_0x354557){if(_0x4d7b72[_0x354557]!==0xff){_0x3b571a=_0x354557/_0x1d42b1|0x0;break;}}let _0x391df1=-0x1;for(_0x354557=0x0;_0x354557<_0x1039f1&&_0x391df1===-0x1;++_0x354557){for(_0x227bae=0x0;_0x227bae<_0x19f9a9;++_0x227bae){const _0x573e0f=_0x354557*0x4+_0x227bae*_0x1d42b1;if(_0x4d7b72[_0x573e0f]!==0xff||_0x4d7b72[_0x573e0f+0x1]!==0xff||_0x4d7b72[_0x573e0f+0x2]!==0xff||_0x4d7b72[_0x573e0f+0x3]!==0xff){_0x391df1=_0x354557;break;}}}return{'width':_0x5451a1[_0x3519f1(0x20d)],'height':_0x3b571a-_0x5ed738,'ascent':_0x37fd07-_0x5ed738,'descent':_0x3b571a-_0x37fd07,'minx':_0x391df1-_0xfbfb28/0x2};}return{'width':_0x5451a1[_0x3519f1(0x20d)],'height':0x0,'ascent':0x0,'descent':0x0,'minx':0x0};}let imageSmoothingEnabledName='';function writeTextToCanvas(_0x2dbca7,_0x490e1e){const _0x55e855=a77_0x137f;if(!_0x2dbca7)throw new Error('text\x20is\x20required.');if(_0x2dbca7==='')return undefined;_0x490e1e=defaultValue(_0x490e1e,{});const _0x4a231c=defaultValue(_0x490e1e['font'],_0x55e855(0x1fb)),_0x315873=defaultValue(_0x490e1e[_0x55e855(0x214)],![]),_0x304995=defaultValue(_0x490e1e[_0x55e855(0x1f5)],!![]),_0xeb0c67=defaultValue(_0x490e1e['strokeWidth'],0x1),_0x4c8a9e=defaultValue(_0x490e1e[_0x55e855(0x205)],_0x55e855(0x203)),_0x5ab541=defaultValue(_0x490e1e[_0x55e855(0x219)],0x0),_0x350ce1=_0x5ab541*0x2,_0x44ed8e=document[_0x55e855(0x20c)](_0x55e855(0x211));_0x44ed8e[_0x55e855(0x20d)]=0x1,_0x44ed8e[_0x55e855(0x1f9)]=0x1,_0x44ed8e[_0x55e855(0x209)]['font']=_0x4a231c;const _0x39c719=_0x44ed8e[_0x55e855(0x220)]('2d');if(!imageSmoothingEnabledName&&_0x39c719){if(_0x39c719[_0x55e855(0x20e)])imageSmoothingEnabledName=_0x55e855(0x20e);else{if(_0x39c719[_0x55e855(0x207)])imageSmoothingEnabledName=_0x55e855(0x207);else{if(_0x39c719[_0x55e855(0x1ee)])imageSmoothingEnabledName=_0x55e855(0x1ee);else _0x39c719['msImageSmoothingEnabled']&&(imageSmoothingEnabledName=_0x55e855(0x216));}}}_0x39c719[_0x55e855(0x1f4)]=_0x4a231c,_0x39c719['lineJoin']=_0x55e855(0x221),_0x39c719[_0x55e855(0x1fe)]=_0xeb0c67,_0x39c719[imageSmoothingEnabledName]=![],_0x44ed8e['style'][_0x55e855(0x217)]=_0x55e855(0x1f7),document[_0x55e855(0x1f3)][_0x55e855(0x21b)](_0x44ed8e);const _0x514e72=measureText(_0x39c719,_0x2dbca7,_0x4a231c,_0x315873,_0x304995);if(!_0x514e72)return;_0x44ed8e[_0x55e855(0x1fd)]=_0x514e72,document[_0x55e855(0x1f3)]['removeChild'](_0x44ed8e),_0x44ed8e[_0x55e855(0x209)]['visibility']='';const _0x4c2a8b=-(_0x514e72[_0x55e855(0x21e)]?_0x514e72[_0x55e855(0x21e)]:0x0),_0x2f6db5=Math[_0x55e855(0x1f8)](_0x514e72[_0x55e855(0x20d)])+_0x4c2a8b+_0x350ce1,_0x2dc8d4=(_0x514e72[_0x55e855(0x1f9)]?_0x514e72[_0x55e855(0x1f9)]:0x0)+_0x350ce1,_0x49f807=_0x2dc8d4-(_0x514e72[_0x55e855(0x201)]?_0x514e72[_0x55e855(0x201)]:0x0)+_0x5ab541,_0x506f0e=_0x2dc8d4-_0x49f807+_0x350ce1;return _0x44ed8e[_0x55e855(0x20d)]=_0x2f6db5,_0x44ed8e[_0x55e855(0x1f9)]=_0x2dc8d4,_0x39c719[_0x55e855(0x1f4)]=_0x4a231c,_0x39c719[_0x55e855(0x1f6)]=_0x55e855(0x221),_0x39c719['lineWidth']=_0xeb0c67,_0x39c719[imageSmoothingEnabledName]=![],_0x4c8a9e!==_0x55e855(0x203)&&(_0x39c719[_0x55e855(0x222)]=_0x4c8a9e,_0x39c719[_0x55e855(0x1fc)](0x0,0x0,_0x44ed8e[_0x55e855(0x20d)],_0x44ed8e[_0x55e855(0x1f9)])),_0x315873&&(_0x39c719[_0x55e855(0x21a)]=defaultValue(_0x490e1e[_0x55e855(0x1f2)],_0x55e855(0x20a)),_0x39c719['strokeText'](_0x2dbca7,_0x4c2a8b+_0x5ab541,_0x506f0e)),_0x304995&&(_0x39c719[_0x55e855(0x222)]=defaultValue(_0x490e1e[_0x55e855(0x212)],'#FFFFFF'),_0x39c719[_0x55e855(0x21d)](_0x2dbca7,_0x4c2a8b+_0x5ab541,_0x506f0e)),_0x44ed8e;}function defaultValue(_0x573b46,_0x5617ee){if(_0x573b46!==undefined&&_0x573b46!==null)return _0x573b46;return _0x5617ee;}function a77_0x2e4f(){const _0x39a4d4=['ascent','replace','#00000000','length','backgroundColor','4hFeKqt','mozImageSmoothingEnabled','5830XDABvv','style','#000000','black','createElement','width','imageSmoothingEnabled','26154avrENw','strokeText','canvas','fillColor','850726QNfZDd','stroke','getPropertyValue','msImageSmoothingEnabled','visibility','white','padding','strokeStyle','appendChild','1540AJzgGG','fillText','minx','measureText','getContext','round','fillStyle','font-size','4330875LWfuFL','504860QSPUQD','webkitImageSmoothingEnabled','868038ioYaQR','215928bNkfwh','getImageData','strokeColor','body','font','fill','lineJoin','hidden','ceil','height','36984RrcXwT','10px\x20sans-serif','fillRect','dimensions','lineWidth','getComputedStyle','test'];a77_0x2e4f=function(){return _0x39a4d4;};return a77_0x2e4f();}export default writeTextToCanvas;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82_0x4da2f3=a82_0x5be7;(function(_0x20d745,_0x4f5a84){const _0x4b0c69=a82_0x5be7,_0x2a2d5c=_0x20d745();while(!![]){try{const _0xe8e562=-parseInt(_0x4b0c69(0xea))/0x1*(parseInt(_0x4b0c69(0xff))/0x2)+parseInt(_0x4b0c69(0xeb))/0x3*(parseInt(_0x4b0c69(0xf0))/0x4)+parseInt(_0x4b0c69(0xe7))/0x5+parseInt(_0x4b0c69(0xfb))/0x6+parseInt(_0x4b0c69(0x104))/0x7+parseInt(_0x4b0c69(0xe0))/0x8+-parseInt(_0x4b0c69(0xe8))/0x9;if(_0xe8e562===_0x4f5a84)break;else _0x2a2d5c['push'](_0x2a2d5c['shift']());}catch(_0x3cca49){_0x2a2d5c['push'](_0x2a2d5c['shift']());}}}(a82_0x8e95,0xca738));import a82_0x49c5d6 from'ol/format/EsriJSON';import a82_0x4b8da1 from'ol/format/GeoJSON';import{getPointResolution}from'ol/proj';import a82_0x375a54 from'./Task';import{appendPath}from'../../UrlUtil';function a82_0x8e95(){const _0x2a64f8=['returnGeometry','3432080rlNNpM','25421598WZDtno','request','10bqlAMY','422463NSnhxD','getProjection','all','geometryType','path','28DsnISe','calculateExtent','time','returnM','inSR','resolution','run','writeGeometryObject','tolerance','geojsonTypeToArcGIS','geometry','4113966XUsTnb','getResolution','imageDisplay','getSize','189298TpBOQy','layerDefs','returnZ','identify','layers','9209564yyYVfk','getCenter','getType','7415008VLMMRt','_setGeometryParams','getView','getCode','valueOf','params'];a82_0x8e95=function(){return _0x2a64f8;};return a82_0x8e95();}function a82_0x5be7(_0xe5f640,_0x73a977){const _0x8e951b=a82_0x8e95();return a82_0x5be7=function(_0x5be7ae,_0x415198){_0x5be7ae=_0x5be7ae-0xde;let _0x5d89fa=_0x8e951b[_0x5be7ae];return _0x5d89fa;},a82_0x5be7(_0xe5f640,_0x73a977);}import{getEsriSpatialReference}from'../../EsriUtil';export default class Identify extends a82_0x375a54{constructor(_0x51b022,_0x6d89ec,_0x3955af){const _0x2f3b31=a82_0x5be7;super(_0x51b022,_0x6d89ec,_0x3955af),this[_0x2f3b31(0xef)]=_0x2f3b31(0x102),this['params']={'layers':_0x2f3b31(0xed),'tolerance':0x0,'returnGeometry':!![]},this[_0x2f3b31(0xf8)]=0x3,this[_0x2f3b31(0xf5)]=0x0,this['url']=appendPath(this['url'],this[_0x2f3b31(0xef)]),_0x6d89ec&&((_0x6d89ec[_0x2f3b31(0xe6)]===!![]||_0x6d89ec[_0x2f3b31(0xe6)]===![])&&(this[_0x2f3b31(0xe5)][_0x2f3b31(0xe6)]=_0x6d89ec['returnGeometry']),_0x6d89ec[_0x2f3b31(0x103)]&&(this['params'][_0x2f3b31(0x103)]=_0x6d89ec[_0x2f3b31(0x103)]),_0x6d89ec['layerDefs']&&(this[_0x2f3b31(0xe5)][_0x2f3b31(0x100)]=_0x6d89ec[_0x2f3b31(0x100)]),(_0x6d89ec['returnZ']===!![]||_0x6d89ec[_0x2f3b31(0x101)]===![])&&(this[_0x2f3b31(0xe5)]['returnZ']=_0x6d89ec[_0x2f3b31(0x101)]),(_0x6d89ec[_0x2f3b31(0xf3)]===!![]||_0x6d89ec['returnM']===![])&&(this[_0x2f3b31(0xe5)][_0x2f3b31(0xf3)]=_0x6d89ec['returnM']));}['at'](_0x23cd20,_0x4a8b81){const _0x25da0a=a82_0x5be7;let _0x142148,_0x2df708;const _0x315952=new a82_0x4b8da1();_0x142148=_0x23cd20,_0x2df708=getEsriSpatialReference(_0x4a8b81[_0x25da0a(0xe2)]()[_0x25da0a(0xec)]()[_0x25da0a(0xe3)]());const _0x522a41=_0x4a8b81[_0x25da0a(0xfe)]();_0x522a41&&(this[_0x25da0a(0xe5)][_0x25da0a(0xfd)]=[_0x522a41[0x0],_0x522a41[0x1],0x60]);this[_0x25da0a(0xe5)]['sr']=_0x2df708;const _0x3270a5=_0x4a8b81[_0x25da0a(0xe2)]()[_0x25da0a(0xf1)](_0x4a8b81['getSize']());this[_0x25da0a(0xe5)]['mapExtent']={'xmin':_0x3270a5[0x0],'ymin':_0x3270a5[0x1],'xmax':_0x3270a5[0x2],'ymax':_0x3270a5[0x3],'spatialReference':_0x2df708};const _0x19cd58=_0x4a8b81[_0x25da0a(0xe2)]()[_0x25da0a(0xfc)](),_0x35dc13=_0x4a8b81['getView']()[_0x25da0a(0xde)]();return _0x19cd58&&_0x35dc13&&(this[_0x25da0a(0xf5)]=getPointResolution(_0x4a8b81[_0x25da0a(0xe2)]()[_0x25da0a(0xec)](),_0x19cd58,_0x35dc13)),this['_setGeometryParams'](_0x142148,_0x4a8b81[_0x25da0a(0xe2)]()[_0x25da0a(0xec)]()[_0x25da0a(0xe3)]()),this;}['between'](_0x330e03,_0x3f519e){const _0x307c63=a82_0x5be7;return this['params'][_0x307c63(0xf2)]=[_0x330e03[_0x307c63(0xe4)](),_0x3f519e[_0x307c63(0xe4)]()],this;}[a82_0x4da2f3(0xf6)](){const _0x13f725=a82_0x4da2f3;this[_0x13f725(0xe9)]();}[a82_0x4da2f3(0xe1)](_0x4e8cc9,_0x542b05){const _0x5ddcb6=a82_0x4da2f3;var _0x2d2ef5=new a82_0x49c5d6();const _0x21e691=_0x2d2ef5[_0x5ddcb6(0xf7)](_0x4e8cc9);this['params'][_0x5ddcb6(0xf4)]=getEsriSpatialReference(_0x542b05),this[_0x5ddcb6(0xe5)][_0x5ddcb6(0xfa)]=_0x21e691,this['params'][_0x5ddcb6(0xee)]=this[_0x5ddcb6(0xf9)](_0x4e8cc9[_0x5ddcb6(0xdf)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a83_0x196e9c=a83_0x2b67;(function(_0x52cbf9,_0x4b0b36){const _0x7721f2=a83_0x2b67,_0x55a896=_0x52cbf9();while(!![]){try{const _0x183f2a=-parseInt(_0x7721f2(0x104))/0x1*(parseInt(_0x7721f2(0xe3))/0x2)+parseInt(_0x7721f2(0xd4))/0x3*(-parseInt(_0x7721f2(0x10c))/0x4)+-parseInt(_0x7721f2(0xc5))/0x5+-parseInt(_0x7721f2(0xd5))/0x6*(parseInt(_0x7721f2(0x110))/0x7)+parseInt(_0x7721f2(0xdb))/0x8*(-parseInt(_0x7721f2(0x105))/0x9)+parseInt(_0x7721f2(0xc0))/0xa*(-parseInt(_0x7721f2(0x103))/0xb)+-parseInt(_0x7721f2(0x100))/0xc*(-parseInt(_0x7721f2(0xe1))/0xd);if(_0x183f2a===_0x4b0b36)break;else _0x55a896['push'](_0x55a896['shift']());}catch(_0x5a5d96){_0x55a896['push'](_0x55a896['shift']());}}}(a83_0x4b1a,0x70ea7));import a83_0x39b3e4 from'ol/format/EsriJSON';import a83_0x460268 from'./Task';import{getEsriSpatialReference}from'../../EsriUtil';function a83_0x4b1a(){const _0x39a0c5=['esriSpatialRelWithin','nearby','esriSRUnit_Meter','simplify','layer','maxAllowableOffset','valueOf','getSize','1=1','within','5244jLxkKS','returnDistinctValues','returnExtentOnly','3149102gmTUgG','347LWLfab','1865574QinenN','returnGeometry','data','spatialRel','/query','outSR','writeGeometryObject','13540EdAsLi','path','ids','ASC','147iahdVZ','intersects','20RsNJrL','esriSpatialRelIntersects','contains','esriSpatialRelContains','warn','4513760HYkbMZ','status','units','abs','geometry','esriSpatialRelTouches','returnZ','orderByFields','esriSpatialRelOverlaps','getExtent','bboxIntersects','No\x20features\x20found','getTime','esriSpatialRelIndexIntersects','between','3EBOzGv','213264HfTYom','_trapSQLerrors','forEach','code','params','length','24zyClbj','url','one\x20common\x20syntax\x20error\x20in\x20query\x20requests\x20is\x20encasing\x20string\x20values\x20in\x20double\x20quotes\x20instead\x20of\x20single\x20quotes','overlaps','crosses','run','123773goCEST','join','4906kgNvhj','returnCountOnly','esriSpatialRelEnvelopeIntersects','where','indexIntersects','esriSpatialRelCrosses','catch','_cleanParams','query','geojsonTypeToArcGIS','getType','time','push','_setGeometryParams','returnM','touches','features','inSR','orderBy'];a83_0x4b1a=function(){return _0x39a0c5;};return a83_0x4b1a();}function a83_0x2b67(_0xd6ce5e,_0x45ff8e){const _0x4b1a00=a83_0x4b1a();return a83_0x2b67=function(_0x2b67db,_0x167dd5){_0x2b67db=_0x2b67db-0xbf;let _0x503ab3=_0x4b1a00[_0x2b67db];return _0x503ab3;},a83_0x2b67(_0xd6ce5e,_0x45ff8e);}import{appendPath}from'../../UrlUtil';export default class Query extends a83_0x460268{constructor(_0x1c35cb,_0x59c0de,_0x2df83f){const _0x3d80c5=a83_0x2b67;super(_0x1c35cb,_0x59c0de,_0x2df83f),this['path']=_0x3d80c5(0xeb),this[_0x3d80c5(0xd9)]={'returnGeometry':!![],'where':_0x3d80c5(0xfe),'outFields':'*','returnZ':![],'returnM':![],'t':new Date()[_0x3d80c5(0xd1)]()},this[_0x3d80c5(0xdc)]=appendPath(this['url'],this['path']),_0x59c0de&&((_0x59c0de[_0x3d80c5(0x106)]===!![]||_0x59c0de['returnGeometry']===![])&&(this[_0x3d80c5(0xd9)][_0x3d80c5(0x106)]=_0x59c0de['returnGeometry']),_0x59c0de['where']&&(this[_0x3d80c5(0xd9)]['where']=_0x59c0de[_0x3d80c5(0xe6)]),_0x59c0de[_0x3d80c5(0x10a)]&&(this[_0x3d80c5(0xd9)][_0x3d80c5(0x10a)]=getEsriSpatialReference(_0x59c0de[_0x3d80c5(0x10a)])),(_0x59c0de['returnZ']===!![]||_0x59c0de[_0x3d80c5(0xcb)]===![])&&(this['params'][_0x3d80c5(0xcb)]=_0x59c0de[_0x3d80c5(0xcb)]),(_0x59c0de[_0x3d80c5(0xf1)]===!![]||_0x59c0de[_0x3d80c5(0xf1)]===![])&&(this['params'][_0x3d80c5(0xf1)]=_0x59c0de[_0x3d80c5(0xf1)]));}[a83_0x196e9c(0xff)](_0x7f0356,_0x4b3a4f){const _0x21d4eb=a83_0x196e9c;return this[_0x21d4eb(0xf0)](_0x7f0356,_0x4b3a4f),this['params'][_0x21d4eb(0x108)]=_0x21d4eb(0xc3),this;}[a83_0x196e9c(0xbf)](_0x29803d,_0x512d1a){const _0x33b516=a83_0x196e9c;return this[_0x33b516(0xf0)](_0x29803d,_0x512d1a),this['params'][_0x33b516(0x108)]=_0x33b516(0xc1),this;}[a83_0x196e9c(0xc2)](_0x353f80,_0x2502e2){const _0x950ede=a83_0x196e9c;return this[_0x950ede(0xf0)](_0x353f80,_0x2502e2),this[_0x950ede(0xd9)]['spatialRel']=_0x950ede(0xf6),this;}[a83_0x196e9c(0xdf)](_0x247e95,_0x553583){const _0x457a30=a83_0x196e9c;return this[_0x457a30(0xf0)](_0x247e95,_0x553583),this['params']['spatialRel']=_0x457a30(0xe8),this;}[a83_0x196e9c(0xf2)](_0x8128cc,_0x4d1102){const _0x3412e1=a83_0x196e9c;return this[_0x3412e1(0xf0)](_0x8128cc,_0x4d1102),this[_0x3412e1(0xd9)][_0x3412e1(0x108)]=_0x3412e1(0xca),this;}[a83_0x196e9c(0xde)](_0xf01df4,_0x496926){const _0x3f2cef=a83_0x196e9c;return this[_0x3f2cef(0xf0)](_0xf01df4,_0x496926),this['params']['spatialRel']=_0x3f2cef(0xcd),this;}[a83_0x196e9c(0xcf)](_0x260d17,_0x48f65b){const _0xcac9e4=a83_0x196e9c;return this[_0xcac9e4(0xf0)](_0x260d17,_0x48f65b),this['params']['spatialRel']=_0xcac9e4(0xe5),this;}[a83_0x196e9c(0xe7)](_0x351f81,_0x9526dd){const _0x425420=a83_0x196e9c;return this[_0x425420(0xf0)](_0x351f81,_0x9526dd),this[_0x425420(0xd9)][_0x425420(0x108)]=_0x425420(0xd2),this;}[a83_0x196e9c(0xf7)](_0x2982b2,_0x5299dd,_0x11864b){const _0x17b725=a83_0x196e9c;return this[_0x17b725(0xf0)](_0x2982b2,_0x5299dd),this['params'][_0x17b725(0x108)]='esriSpatialRelIntersects',this[_0x17b725(0xd9)][_0x17b725(0xc7)]=_0x17b725(0xf8),this[_0x17b725(0xd9)]['distance']=_0x11864b,this;}[a83_0x196e9c(0xe6)](_0xccbb2f){const _0x1f3855=a83_0x196e9c;return this['params'][_0x1f3855(0xe6)]=_0xccbb2f,this;}[a83_0x196e9c(0xd3)](_0x2b3971,_0x1dbab3){const _0x50c492=a83_0x196e9c;return this[_0x50c492(0xd9)][_0x50c492(0xee)]=[_0x2b3971[_0x50c492(0xfc)](),_0x1dbab3['valueOf']()],this;}[a83_0x196e9c(0xf9)](_0x58b08a,_0x47c50b){const _0x29fc10=a83_0x196e9c,_0x112020=_0x58b08a[_0x29fc10(0xce)]();var _0x22efd3=Math[_0x29fc10(0xc8)](_0x112020[0x2]-_0x112020[0x0]);const _0x1d947b=_0x58b08a[_0x29fc10(0xfd)]();if(_0x1d947b)return this[_0x29fc10(0xd9)][_0x29fc10(0xfb)]=_0x22efd3/_0x1d947b[0x1]*_0x47c50b,this;}[a83_0x196e9c(0xf5)](_0x49ca1f,_0x38d1bd){const _0x8ea115=a83_0x196e9c;return _0x38d1bd=_0x38d1bd||_0x8ea115(0x10f),this['params'][_0x8ea115(0xcc)]=this['params'][_0x8ea115(0xcc)]?this[_0x8ea115(0xd9)][_0x8ea115(0xcc)]+',':'',this[_0x8ea115(0xd9)][_0x8ea115(0xcc)]+=[_0x49ca1f,_0x38d1bd][_0x8ea115(0xe2)]('\x20'),this;}async[a83_0x196e9c(0xe0)](){const _0x5c22d5=a83_0x196e9c;this[_0x5c22d5(0xea)]();const _0x2a8cd8=await this['request']()[_0x5c22d5(0xe9)](_0x1781e4=>{throw new Error(_0x1781e4);});if(_0x2a8cd8[_0x5c22d5(0xc6)]!==0xc8)throw new Error(_0x5c22d5(0xd0));if(_0x2a8cd8[_0x5c22d5(0x107)]&&_0x2a8cd8[_0x5c22d5(0x107)][_0x5c22d5(0xf3)]&&_0x2a8cd8[_0x5c22d5(0x107)][_0x5c22d5(0xf3)][_0x5c22d5(0xda)]>0x0){var _0x44bc30=new a83_0x39b3e4();let _0x4f6772=[];return _0x2a8cd8['data'][_0x5c22d5(0xf3)][_0x5c22d5(0xd7)](_0x3a0516=>{const _0x4313c3=_0x5c22d5,_0x1063c5=_0x44bc30['readFeature'](_0x3a0516);_0x4f6772[_0x4313c3(0xef)](_0x1063c5);}),_0x4f6772;}return[];}['count'](){const _0x25929a=a83_0x196e9c;this[_0x25929a(0xea)](),this[_0x25929a(0xd9)][_0x25929a(0xe4)]=!![],this['request']();}[a83_0x196e9c(0x10e)](){const _0x2b3b85=a83_0x196e9c;this[_0x2b3b85(0xea)](),this[_0x2b3b85(0xd9)]['returnIdsOnly']=!![],this['request']();}['distinct'](){const _0x436ab1=a83_0x196e9c;return this[_0x436ab1(0xd9)]['returnGeometry']=![],this[_0x436ab1(0xd9)][_0x436ab1(0x101)]=!![],this;}[a83_0x196e9c(0xfa)](_0x14f9f5){const _0x422a9b=a83_0x196e9c;return this[_0x422a9b(0x10d)]=_0x14f9f5+_0x422a9b(0x109),this;}[a83_0x196e9c(0xd6)](_0x2496be){const _0x3a288e=a83_0x196e9c;_0x2496be&&(_0x2496be[_0x3a288e(0xd8)]==='400'&&console[_0x3a288e(0xc4)]['apply'](_0x3a288e(0xdd)));}[a83_0x196e9c(0xea)](){const _0x1f8965=a83_0x196e9c;delete this['params']['returnIdsOnly'],delete this[_0x1f8965(0xd9)][_0x1f8965(0x102)],delete this['params']['returnCountOnly'];}[a83_0x196e9c(0xf0)](_0x27e91a,_0x5a2fd5){const _0x15a32b=a83_0x196e9c;var _0x91e548=new a83_0x39b3e4();const _0x7b5353=_0x91e548[_0x15a32b(0x10b)](_0x27e91a);this[_0x15a32b(0xd9)][_0x15a32b(0xf4)]=getEsriSpatialReference(_0x5a2fd5),this[_0x15a32b(0xd9)][_0x15a32b(0xc9)]=_0x7b5353,this[_0x15a32b(0xd9)]['geometryType']=this[_0x15a32b(0xec)](_0x27e91a[_0x15a32b(0xed)]());}}
|
package/utils/tasks/esri/Task.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a84_0x51d47a=a84_0x1251;function a84_0x1251(_0x1e9e56,_0x4710c5){var _0xe87f97=a84_0xe87f();return a84_0x1251=function(_0x1251a2,_0x2f94c5){_0x1251a2=_0x1251a2-0x145;var _0x25e38f=_0xe87f97[_0x1251a2];return _0x25e38f;},a84_0x1251(_0x1e9e56,_0x4710c5);}(function(_0x4d00d5,_0x3ed2cd){var _0x541d04=a84_0x1251,_0x2176e7=_0x4d00d5();while(!![]){try{var _0x27cd68=parseInt(_0x541d04(0x161))/0x1+parseInt(_0x541d04(0x149))/0x2*(-parseInt(_0x541d04(0x15c))/0x3)+parseInt(_0x541d04(0x156))/0x4+-parseInt(_0x541d04(0x15f))/0x5*(-parseInt(_0x541d04(0x159))/0x6)+-parseInt(_0x541d04(0x165))/0x7*(-parseInt(_0x541d04(0x151))/0x8)+parseInt(_0x541d04(0x162))/0x9+-parseInt(_0x541d04(0x15d))/0xa*(parseInt(_0x541d04(0x145))/0xb);if(_0x27cd68===_0x3ed2cd)break;else _0x2176e7['push'](_0x2176e7['shift']());}catch(_0x1ec702){_0x2176e7['push'](_0x2176e7['shift']());}}}(a84_0xe87f,0xdd767));import a84_0x10feb4 from'../../AxiosUtil';import{jsonp,stringify}from'../../AxiosUtil';export default class Task{constructor(_0xefcdc6,_0x1b8867,_0x27f52f){var _0x5cd562=a84_0x1251;this[_0x5cd562(0x14c)]=_0xefcdc6,this[_0x5cd562(0x148)]=_0x1b8867||{},this[_0x5cd562(0x14a)]=!_0x27f52f?_0x5cd562(0x169):_0x27f52f;}[a84_0x51d47a(0x153)](_0x269536){var _0x4f9e44=a84_0x51d47a,_0x51909a;switch(_0x269536){case'Point':_0x51909a='esriGeometryPoint';break;case _0x4f9e44(0x15e):_0x51909a=_0x4f9e44(0x152);break;case _0x4f9e44(0x150):_0x51909a=_0x4f9e44(0x168);break;case _0x4f9e44(0x160):_0x51909a=_0x4f9e44(0x168);break;case _0x4f9e44(0x154):_0x51909a=_0x4f9e44(0x16a);break;case'MultiPolygon':_0x51909a=_0x4f9e44(0x16a);break;}return _0x51909a;}['isArcgisOnline'](_0x293745){var _0x1670f3=a84_0x51d47a;return/^(?!.*utility\.arcgis\.com).*\.arcgis\.com.*FeatureServer/i[_0x1670f3(0x147)](_0x293745);}[a84_0x51d47a(0x146)](_0x4075f3){var _0x58cd4a=a84_0x51d47a,_0x302a27='';_0x4075f3['f']=_0x4075f3['f']||_0x58cd4a(0x14f);for(var _0x588324 in _0x4075f3){if(Object['prototype'][_0x58cd4a(0x167)]['call'](_0x4075f3,_0x588324)){var _0x55d119=_0x4075f3[_0x588324],_0x2052d4=Object['prototype']['toString'][_0x58cd4a(0x14d)](_0x55d119),_0x408793;_0x302a27['length']&&(_0x302a27+='&');if(_0x2052d4==='[object\x20Array]')_0x408793=Object[_0x58cd4a(0x14e)][_0x58cd4a(0x158)]['call'](_0x55d119[0x0])===_0x58cd4a(0x155)?JSON['stringify'](_0x55d119):_0x55d119[_0x58cd4a(0x166)](',');else{if(_0x2052d4===_0x58cd4a(0x155))_0x408793=JSON[_0x58cd4a(0x14b)](_0x55d119);else _0x2052d4===_0x58cd4a(0x157)?_0x408793=_0x55d119['valueOf']():_0x408793=_0x55d119;}_0x302a27+=encodeURIComponent(_0x588324)+'='+encodeURIComponent(_0x408793);}}return _0x302a27;}[a84_0x51d47a(0x163)](_0x36ee0b){var _0x52fb4d=a84_0x51d47a;return this[_0x52fb4d(0x148)][_0x52fb4d(0x15b)]=!_0x36ee0b,this;}async[a84_0x51d47a(0x164)](){var _0x40dfe7=a84_0x51d47a,_0x3799a8=this[_0x40dfe7(0x146)](this[_0x40dfe7(0x148)]);const _0x29c2ef=this[_0x40dfe7(0x14c)]['indexOf']('?')>-0x1?this[_0x40dfe7(0x14c)]+'&'+_0x3799a8:this[_0x40dfe7(0x14c)]+'?'+_0x3799a8;if(this[_0x40dfe7(0x14a)]===_0x40dfe7(0x169))return a84_0x10feb4['get'](_0x29c2ef);else{if(this[_0x40dfe7(0x14a)]===_0x40dfe7(0x15a))return jsonp(_0x29c2ef);else{const _0xaa1063=stringify(this[_0x40dfe7(0x148)]);return a84_0x10feb4['post'](this[_0x40dfe7(0x14c)],_0xaa1063);}}}}function a84_0xe87f(){var _0x4a38e8=['test','params','353766ZRFkmT','method','stringify','url','call','prototype','json','LineString','3260584FXTrrv','esriGeometryMultipoint','geojsonTypeToArcGIS','Polygon','[object\x20Object]','1140036pZIvEq','[object\x20Date]','toString','9252204wIFYLs','JSONP','returnUnformattedValues','6nseMhP','3830zKmSpd','MultiPoint','5IbxFwA','MultiLineString','1047820DTxwPQ','10092051VoBNwC','format','request','7XjnpwK','join','hasOwnProperty','esriGeometryPolyline','GET','esriGeometryPolygon','90266DANlcA','serialize'];a84_0xe87f=function(){return _0x4a38e8;};return a84_0xe87f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x4a6fae=a86_0x1ef8;function a86_0x33b0(){const _0x3eb3c0=['tableName','7PtiWtW','649000vEOwCf','297850YlcZID','features','execute','readFeature','6WHWPnb','srsName','catch','96520GoFtnV','POST','url','geometry','stringify','application/json','map','writeGetFeature','error','2499890VKgbzD','580182BBxfQH','json','srsName\x20is\x20required','queryParameters','read','where','serializeToString','18xcATQt','207006WMsjnT','then','55884KbIKIh','geometryName','the_geom'];a86_0x33b0=function(){return _0x3eb3c0;};return a86_0x33b0();}(function(_0x4a4a13,_0x489be9){const _0x541966=a86_0x1ef8,_0x492daf=_0x4a4a13();while(!![]){try{const _0x9ca44a=-parseInt(_0x541966(0x16c))/0x1*(-parseInt(_0x541966(0x176))/0x2)+parseInt(_0x541966(0x162))/0x3+parseInt(_0x541966(0x171))/0x4+parseInt(_0x541966(0x172))/0x5+parseInt(_0x541966(0x16a))/0x6*(parseInt(_0x541966(0x170))/0x7)+-parseInt(_0x541966(0x179))/0x8+-parseInt(_0x541966(0x169))/0x9*(parseInt(_0x541966(0x161))/0xa);if(_0x9ca44a===_0x489be9)break;else _0x492daf['push'](_0x492daf['shift']());}catch(_0x4ac001){_0x492daf['push'](_0x492daf['shift']());}}}(a86_0x33b0,0x19b6c));import{and,intersects}from'ol/format/filter';function a86_0x1ef8(_0x32a277,_0x2c2c0a){const _0x33b06d=a86_0x33b0();return a86_0x1ef8=function(_0x1ef89d,_0x16411c){_0x1ef89d=_0x1ef89d-0x15e;let _0x7632a4=_0x33b06d[_0x1ef89d];return _0x7632a4;},a86_0x1ef8(_0x32a277,_0x2c2c0a);}import a86_0x5c608c from'../../format/CQL';import a86_0x16902f from'ol/format/WFS';import a86_0x494584 from'ol/format/GeoJSON';export default class QueryTask{constructor(_0x2f971a){const _0x14300c=a86_0x1ef8;this['queryParameters']={},this[_0x14300c(0x17b)]=_0x2f971a;}async[a86_0x4a6fae(0x174)](_0x58ba47){const _0x49fb5d=a86_0x4a6fae;this[_0x49fb5d(0x165)]=_0x58ba47||{};const _0x46b6ab=this[_0x49fb5d(0x165)][_0x49fb5d(0x16d)]||_0x49fb5d(0x16e);let _0x40c910=this[_0x49fb5d(0x165)][_0x49fb5d(0x167)],_0x38cacb;_0x40c910&&(_0x38cacb=new a86_0x5c608c()[_0x49fb5d(0x166)](_0x40c910));let _0x153788=_0x38cacb;if(this[_0x49fb5d(0x165)][_0x49fb5d(0x17c)]){if(!this[_0x49fb5d(0x165)]['srsName'])throw new Error(_0x49fb5d(0x164));const _0x3c846b=intersects(_0x46b6ab,this[_0x49fb5d(0x165)][_0x49fb5d(0x17c)]);_0x153788=_0x38cacb?and(_0x38cacb,_0x3c846b):_0x3c846b;}let _0x2301b8=new a86_0x16902f()[_0x49fb5d(0x15f)]({'srsName':this[_0x49fb5d(0x165)][_0x49fb5d(0x177)],'featureNS':'','featurePrefix':'','featureTypes':[this[_0x49fb5d(0x165)][_0x49fb5d(0x16f)]],'outputFormat':'application/json','geometryName':_0x46b6ab,'filter':_0x153788});const _0x2005e5=await fetch(this[_0x49fb5d(0x17b)],{'method':'POST','body':new XMLSerializer()['serializeToString'](_0x2301b8)}),_0x5a27e8=await _0x2005e5[_0x49fb5d(0x163)]();let _0x58aa95=[];const _0x59f85a=new a86_0x494584();return _0x58aa95=_0x5a27e8[_0x49fb5d(0x173)][_0x49fb5d(0x15e)](_0x41b95d=>{const _0xb2dc05=_0x49fb5d;return _0x59f85a[_0xb2dc05(0x175)](JSON[_0xb2dc05(0x17d)](_0x41b95d));}),_0x58aa95;}['_geoserverQuery'](){const _0x159889=a86_0x4a6fae,_0x596c00=this[_0x159889(0x165)][_0x159889(0x16d)]||_0x159889(0x16e);let _0x3fb3fc=this[_0x159889(0x165)][_0x159889(0x167)],_0x4612ff;_0x3fb3fc&&(_0x4612ff=new a86_0x5c608c()[_0x159889(0x166)](_0x3fb3fc));let _0x30f68c=_0x4612ff;if(this[_0x159889(0x165)][_0x159889(0x17c)]){const _0x2465cb=intersects(_0x596c00,this['queryParameters']['geometry']);_0x30f68c=_0x4612ff?and(_0x4612ff,_0x2465cb):_0x2465cb;}let _0x47edf4=new a86_0x16902f()['writeGetFeature']({'srsName':this[_0x159889(0x165)][_0x159889(0x177)],'featureNS':'','featurePrefix':'','featureTypes':[this[_0x159889(0x165)][_0x159889(0x16f)]],'outputFormat':_0x159889(0x17e),'geometryName':_0x596c00,'filter':_0x30f68c});return new Promise(_0x1492c3=>{const _0x2bd0df=_0x159889;fetch(this[_0x2bd0df(0x17b)],{'method':_0x2bd0df(0x17a),'body':new XMLSerializer()[_0x2bd0df(0x168)](_0x47edf4)})[_0x2bd0df(0x16b)](_0x4af6c1=>{const _0x577b52=_0x2bd0df;return _0x4af6c1[_0x577b52(0x163)]();})['then'](_0x125bec=>{let _0x1d3cf9=[];const _0x12ba34=new a86_0x494584();_0x1d3cf9=_0x125bec['features']['map'](_0x2cf6f1=>{const _0x5664a1=a86_0x1ef8;return _0x12ba34[_0x5664a1(0x175)](JSON[_0x5664a1(0x17d)](_0x2cf6f1));}),_0x1492c3(_0x1d3cf9);})[_0x2bd0df(0x178)](_0x1eae2e=>{const _0x51f52f=_0x2bd0df;_0x1492c3([]),console[_0x51f52f(0x160)](_0x1eae2e);});});}}
|
package/utils/tasks/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2dc730,_0x5b4a83){const _0x18c2de=a87_0x4236,_0x58186a=_0x2dc730();while(!![]){try{const _0x20e48f=parseInt(_0x18c2de(0x15f))/0x1+-parseInt(_0x18c2de(0x163))/0x2*(parseInt(_0x18c2de(0x168))/0x3)+-parseInt(_0x18c2de(0x15b))/0x4+-parseInt(_0x18c2de(0x160))/0x5*(-parseInt(_0x18c2de(0x169))/0x6)+parseInt(_0x18c2de(0x15d))/0x7+parseInt(_0x18c2de(0x15c))/0x8*(parseInt(_0x18c2de(0x167))/0x9)+-parseInt(_0x18c2de(0x161))/0xa*(parseInt(_0x18c2de(0x165))/0xb);if(_0x20e48f===_0x5b4a83)break;else _0x58186a['push'](_0x58186a['shift']());}catch(_0x41c552){_0x58186a['push'](_0x58186a['shift']());}}}(a87_0x20a9,0xeb3de));function a87_0x4236(_0x51ccc5,_0x35cc82){const _0x20a952=a87_0x20a9();return a87_0x4236=function(_0x4236b5,_0x4264fa){_0x4236b5=_0x4236b5-0x15b;let _0x49460f=_0x20a952[_0x4236b5];return _0x49460f;},a87_0x4236(_0x51ccc5,_0x35cc82);}function a87_0x20a9(){const _0x24fbf4=['arcgis-dynamic','117387BNBlWf','2100iJoyen','4398kUDvCv','name','4993868hAbIMg','752sdTmRt','11447429FAbdjR','layerFields','237239JMHKCp','12730IBXkFE','10AyyOKk','intersects','2406qFWjtF','arcgis-feature','21018019UNtIDd'];a87_0x20a9=function(){return _0x24fbf4;};return a87_0x20a9();}import{appendPath}from'../UrlUtil';import a87_0x25bfee from'./esri/Query';import a87_0xc9d47f from'./geoserver/QueryTask';import{getWFSLayerCapabilities}from'../../capabilities';export async function selectFeaturesByGeo(_0x151485,_0x2ed5f6,_0x5c2554,_0x1f17e9,_0x1c1f4b,_0x374f32){const _0x1b83dc=a87_0x4236;if(!_0x5c2554||!_0x1f17e9||!_0x1c1f4b||!_0x1c1f4b)return[];let _0x26396e=[];try{if(_0x1c1f4b==_0x1b83dc(0x166)||_0x1c1f4b==_0x1b83dc(0x164)){const _0x849f42=appendPath(_0x5c2554,_0x1f17e9),_0x456a02=new a87_0x25bfee(_0x849f42,{'outSR':_0x2ed5f6,'where':_0x374f32});_0x456a02[_0x1b83dc(0x162)](_0x151485,_0x2ed5f6),_0x26396e=await _0x456a02['run']();}else{if(_0x1c1f4b=='geoserver-wfs'||_0x1c1f4b=='geoserver-wms'){const _0x1fb929=new a87_0xc9d47f(_0x5c2554),_0x550a9f=await getWFSLayerCapabilities(_0x5c2554,_0x1f17e9),_0x481de1=_0x550a9f[_0x1b83dc(0x15e)]['find'](_0x29550f=>_0x29550f['fieldType']==0x6);_0x26396e=await _0x1fb929['execute']({'geometry':_0x151485,'tableName':_0x1f17e9,'geometryName':_0x481de1?_0x481de1[_0x1b83dc(0x16a)]:'','srsName':_0x2ed5f6,'where':_0x374f32});}}}catch(_0x440eac){}return _0x26396e;}
|