ym-gis-2d 1.0.39 → 1.0.41
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/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.d.ts +2 -0
- package/layers/LayerManager.d.ts.map +1 -1
- package/layers/LayerManager.js +1 -1
- package/layers/LayerManager.js.map +1 -1
- package/layers/MapTileLayer.d.ts +17 -0
- package/layers/MapTileLayer.d.ts.map +1 -0
- package/layers/MapTileLayer.js +1 -0
- package/layers/MapTileLayer.js.map +1 -0
- package/layers/TDTLayer.js +1 -1
- package/mapView/Map.d.ts +5 -0
- package/mapView/Map.d.ts.map +1 -1
- package/mapView/Map.js +1 -1
- package/mapView/Map.js.map +1 -1
- package/mapView/View.js +1 -1
- package/package.json +1 -1
- package/plot/Plot.js +1 -1
- package/plot/geometry/point/Point.js +1 -1
- package/plot/geometry/polygon/BasePolygon.js +1 -1
- package/plot/geometry/polygon/Circle.js +1 -1
- package/plot/geometry/polygon/Polygon.js +1 -1
- package/plot/geometry/polygon/RectAngle.js +1 -1
- package/plot/geometry/polyline/BaseLine.js +1 -1
- package/plot/geometry/polyline/Polyline.js +1 -1
- package/style/PointStyleFormat.js +1 -1
- package/style/PolygonStyleFormat.js +1 -1
- package/style/PolylineStyleFormat.js +1 -1
- package/style/StyleManager.js +1 -1
- package/style/common.js +1 -1
- package/utils/ArrayUtil.js +1 -1
- package/utils/AxiosUtil.js +1 -1
- package/utils/EsriUtil.js +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/LayerUtil.js +1 -1
- package/utils/RegisterProjUtil.js +1 -1
- package/utils/ResolutionUtil.js +1 -1
- package/utils/StringUtil.js +1 -1
- package/utils/StyleUtil.js +1 -1
- package/utils/UrlUtil.js +1 -1
- package/utils/XmlUtil.js +1 -1
- package/utils/format/CQL.js +1 -1
- package/utils/format/IsMatchCql.js +1 -1
- package/utils/plug/canvas/ImageCache.js +1 -1
- package/utils/plug/canvas/PinBuilder.js +1 -1
- package/utils/plug/canvas/PinIcon.js +1 -1
- package/utils/plug/canvas/writeTextToCanvas.js +1 -1
- package/utils/tasks/esri/Identify.js +1 -1
- package/utils/tasks/esri/Query.js +1 -1
- package/utils/tasks/esri/Task.js +1 -1
- package/utils/tasks/geoserver/QueryTask.js +1 -1
- package/utils/tasks/index.js +1 -1
- package/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a84_0x42c2(){const _0x22f4d9=['Not','push','2395608ypOmQp','PropertyIsGreaterThan','idMap','length','And','tagName_','PropertyIsLessThanOrEqualTo','upperBoundary','915975ogCYIN','expression','3189483ULUKZn','PropertyIsNotEqualTo','32GeFVwa','property','PropertyIsGreaterThanOrEqualTo','read','590996MMhjtc','PropertyIsBetween','PropertyIsLessThan','2159265GxJRrp','54ypkAll','conditions','condition','PropertyIsLike','propertyName','523017luAMwG','PropertyIsEqualTo','template','243638VXxnGD'];a84_0x42c2=function(){return _0x22f4d9;};return a84_0x42c2();}function a84_0x1b51(_0x56227f,_0x472228){const _0x42c2a5=a84_0x42c2();return a84_0x1b51=function(_0x1b519c,_0x432324){_0x1b519c=_0x1b519c-0x1e8;let _0x183a30=_0x42c2a5[_0x1b519c];return _0x183a30;},a84_0x1b51(_0x56227f,_0x472228);}(function(_0xce5338,_0x1a463b){const _0x230118=a84_0x1b51,_0x18514d=_0xce5338();while(!![]){try{const _0x35b084=-parseInt(_0x230118(0x1f4))/0x1+-parseInt(_0x230118(0x1f7))/0x2+parseInt(_0x230118(0x202))/0x3+parseInt(_0x230118(0x1fa))/0x4+-parseInt(_0x230118(0x1ee))/0x5+-parseInt(_0x230118(0x1ef))/0x6*(parseInt(_0x230118(0x1eb))/0x7)+parseInt(_0x230118(0x206))/0x8*(parseInt(_0x230118(0x204))/0x9);if(_0x35b084===_0x1a463b)break;else _0x18514d['push'](_0x18514d['shift']());}catch(_0x45662d){_0x18514d['push'](_0x18514d['shift']());}}}(a84_0x42c2,0x76772));import a84_0x4ab869 from'./CQL';export function isMatchCql(_0x36f0dc,_0x5a7b65){const _0x4664d1=a84_0x1b51;let _0x5a2e34=new a84_0x4ab869()[_0x4664d1(0x1ea)](_0x5a7b65);return isMatchFilter(_0x36f0dc,_0x5a2e34);}export function isMatchFilter(_0x5d624c,_0x5a6f15){const _0x12b35b=a84_0x1b51;switch(_0x5a6f15[_0x12b35b(0x1ff)]){case _0x12b35b(0x1f8):return!isMatchFilter(_0x5d624c,_0x5a6f15[_0x12b35b(0x1f1)]);case _0x12b35b(0x1fe):{let _0x4008f5=!![];for(let _0x48e19d=0x0;_0x48e19d<_0x5a6f15[_0x12b35b(0x1f0)]['length'];_0x48e19d++){_0x4008f5=_0x4008f5&&isMatchFilter(_0x5d624c,_0x5a6f15[_0x12b35b(0x1f0)][_0x48e19d]);}return _0x4008f5;}case'Or':{let _0x3011d8=![];for(let _0x4111bb=0x0;_0x4111bb<_0x5a6f15[_0x12b35b(0x1f0)]['length'];_0x4111bb++){_0x3011d8=_0x3011d8||isMatchFilter(_0x5d624c,_0x5a6f15[_0x12b35b(0x1f0)][_0x4111bb]);}return _0x3011d8;}case _0x12b35b(0x1ec):return _0x5d624c[_0x5a6f15['property']]>_0x5a6f15['lowerBoundary']&&_0x5d624c[_0x5a6f15[_0x12b35b(0x1e8)]]<_0x5a6f15[_0x12b35b(0x201)];case _0x12b35b(0x1f5):return _0x5d624c[_0x5a6f15[_0x12b35b(0x1f3)]]===_0x5a6f15['expression'];case _0x12b35b(0x205):return _0x5d624c[_0x5a6f15[_0x12b35b(0x1f3)]]!==_0x5a6f15[_0x12b35b(0x203)];case'PropertyIsLessThan':return _0x5d624c[_0x5a6f15[_0x12b35b(0x1f3)]]<_0x5a6f15[_0x12b35b(0x203)];case'PropertyIsLessThanOrEqualTo':return _0x5d624c[_0x5a6f15[_0x12b35b(0x1f3)]]<=_0x5a6f15[_0x12b35b(0x203)];case _0x12b35b(0x1fb):return _0x5d624c[_0x5a6f15[_0x12b35b(0x1f3)]]>_0x5a6f15['expression'];case _0x12b35b(0x1e9):return _0x5d624c[_0x5a6f15[_0x12b35b(0x1f3)]]>=_0x5a6f15[_0x12b35b(0x203)];case _0x12b35b(0x1f2):return _0x5d624c[_0x5a6f15[_0x12b35b(0x1f3)]]['indexOf'](_0x5a6f15['expression'])>-0x1;case'PropertyIsNull':{return!_0x5d624c[_0x5a6f15[_0x12b35b(0x1f3)]];}default:return![];}}export function isEqualFilter(_0x12a8df,_0x37fa0c){const _0x102adf=a84_0x1b51;switch(_0x12a8df[_0x102adf(0x1ff)]){case _0x102adf(0x1f8):return _0x12a8df['tagName_']===_0x37fa0c[_0x102adf(0x1ff)]&&isEqualFilter(_0x12a8df[_0x102adf(0x1f1)],_0x37fa0c[_0x102adf(0x1f1)]);case'Or':case _0x102adf(0x1fe):{let _0x3f3878=_0x12a8df[_0x102adf(0x1ff)]===_0x37fa0c[_0x102adf(0x1ff)]&&_0x12a8df['conditions'][_0x102adf(0x1fd)]===_0x37fa0c[_0x102adf(0x1f0)]['length'];for(let _0x4bdbae=0x0;_0x4bdbae<_0x12a8df[_0x102adf(0x1f0)][_0x102adf(0x1fd)];_0x4bdbae++){_0x3f3878=_0x3f3878&&isEqualFilter(_0x12a8df[_0x102adf(0x1f0)][_0x4bdbae],_0x37fa0c[_0x102adf(0x1f0)][_0x4bdbae]);}return _0x3f3878;}case _0x102adf(0x1ec):return _0x12a8df[_0x102adf(0x1ff)]===_0x37fa0c[_0x102adf(0x1ff)]&&_0x12a8df[_0x102adf(0x1e8)]===_0x37fa0c[_0x102adf(0x1e8)];case _0x102adf(0x1f5):case _0x102adf(0x205):case _0x102adf(0x1ed):case _0x102adf(0x200):case _0x102adf(0x1fb):case _0x102adf(0x1e9):case _0x102adf(0x1f2):case'PropertyIsNull':return _0x12a8df[_0x102adf(0x1ff)]===_0x37fa0c[_0x102adf(0x1ff)]&&_0x12a8df['propertyName']===_0x37fa0c[_0x102adf(0x1f3)];default:return![];}}export function indexOfFilter(_0x377143,_0x4b46e8){const _0xbb499a=a84_0x1b51;let _0x4e5ba9=-0x1;if((_0x377143===null||_0x377143===void 0x0?void 0x0:_0x377143[_0xbb499a(0x1fd)])>0x0)for(let _0x49db56 in _0x377143){if(isEqualFilter(_0x377143[_0x49db56][_0xbb499a(0x1f6)],_0x4b46e8))return _0x49db56;}return _0x4e5ba9;}export function getIndexByTemplate(_0x330d87,_0x2e0109){const _0x10ebf4=a84_0x1b51;let _0x11abc3=_0x2e0109[_0x10ebf4(0x1f6)];if(_0x2e0109['idMapLength']>0x0){let _0x21fa16=getKeyByTemplate(_0x330d87,_0x11abc3);if(_0x21fa16 instanceof Array)for(let _0xf42c4a in _0x21fa16){let _0x319ac2=_0x2e0109[_0x10ebf4(0x1fc)][_0x21fa16[_0xf42c4a]+'_'+_0xf42c4a];if(_0x319ac2)return _0x319ac2;}else return _0x2e0109['idMap'][_0x21fa16];}return null;}export function getKeyByTemplate(_0x1f981b,_0x53c288){const _0x22df09=a84_0x1b51;switch(_0x53c288['tagName_']){case _0x22df09(0x1f5):{return _0x1f981b[_0x53c288[_0x22df09(0x1f3)]];}case _0x22df09(0x1fe):{let _0x445fe3=[];for(let _0x235ee8=0x0;_0x235ee8<_0x53c288['conditions'][_0x22df09(0x1fd)];_0x235ee8++){let _0x11b9bc=getKeyByTemplate(_0x1f981b,_0x53c288[_0x22df09(0x1f0)][_0x235ee8]);_0x11b9bc&&_0x445fe3[_0x22df09(0x1f9)](_0x11b9bc);}return _0x445fe3['join'](',');}case'Or':{let _0x26a27d=[];for(let _0x14de1c=0x0;_0x14de1c<_0x53c288[_0x22df09(0x1f0)][_0x22df09(0x1fd)];_0x14de1c++){let _0x58643e=getKeyByTemplate(_0x1f981b,_0x53c288[_0x22df09(0x1f0)][_0x14de1c]);_0x58643e&&_0x26a27d['push'](_0x58643e);}return _0x26a27d;}default:return null;}}export function createKeyFromFilter(_0x432b98){const _0x237bea=a84_0x1b51;switch(_0x432b98[_0x237bea(0x1ff)]){case _0x237bea(0x1f5):return _0x432b98[_0x237bea(0x203)];case _0x237bea(0x1fe):{let _0xf1847=[];for(let _0x3f7edd=0x0;_0x3f7edd<_0x432b98['conditions'][_0x237bea(0x1fd)];_0x3f7edd++){let _0x411c0e=createKeyFromFilter(_0x432b98[_0x237bea(0x1f0)][_0x3f7edd]);if(_0x411c0e)_0xf1847['push'](_0x411c0e);else return null;}return _0xf1847['join'](',');}case'Or':{let _0x17e022=[];for(let _0x207779=0x0;_0x207779<_0x432b98[_0x237bea(0x1f0)][_0x237bea(0x1fd)];_0x207779++){let _0xcbbf4e=createKeyFromFilter(_0x432b98[_0x237bea(0x1f0)][_0x207779]);_0xcbbf4e&&_0x17e022[_0x237bea(0x1f9)](_0xcbbf4e);}return _0x17e022;}default:return null;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0xb8551d=a87_0x1927;(function(_0x29ff9d,_0x240738){const _0x7060d6=a87_0x1927,_0x130a89=_0x29ff9d();while(!![]){try{const _0x5784df=-parseInt(_0x7060d6(0x83))/0x1+parseInt(_0x7060d6(0x7c))/0x2+-parseInt(_0x7060d6(0x7a))/0x3+parseInt(_0x7060d6(0x78))/0x4+parseInt(_0x7060d6(0x87))/0x5*(parseInt(_0x7060d6(0x82))/0x6)+-parseInt(_0x7060d6(0x85))/0x7*(parseInt(_0x7060d6(0x81))/0x8)+parseInt(_0x7060d6(0x7d))/0x9*(parseInt(_0x7060d6(0x86))/0xa);if(_0x5784df===_0x240738)break;else _0x130a89['push'](_0x130a89['shift']());}catch(_0x245370){_0x130a89['push'](_0x130a89['shift']());}}}(a87_0x325c,0x8a500));import{asString}from'ol/color';class ImageCache{constructor(){const _0x38461f=a87_0x1927;this[_0x38461f(0x7e)]={},this[_0x38461f(0x80)]=0x0;}[a87_0xb8551d(0x77)](){const _0x60817e=a87_0xb8551d;this[_0x60817e(0x7e)]={},this['cacheSize_']=0x0;}[a87_0xb8551d(0x75)](_0x4c62c4){const _0x2eaecb=a87_0xb8551d,_0x49b8db=getKey(_0x4c62c4[_0x2eaecb(0x84)],_0x4c62c4['markerSize'],_0x4c62c4[_0x2eaecb(0x74)],_0x4c62c4[_0x2eaecb(0x79)]);return _0x49b8db in this[_0x2eaecb(0x7e)]?this[_0x2eaecb(0x7e)][_0x49b8db]:null;}[a87_0xb8551d(0x76)](_0x7a4922,_0x12783f){const _0x1a592f=a87_0xb8551d,_0x53753b=getKey(_0x7a4922[_0x1a592f(0x84)],_0x7a4922[_0x1a592f(0x7f)],_0x7a4922[_0x1a592f(0x74)],_0x7a4922[_0x1a592f(0x79)]);this[_0x1a592f(0x7e)][_0x53753b]=_0x12783f,++this['cacheSize_'];}}function a87_0x1927(_0x7c8133,_0x4481b8){const _0x325c77=a87_0x325c();return a87_0x1927=function(_0x192782,_0xe4df54){_0x192782=_0x192782-0x74;let _0x1d4fd4=_0x325c77[_0x192782];return _0x1d4fd4;},a87_0x1927(_0x7c8133,_0x4481b8);}function a87_0x325c(){const _0xc50a9b=['get','set','clear','182480MJhdEL','image','952263wySSri','null','358186xvbTRJ','9XJHoFW','cache_','markerSize','cacheSize_','88WRxzya','1698gDMIFu','25253cyBAPi','markerLabel','432642dkwABO','11192770fndzzu','4330DqQqgh','markerColor'];a87_0x325c=function(){return _0xc50a9b;};return a87_0x325c();}function getKey(_0x3188e6,_0x1fddfb,_0x1a20c2,_0x539c57){const _0x1ea7fc=a87_0xb8551d,_0x20379e=_0x1a20c2?asString(_0x1a20c2):_0x1ea7fc(0x7b);return _0x3188e6+':'+_0x539c57+':'+_0x20379e+':'+_0x1fddfb;}export default ImageCache;export const shared=new ImageCache();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x5c396d=a88_0x4bcb;function a88_0x526b(){const _0x59babc=['192839uYEncr','restore','canvas','listenImageChange','fillStyle','64hQFfjE','#000000','stroke','222462TubDHV','height','getImage','color\x20is\x20required','fromUrl','width','save','strokeStyle','2dhDEor','6zYhQcB','round','ERROR','toDataURL','drawImage','LOADED','scale','fromMakiIconId','getContext','1703650ZGVIbi','url\x20is\x20required','#FFFFFF','lineTo','fromText','globalCompositeOperation','getImageState','480738JLEbQe','lighten','stringify','closePath','bezierCurveTo','destination-over','moveTo','fill','text\x20is\x20required','bold\x20','367156XFHTGx','hexa','fromColor','px\x20sans-serif','248703IchUzL','_cache','size\x20is\x20required','createElement','id\x20is\x20required','39625CZelvN'];a88_0x526b=function(){return _0x59babc;};return a88_0x526b();}(function(_0x1866ce,_0x5bdfb1){const _0x1ca088=a88_0x4bcb,_0x1b411a=_0x1866ce();while(!![]){try{const _0x466089=-parseInt(_0x1ca088(0x11f))/0x1*(parseInt(_0x1ca088(0x12f))/0x2)+-parseInt(_0x1ca088(0x130))/0x3*(-parseInt(_0x1ca088(0x115))/0x4)+parseInt(_0x1ca088(0x11e))/0x5+parseInt(_0x1ca088(0x10b))/0x6+parseInt(_0x1ca088(0x119))/0x7+-parseInt(_0x1ca088(0x124))/0x8*(-parseInt(_0x1ca088(0x127))/0x9)+-parseInt(_0x1ca088(0x139))/0xa;if(_0x466089===_0x5bdfb1)break;else _0x1b411a['push'](_0x1b411a['shift']());}catch(_0x2ae85d){_0x1b411a['push'](_0x1b411a['shift']());}}}(a88_0x526b,0x2297f));import a88_0x392f1f from'color';import a88_0x47201b from'./writeTextToCanvas';function a88_0x4bcb(_0x35ac0d,_0x1d1c4a){const _0x526bcb=a88_0x526b();return a88_0x4bcb=function(_0x4bcbad,_0x5a6dd8){_0x4bcbad=_0x4bcbad-0x108;let _0x285dc6=_0x526bcb[_0x4bcbad];return _0x285dc6;},a88_0x4bcb(_0x35ac0d,_0x1d1c4a);}import{Icon}from'ol/style';import a88_0x3aae6e from'ol/ImageState';import{parseImage}from'../../UrlUtil.js';class PinBuilder{constructor(){const _0x561784=a88_0x4bcb;this[_0x561784(0x11a)]={};}[a88_0x5c396d(0x117)](_0x78297c,_0x10002b){if(!_0x78297c)throw new Error('color\x20is\x20required');if(!_0x10002b)throw new Error('size\x20is\x20required');return createPin('','',_0x78297c,_0x10002b,this['_cache']);}[a88_0x5c396d(0x12b)](_0xfd7710,_0x394f66,_0x86fe6a){const _0x48c191=a88_0x5c396d;if(!_0xfd7710)throw new Error(_0x48c191(0x13a));if(!_0x394f66)throw new Error(_0x48c191(0x12a));if(!_0x86fe6a)throw new Error(_0x48c191(0x11b));return createPin(_0xfd7710,'',_0x394f66,_0x86fe6a,this[_0x48c191(0x11a)]);}[a88_0x5c396d(0x137)](_0x2262ac,_0x25e932,_0x19b8f9){const _0x3709ed=a88_0x5c396d;if(!_0x2262ac)throw new Error(_0x3709ed(0x11d));if(!_0x25e932)throw new Error(_0x3709ed(0x12a));if(!_0x19b8f9)throw new Error(_0x3709ed(0x11b));return createPin(parseImage(_0x2262ac),'',_0x25e932,_0x19b8f9,this[_0x3709ed(0x11a)]);}[a88_0x5c396d(0x108)](_0x37179c,_0x191925,_0x3c12cd){const _0x1a6b6e=a88_0x5c396d;if(!_0x37179c)throw new Error(_0x1a6b6e(0x113));if(!_0x191925)throw new Error(_0x1a6b6e(0x12a));if(!_0x3c12cd)throw new Error(_0x1a6b6e(0x11b));return createPin('',_0x37179c,_0x191925,_0x3c12cd,this[_0x1a6b6e(0x11a)]);}}function drawPin(_0x448bd,_0x21c36d,_0x147caa){const _0x503f1d=a88_0x5c396d;_0x448bd[_0x503f1d(0x12d)](),_0x448bd[_0x503f1d(0x136)](_0x147caa/0x18,_0x147caa/0x18),_0x448bd['fillStyle']=_0x21c36d,_0x448bd[_0x503f1d(0x12e)]=a88_0x392f1f(_0x21c36d)[_0x503f1d(0x10c)](0.6)[_0x503f1d(0x116)](),_0x448bd['lineWidth']=0.846,_0x448bd['beginPath'](),_0x448bd[_0x503f1d(0x111)](6.72,0.422),_0x448bd[_0x503f1d(0x13c)](17.28,0.422),_0x448bd[_0x503f1d(0x10f)](18.553,0.422,19.577,1.758,19.577,3.415),_0x448bd[_0x503f1d(0x13c)](19.577,10.973),_0x448bd[_0x503f1d(0x10f)](19.577,12.63,18.553,13.966,17.282,13.966),_0x448bd[_0x503f1d(0x13c)](14.386,14.008),_0x448bd[_0x503f1d(0x13c)](11.826,23.578),_0x448bd['lineTo'](9.614,14.008),_0x448bd[_0x503f1d(0x13c)](6.719,13.965),_0x448bd['bezierCurveTo'](5.446,13.983,4.422,12.629,4.422,10.972),_0x448bd[_0x503f1d(0x13c)](4.422,3.416),_0x448bd[_0x503f1d(0x10f)](4.423,1.76,5.447,0.423,6.718,0.423),_0x448bd[_0x503f1d(0x10e)](),_0x448bd[_0x503f1d(0x112)](),_0x448bd[_0x503f1d(0x126)](),_0x448bd[_0x503f1d(0x120)]();}function drawIcon(_0x2ec50a,_0x5bb397,_0x434d75){const _0x24b9b7=a88_0x5c396d,_0x15abcc=_0x434d75/2.5;let _0x555763=_0x15abcc,_0x375e7a=_0x15abcc;if(_0x5bb397[_0x24b9b7(0x12c)]>_0x5bb397[_0x24b9b7(0x128)])_0x375e7a=_0x15abcc*(_0x5bb397['height']/_0x5bb397[_0x24b9b7(0x12c)]);else _0x5bb397[_0x24b9b7(0x12c)]<_0x5bb397['height']&&(_0x555763=_0x15abcc*(_0x5bb397[_0x24b9b7(0x12c)]/_0x5bb397[_0x24b9b7(0x128)]));const _0x49607b=Math['round']((_0x434d75-_0x555763)/0x2),_0x3fc658=Math[_0x24b9b7(0x131)](0x7/0x18*_0x434d75-_0x375e7a/0x2);_0x2ec50a[_0x24b9b7(0x109)]='destination-out',_0x2ec50a[_0x24b9b7(0x134)](_0x5bb397,_0x49607b-0x1,_0x3fc658,_0x555763,_0x375e7a),_0x2ec50a[_0x24b9b7(0x134)](_0x5bb397,_0x49607b,_0x3fc658-0x1,_0x555763,_0x375e7a),_0x2ec50a[_0x24b9b7(0x134)](_0x5bb397,_0x49607b+0x1,_0x3fc658,_0x555763,_0x375e7a),_0x2ec50a['drawImage'](_0x5bb397,_0x49607b,_0x3fc658+0x1,_0x555763,_0x375e7a),_0x2ec50a[_0x24b9b7(0x109)]=_0x24b9b7(0x110),_0x2ec50a['fillStyle']=_0x24b9b7(0x125),_0x2ec50a['fillRect'](_0x49607b-0x1,_0x3fc658-0x1,_0x555763+0x2,_0x375e7a+0x2),_0x2ec50a[_0x24b9b7(0x109)]='destination-out',_0x2ec50a[_0x24b9b7(0x134)](_0x5bb397,_0x49607b,_0x3fc658,_0x555763,_0x375e7a),_0x2ec50a[_0x24b9b7(0x109)]='destination-over',_0x2ec50a[_0x24b9b7(0x123)]=_0x24b9b7(0x13b),_0x2ec50a['fillRect'](_0x49607b-0x1,_0x3fc658-0x2,_0x555763+0x2,_0x375e7a+0x2);}const stringifyScratch=new Array(0x4);function createPin(_0x2dfef0,_0x551945,_0xe9a379,_0x1c72a0,_0x323bdd){const _0x2bae1a=a88_0x5c396d;stringifyScratch[0x0]=_0x2dfef0,stringifyScratch[0x1]=_0x551945,stringifyScratch[0x2]=_0xe9a379,stringifyScratch[0x3]=_0x1c72a0;const _0x202f2e=JSON[_0x2bae1a(0x10d)](stringifyScratch),_0x9e62f8=_0x323bdd[_0x202f2e];if(_0x9e62f8)return _0x9e62f8;const _0x388215=document[_0x2bae1a(0x11c)](_0x2bae1a(0x121));_0x388215[_0x2bae1a(0x12c)]=_0x1c72a0,_0x388215[_0x2bae1a(0x128)]=_0x1c72a0;const _0x19df72=_0x388215[_0x2bae1a(0x138)]('2d');drawPin(_0x19df72,_0xe9a379,_0x1c72a0);if(_0x2dfef0)return new Promise(_0x446a89=>{const _0x1f1377=_0x2bae1a;let _0x12ba5a=new Icon({'src':_0x2dfef0}),_0x56fed8=_0x12ba5a['getImageState']();_0x56fed8===a88_0x3aae6e[_0x1f1377(0x135)]||_0x56fed8===a88_0x3aae6e[_0x1f1377(0x132)]?(drawIcon(_0x19df72,_0x12ba5a[_0x1f1377(0x129)](0x60),_0x1c72a0),_0x323bdd[_0x202f2e]=_0x388215[_0x1f1377(0x133)](),_0x446a89(_0x388215[_0x1f1377(0x133)]())):(_0x56fed8===a88_0x3aae6e['IDLE']&&_0x12ba5a['load'](),_0x12ba5a[_0x1f1377(0x122)](_0x41647e=>{const _0x14b1ce=_0x1f1377;_0x56fed8=_0x41647e['target'][_0x14b1ce(0x10a)](),(_0x56fed8===a88_0x3aae6e[_0x14b1ce(0x135)]||_0x56fed8===a88_0x3aae6e[_0x14b1ce(0x132)])&&(drawIcon(_0x19df72,_0x12ba5a[_0x14b1ce(0x129)](0x60),_0x1c72a0),_0x323bdd[_0x202f2e]=_0x388215[_0x14b1ce(0x133)](),_0x446a89(_0x388215['toDataURL']()));}));});else{if(_0x551945){const _0x535c1c=a88_0x47201b(_0x551945,{'font':_0x2bae1a(0x114)+_0x1c72a0+_0x2bae1a(0x118)});drawIcon(_0x19df72,_0x535c1c,_0x1c72a0);}}return _0x323bdd[_0x202f2e]=_0x388215[_0x2bae1a(0x133)](),_0x388215[_0x2bae1a(0x133)]();}export default PinBuilder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a89_0x2620(_0x14b109,_0x5eaa35){const _0x28c2ee=a89_0x28c2();return a89_0x2620=function(_0x262098,_0x27b65c){_0x262098=_0x262098-0x138;let _0x5d2c3d=_0x28c2ee[_0x262098];return _0x5d2c3d;},a89_0x2620(_0x14b109,_0x5eaa35);}const a89_0xa15910=a89_0x2620;function a89_0x28c2(){const _0x1f32c5=['IDLE','6579636EJBHqb','image','LOADED','_listener','loadIcon','resolve','set','options','markerLabel','8679016iwkXTH','fromText','493701mcvgpg','9yufTqn','target','error','get','then','ERROR','5460vwPtqH','1262334jvUGds','_icon','getImageState','1953504RGEuJx','listenImageChange','3652XNXJBN','fromUrl','warn','_imageState','markerColor','399506sTkxDe','dispatchEvent','load','getImage'];a89_0x28c2=function(){return _0x1f32c5;};return a89_0x28c2();}(function(_0x270905,_0x4528e1){const _0x303c32=a89_0x2620,_0x214479=_0x270905();while(!![]){try{const _0x90e1c1=-parseInt(_0x303c32(0x13c))/0x1+parseInt(_0x303c32(0x154))/0x2+-parseInt(_0x303c32(0x14c))/0x3+-parseInt(_0x303c32(0x159))/0x4*(-parseInt(_0x303c32(0x153))/0x5)+-parseInt(_0x303c32(0x157))/0x6+parseInt(_0x303c32(0x141))/0x7+parseInt(_0x303c32(0x14a))/0x8*(-parseInt(_0x303c32(0x14d))/0x9);if(_0x90e1c1===_0x4528e1)break;else _0x214479['push'](_0x214479['shift']());}catch(_0x15c551){_0x214479['push'](_0x214479['shift']());}}}(a89_0x28c2,0x90ea9));import a89_0x2bb0b8 from'./PinBuilder';import{Icon}from'ol/style';import a89_0x5d71aa from'ol/ImageState';import a89_0x2ace32 from'ol/events/Event';import{shared as a89_0x48e782}from'./ImageCache';export default class PinIcon{constructor(_0x51fdfc){const _0x54e388=a89_0x2620;this[_0x54e388(0x148)]=_0x51fdfc||{},this[_0x54e388(0x13a)]=a89_0x5d71aa[_0x54e388(0x140)],this[_0x54e388(0x155)]=a89_0x48e782[_0x54e388(0x150)](this['options']),this[_0x54e388(0x155)]&&(this[_0x54e388(0x13a)]=a89_0x5d71aa[_0x54e388(0x143)]);}[a89_0xa15910(0x13e)](){const _0x3db56e=a89_0xa15910;try{let _0x59beb7,_0xa72f45=new a89_0x2bb0b8();if(this['options'][_0x3db56e(0x149)])_0x59beb7=_0xa72f45[_0x3db56e(0x14b)](this[_0x3db56e(0x148)][_0x3db56e(0x149)],this[_0x3db56e(0x148)][_0x3db56e(0x13b)],this['options']['markerSize']||0x30);else this['options']['image']&&(_0x59beb7=_0xa72f45[_0x3db56e(0x138)](this[_0x3db56e(0x148)][_0x3db56e(0x142)],this[_0x3db56e(0x148)][_0x3db56e(0x13b)],this['options']['markerSize']||0x30));Promise[_0x3db56e(0x146)](_0x59beb7)[_0x3db56e(0x151)](_0x450af4=>{this['loadIcon'](_0x450af4);})['catch'](_0x3f83d6=>{const _0x44e471=_0x3db56e;console[_0x44e471(0x139)](_0x3f83d6),this[_0x44e471(0x13a)]=a89_0x5d71aa[_0x44e471(0x152)],this[_0x44e471(0x13d)]('error');});}catch(_0x393319){console[_0x3db56e(0x139)](_0x393319),this[_0x3db56e(0x13a)]=a89_0x5d71aa[_0x3db56e(0x152)],this[_0x3db56e(0x13d)](_0x3db56e(0x14f));}}[a89_0xa15910(0x145)](_0x2ed373){const _0x38cd0f=a89_0xa15910;this[_0x38cd0f(0x155)]=new Icon({'src':_0x2ed373}),a89_0x48e782[_0x38cd0f(0x147)](this[_0x38cd0f(0x148)],this[_0x38cd0f(0x155)]);let _0x5b8b7b=this[_0x38cd0f(0x155)][_0x38cd0f(0x156)]();_0x5b8b7b===a89_0x5d71aa[_0x38cd0f(0x143)]||_0x5b8b7b===a89_0x5d71aa[_0x38cd0f(0x152)]?(this[_0x38cd0f(0x13a)]=this['_icon'][_0x38cd0f(0x156)](),this[_0x38cd0f(0x13d)]('load')):(_0x5b8b7b===a89_0x5d71aa['IDLE']&&this['_icon'][_0x38cd0f(0x13e)](),this['_icon'][_0x38cd0f(0x158)](_0x5e37b3=>{const _0x3ab854=_0x38cd0f;_0x5b8b7b=_0x5e37b3['target'][_0x3ab854(0x156)](),(_0x5b8b7b===a89_0x5d71aa['LOADED']||_0x5b8b7b===a89_0x5d71aa[_0x3ab854(0x152)])&&(this[_0x3ab854(0x13a)]=this[_0x3ab854(0x155)][_0x3ab854(0x156)](),this[_0x3ab854(0x13d)](_0x3ab854(0x13e)));}));}[a89_0xa15910(0x156)](){const _0x11a30a=a89_0xa15910;return this[_0x11a30a(0x13a)];}[a89_0xa15910(0x13f)](){var _0x547e75;return(_0x547e75=this['_icon'])===null||_0x547e75===void 0x0?void 0x0:_0x547e75['getImage']();}[a89_0xa15910(0x158)](_0x2cb2f8){this['_listener']=_0x2cb2f8;}['dispatchEvent'](_0x3fad0d){const _0x1090a6=a89_0xa15910;if(this[_0x1090a6(0x144)]){let _0xf2a6c3=new a89_0x2ace32(_0x3fad0d);_0xf2a6c3[_0x1090a6(0x14e)]=this,this['_listener'](_0xf2a6c3);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe6be36,_0x5777cc){const _0x3ae47a=a90_0xf901,_0x4a4fb1=_0xe6be36();while(!![]){try{const _0x2b09f5=parseInt(_0x3ae47a(0x17e))/0x1+parseInt(_0x3ae47a(0x197))/0x2*(parseInt(_0x3ae47a(0x18b))/0x3)+-parseInt(_0x3ae47a(0x17c))/0x4+parseInt(_0x3ae47a(0x18e))/0x5+-parseInt(_0x3ae47a(0x179))/0x6*(parseInt(_0x3ae47a(0x18d))/0x7)+-parseInt(_0x3ae47a(0x186))/0x8*(-parseInt(_0x3ae47a(0x167))/0x9)+-parseInt(_0x3ae47a(0x195))/0xa*(-parseInt(_0x3ae47a(0x184))/0xb);if(_0x2b09f5===_0x5777cc)break;else _0x4a4fb1['push'](_0x4a4fb1['shift']());}catch(_0x53a382){_0x4a4fb1['push'](_0x4a4fb1['shift']());}}}(a90_0x5775,0xd0008));function measureText(_0x1bf3f9,_0x2ecabe,_0x18b154,_0x1b9889,_0x28e0ec){const _0x49782a=a90_0xf901,_0x2a547f=_0x1bf3f9[_0x49782a(0x16a)](_0x2ecabe),_0x2212ab=!/\S/[_0x49782a(0x16b)](_0x2ecabe);if(!_0x2212ab&&document['defaultView']){const _0x3626cd=document['defaultView'][_0x49782a(0x171)](_0x1bf3f9[_0x49782a(0x168)])[_0x49782a(0x193)]('font-size')['replace']('px',''),_0x4dccb7=document[_0x49782a(0x178)]('canvas'),_0x524245=0x64,_0x46d498=_0x2a547f['width']+_0x524245|0x0,_0x519c02=0x3*(_0x3626cd-0x0),_0x287131=_0x519c02/0x2;_0x4dccb7['width']=_0x46d498,_0x4dccb7['height']=_0x519c02;const _0x20436e=_0x4dccb7[_0x49782a(0x194)]('2d');if(!_0x20436e)return{};_0x20436e[_0x49782a(0x17a)]=_0x18b154,_0x20436e[_0x49782a(0x191)]=_0x49782a(0x187),_0x20436e[_0x49782a(0x162)](0x0,0x0,_0x4dccb7[_0x49782a(0x18c)]+0x1,_0x4dccb7[_0x49782a(0x177)]+0x1);_0x1b9889&&(_0x20436e[_0x49782a(0x165)]='black',_0x20436e[_0x49782a(0x188)]=_0x1bf3f9['lineWidth'],_0x20436e[_0x49782a(0x18a)](_0x2ecabe,_0x524245/0x2,_0x287131));_0x28e0ec&&(_0x20436e[_0x49782a(0x191)]=_0x49782a(0x164),_0x20436e['fillText'](_0x2ecabe,_0x524245/0x2,_0x287131));const _0xcf0950=_0x20436e[_0x49782a(0x16e)](0x0,0x0,_0x46d498,_0x519c02)[_0x49782a(0x192)],_0x2ac2d9=_0xcf0950[_0x49782a(0x169)],_0x7a8be2=_0x46d498*0x4;let _0xb74f6,_0x237a29,_0x219384=0x0,_0x263ae7=0x0;for(_0xb74f6=0x0;_0xb74f6<_0x2ac2d9;++_0xb74f6){if(_0xcf0950[_0xb74f6]!==0xff){_0x219384=_0xb74f6/_0x7a8be2|0x0;break;}}for(_0xb74f6=_0x2ac2d9-0x1;_0xb74f6>=0x0;--_0xb74f6){if(_0xcf0950[_0xb74f6]!==0xff){_0x263ae7=_0xb74f6/_0x7a8be2|0x0;break;}}let _0x8c150e=-0x1;for(_0xb74f6=0x0;_0xb74f6<_0x46d498&&_0x8c150e===-0x1;++_0xb74f6){for(_0x237a29=0x0;_0x237a29<_0x519c02;++_0x237a29){const _0x1b97eb=_0xb74f6*0x4+_0x237a29*_0x7a8be2;if(_0xcf0950[_0x1b97eb]!==0xff||_0xcf0950[_0x1b97eb+0x1]!==0xff||_0xcf0950[_0x1b97eb+0x2]!==0xff||_0xcf0950[_0x1b97eb+0x3]!==0xff){_0x8c150e=_0xb74f6;break;}}}return{'width':_0x2a547f[_0x49782a(0x18c)],'height':_0x263ae7-_0x219384,'ascent':_0x287131-_0x219384,'descent':_0x263ae7-_0x287131,'minx':_0x8c150e-_0x524245/0x2};}return{'width':_0x2a547f[_0x49782a(0x18c)],'height':0x0,'ascent':0x0,'descent':0x0,'minx':0x0};}let imageSmoothingEnabledName='';function a90_0x5775(){const _0x1f7867=['3VQRMbo','width','5852ooEcCO','4760735SkVVZq','strokeWidth','mozImageSmoothingEnabled','fillStyle','data','getPropertyValue','getContext','5423910wTqUzV','fill','344866xqqIzQ','minx','fillRect','strokeColor','black','strokeStyle','fillColor','7947BkWLFr','canvas','length','measureText','test','webkitImageSmoothingEnabled','msImageSmoothingEnabled','getImageData','lineJoin','imageSmoothingEnabled','getComputedStyle','stroke','visibility','#FFFFFF','10px\x20sans-serif','fillText','height','createElement','6246SwLIgV','font','style','3127732vUeLvM','removeChild','763925MnlBCh','ascent','body','dimensions','#00000000','round','11ARpnre','ceil','664GjhBYs','white','lineWidth','hidden','strokeText'];a90_0x5775=function(){return _0x1f7867;};return a90_0x5775();}function a90_0xf901(_0x4161d1,_0x3d29ea){const _0x5775b0=a90_0x5775();return a90_0xf901=function(_0xf90115,_0xb01a){_0xf90115=_0xf90115-0x162;let _0x19c04d=_0x5775b0[_0xf90115];return _0x19c04d;},a90_0xf901(_0x4161d1,_0x3d29ea);}function writeTextToCanvas(_0x19744c,_0x4cfd3c){const _0x4da4d8=a90_0xf901;if(!_0x19744c)throw new Error('text\x20is\x20required.');if(_0x19744c==='')return undefined;_0x4cfd3c=defaultValue(_0x4cfd3c,{});const _0x306517=defaultValue(_0x4cfd3c[_0x4da4d8(0x17a)],_0x4da4d8(0x175)),_0x55ab11=defaultValue(_0x4cfd3c[_0x4da4d8(0x172)],![]),_0x12050b=defaultValue(_0x4cfd3c[_0x4da4d8(0x196)],!![]),_0x152161=defaultValue(_0x4cfd3c[_0x4da4d8(0x18f)],0x1),_0x4a424e=defaultValue(_0x4cfd3c['backgroundColor'],_0x4da4d8(0x182)),_0x251e0c=defaultValue(_0x4cfd3c['padding'],0x0),_0x4194a6=_0x251e0c*0x2,_0x53fd48=document[_0x4da4d8(0x178)](_0x4da4d8(0x168));_0x53fd48[_0x4da4d8(0x18c)]=0x1,_0x53fd48[_0x4da4d8(0x177)]=0x1,_0x53fd48[_0x4da4d8(0x17b)][_0x4da4d8(0x17a)]=_0x306517;const _0x34343d=_0x53fd48['getContext']('2d');if(!imageSmoothingEnabledName&&_0x34343d){if(_0x34343d[_0x4da4d8(0x170)])imageSmoothingEnabledName='imageSmoothingEnabled';else{if(_0x34343d['mozImageSmoothingEnabled'])imageSmoothingEnabledName=_0x4da4d8(0x190);else{if(_0x34343d['webkitImageSmoothingEnabled'])imageSmoothingEnabledName=_0x4da4d8(0x16c);else _0x34343d[_0x4da4d8(0x16d)]&&(imageSmoothingEnabledName='msImageSmoothingEnabled');}}}_0x34343d[_0x4da4d8(0x17a)]=_0x306517,_0x34343d['lineJoin']='round',_0x34343d['lineWidth']=_0x152161,_0x34343d[imageSmoothingEnabledName]=![],_0x53fd48[_0x4da4d8(0x17b)][_0x4da4d8(0x173)]=_0x4da4d8(0x189),document[_0x4da4d8(0x180)]['appendChild'](_0x53fd48);const _0x35c75c=measureText(_0x34343d,_0x19744c,_0x306517,_0x55ab11,_0x12050b);if(!_0x35c75c)return;_0x53fd48[_0x4da4d8(0x181)]=_0x35c75c,document[_0x4da4d8(0x180)][_0x4da4d8(0x17d)](_0x53fd48),_0x53fd48[_0x4da4d8(0x17b)][_0x4da4d8(0x173)]='';const _0x13760b=-(_0x35c75c['minx']?_0x35c75c[_0x4da4d8(0x198)]:0x0),_0x40eb10=Math[_0x4da4d8(0x185)](_0x35c75c[_0x4da4d8(0x18c)])+_0x13760b+_0x4194a6,_0x5ac52f=(_0x35c75c[_0x4da4d8(0x177)]?_0x35c75c['height']:0x0)+_0x4194a6,_0x2e0aba=_0x5ac52f-(_0x35c75c[_0x4da4d8(0x17f)]?_0x35c75c[_0x4da4d8(0x17f)]:0x0)+_0x251e0c,_0x1639c9=_0x5ac52f-_0x2e0aba+_0x4194a6;return _0x53fd48[_0x4da4d8(0x18c)]=_0x40eb10,_0x53fd48[_0x4da4d8(0x177)]=_0x5ac52f,_0x34343d['font']=_0x306517,_0x34343d[_0x4da4d8(0x16f)]=_0x4da4d8(0x183),_0x34343d[_0x4da4d8(0x188)]=_0x152161,_0x34343d[imageSmoothingEnabledName]=![],_0x4a424e!==_0x4da4d8(0x182)&&(_0x34343d[_0x4da4d8(0x191)]=_0x4a424e,_0x34343d[_0x4da4d8(0x162)](0x0,0x0,_0x53fd48[_0x4da4d8(0x18c)],_0x53fd48['height'])),_0x55ab11&&(_0x34343d[_0x4da4d8(0x165)]=defaultValue(_0x4cfd3c[_0x4da4d8(0x163)],'#000000'),_0x34343d[_0x4da4d8(0x18a)](_0x19744c,_0x13760b+_0x251e0c,_0x1639c9)),_0x12050b&&(_0x34343d[_0x4da4d8(0x191)]=defaultValue(_0x4cfd3c[_0x4da4d8(0x166)],_0x4da4d8(0x174)),_0x34343d[_0x4da4d8(0x176)](_0x19744c,_0x13760b+_0x251e0c,_0x1639c9)),_0x53fd48;}function defaultValue(_0x7197a3,_0x2a2b2e){if(_0x7197a3!==undefined&&_0x7197a3!==null)return _0x7197a3;return _0x2a2b2e;}export default writeTextToCanvas;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a95_0x3f2050=a95_0xbbd3;function a95_0x2fea(){const _0x5a53e1=['getView','getCode','resolution','getSize','returnM','calculateExtent','getType','returnZ','url','9670284FVXKgC','572qqTfMc','params','identify','layerDefs','all','layers','between','6593574SdmReK','1129194QkSlze','time','105lRuLqb','getProjection','request','getResolution','151960otYvEj','inSR','7ElCxcL','getCenter','10SJGSxW','imageDisplay','returnGeometry','mapExtent','8773072xxBnTZ','run','563637qriHPY','tolerance','930420rwWMTm','valueOf','_setGeometryParams'];a95_0x2fea=function(){return _0x5a53e1;};return a95_0x2fea();}(function(_0x3966b5,_0x303973){const _0x54ded9=a95_0xbbd3,_0x3bd6f1=_0x3966b5();while(!![]){try{const _0x189d49=-parseInt(_0x54ded9(0x11b))/0x1+-parseInt(_0x54ded9(0xfe))/0x2*(parseInt(_0x54ded9(0x104))/0x3)+parseInt(_0x54ded9(0xfa))/0x4*(-parseInt(_0x54ded9(0x11d))/0x5)+-parseInt(_0x54ded9(0x11a))/0x6*(parseInt(_0x54ded9(0xfc))/0x7)+-parseInt(_0x54ded9(0x102))/0x8+parseInt(_0x54ded9(0x112))/0x9+parseInt(_0x54ded9(0x106))/0xa*(parseInt(_0x54ded9(0x113))/0xb);if(_0x189d49===_0x303973)break;else _0x3bd6f1['push'](_0x3bd6f1['shift']());}catch(_0x45ec76){_0x3bd6f1['push'](_0x3bd6f1['shift']());}}}(a95_0x2fea,0xcfb1e));import a95_0x232a69 from'ol/format/EsriJSON';function a95_0xbbd3(_0x15e539,_0x31fdac){const _0x2feaa4=a95_0x2fea();return a95_0xbbd3=function(_0xbbd32c,_0x2f3502){_0xbbd32c=_0xbbd32c-0xf9;let _0x3e868f=_0x2feaa4[_0xbbd32c];return _0x3e868f;},a95_0xbbd3(_0x15e539,_0x31fdac);}import a95_0x245786 from'ol/format/GeoJSON';import{getPointResolution}from'ol/proj';import a95_0x47554f from'./Task';import{appendPath}from'../../UrlUtil';import{getEsriSpatialReference}from'../../EsriUtil';export default class Identify extends a95_0x47554f{constructor(_0x17310a,_0x4f610,_0x35d27e){const _0x327624=a95_0xbbd3;super(_0x17310a,_0x4f610,_0x35d27e),this['path']=_0x327624(0x115),this['params']={'layers':_0x327624(0x117),'tolerance':0x0,'returnGeometry':!![]},this[_0x327624(0x105)]=0x3,this['resolution']=0x0,this[_0x327624(0x111)]=appendPath(this[_0x327624(0x111)],this['path']),_0x4f610&&((_0x4f610['returnGeometry']===!![]||_0x4f610[_0x327624(0x100)]===![])&&(this['params'][_0x327624(0x100)]=_0x4f610[_0x327624(0x100)]),_0x4f610[_0x327624(0x118)]&&(this['params'][_0x327624(0x118)]=_0x4f610['layers']),_0x4f610[_0x327624(0x116)]&&(this[_0x327624(0x114)][_0x327624(0x116)]=_0x4f610[_0x327624(0x116)]),(_0x4f610[_0x327624(0x110)]===!![]||_0x4f610['returnZ']===![])&&(this[_0x327624(0x114)]['returnZ']=_0x4f610[_0x327624(0x110)]),(_0x4f610[_0x327624(0x10d)]===!![]||_0x4f610[_0x327624(0x10d)]===![])&&(this[_0x327624(0x114)][_0x327624(0x10d)]=_0x4f610[_0x327624(0x10d)]));}['at'](_0x2561ce,_0xff16b4){const _0x8997c1=a95_0xbbd3;let _0x43e31b,_0x449e75;const _0x4a6a5d=new a95_0x245786();_0x43e31b=_0x2561ce,_0x449e75=getEsriSpatialReference(_0xff16b4[_0x8997c1(0x109)]()['getProjection']()[_0x8997c1(0x10a)]());const _0x6e20ce=_0xff16b4[_0x8997c1(0x10c)]();_0x6e20ce&&(this[_0x8997c1(0x114)][_0x8997c1(0xff)]=[_0x6e20ce[0x0],_0x6e20ce[0x1],0x60]);this[_0x8997c1(0x114)]['sr']=_0x449e75;const _0x2c9370=_0xff16b4[_0x8997c1(0x109)]()[_0x8997c1(0x10e)](_0xff16b4[_0x8997c1(0x10c)]());this[_0x8997c1(0x114)][_0x8997c1(0x101)]={'xmin':_0x2c9370[0x0],'ymin':_0x2c9370[0x1],'xmax':_0x2c9370[0x2],'ymax':_0x2c9370[0x3],'spatialReference':_0x449e75};const _0x3e7f71=_0xff16b4['getView']()[_0x8997c1(0xf9)](),_0x2a897d=_0xff16b4[_0x8997c1(0x109)]()[_0x8997c1(0xfd)]();return _0x3e7f71&&_0x2a897d&&(this[_0x8997c1(0x10b)]=getPointResolution(_0xff16b4[_0x8997c1(0x109)]()[_0x8997c1(0x11e)](),_0x3e7f71,_0x2a897d)),this[_0x8997c1(0x108)](_0x43e31b,_0xff16b4['getView']()['getProjection']()['getCode']()),this;}[a95_0x3f2050(0x119)](_0x52dff8,_0x5ebc91){const _0x49a51b=a95_0x3f2050;return this['params'][_0x49a51b(0x11c)]=[_0x52dff8[_0x49a51b(0x107)](),_0x5ebc91['valueOf']()],this;}[a95_0x3f2050(0x103)](){const _0x274e2b=a95_0x3f2050;this[_0x274e2b(0x11f)]();}[a95_0x3f2050(0x108)](_0x3d6209,_0x22c9b0){const _0x72c32e=a95_0x3f2050;var _0x5cf672=new a95_0x232a69();const _0x2a46c2=_0x5cf672['writeGeometryObject'](_0x3d6209);this[_0x72c32e(0x114)][_0x72c32e(0xfb)]=getEsriSpatialReference(_0x22c9b0),this[_0x72c32e(0x114)]['geometry']=_0x2a46c2,this[_0x72c32e(0x114)]['geometryType']=this['geojsonTypeToArcGIS'](_0x3d6209[_0x72c32e(0x10f)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0x52b86b=a96_0x58ca;(function(_0x1f31e6,_0xaee14d){const _0x3dfbb3=a96_0x58ca,_0x4c8819=_0x1f31e6();while(!![]){try{const _0x4af058=parseInt(_0x3dfbb3(0x189))/0x1+-parseInt(_0x3dfbb3(0x1a9))/0x2*(-parseInt(_0x3dfbb3(0x17b))/0x3)+parseInt(_0x3dfbb3(0x1a6))/0x4*(parseInt(_0x3dfbb3(0x176))/0x5)+parseInt(_0x3dfbb3(0x18a))/0x6+parseInt(_0x3dfbb3(0x1aa))/0x7*(parseInt(_0x3dfbb3(0x171))/0x8)+-parseInt(_0x3dfbb3(0x18e))/0x9+-parseInt(_0x3dfbb3(0x172))/0xa;if(_0x4af058===_0xaee14d)break;else _0x4c8819['push'](_0x4c8819['shift']());}catch(_0x3a636c){_0x4c8819['push'](_0x4c8819['shift']());}}}(a96_0xe13b,0x2eae1));import a96_0x17109b from'ol/format/EsriJSON';function a96_0x58ca(_0xe5816,_0x774b8f){const _0xe13bf4=a96_0xe13b();return a96_0x58ca=function(_0x58ca73,_0x5d61a5){_0x58ca73=_0x58ca73-0x167;let _0x51b490=_0xe13bf4[_0x58ca73];return _0x51b490;},a96_0x58ca(_0xe5816,_0x774b8f);}import a96_0x582ea1 from'./Task';import{getEsriSpatialReference}from'../../EsriUtil';function a96_0xe13b(){const _0x372bf5=['distinct','getType','distance','length','url','params','No\x20features\x20found','nearby','1=1','getSize','8qWrZkh','9356500WtXTyC','indexIntersects','getExtent','esriSpatialRelOverlaps','62275XTjwzN','inSR','abs','between','400','3lWUqpR','count','data','returnExtentOnly','returnCountOnly','esriSpatialRelContains','ids','getTime','code','esriSRUnit_Meter','returnDistinctValues','_setGeometryParams','crosses','status','304323KIwPha','1198506fgBAOC','overlaps','run','request','232875fYeyMO','esriSpatialRelIndexIntersects','esriSpatialRelCrosses','layer','esriSpatialRelEnvelopeIntersects','_cleanParams','_trapSQLerrors','geometryType','orderByFields','writeGeometryObject','where','returnIdsOnly','readFeature','catch','returnM','valueOf','returnGeometry','features','esriSpatialRelTouches','esriSpatialRelWithin','touches','push','returnZ','maxAllowableOffset','28CtcIhG','spatialRel','orderBy','433548DpsKWf','2412851zxQABu','geojsonTypeToArcGIS','contains','outSR','apply','path','join','esriSpatialRelIntersects'];a96_0xe13b=function(){return _0x372bf5;};return a96_0xe13b();}import{appendPath}from'../../UrlUtil';export default class Query extends a96_0x582ea1{constructor(_0x5a4409,_0x58fc07,_0x44c0b5){const _0x68324b=a96_0x58ca;super(_0x5a4409,_0x58fc07,_0x44c0b5),this[_0x68324b(0x1af)]='query',this[_0x68324b(0x16c)]={'returnGeometry':!![],'where':_0x68324b(0x16f),'outFields':'*','returnZ':![],'returnM':![],'t':new Date()[_0x68324b(0x182)]()},this[_0x68324b(0x16b)]=appendPath(this[_0x68324b(0x16b)],this['path']),_0x58fc07&&((_0x58fc07[_0x68324b(0x19e)]===!![]||_0x58fc07['returnGeometry']===![])&&(this[_0x68324b(0x16c)][_0x68324b(0x19e)]=_0x58fc07[_0x68324b(0x19e)]),_0x58fc07[_0x68324b(0x198)]&&(this[_0x68324b(0x16c)][_0x68324b(0x198)]=_0x58fc07[_0x68324b(0x198)]),_0x58fc07[_0x68324b(0x1ad)]&&(this['params'][_0x68324b(0x1ad)]=getEsriSpatialReference(_0x58fc07[_0x68324b(0x1ad)])),(_0x58fc07[_0x68324b(0x1a4)]===!![]||_0x58fc07['returnZ']===![])&&(this[_0x68324b(0x16c)][_0x68324b(0x1a4)]=_0x58fc07[_0x68324b(0x1a4)]),(_0x58fc07[_0x68324b(0x19c)]===!![]||_0x58fc07['returnM']===![])&&(this[_0x68324b(0x16c)][_0x68324b(0x19c)]=_0x58fc07['returnM']));}['within'](_0x535e23,_0x16d406){const _0x2a7a45=a96_0x58ca;return this[_0x2a7a45(0x186)](_0x535e23,_0x16d406),this[_0x2a7a45(0x16c)][_0x2a7a45(0x1a7)]=_0x2a7a45(0x180),this;}['intersects'](_0x45b505,_0x59b4b1){const _0x1b8220=a96_0x58ca;return this[_0x1b8220(0x186)](_0x45b505,_0x59b4b1),this['params'][_0x1b8220(0x1a7)]=_0x1b8220(0x1b1),this;}[a96_0x52b86b(0x1ac)](_0x5edb5f,_0x3b00b5){const _0x1a71db=a96_0x52b86b;return this[_0x1a71db(0x186)](_0x5edb5f,_0x3b00b5),this['params'][_0x1a71db(0x1a7)]=_0x1a71db(0x1a1),this;}[a96_0x52b86b(0x187)](_0x11d700,_0x5166bd){const _0x5b8edc=a96_0x52b86b;return this['_setGeometryParams'](_0x11d700,_0x5166bd),this[_0x5b8edc(0x16c)][_0x5b8edc(0x1a7)]=_0x5b8edc(0x190),this;}[a96_0x52b86b(0x1a2)](_0x2a2906,_0x3f7f26){const _0x2f96f4=a96_0x52b86b;return this[_0x2f96f4(0x186)](_0x2a2906,_0x3f7f26),this[_0x2f96f4(0x16c)]['spatialRel']=_0x2f96f4(0x1a0),this;}[a96_0x52b86b(0x18b)](_0x480f8f,_0x28c76c){const _0xe6df0c=a96_0x52b86b;return this['_setGeometryParams'](_0x480f8f,_0x28c76c),this['params'][_0xe6df0c(0x1a7)]=_0xe6df0c(0x175),this;}['bboxIntersects'](_0x4c0539,_0x5680c3){const _0x44f80c=a96_0x52b86b;return this[_0x44f80c(0x186)](_0x4c0539,_0x5680c3),this[_0x44f80c(0x16c)][_0x44f80c(0x1a7)]=_0x44f80c(0x192),this;}[a96_0x52b86b(0x173)](_0xcdf68a,_0x5bcc23){const _0x4682ee=a96_0x52b86b;return this['_setGeometryParams'](_0xcdf68a,_0x5bcc23),this[_0x4682ee(0x16c)][_0x4682ee(0x1a7)]=_0x4682ee(0x18f),this;}[a96_0x52b86b(0x16e)](_0x482380,_0x521421,_0x461b33){const _0x3025d7=a96_0x52b86b;return this[_0x3025d7(0x186)](_0x482380,_0x521421),this[_0x3025d7(0x16c)]['spatialRel']=_0x3025d7(0x1b1),this['params']['units']=_0x3025d7(0x184),this[_0x3025d7(0x16c)][_0x3025d7(0x169)]=_0x461b33,this;}['where'](_0x5f4410){const _0xf390f8=a96_0x52b86b;return this[_0xf390f8(0x16c)][_0xf390f8(0x198)]=_0x5f4410,this;}[a96_0x52b86b(0x179)](_0x53dd60,_0x386d43){const _0x40ba84=a96_0x52b86b;return this[_0x40ba84(0x16c)]['time']=[_0x53dd60[_0x40ba84(0x19d)](),_0x386d43[_0x40ba84(0x19d)]()],this;}['simplify'](_0x47759d,_0x37fbb2){const _0x4cf176=a96_0x52b86b,_0xfd0274=_0x47759d[_0x4cf176(0x174)]();var _0x4930da=Math[_0x4cf176(0x178)](_0xfd0274[0x2]-_0xfd0274[0x0]);const _0x20088a=_0x47759d[_0x4cf176(0x170)]();if(_0x20088a)return this[_0x4cf176(0x16c)][_0x4cf176(0x1a5)]=_0x4930da/_0x20088a[0x1]*_0x37fbb2,this;}[a96_0x52b86b(0x1a8)](_0x35da04,_0xc52788){const _0x44e498=a96_0x52b86b;return _0xc52788=_0xc52788||'ASC',this[_0x44e498(0x16c)]['orderByFields']=this[_0x44e498(0x16c)][_0x44e498(0x196)]?this[_0x44e498(0x16c)][_0x44e498(0x196)]+',':'',this[_0x44e498(0x16c)]['orderByFields']+=[_0x35da04,_0xc52788][_0x44e498(0x1b0)]('\x20'),this;}async[a96_0x52b86b(0x18c)](){const _0x5e70e0=a96_0x52b86b;this['_cleanParams']();const _0x94817f=await this[_0x5e70e0(0x18d)]()[_0x5e70e0(0x19b)](_0x3f8234=>{throw new Error(_0x3f8234);});if(_0x94817f[_0x5e70e0(0x188)]!==0xc8)throw new Error(_0x5e70e0(0x16d));if(_0x94817f[_0x5e70e0(0x17d)]&&_0x94817f[_0x5e70e0(0x17d)]['features']&&_0x94817f['data']['features'][_0x5e70e0(0x16a)]>0x0){var _0x3e84b9=new a96_0x17109b();let _0x5f5338=[];return _0x94817f['data'][_0x5e70e0(0x19f)]['forEach'](_0x275f43=>{const _0x4e4b61=_0x5e70e0,_0x2c92b6=_0x3e84b9[_0x4e4b61(0x19a)](_0x275f43);_0x5f5338[_0x4e4b61(0x1a3)](_0x2c92b6);}),_0x5f5338;}return[];}[a96_0x52b86b(0x17c)](){const _0x180343=a96_0x52b86b;this[_0x180343(0x193)](),this[_0x180343(0x16c)][_0x180343(0x17f)]=!![],this[_0x180343(0x18d)]();}[a96_0x52b86b(0x181)](){const _0x43e2e7=a96_0x52b86b;this[_0x43e2e7(0x193)](),this[_0x43e2e7(0x16c)][_0x43e2e7(0x199)]=!![],this[_0x43e2e7(0x18d)]();}[a96_0x52b86b(0x167)](){const _0x3e8cfb=a96_0x52b86b;return this[_0x3e8cfb(0x16c)][_0x3e8cfb(0x19e)]=![],this['params'][_0x3e8cfb(0x185)]=!![],this;}[a96_0x52b86b(0x191)](_0x8f7fbc){return this['path']=_0x8f7fbc+'/query',this;}[a96_0x52b86b(0x194)](_0x210499){const _0x2533ec=a96_0x52b86b;_0x210499&&(_0x210499[_0x2533ec(0x183)]===_0x2533ec(0x17a)&&console['warn'][_0x2533ec(0x1ae)]('one\x20common\x20syntax\x20error\x20in\x20query\x20requests\x20is\x20encasing\x20string\x20values\x20in\x20double\x20quotes\x20instead\x20of\x20single\x20quotes'));}[a96_0x52b86b(0x193)](){const _0x27c9b7=a96_0x52b86b;delete this[_0x27c9b7(0x16c)][_0x27c9b7(0x199)],delete this['params'][_0x27c9b7(0x17e)],delete this[_0x27c9b7(0x16c)][_0x27c9b7(0x17f)];}['_setGeometryParams'](_0x299ae5,_0x129c33){const _0x70421a=a96_0x52b86b;if(!_0x299ae5)return;var _0x5b6de0=new a96_0x17109b();const _0x3155b4=_0x5b6de0[_0x70421a(0x197)](_0x299ae5);this[_0x70421a(0x16c)][_0x70421a(0x177)]=getEsriSpatialReference(_0x129c33),this[_0x70421a(0x16c)]['geometry']=_0x3155b4,this['params'][_0x70421a(0x195)]=this[_0x70421a(0x1ab)](_0x299ae5[_0x70421a(0x168)]());}}
|
package/utils/tasks/esri/Task.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a97_0x1819ef=a97_0x5e2a;(function(_0x41ec94,_0xea4267){var _0x4d0863=a97_0x5e2a,_0x10a2dd=_0x41ec94();while(!![]){try{var _0x20ed2b=parseInt(_0x4d0863(0x144))/0x1*(parseInt(_0x4d0863(0x161))/0x2)+-parseInt(_0x4d0863(0x146))/0x3*(-parseInt(_0x4d0863(0x15b))/0x4)+parseInt(_0x4d0863(0x14f))/0x5+-parseInt(_0x4d0863(0x147))/0x6*(-parseInt(_0x4d0863(0x140))/0x7)+parseInt(_0x4d0863(0x13c))/0x8+parseInt(_0x4d0863(0x141))/0x9*(-parseInt(_0x4d0863(0x159))/0xa)+-parseInt(_0x4d0863(0x14e))/0xb;if(_0x20ed2b===_0xea4267)break;else _0x10a2dd['push'](_0x10a2dd['shift']());}catch(_0x363062){_0x10a2dd['push'](_0x10a2dd['shift']());}}}(a97_0x3b9a,0x61477));function a97_0x3b9a(){var _0x138b01=['18tMuWfY','12ERGOcL','geojsonTypeToArcGIS','serialize','[object\x20Object]','esriGeometryPolyline','json','MultiLineString','14662032ZIASpG','2057500vuYiot','hasOwnProperty','MultiPoint','join','isArcgisOnline','length','request','test','get','call','191610aTCsaG','esriGeometryPolygon','322444VaINSM','method','url','Point','JSONP','format','506dLBpiR','toString','stringify','GET','1385072otVOjI','prototype','returnUnformattedValues','esriGeometryPoint','1945594aqyqgC','90zuQxXu','[object\x20Date]','params','1181aHHwDJ','MultiPolygon'];a97_0x3b9a=function(){return _0x138b01;};return a97_0x3b9a();}import a97_0x5479ae from'../../AxiosUtil';import{jsonp,stringify}from'../../AxiosUtil';function a97_0x5e2a(_0x5771f0,_0x3097c2){var _0x3b9aa3=a97_0x3b9a();return a97_0x5e2a=function(_0x5e2a4f,_0x5b7b05){_0x5e2a4f=_0x5e2a4f-0x13c;var _0x16fa0e=_0x3b9aa3[_0x5e2a4f];return _0x16fa0e;},a97_0x5e2a(_0x5771f0,_0x3097c2);}export default class Task{constructor(_0x4fff40,_0xecfd3f,_0x354ca5){var _0xb8d0c8=a97_0x5e2a;this[_0xb8d0c8(0x15d)]=_0x4fff40,this[_0xb8d0c8(0x143)]=_0xecfd3f||{},this[_0xb8d0c8(0x15c)]=!_0x354ca5?_0xb8d0c8(0x164):_0x354ca5;}[a97_0x1819ef(0x148)](_0x1b4517){var _0x3e5130=a97_0x1819ef,_0x164f60;switch(_0x1b4517){case _0x3e5130(0x15e):_0x164f60=_0x3e5130(0x13f);break;case _0x3e5130(0x151):_0x164f60='esriGeometryMultipoint';break;case'LineString':_0x164f60=_0x3e5130(0x14b);break;case _0x3e5130(0x14d):_0x164f60='esriGeometryPolyline';break;case'Polygon':_0x164f60=_0x3e5130(0x15a);break;case _0x3e5130(0x145):_0x164f60=_0x3e5130(0x15a);break;}return _0x164f60;}[a97_0x1819ef(0x153)](_0x287ce3){var _0x2093ec=a97_0x1819ef;return/^(?!.*utility\.arcgis\.com).*\.arcgis\.com.*FeatureServer/i[_0x2093ec(0x156)](_0x287ce3);}['serialize'](_0x1477d1){var _0xf2a4c9=a97_0x1819ef,_0x35260c='';_0x1477d1['f']=_0x1477d1['f']||_0xf2a4c9(0x14c);for(var _0x720456 in _0x1477d1){if(Object[_0xf2a4c9(0x13d)][_0xf2a4c9(0x150)][_0xf2a4c9(0x158)](_0x1477d1,_0x720456)){var _0x3f4884=_0x1477d1[_0x720456],_0x444d77=Object[_0xf2a4c9(0x13d)]['toString'][_0xf2a4c9(0x158)](_0x3f4884),_0x3643dc;_0x35260c[_0xf2a4c9(0x154)]&&(_0x35260c+='&');if(_0x444d77==='[object\x20Array]')_0x3643dc=Object[_0xf2a4c9(0x13d)][_0xf2a4c9(0x162)][_0xf2a4c9(0x158)](_0x3f4884[0x0])==='[object\x20Object]'?JSON[_0xf2a4c9(0x163)](_0x3f4884):_0x3f4884[_0xf2a4c9(0x152)](',');else{if(_0x444d77===_0xf2a4c9(0x14a))_0x3643dc=JSON[_0xf2a4c9(0x163)](_0x3f4884);else _0x444d77===_0xf2a4c9(0x142)?_0x3643dc=_0x3f4884['valueOf']():_0x3643dc=_0x3f4884;}_0x35260c+=encodeURIComponent(_0x720456)+'='+encodeURIComponent(_0x3643dc);}}return _0x35260c;}[a97_0x1819ef(0x160)](_0x58eb33){var _0x25f552=a97_0x1819ef;return this[_0x25f552(0x143)][_0x25f552(0x13e)]=!_0x58eb33,this;}async[a97_0x1819ef(0x155)](){var _0x15e17c=a97_0x1819ef,_0x3dbd2c=this[_0x15e17c(0x149)](this[_0x15e17c(0x143)]);const _0x5b6caf=this[_0x15e17c(0x15d)]['indexOf']('?')>-0x1?this[_0x15e17c(0x15d)]+'&'+_0x3dbd2c:this[_0x15e17c(0x15d)]+'?'+_0x3dbd2c;if(this[_0x15e17c(0x15c)]===_0x15e17c(0x164))return a97_0x5479ae[_0x15e17c(0x157)](_0x5b6caf);else{if(this['method']===_0x15e17c(0x15f))return jsonp(_0x5b6caf);else{const _0x55812d=stringify(this[_0x15e17c(0x143)]);return a97_0x5479ae['post'](this[_0x15e17c(0x15d)],_0x55812d);}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99_0x533df7=a99_0x345a;(function(_0x11662d,_0x2d2ea7){const _0x2b250d=a99_0x345a,_0x3b4b9a=_0x11662d();while(!![]){try{const _0x1aede9=-parseInt(_0x2b250d(0xfe))/0x1+-parseInt(_0x2b250d(0xe8))/0x2*(parseInt(_0x2b250d(0xfb))/0x3)+-parseInt(_0x2b250d(0xf2))/0x4*(-parseInt(_0x2b250d(0xe6))/0x5)+-parseInt(_0x2b250d(0xef))/0x6+parseInt(_0x2b250d(0xde))/0x7+parseInt(_0x2b250d(0xfc))/0x8+parseInt(_0x2b250d(0xed))/0x9;if(_0x1aede9===_0x2d2ea7)break;else _0x3b4b9a['push'](_0x3b4b9a['shift']());}catch(_0x1bf4fb){_0x3b4b9a['push'](_0x3b4b9a['shift']());}}}(a99_0x1f44,0xac8d3));function a99_0x345a(_0xa12680,_0x4201d2){const _0x1f44f7=a99_0x1f44();return a99_0x345a=function(_0x345a25,_0x3bad78){_0x345a25=_0x345a25-0xde;let _0x43f1ad=_0x1f44f7[_0x345a25];return _0x43f1ad;},a99_0x345a(_0xa12680,_0x4201d2);}import{and,intersects}from'ol/format/filter';import a99_0x2bfde3 from'../../format/CQL';import a99_0x36440c from'ol/format/WFS';import a99_0x34446f from'ol/format/GeoJSON';function a99_0x1f44(){const _0x15230b=['10611414RnYYPz','getFeatureInfoUrl','7451682EvDzgt','serializeToString','getCoordinates','2656ddRuGZ','tableName','map','anonymous','geoserver','execute','POST','resolution','then','240342kfdyJo','5099880EkiHkY','where','258116aiNRGn','json','url','read','readFeature','queryParameters','writeGetFeature','9303665yOnPFk','geometry','the_geom','application/json','geometry\x20is\x20invalid','features','executeRaster','srsName','170AgUvXe','1.1.1','24cvUVff','stringify','EPSG:4326','geometryName','_geoserverQuery'];a99_0x1f44=function(){return _0x15230b;};return a99_0x1f44();}import a99_0x369ef9 from'ol/source/TileWMS';import{getGeometryCenter}from'../../GeometryUtil';export default class QueryTask{constructor(_0x4946c3){this['queryParameters']={},this['url']=_0x4946c3;}async[a99_0x533df7(0xe4)](_0x544611){const _0x3723f8=a99_0x533df7,_0x1947fd=new a99_0x369ef9({'url':this['url'],'params':{'LAYERS':_0x544611[_0x3723f8(0xf3)],'TILED':!![],'VERSION':_0x3723f8(0xe7)},'serverType':_0x3723f8(0xf6),'crossOrigin':_0x3723f8(0xf5)}),_0x4eb358=_0x544611[_0x3723f8(0xf9)]||0.001,_0xc4ae5a=_0x544611[_0x3723f8(0xdf)];if(!_0xc4ae5a)throw new Error('geometry\x20is\x20required');let _0x54b0a2=getGeometryCenter(_0xc4ae5a);if(!_0x54b0a2)throw new Error(_0x3723f8(0xe2));const _0x3ab69a=_0x1947fd[_0x3723f8(0xee)](_0x54b0a2[_0x3723f8(0xf1)](),_0x4eb358,_0x3723f8(0xea),{'INFO_FORMAT':'application/json'}),_0x41c1d5=await fetch(_0x3ab69a,{'method':_0x3723f8(0xf8)}),_0x4ca5f5=await _0x41c1d5['json']();let _0x73d9a3=[];const _0x3d012b=new a99_0x34446f();return _0x73d9a3=_0x4ca5f5[_0x3723f8(0xe3)]['map'](_0x13f922=>{const _0x536bf6=_0x3723f8;return _0x3d012b[_0x536bf6(0x102)](JSON[_0x536bf6(0xe9)](_0x13f922));}),_0x73d9a3;}async[a99_0x533df7(0xf7)](_0x32afac){const _0x4e840b=a99_0x533df7;this['queryParameters']=_0x32afac||{};const _0x576e5f=this[_0x4e840b(0x103)]['geometryName']||'the_geom';let _0x1bcd8a=this[_0x4e840b(0x103)]['where'],_0x528b9c;_0x1bcd8a&&(_0x528b9c=new a99_0x2bfde3()[_0x4e840b(0x101)](_0x1bcd8a));let _0x94af3c=_0x528b9c;if(this[_0x4e840b(0x103)][_0x4e840b(0xdf)]){if(!this[_0x4e840b(0x103)][_0x4e840b(0xe5)])throw new Error('srsName\x20is\x20required');const _0x3cf501=intersects(_0x576e5f,this[_0x4e840b(0x103)][_0x4e840b(0xdf)]);_0x94af3c=_0x528b9c?and(_0x528b9c,_0x3cf501):_0x3cf501;}let _0x2c6a23=new a99_0x36440c()['writeGetFeature']({'srsName':this['queryParameters']['srsName'],'featureNS':'','featurePrefix':'','featureTypes':[this[_0x4e840b(0x103)]['tableName']],'outputFormat':_0x4e840b(0xe1),'geometryName':_0x576e5f,'filter':_0x94af3c});const _0x348e33=await fetch(this['url'],{'method':_0x4e840b(0xf8),'body':new XMLSerializer()[_0x4e840b(0xf0)](_0x2c6a23)}),_0x413e9f=await _0x348e33[_0x4e840b(0xff)]();let _0x596448=[];const _0x2a2736=new a99_0x34446f();return _0x596448=_0x413e9f['features'][_0x4e840b(0xf4)](_0xbfb7e3=>{return _0x2a2736['readFeature'](JSON['stringify'](_0xbfb7e3));}),_0x596448;}[a99_0x533df7(0xec)](){const _0x206bd0=a99_0x533df7,_0x2eb075=this[_0x206bd0(0x103)][_0x206bd0(0xeb)]||_0x206bd0(0xe0);let _0x658468=this['queryParameters'][_0x206bd0(0xfd)],_0x4e5504;_0x658468&&(_0x4e5504=new a99_0x2bfde3()[_0x206bd0(0x101)](_0x658468));let _0x42cc22=_0x4e5504;if(this[_0x206bd0(0x103)]['geometry']){const _0x18c7bb=intersects(_0x2eb075,this['queryParameters'][_0x206bd0(0xdf)]);_0x42cc22=_0x4e5504?and(_0x4e5504,_0x18c7bb):_0x18c7bb;}let _0x16eef0=new a99_0x36440c()[_0x206bd0(0x104)]({'srsName':this[_0x206bd0(0x103)][_0x206bd0(0xe5)],'featureNS':'','featurePrefix':'','featureTypes':[this['queryParameters'][_0x206bd0(0xf3)]],'outputFormat':'application/json','geometryName':_0x2eb075,'filter':_0x42cc22});return new Promise(_0x3f25ae=>{const _0x5ec732=_0x206bd0;fetch(this[_0x5ec732(0x100)],{'method':_0x5ec732(0xf8),'body':new XMLSerializer()[_0x5ec732(0xf0)](_0x16eef0)})[_0x5ec732(0xfa)](_0x415bcf=>{const _0x3a3351=_0x5ec732;return _0x415bcf[_0x3a3351(0xff)]();})[_0x5ec732(0xfa)](_0x309cfa=>{const _0x99da63=_0x5ec732;let _0x181b4f=[];const _0x5115ec=new a99_0x34446f();_0x181b4f=_0x309cfa[_0x99da63(0xe3)][_0x99da63(0xf4)](_0x4c7c9b=>{const _0xf157b1=_0x99da63;return _0x5115ec[_0xf157b1(0x102)](JSON['stringify'](_0x4c7c9b));}),_0x3f25ae(_0x181b4f);})['catch'](_0xc84a06=>{_0x3f25ae([]),console['error'](_0xc84a06);});});}}
|
package/utils/tasks/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a100_0xb8f4(_0x5dffaf,_0x156caf){const _0x520685=a100_0x5206();return a100_0xb8f4=function(_0xb8f43e,_0x4c3c53){_0xb8f43e=_0xb8f43e-0xb2;let _0x548854=_0x520685[_0xb8f43e];return _0x548854;},a100_0xb8f4(_0x5dffaf,_0x156caf);}(function(_0x3333b8,_0x3a53d1){const _0x50dd76=a100_0xb8f4,_0x1831a8=_0x3333b8();while(!![]){try{const _0x9ccef7=-parseInt(_0x50dd76(0xb8))/0x1*(parseInt(_0x50dd76(0xb2))/0x2)+parseInt(_0x50dd76(0xc4))/0x3+-parseInt(_0x50dd76(0xbb))/0x4+parseInt(_0x50dd76(0xc3))/0x5+parseInt(_0x50dd76(0xb5))/0x6+parseInt(_0x50dd76(0xb3))/0x7+parseInt(_0x50dd76(0xc7))/0x8*(-parseInt(_0x50dd76(0xba))/0x9);if(_0x9ccef7===_0x3a53d1)break;else _0x1831a8['push'](_0x1831a8['shift']());}catch(_0x1d0016){_0x1831a8['push'](_0x1831a8['shift']());}}}(a100_0x5206,0x87192));import{appendPath}from'../UrlUtil';import a100_0x1afb91 from'./esri/Query';import a100_0xe2e17c from'./geoserver/QueryTask';import{getWFSLayerCapabilities}from'../../capabilities';export async function selectFeaturesByGeo(_0x236285,_0x5209e4,_0x5345d2,_0xd32f11,_0x322fe1,_0x7532a0,_0x2ff2f7){const _0x11e622=a100_0xb8f4;if(!_0x5345d2||!_0xd32f11||!_0x322fe1||!_0x322fe1)return[];let _0x990427=[];try{if(_0x322fe1==_0x11e622(0xbd)||_0x322fe1==_0x11e622(0xc6)){const _0x46333c=appendPath(_0x5345d2,_0xd32f11),_0x43c285=new a100_0x1afb91(_0x46333c,{'outSR':_0x5209e4,'where':_0x7532a0});_0x236285&&_0x5209e4&&_0x43c285['intersects'](_0x236285,_0x5209e4),_0x990427=await _0x43c285[_0x11e622(0xb7)]();}else{if(_0x322fe1==_0x11e622(0xb9)||_0x322fe1==_0x11e622(0xbc)){const _0x344add=new a100_0xe2e17c(_0x5345d2),_0x5234bf=await getWFSLayerCapabilities(_0x5345d2,_0xd32f11);if(_0x5234bf&&_0x5234bf['layerFields']){const _0x392f11=_0x5234bf[_0x11e622(0xc5)][_0x11e622(0xb4)](_0x38d7d2=>_0x38d7d2[_0x11e622(0xc2)]==0x6);_0x990427=await _0x344add['execute']({'geometry':_0x236285,'tableName':_0xd32f11,'geometryName':_0x392f11?_0x392f11[_0x11e622(0xb6)]:'','srsName':_0x5209e4,'where':_0x7532a0});}else _0x990427=await _0x344add[_0x11e622(0xc1)]({'geometry':_0x236285,'tableName':_0xd32f11,'geometryName':'','srsName':_0x5209e4,'where':_0x7532a0,'resolution':_0x2ff2f7});}else{if(_0x322fe1==_0x11e622(0xc0)){_0x5345d2=_0x5345d2[_0x11e622(0xbf)](_0x11e622(0xbe),'wms');const _0x5c1d74=new a100_0xe2e17c(_0x5345d2),_0x28d8e9=await getWFSLayerCapabilities(_0x5345d2,_0xd32f11);if(_0x28d8e9&&_0x28d8e9[_0x11e622(0xc5)]){let _0x3e77b0=_0x28d8e9['layerFields'][_0x11e622(0xb4)](_0x23071e=>_0x23071e['fieldType']==0x6);_0x990427=await _0x5c1d74['execute']({'geometry':_0x236285,'tableName':_0xd32f11,'geometryName':_0x3e77b0?_0x3e77b0[_0x11e622(0xb6)]:'','srsName':_0x5209e4,'where':_0x7532a0});}else _0x990427=await _0x5c1d74[_0x11e622(0xc1)]({'geometry':_0x236285,'tableName':_0xd32f11,'geometryName':'','srsName':_0x5209e4,'where':_0x7532a0,'resolution':_0x2ff2f7});}}}}catch(_0x14b7c2){}return _0x990427;}function a100_0x5206(){const _0x10dd8e=['arcgis-feature','9626568DloekS','4498ujujEN','3773126HNIbbg','find','1473624fLDrIr','name','run','107GOAjUa','geoserver-wfs','9vVCZJm','1290904oICBbb','geoserver-wms','arcgis-dynamic','gwc/service/wmts','replace','geoserver-wmts','executeRaster','fieldType','3666200VnWGYb','2406570rrlUJr','layerFields'];a100_0x5206=function(){return _0x10dd8e;};return a100_0x5206();}
|