ym-gis-2d 1.0.37 → 1.0.38
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.d.ts +2 -0
- package/controls/SwipeLayerControl.d.ts.map +1 -1
- package/controls/SwipeLayerControl.js +1 -1
- package/controls/SwipeLayerControl.js.map +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/measure/AreaMeasureUnits.js +1 -1
- package/feature/FeatureManager.js +1 -1
- package/index.js +1 -1
- package/interaction/AreaMeasure.js +1 -1
- package/interaction/Difference.js +1 -1
- package/interaction/Draw.js +1 -1
- package/interaction/InteractionManager.js +1 -1
- package/interaction/Modify.js +1 -1
- package/interaction/Select.js +1 -1
- package/interaction/Split.js +1 -1
- package/layers/ArcgisDynamicLayer.js +1 -1
- package/layers/ArcgisFeatureLayer.js +1 -1
- package/layers/ArcgisTileLayer.js +1 -1
- package/layers/ArcgisWMSLayer.js +1 -1
- package/layers/ArcgisWMTSLayer.js +1 -1
- package/layers/GeoserverVectorTile.js +1 -1
- package/layers/GeoserverWFSLayer.js +1 -1
- package/layers/GeoserverWMSLayer.js +1 -1
- package/layers/GeoserverWMTSLayer.js +1 -1
- package/layers/LayerManager.js +1 -1
- package/layers/TDTLayer.js +1 -1
- package/mapView/Map.js +1 -1
- package/mapView/View.js +1 -1
- package/package.json +1 -1
- package/plot/Plot.js +1 -1
- package/plot/geometry/point/Point.js +1 -1
- package/plot/geometry/polygon/BasePolygon.js +1 -1
- package/plot/geometry/polygon/Circle.js +1 -1
- package/plot/geometry/polygon/Polygon.js +1 -1
- package/plot/geometry/polygon/RectAngle.js +1 -1
- package/plot/geometry/polyline/BaseLine.js +1 -1
- package/plot/geometry/polyline/Polyline.js +1 -1
- package/style/PointStyleFormat.js +1 -1
- package/style/PolygonStyleFormat.js +1 -1
- package/style/PolylineStyleFormat.js +1 -1
- package/style/StyleManager.js +1 -1
- package/style/common.js +1 -1
- package/utils/ArrayUtil.js +1 -1
- package/utils/AxiosUtil.js +1 -1
- package/utils/EsriUtil.js +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/LayerUtil.js +1 -1
- package/utils/RegisterProjUtil.js +1 -1
- package/utils/ResolutionUtil.js +1 -1
- package/utils/StringUtil.js +1 -1
- package/utils/StyleUtil.js +1 -1
- package/utils/UrlUtil.js +1 -1
- package/utils/XmlUtil.js +1 -1
- package/utils/format/CQL.js +1 -1
- package/utils/format/IsMatchCql.js +1 -1
- package/utils/plug/canvas/ImageCache.js +1 -1
- package/utils/plug/canvas/PinBuilder.js +1 -1
- package/utils/plug/canvas/PinIcon.js +1 -1
- package/utils/plug/canvas/writeTextToCanvas.js +1 -1
- package/utils/tasks/esri/Identify.js +1 -1
- package/utils/tasks/esri/Query.js +1 -1
- package/utils/tasks/esri/Task.js +1 -1
- package/utils/tasks/geoserver/QueryTask.js +1 -1
- package/utils/tasks/index.js +1 -1
- package/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x4688f1=a87_0x2a56;function a87_0x4f7f(){const _0x144f03=['fromMakiIconId','getImageState','4749640hGUZpc','text\x20is\x20required','target','globalCompositeOperation','1359344ZLEBrI','_cache','lineTo','1167531JdxLSF','round','hexa','drawImage','fromColor','toDataURL','fillStyle','65cyxzaK','size\x20is\x20required','bezierCurveTo','getContext','#FFFFFF','bold\x20','destination-out','canvas','1050112FApUCQ','stringify','lineWidth','18tafWNp','ERROR','url\x20is\x20required','1144527uwKSRy','width','height','6526296xuYyva','fillRect','color\x20is\x20required','closePath','getImage','scale','save','105402DyCwAv','LOADED','stroke','fill','destination-over','listenImageChange','load','#000000'];a87_0x4f7f=function(){return _0x144f03;};return a87_0x4f7f();}function a87_0x2a56(_0x5ebeb7,_0x13ca26){const _0x4f7f4c=a87_0x4f7f();return a87_0x2a56=function(_0x2a562a,_0x510ffa){_0x2a562a=_0x2a562a-0x1a7;let _0x3ff9ed=_0x4f7f4c[_0x2a562a];return _0x3ff9ed;},a87_0x2a56(_0x5ebeb7,_0x13ca26);}(function(_0x3031cb,_0x1b1bb4){const _0x18a5e5=a87_0x2a56,_0x350b69=_0x3031cb();while(!![]){try{const _0x67e8d9=parseInt(_0x18a5e5(0x1c2))/0x1+-parseInt(_0x18a5e5(0x1aa))/0x2+parseInt(_0x18a5e5(0x1ad))/0x3+-parseInt(_0x18a5e5(0x1bc))/0x4+parseInt(_0x18a5e5(0x1b4))/0x5*(-parseInt(_0x18a5e5(0x1cc))/0x6)+-parseInt(_0x18a5e5(0x1c5))/0x7+-parseInt(_0x18a5e5(0x1d6))/0x8*(-parseInt(_0x18a5e5(0x1bf))/0x9);if(_0x67e8d9===_0x1b1bb4)break;else _0x350b69['push'](_0x350b69['shift']());}catch(_0x3b6aee){_0x350b69['push'](_0x350b69['shift']());}}}(a87_0x4f7f,0x96ee7));import a87_0x46d010 from'color';import a87_0x1aab11 from'./writeTextToCanvas';import{Icon}from'ol/style';import a87_0x93685 from'ol/ImageState';import{parseImage}from'../../UrlUtil.js';class PinBuilder{constructor(){const _0x403831=a87_0x2a56;this[_0x403831(0x1ab)]={};}[a87_0x4688f1(0x1b1)](_0x434f32,_0x433bcf){const _0x8c81ab=a87_0x4688f1;if(!_0x434f32)throw new Error(_0x8c81ab(0x1c7));if(!_0x433bcf)throw new Error('size\x20is\x20required');return createPin('','',_0x434f32,_0x433bcf,this['_cache']);}['fromUrl'](_0xbccd16,_0x275ef0,_0x26f0b2){const _0x322ecd=a87_0x4688f1;if(!_0xbccd16)throw new Error(_0x322ecd(0x1c1));if(!_0x275ef0)throw new Error('color\x20is\x20required');if(!_0x26f0b2)throw new Error(_0x322ecd(0x1b5));return createPin(_0xbccd16,'',_0x275ef0,_0x26f0b2,this['_cache']);}[a87_0x4688f1(0x1d4)](_0x3e3609,_0x2f4112,_0x371489){const _0x135e92=a87_0x4688f1;if(!_0x3e3609)throw new Error('id\x20is\x20required');if(!_0x2f4112)throw new Error(_0x135e92(0x1c7));if(!_0x371489)throw new Error(_0x135e92(0x1b5));return createPin(parseImage(_0x3e3609),'',_0x2f4112,_0x371489,this[_0x135e92(0x1ab)]);}['fromText'](_0x3de46d,_0x28f9c7,_0x23a67b){const _0x3fff0a=a87_0x4688f1;if(!_0x3de46d)throw new Error(_0x3fff0a(0x1a7));if(!_0x28f9c7)throw new Error('color\x20is\x20required');if(!_0x23a67b)throw new Error('size\x20is\x20required');return createPin('',_0x3de46d,_0x28f9c7,_0x23a67b,this[_0x3fff0a(0x1ab)]);}}function drawPin(_0x1dce7c,_0x2b76c6,_0x315b64){const _0x10b9bf=a87_0x4688f1;_0x1dce7c[_0x10b9bf(0x1cb)](),_0x1dce7c[_0x10b9bf(0x1ca)](_0x315b64/0x18,_0x315b64/0x18),_0x1dce7c['fillStyle']=_0x2b76c6,_0x1dce7c['strokeStyle']=a87_0x46d010(_0x2b76c6)['lighten'](0.6)[_0x10b9bf(0x1af)](),_0x1dce7c[_0x10b9bf(0x1be)]=0.846,_0x1dce7c['beginPath'](),_0x1dce7c['moveTo'](6.72,0.422),_0x1dce7c[_0x10b9bf(0x1ac)](17.28,0.422),_0x1dce7c[_0x10b9bf(0x1b6)](18.553,0.422,19.577,1.758,19.577,3.415),_0x1dce7c[_0x10b9bf(0x1ac)](19.577,10.973),_0x1dce7c[_0x10b9bf(0x1b6)](19.577,12.63,18.553,13.966,17.282,13.966),_0x1dce7c[_0x10b9bf(0x1ac)](14.386,14.008),_0x1dce7c[_0x10b9bf(0x1ac)](11.826,23.578),_0x1dce7c[_0x10b9bf(0x1ac)](9.614,14.008),_0x1dce7c[_0x10b9bf(0x1ac)](6.719,13.965),_0x1dce7c[_0x10b9bf(0x1b6)](5.446,13.983,4.422,12.629,4.422,10.972),_0x1dce7c[_0x10b9bf(0x1ac)](4.422,3.416),_0x1dce7c[_0x10b9bf(0x1b6)](4.423,1.76,5.447,0.423,6.718,0.423),_0x1dce7c[_0x10b9bf(0x1c8)](),_0x1dce7c[_0x10b9bf(0x1cf)](),_0x1dce7c[_0x10b9bf(0x1ce)](),_0x1dce7c['restore']();}function drawIcon(_0xff26e1,_0x14d511,_0x13d24c){const _0x222969=a87_0x4688f1,_0x24e4c7=_0x13d24c/2.5;let _0x1c3fef=_0x24e4c7,_0x5f31c3=_0x24e4c7;if(_0x14d511[_0x222969(0x1c3)]>_0x14d511[_0x222969(0x1c4)])_0x5f31c3=_0x24e4c7*(_0x14d511['height']/_0x14d511[_0x222969(0x1c3)]);else _0x14d511[_0x222969(0x1c3)]<_0x14d511[_0x222969(0x1c4)]&&(_0x1c3fef=_0x24e4c7*(_0x14d511[_0x222969(0x1c3)]/_0x14d511['height']));const _0xb85505=Math[_0x222969(0x1ae)]((_0x13d24c-_0x1c3fef)/0x2),_0xce364a=Math[_0x222969(0x1ae)](0x7/0x18*_0x13d24c-_0x5f31c3/0x2);_0xff26e1[_0x222969(0x1a9)]='destination-out',_0xff26e1['drawImage'](_0x14d511,_0xb85505-0x1,_0xce364a,_0x1c3fef,_0x5f31c3),_0xff26e1[_0x222969(0x1b0)](_0x14d511,_0xb85505,_0xce364a-0x1,_0x1c3fef,_0x5f31c3),_0xff26e1[_0x222969(0x1b0)](_0x14d511,_0xb85505+0x1,_0xce364a,_0x1c3fef,_0x5f31c3),_0xff26e1['drawImage'](_0x14d511,_0xb85505,_0xce364a+0x1,_0x1c3fef,_0x5f31c3),_0xff26e1[_0x222969(0x1a9)]=_0x222969(0x1d0),_0xff26e1[_0x222969(0x1b3)]=_0x222969(0x1d3),_0xff26e1[_0x222969(0x1c6)](_0xb85505-0x1,_0xce364a-0x1,_0x1c3fef+0x2,_0x5f31c3+0x2),_0xff26e1[_0x222969(0x1a9)]=_0x222969(0x1ba),_0xff26e1['drawImage'](_0x14d511,_0xb85505,_0xce364a,_0x1c3fef,_0x5f31c3),_0xff26e1[_0x222969(0x1a9)]=_0x222969(0x1d0),_0xff26e1[_0x222969(0x1b3)]=_0x222969(0x1b8),_0xff26e1['fillRect'](_0xb85505-0x1,_0xce364a-0x2,_0x1c3fef+0x2,_0x5f31c3+0x2);}const stringifyScratch=new Array(0x4);function createPin(_0x53ea2d,_0x920256,_0xd5c6c6,_0x1fb615,_0x1c4291){const _0x5a5379=a87_0x4688f1;stringifyScratch[0x0]=_0x53ea2d,stringifyScratch[0x1]=_0x920256,stringifyScratch[0x2]=_0xd5c6c6,stringifyScratch[0x3]=_0x1fb615;const _0x27b0b4=JSON[_0x5a5379(0x1bd)](stringifyScratch),_0x278a93=_0x1c4291[_0x27b0b4];if(_0x278a93)return _0x278a93;const _0x1a4afd=document['createElement'](_0x5a5379(0x1bb));_0x1a4afd['width']=_0x1fb615,_0x1a4afd['height']=_0x1fb615;const _0x176902=_0x1a4afd[_0x5a5379(0x1b7)]('2d');drawPin(_0x176902,_0xd5c6c6,_0x1fb615);if(_0x53ea2d)return new Promise(_0x513bac=>{const _0x55ede1=_0x5a5379;let _0x24b386=new Icon({'src':_0x53ea2d}),_0x40da60=_0x24b386[_0x55ede1(0x1d5)]();_0x40da60===a87_0x93685[_0x55ede1(0x1cd)]||_0x40da60===a87_0x93685[_0x55ede1(0x1c0)]?(drawIcon(_0x176902,_0x24b386[_0x55ede1(0x1c9)](0x60),_0x1fb615),_0x1c4291[_0x27b0b4]=_0x1a4afd[_0x55ede1(0x1b2)](),_0x513bac(_0x1a4afd[_0x55ede1(0x1b2)]())):(_0x40da60===a87_0x93685['IDLE']&&_0x24b386[_0x55ede1(0x1d2)](),_0x24b386[_0x55ede1(0x1d1)](_0x128f01=>{const _0x4d05b6=_0x55ede1;_0x40da60=_0x128f01[_0x4d05b6(0x1a8)]['getImageState'](),(_0x40da60===a87_0x93685[_0x4d05b6(0x1cd)]||_0x40da60===a87_0x93685[_0x4d05b6(0x1c0)])&&(drawIcon(_0x176902,_0x24b386[_0x4d05b6(0x1c9)](0x60),_0x1fb615),_0x1c4291[_0x27b0b4]=_0x1a4afd['toDataURL'](),_0x513bac(_0x1a4afd[_0x4d05b6(0x1b2)]()));}));});else{if(_0x920256){const _0x1015cd=a87_0x1aab11(_0x920256,{'font':_0x5a5379(0x1b9)+_0x1fb615+'px\x20sans-serif'});drawIcon(_0x176902,_0x1015cd,_0x1fb615);}}return _0x1c4291[_0x27b0b4]=_0x1a4afd[_0x5a5379(0x1b2)](),_0x1a4afd[_0x5a5379(0x1b2)]();}export default PinBuilder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a88_0x46ef(){const _0x42b1e4=['image','657epZYvp','getImageState','_imageState','_listener','10TQvEHE','_icon','getImage','resolve','markerLabel','1101550uDUYRh','IDLE','6POjGto','3334723qOYukB','set','catch','get','9658032VdPHCZ','listenImageChange','8382875DrfkkL','111640pmGtrG','fromText','88LaudUB','options','load','loadIcon','ERROR','markerColor','55tfaXwn','markerSize','error','LOADED','dispatchEvent','warn','199709UzmnXr','144498aETQzu','target'];a88_0x46ef=function(){return _0x42b1e4;};return a88_0x46ef();}const a88_0x3ddc5c=a88_0x9397;function a88_0x9397(_0x520b17,_0x4ba94b){const _0x46efbc=a88_0x46ef();return a88_0x9397=function(_0x9397bf,_0x505f4f){_0x9397bf=_0x9397bf-0x11e;let _0x32371a=_0x46efbc[_0x9397bf];return _0x32371a;},a88_0x9397(_0x520b17,_0x4ba94b);}(function(_0x25988d,_0x358634){const _0x524083=a88_0x9397,_0x303ee3=_0x25988d();while(!![]){try{const _0x4425e8=parseInt(_0x524083(0x130))/0x1*(parseInt(_0x524083(0x138))/0x2)+parseInt(_0x524083(0x131))/0x3*(parseInt(_0x524083(0x124))/0x4)+parseInt(_0x524083(0x121))/0x5+parseInt(_0x524083(0x13f))/0x6*(-parseInt(_0x524083(0x140))/0x7)+-parseInt(_0x524083(0x122))/0x8*(parseInt(_0x524083(0x134))/0x9)+parseInt(_0x524083(0x13d))/0xa*(-parseInt(_0x524083(0x12a))/0xb)+-parseInt(_0x524083(0x11f))/0xc;if(_0x4425e8===_0x358634)break;else _0x303ee3['push'](_0x303ee3['shift']());}catch(_0x4ee086){_0x303ee3['push'](_0x303ee3['shift']());}}}(a88_0x46ef,0xd7d59));import a88_0x969949 from'./PinBuilder';import{Icon}from'ol/style';import a88_0x972908 from'ol/ImageState';import a88_0xfb2e09 from'ol/events/Event';import{shared as a88_0x500bdd}from'./ImageCache';export default class PinIcon{constructor(_0x1cfdec){const _0xc2762=a88_0x9397;this[_0xc2762(0x125)]=_0x1cfdec||{},this[_0xc2762(0x136)]=a88_0x972908[_0xc2762(0x13e)],this[_0xc2762(0x139)]=a88_0x500bdd[_0xc2762(0x11e)](this[_0xc2762(0x125)]),this[_0xc2762(0x139)]&&(this[_0xc2762(0x136)]=a88_0x972908[_0xc2762(0x12d)]);}[a88_0x3ddc5c(0x126)](){const _0x476f38=a88_0x3ddc5c;try{let _0x5d5a32,_0x5a7f89=new a88_0x969949();if(this[_0x476f38(0x125)]['markerLabel'])_0x5d5a32=_0x5a7f89[_0x476f38(0x123)](this[_0x476f38(0x125)][_0x476f38(0x13c)],this[_0x476f38(0x125)][_0x476f38(0x129)],this[_0x476f38(0x125)][_0x476f38(0x12b)]||0x30);else this[_0x476f38(0x125)][_0x476f38(0x133)]&&(_0x5d5a32=_0x5a7f89['fromUrl'](this['options'][_0x476f38(0x133)],this[_0x476f38(0x125)][_0x476f38(0x129)],this['options']['markerSize']||0x30));Promise[_0x476f38(0x13b)](_0x5d5a32)['then'](_0x260b34=>{const _0x72e66e=_0x476f38;this[_0x72e66e(0x127)](_0x260b34);})[_0x476f38(0x142)](_0x4aa28c=>{const _0x2570cd=_0x476f38;console[_0x2570cd(0x12f)](_0x4aa28c),this[_0x2570cd(0x136)]=a88_0x972908['ERROR'],this['dispatchEvent'](_0x2570cd(0x12c));});}catch(_0x4073a0){console[_0x476f38(0x12f)](_0x4073a0),this[_0x476f38(0x136)]=a88_0x972908[_0x476f38(0x128)],this[_0x476f38(0x12e)](_0x476f38(0x12c));}}[a88_0x3ddc5c(0x127)](_0x16426f){const _0x5adf31=a88_0x3ddc5c;this[_0x5adf31(0x139)]=new Icon({'src':_0x16426f}),a88_0x500bdd[_0x5adf31(0x141)](this['options'],this['_icon']);let _0x2cf96f=this[_0x5adf31(0x139)][_0x5adf31(0x135)]();_0x2cf96f===a88_0x972908[_0x5adf31(0x12d)]||_0x2cf96f===a88_0x972908[_0x5adf31(0x128)]?(this[_0x5adf31(0x136)]=this[_0x5adf31(0x139)][_0x5adf31(0x135)](),this[_0x5adf31(0x12e)](_0x5adf31(0x126))):(_0x2cf96f===a88_0x972908[_0x5adf31(0x13e)]&&this[_0x5adf31(0x139)]['load'](),this[_0x5adf31(0x139)]['listenImageChange'](_0x58bd02=>{const _0x2ba122=_0x5adf31;_0x2cf96f=_0x58bd02[_0x2ba122(0x132)][_0x2ba122(0x135)](),(_0x2cf96f===a88_0x972908[_0x2ba122(0x12d)]||_0x2cf96f===a88_0x972908['ERROR'])&&(this[_0x2ba122(0x136)]=this[_0x2ba122(0x139)]['getImageState'](),this[_0x2ba122(0x12e)]('load'));}));}[a88_0x3ddc5c(0x135)](){return this['_imageState'];}[a88_0x3ddc5c(0x13a)](){const _0x260e6e=a88_0x3ddc5c;var _0x73004c;return(_0x73004c=this[_0x260e6e(0x139)])===null||_0x73004c===void 0x0?void 0x0:_0x73004c[_0x260e6e(0x13a)]();}[a88_0x3ddc5c(0x120)](_0x4c48e4){const _0x37fd12=a88_0x3ddc5c;this[_0x37fd12(0x137)]=_0x4c48e4;}[a88_0x3ddc5c(0x12e)](_0x130dd3){if(this['_listener']){let _0x5d61c8=new a88_0xfb2e09(_0x130dd3);_0x5d61c8['target']=this,this['_listener'](_0x5d61c8);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a89_0x4cad(_0x405351,_0x131452){const _0x31b031=a89_0x31b0();return a89_0x4cad=function(_0x4cad01,_0x2906de){_0x4cad01=_0x4cad01-0x171;let _0xa10b48=_0x31b031[_0x4cad01];return _0xa10b48;},a89_0x4cad(_0x405351,_0x131452);}(function(_0x23293c,_0x51d302){const _0xaaa2df=a89_0x4cad,_0x515e9a=_0x23293c();while(!![]){try{const _0x188851=parseInt(_0xaaa2df(0x18b))/0x1+parseInt(_0xaaa2df(0x183))/0x2+-parseInt(_0xaaa2df(0x19c))/0x3+-parseInt(_0xaaa2df(0x187))/0x4*(parseInt(_0xaaa2df(0x18e))/0x5)+parseInt(_0xaaa2df(0x174))/0x6*(-parseInt(_0xaaa2df(0x194))/0x7)+-parseInt(_0xaaa2df(0x18c))/0x8+parseInt(_0xaaa2df(0x178))/0x9*(parseInt(_0xaaa2df(0x1a6))/0xa);if(_0x188851===_0x51d302)break;else _0x515e9a['push'](_0x515e9a['shift']());}catch(_0x100512){_0x515e9a['push'](_0x515e9a['shift']());}}}(a89_0x31b0,0x8cbd4));function a89_0x31b0(){const _0x2a94dc=['minx','replace','padding','ceil','fillStyle','body','height','visibility','stroke','356232WOuGnL','imageSmoothingEnabled','test','round','20HaaHso','hidden','width','lineWidth','207447teTXJP','7847256GuURuc','backgroundColor','737755CgQFcE','black','#FFFFFF','#000000','text\x20is\x20required.','lineJoin','168AnQIyY','length','getImageData','style','10px\x20sans-serif','fillRect','mozImageSmoothingEnabled','canvas','559851XRxkiz','font','#00000000','white','defaultView','strokeStyle','font-size','createElement','ascent','strokeText','480ZaKNzl','getComputedStyle','data','removeChild','msImageSmoothingEnabled','getPropertyValue','fillColor','148734buuHTL','measureText','webkitImageSmoothingEnabled','getContext','504585kEfskK','fill'];a89_0x31b0=function(){return _0x2a94dc;};return a89_0x31b0();}function measureText(_0x398b6a,_0x20864c,_0x4b7871,_0x331dca,_0x5b55a7){const _0x1f647b=a89_0x4cad,_0x220d0e=_0x398b6a[_0x1f647b(0x175)](_0x20864c),_0x44e775=!/\S/[_0x1f647b(0x185)](_0x20864c);if(!_0x44e775&&document[_0x1f647b(0x1a0)]){const _0x5656e2=document[_0x1f647b(0x1a0)][_0x1f647b(0x1a7)](_0x398b6a[_0x1f647b(0x19b)])[_0x1f647b(0x172)](_0x1f647b(0x1a2))[_0x1f647b(0x17b)]('px',''),_0x48e656=document[_0x1f647b(0x1a3)]('canvas'),_0x566275=0x64,_0xb33ca9=_0x220d0e['width']+_0x566275|0x0,_0x796429=0x3*(_0x5656e2-0x0),_0x289aed=_0x796429/0x2;_0x48e656[_0x1f647b(0x189)]=_0xb33ca9,_0x48e656[_0x1f647b(0x180)]=_0x796429;const _0x2178bb=_0x48e656[_0x1f647b(0x177)]('2d');if(!_0x2178bb)return{};_0x2178bb[_0x1f647b(0x19d)]=_0x4b7871,_0x2178bb[_0x1f647b(0x17e)]=_0x1f647b(0x19f),_0x2178bb[_0x1f647b(0x199)](0x0,0x0,_0x48e656[_0x1f647b(0x189)]+0x1,_0x48e656[_0x1f647b(0x180)]+0x1);_0x331dca&&(_0x2178bb['strokeStyle']=_0x1f647b(0x18f),_0x2178bb[_0x1f647b(0x18a)]=_0x398b6a[_0x1f647b(0x18a)],_0x2178bb['strokeText'](_0x20864c,_0x566275/0x2,_0x289aed));_0x5b55a7&&(_0x2178bb[_0x1f647b(0x17e)]=_0x1f647b(0x18f),_0x2178bb['fillText'](_0x20864c,_0x566275/0x2,_0x289aed));const _0xd5f77c=_0x2178bb[_0x1f647b(0x196)](0x0,0x0,_0xb33ca9,_0x796429)[_0x1f647b(0x1a8)],_0x511b65=_0xd5f77c[_0x1f647b(0x195)],_0x5d827c=_0xb33ca9*0x4;let _0xc09743,_0x393f85,_0x321ce8=0x0,_0x326f3b=0x0;for(_0xc09743=0x0;_0xc09743<_0x511b65;++_0xc09743){if(_0xd5f77c[_0xc09743]!==0xff){_0x321ce8=_0xc09743/_0x5d827c|0x0;break;}}for(_0xc09743=_0x511b65-0x1;_0xc09743>=0x0;--_0xc09743){if(_0xd5f77c[_0xc09743]!==0xff){_0x326f3b=_0xc09743/_0x5d827c|0x0;break;}}let _0xdf6f44=-0x1;for(_0xc09743=0x0;_0xc09743<_0xb33ca9&&_0xdf6f44===-0x1;++_0xc09743){for(_0x393f85=0x0;_0x393f85<_0x796429;++_0x393f85){const _0x503979=_0xc09743*0x4+_0x393f85*_0x5d827c;if(_0xd5f77c[_0x503979]!==0xff||_0xd5f77c[_0x503979+0x1]!==0xff||_0xd5f77c[_0x503979+0x2]!==0xff||_0xd5f77c[_0x503979+0x3]!==0xff){_0xdf6f44=_0xc09743;break;}}}return{'width':_0x220d0e[_0x1f647b(0x189)],'height':_0x326f3b-_0x321ce8,'ascent':_0x289aed-_0x321ce8,'descent':_0x326f3b-_0x289aed,'minx':_0xdf6f44-_0x566275/0x2};}return{'width':_0x220d0e['width'],'height':0x0,'ascent':0x0,'descent':0x0,'minx':0x0};}let imageSmoothingEnabledName='';function writeTextToCanvas(_0x376776,_0x5fecbe){const _0x150acb=a89_0x4cad;if(!_0x376776)throw new Error(_0x150acb(0x192));if(_0x376776==='')return undefined;_0x5fecbe=defaultValue(_0x5fecbe,{});const _0x59d804=defaultValue(_0x5fecbe[_0x150acb(0x19d)],_0x150acb(0x198)),_0x143acd=defaultValue(_0x5fecbe[_0x150acb(0x182)],![]),_0x2f5546=defaultValue(_0x5fecbe[_0x150acb(0x179)],!![]),_0x533788=defaultValue(_0x5fecbe['strokeWidth'],0x1),_0x66615a=defaultValue(_0x5fecbe[_0x150acb(0x18d)],_0x150acb(0x19e)),_0x3601b7=defaultValue(_0x5fecbe[_0x150acb(0x17c)],0x0),_0x440200=_0x3601b7*0x2,_0x32094c=document['createElement']('canvas');_0x32094c[_0x150acb(0x189)]=0x1,_0x32094c[_0x150acb(0x180)]=0x1,_0x32094c['style'][_0x150acb(0x19d)]=_0x59d804;const _0x405184=_0x32094c['getContext']('2d');if(!imageSmoothingEnabledName&&_0x405184){if(_0x405184[_0x150acb(0x184)])imageSmoothingEnabledName=_0x150acb(0x184);else{if(_0x405184[_0x150acb(0x19a)])imageSmoothingEnabledName=_0x150acb(0x19a);else{if(_0x405184[_0x150acb(0x176)])imageSmoothingEnabledName='webkitImageSmoothingEnabled';else _0x405184[_0x150acb(0x171)]&&(imageSmoothingEnabledName=_0x150acb(0x171));}}}_0x405184[_0x150acb(0x19d)]=_0x59d804,_0x405184[_0x150acb(0x193)]='round',_0x405184['lineWidth']=_0x533788,_0x405184[imageSmoothingEnabledName]=![],_0x32094c[_0x150acb(0x197)]['visibility']=_0x150acb(0x188),document[_0x150acb(0x17f)]['appendChild'](_0x32094c);const _0x18c223=measureText(_0x405184,_0x376776,_0x59d804,_0x143acd,_0x2f5546);if(!_0x18c223)return;_0x32094c['dimensions']=_0x18c223,document[_0x150acb(0x17f)][_0x150acb(0x1a9)](_0x32094c),_0x32094c[_0x150acb(0x197)][_0x150acb(0x181)]='';const _0x1d431b=-(_0x18c223['minx']?_0x18c223[_0x150acb(0x17a)]:0x0),_0x1488b9=Math[_0x150acb(0x17d)](_0x18c223[_0x150acb(0x189)])+_0x1d431b+_0x440200,_0x48fce9=(_0x18c223[_0x150acb(0x180)]?_0x18c223['height']:0x0)+_0x440200,_0x1e5625=_0x48fce9-(_0x18c223[_0x150acb(0x1a4)]?_0x18c223[_0x150acb(0x1a4)]:0x0)+_0x3601b7,_0x5ba724=_0x48fce9-_0x1e5625+_0x440200;return _0x32094c[_0x150acb(0x189)]=_0x1488b9,_0x32094c[_0x150acb(0x180)]=_0x48fce9,_0x405184[_0x150acb(0x19d)]=_0x59d804,_0x405184[_0x150acb(0x193)]=_0x150acb(0x186),_0x405184[_0x150acb(0x18a)]=_0x533788,_0x405184[imageSmoothingEnabledName]=![],_0x66615a!==_0x150acb(0x19e)&&(_0x405184[_0x150acb(0x17e)]=_0x66615a,_0x405184[_0x150acb(0x199)](0x0,0x0,_0x32094c[_0x150acb(0x189)],_0x32094c[_0x150acb(0x180)])),_0x143acd&&(_0x405184[_0x150acb(0x1a1)]=defaultValue(_0x5fecbe['strokeColor'],_0x150acb(0x191)),_0x405184[_0x150acb(0x1a5)](_0x376776,_0x1d431b+_0x3601b7,_0x5ba724)),_0x2f5546&&(_0x405184[_0x150acb(0x17e)]=defaultValue(_0x5fecbe[_0x150acb(0x173)],_0x150acb(0x190)),_0x405184['fillText'](_0x376776,_0x1d431b+_0x3601b7,_0x5ba724)),_0x32094c;}function defaultValue(_0x16daca,_0x5447b0){if(_0x16daca!==undefined&&_0x16daca!==null)return _0x16daca;return _0x5447b0;}export default writeTextToCanvas;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94_0x137b3e=a94_0x4cb7;(function(_0x1d2e18,_0x5d8084){const _0x5d90c4=a94_0x4cb7,_0x5b8459=_0x1d2e18();while(!![]){try{const _0x139a66=parseInt(_0x5d90c4(0xcf))/0x1+parseInt(_0x5d90c4(0xca))/0x2+-parseInt(_0x5d90c4(0xc0))/0x3*(parseInt(_0x5d90c4(0xb0))/0x4)+-parseInt(_0x5d90c4(0xc8))/0x5+parseInt(_0x5d90c4(0xc3))/0x6+parseInt(_0x5d90c4(0xcc))/0x7+-parseInt(_0x5d90c4(0xbc))/0x8*(-parseInt(_0x5d90c4(0xb8))/0x9);if(_0x139a66===_0x5d8084)break;else _0x5b8459['push'](_0x5b8459['shift']());}catch(_0x2e4d3a){_0x5b8459['push'](_0x5b8459['shift']());}}}(a94_0x4fe2,0x796e9));function a94_0x4fe2(){const _0x2981ee=['369967MfZwkR','tolerance','resolution','layerDefs','imageDisplay','getCode','891884HEaQHY','geometry','geojsonTypeToArcGIS','returnGeometry','returnM','geometryType','_setGeometryParams','path','546381zzoOho','getType','getView','identify','8dVJuSN','request','run','getSize','6emjJyE','between','params','332346BOVAtF','mapExtent','layers','getProjection','inSR','3649780gkEdaw','calculateExtent','664796NULPlp','valueOf','5983726uLPRlX','writeGeometryObject','returnZ'];a94_0x4fe2=function(){return _0x2981ee;};return a94_0x4fe2();}import a94_0x20b2c8 from'ol/format/EsriJSON';import a94_0x1229e5 from'ol/format/GeoJSON';import{getPointResolution}from'ol/proj';import a94_0x5910da from'./Task';function a94_0x4cb7(_0x3c9abd,_0x5d6180){const _0x4fe213=a94_0x4fe2();return a94_0x4cb7=function(_0x4cb73,_0x2f2b5b){_0x4cb73=_0x4cb73-0xb0;let _0x558def=_0x4fe213[_0x4cb73];return _0x558def;},a94_0x4cb7(_0x3c9abd,_0x5d6180);}import{appendPath}from'../../UrlUtil';import{getEsriSpatialReference}from'../../EsriUtil';export default class Identify extends a94_0x5910da{constructor(_0x2b1fcf,_0x85703c,_0x51eada){const _0x317b11=a94_0x4cb7;super(_0x2b1fcf,_0x85703c,_0x51eada),this[_0x317b11(0xb7)]=_0x317b11(0xbb),this['params']={'layers':'all','tolerance':0x0,'returnGeometry':!![]},this[_0x317b11(0xd0)]=0x3,this[_0x317b11(0xd1)]=0x0,this['url']=appendPath(this['url'],this[_0x317b11(0xb7)]),_0x85703c&&((_0x85703c[_0x317b11(0xb3)]===!![]||_0x85703c[_0x317b11(0xb3)]===![])&&(this['params'][_0x317b11(0xb3)]=_0x85703c[_0x317b11(0xb3)]),_0x85703c[_0x317b11(0xc5)]&&(this[_0x317b11(0xc2)]['layers']=_0x85703c[_0x317b11(0xc5)]),_0x85703c[_0x317b11(0xd2)]&&(this[_0x317b11(0xc2)][_0x317b11(0xd2)]=_0x85703c[_0x317b11(0xd2)]),(_0x85703c[_0x317b11(0xce)]===!![]||_0x85703c[_0x317b11(0xce)]===![])&&(this[_0x317b11(0xc2)][_0x317b11(0xce)]=_0x85703c['returnZ']),(_0x85703c[_0x317b11(0xb4)]===!![]||_0x85703c[_0x317b11(0xb4)]===![])&&(this[_0x317b11(0xc2)][_0x317b11(0xb4)]=_0x85703c[_0x317b11(0xb4)]));}['at'](_0x41305b,_0x31da83){const _0x1fe8b8=a94_0x4cb7;let _0x1f07a7,_0x4a49ad;const _0x2058f4=new a94_0x1229e5();_0x1f07a7=_0x41305b,_0x4a49ad=getEsriSpatialReference(_0x31da83[_0x1fe8b8(0xba)]()[_0x1fe8b8(0xc6)]()[_0x1fe8b8(0xd4)]());const _0x4d510b=_0x31da83[_0x1fe8b8(0xbf)]();_0x4d510b&&(this[_0x1fe8b8(0xc2)][_0x1fe8b8(0xd3)]=[_0x4d510b[0x0],_0x4d510b[0x1],0x60]);this[_0x1fe8b8(0xc2)]['sr']=_0x4a49ad;const _0x2c8232=_0x31da83['getView']()[_0x1fe8b8(0xc9)](_0x31da83['getSize']());this[_0x1fe8b8(0xc2)][_0x1fe8b8(0xc4)]={'xmin':_0x2c8232[0x0],'ymin':_0x2c8232[0x1],'xmax':_0x2c8232[0x2],'ymax':_0x2c8232[0x3],'spatialReference':_0x4a49ad};const _0xa65d69=_0x31da83[_0x1fe8b8(0xba)]()['getResolution'](),_0x4cc288=_0x31da83[_0x1fe8b8(0xba)]()['getCenter']();return _0xa65d69&&_0x4cc288&&(this[_0x1fe8b8(0xd1)]=getPointResolution(_0x31da83[_0x1fe8b8(0xba)]()[_0x1fe8b8(0xc6)](),_0xa65d69,_0x4cc288)),this[_0x1fe8b8(0xb6)](_0x1f07a7,_0x31da83[_0x1fe8b8(0xba)]()[_0x1fe8b8(0xc6)]()[_0x1fe8b8(0xd4)]()),this;}[a94_0x137b3e(0xc1)](_0xbfaa48,_0x3ce3cd){const _0xb0b19e=a94_0x137b3e;return this[_0xb0b19e(0xc2)]['time']=[_0xbfaa48[_0xb0b19e(0xcb)](),_0x3ce3cd['valueOf']()],this;}[a94_0x137b3e(0xbe)](){const _0x831fe0=a94_0x137b3e;this[_0x831fe0(0xbd)]();}['_setGeometryParams'](_0x380f9b,_0x2a34c8){const _0x40bf48=a94_0x137b3e;var _0x3db456=new a94_0x20b2c8();const _0x1e8bee=_0x3db456[_0x40bf48(0xcd)](_0x380f9b);this[_0x40bf48(0xc2)][_0x40bf48(0xc7)]=getEsriSpatialReference(_0x2a34c8),this[_0x40bf48(0xc2)][_0x40bf48(0xb1)]=_0x1e8bee,this[_0x40bf48(0xc2)][_0x40bf48(0xb5)]=this[_0x40bf48(0xb2)](_0x380f9b[_0x40bf48(0xb9)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a95_0x2468(_0x42e071,_0x3d01c4){const _0x5942ff=a95_0x5942();return a95_0x2468=function(_0x246829,_0x4e1eef){_0x246829=_0x246829-0x107;let _0x5255a4=_0x5942ff[_0x246829];return _0x5255a4;},a95_0x2468(_0x42e071,_0x3d01c4);}const a95_0x28d29c=a95_0x2468;(function(_0xd2f4b6,_0x21819f){const _0x29e400=a95_0x2468,_0x53e0f2=_0xd2f4b6();while(!![]){try{const _0x37ed68=parseInt(_0x29e400(0x128))/0x1+-parseInt(_0x29e400(0x11b))/0x2*(-parseInt(_0x29e400(0x10f))/0x3)+parseInt(_0x29e400(0x114))/0x4+parseInt(_0x29e400(0x109))/0x5+-parseInt(_0x29e400(0x146))/0x6+-parseInt(_0x29e400(0x149))/0x7+-parseInt(_0x29e400(0x108))/0x8;if(_0x37ed68===_0x21819f)break;else _0x53e0f2['push'](_0x53e0f2['shift']());}catch(_0x204da8){_0x53e0f2['push'](_0x53e0f2['shift']());}}}(a95_0x5942,0xb561d));import a95_0x2315a4 from'ol/format/EsriJSON';import a95_0x302266 from'./Task';import{getEsriSpatialReference}from'../../EsriUtil';function a95_0x5942(){const _0x3ab31b=['getExtent','count','4146501omVOHa','esriSpatialRelOverlaps','url','indexIntersects','intersects','5617476wKbmIF','esriSRUnit_Meter','one\x20common\x20syntax\x20error\x20in\x20query\x20requests\x20is\x20encasing\x20string\x20values\x20in\x20double\x20quotes\x20instead\x20of\x20single\x20quotes','spatialRel','data','_trapSQLerrors','outSR','2LKGppJ','path','between','bboxIntersects','returnDistinctValues','ASC','esriSpatialRelCrosses','writeGeometryObject','status','_cleanParams','esriSpatialRelWithin','layer','forEach','776162tZXYMy','valueOf','nearby','_setGeometryParams','returnCountOnly','returnZ','esriSpatialRelEnvelopeIntersects','warn','getSize','esriSpatialRelTouches','request','abs','where','features','join','/query','apply','esriSpatialRelContains','readFeature','returnIdsOnly','esriSpatialRelIntersects','ids','touches','returnGeometry','returnM','getTime','contains','orderBy','esriSpatialRelIndexIntersects','crosses','4214304NagADo','No\x20features\x20found','geometry','1251628bHoeEK','inSR','1=1','orderByFields','query','time','overlaps','25039632XgvPwj','5956925UMUQGh','within','params','distance'];a95_0x5942=function(){return _0x3ab31b;};return a95_0x5942();}import{appendPath}from'../../UrlUtil';export default class Query extends a95_0x302266{constructor(_0x14206f,_0x521138,_0x1b8cd7){const _0x4a4f9a=a95_0x2468;super(_0x14206f,_0x521138,_0x1b8cd7),this[_0x4a4f9a(0x11c)]=_0x4a4f9a(0x14d),this['params']={'returnGeometry':!![],'where':_0x4a4f9a(0x14b),'outFields':'*','returnZ':![],'returnM':![],'t':new Date()[_0x4a4f9a(0x141)]()},this[_0x4a4f9a(0x111)]=appendPath(this[_0x4a4f9a(0x111)],this[_0x4a4f9a(0x11c)]),_0x521138&&((_0x521138[_0x4a4f9a(0x13f)]===!![]||_0x521138['returnGeometry']===![])&&(this['params'][_0x4a4f9a(0x13f)]=_0x521138[_0x4a4f9a(0x13f)]),_0x521138['where']&&(this[_0x4a4f9a(0x10b)]['where']=_0x521138[_0x4a4f9a(0x134)]),_0x521138[_0x4a4f9a(0x11a)]&&(this[_0x4a4f9a(0x10b)][_0x4a4f9a(0x11a)]=getEsriSpatialReference(_0x521138[_0x4a4f9a(0x11a)])),(_0x521138[_0x4a4f9a(0x12d)]===!![]||_0x521138[_0x4a4f9a(0x12d)]===![])&&(this[_0x4a4f9a(0x10b)][_0x4a4f9a(0x12d)]=_0x521138['returnZ']),(_0x521138['returnM']===!![]||_0x521138[_0x4a4f9a(0x140)]===![])&&(this['params'][_0x4a4f9a(0x140)]=_0x521138['returnM']));}[a95_0x28d29c(0x10a)](_0x4175c6,_0x1dd543){const _0x3ad349=a95_0x28d29c;return this['_setGeometryParams'](_0x4175c6,_0x1dd543),this[_0x3ad349(0x10b)][_0x3ad349(0x117)]=_0x3ad349(0x139),this;}[a95_0x28d29c(0x113)](_0xfa3057,_0x197a60){const _0x3a582e=a95_0x28d29c;return this[_0x3a582e(0x12b)](_0xfa3057,_0x197a60),this[_0x3a582e(0x10b)]['spatialRel']='esriSpatialRelIntersects',this;}[a95_0x28d29c(0x142)](_0xef2ebb,_0x578033){const _0x4671af=a95_0x28d29c;return this[_0x4671af(0x12b)](_0xef2ebb,_0x578033),this['params']['spatialRel']=_0x4671af(0x125),this;}[a95_0x28d29c(0x145)](_0x4d0fdb,_0x2c52ec){const _0x584e53=a95_0x28d29c;return this[_0x584e53(0x12b)](_0x4d0fdb,_0x2c52ec),this[_0x584e53(0x10b)][_0x584e53(0x117)]=_0x584e53(0x121),this;}[a95_0x28d29c(0x13e)](_0x59b5f4,_0x3b2ea2){const _0x1d1d04=a95_0x28d29c;return this[_0x1d1d04(0x12b)](_0x59b5f4,_0x3b2ea2),this[_0x1d1d04(0x10b)]['spatialRel']=_0x1d1d04(0x131),this;}[a95_0x28d29c(0x107)](_0x3e961f,_0x1c58b4){const _0x3c1ba4=a95_0x28d29c;return this[_0x3c1ba4(0x12b)](_0x3e961f,_0x1c58b4),this['params'][_0x3c1ba4(0x117)]=_0x3c1ba4(0x110),this;}[a95_0x28d29c(0x11e)](_0x471de2,_0x343f10){const _0x4c3e70=a95_0x28d29c;return this[_0x4c3e70(0x12b)](_0x471de2,_0x343f10),this['params'][_0x4c3e70(0x117)]=_0x4c3e70(0x12e),this;}[a95_0x28d29c(0x112)](_0x5eaccd,_0x1f1052){const _0x3d1174=a95_0x28d29c;return this[_0x3d1174(0x12b)](_0x5eaccd,_0x1f1052),this[_0x3d1174(0x10b)]['spatialRel']=_0x3d1174(0x144),this;}[a95_0x28d29c(0x12a)](_0x4e084f,_0x4ed361,_0x364b09){const _0x41c6a9=a95_0x28d29c;return this[_0x41c6a9(0x12b)](_0x4e084f,_0x4ed361),this[_0x41c6a9(0x10b)][_0x41c6a9(0x117)]=_0x41c6a9(0x13c),this[_0x41c6a9(0x10b)]['units']=_0x41c6a9(0x115),this[_0x41c6a9(0x10b)][_0x41c6a9(0x10c)]=_0x364b09,this;}['where'](_0x47f92c){const _0x141b31=a95_0x28d29c;return this[_0x141b31(0x10b)]['where']=_0x47f92c,this;}[a95_0x28d29c(0x11d)](_0x4c42b2,_0x304c69){const _0xbc8d15=a95_0x28d29c;return this[_0xbc8d15(0x10b)][_0xbc8d15(0x14e)]=[_0x4c42b2[_0xbc8d15(0x129)](),_0x304c69[_0xbc8d15(0x129)]()],this;}['simplify'](_0x1eec0b,_0x2e5f99){const _0x51d5d2=a95_0x28d29c,_0x220279=_0x1eec0b[_0x51d5d2(0x10d)]();var _0x552c61=Math[_0x51d5d2(0x133)](_0x220279[0x2]-_0x220279[0x0]);const _0x387b2b=_0x1eec0b[_0x51d5d2(0x130)]();if(_0x387b2b)return this[_0x51d5d2(0x10b)]['maxAllowableOffset']=_0x552c61/_0x387b2b[0x1]*_0x2e5f99,this;}[a95_0x28d29c(0x143)](_0x16dc73,_0x4b825d){const _0x3f6fa8=a95_0x28d29c;return _0x4b825d=_0x4b825d||_0x3f6fa8(0x120),this[_0x3f6fa8(0x10b)][_0x3f6fa8(0x14c)]=this[_0x3f6fa8(0x10b)]['orderByFields']?this[_0x3f6fa8(0x10b)]['orderByFields']+',':'',this[_0x3f6fa8(0x10b)]['orderByFields']+=[_0x16dc73,_0x4b825d][_0x3f6fa8(0x136)]('\x20'),this;}async['run'](){const _0x12915d=a95_0x28d29c;this['_cleanParams']();const _0x25e9d9=await this[_0x12915d(0x132)]()['catch'](_0x5cc53f=>{throw new Error(_0x5cc53f);});if(_0x25e9d9[_0x12915d(0x123)]!==0xc8)throw new Error(_0x12915d(0x147));if(_0x25e9d9[_0x12915d(0x118)]&&_0x25e9d9[_0x12915d(0x118)][_0x12915d(0x135)]&&_0x25e9d9[_0x12915d(0x118)][_0x12915d(0x135)]['length']>0x0){var _0x3f6b07=new a95_0x2315a4();let _0x5e4b1c=[];return _0x25e9d9[_0x12915d(0x118)][_0x12915d(0x135)][_0x12915d(0x127)](_0x4344eb=>{const _0x4d550=_0x12915d,_0x2e2dd1=_0x3f6b07[_0x4d550(0x13a)](_0x4344eb);_0x5e4b1c['push'](_0x2e2dd1);}),_0x5e4b1c;}return[];}[a95_0x28d29c(0x10e)](){const _0x24cebb=a95_0x28d29c;this['_cleanParams'](),this[_0x24cebb(0x10b)][_0x24cebb(0x12c)]=!![],this['request']();}[a95_0x28d29c(0x13d)](){const _0x3b6b6a=a95_0x28d29c;this['_cleanParams'](),this['params']['returnIdsOnly']=!![],this[_0x3b6b6a(0x132)]();}['distinct'](){const _0x3ed29f=a95_0x28d29c;return this[_0x3ed29f(0x10b)][_0x3ed29f(0x13f)]=![],this[_0x3ed29f(0x10b)][_0x3ed29f(0x11f)]=!![],this;}[a95_0x28d29c(0x126)](_0x39f982){const _0x443bac=a95_0x28d29c;return this[_0x443bac(0x11c)]=_0x39f982+_0x443bac(0x137),this;}[a95_0x28d29c(0x119)](_0x148e8e){const _0x2c4034=a95_0x28d29c;_0x148e8e&&(_0x148e8e['code']==='400'&&console[_0x2c4034(0x12f)][_0x2c4034(0x138)](_0x2c4034(0x116)));}[a95_0x28d29c(0x124)](){const _0x20cf7f=a95_0x28d29c;delete this[_0x20cf7f(0x10b)][_0x20cf7f(0x13b)],delete this[_0x20cf7f(0x10b)]['returnExtentOnly'],delete this[_0x20cf7f(0x10b)]['returnCountOnly'];}[a95_0x28d29c(0x12b)](_0xac733f,_0x5cce62){const _0x168bc3=a95_0x28d29c;var _0x997e40=new a95_0x2315a4();const _0x4a0426=_0x997e40[_0x168bc3(0x122)](_0xac733f);this[_0x168bc3(0x10b)][_0x168bc3(0x14a)]=getEsriSpatialReference(_0x5cce62),this[_0x168bc3(0x10b)][_0x168bc3(0x148)]=_0x4a0426,this['params']['geometryType']=this['geojsonTypeToArcGIS'](_0xac733f['getType']());}}
|
package/utils/tasks/esri/Task.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a96_0x3fb2(_0x2c4c09,_0x9f1951){var _0x11a555=a96_0x11a5();return a96_0x3fb2=function(_0x3fb297,_0x420c06){_0x3fb297=_0x3fb297-0x9f;var _0x18a326=_0x11a555[_0x3fb297];return _0x18a326;},a96_0x3fb2(_0x2c4c09,_0x9f1951);}var a96_0x1c316a=a96_0x3fb2;(function(_0x47cda3,_0x377654){var _0x10969e=a96_0x3fb2,_0x1130b7=_0x47cda3();while(!![]){try{var _0x5205e7=parseInt(_0x10969e(0xa8))/0x1+parseInt(_0x10969e(0xc5))/0x2*(-parseInt(_0x10969e(0xc1))/0x3)+parseInt(_0x10969e(0xa7))/0x4+-parseInt(_0x10969e(0xbd))/0x5*(-parseInt(_0x10969e(0xb3))/0x6)+-parseInt(_0x10969e(0xa2))/0x7*(-parseInt(_0x10969e(0xa9))/0x8)+parseInt(_0x10969e(0xa3))/0x9+parseInt(_0x10969e(0xb6))/0xa*(-parseInt(_0x10969e(0xaf))/0xb);if(_0x5205e7===_0x377654)break;else _0x1130b7['push'](_0x1130b7['shift']());}catch(_0x3174c2){_0x1130b7['push'](_0x1130b7['shift']());}}}(a96_0x11a5,0x9f105));import a96_0xfd3414 from'../../AxiosUtil';import{jsonp,stringify}from'../../AxiosUtil';function a96_0x11a5(){var _0xac9819=['format','hasOwnProperty','10kdRbYU','params','MultiPolygon','MultiLineString','15MGzrag','url','esriGeometryPolyline','test','433178RzVOKW','serialize','json','prototype','call','15099PMcfEi','7387596OmZXKv','isArcgisOnline','esriGeometryMultipoint','[object\x20Object]','2915008kxqSiZ','678720KVyvuC','3392RDasZK','stringify','indexOf','GET','Polygon','MultiPoint','50336VUCzJT','method','post','request','1169862ImUIsF','[object\x20Array]','length','3930cfXHrf','[object\x20Date]','esriGeometryPolygon','toString','esriGeometryPoint'];a96_0x11a5=function(){return _0xac9819;};return a96_0x11a5();}export default class Task{constructor(_0x2514ab,_0x1206f2,_0x3d2821){var _0x48fbff=a96_0x3fb2;this[_0x48fbff(0xc2)]=_0x2514ab,this[_0x48fbff(0xbe)]=_0x1206f2||{},this['method']=!_0x3d2821?_0x48fbff(0xac):_0x3d2821;}['geojsonTypeToArcGIS'](_0x4706d3){var _0x2e02f2=a96_0x3fb2,_0x49df44;switch(_0x4706d3){case'Point':_0x49df44=_0x2e02f2(0xba);break;case _0x2e02f2(0xae):_0x49df44=_0x2e02f2(0xa5);break;case'LineString':_0x49df44=_0x2e02f2(0xc3);break;case _0x2e02f2(0xc0):_0x49df44='esriGeometryPolyline';break;case _0x2e02f2(0xad):_0x49df44='esriGeometryPolygon';break;case _0x2e02f2(0xbf):_0x49df44=_0x2e02f2(0xb8);break;}return _0x49df44;}[a96_0x1c316a(0xa4)](_0x34ecf0){var _0x3eb7c2=a96_0x1c316a;return/^(?!.*utility\.arcgis\.com).*\.arcgis\.com.*FeatureServer/i[_0x3eb7c2(0xc4)](_0x34ecf0);}[a96_0x1c316a(0xc6)](_0x10f782){var _0x5b7df8=a96_0x1c316a,_0x30ace8='';_0x10f782['f']=_0x10f782['f']||_0x5b7df8(0x9f);for(var _0x36a384 in _0x10f782){if(Object[_0x5b7df8(0xa0)][_0x5b7df8(0xbc)][_0x5b7df8(0xa1)](_0x10f782,_0x36a384)){var _0x507b42=_0x10f782[_0x36a384],_0x134f06=Object['prototype'][_0x5b7df8(0xb9)][_0x5b7df8(0xa1)](_0x507b42),_0x3b4478;_0x30ace8[_0x5b7df8(0xb5)]&&(_0x30ace8+='&');if(_0x134f06===_0x5b7df8(0xb4))_0x3b4478=Object[_0x5b7df8(0xa0)]['toString'][_0x5b7df8(0xa1)](_0x507b42[0x0])===_0x5b7df8(0xa6)?JSON['stringify'](_0x507b42):_0x507b42['join'](',');else{if(_0x134f06===_0x5b7df8(0xa6))_0x3b4478=JSON[_0x5b7df8(0xaa)](_0x507b42);else _0x134f06===_0x5b7df8(0xb7)?_0x3b4478=_0x507b42['valueOf']():_0x3b4478=_0x507b42;}_0x30ace8+=encodeURIComponent(_0x36a384)+'='+encodeURIComponent(_0x3b4478);}}return _0x30ace8;}[a96_0x1c316a(0xbb)](_0x4007e2){var _0x1ed349=a96_0x1c316a;return this[_0x1ed349(0xbe)]['returnUnformattedValues']=!_0x4007e2,this;}async[a96_0x1c316a(0xb2)](){var _0x1a8f8b=a96_0x1c316a,_0x49feb8=this[_0x1a8f8b(0xc6)](this[_0x1a8f8b(0xbe)]);const _0x2d49ab=this[_0x1a8f8b(0xc2)][_0x1a8f8b(0xab)]('?')>-0x1?this[_0x1a8f8b(0xc2)]+'&'+_0x49feb8:this['url']+'?'+_0x49feb8;if(this[_0x1a8f8b(0xb0)]==='GET')return a96_0xfd3414['get'](_0x2d49ab);else{if(this[_0x1a8f8b(0xb0)]==='JSONP')return jsonp(_0x2d49ab);else{const _0x3aac85=stringify(this[_0x1a8f8b(0xbe)]);return a96_0xfd3414[_0x1a8f8b(0xb1)](this['url'],_0x3aac85);}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98_0xa4d26e=a98_0x7f16;(function(_0x11aa19,_0x2259a3){const _0xc45320=a98_0x7f16,_0x350d81=_0x11aa19();while(!![]){try{const _0x5a0164=parseInt(_0xc45320(0x1d6))/0x1*(-parseInt(_0xc45320(0x1be))/0x2)+-parseInt(_0xc45320(0x1bb))/0x3*(parseInt(_0xc45320(0x1b7))/0x4)+parseInt(_0xc45320(0x1d3))/0x5+parseInt(_0xc45320(0x1b3))/0x6+-parseInt(_0xc45320(0x1b0))/0x7*(-parseInt(_0xc45320(0x1d0))/0x8)+-parseInt(_0xc45320(0x1d1))/0x9*(parseInt(_0xc45320(0x1c4))/0xa)+-parseInt(_0xc45320(0x1cb))/0xb*(parseInt(_0xc45320(0x1bc))/0xc);if(_0x5a0164===_0x2259a3)break;else _0x350d81['push'](_0x350d81['shift']());}catch(_0x32a256){_0x350d81['push'](_0x350d81['shift']());}}}(a98_0x1fa4,0x6573b));import{and,intersects}from'ol/format/filter';import a98_0x507641 from'../../format/CQL';function a98_0x7f16(_0x296af5,_0x361b8a){const _0x1fa409=a98_0x1fa4();return a98_0x7f16=function(_0x7f1648,_0x3bb8df){_0x7f1648=_0x7f1648-0x1af;let _0x456b68=_0x1fa409[_0x7f1648];return _0x456b68;},a98_0x7f16(_0x296af5,_0x361b8a);}import a98_0x1bedcc from'ol/format/WFS';import a98_0x5701b9 from'ol/format/GeoJSON';import a98_0x2026d9 from'ol/source/TileWMS';import{getGeometryCenter}from'../../GeometryUtil';function a98_0x1fa4(){const _0x9ff0a9=['2250530FYZMmA','getFeatureInfoUrl','url','515xpyOmT','application/json','map','geometry\x20is\x20required','error','113379JULtBo','features','geometryName','4753884DIpxWg','execute','geometry','readFeature','3684DeFXDO','tableName','stringify','executeRaster','825nDzqEU','12oOcESm','_geoserverQuery','958aQOVlj','anonymous','writeGetFeature','where','json','the_geom','9650knuczL','queryParameters','geometry\x20is\x20invalid','geoserver','srsName','srsName\x20is\x20required','getCoordinates','1902857TMGcwf','read','POST','serializeToString','then','56tvKhKZ','2493plLZcP','EPSG:4326'];a98_0x1fa4=function(){return _0x9ff0a9;};return a98_0x1fa4();}export default class QueryTask{constructor(_0x31afc9){const _0x33aaae=a98_0x7f16;this[_0x33aaae(0x1c5)]={},this[_0x33aaae(0x1d5)]=_0x31afc9;}async[a98_0xa4d26e(0x1ba)](_0x49ec45){const _0x3407b2=a98_0xa4d26e,_0x5a0b51=new a98_0x2026d9({'url':this[_0x3407b2(0x1d5)],'params':{'LAYERS':_0x49ec45[_0x3407b2(0x1b8)],'TILED':!![],'VERSION':'1.1.1'},'serverType':_0x3407b2(0x1c7),'crossOrigin':_0x3407b2(0x1bf)}),_0x430633=_0x49ec45['resolution']||0.001,_0x2efe97=_0x49ec45[_0x3407b2(0x1b5)];if(!_0x2efe97)throw new Error(_0x3407b2(0x1d9));let _0x310ae4=getGeometryCenter(_0x2efe97);if(!_0x310ae4)throw new Error(_0x3407b2(0x1c6));const _0x3e4d3b=_0x5a0b51[_0x3407b2(0x1d4)](_0x310ae4[_0x3407b2(0x1ca)](),_0x430633,_0x3407b2(0x1d2),{'INFO_FORMAT':_0x3407b2(0x1d7)}),_0x48aa7a=await fetch(_0x3e4d3b,{'method':_0x3407b2(0x1cd)}),_0x10f75b=await _0x48aa7a['json']();let _0x74d076=[];const _0x11944d=new a98_0x5701b9();return _0x74d076=_0x10f75b[_0x3407b2(0x1b1)][_0x3407b2(0x1d8)](_0x20957a=>{const _0x15a75b=_0x3407b2;return _0x11944d[_0x15a75b(0x1b6)](JSON[_0x15a75b(0x1b9)](_0x20957a));}),_0x74d076;}async[a98_0xa4d26e(0x1b4)](_0x36affe){const _0x2a587d=a98_0xa4d26e;this[_0x2a587d(0x1c5)]=_0x36affe||{};const _0x51272d=this[_0x2a587d(0x1c5)]['geometryName']||_0x2a587d(0x1c3);let _0x127f25=this['queryParameters'][_0x2a587d(0x1c1)],_0x329d61;_0x127f25&&(_0x329d61=new a98_0x507641()[_0x2a587d(0x1cc)](_0x127f25));let _0x4258a1=_0x329d61;if(this[_0x2a587d(0x1c5)][_0x2a587d(0x1b5)]){if(!this['queryParameters'][_0x2a587d(0x1c8)])throw new Error(_0x2a587d(0x1c9));const _0x2aea14=intersects(_0x51272d,this[_0x2a587d(0x1c5)][_0x2a587d(0x1b5)]);_0x4258a1=_0x329d61?and(_0x329d61,_0x2aea14):_0x2aea14;}let _0x484f43=new a98_0x1bedcc()['writeGetFeature']({'srsName':this[_0x2a587d(0x1c5)][_0x2a587d(0x1c8)],'featureNS':'','featurePrefix':'','featureTypes':[this[_0x2a587d(0x1c5)][_0x2a587d(0x1b8)]],'outputFormat':_0x2a587d(0x1d7),'geometryName':_0x51272d,'filter':_0x4258a1});const _0xaa6977=await fetch(this[_0x2a587d(0x1d5)],{'method':'POST','body':new XMLSerializer()[_0x2a587d(0x1ce)](_0x484f43)}),_0x35f34e=await _0xaa6977[_0x2a587d(0x1c2)]();let _0x18a172=[];const _0x1093c0=new a98_0x5701b9();return _0x18a172=_0x35f34e[_0x2a587d(0x1b1)]['map'](_0x413c15=>{const _0x2a2a63=_0x2a587d;return _0x1093c0['readFeature'](JSON[_0x2a2a63(0x1b9)](_0x413c15));}),_0x18a172;}[a98_0xa4d26e(0x1bd)](){const _0x2545c6=a98_0xa4d26e,_0x2765df=this[_0x2545c6(0x1c5)][_0x2545c6(0x1b2)]||_0x2545c6(0x1c3);let _0x28f874=this['queryParameters'][_0x2545c6(0x1c1)],_0x12f5ba;_0x28f874&&(_0x12f5ba=new a98_0x507641()[_0x2545c6(0x1cc)](_0x28f874));let _0x173751=_0x12f5ba;if(this[_0x2545c6(0x1c5)][_0x2545c6(0x1b5)]){const _0x6ecb0e=intersects(_0x2765df,this[_0x2545c6(0x1c5)]['geometry']);_0x173751=_0x12f5ba?and(_0x12f5ba,_0x6ecb0e):_0x6ecb0e;}let _0x29d170=new a98_0x1bedcc()[_0x2545c6(0x1c0)]({'srsName':this[_0x2545c6(0x1c5)][_0x2545c6(0x1c8)],'featureNS':'','featurePrefix':'','featureTypes':[this[_0x2545c6(0x1c5)]['tableName']],'outputFormat':_0x2545c6(0x1d7),'geometryName':_0x2765df,'filter':_0x173751});return new Promise(_0x2a281b=>{const _0x959acd=_0x2545c6;fetch(this[_0x959acd(0x1d5)],{'method':'POST','body':new XMLSerializer()[_0x959acd(0x1ce)](_0x29d170)})[_0x959acd(0x1cf)](_0x20e43c=>{return _0x20e43c['json']();})[_0x959acd(0x1cf)](_0x4cbc90=>{const _0x229e7b=_0x959acd;let _0x20316c=[];const _0xe1d96f=new a98_0x5701b9();_0x20316c=_0x4cbc90['features'][_0x229e7b(0x1d8)](_0x5af9d9=>{const _0x4ed078=_0x229e7b;return _0xe1d96f[_0x4ed078(0x1b6)](JSON['stringify'](_0x5af9d9));}),_0x2a281b(_0x20316c);})['catch'](_0x311f64=>{const _0x2f9bc1=_0x959acd;_0x2a281b([]),console[_0x2f9bc1(0x1af)](_0x311f64);});});}}
|
package/utils/tasks/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a99_0x5b1f(_0x49f18a,_0x16b638){const _0x419678=a99_0x4196();return a99_0x5b1f=function(_0x5b1fec,_0x3f6411){_0x5b1fec=_0x5b1fec-0xc8;let _0xbcb9de=_0x419678[_0x5b1fec];return _0xbcb9de;},a99_0x5b1f(_0x49f18a,_0x16b638);}(function(_0x189b13,_0x357f2b){const _0x200396=a99_0x5b1f,_0x96d8fb=_0x189b13();while(!![]){try{const _0x5cd2a=parseInt(_0x200396(0xc9))/0x1+parseInt(_0x200396(0xca))/0x2+-parseInt(_0x200396(0xd0))/0x3+parseInt(_0x200396(0xd4))/0x4*(-parseInt(_0x200396(0xd7))/0x5)+parseInt(_0x200396(0xd9))/0x6+-parseInt(_0x200396(0xcd))/0x7*(parseInt(_0x200396(0xcf))/0x8)+parseInt(_0x200396(0xcb))/0x9;if(_0x5cd2a===_0x357f2b)break;else _0x96d8fb['push'](_0x96d8fb['shift']());}catch(_0x67eb53){_0x96d8fb['push'](_0x96d8fb['shift']());}}}(a99_0x4196,0x368dc));import{appendPath}from'../UrlUtil';import a99_0x5d2287 from'./esri/Query';import a99_0x41d20e from'./geoserver/QueryTask';import{getWFSLayerCapabilities}from'../../capabilities';function a99_0x4196(){const _0x54d2c8=['gwc/service/wmts','layerFields','name','339044ljkayk','execute','geoserver-wfs','25XAwhng','run','1120302NQBsBR','fieldType','wms','109401fhHicI','254852RHKauV','5921109fXbEOB','geoserver-wmts','11823dSGsAF','find','808guROhU','790797AoDyCL'];a99_0x4196=function(){return _0x54d2c8;};return a99_0x4196();}export async function selectFeaturesByGeo(_0x1b07f6,_0x131f22,_0x1792d5,_0x3a68dc,_0x2c6848,_0x42dfc5,_0x53eb91){const _0x2f6097=a99_0x5b1f;if(!_0x1792d5||!_0x3a68dc||!_0x2c6848||!_0x2c6848)return[];let _0x369af9=[];try{if(_0x2c6848=='arcgis-dynamic'||_0x2c6848=='arcgis-feature'){const _0x57ed1a=appendPath(_0x1792d5,_0x3a68dc),_0x446295=new a99_0x5d2287(_0x57ed1a,{'outSR':_0x131f22,'where':_0x42dfc5});_0x446295['intersects'](_0x1b07f6,_0x131f22),_0x369af9=await _0x446295[_0x2f6097(0xd8)]();}else{if(_0x2c6848==_0x2f6097(0xd6)||_0x2c6848=='geoserver-wms'){const _0x5441f5=new a99_0x41d20e(_0x1792d5),_0x52cffd=await getWFSLayerCapabilities(_0x1792d5,_0x3a68dc);if(_0x52cffd&&_0x52cffd[_0x2f6097(0xd2)]){const _0x3924d6=_0x52cffd[_0x2f6097(0xd2)][_0x2f6097(0xce)](_0x418bd1=>_0x418bd1[_0x2f6097(0xda)]==0x6);_0x369af9=await _0x5441f5[_0x2f6097(0xd5)]({'geometry':_0x1b07f6,'tableName':_0x3a68dc,'geometryName':_0x3924d6?_0x3924d6[_0x2f6097(0xd3)]:'','srsName':_0x131f22,'where':_0x42dfc5});}else _0x369af9=await _0x5441f5['executeRaster']({'geometry':_0x1b07f6,'tableName':_0x3a68dc,'geometryName':'','srsName':_0x131f22,'where':_0x42dfc5,'resolution':_0x53eb91});}else{if(_0x2c6848==_0x2f6097(0xcc)){_0x1792d5=_0x1792d5['replace'](_0x2f6097(0xd1),_0x2f6097(0xc8));const _0x97a5c0=new a99_0x41d20e(_0x1792d5),_0x3bb492=await getWFSLayerCapabilities(_0x1792d5,_0x3a68dc);if(_0x3bb492&&_0x3bb492[_0x2f6097(0xd2)]){let _0x2b27fa=_0x3bb492[_0x2f6097(0xd2)][_0x2f6097(0xce)](_0x5646a4=>_0x5646a4[_0x2f6097(0xda)]==0x6);_0x369af9=await _0x97a5c0[_0x2f6097(0xd5)]({'geometry':_0x1b07f6,'tableName':_0x3a68dc,'geometryName':_0x2b27fa?_0x2b27fa[_0x2f6097(0xd3)]:'','srsName':_0x131f22,'where':_0x42dfc5});}else _0x369af9=await _0x97a5c0['executeRaster']({'geometry':_0x1b07f6,'tableName':_0x3a68dc,'geometryName':'','srsName':_0x131f22,'where':_0x42dfc5,'resolution':_0x53eb91});}}}}catch(_0x44d3b8){}return _0x369af9;}
|