ym-gis-2d 1.0.41 → 1.0.42
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.js +1 -1
- package/layers/MapTileLayer.js +1 -1
- package/layers/TDTLayer.js +1 -1
- 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/PointStyleFormat.js.map +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
|
-
|
|
1
|
+
(function(_0x236d94,_0x309696){const _0x547e5e=a84_0x65b9,_0x45f3dc=_0x236d94();while(!![]){try{const _0x3c4820=-parseInt(_0x547e5e(0x133))/0x1+-parseInt(_0x547e5e(0x13d))/0x2+-parseInt(_0x547e5e(0x123))/0x3+-parseInt(_0x547e5e(0x137))/0x4+parseInt(_0x547e5e(0x140))/0x5+-parseInt(_0x547e5e(0x132))/0x6*(parseInt(_0x547e5e(0x13b))/0x7)+parseInt(_0x547e5e(0x135))/0x8;if(_0x3c4820===_0x309696)break;else _0x45f3dc['push'](_0x45f3dc['shift']());}catch(_0x3b1d99){_0x45f3dc['push'](_0x45f3dc['shift']());}}}(a84_0x51cf,0x5217a));import a84_0x1bdb75 from'./CQL';export function isMatchCql(_0x59ab6a,_0x4640af){const _0x25dcca=a84_0x65b9;let _0x45a1bb=new a84_0x1bdb75()[_0x25dcca(0x12d)](_0x4640af);return isMatchFilter(_0x59ab6a,_0x45a1bb);}export function isMatchFilter(_0x42471f,_0x3f9894){const _0x823b4b=a84_0x65b9;switch(_0x3f9894['tagName_']){case _0x823b4b(0x128):return!isMatchFilter(_0x42471f,_0x3f9894[_0x823b4b(0x120)]);case'And':{let _0x5c9d6c=!![];for(let _0x6b6506=0x0;_0x6b6506<_0x3f9894[_0x823b4b(0x13c)][_0x823b4b(0x12a)];_0x6b6506++){_0x5c9d6c=_0x5c9d6c&&isMatchFilter(_0x42471f,_0x3f9894[_0x823b4b(0x13c)][_0x6b6506]);}return _0x5c9d6c;}case'Or':{let _0x3e0fd7=![];for(let _0x5d6e8c=0x0;_0x5d6e8c<_0x3f9894['conditions'][_0x823b4b(0x12a)];_0x5d6e8c++){_0x3e0fd7=_0x3e0fd7||isMatchFilter(_0x42471f,_0x3f9894[_0x823b4b(0x13c)][_0x5d6e8c]);}return _0x3e0fd7;}case _0x823b4b(0x126):return _0x42471f[_0x3f9894[_0x823b4b(0x130)]]>_0x3f9894[_0x823b4b(0x12f)]&&_0x42471f[_0x3f9894['property']]<_0x3f9894[_0x823b4b(0x12c)];case _0x823b4b(0x13f):return _0x42471f[_0x3f9894[_0x823b4b(0x121)]]===_0x3f9894[_0x823b4b(0x125)];case'PropertyIsNotEqualTo':return _0x42471f[_0x3f9894[_0x823b4b(0x121)]]!==_0x3f9894[_0x823b4b(0x125)];case'PropertyIsLessThan':return _0x42471f[_0x3f9894[_0x823b4b(0x121)]]<_0x3f9894['expression'];case'PropertyIsLessThanOrEqualTo':return _0x42471f[_0x3f9894['propertyName']]<=_0x3f9894[_0x823b4b(0x125)];case _0x823b4b(0x127):return _0x42471f[_0x3f9894[_0x823b4b(0x121)]]>_0x3f9894[_0x823b4b(0x125)];case _0x823b4b(0x134):return _0x42471f[_0x3f9894[_0x823b4b(0x121)]]>=_0x3f9894[_0x823b4b(0x125)];case'PropertyIsLike':return _0x42471f[_0x3f9894['propertyName']]['indexOf'](_0x3f9894['expression'])>-0x1;case _0x823b4b(0x139):{return!_0x42471f[_0x3f9894[_0x823b4b(0x121)]];}default:return![];}}function a84_0x51cf(){const _0x256a0f=['lowerBoundary','property','idMap','6LdRiSx','479539EcqFCE','PropertyIsGreaterThanOrEqualTo','14817712WIVhGH','PropertyIsNotEqualTo','1415812lamWwk','PropertyIsLessThan','PropertyIsNull','join','4183298XdpdJJ','conditions','580220sXbOOj','push','PropertyIsEqualTo','1251275iJhCxm','condition','propertyName','tagName_','135009WHoFgM','PropertyIsLessThanOrEqualTo','expression','PropertyIsBetween','PropertyIsGreaterThan','Not','template','length','And','upperBoundary','read','PropertyIsLike'];a84_0x51cf=function(){return _0x256a0f;};return a84_0x51cf();}export function isEqualFilter(_0x299c1c,_0x364d59){const _0x23224a=a84_0x65b9;switch(_0x299c1c[_0x23224a(0x122)]){case'Not':return _0x299c1c[_0x23224a(0x122)]===_0x364d59['tagName_']&&isEqualFilter(_0x299c1c[_0x23224a(0x120)],_0x364d59[_0x23224a(0x120)]);case'Or':case _0x23224a(0x12b):{let _0x1ef4ba=_0x299c1c[_0x23224a(0x122)]===_0x364d59[_0x23224a(0x122)]&&_0x299c1c['conditions']['length']===_0x364d59[_0x23224a(0x13c)][_0x23224a(0x12a)];for(let _0x54eeb7=0x0;_0x54eeb7<_0x299c1c[_0x23224a(0x13c)][_0x23224a(0x12a)];_0x54eeb7++){_0x1ef4ba=_0x1ef4ba&&isEqualFilter(_0x299c1c[_0x23224a(0x13c)][_0x54eeb7],_0x364d59['conditions'][_0x54eeb7]);}return _0x1ef4ba;}case _0x23224a(0x126):return _0x299c1c[_0x23224a(0x122)]===_0x364d59[_0x23224a(0x122)]&&_0x299c1c[_0x23224a(0x130)]===_0x364d59[_0x23224a(0x130)];case _0x23224a(0x13f):case _0x23224a(0x136):case _0x23224a(0x138):case _0x23224a(0x124):case _0x23224a(0x127):case _0x23224a(0x134):case _0x23224a(0x12e):case'PropertyIsNull':return _0x299c1c[_0x23224a(0x122)]===_0x364d59[_0x23224a(0x122)]&&_0x299c1c['propertyName']===_0x364d59[_0x23224a(0x121)];default:return![];}}export function indexOfFilter(_0x277dfb,_0x5e8f5b){const _0x328bac=a84_0x65b9;let _0x47bbde=-0x1;if((_0x277dfb===null||_0x277dfb===void 0x0?void 0x0:_0x277dfb[_0x328bac(0x12a)])>0x0)for(let _0x5d7804 in _0x277dfb){if(isEqualFilter(_0x277dfb[_0x5d7804][_0x328bac(0x129)],_0x5e8f5b))return _0x5d7804;}return _0x47bbde;}function a84_0x65b9(_0x54313a,_0x529ae2){const _0x51cff5=a84_0x51cf();return a84_0x65b9=function(_0x65b95d,_0x52a18d){_0x65b95d=_0x65b95d-0x120;let _0x418578=_0x51cff5[_0x65b95d];return _0x418578;},a84_0x65b9(_0x54313a,_0x529ae2);}export function getIndexByTemplate(_0x3fbdef,_0x6a3a7d){const _0x3f4ff5=a84_0x65b9;let _0x4a765a=_0x6a3a7d[_0x3f4ff5(0x129)];if(_0x6a3a7d['idMapLength']>0x0){let _0xf9ea4=getKeyByTemplate(_0x3fbdef,_0x4a765a);if(_0xf9ea4 instanceof Array)for(let _0x13624d in _0xf9ea4){let _0xa3d92f=_0x6a3a7d['idMap'][_0xf9ea4[_0x13624d]+'_'+_0x13624d];if(_0xa3d92f)return _0xa3d92f;}else return _0x6a3a7d[_0x3f4ff5(0x131)][_0xf9ea4];}return null;}export function getKeyByTemplate(_0x21aa65,_0x12314e){const _0x22ef12=a84_0x65b9;switch(_0x12314e['tagName_']){case _0x22ef12(0x13f):{return _0x21aa65[_0x12314e[_0x22ef12(0x121)]];}case _0x22ef12(0x12b):{let _0x13d760=[];for(let _0xafccd9=0x0;_0xafccd9<_0x12314e['conditions'][_0x22ef12(0x12a)];_0xafccd9++){let _0x515a09=getKeyByTemplate(_0x21aa65,_0x12314e[_0x22ef12(0x13c)][_0xafccd9]);_0x515a09&&_0x13d760[_0x22ef12(0x13e)](_0x515a09);}return _0x13d760[_0x22ef12(0x13a)](',');}case'Or':{let _0x53b268=[];for(let _0x4295f7=0x0;_0x4295f7<_0x12314e[_0x22ef12(0x13c)][_0x22ef12(0x12a)];_0x4295f7++){let _0x3811e9=getKeyByTemplate(_0x21aa65,_0x12314e[_0x22ef12(0x13c)][_0x4295f7]);_0x3811e9&&_0x53b268['push'](_0x3811e9);}return _0x53b268;}default:return null;}}export function createKeyFromFilter(_0x2d0285){const _0x2caebc=a84_0x65b9;switch(_0x2d0285[_0x2caebc(0x122)]){case _0x2caebc(0x13f):return _0x2d0285[_0x2caebc(0x125)];case _0x2caebc(0x12b):{let _0x22eb96=[];for(let _0x16ef1e=0x0;_0x16ef1e<_0x2d0285[_0x2caebc(0x13c)][_0x2caebc(0x12a)];_0x16ef1e++){let _0x31496c=createKeyFromFilter(_0x2d0285['conditions'][_0x16ef1e]);if(_0x31496c)_0x22eb96[_0x2caebc(0x13e)](_0x31496c);else return null;}return _0x22eb96[_0x2caebc(0x13a)](',');}case'Or':{let _0x57f090=[];for(let _0x4eb528=0x0;_0x4eb528<_0x2d0285['conditions'][_0x2caebc(0x12a)];_0x4eb528++){let _0x749d5e=createKeyFromFilter(_0x2d0285[_0x2caebc(0x13c)][_0x4eb528]);_0x749d5e&&_0x57f090[_0x2caebc(0x13e)](_0x749d5e);}return _0x57f090;}default:return null;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x5450d6=a87_0x4245;(function(_0x5093ce,_0x2ee065){const _0x48acc5=a87_0x4245,_0x1fe8af=_0x5093ce();while(!![]){try{const _0xb4f8df=-parseInt(_0x48acc5(0x6f))/0x1*(parseInt(_0x48acc5(0x74))/0x2)+parseInt(_0x48acc5(0x69))/0x3+-parseInt(_0x48acc5(0x75))/0x4+-parseInt(_0x48acc5(0x6c))/0x5+-parseInt(_0x48acc5(0x6b))/0x6+parseInt(_0x48acc5(0x6a))/0x7+parseInt(_0x48acc5(0x6d))/0x8;if(_0xb4f8df===_0x2ee065)break;else _0x1fe8af['push'](_0x1fe8af['shift']());}catch(_0x1e75e0){_0x1fe8af['push'](_0x1fe8af['shift']());}}}(a87_0x5e49,0xd3b71));function a87_0x5e49(){const _0x504271=['10324237pHizgV','8501736kuoUcC','5485100fGiuSy','16415240RHrttX','set','313mKUxGP','markerColor','get','cacheSize_','markerLabel','9730DvozlX','424000UDaqzD','cache_','markerSize','clear','4449330WPSdDR'];a87_0x5e49=function(){return _0x504271;};return a87_0x5e49();}import{asString}from'ol/color';function a87_0x4245(_0x3cd791,_0x4192e0){const _0x5e49d2=a87_0x5e49();return a87_0x4245=function(_0x424511,_0x3b6fab){_0x424511=_0x424511-0x69;let _0x52248c=_0x5e49d2[_0x424511];return _0x52248c;},a87_0x4245(_0x3cd791,_0x4192e0);}class ImageCache{constructor(){const _0x50faa6=a87_0x4245;this[_0x50faa6(0x76)]={},this[_0x50faa6(0x72)]=0x0;}[a87_0x5450d6(0x78)](){const _0xf219f6=a87_0x5450d6;this[_0xf219f6(0x76)]={},this[_0xf219f6(0x72)]=0x0;}[a87_0x5450d6(0x71)](_0xf22d93){const _0x39978c=a87_0x5450d6,_0x3139e6=getKey(_0xf22d93[_0x39978c(0x73)],_0xf22d93[_0x39978c(0x77)],_0xf22d93[_0x39978c(0x70)],_0xf22d93['image']);return _0x3139e6 in this['cache_']?this[_0x39978c(0x76)][_0x3139e6]:null;}[a87_0x5450d6(0x6e)](_0x256cb1,_0x27c722){const _0x82acd4=a87_0x5450d6,_0x535578=getKey(_0x256cb1[_0x82acd4(0x73)],_0x256cb1[_0x82acd4(0x77)],_0x256cb1[_0x82acd4(0x70)],_0x256cb1['image']);this[_0x82acd4(0x76)][_0x535578]=_0x27c722,++this[_0x82acd4(0x72)];}}function getKey(_0x5bc6ab,_0x4b21f9,_0x6f2382,_0x2aaa77){const _0x4522a4=_0x6f2382?asString(_0x6f2382):'null';return _0x5bc6ab+':'+_0x2aaa77+':'+_0x4522a4+':'+_0x4b21f9;}export default ImageCache;export const shared=new ImageCache();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x247ae5=a88_0x4528;(function(_0x17de9e,_0x2f2e54){const _0xfe88e5=a88_0x4528,_0x2d20db=_0x17de9e();while(!![]){try{const _0x1abd25=-parseInt(_0xfe88e5(0x168))/0x1*(parseInt(_0xfe88e5(0x15d))/0x2)+parseInt(_0xfe88e5(0x16d))/0x3+-parseInt(_0xfe88e5(0x162))/0x4*(parseInt(_0xfe88e5(0x164))/0x5)+-parseInt(_0xfe88e5(0x174))/0x6+-parseInt(_0xfe88e5(0x150))/0x7+-parseInt(_0xfe88e5(0x15b))/0x8*(parseInt(_0xfe88e5(0x16c))/0x9)+-parseInt(_0xfe88e5(0x176))/0xa*(-parseInt(_0xfe88e5(0x169))/0xb);if(_0x1abd25===_0x2f2e54)break;else _0x2d20db['push'](_0x2d20db['shift']());}catch(_0x5070ef){_0x2d20db['push'](_0x2d20db['shift']());}}}(a88_0x357b,0x3caea));function a88_0x4528(_0x413ac5,_0x5a95fb){const _0x357b86=a88_0x357b();return a88_0x4528=function(_0x4528a1,_0x59143e){_0x4528a1=_0x4528a1-0x14c;let _0x231edf=_0x357b86[_0x4528a1];return _0x231edf;},a88_0x4528(_0x413ac5,_0x5a95fb);}import a88_0x30c6ae from'color';import a88_0x7647d9 from'./writeTextToCanvas';function a88_0x357b(){const _0x5b4884=['round','getImageState','195713WymuIQ','fromColor','fillStyle','#FFFFFF','stroke','destination-out','text\x20is\x20required','_cache','IDLE','fromUrl','ERROR','16NnBjqP','fromMakiIconId','5466ujpdUf','lineWidth','destination-over','getContext','LOADED','92xtWKAM','drawImage','30770EiAsRG','strokeStyle','closePath','getImage','15kEfJSB','7051yMuGue','size\x20is\x20required','globalCompositeOperation','2024361hGwayU','200103FBuNAN','stringify','restore','height','fromText','fillRect','beginPath','2934900sZHzGX','fill','20770gbAVaQ','lineTo','url\x20is\x20required','bezierCurveTo','createElement','hexa','moveTo','width','toDataURL','color\x20is\x20required'];a88_0x357b=function(){return _0x5b4884;};return a88_0x357b();}import{Icon}from'ol/style';import a88_0x5c5dd4 from'ol/ImageState';import{parseImage}from'../../UrlUtil.js';class PinBuilder{constructor(){const _0xe5779=a88_0x4528;this[_0xe5779(0x157)]={};}[a88_0x247ae5(0x151)](_0x58a4b9,_0x2e1a39){const _0x14991b=a88_0x247ae5;if(!_0x58a4b9)throw new Error('color\x20is\x20required');if(!_0x2e1a39)throw new Error('size\x20is\x20required');return createPin('','',_0x58a4b9,_0x2e1a39,this[_0x14991b(0x157)]);}[a88_0x247ae5(0x159)](_0x17db80,_0x112b4d,_0x143db7){const _0x5bb86d=a88_0x247ae5;if(!_0x17db80)throw new Error(_0x5bb86d(0x178));if(!_0x112b4d)throw new Error(_0x5bb86d(0x14d));if(!_0x143db7)throw new Error(_0x5bb86d(0x16a));return createPin(_0x17db80,'',_0x112b4d,_0x143db7,this[_0x5bb86d(0x157)]);}[a88_0x247ae5(0x15c)](_0x1a0707,_0x3080cc,_0xfc787){const _0x544f26=a88_0x247ae5;if(!_0x1a0707)throw new Error('id\x20is\x20required');if(!_0x3080cc)throw new Error(_0x544f26(0x14d));if(!_0xfc787)throw new Error('size\x20is\x20required');return createPin(parseImage(_0x1a0707),'',_0x3080cc,_0xfc787,this[_0x544f26(0x157)]);}[a88_0x247ae5(0x171)](_0x34e786,_0x2d22e5,_0x2d63e2){const _0x31f496=a88_0x247ae5;if(!_0x34e786)throw new Error(_0x31f496(0x156));if(!_0x2d22e5)throw new Error(_0x31f496(0x14d));if(!_0x2d63e2)throw new Error(_0x31f496(0x16a));return createPin('',_0x34e786,_0x2d22e5,_0x2d63e2,this[_0x31f496(0x157)]);}}function drawPin(_0x5c2eba,_0x58d7c5,_0x157034){const _0x4670eb=a88_0x247ae5;_0x5c2eba['save'](),_0x5c2eba['scale'](_0x157034/0x18,_0x157034/0x18),_0x5c2eba[_0x4670eb(0x152)]=_0x58d7c5,_0x5c2eba[_0x4670eb(0x165)]=a88_0x30c6ae(_0x58d7c5)['lighten'](0.6)[_0x4670eb(0x17b)](),_0x5c2eba[_0x4670eb(0x15e)]=0.846,_0x5c2eba[_0x4670eb(0x173)](),_0x5c2eba[_0x4670eb(0x17c)](6.72,0.422),_0x5c2eba['lineTo'](17.28,0.422),_0x5c2eba[_0x4670eb(0x179)](18.553,0.422,19.577,1.758,19.577,3.415),_0x5c2eba[_0x4670eb(0x177)](19.577,10.973),_0x5c2eba[_0x4670eb(0x179)](19.577,12.63,18.553,13.966,17.282,13.966),_0x5c2eba[_0x4670eb(0x177)](14.386,14.008),_0x5c2eba[_0x4670eb(0x177)](11.826,23.578),_0x5c2eba[_0x4670eb(0x177)](9.614,14.008),_0x5c2eba['lineTo'](6.719,13.965),_0x5c2eba[_0x4670eb(0x179)](5.446,13.983,4.422,12.629,4.422,10.972),_0x5c2eba['lineTo'](4.422,3.416),_0x5c2eba['bezierCurveTo'](4.423,1.76,5.447,0.423,6.718,0.423),_0x5c2eba[_0x4670eb(0x166)](),_0x5c2eba[_0x4670eb(0x175)](),_0x5c2eba[_0x4670eb(0x154)](),_0x5c2eba[_0x4670eb(0x16f)]();}function drawIcon(_0x203283,_0x1fb9a4,_0x40a808){const _0x14b7ee=a88_0x247ae5,_0x3f416c=_0x40a808/2.5;let _0x4febf1=_0x3f416c,_0x138558=_0x3f416c;if(_0x1fb9a4[_0x14b7ee(0x17d)]>_0x1fb9a4[_0x14b7ee(0x170)])_0x138558=_0x3f416c*(_0x1fb9a4[_0x14b7ee(0x170)]/_0x1fb9a4['width']);else _0x1fb9a4[_0x14b7ee(0x17d)]<_0x1fb9a4[_0x14b7ee(0x170)]&&(_0x4febf1=_0x3f416c*(_0x1fb9a4[_0x14b7ee(0x17d)]/_0x1fb9a4[_0x14b7ee(0x170)]));const _0x4b74ba=Math[_0x14b7ee(0x14e)]((_0x40a808-_0x4febf1)/0x2),_0x1553f1=Math[_0x14b7ee(0x14e)](0x7/0x18*_0x40a808-_0x138558/0x2);_0x203283[_0x14b7ee(0x16b)]=_0x14b7ee(0x155),_0x203283[_0x14b7ee(0x163)](_0x1fb9a4,_0x4b74ba-0x1,_0x1553f1,_0x4febf1,_0x138558),_0x203283[_0x14b7ee(0x163)](_0x1fb9a4,_0x4b74ba,_0x1553f1-0x1,_0x4febf1,_0x138558),_0x203283[_0x14b7ee(0x163)](_0x1fb9a4,_0x4b74ba+0x1,_0x1553f1,_0x4febf1,_0x138558),_0x203283[_0x14b7ee(0x163)](_0x1fb9a4,_0x4b74ba,_0x1553f1+0x1,_0x4febf1,_0x138558),_0x203283[_0x14b7ee(0x16b)]=_0x14b7ee(0x15f),_0x203283[_0x14b7ee(0x152)]='#000000',_0x203283['fillRect'](_0x4b74ba-0x1,_0x1553f1-0x1,_0x4febf1+0x2,_0x138558+0x2),_0x203283[_0x14b7ee(0x16b)]=_0x14b7ee(0x155),_0x203283['drawImage'](_0x1fb9a4,_0x4b74ba,_0x1553f1,_0x4febf1,_0x138558),_0x203283[_0x14b7ee(0x16b)]=_0x14b7ee(0x15f),_0x203283[_0x14b7ee(0x152)]=_0x14b7ee(0x153),_0x203283[_0x14b7ee(0x172)](_0x4b74ba-0x1,_0x1553f1-0x2,_0x4febf1+0x2,_0x138558+0x2);}const stringifyScratch=new Array(0x4);function createPin(_0x152c59,_0x597409,_0x79abb0,_0x565f1e,_0x19c0f8){const _0x4ab58d=a88_0x247ae5;stringifyScratch[0x0]=_0x152c59,stringifyScratch[0x1]=_0x597409,stringifyScratch[0x2]=_0x79abb0,stringifyScratch[0x3]=_0x565f1e;const _0x18d9ac=JSON[_0x4ab58d(0x16e)](stringifyScratch),_0x49d164=_0x19c0f8[_0x18d9ac];if(_0x49d164)return _0x49d164;const _0x11ee83=document[_0x4ab58d(0x17a)]('canvas');_0x11ee83[_0x4ab58d(0x17d)]=_0x565f1e,_0x11ee83[_0x4ab58d(0x170)]=_0x565f1e;const _0x360346=_0x11ee83[_0x4ab58d(0x160)]('2d');drawPin(_0x360346,_0x79abb0,_0x565f1e);if(_0x152c59)return new Promise(_0x41834d=>{const _0x59ca18=_0x4ab58d;let _0x272d7c=new Icon({'src':_0x152c59}),_0x2a5be0=_0x272d7c['getImageState']();_0x2a5be0===a88_0x5c5dd4[_0x59ca18(0x161)]||_0x2a5be0===a88_0x5c5dd4['ERROR']?(drawIcon(_0x360346,_0x272d7c[_0x59ca18(0x167)](0x60),_0x565f1e),_0x19c0f8[_0x18d9ac]=_0x11ee83[_0x59ca18(0x14c)](),_0x41834d(_0x11ee83[_0x59ca18(0x14c)]())):(_0x2a5be0===a88_0x5c5dd4[_0x59ca18(0x158)]&&_0x272d7c['load'](),_0x272d7c['listenImageChange'](_0x3657ac=>{const _0x59f914=_0x59ca18;_0x2a5be0=_0x3657ac['target'][_0x59f914(0x14f)](),(_0x2a5be0===a88_0x5c5dd4['LOADED']||_0x2a5be0===a88_0x5c5dd4[_0x59f914(0x15a)])&&(drawIcon(_0x360346,_0x272d7c[_0x59f914(0x167)](0x60),_0x565f1e),_0x19c0f8[_0x18d9ac]=_0x11ee83[_0x59f914(0x14c)](),_0x41834d(_0x11ee83['toDataURL']()));}));});else{if(_0x597409){const _0x5e1ac8=a88_0x7647d9(_0x597409,{'font':'bold\x20'+_0x565f1e+'px\x20sans-serif'});drawIcon(_0x360346,_0x5e1ac8,_0x565f1e);}}return _0x19c0f8[_0x18d9ac]=_0x11ee83['toDataURL'](),_0x11ee83[_0x4ab58d(0x14c)]();}export default PinBuilder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a89_0x2e486d=a89_0x2f67;function a89_0x2f67(_0x3439b8,_0x22ca36){const _0x1bd97b=a89_0x1bd9();return a89_0x2f67=function(_0x2f6751,_0x53169f){_0x2f6751=_0x2f6751-0xc2;let _0x550860=_0x1bd97b[_0x2f6751];return _0x550860;},a89_0x2f67(_0x3439b8,_0x22ca36);}(function(_0x4b18b0,_0x476d5b){const _0x10a0e9=a89_0x2f67,_0xd6cc1f=_0x4b18b0();while(!![]){try{const _0x106a9e=-parseInt(_0x10a0e9(0xce))/0x1+-parseInt(_0x10a0e9(0xdf))/0x2+parseInt(_0x10a0e9(0xcd))/0x3+-parseInt(_0x10a0e9(0xd7))/0x4+-parseInt(_0x10a0e9(0xc5))/0x5*(-parseInt(_0x10a0e9(0xc2))/0x6)+-parseInt(_0x10a0e9(0xda))/0x7+parseInt(_0x10a0e9(0xca))/0x8;if(_0x106a9e===_0x476d5b)break;else _0xd6cc1f['push'](_0xd6cc1f['shift']());}catch(_0x2e1aec){_0xd6cc1f['push'](_0xd6cc1f['shift']());}}}(a89_0x1bd9,0x3e575));function a89_0x1bd9(){const _0x4fcc3e=['_listener','getImageState','11344ndQChd','_icon','options','3032071IHTBSN','fromText','then','ERROR','IDLE','466050vTqoXd','listenImageChange','error','1702830kvWBJu','markerLabel','markerColor','5WthhGi','set','getImage','markerSize','target','7115416poqWCm','_imageState','warn','490740cbpWXf','412449iHuYJD','loadIcon','load','LOADED','get','dispatchEvent','image'];a89_0x1bd9=function(){return _0x4fcc3e;};return a89_0x1bd9();}import a89_0x5af3da from'./PinBuilder';import{Icon}from'ol/style';import a89_0x2e3f4b from'ol/ImageState';import a89_0x5b8e7e from'ol/events/Event';import{shared as a89_0x356f1c}from'./ImageCache';export default class PinIcon{constructor(_0x2ccab8){const _0x3cc0a0=a89_0x2f67;this[_0x3cc0a0(0xd9)]=_0x2ccab8||{},this['_imageState']=a89_0x2e3f4b['IDLE'],this[_0x3cc0a0(0xd8)]=a89_0x356f1c[_0x3cc0a0(0xd2)](this[_0x3cc0a0(0xd9)]),this[_0x3cc0a0(0xd8)]&&(this[_0x3cc0a0(0xcb)]=a89_0x2e3f4b[_0x3cc0a0(0xd1)]);}[a89_0x2e486d(0xd0)](){const _0x4f0e2d=a89_0x2e486d;try{let _0x5daf9f,_0x57203c=new a89_0x5af3da();if(this[_0x4f0e2d(0xd9)][_0x4f0e2d(0xc3)])_0x5daf9f=_0x57203c[_0x4f0e2d(0xdb)](this[_0x4f0e2d(0xd9)]['markerLabel'],this['options'][_0x4f0e2d(0xc4)],this['options'][_0x4f0e2d(0xc8)]||0x30);else this['options'][_0x4f0e2d(0xd4)]&&(_0x5daf9f=_0x57203c['fromUrl'](this[_0x4f0e2d(0xd9)][_0x4f0e2d(0xd4)],this[_0x4f0e2d(0xd9)]['markerColor'],this[_0x4f0e2d(0xd9)][_0x4f0e2d(0xc8)]||0x30));Promise['resolve'](_0x5daf9f)[_0x4f0e2d(0xdc)](_0x3fd56f=>{const _0x4de58c=_0x4f0e2d;this[_0x4de58c(0xcf)](_0x3fd56f);})['catch'](_0x450187=>{const _0x477810=_0x4f0e2d;console[_0x477810(0xcc)](_0x450187),this['_imageState']=a89_0x2e3f4b[_0x477810(0xdd)],this[_0x477810(0xd3)](_0x477810(0xe1));});}catch(_0x44aa95){console[_0x4f0e2d(0xcc)](_0x44aa95),this[_0x4f0e2d(0xcb)]=a89_0x2e3f4b[_0x4f0e2d(0xdd)],this[_0x4f0e2d(0xd3)](_0x4f0e2d(0xe1));}}[a89_0x2e486d(0xcf)](_0x335611){const _0x5135d3=a89_0x2e486d;this[_0x5135d3(0xd8)]=new Icon({'src':_0x335611}),a89_0x356f1c[_0x5135d3(0xc6)](this[_0x5135d3(0xd9)],this['_icon']);let _0x4a9a96=this[_0x5135d3(0xd8)][_0x5135d3(0xd6)]();_0x4a9a96===a89_0x2e3f4b[_0x5135d3(0xd1)]||_0x4a9a96===a89_0x2e3f4b[_0x5135d3(0xdd)]?(this[_0x5135d3(0xcb)]=this[_0x5135d3(0xd8)][_0x5135d3(0xd6)](),this['dispatchEvent']('load')):(_0x4a9a96===a89_0x2e3f4b[_0x5135d3(0xde)]&&this[_0x5135d3(0xd8)][_0x5135d3(0xd0)](),this[_0x5135d3(0xd8)][_0x5135d3(0xe0)](_0xfe9476=>{const _0x31222c=_0x5135d3;_0x4a9a96=_0xfe9476[_0x31222c(0xc9)][_0x31222c(0xd6)](),(_0x4a9a96===a89_0x2e3f4b[_0x31222c(0xd1)]||_0x4a9a96===a89_0x2e3f4b[_0x31222c(0xdd)])&&(this[_0x31222c(0xcb)]=this[_0x31222c(0xd8)][_0x31222c(0xd6)](),this[_0x31222c(0xd3)](_0x31222c(0xd0)));}));}['getImageState'](){const _0x2998b3=a89_0x2e486d;return this[_0x2998b3(0xcb)];}[a89_0x2e486d(0xc7)](){const _0x83f17b=a89_0x2e486d;var _0x13eaa6;return(_0x13eaa6=this[_0x83f17b(0xd8)])===null||_0x13eaa6===void 0x0?void 0x0:_0x13eaa6['getImage']();}['listenImageChange'](_0x3500f4){this['_listener']=_0x3500f4;}[a89_0x2e486d(0xd3)](_0x355139){const _0x8b0c45=a89_0x2e486d;if(this[_0x8b0c45(0xd5)]){let _0x11e95b=new a89_0x5b8e7e(_0x355139);_0x11e95b['target']=this,this[_0x8b0c45(0xd5)](_0x11e95b);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x298730,_0x3adc55){const _0x3d2608=a90_0x3738,_0x39dc74=_0x298730();while(!![]){try{const _0x401eaf=parseInt(_0x3d2608(0x1e4))/0x1*(-parseInt(_0x3d2608(0x1fd))/0x2)+-parseInt(_0x3d2608(0x1f9))/0x3*(-parseInt(_0x3d2608(0x1f2))/0x4)+parseInt(_0x3d2608(0x1db))/0x5+parseInt(_0x3d2608(0x1dd))/0x6*(-parseInt(_0x3d2608(0x1e9))/0x7)+parseInt(_0x3d2608(0x1fb))/0x8+parseInt(_0x3d2608(0x20b))/0x9+parseInt(_0x3d2608(0x1ec))/0xa*(parseInt(_0x3d2608(0x1dc))/0xb);if(_0x401eaf===_0x3adc55)break;else _0x39dc74['push'](_0x39dc74['shift']());}catch(_0x206a22){_0x39dc74['push'](_0x39dc74['shift']());}}}(a90_0x1bef,0x1b582));function measureText(_0x2684dc,_0x46b91e,_0x274981,_0x372c74,_0x566698){const _0x3af307=a90_0x3738,_0x309c6a=_0x2684dc['measureText'](_0x46b91e),_0x445547=!/\S/[_0x3af307(0x209)](_0x46b91e);if(!_0x445547&&document[_0x3af307(0x200)]){const _0x372f55=document[_0x3af307(0x200)]['getComputedStyle'](_0x2684dc['canvas'])[_0x3af307(0x1ee)](_0x3af307(0x1e2))[_0x3af307(0x1fe)]('px',''),_0x5ed788=document[_0x3af307(0x1ef)](_0x3af307(0x20a)),_0x1dff20=0x64,_0x4a5971=_0x309c6a[_0x3af307(0x1ed)]+_0x1dff20|0x0,_0x46a97c=0x3*(_0x372f55-0x0),_0x4d8cbc=_0x46a97c/0x2;_0x5ed788[_0x3af307(0x1ed)]=_0x4a5971,_0x5ed788['height']=_0x46a97c;const _0x5283b5=_0x5ed788[_0x3af307(0x1f7)]('2d');if(!_0x5283b5)return{};_0x5283b5[_0x3af307(0x1f6)]=_0x274981,_0x5283b5[_0x3af307(0x1e0)]=_0x3af307(0x1f4),_0x5283b5[_0x3af307(0x1da)](0x0,0x0,_0x5ed788[_0x3af307(0x1ed)]+0x1,_0x5ed788[_0x3af307(0x20f)]+0x1);_0x372c74&&(_0x5283b5[_0x3af307(0x210)]='black',_0x5283b5['lineWidth']=_0x2684dc[_0x3af307(0x1d8)],_0x5283b5[_0x3af307(0x20d)](_0x46b91e,_0x1dff20/0x2,_0x4d8cbc));_0x566698&&(_0x5283b5[_0x3af307(0x1e0)]=_0x3af307(0x1e3),_0x5283b5[_0x3af307(0x20c)](_0x46b91e,_0x1dff20/0x2,_0x4d8cbc));const _0x1f3a46=_0x5283b5[_0x3af307(0x1e8)](0x0,0x0,_0x4a5971,_0x46a97c)[_0x3af307(0x1de)],_0x246bf5=_0x1f3a46[_0x3af307(0x205)],_0x55c82c=_0x4a5971*0x4;let _0x379d96,_0x5a7420,_0xd79f2=0x0,_0x5d4b33=0x0;for(_0x379d96=0x0;_0x379d96<_0x246bf5;++_0x379d96){if(_0x1f3a46[_0x379d96]!==0xff){_0xd79f2=_0x379d96/_0x55c82c|0x0;break;}}for(_0x379d96=_0x246bf5-0x1;_0x379d96>=0x0;--_0x379d96){if(_0x1f3a46[_0x379d96]!==0xff){_0x5d4b33=_0x379d96/_0x55c82c|0x0;break;}}let _0x569dd5=-0x1;for(_0x379d96=0x0;_0x379d96<_0x4a5971&&_0x569dd5===-0x1;++_0x379d96){for(_0x5a7420=0x0;_0x5a7420<_0x46a97c;++_0x5a7420){const _0x12614a=_0x379d96*0x4+_0x5a7420*_0x55c82c;if(_0x1f3a46[_0x12614a]!==0xff||_0x1f3a46[_0x12614a+0x1]!==0xff||_0x1f3a46[_0x12614a+0x2]!==0xff||_0x1f3a46[_0x12614a+0x3]!==0xff){_0x569dd5=_0x379d96;break;}}}return{'width':_0x309c6a[_0x3af307(0x1ed)],'height':_0x5d4b33-_0xd79f2,'ascent':_0x4d8cbc-_0xd79f2,'descent':_0x5d4b33-_0x4d8cbc,'minx':_0x569dd5-_0x1dff20/0x2};}return{'width':_0x309c6a[_0x3af307(0x1ed)],'height':0x0,'ascent':0x0,'descent':0x0,'minx':0x0};}let imageSmoothingEnabledName='';function writeTextToCanvas(_0x553e0f,_0x40e565){const _0x10bfd9=a90_0x3738;if(!_0x553e0f)throw new Error(_0x10bfd9(0x1df));if(_0x553e0f==='')return undefined;_0x40e565=defaultValue(_0x40e565,{});const _0x2d34f2=defaultValue(_0x40e565[_0x10bfd9(0x1f6)],_0x10bfd9(0x207)),_0x527f2d=defaultValue(_0x40e565['stroke'],![]),_0x8274c1=defaultValue(_0x40e565[_0x10bfd9(0x1f8)],!![]),_0x28f419=defaultValue(_0x40e565[_0x10bfd9(0x203)],0x1),_0x41978b=defaultValue(_0x40e565[_0x10bfd9(0x208)],'#00000000'),_0x26fcea=defaultValue(_0x40e565['padding'],0x0),_0x145a2e=_0x26fcea*0x2,_0x1a82ba=document[_0x10bfd9(0x1ef)](_0x10bfd9(0x20a));_0x1a82ba[_0x10bfd9(0x1ed)]=0x1,_0x1a82ba[_0x10bfd9(0x20f)]=0x1,_0x1a82ba[_0x10bfd9(0x1ea)][_0x10bfd9(0x1f6)]=_0x2d34f2;const _0x3b2daa=_0x1a82ba[_0x10bfd9(0x1f7)]('2d');if(!imageSmoothingEnabledName&&_0x3b2daa){if(_0x3b2daa['imageSmoothingEnabled'])imageSmoothingEnabledName=_0x10bfd9(0x1ff);else{if(_0x3b2daa['mozImageSmoothingEnabled'])imageSmoothingEnabledName=_0x10bfd9(0x1d9);else{if(_0x3b2daa[_0x10bfd9(0x1fc)])imageSmoothingEnabledName=_0x10bfd9(0x1fc);else _0x3b2daa[_0x10bfd9(0x1f5)]&&(imageSmoothingEnabledName=_0x10bfd9(0x1f5));}}}_0x3b2daa['font']=_0x2d34f2,_0x3b2daa[_0x10bfd9(0x204)]='round',_0x3b2daa[_0x10bfd9(0x1d8)]=_0x28f419,_0x3b2daa[imageSmoothingEnabledName]=![],_0x1a82ba[_0x10bfd9(0x1ea)][_0x10bfd9(0x1fa)]=_0x10bfd9(0x20e),document[_0x10bfd9(0x1e5)][_0x10bfd9(0x1e7)](_0x1a82ba);const _0x1e5456=measureText(_0x3b2daa,_0x553e0f,_0x2d34f2,_0x527f2d,_0x8274c1);if(!_0x1e5456)return;_0x1a82ba[_0x10bfd9(0x1eb)]=_0x1e5456,document['body'][_0x10bfd9(0x1f3)](_0x1a82ba),_0x1a82ba[_0x10bfd9(0x1ea)][_0x10bfd9(0x1fa)]='';const _0x5bc8af=-(_0x1e5456[_0x10bfd9(0x1e1)]?_0x1e5456[_0x10bfd9(0x1e1)]:0x0),_0x54dbfe=Math[_0x10bfd9(0x202)](_0x1e5456[_0x10bfd9(0x1ed)])+_0x5bc8af+_0x145a2e,_0x12077d=(_0x1e5456[_0x10bfd9(0x20f)]?_0x1e5456['height']:0x0)+_0x145a2e,_0x53ff2a=_0x12077d-(_0x1e5456['ascent']?_0x1e5456[_0x10bfd9(0x206)]:0x0)+_0x26fcea,_0x323ab9=_0x12077d-_0x53ff2a+_0x145a2e;return _0x1a82ba['width']=_0x54dbfe,_0x1a82ba[_0x10bfd9(0x20f)]=_0x12077d,_0x3b2daa[_0x10bfd9(0x1f6)]=_0x2d34f2,_0x3b2daa[_0x10bfd9(0x204)]=_0x10bfd9(0x1f0),_0x3b2daa['lineWidth']=_0x28f419,_0x3b2daa[imageSmoothingEnabledName]=![],_0x41978b!==_0x10bfd9(0x201)&&(_0x3b2daa[_0x10bfd9(0x1e0)]=_0x41978b,_0x3b2daa[_0x10bfd9(0x1da)](0x0,0x0,_0x1a82ba['width'],_0x1a82ba[_0x10bfd9(0x20f)])),_0x527f2d&&(_0x3b2daa[_0x10bfd9(0x210)]=defaultValue(_0x40e565[_0x10bfd9(0x1d7)],_0x10bfd9(0x1e6)),_0x3b2daa[_0x10bfd9(0x20d)](_0x553e0f,_0x5bc8af+_0x26fcea,_0x323ab9)),_0x8274c1&&(_0x3b2daa[_0x10bfd9(0x1e0)]=defaultValue(_0x40e565[_0x10bfd9(0x1f1)],'#FFFFFF'),_0x3b2daa['fillText'](_0x553e0f,_0x5bc8af+_0x26fcea,_0x323ab9)),_0x1a82ba;}function defaultValue(_0x1f4b29,_0x239e0e){if(_0x1f4b29!==undefined&&_0x1f4b29!==null)return _0x1f4b29;return _0x239e0e;}function a90_0x1bef(){const _0x3fda9f=['#00000000','ceil','strokeWidth','lineJoin','length','ascent','10px\x20sans-serif','backgroundColor','test','canvas','143253tHhBpE','fillText','strokeText','hidden','height','strokeStyle','strokeColor','lineWidth','mozImageSmoothingEnabled','fillRect','902175PBGyiW','134948FGtFYF','6DgcgNL','data','text\x20is\x20required.','fillStyle','minx','font-size','black','3CaqsnX','body','#000000','appendChild','getImageData','632695ngfzcE','style','dimensions','10tlpfls','width','getPropertyValue','createElement','round','fillColor','66468pPLWWH','removeChild','white','msImageSmoothingEnabled','font','getContext','fill','3reefLD','visibility','336512unhsQB','webkitImageSmoothingEnabled','43276DNsBqG','replace','imageSmoothingEnabled','defaultView'];a90_0x1bef=function(){return _0x3fda9f;};return a90_0x1bef();}function a90_0x3738(_0x30c09d,_0x572bc5){const _0x1bef1c=a90_0x1bef();return a90_0x3738=function(_0x3738ef,_0x26b98e){_0x3738ef=_0x3738ef-0x1d7;let _0x4e2bad=_0x1bef1c[_0x3738ef];return _0x4e2bad;},a90_0x3738(_0x30c09d,_0x572bc5);}export default writeTextToCanvas;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a95_0x268d01=a95_0x5514;function a95_0x5514(_0x48f788,_0x573fce){const _0x24b323=a95_0x24b3();return a95_0x5514=function(_0x5514a7,_0x14a948){_0x5514a7=_0x5514a7-0x7e;let _0x556853=_0x24b323[_0x5514a7];return _0x556853;},a95_0x5514(_0x48f788,_0x573fce);}(function(_0x527907,_0x21b3e8){const _0x3ecce2=a95_0x5514,_0x226e16=_0x527907();while(!![]){try{const _0x261cd0=parseInt(_0x3ecce2(0x83))/0x1*(parseInt(_0x3ecce2(0x9c))/0x2)+parseInt(_0x3ecce2(0x81))/0x3+parseInt(_0x3ecce2(0x89))/0x4*(parseInt(_0x3ecce2(0x86))/0x5)+parseInt(_0x3ecce2(0x94))/0x6+-parseInt(_0x3ecce2(0x97))/0x7+-parseInt(_0x3ecce2(0x91))/0x8+-parseInt(_0x3ecce2(0x90))/0x9;if(_0x261cd0===_0x21b3e8)break;else _0x226e16['push'](_0x226e16['shift']());}catch(_0x5a8fa1){_0x226e16['push'](_0x226e16['shift']());}}}(a95_0x24b3,0x552d1));import a95_0x134b55 from'ol/format/EsriJSON';import a95_0x8e7246 from'ol/format/GeoJSON';import{getPointResolution}from'ol/proj';function a95_0x24b3(){const _0x13e121=['mapExtent','10LfPrzt','layerDefs','run','1265470djMauT','returnM','getView','8HHxVhi','_setGeometryParams','url','geometry','calculateExtent','time','returnZ','6479838bvfqcu','1282888NXPhOU','imageDisplay','returnGeometry','475068dzjlCn','getSize','getCode','1148581jaGIdb','getCenter','request','path','identify','27680DRopHO','getProjection','valueOf','params','inSR','tolerance','resolution','2008623PkhpjC'];a95_0x24b3=function(){return _0x13e121;};return a95_0x24b3();}import a95_0x2b3a12 from'./Task';import{appendPath}from'../../UrlUtil';import{getEsriSpatialReference}from'../../EsriUtil';export default class Identify extends a95_0x2b3a12{constructor(_0x1ca8c6,_0x3e044c,_0x364414){const _0x5d96d5=a95_0x5514;super(_0x1ca8c6,_0x3e044c,_0x364414),this['path']=_0x5d96d5(0x9b),this[_0x5d96d5(0x9f)]={'layers':'all','tolerance':0x0,'returnGeometry':!![]},this[_0x5d96d5(0x7f)]=0x3,this[_0x5d96d5(0x80)]=0x0,this['url']=appendPath(this[_0x5d96d5(0x8b)],this[_0x5d96d5(0x9a)]),_0x3e044c&&((_0x3e044c[_0x5d96d5(0x93)]===!![]||_0x3e044c[_0x5d96d5(0x93)]===![])&&(this[_0x5d96d5(0x9f)][_0x5d96d5(0x93)]=_0x3e044c[_0x5d96d5(0x93)]),_0x3e044c['layers']&&(this['params']['layers']=_0x3e044c['layers']),_0x3e044c[_0x5d96d5(0x84)]&&(this[_0x5d96d5(0x9f)][_0x5d96d5(0x84)]=_0x3e044c[_0x5d96d5(0x84)]),(_0x3e044c['returnZ']===!![]||_0x3e044c[_0x5d96d5(0x8f)]===![])&&(this[_0x5d96d5(0x9f)][_0x5d96d5(0x8f)]=_0x3e044c['returnZ']),(_0x3e044c['returnM']===!![]||_0x3e044c['returnM']===![])&&(this[_0x5d96d5(0x9f)][_0x5d96d5(0x87)]=_0x3e044c['returnM']));}['at'](_0x280e1e,_0x28665f){const _0x250dbe=a95_0x5514;let _0x3cbf29,_0xa5331b;const _0x2588c0=new a95_0x8e7246();_0x3cbf29=_0x280e1e,_0xa5331b=getEsriSpatialReference(_0x28665f[_0x250dbe(0x88)]()[_0x250dbe(0x9d)]()['getCode']());const _0x2d62fc=_0x28665f[_0x250dbe(0x95)]();_0x2d62fc&&(this[_0x250dbe(0x9f)][_0x250dbe(0x92)]=[_0x2d62fc[0x0],_0x2d62fc[0x1],0x60]);this[_0x250dbe(0x9f)]['sr']=_0xa5331b;const _0x25146c=_0x28665f[_0x250dbe(0x88)]()[_0x250dbe(0x8d)](_0x28665f[_0x250dbe(0x95)]());this[_0x250dbe(0x9f)][_0x250dbe(0x82)]={'xmin':_0x25146c[0x0],'ymin':_0x25146c[0x1],'xmax':_0x25146c[0x2],'ymax':_0x25146c[0x3],'spatialReference':_0xa5331b};const _0x5cc6cb=_0x28665f[_0x250dbe(0x88)]()['getResolution'](),_0x38ecc6=_0x28665f[_0x250dbe(0x88)]()[_0x250dbe(0x98)]();return _0x5cc6cb&&_0x38ecc6&&(this['resolution']=getPointResolution(_0x28665f['getView']()[_0x250dbe(0x9d)](),_0x5cc6cb,_0x38ecc6)),this[_0x250dbe(0x8a)](_0x3cbf29,_0x28665f[_0x250dbe(0x88)]()[_0x250dbe(0x9d)]()[_0x250dbe(0x96)]()),this;}['between'](_0xff44ad,_0x570e9c){const _0x2b6306=a95_0x5514;return this['params'][_0x2b6306(0x8e)]=[_0xff44ad[_0x2b6306(0x9e)](),_0x570e9c['valueOf']()],this;}[a95_0x268d01(0x85)](){const _0x37021f=a95_0x268d01;this[_0x37021f(0x99)]();}[a95_0x268d01(0x8a)](_0x4f0ffc,_0x45b362){const _0x13f5e4=a95_0x268d01;var _0x442218=new a95_0x134b55();const _0x536317=_0x442218['writeGeometryObject'](_0x4f0ffc);this[_0x13f5e4(0x9f)][_0x13f5e4(0x7e)]=getEsriSpatialReference(_0x45b362),this[_0x13f5e4(0x9f)][_0x13f5e4(0x8c)]=_0x536317,this[_0x13f5e4(0x9f)]['geometryType']=this['geojsonTypeToArcGIS'](_0x4f0ffc['getType']());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0x3a6cb4=a96_0x1cdd;(function(_0x1e7a09,_0x22b987){const _0x555ec6=a96_0x1cdd,_0x5bb11d=_0x1e7a09();while(!![]){try{const _0x4687c9=-parseInt(_0x555ec6(0x174))/0x1*(-parseInt(_0x555ec6(0x16f))/0x2)+parseInt(_0x555ec6(0x14f))/0x3+-parseInt(_0x555ec6(0x158))/0x4+parseInt(_0x555ec6(0x151))/0x5*(-parseInt(_0x555ec6(0x15b))/0x6)+-parseInt(_0x555ec6(0x161))/0x7*(-parseInt(_0x555ec6(0x170))/0x8)+-parseInt(_0x555ec6(0x189))/0x9*(parseInt(_0x555ec6(0x155))/0xa)+parseInt(_0x555ec6(0x178))/0xb*(-parseInt(_0x555ec6(0x167))/0xc);if(_0x4687c9===_0x22b987)break;else _0x5bb11d['push'](_0x5bb11d['shift']());}catch(_0x4e2265){_0x5bb11d['push'](_0x5bb11d['shift']());}}}(a96_0x1582,0x929a1));import a96_0x17d048 from'ol/format/EsriJSON';import a96_0x5caf5d from'./Task';function a96_0x1582(){const _0x305e7e=['4550yKrZLu','orderByFields','code','400','No\x20features\x20found','apply','12TUpCyg','esriSpatialRelCrosses','spatialRel','getTime','maxAllowableOffset','time','inSR','_cleanParams','2YWRigq','11504QDGyOK','status','nearby','esriSpatialRelOverlaps','331652quNtGq','path','distance','_setGeometryParams','441749YVxwMd','forEach','getSize','features','esriSpatialRelIntersects','between','returnCountOnly','esriSpatialRelIndexIntersects','valueOf','query','esriSpatialRelTouches','run','indexIntersects','request','esriSpatialRelContains','where','returnM','30231QEmRPr','bboxIntersects','ASC','crosses','_trapSQLerrors','geometry','geojsonTypeToArcGIS','one\x20common\x20syntax\x20error\x20in\x20query\x20requests\x20is\x20encasing\x20string\x20values\x20in\x20double\x20quotes\x20instead\x20of\x20single\x20quotes','url','returnDistinctValues','getType','units','getExtent','catch','data','touches','esriSpatialRelEnvelopeIntersects','returnZ','576249IJxlHh','/query','22675SEiSWc','geometryType','push','simplify','1330RflfqE','returnGeometry','distinct','32992tzAXwt','join','returnIdsOnly','480fYXxlt','params','outSR','warn','within','contains'];a96_0x1582=function(){return _0x305e7e;};return a96_0x1582();}function a96_0x1cdd(_0x520701,_0x34d651){const _0x15826b=a96_0x1582();return a96_0x1cdd=function(_0x1cdd6e,_0x473f13){_0x1cdd6e=_0x1cdd6e-0x141;let _0xa7ad15=_0x15826b[_0x1cdd6e];return _0xa7ad15;},a96_0x1cdd(_0x520701,_0x34d651);}import{getEsriSpatialReference}from'../../EsriUtil';import{appendPath}from'../../UrlUtil';export default class Query extends a96_0x5caf5d{constructor(_0x891694,_0x38a8f4,_0x5186ac){const _0x395047=a96_0x1cdd;super(_0x891694,_0x38a8f4,_0x5186ac),this[_0x395047(0x175)]=_0x395047(0x181),this[_0x395047(0x15c)]={'returnGeometry':!![],'where':'1=1','outFields':'*','returnZ':![],'returnM':![],'t':new Date()[_0x395047(0x16a)]()},this[_0x395047(0x145)]=appendPath(this[_0x395047(0x145)],this[_0x395047(0x175)]),_0x38a8f4&&((_0x38a8f4[_0x395047(0x156)]===!![]||_0x38a8f4['returnGeometry']===![])&&(this[_0x395047(0x15c)][_0x395047(0x156)]=_0x38a8f4[_0x395047(0x156)]),_0x38a8f4[_0x395047(0x187)]&&(this['params']['where']=_0x38a8f4[_0x395047(0x187)]),_0x38a8f4['outSR']&&(this[_0x395047(0x15c)][_0x395047(0x15d)]=getEsriSpatialReference(_0x38a8f4[_0x395047(0x15d)])),(_0x38a8f4[_0x395047(0x14e)]===!![]||_0x38a8f4[_0x395047(0x14e)]===![])&&(this[_0x395047(0x15c)][_0x395047(0x14e)]=_0x38a8f4[_0x395047(0x14e)]),(_0x38a8f4['returnM']===!![]||_0x38a8f4[_0x395047(0x188)]===![])&&(this[_0x395047(0x15c)][_0x395047(0x188)]=_0x38a8f4['returnM']));}[a96_0x3a6cb4(0x15f)](_0x29742a,_0x333944){const _0x413bc5=a96_0x3a6cb4;return this['_setGeometryParams'](_0x29742a,_0x333944),this[_0x413bc5(0x15c)][_0x413bc5(0x169)]=_0x413bc5(0x186),this;}['intersects'](_0xca9c2,_0x5aac9e){const _0x3e11cf=a96_0x3a6cb4;return this['_setGeometryParams'](_0xca9c2,_0x5aac9e),this[_0x3e11cf(0x15c)]['spatialRel']=_0x3e11cf(0x17c),this;}[a96_0x3a6cb4(0x160)](_0x14a739,_0x210e99){const _0xb84115=a96_0x3a6cb4;return this[_0xb84115(0x177)](_0x14a739,_0x210e99),this['params'][_0xb84115(0x169)]='esriSpatialRelWithin',this;}[a96_0x3a6cb4(0x18c)](_0x436af2,_0x279830){const _0x4506f5=a96_0x3a6cb4;return this[_0x4506f5(0x177)](_0x436af2,_0x279830),this[_0x4506f5(0x15c)][_0x4506f5(0x169)]=_0x4506f5(0x168),this;}[a96_0x3a6cb4(0x14c)](_0x4f5ae6,_0x4e2608){const _0x12e3d5=a96_0x3a6cb4;return this['_setGeometryParams'](_0x4f5ae6,_0x4e2608),this['params'][_0x12e3d5(0x169)]=_0x12e3d5(0x182),this;}['overlaps'](_0x168cb5,_0x498057){const _0x174243=a96_0x3a6cb4;return this[_0x174243(0x177)](_0x168cb5,_0x498057),this[_0x174243(0x15c)]['spatialRel']=_0x174243(0x173),this;}[a96_0x3a6cb4(0x18a)](_0x2090c0,_0x2ed462){const _0x2c5b70=a96_0x3a6cb4;return this[_0x2c5b70(0x177)](_0x2090c0,_0x2ed462),this[_0x2c5b70(0x15c)]['spatialRel']=_0x2c5b70(0x14d),this;}[a96_0x3a6cb4(0x184)](_0x3213a5,_0x323e14){const _0x33155f=a96_0x3a6cb4;return this[_0x33155f(0x177)](_0x3213a5,_0x323e14),this[_0x33155f(0x15c)][_0x33155f(0x169)]=_0x33155f(0x17f),this;}[a96_0x3a6cb4(0x172)](_0x20905a,_0x1f439a,_0x31da02){const _0x1e8556=a96_0x3a6cb4;return this['_setGeometryParams'](_0x20905a,_0x1f439a),this[_0x1e8556(0x15c)]['spatialRel']=_0x1e8556(0x17c),this[_0x1e8556(0x15c)][_0x1e8556(0x148)]='esriSRUnit_Meter',this[_0x1e8556(0x15c)][_0x1e8556(0x176)]=_0x31da02,this;}[a96_0x3a6cb4(0x187)](_0xaa7783){const _0x1a4ad8=a96_0x3a6cb4;return this[_0x1a4ad8(0x15c)][_0x1a4ad8(0x187)]=_0xaa7783,this;}[a96_0x3a6cb4(0x17d)](_0x2e69de,_0x1e6fea){const _0x456dba=a96_0x3a6cb4;return this[_0x456dba(0x15c)][_0x456dba(0x16c)]=[_0x2e69de[_0x456dba(0x180)](),_0x1e6fea['valueOf']()],this;}[a96_0x3a6cb4(0x154)](_0xb03639,_0x443f2f){const _0x1d3001=a96_0x3a6cb4,_0x13d3ac=_0xb03639[_0x1d3001(0x149)]();var _0xd39700=Math['abs'](_0x13d3ac[0x2]-_0x13d3ac[0x0]);const _0x2a714e=_0xb03639[_0x1d3001(0x17a)]();if(_0x2a714e)return this[_0x1d3001(0x15c)][_0x1d3001(0x16b)]=_0xd39700/_0x2a714e[0x1]*_0x443f2f,this;}['orderBy'](_0x3f91b7,_0x3ed21a){const _0x1caa04=a96_0x3a6cb4;return _0x3ed21a=_0x3ed21a||_0x1caa04(0x18b),this[_0x1caa04(0x15c)][_0x1caa04(0x162)]=this[_0x1caa04(0x15c)][_0x1caa04(0x162)]?this[_0x1caa04(0x15c)][_0x1caa04(0x162)]+',':'',this[_0x1caa04(0x15c)][_0x1caa04(0x162)]+=[_0x3f91b7,_0x3ed21a][_0x1caa04(0x159)]('\x20'),this;}async[a96_0x3a6cb4(0x183)](){const _0xeab281=a96_0x3a6cb4;this[_0xeab281(0x16e)]();const _0x4c3794=await this[_0xeab281(0x185)]()[_0xeab281(0x14a)](_0x1295a2=>{throw new Error(_0x1295a2);});if(_0x4c3794[_0xeab281(0x171)]!==0xc8)throw new Error(_0xeab281(0x165));if(_0x4c3794[_0xeab281(0x14b)]&&_0x4c3794[_0xeab281(0x14b)][_0xeab281(0x17b)]&&_0x4c3794['data'][_0xeab281(0x17b)]['length']>0x0){var _0x499026=new a96_0x17d048();let _0x360d6d=[];return _0x4c3794[_0xeab281(0x14b)][_0xeab281(0x17b)][_0xeab281(0x179)](_0x1a48ea=>{const _0xf13c40=_0xeab281,_0x36263c=_0x499026['readFeature'](_0x1a48ea);_0x360d6d[_0xf13c40(0x153)](_0x36263c);}),_0x360d6d;}return[];}['count'](){const _0x3d1ebe=a96_0x3a6cb4;this[_0x3d1ebe(0x16e)](),this[_0x3d1ebe(0x15c)]['returnCountOnly']=!![],this[_0x3d1ebe(0x185)]();}['ids'](){const _0x21135a=a96_0x3a6cb4;this[_0x21135a(0x16e)](),this[_0x21135a(0x15c)]['returnIdsOnly']=!![],this[_0x21135a(0x185)]();}[a96_0x3a6cb4(0x157)](){const _0x352275=a96_0x3a6cb4;return this['params'][_0x352275(0x156)]=![],this[_0x352275(0x15c)][_0x352275(0x146)]=!![],this;}['layer'](_0x265c2a){const _0x27e413=a96_0x3a6cb4;return this[_0x27e413(0x175)]=_0x265c2a+_0x27e413(0x150),this;}[a96_0x3a6cb4(0x141)](_0x4b5820){const _0xaed71c=a96_0x3a6cb4;_0x4b5820&&(_0x4b5820[_0xaed71c(0x163)]===_0xaed71c(0x164)&&console[_0xaed71c(0x15e)][_0xaed71c(0x166)](_0xaed71c(0x144)));}['_cleanParams'](){const _0x43b62e=a96_0x3a6cb4;delete this[_0x43b62e(0x15c)][_0x43b62e(0x15a)],delete this[_0x43b62e(0x15c)]['returnExtentOnly'],delete this[_0x43b62e(0x15c)][_0x43b62e(0x17e)];}['_setGeometryParams'](_0x3c48dc,_0x4efc80){const _0x55f752=a96_0x3a6cb4;if(!_0x3c48dc)return;var _0x1591e0=new a96_0x17d048();const _0x532d2d=_0x1591e0['writeGeometryObject'](_0x3c48dc);this[_0x55f752(0x15c)][_0x55f752(0x16d)]=getEsriSpatialReference(_0x4efc80),this[_0x55f752(0x15c)][_0x55f752(0x142)]=_0x532d2d,this[_0x55f752(0x15c)][_0x55f752(0x152)]=this[_0x55f752(0x143)](_0x3c48dc[_0x55f752(0x147)]());}}
|
package/utils/tasks/esri/Task.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a97_0x4037(_0xb2fc60,_0x87ddf2){var _0x5c1a25=a97_0x5c1a();return a97_0x4037=function(_0x403740,_0x12dba0){_0x403740=_0x403740-0x1c7;var _0x5c6d50=_0x5c1a25[_0x403740];return _0x5c6d50;},a97_0x4037(_0xb2fc60,_0x87ddf2);}var a97_0x23d4e9=a97_0x4037;(function(_0x5a85bc,_0x930f79){var _0x45e3df=a97_0x4037,_0x3f4b8a=_0x5a85bc();while(!![]){try{var _0x427af0=parseInt(_0x45e3df(0x1df))/0x1*(-parseInt(_0x45e3df(0x1cf))/0x2)+-parseInt(_0x45e3df(0x1d0))/0x3*(parseInt(_0x45e3df(0x1e2))/0x4)+-parseInt(_0x45e3df(0x1cd))/0x5*(parseInt(_0x45e3df(0x1ea))/0x6)+parseInt(_0x45e3df(0x1c7))/0x7*(-parseInt(_0x45e3df(0x1d2))/0x8)+parseInt(_0x45e3df(0x1d8))/0x9+-parseInt(_0x45e3df(0x1e3))/0xa*(parseInt(_0x45e3df(0x1e7))/0xb)+parseInt(_0x45e3df(0x1d5))/0xc;if(_0x427af0===_0x930f79)break;else _0x3f4b8a['push'](_0x3f4b8a['shift']());}catch(_0x12d131){_0x3f4b8a['push'](_0x3f4b8a['shift']());}}}(a97_0x5c1a,0xd9513));function a97_0x5c1a(){var _0x1cc0d3=['esriGeometryPolyline','hasOwnProperty','url','prototype','10veJPxY','esriGeometryMultipoint','10hbdCtt','921EqMGiR','call','240104FEhqYy','MultiPolygon','serialize','46373340FCvIWJ','json','esriGeometryPolygon','6736617fuwyxK','join','post','returnUnformattedValues','[object\x20Object]','stringify','toString','62709NhFmDO','LineString','method','2488KALcTD','10cRRmif','GET','JSONP','[object\x20Array]','15313111HFsdpv','MultiPoint','params','3047628psYvrl','189kRjvVl','valueOf'];a97_0x5c1a=function(){return _0x1cc0d3;};return a97_0x5c1a();}import a97_0x165a6c from'../../AxiosUtil';import{jsonp,stringify}from'../../AxiosUtil';export default class Task{constructor(_0x33f797,_0x2f104c,_0x58fdbf){var _0x32c56b=a97_0x4037;this['url']=_0x33f797,this['params']=_0x2f104c||{},this['method']=!_0x58fdbf?_0x32c56b(0x1e4):_0x58fdbf;}['geojsonTypeToArcGIS'](_0x3d2817){var _0x160250=a97_0x4037,_0x356365;switch(_0x3d2817){case'Point':_0x356365='esriGeometryPoint';break;case _0x160250(0x1e8):_0x356365=_0x160250(0x1ce);break;case _0x160250(0x1e0):_0x356365=_0x160250(0x1c9);break;case'MultiLineString':_0x356365=_0x160250(0x1c9);break;case'Polygon':_0x356365=_0x160250(0x1d7);break;case _0x160250(0x1d3):_0x356365='esriGeometryPolygon';break;}return _0x356365;}['isArcgisOnline'](_0x56700b){return/^(?!.*utility\.arcgis\.com).*\.arcgis\.com.*FeatureServer/i['test'](_0x56700b);}[a97_0x23d4e9(0x1d4)](_0x9abbfb){var _0x3bb83e=a97_0x23d4e9,_0x15fb2c='';_0x9abbfb['f']=_0x9abbfb['f']||_0x3bb83e(0x1d6);for(var _0x47e347 in _0x9abbfb){if(Object[_0x3bb83e(0x1cc)][_0x3bb83e(0x1ca)]['call'](_0x9abbfb,_0x47e347)){var _0x6f2c97=_0x9abbfb[_0x47e347],_0x23f35d=Object[_0x3bb83e(0x1cc)][_0x3bb83e(0x1de)][_0x3bb83e(0x1d1)](_0x6f2c97),_0x437795;_0x15fb2c['length']&&(_0x15fb2c+='&');if(_0x23f35d===_0x3bb83e(0x1e6))_0x437795=Object[_0x3bb83e(0x1cc)][_0x3bb83e(0x1de)][_0x3bb83e(0x1d1)](_0x6f2c97[0x0])===_0x3bb83e(0x1dc)?JSON[_0x3bb83e(0x1dd)](_0x6f2c97):_0x6f2c97[_0x3bb83e(0x1d9)](',');else{if(_0x23f35d===_0x3bb83e(0x1dc))_0x437795=JSON[_0x3bb83e(0x1dd)](_0x6f2c97);else _0x23f35d==='[object\x20Date]'?_0x437795=_0x6f2c97[_0x3bb83e(0x1c8)]():_0x437795=_0x6f2c97;}_0x15fb2c+=encodeURIComponent(_0x47e347)+'='+encodeURIComponent(_0x437795);}}return _0x15fb2c;}['format'](_0x1e38b5){var _0x5da5f4=a97_0x23d4e9;return this['params'][_0x5da5f4(0x1db)]=!_0x1e38b5,this;}async['request'](){var _0x1b8976=a97_0x23d4e9,_0x4ac002=this[_0x1b8976(0x1d4)](this[_0x1b8976(0x1e9)]);const _0x285267=this[_0x1b8976(0x1cb)]['indexOf']('?')>-0x1?this['url']+'&'+_0x4ac002:this[_0x1b8976(0x1cb)]+'?'+_0x4ac002;if(this[_0x1b8976(0x1e1)]===_0x1b8976(0x1e4))return a97_0x165a6c['get'](_0x285267);else{if(this[_0x1b8976(0x1e1)]===_0x1b8976(0x1e5))return jsonp(_0x285267);else{const _0x3639b9=stringify(this[_0x1b8976(0x1e9)]);return a97_0x165a6c[_0x1b8976(0x1da)](this[_0x1b8976(0x1cb)],_0x3639b9);}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99_0xe80cc7=a99_0x1c37;(function(_0x2b940e,_0x325fe4){const _0x10d831=a99_0x1c37,_0x53b80c=_0x2b940e();while(!![]){try{const _0x3f7d53=parseInt(_0x10d831(0x176))/0x1*(parseInt(_0x10d831(0x17c))/0x2)+parseInt(_0x10d831(0x15c))/0x3+-parseInt(_0x10d831(0x159))/0x4*(-parseInt(_0x10d831(0x172))/0x5)+parseInt(_0x10d831(0x166))/0x6*(-parseInt(_0x10d831(0x15a))/0x7)+parseInt(_0x10d831(0x15f))/0x8*(parseInt(_0x10d831(0x16d))/0x9)+parseInt(_0x10d831(0x17a))/0xa+-parseInt(_0x10d831(0x167))/0xb*(parseInt(_0x10d831(0x174))/0xc);if(_0x3f7d53===_0x325fe4)break;else _0x53b80c['push'](_0x53b80c['shift']());}catch(_0x5c1a4a){_0x53b80c['push'](_0x53b80c['shift']());}}}(a99_0x325c,0x8b0a3));import{and,intersects}from'ol/format/filter';function a99_0x1c37(_0x1c050b,_0x49219f){const _0x325c51=a99_0x325c();return a99_0x1c37=function(_0x1c3773,_0x4bf24c){_0x1c3773=_0x1c3773-0x155;let _0x344f5d=_0x325c51[_0x1c3773];return _0x344f5d;},a99_0x1c37(_0x1c050b,_0x49219f);}import a99_0x27b9c8 from'../../format/CQL';function a99_0x325c(){const _0x2c45f4=['application/json','geometry','geometry\x20is\x20invalid','8024430fGHYEi','readFeature','238aWmMFx','geometry\x20is\x20required','srsName','where','tableName','_geoserverQuery','4usbQda','1517887blIgKA','map','1395672tpxSEl','queryParameters','geometryName','3318104QNFVmv','geoserver','then','serializeToString','url','stringify','the_geom','6eUxqKp','8495839cfvVxv','EPSG:4326','executeRaster','catch','read','1.1.1','9NeLtuk','srsName\x20is\x20required','writeGetFeature','POST','features','1846810JWNHJO','json','36qEPEdU','anonymous','8837FKaePu'];a99_0x325c=function(){return _0x2c45f4;};return a99_0x325c();}import a99_0x4d8eb1 from'ol/format/WFS';import a99_0x420025 from'ol/format/GeoJSON';import a99_0x1e3a3b from'ol/source/TileWMS';import{getGeometryCenter}from'../../GeometryUtil';export default class QueryTask{constructor(_0x45a2f4){this['queryParameters']={},this['url']=_0x45a2f4;}async[a99_0xe80cc7(0x169)](_0x6052f9){const _0x3106e4=a99_0xe80cc7,_0x1f8cb7=new a99_0x1e3a3b({'url':this[_0x3106e4(0x163)],'params':{'LAYERS':_0x6052f9[_0x3106e4(0x157)],'TILED':!![],'VERSION':_0x3106e4(0x16c)},'serverType':_0x3106e4(0x160),'crossOrigin':_0x3106e4(0x175)}),_0x3d995b=_0x6052f9['resolution']||0.001,_0xe8d137=_0x6052f9['geometry'];if(!_0xe8d137)throw new Error(_0x3106e4(0x17d));let _0x3392ea=getGeometryCenter(_0xe8d137);if(!_0x3392ea)throw new Error(_0x3106e4(0x179));const _0x2dbfd6=_0x1f8cb7['getFeatureInfoUrl'](_0x3392ea['getCoordinates'](),_0x3d995b,_0x3106e4(0x168),{'INFO_FORMAT':_0x3106e4(0x177)}),_0x269ca2=await fetch(_0x2dbfd6,{'method':_0x3106e4(0x170)}),_0x1f5f63=await _0x269ca2[_0x3106e4(0x173)]();let _0x33d28e=[];const _0x2da942=new a99_0x420025();return _0x33d28e=_0x1f5f63['features'][_0x3106e4(0x15b)](_0xc62bc3=>{const _0x56e4cc=_0x3106e4;return _0x2da942[_0x56e4cc(0x17b)](JSON[_0x56e4cc(0x164)](_0xc62bc3));}),_0x33d28e;}async['execute'](_0x2f362a){const _0x1b7ac3=a99_0xe80cc7;this[_0x1b7ac3(0x15d)]=_0x2f362a||{};const _0x5dbb47=this[_0x1b7ac3(0x15d)][_0x1b7ac3(0x15e)]||_0x1b7ac3(0x165);let _0x5186df=this[_0x1b7ac3(0x15d)]['where'],_0x3e8b18;_0x5186df&&(_0x3e8b18=new a99_0x27b9c8()['read'](_0x5186df));let _0x47b4fc=_0x3e8b18;if(this[_0x1b7ac3(0x15d)][_0x1b7ac3(0x178)]){if(!this['queryParameters'][_0x1b7ac3(0x155)])throw new Error(_0x1b7ac3(0x16e));const _0x5601a8=intersects(_0x5dbb47,this['queryParameters']['geometry']);_0x47b4fc=_0x3e8b18?and(_0x3e8b18,_0x5601a8):_0x5601a8;}let _0x36e497=new a99_0x4d8eb1()[_0x1b7ac3(0x16f)]({'srsName':this[_0x1b7ac3(0x15d)][_0x1b7ac3(0x155)],'featureNS':'','featurePrefix':'','featureTypes':[this['queryParameters'][_0x1b7ac3(0x157)]],'outputFormat':'application/json','geometryName':_0x5dbb47,'filter':_0x47b4fc});const _0x1af1cc=await fetch(this['url'],{'method':_0x1b7ac3(0x170),'body':new XMLSerializer()[_0x1b7ac3(0x162)](_0x36e497)}),_0x10911e=await _0x1af1cc['json']();let _0x449e28=[];const _0x2f08e1=new a99_0x420025();return _0x449e28=_0x10911e['features'][_0x1b7ac3(0x15b)](_0x59b551=>{const _0x5a54f0=_0x1b7ac3;return _0x2f08e1[_0x5a54f0(0x17b)](JSON[_0x5a54f0(0x164)](_0x59b551));}),_0x449e28;}[a99_0xe80cc7(0x158)](){const _0x235125=a99_0xe80cc7,_0x44a5f5=this[_0x235125(0x15d)][_0x235125(0x15e)]||_0x235125(0x165);let _0x351a76=this[_0x235125(0x15d)][_0x235125(0x156)],_0x2b5ca6;_0x351a76&&(_0x2b5ca6=new a99_0x27b9c8()[_0x235125(0x16b)](_0x351a76));let _0x57e20=_0x2b5ca6;if(this['queryParameters'][_0x235125(0x178)]){const _0xd166d=intersects(_0x44a5f5,this[_0x235125(0x15d)][_0x235125(0x178)]);_0x57e20=_0x2b5ca6?and(_0x2b5ca6,_0xd166d):_0xd166d;}let _0x1c2995=new a99_0x4d8eb1()[_0x235125(0x16f)]({'srsName':this[_0x235125(0x15d)]['srsName'],'featureNS':'','featurePrefix':'','featureTypes':[this[_0x235125(0x15d)][_0x235125(0x157)]],'outputFormat':'application/json','geometryName':_0x44a5f5,'filter':_0x57e20});return new Promise(_0x5db1ff=>{const _0x3f20be=_0x235125;fetch(this[_0x3f20be(0x163)],{'method':_0x3f20be(0x170),'body':new XMLSerializer()[_0x3f20be(0x162)](_0x1c2995)})[_0x3f20be(0x161)](_0x59842a=>{const _0x4fec8d=_0x3f20be;return _0x59842a[_0x4fec8d(0x173)]();})['then'](_0x1a6494=>{const _0x1455f8=_0x3f20be;let _0x2f36a1=[];const _0xf33dc=new a99_0x420025();_0x2f36a1=_0x1a6494[_0x1455f8(0x171)]['map'](_0x2144a8=>{const _0xad01da=_0x1455f8;return _0xf33dc[_0xad01da(0x17b)](JSON[_0xad01da(0x164)](_0x2144a8));}),_0x5db1ff(_0x2f36a1);})[_0x3f20be(0x16a)](_0x4014cf=>{_0x5db1ff([]),console['error'](_0x4014cf);});});}}
|
package/utils/tasks/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xcfec3,_0x9b1fee){const _0x2705c4=a100_0x5c50,_0x1da705=_0xcfec3();while(!![]){try{const _0x3eb52e=-parseInt(_0x2705c4(0xb0))/0x1*(-parseInt(_0x2705c4(0xb4))/0x2)+parseInt(_0x2705c4(0xb8))/0x3+-parseInt(_0x2705c4(0xb6))/0x4+parseInt(_0x2705c4(0xba))/0x5*(parseInt(_0x2705c4(0xc0))/0x6)+parseInt(_0x2705c4(0xbf))/0x7+parseInt(_0x2705c4(0xb2))/0x8*(-parseInt(_0x2705c4(0xbc))/0x9)+-parseInt(_0x2705c4(0xc4))/0xa;if(_0x3eb52e===_0x9b1fee)break;else _0x1da705['push'](_0x1da705['shift']());}catch(_0x568ef3){_0x1da705['push'](_0x1da705['shift']());}}}(a100_0xa16f,0xb81dd));function a100_0x5c50(_0x4644f2,_0x2ae2d9){const _0xa16fda=a100_0xa16f();return a100_0x5c50=function(_0x5c506a,_0x250349){_0x5c506a=_0x5c506a-0xad;let _0x119363=_0xa16fda[_0x5c506a];return _0x119363;},a100_0x5c50(_0x4644f2,_0x2ae2d9);}import{appendPath}from'../UrlUtil';import a100_0x559c31 from'./esri/Query';import a100_0x10a313 from'./geoserver/QueryTask';import{getWFSLayerCapabilities}from'../../capabilities';function a100_0xa16f(){const _0x135354=['35486ZHlBNn','intersects','2439844KuzdHS','run','884217IJOsiw','fieldType','1320uUCzJc','gwc/service/wmts','909LLswvD','executeRaster','find','2544717RFqMlf','23262yigrWa','geoserver-wfs','layerFields','geoserver-wms','11958280HqKLnA','arcgis-dynamic','arcgis-feature','wms','replace','57uzMeyf','execute','10552vGCOCc','name'];a100_0xa16f=function(){return _0x135354;};return a100_0xa16f();}export async function selectFeaturesByGeo(_0x4855d7,_0x45a02e,_0x5f2e3b,_0x56ff8b,_0x53db26,_0x1f8795,_0x1838e0){const _0x43a3f4=a100_0x5c50;if(!_0x5f2e3b||!_0x56ff8b||!_0x53db26||!_0x53db26)return[];let _0x484602=[];try{if(_0x53db26==_0x43a3f4(0xc5)||_0x53db26==_0x43a3f4(0xad)){const _0x1bc0dd=appendPath(_0x5f2e3b,_0x56ff8b),_0xa7c71d=new a100_0x559c31(_0x1bc0dd,{'outSR':_0x45a02e,'where':_0x1f8795});_0x4855d7&&_0x45a02e&&_0xa7c71d[_0x43a3f4(0xb5)](_0x4855d7,_0x45a02e),_0x484602=await _0xa7c71d[_0x43a3f4(0xb7)]();}else{if(_0x53db26==_0x43a3f4(0xc1)||_0x53db26==_0x43a3f4(0xc3)){const _0x491a30=new a100_0x10a313(_0x5f2e3b),_0x514e82=await getWFSLayerCapabilities(_0x5f2e3b,_0x56ff8b);if(_0x514e82&&_0x514e82[_0x43a3f4(0xc2)]){const _0x1f02b9=_0x514e82[_0x43a3f4(0xc2)]['find'](_0x27e62b=>_0x27e62b['fieldType']==0x6);_0x484602=await _0x491a30[_0x43a3f4(0xb1)]({'geometry':_0x4855d7,'tableName':_0x56ff8b,'geometryName':_0x1f02b9?_0x1f02b9[_0x43a3f4(0xb3)]:'','srsName':_0x45a02e,'where':_0x1f8795});}else _0x484602=await _0x491a30[_0x43a3f4(0xbd)]({'geometry':_0x4855d7,'tableName':_0x56ff8b,'geometryName':'','srsName':_0x45a02e,'where':_0x1f8795,'resolution':_0x1838e0});}else{if(_0x53db26=='geoserver-wmts'){_0x5f2e3b=_0x5f2e3b[_0x43a3f4(0xaf)](_0x43a3f4(0xbb),_0x43a3f4(0xae));const _0x278a30=new a100_0x10a313(_0x5f2e3b),_0x450fad=await getWFSLayerCapabilities(_0x5f2e3b,_0x56ff8b);if(_0x450fad&&_0x450fad[_0x43a3f4(0xc2)]){let _0x386dea=_0x450fad[_0x43a3f4(0xc2)][_0x43a3f4(0xbe)](_0x3e5f21=>_0x3e5f21[_0x43a3f4(0xb9)]==0x6);_0x484602=await _0x278a30[_0x43a3f4(0xb1)]({'geometry':_0x4855d7,'tableName':_0x56ff8b,'geometryName':_0x386dea?_0x386dea['name']:'','srsName':_0x45a02e,'where':_0x1f8795});}else _0x484602=await _0x278a30[_0x43a3f4(0xbd)]({'geometry':_0x4855d7,'tableName':_0x56ff8b,'geometryName':'','srsName':_0x45a02e,'where':_0x1f8795,'resolution':_0x1838e0});}}}}catch(_0x359bfd){}return _0x484602;}
|