ym-gis-2d 1.0.0 → 1.0.1
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/MousePositionControl.js +1 -1
- package/controls/SwipeLayerControl.js +1 -1
- package/conver/kml/geoJSONToKml.js +1 -1
- package/conver/kml/index.js +1 -1
- package/conver/kml/kmlToGeoJSON.js +1 -1
- package/entity/Feature.js +1 -1
- package/entity/GeometryType.js +1 -1
- package/feature/FeatureManager.d.ts +1 -0
- package/feature/FeatureManager.d.ts.map +1 -1
- package/feature/FeatureManager.js +1 -1
- package/feature/FeatureManager.js.map +1 -1
- package/index.js +1 -1
- package/interaction/Draw.js +1 -1
- package/interaction/InteractionManager.js +1 -1
- package/interaction/Select.js +1 -1
- package/layers/ArcgisDynamicLayer.js +1 -1
- package/layers/ArcgisFeatureLayer.js +1 -1
- package/layers/ArcgisTileLayer.js +1 -1
- package/layers/ArcgisWMSLayer.js +1 -1
- package/layers/ArcgisWMTSLayer.js +1 -1
- package/layers/GeoserverVectorTile.js +1 -1
- package/layers/GeoserverWFSLayer.js +1 -1
- package/layers/GeoserverWMSLayer.js +1 -1
- package/layers/GeoserverWMTSLayer.js +1 -1
- package/layers/LayerManager.js +1 -1
- package/layers/TDTLayer.js +1 -1
- package/mapView/Map.d.ts +0 -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 +2 -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/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/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
package/utils/UrlUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x17a210,_0x1a9cbd){const _0x4f0892=a78_0x54e9,_0x3d80ae=_0x17a210();while(!![]){try{const _0x5d78d6=parseInt(_0x4f0892(0x9d))/0x1*(parseInt(_0x4f0892(0x93))/0x2)+parseInt(_0x4f0892(0x8e))/0x3*(parseInt(_0x4f0892(0x90))/0x4)+-parseInt(_0x4f0892(0xa0))/0x5*(-parseInt(_0x4f0892(0x8d))/0x6)+-parseInt(_0x4f0892(0x9a))/0x7+-parseInt(_0x4f0892(0x89))/0x8*(-parseInt(_0x4f0892(0x91))/0x9)+parseInt(_0x4f0892(0x8a))/0xa+-parseInt(_0x4f0892(0x8b))/0xb;if(_0x5d78d6===_0x1a9cbd)break;else _0x3d80ae['push'](_0x3d80ae['shift']());}catch(_0x39b4b6){_0x3d80ae['push'](_0x3d80ae['shift']());}}}(a78_0x3c95,0x7395c));export function addArgument(_0x220ec3,_0x306796,_0x3d2787){const _0x12a375=a78_0x54e9,_0xc54ac1=new RegExp(_0x12a375(0x9e)+_0x306796+'=)([^&]*)','gi');if(_0x220ec3[_0x12a375(0x94)](_0xc54ac1))_0x220ec3=_0x220ec3['replace'](_0xc54ac1,_0x4efc93=>_0x4efc93[0x0]+_0x306796+'='+_0x3d2787);else{var _0x3073ee=_0x306796+'='+_0x3d2787,_0x5b62fb=_0x220ec3[_0x12a375(0xa1)]('?');let _0x47dcc6=_0x220ec3;_0x5b62fb>-0x1&&_0x220ec3[_0x12a375(0xa1)](_0x12a375(0x96))>-0x1&&(_0x47dcc6=_0x220ec3['substring'](_0x5b62fb+0x1),_0x5b62fb=_0x47dcc6['indexOf']('?'));if(_0x5b62fb<0x0)_0x220ec3+='?';else _0x5b62fb>=0x0&&_0x5b62fb!==_0x47dcc6['length']-0x1&&(_0x220ec3+='&');_0x220ec3=_0x220ec3+_0x3073ee;}return _0x220ec3;}export function appendParam(_0x41753a,_0x5df338){const _0x17205f=a78_0x54e9;var _0x3a11c0=_0x41753a[_0x17205f(0xa1)]('?');let _0x5f0cff=_0x41753a;if(_0x3a11c0>-0x1&&_0x41753a[_0x17205f(0xa1)]('?http')>-0x1){let _0x2b8e45=_0x3a11c0+0x1;_0x5f0cff=_0x41753a['substring'](_0x3a11c0+0x1),_0x3a11c0=_0x5f0cff['indexOf']('?');}return _0x3a11c0>-0x1?_0x41753a+'&'+_0x5df338:_0x41753a+'?'+_0x5df338;}function a78_0x54e9(_0x5a2389,_0x412847){const _0x3c95e7=a78_0x3c95();return a78_0x54e9=function(_0x54e9c9,_0x198434){_0x54e9c9=_0x54e9c9-0x89;let _0x1f623c=_0x3c95e7[_0x54e9c9];return _0x1f623c;},a78_0x54e9(_0x5a2389,_0x412847);}export function appendPath(_0x7d0022,_0x44c0c2){const _0x82feb2=a78_0x54e9;var _0x216f98=_0x7d0022[_0x82feb2(0xa1)]('?');let _0x1442f2=_0x7d0022;if(_0x216f98>-0x1&&_0x7d0022['indexOf'](_0x82feb2(0x96))>-0x1){let _0x3ba578=_0x216f98+0x1;_0x1442f2=_0x7d0022[_0x82feb2(0x9b)](_0x216f98+0x1),_0x216f98=_0x1442f2['indexOf']('?'),_0x216f98>-0x1&&(_0x216f98+=_0x3ba578);}return _0x216f98>-0x1?_0x7d0022['substring'](0x0,_0x216f98)+'/'+_0x44c0c2+_0x7d0022['substring'](_0x216f98):_0x7d0022+'/'+_0x44c0c2;}export function getUrlParams(_0x400463){const _0x5c9946=a78_0x54e9;var _0x2caac3,_0x3202a9;let _0x24e5a3=_0x400463[_0x5c9946(0xa1)](_0x5c9946(0x96)),_0x1d9772;_0x24e5a3>-0x1?_0x400463[_0x5c9946(0xa1)]('?',_0x24e5a3+0x3)>-0x1&&(_0x1d9772=(_0x2caac3=_0x400463[_0x5c9946(0x97)]('?'))===null||_0x2caac3===void 0x0?void 0x0:_0x2caac3[0x2]):_0x400463['indexOf']('?')>-0x1&&(_0x1d9772=(_0x3202a9=_0x400463[_0x5c9946(0x97)]('?'))===null||_0x3202a9===void 0x0?void 0x0:_0x3202a9[0x1]);if(_0x1d9772)return createParamByQuery(_0x1d9772);return[];}function createParamByQuery(_0x5369da){const _0x2dc3f0=a78_0x54e9;let _0x293676=_0x5369da[_0x2dc3f0(0x97)]('&');return _0x293676['map'](_0x42db6b=>{const _0xaf1cc1=_0x2dc3f0;var _0x3dd7c6=_0x42db6b[_0xaf1cc1(0x97)]('=');return{'name':_0x3dd7c6[0x0],'value':_0x3dd7c6[0x1]};});}export function parseImage(_0x57e31f,_0x226cd5){const _0x4efa69=a78_0x54e9;let _0xec3d='';if(_0x57e31f){if(_0x57e31f[_0x4efa69(0x94)](/^(data|http|https)/))_0xec3d=_0x57e31f;else{if(_0x57e31f[_0x4efa69(0x94)](/Assets/))_0xec3d=_0x57e31f;else{}}}return _0xec3d;}function a78_0x3c95(){const _0x2a08c2=['59694Vjfbgq','10233lFBPTk','body','484AjqZYe','18FURFTk','appendChild','8niugAZ','match','removeChild','?http','split','download','href','2296966YurcEO','substring','createObjectURL','201784NDRwKT','[\x5c?&](','setAttribute','5GNpwVc','indexOf','2948408SgsddD','9206980xHUBMi','22946462AGbJrk','_blank'];a78_0x3c95=function(){return _0x2a08c2;};return a78_0x3c95();}export function downloadBlob(_0x54eb36,_0x98e433){const _0xd6de24=a78_0x54e9,_0x19ac3d=URL[_0xd6de24(0x9c)](_0x54eb36);var _0x5d6e3b=document['createElement']('a');_0x5d6e3b['setAttribute'](_0xd6de24(0x99),_0x19ac3d),_0x5d6e3b[_0xd6de24(0x9f)]('target',_0xd6de24(0x8c)),_0x5d6e3b[_0xd6de24(0x9f)](_0xd6de24(0x98),_0x98e433),document[_0xd6de24(0x8f)][_0xd6de24(0x92)](_0x5d6e3b),_0x5d6e3b['click'](),document['body'][_0xd6de24(0x95)](_0x5d6e3b),URL['revokeObjectURL'](_0x19ac3d);}
|
package/utils/XmlUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37b50b,_0x1000a1){const _0x53c4bf=a79_0xc572,_0x564378=_0x37b50b();while(!![]){try{const _0x368633=parseInt(_0x53c4bf(0x14a))/0x1*(-parseInt(_0x53c4bf(0x142))/0x2)+-parseInt(_0x53c4bf(0x140))/0x3*(-parseInt(_0x53c4bf(0x14f))/0x4)+parseInt(_0x53c4bf(0x152))/0x5*(parseInt(_0x53c4bf(0x148))/0x6)+-parseInt(_0x53c4bf(0x141))/0x7+parseInt(_0x53c4bf(0x147))/0x8*(parseInt(_0x53c4bf(0x150))/0x9)+parseInt(_0x53c4bf(0x14d))/0xa*(parseInt(_0x53c4bf(0x14c))/0xb)+parseInt(_0x53c4bf(0x143))/0xc*(-parseInt(_0x53c4bf(0x14b))/0xd);if(_0x368633===_0x1000a1)break;else _0x564378['push'](_0x564378['shift']());}catch(_0x125be8){_0x564378['push'](_0x564378['shift']());}}}(a79_0x4edc,0x4f0ef));function a79_0x4edc(){const _0x4d6aca=['2798648GmivJP','252306uSdkmj','Microsoft.XMLDOM','73hCipuQ','8957GZvUTq','209WAbeQa','339230fylszX','loadXML','2205692smRWRB','9hTcxRk','false','50yMhCuS','parseFromString','3EyLlSr','701176TsnyZp','1538XkpgCe','25884tXcaCQ','text/xml','DOMParser','async'];a79_0x4edc=function(){return _0x4d6aca;};return a79_0x4edc();}function a79_0xc572(_0x4bfeb8,_0x4627e4){const _0x4edc0f=a79_0x4edc();return a79_0xc572=function(_0xc572b2,_0x1a83a6){_0xc572b2=_0xc572b2-0x140;let _0x39ecba=_0x4edc0f[_0xc572b2];return _0x39ecba;},a79_0xc572(_0x4bfeb8,_0x4627e4);}export function readXml(_0x2784c1){const _0x472fd0=a79_0xc572;let _0xd55f95;return window[_0x472fd0(0x145)]?_0xd55f95=new DOMParser()[_0x472fd0(0x153)](_0x2784c1,_0x472fd0(0x144)):(_0xd55f95=new ActiveXObject(_0x472fd0(0x149)),_0xd55f95[_0x472fd0(0x146)]=_0x472fd0(0x151),_0xd55f95[_0x472fd0(0x14e)](_0x2784c1)),_0xd55f95;}
|
package/utils/format/CQL.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a62_0x3aa4(_0x2edc8f,_0x5325b7){const _0x2bbca1=a62_0x2bbc();return a62_0x3aa4=function(_0x3aa408,_0x455c4f){_0x3aa408=_0x3aa408-0xf1;let _0x300dca=_0x2bbca1[_0x3aa408];return _0x300dca;},a62_0x3aa4(_0x2edc8f,_0x5325b7);}const a62_0x217b4a=a62_0x3aa4;(function(_0x39ec4b,_0x687397){const _0x3b700c=a62_0x3aa4,_0x3e47df=_0x39ec4b();while(!![]){try{const _0x28e1a2=-parseInt(_0x3b700c(0x146))/0x1*(parseInt(_0x3b700c(0x132))/0x2)+parseInt(_0x3b700c(0x105))/0x3*(-parseInt(_0x3b700c(0x142))/0x4)+parseInt(_0x3b700c(0x11c))/0x5+-parseInt(_0x3b700c(0x10a))/0x6*(-parseInt(_0x3b700c(0x13f))/0x7)+parseInt(_0x3b700c(0xf7))/0x8*(-parseInt(_0x3b700c(0x112))/0x9)+parseInt(_0x3b700c(0xfa))/0xa+-parseInt(_0x3b700c(0x108))/0xb;if(_0x28e1a2===_0x687397)break;else _0x3e47df['push'](_0x3e47df['shift']());}catch(_0x125356){_0x3e47df['push'](_0x3e47df['shift']());}}}(a62_0x2bbc,0x24528));import*as a62_0x293e76 from'ol/format/filter';import{WKT}from'ol/format';function a62_0x2bbc(){const _0x2d4755=['PropertyIsLessThan','BBOX(','IS_NULL','index','PropertyIsGreaterThan','text','888580mdwGWJ','PropertyIsEqualTo','],\x20expected\x20one\x20of:\x20','Intersects','number','string','END','follows','condition','between','inPatterns','PropertyIsLessThanOrEqualTo','expression','operators','warn','lessThanOrEqualTo','geometry','not','geometryName','tryToken','WITHIN','PropertyIsLike','598TihNna','join','pop','replace','buildAst','split','PropertyIsBetween','propertyName','COMPARISON','\x20BETWEEN\x20','COMMA','\x20or\x20','VALUE','192766ltWDHO','BETWEEN','conditions','15116OcieWD','write','Can\x27t\x20encode:\x20','INTERSECTS','364hDztiB','operatorReverse','within','GEOMETRY','precedence','push','WITHIN(','IS\x20NULL','match','PROPERTY','nextToken','like','lessThan','contains','NOT','\x20AND\x20','tagName_','NOT\x20(','tokens','remainder','tokenize','length','CONTAINS(','ERROR:\x20In\x20parsing:\x20[','toLowerCase','readGeometry','indexOf','INTERSECTS(','PropertyIsGreaterThanOrEqualTo','type','Unknown\x20token\x20type\x20','isNull','greaterThan','235248aRSaYf','shift','substring','593450BpNNUz','RPAREN','\x0a\x20\x20\x20\x20','No\x20follows\x20list\x20for\x20','property','Not','PropertyIsNull','logicals','BBOX','CLASS_NAME','LPAREN','15Kdxvfm','SPATIAL','charAt','28094iJTINy','剩余的节点无法解析:\x20\x0a','54ljbeRd','replaceAll','srsName','toUpperCase','Contains','CQL解析失败:','lastIndexOf','LOGICAL','63nTmlkb','parseInToOr','exec','greaterThanOrEqualTo'];a62_0x2bbc=function(){return _0x2d4755;};return a62_0x2bbc();}import a62_0x724fc7 from'ol/geom/Geometry';export default class CQL{constructor(){const _0xad2f01=a62_0x3aa4;this[_0xad2f01(0x126)]=/ (IN) /i,this[_0xad2f01(0x158)]=[_0xad2f01(0x14f),_0xad2f01(0x13a),_0xad2f01(0x13e),_0xad2f01(0x111)],this['patterns']={'PROPERTY':/^[_a-zA-Z]\w*/,'COMPARISON':/^(=|<>|<=|<|>=|>|LIKE)/i,'IS_NULL':/^IS NULL/i,'COMMA':/^,/,'LOGICAL':/^(AND|OR)/i,'VALUE':/^('([^']|'')*'|-?\d+(\.\d*)?|\.\d+)/,'LPAREN':/^\(/,'RPAREN':/^\)/,'SPATIAL':/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,'NOT':/^NOT/i,'BETWEEN':/^BETWEEN/i,'GEOMETRY':function(_0xe984d3){const _0x3d264b=_0xad2f01;let _0x4a2404=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/[_0x3d264b(0x114)](_0xe984d3);if(_0x4a2404){let _0x251846=_0xe984d3[_0x3d264b(0x15b)],_0xdeed23=_0xe984d3[_0x3d264b(0x160)]('(',_0x4a2404[0x0][_0x3d264b(0x15b)]);if(_0xdeed23>-0x1){let _0x4929d4=0x1;while(_0xdeed23<_0x251846&&_0x4929d4>0x0){_0xdeed23++;switch(_0xe984d3[_0x3d264b(0x107)](_0xdeed23)){case'(':_0x4929d4++;break;case')':_0x4929d4--;break;default:}}}return[_0xe984d3['substring'](0x0,_0xdeed23+0x1)];}},'END':/^$/},this[_0xad2f01(0x123)]={'LPAREN':[_0xad2f01(0x149),_0xad2f01(0x106),_0xad2f01(0x14f),_0xad2f01(0x13e),'LPAREN'],'RPAREN':[_0xad2f01(0x154),_0xad2f01(0x111),_0xad2f01(0x122),_0xad2f01(0xfb)],'PROPERTY':[_0xad2f01(0x13a),_0xad2f01(0x140),'COMMA',_0xad2f01(0x118)],'BETWEEN':[_0xad2f01(0x13e)],'IS_NULL':[_0xad2f01(0x122)],'COMPARISON':[_0xad2f01(0x13e)],'COMMA':['GEOMETRY',_0xad2f01(0x13e),_0xad2f01(0x14f)],'VALUE':[_0xad2f01(0x111),_0xad2f01(0x13c),_0xad2f01(0xfb),_0xad2f01(0x122)],'SPATIAL':[_0xad2f01(0x104)],'LOGICAL':['NOT','VALUE',_0xad2f01(0x106),_0xad2f01(0x14f),_0xad2f01(0x104)],'NOT':[_0xad2f01(0x14f),_0xad2f01(0x104)],'GEOMETRY':[_0xad2f01(0x13c),_0xad2f01(0xfb)]},this[_0xad2f01(0x129)]={'=':a62_0x293e76['equalTo'],'<>':a62_0x293e76['notEqualTo'],'<':a62_0x293e76[_0xad2f01(0x152)],'<=':a62_0x293e76[_0xad2f01(0x12b)],'>':a62_0x293e76[_0xad2f01(0xf6)],'>=':a62_0x293e76[_0xad2f01(0x115)],'LIKE':a62_0x293e76[_0xad2f01(0x151)],'BETWEEN':a62_0x293e76[_0xad2f01(0x125)],'IS\x20NULL':a62_0x293e76[_0xad2f01(0xf5)]},this['operatorReverse']={'PropertyIsEqualTo':'=','PropertyIsNotEqualTo':'<>','PropertyIsLessThan':'<','PropertyIsLessThanOrEqualTo':'<=','PropertyIsGreaterThan':'>','PropertyIsGreaterThanOrEqualTo':'>=','PropertyIsLike':'LIKE','PropertyIsNull':_0xad2f01(0x14d),'PropertyIsBetween':'BETWEEN'},this['logicals']={'AND':a62_0x293e76['and'],'OR':a62_0x293e76['or']},this[_0xad2f01(0x14a)]={'RPAREN':0x3,'LOGICAL':0x2,'COMPARISON':0x1};}[a62_0x217b4a(0x12f)](_0x328e9b,_0x231e92){const _0x43fd6b=a62_0x217b4a;return _0x231e92 instanceof RegExp?_0x231e92[_0x43fd6b(0x114)](_0x328e9b):_0x231e92(_0x328e9b);}['nextToken'](_0x863044,_0x1d8fb3){const _0x2986c7=a62_0x217b4a;let _0x10beaf,_0x4c2066,_0x41cece=_0x1d8fb3[_0x2986c7(0x15b)];for(_0x10beaf=0x0;_0x10beaf<_0x41cece;_0x10beaf++){_0x4c2066=_0x1d8fb3[_0x10beaf];let _0xd57843=this['patterns'][_0x4c2066],_0x20d974=this[_0x2986c7(0x12f)](_0x863044,_0xd57843);if(_0x20d974){let _0x49e72e=_0x20d974[0x0],_0x598fd8=_0x863044[_0x2986c7(0xf9)](_0x49e72e['length'])[_0x2986c7(0x135)](/^\s*/,'');return{'type':_0x4c2066,'text':_0x49e72e,'remainder':_0x598fd8};}}let _0x17733e=_0x2986c7(0x15d)+_0x863044+_0x2986c7(0x11e);for(_0x10beaf=0x0;_0x10beaf<_0x41cece;_0x10beaf++){_0x4c2066=_0x1d8fb3[_0x10beaf],_0x17733e+=_0x2986c7(0xfc)+_0x4c2066+':\x20'+this['patterns'][_0x4c2066];}throw new Error(_0x17733e);}[a62_0x217b4a(0x15a)](_0x59caa4){const _0x42b3dc=a62_0x217b4a;_0x59caa4=_0x59caa4['replaceAll']('[','')[_0x42b3dc(0x10b)](']','');let _0x5e95eb=this[_0x42b3dc(0x12f)](_0x59caa4,this['inPatterns']);_0x5e95eb&&(_0x59caa4=this['parseInToOr'](_0x59caa4,_0x5e95eb));let _0x6ceba4=[],_0x4ac0d9,_0x42c6cd=[_0x42b3dc(0x154),_0x42b3dc(0x149),'SPATIAL',_0x42b3dc(0x14f),'LPAREN'];do{_0x4ac0d9=this[_0x42b3dc(0x150)](_0x59caa4,_0x42c6cd),_0x59caa4=_0x4ac0d9[_0x42b3dc(0x159)],_0x42c6cd=this['follows'][_0x4ac0d9[_0x42b3dc(0xf3)]];if(_0x4ac0d9[_0x42b3dc(0xf3)]!=='END'&&!_0x42c6cd)throw new Error(_0x42b3dc(0xfd)+_0x4ac0d9[_0x42b3dc(0xf3)]);_0x6ceba4[_0x42b3dc(0x14b)](_0x4ac0d9);}while(_0x4ac0d9[_0x42b3dc(0xf3)]!==_0x42b3dc(0x122));return _0x6ceba4;}[a62_0x217b4a(0x113)](_0x1ca2f5,_0x17ab00){const _0x511a59=a62_0x217b4a;let _0x403deb=this['tryToken'](_0x1ca2f5,/\((.+?)\)/g);if(_0x403deb){let _0x40f023=_0x1ca2f5[_0x511a59(0xf9)](0x0,_0x17ab00[_0x511a59(0x119)]),_0x27c5a7=_0x403deb[0x1],_0x5ac433=_0x27c5a7[_0x511a59(0x10b)]('\x20','')[_0x511a59(0x137)](','),_0x195c4b='',_0x33fad5='';if(_0x40f023['indexOf']('\x20')>-0x1){let _0x19f59a=_0x40f023[_0x511a59(0x110)]('\x20');_0x33fad5=_0x40f023[_0x511a59(0xf9)](0x0,_0x19f59a+0x1),_0x195c4b=_0x40f023['substring'](_0x19f59a+0x1,_0x40f023['length']);}else _0x195c4b=_0x40f023;let _0x348c73=_0x33fad5;for(let _0x50f02c=0x0;_0x50f02c<_0x5ac433['length'];_0x50f02c++){let _0x3e8145=_0x5ac433[_0x50f02c];_0x348c73+=_0x195c4b+'='+_0x3e8145,_0x50f02c<_0x5ac433[_0x511a59(0x15b)]-0x1&&(_0x348c73+=_0x511a59(0x13d));}return _0x348c73;}return _0x1ca2f5;}[a62_0x217b4a(0x136)](_0x4025f5){const _0x3e0e21=a62_0x217b4a;let _0x39d28c=this,_0x3139ea=[],_0x522383=[];while(_0x4025f5[_0x3e0e21(0x15b)]){let _0x557787=_0x4025f5[_0x3e0e21(0xf8)]();switch(_0x557787[_0x3e0e21(0xf3)]){case _0x3e0e21(0x14f):case _0x3e0e21(0x149):case'VALUE':_0x522383[_0x3e0e21(0x14b)](_0x557787);break;case _0x3e0e21(0x13a):case _0x3e0e21(0x140):case'IS_NULL':case _0x3e0e21(0x111):{let _0x34cc98=this[_0x3e0e21(0x14a)][_0x557787[_0x3e0e21(0xf3)]];while(_0x3139ea[_0x3e0e21(0x15b)]>0x0&&this[_0x3e0e21(0x14a)][_0x3139ea[_0x3139ea[_0x3e0e21(0x15b)]-0x1]['type']]<=_0x34cc98){_0x522383['push'](_0x3139ea['pop']());}_0x3139ea[_0x3e0e21(0x14b)](_0x557787);break;}case _0x3e0e21(0x106):case _0x3e0e21(0x154):case'LPAREN':_0x3139ea[_0x3e0e21(0x14b)](_0x557787);break;case _0x3e0e21(0xfb):while(_0x3139ea[_0x3e0e21(0x15b)]>0x0&&_0x3139ea[_0x3139ea[_0x3e0e21(0x15b)]-0x1][_0x3e0e21(0xf3)]!==_0x3e0e21(0x104)){_0x522383['push'](_0x3139ea[_0x3e0e21(0x134)]());}_0x3139ea[_0x3e0e21(0x134)]();_0x3139ea['length']>0x0&&(_0x3139ea[_0x3139ea[_0x3e0e21(0x15b)]-0x1][_0x3e0e21(0xf3)]===_0x3e0e21(0x106)||_0x3139ea[_0x3139ea[_0x3e0e21(0x15b)]-0x1][_0x3e0e21(0xf3)]===_0x3e0e21(0x154))&&_0x522383['push'](_0x3139ea[_0x3e0e21(0x134)]());break;case _0x3e0e21(0x13c):case _0x3e0e21(0x122):break;default:throw new Error(_0x3e0e21(0xf4)+_0x557787['type']);}}while(_0x3139ea[_0x3e0e21(0x15b)]>0x0){_0x522383[_0x3e0e21(0x14b)](_0x3139ea[_0x3e0e21(0x134)]());}function _0x57dd35(){const _0x53b87d=_0x3e0e21;let _0x45b993,_0x476463,_0x2f419f=_0x522383['pop']();switch(_0x2f419f[_0x53b87d(0xf3)]){case _0x53b87d(0x111):{let _0x2cdef4=_0x57dd35(),_0x246ee5=_0x57dd35();return new _0x39d28c[(_0x53b87d(0x101))][(_0x2f419f[_0x53b87d(0x11b)]['toUpperCase']())](_0x246ee5,_0x2cdef4);}case _0x53b87d(0x154):{let _0x15ed72=_0x57dd35();return a62_0x293e76[_0x53b87d(0x12d)](_0x15ed72);}case _0x53b87d(0x140):{let _0x18e6ea,_0x56a077;return _0x522383[_0x53b87d(0x134)](),_0x56a077=_0x57dd35(),_0x18e6ea=_0x57dd35(),_0x476463=_0x57dd35(),a62_0x293e76[_0x53b87d(0x125)](_0x476463,_0x18e6ea,_0x56a077);}case'COMPARISON':{return _0x45b993=_0x57dd35(),_0x476463=_0x57dd35(),new _0x39d28c[(_0x53b87d(0x129))][(_0x2f419f[_0x53b87d(0x11b)][_0x53b87d(0x10d)]())](_0x476463,_0x45b993);}case'IS_NULL':_0x476463=_0x57dd35();return new _0x39d28c[(_0x53b87d(0x129))][(_0x2f419f[_0x53b87d(0x11b)][_0x53b87d(0x10d)]())](_0x476463);case'VALUE':{let _0xd8e564=_0x2f419f['text'][_0x53b87d(0x14e)](/^'(.*)'$/);return _0xd8e564?_0xd8e564[0x1][_0x53b87d(0x135)](/''/g,'\x27'):Number(_0x2f419f[_0x53b87d(0x11b)]);}case _0x53b87d(0x106):switch(_0x2f419f['text']['toUpperCase']()){case _0x53b87d(0x102):{let _0x99d4ad=_0x57dd35(),_0x3cca68=_0x57dd35(),_0x21f47b=_0x57dd35(),_0x6b12e=_0x57dd35(),_0x11eafe=_0x57dd35();return a62_0x293e76['bbox'](_0x11eafe,[_0x6b12e,_0x21f47b,_0x3cca68,_0x99d4ad]);}case _0x53b87d(0x145):_0x45b993=_0x57dd35(),_0x476463=_0x57dd35();return a62_0x293e76['intersects'](_0x476463,_0x45b993);case _0x53b87d(0x130):_0x45b993=_0x57dd35(),_0x476463=_0x57dd35();return a62_0x293e76[_0x53b87d(0x148)](_0x476463,_0x45b993);case'CONTAINS':_0x45b993=_0x57dd35(),_0x476463=_0x57dd35();return a62_0x293e76[_0x53b87d(0x153)](_0x476463,_0x45b993);}break;case'GEOMETRY':return new WKT()['readGeometry'](_0x2f419f['text'],{});default:return _0x2f419f['text'];}}let _0x354101=_0x57dd35();if(_0x522383[_0x3e0e21(0x15b)]>0x0){let _0x270c21=_0x3e0e21(0x109);for(let _0x4c3c4a=_0x522383[_0x3e0e21(0x15b)]-0x1;_0x4c3c4a>=0x0;_0x4c3c4a--){_0x270c21+=_0x522383[_0x4c3c4a][_0x3e0e21(0xf3)]+':\x20'+_0x522383[_0x4c3c4a]['text']+'\x0a';}throw new Error(_0x270c21);}return _0x354101;}['read'](_0xf74a7f){const _0x564cae=a62_0x217b4a;try{return this[_0x564cae(0x136)](this[_0x564cae(0x15a)](_0xf74a7f));}catch(_0x534482){console[_0x564cae(0x12a)](_0x564cae(0x10f)+_0xf74a7f),console['warn'](_0x534482);}}['write'](_0x27eb4a){const _0x17bdbd=a62_0x217b4a;switch(_0x27eb4a['tagName_']){case _0x17bdbd(0x102):return _0x17bdbd(0x117)+_0x27eb4a[_0x17bdbd(0x12e)]+','+_0x27eb4a['extent'][_0x17bdbd(0x133)](',')+','+_0x27eb4a[_0x17bdbd(0x10c)]+')';case'Within':return _0x17bdbd(0x14c)+_0x27eb4a[_0x17bdbd(0x12e)]+',\x20'+this[_0x17bdbd(0x15f)](_0x27eb4a['geometry'])+')';case _0x17bdbd(0x11f):return _0x17bdbd(0xf1)+_0x27eb4a[_0x17bdbd(0x12e)]+',\x20'+this[_0x17bdbd(0x15f)](_0x27eb4a[_0x17bdbd(0x12c)])+')';case _0x17bdbd(0x10e):return _0x17bdbd(0x15c)+_0x27eb4a[_0x17bdbd(0x12e)]+',\x20'+this[_0x17bdbd(0x15f)](_0x27eb4a[_0x17bdbd(0x12c)])+')';case _0x17bdbd(0xff):return _0x17bdbd(0x157)+this[_0x17bdbd(0x143)](_0x27eb4a[_0x17bdbd(0x124)])+')';case'And':case'Or':{let _0x25aed3='(',_0xedb068=!![];for(let _0x483057=0x0;_0x483057<_0x27eb4a[_0x17bdbd(0x141)]['length'];_0x483057++){_0xedb068?_0xedb068=![]:_0x25aed3+=')\x20'+_0x27eb4a[_0x17bdbd(0x156)][_0x17bdbd(0x15e)]()+'\x20(',_0x25aed3+=this['write'](_0x27eb4a[_0x17bdbd(0x141)][_0x483057]);}return _0x25aed3+')';}case _0x17bdbd(0x138):return _0x27eb4a[_0x17bdbd(0xfe)]+_0x17bdbd(0x13b)+this[_0x17bdbd(0x143)](_0x27eb4a['lowerBoundary'])+_0x17bdbd(0x155)+this[_0x17bdbd(0x143)](_0x27eb4a['upperBoundary']);case _0x17bdbd(0x11d):case'PropertyIsNotEqualTo':case _0x17bdbd(0x116):case _0x17bdbd(0x127):case _0x17bdbd(0x11a):case _0x17bdbd(0xf2):case _0x17bdbd(0x131):case _0x17bdbd(0x100):{return _0x27eb4a[_0x17bdbd(0x128)]!==null?_0x27eb4a[_0x17bdbd(0x139)]+'\x20'+this[_0x17bdbd(0x147)][_0x27eb4a[_0x17bdbd(0x156)]]+'\x20'+this[_0x17bdbd(0x143)](_0x27eb4a['expression']):_0x27eb4a[_0x17bdbd(0x139)]+'\x20'+this[_0x17bdbd(0x147)][_0x27eb4a[_0x17bdbd(0x156)]];}case undefined:if(typeof _0x27eb4a===_0x17bdbd(0x121))return'\x27'+_0x27eb4a[_0x17bdbd(0x135)](/'/g,'\x27\x27')+'\x27';else{if(typeof _0x27eb4a===_0x17bdbd(0x120))return String(_0x27eb4a);}break;default:throw new Error(_0x17bdbd(0x144)+_0x27eb4a[_0x17bdbd(0x103)]+'\x20'+_0x27eb4a);}}['readGeometry'](_0x47a2fa){if(_0x47a2fa instanceof a62_0x724fc7)return new WKT()['writeGeometry'](_0x47a2fa);}}
|
|
1
|
+
const a62_0x2f5b6d=a62_0x2651;function a62_0x3062(){const _0x191a15=['INTERSECTS','CONTAINS','condition','PropertyIsGreaterThanOrEqualTo','split','WITHIN','index','RPAREN','INTERSECTS(','WITHIN(','COMPARISON','CLASS_NAME','Within','like','IS_NULL','substring','text','9EmIqdB','BBOX','expression','greaterThanOrEqualTo','warn','pop','readGeometry','剩余的节点无法解析:\x20\x0a','END','indexOf','number','Unknown\x20token\x20type\x20','\x0a\x20\x20\x20\x20','length','replaceAll','parseInToOr','Contains','type','PropertyIsNotEqualTo','PropertyIsBetween','lowerBoundary','contains','\x20or\x20','propertyName','logicals','32QCkEsg','CONTAINS(','12ANVqZz','BETWEEN','notEqualTo','srsName','tokens','VALUE','nextToken','COMMA','ERROR:\x20In\x20parsing:\x20[','precedence','LOGICAL','read','equalTo','buildAst','177585HGbuCi','NOT','shift','write','geometry','PROPERTY','1304142SEqlnt','NOT\x20(','PropertyIsLessThanOrEqualTo','Not','SPATIAL','geometryName','conditions','PropertyIsLessThan','905270qQnpVY','tryToken','toLowerCase','bbox','push','charAt','10524XgBdXH','],\x20expected\x20one\x20of:\x20','string','patterns','LPAREN','126651AuGqNq','join','follows','property','tokenize','\x20AND\x20','remainder','IS\x20NULL','isNull','and','GEOMETRY','greaterThan','BBOX(','18062fYzKeK','toUpperCase','replace','579jlkOdi','4506WUZiAf','operatorReverse','between','intersects','inPatterns','exec','tagName_','operators','lastIndexOf','3015016jmFqAd'];a62_0x3062=function(){return _0x191a15;};return a62_0x3062();}(function(_0x3537b3,_0x3c6342){const _0x3b04d3=a62_0x2651,_0x2bc40f=_0x3537b3();while(!![]){try{const _0x1ea132=-parseInt(_0x3b04d3(0x189))/0x1+parseInt(_0x3b04d3(0x19a))/0x2*(-parseInt(_0x3b04d3(0x199))/0x3)+parseInt(_0x3b04d3(0x1ce))/0x4*(-parseInt(_0x3b04d3(0x170))/0x5)+parseInt(_0x3b04d3(0x1d0))/0x6*(parseInt(_0x3b04d3(0x176))/0x7)+-parseInt(_0x3b04d3(0x1a3))/0x8+-parseInt(_0x3b04d3(0x1b5))/0x9*(parseInt(_0x3b04d3(0x17e))/0xa)+-parseInt(_0x3b04d3(0x196))/0xb*(-parseInt(_0x3b04d3(0x184))/0xc);if(_0x1ea132===_0x3c6342)break;else _0x2bc40f['push'](_0x2bc40f['shift']());}catch(_0x223b4f){_0x2bc40f['push'](_0x2bc40f['shift']());}}}(a62_0x3062,0x79faa));import*as a62_0x27e618 from'ol/format/filter';function a62_0x2651(_0x3d2c96,_0x27405d){const _0x306237=a62_0x3062();return a62_0x2651=function(_0x265150,_0x439d77){_0x265150=_0x265150-0x16c;let _0x3ad273=_0x306237[_0x265150];return _0x3ad273;},a62_0x2651(_0x3d2c96,_0x27405d);}import{WKT}from'ol/format';import a62_0x588d51 from'ol/geom/Geometry';export default class CQL{constructor(){const _0x31b2f7=a62_0x2651;this[_0x31b2f7(0x19e)]=/ (IN) /i,this[_0x31b2f7(0x1d4)]=[_0x31b2f7(0x175),_0x31b2f7(0x1ae),'VALUE','LOGICAL'],this[_0x31b2f7(0x187)]={'PROPERTY':/^[_a-zA-Z]\w*/,'COMPARISON':/^(=|<>|<=|<|>=|>|LIKE)/i,'IS_NULL':/^IS NULL/i,'COMMA':/^,/,'LOGICAL':/^(AND|OR)/i,'VALUE':/^('([^']|'')*'|-?\d+(\.\d*)?|\.\d+)/,'LPAREN':/^\(/,'RPAREN':/^\)/,'SPATIAL':/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,'NOT':/^NOT/i,'BETWEEN':/^BETWEEN/i,'GEOMETRY':function(_0x47ef37){const _0x16383e=_0x31b2f7;let _0x86cc6=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/[_0x16383e(0x19f)](_0x47ef37);if(_0x86cc6){let _0x431ef4=_0x47ef37[_0x16383e(0x1c2)],_0x333c51=_0x47ef37[_0x16383e(0x1be)]('(',_0x86cc6[0x0][_0x16383e(0x1c2)]);if(_0x333c51>-0x1){let _0x2c56d1=0x1;while(_0x333c51<_0x431ef4&&_0x2c56d1>0x0){_0x333c51++;switch(_0x47ef37[_0x16383e(0x183)](_0x333c51)){case'(':_0x2c56d1++;break;case')':_0x2c56d1--;break;default:}}}return[_0x47ef37[_0x16383e(0x1b3)](0x0,_0x333c51+0x1)];}},'END':/^$/},this[_0x31b2f7(0x18b)]={'LPAREN':[_0x31b2f7(0x193),_0x31b2f7(0x17a),_0x31b2f7(0x175),_0x31b2f7(0x1d5),_0x31b2f7(0x188)],'RPAREN':['NOT','LOGICAL','END','RPAREN'],'PROPERTY':[_0x31b2f7(0x1ae),'BETWEEN',_0x31b2f7(0x1d7),_0x31b2f7(0x1b2)],'BETWEEN':['VALUE'],'IS_NULL':['END'],'COMPARISON':['VALUE'],'COMMA':[_0x31b2f7(0x193),_0x31b2f7(0x1d5),'PROPERTY'],'VALUE':[_0x31b2f7(0x16c),'COMMA',_0x31b2f7(0x1ab),_0x31b2f7(0x1bd)],'SPATIAL':['LPAREN'],'LOGICAL':[_0x31b2f7(0x171),_0x31b2f7(0x1d5),_0x31b2f7(0x17a),'PROPERTY','LPAREN'],'NOT':['PROPERTY','LPAREN'],'GEOMETRY':[_0x31b2f7(0x1d7),_0x31b2f7(0x1ab)]},this[_0x31b2f7(0x1a1)]={'=':a62_0x27e618[_0x31b2f7(0x16e)],'<>':a62_0x27e618[_0x31b2f7(0x1d2)],'<':a62_0x27e618['lessThan'],'<=':a62_0x27e618['lessThanOrEqualTo'],'>':a62_0x27e618[_0x31b2f7(0x194)],'>=':a62_0x27e618[_0x31b2f7(0x1b8)],'LIKE':a62_0x27e618[_0x31b2f7(0x1b1)],'BETWEEN':a62_0x27e618[_0x31b2f7(0x19c)],'IS\x20NULL':a62_0x27e618[_0x31b2f7(0x191)]},this[_0x31b2f7(0x19b)]={'PropertyIsEqualTo':'=','PropertyIsNotEqualTo':'<>','PropertyIsLessThan':'<','PropertyIsLessThanOrEqualTo':'<=','PropertyIsGreaterThan':'>','PropertyIsGreaterThanOrEqualTo':'>=','PropertyIsLike':'LIKE','PropertyIsNull':_0x31b2f7(0x190),'PropertyIsBetween':_0x31b2f7(0x1d1)},this[_0x31b2f7(0x1cd)]={'AND':a62_0x27e618[_0x31b2f7(0x192)],'OR':a62_0x27e618['or']},this[_0x31b2f7(0x1d9)]={'RPAREN':0x3,'LOGICAL':0x2,'COMPARISON':0x1};}['tryToken'](_0x3520c8,_0x4ed5a1){const _0x5a4dc1=a62_0x2651;return _0x4ed5a1 instanceof RegExp?_0x4ed5a1[_0x5a4dc1(0x19f)](_0x3520c8):_0x4ed5a1(_0x3520c8);}[a62_0x2f5b6d(0x1d6)](_0x1c1bca,_0x58e3cd){const _0x16f655=a62_0x2f5b6d;let _0x30db60,_0x4d7e33,_0x557956=_0x58e3cd[_0x16f655(0x1c2)];for(_0x30db60=0x0;_0x30db60<_0x557956;_0x30db60++){_0x4d7e33=_0x58e3cd[_0x30db60];let _0xe77cd5=this[_0x16f655(0x187)][_0x4d7e33],_0x379a08=this['tryToken'](_0x1c1bca,_0xe77cd5);if(_0x379a08){let _0x5e4991=_0x379a08[0x0],_0x2942c9=_0x1c1bca['substring'](_0x5e4991['length'])[_0x16f655(0x198)](/^\s*/,'');return{'type':_0x4d7e33,'text':_0x5e4991,'remainder':_0x2942c9};}}let _0x7f8d95=_0x16f655(0x1d8)+_0x1c1bca+_0x16f655(0x185);for(_0x30db60=0x0;_0x30db60<_0x557956;_0x30db60++){_0x4d7e33=_0x58e3cd[_0x30db60],_0x7f8d95+=_0x16f655(0x1c1)+_0x4d7e33+':\x20'+this[_0x16f655(0x187)][_0x4d7e33];}throw new Error(_0x7f8d95);}[a62_0x2f5b6d(0x18d)](_0x4094ee){const _0x27255e=a62_0x2f5b6d;_0x4094ee=_0x4094ee[_0x27255e(0x1c3)]('[','')[_0x27255e(0x1c3)](']','');let _0x2bdc12=this[_0x27255e(0x17f)](_0x4094ee,this[_0x27255e(0x19e)]);_0x2bdc12&&(_0x4094ee=this['parseInToOr'](_0x4094ee,_0x2bdc12));let _0x53089e=[],_0xcc989c,_0x10186f=[_0x27255e(0x171),'GEOMETRY',_0x27255e(0x17a),'PROPERTY',_0x27255e(0x188)];do{_0xcc989c=this[_0x27255e(0x1d6)](_0x4094ee,_0x10186f),_0x4094ee=_0xcc989c[_0x27255e(0x18f)],_0x10186f=this['follows'][_0xcc989c['type']];if(_0xcc989c['type']!==_0x27255e(0x1bd)&&!_0x10186f)throw new Error('No\x20follows\x20list\x20for\x20'+_0xcc989c[_0x27255e(0x1c6)]);_0x53089e['push'](_0xcc989c);}while(_0xcc989c[_0x27255e(0x1c6)]!=='END');return _0x53089e;}[a62_0x2f5b6d(0x1c4)](_0x493cfa,_0x3bcbf4){const _0x1c6f3b=a62_0x2f5b6d;let _0x16d8e7=this['tryToken'](_0x493cfa,/\((.+?)\)/g);if(_0x16d8e7){let _0x5d1df8=_0x493cfa['substring'](0x0,_0x3bcbf4[_0x1c6f3b(0x1aa)]),_0x283e8b=_0x16d8e7[0x1],_0x4d7de6=_0x283e8b[_0x1c6f3b(0x1c3)]('\x20','')[_0x1c6f3b(0x1a8)](','),_0x2c76c8='',_0x38dc23='';if(_0x5d1df8['indexOf']('\x20')>-0x1){let _0xa0a0f9=_0x5d1df8[_0x1c6f3b(0x1a2)]('\x20');_0x38dc23=_0x5d1df8[_0x1c6f3b(0x1b3)](0x0,_0xa0a0f9+0x1),_0x2c76c8=_0x5d1df8[_0x1c6f3b(0x1b3)](_0xa0a0f9+0x1,_0x5d1df8['length']);}else _0x2c76c8=_0x5d1df8;let _0x498885=_0x38dc23;for(let _0x1d84d3=0x0;_0x1d84d3<_0x4d7de6['length'];_0x1d84d3++){let _0x29c04f=_0x4d7de6[_0x1d84d3];_0x498885+=_0x2c76c8+'='+_0x29c04f,_0x1d84d3<_0x4d7de6[_0x1c6f3b(0x1c2)]-0x1&&(_0x498885+=_0x1c6f3b(0x1cb));}return _0x498885;}return _0x493cfa;}[a62_0x2f5b6d(0x16f)](_0x3fc887){const _0x91802b=a62_0x2f5b6d;let _0x303172=this,_0x32b34e=[],_0x9585cf=[];while(_0x3fc887[_0x91802b(0x1c2)]){let _0x36cf8d=_0x3fc887[_0x91802b(0x172)]();switch(_0x36cf8d[_0x91802b(0x1c6)]){case'PROPERTY':case _0x91802b(0x193):case'VALUE':_0x9585cf[_0x91802b(0x182)](_0x36cf8d);break;case'COMPARISON':case'BETWEEN':case _0x91802b(0x1b2):case _0x91802b(0x16c):{let _0x471864=this[_0x91802b(0x1d9)][_0x36cf8d[_0x91802b(0x1c6)]];while(_0x32b34e[_0x91802b(0x1c2)]>0x0&&this[_0x91802b(0x1d9)][_0x32b34e[_0x32b34e[_0x91802b(0x1c2)]-0x1][_0x91802b(0x1c6)]]<=_0x471864){_0x9585cf['push'](_0x32b34e[_0x91802b(0x1ba)]());}_0x32b34e[_0x91802b(0x182)](_0x36cf8d);break;}case _0x91802b(0x17a):case'NOT':case _0x91802b(0x188):_0x32b34e[_0x91802b(0x182)](_0x36cf8d);break;case _0x91802b(0x1ab):while(_0x32b34e['length']>0x0&&_0x32b34e[_0x32b34e[_0x91802b(0x1c2)]-0x1][_0x91802b(0x1c6)]!==_0x91802b(0x188)){_0x9585cf[_0x91802b(0x182)](_0x32b34e['pop']());}_0x32b34e['pop']();_0x32b34e[_0x91802b(0x1c2)]>0x0&&(_0x32b34e[_0x32b34e['length']-0x1]['type']===_0x91802b(0x17a)||_0x32b34e[_0x32b34e[_0x91802b(0x1c2)]-0x1]['type']==='NOT')&&_0x9585cf[_0x91802b(0x182)](_0x32b34e[_0x91802b(0x1ba)]());break;case _0x91802b(0x1d7):case _0x91802b(0x1bd):break;default:throw new Error(_0x91802b(0x1c0)+_0x36cf8d['type']);}}while(_0x32b34e[_0x91802b(0x1c2)]>0x0){_0x9585cf[_0x91802b(0x182)](_0x32b34e['pop']());}function _0x17ad9e(){const _0x4cf607=_0x91802b;let _0x19893a,_0x34c0dc,_0x487d8a=_0x9585cf['pop']();switch(_0x487d8a[_0x4cf607(0x1c6)]){case _0x4cf607(0x16c):{let _0x3da43e=_0x17ad9e(),_0x1fc43c=_0x17ad9e();return new _0x303172[(_0x4cf607(0x1cd))][(_0x487d8a['text'][_0x4cf607(0x197)]())](_0x1fc43c,_0x3da43e);}case'NOT':{let _0x1876d2=_0x17ad9e();return a62_0x27e618['not'](_0x1876d2);}case _0x4cf607(0x1d1):{let _0x419e02,_0x9ca5e1;return _0x9585cf[_0x4cf607(0x1ba)](),_0x9ca5e1=_0x17ad9e(),_0x419e02=_0x17ad9e(),_0x34c0dc=_0x17ad9e(),a62_0x27e618[_0x4cf607(0x19c)](_0x34c0dc,_0x419e02,_0x9ca5e1);}case _0x4cf607(0x1ae):{return _0x19893a=_0x17ad9e(),_0x34c0dc=_0x17ad9e(),new _0x303172[(_0x4cf607(0x1a1))][(_0x487d8a['text'][_0x4cf607(0x197)]())](_0x34c0dc,_0x19893a);}case _0x4cf607(0x1b2):_0x34c0dc=_0x17ad9e();return new _0x303172[(_0x4cf607(0x1a1))][(_0x487d8a[_0x4cf607(0x1b4)][_0x4cf607(0x197)]())](_0x34c0dc);case _0x4cf607(0x1d5):{let _0x2f6768=_0x487d8a[_0x4cf607(0x1b4)]['match'](/^'(.*)'$/);return _0x2f6768?_0x2f6768[0x1][_0x4cf607(0x198)](/''/g,'\x27'):Number(_0x487d8a[_0x4cf607(0x1b4)]);}case'SPATIAL':switch(_0x487d8a[_0x4cf607(0x1b4)][_0x4cf607(0x197)]()){case _0x4cf607(0x1b6):{let _0x544c30=_0x17ad9e(),_0x1cf958=_0x17ad9e(),_0x179645=_0x17ad9e(),_0x2cca07=_0x17ad9e(),_0x13dc1d=_0x17ad9e();return a62_0x27e618[_0x4cf607(0x181)](_0x13dc1d,[_0x2cca07,_0x179645,_0x1cf958,_0x544c30]);}case _0x4cf607(0x1a4):_0x19893a=_0x17ad9e(),_0x34c0dc=_0x17ad9e();return a62_0x27e618[_0x4cf607(0x19d)](_0x34c0dc,_0x19893a);case _0x4cf607(0x1a9):_0x19893a=_0x17ad9e(),_0x34c0dc=_0x17ad9e();return a62_0x27e618['within'](_0x34c0dc,_0x19893a);case _0x4cf607(0x1a5):_0x19893a=_0x17ad9e(),_0x34c0dc=_0x17ad9e();return a62_0x27e618[_0x4cf607(0x1ca)](_0x34c0dc,_0x19893a);}break;case'GEOMETRY':return new WKT()[_0x4cf607(0x1bb)](_0x487d8a[_0x4cf607(0x1b4)],{});default:return _0x487d8a[_0x4cf607(0x1b4)];}}let _0x371f5d=_0x17ad9e();if(_0x9585cf['length']>0x0){let _0x527639=_0x91802b(0x1bc);for(let _0x290f38=_0x9585cf[_0x91802b(0x1c2)]-0x1;_0x290f38>=0x0;_0x290f38--){_0x527639+=_0x9585cf[_0x290f38][_0x91802b(0x1c6)]+':\x20'+_0x9585cf[_0x290f38][_0x91802b(0x1b4)]+'\x0a';}throw new Error(_0x527639);}return _0x371f5d;}[a62_0x2f5b6d(0x16d)](_0x48f79d){const _0x4977a9=a62_0x2f5b6d;try{return this[_0x4977a9(0x16f)](this['tokenize'](_0x48f79d));}catch(_0x4c3966){console[_0x4977a9(0x1b9)]('CQL解析失败:'+_0x48f79d),console[_0x4977a9(0x1b9)](_0x4c3966);}}[a62_0x2f5b6d(0x173)](_0x37ac20){const _0x9aa538=a62_0x2f5b6d;switch(_0x37ac20['tagName_']){case _0x9aa538(0x1b6):return _0x9aa538(0x195)+_0x37ac20[_0x9aa538(0x17b)]+','+_0x37ac20['extent'][_0x9aa538(0x18a)](',')+','+_0x37ac20[_0x9aa538(0x1d3)]+')';case _0x9aa538(0x1b0):return _0x9aa538(0x1ad)+_0x37ac20[_0x9aa538(0x17b)]+',\x20'+this[_0x9aa538(0x1bb)](_0x37ac20['geometry'])+')';case'Intersects':return _0x9aa538(0x1ac)+_0x37ac20[_0x9aa538(0x17b)]+',\x20'+this[_0x9aa538(0x1bb)](_0x37ac20[_0x9aa538(0x174)])+')';case _0x9aa538(0x1c5):return _0x9aa538(0x1cf)+_0x37ac20[_0x9aa538(0x17b)]+',\x20'+this[_0x9aa538(0x1bb)](_0x37ac20[_0x9aa538(0x174)])+')';case _0x9aa538(0x179):return _0x9aa538(0x177)+this['write'](_0x37ac20[_0x9aa538(0x1a6)])+')';case'And':case'Or':{let _0x4f353e='(',_0x2c74e8=!![];for(let _0x564bb2=0x0;_0x564bb2<_0x37ac20[_0x9aa538(0x17c)][_0x9aa538(0x1c2)];_0x564bb2++){_0x2c74e8?_0x2c74e8=![]:_0x4f353e+=')\x20'+_0x37ac20['tagName_'][_0x9aa538(0x180)]()+'\x20(',_0x4f353e+=this[_0x9aa538(0x173)](_0x37ac20[_0x9aa538(0x17c)][_0x564bb2]);}return _0x4f353e+')';}case _0x9aa538(0x1c8):return _0x37ac20[_0x9aa538(0x18c)]+'\x20BETWEEN\x20'+this['write'](_0x37ac20[_0x9aa538(0x1c9)])+_0x9aa538(0x18e)+this[_0x9aa538(0x173)](_0x37ac20['upperBoundary']);case'PropertyIsEqualTo':case _0x9aa538(0x1c7):case _0x9aa538(0x17d):case _0x9aa538(0x178):case'PropertyIsGreaterThan':case _0x9aa538(0x1a7):case'PropertyIsLike':case'PropertyIsNull':{return _0x37ac20['expression']!==null?_0x37ac20['propertyName']+'\x20'+this[_0x9aa538(0x19b)][_0x37ac20[_0x9aa538(0x1a0)]]+'\x20'+this[_0x9aa538(0x173)](_0x37ac20[_0x9aa538(0x1b7)]):_0x37ac20[_0x9aa538(0x1cc)]+'\x20'+this[_0x9aa538(0x19b)][_0x37ac20[_0x9aa538(0x1a0)]];}case undefined:if(typeof _0x37ac20===_0x9aa538(0x186))return'\x27'+_0x37ac20[_0x9aa538(0x198)](/'/g,'\x27\x27')+'\x27';else{if(typeof _0x37ac20===_0x9aa538(0x1bf))return String(_0x37ac20);}break;default:throw new Error('Can\x27t\x20encode:\x20'+_0x37ac20[_0x9aa538(0x1af)]+'\x20'+_0x37ac20);}}[a62_0x2f5b6d(0x1bb)](_0xabb107){if(_0xabb107 instanceof a62_0x588d51)return new WKT()['writeGeometry'](_0xabb107);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3b011d,_0x571b54){const _0xe9f1ea=a63_0x2c97,_0x3f90f2=_0x3b011d();while(!![]){try{const _0x552b7f=parseInt(_0xe9f1ea(0x189))/0x1+parseInt(_0xe9f1ea(0x18c))/0x2*(parseInt(_0xe9f1ea(0x192))/0x3)+-parseInt(_0xe9f1ea(0x188))/0x4+parseInt(_0xe9f1ea(0x196))/0x5*(-parseInt(_0xe9f1ea(0x17b))/0x6)+parseInt(_0xe9f1ea(0x193))/0x7+parseInt(_0xe9f1ea(0x195))/0x8+parseInt(_0xe9f1ea(0x18d))/0x9*(parseInt(_0xe9f1ea(0x199))/0xa);if(_0x552b7f===_0x571b54)break;else _0x3f90f2['push'](_0x3f90f2['shift']());}catch(_0x2b9297){_0x3f90f2['push'](_0x3f90f2['shift']());}}}(a63_0x4073,0xdb6fa));function a63_0x4073(){const _0x3b8ba8=['join','idMap','conditions','PropertyIsNull','3813036jeqJvc','875517ZiFBxy','property','PropertyIsGreaterThanOrEqualTo','576332YHJpAX','459nQdvec','propertyName','PropertyIsBetween','PropertyIsGreaterThan','tagName_','6RyVxDq','1658580DPhzDO','push','5246904tnrMYi','5pTXLUc','PropertyIsEqualTo','idMapLength','48190NZXUwY','PropertyIsNotEqualTo','indexOf','upperBoundary','Not','4430112YnaRfb','PropertyIsLessThan','read','And','condition','PropertyIsLike','expression','PropertyIsLessThanOrEqualTo','length'];a63_0x4073=function(){return _0x3b8ba8;};return a63_0x4073();}import a63_0x3989b2 from'./CQL';export function isMatchCql(_0x3ebf8c,_0x5bb527){const _0x6a72dc=a63_0x2c97;let _0x68033=new a63_0x3989b2()[_0x6a72dc(0x17d)](_0x5bb527);return isMatchFilter(_0x3ebf8c,_0x68033);}function a63_0x2c97(_0x4b2ac4,_0x262e8b){const _0x40732c=a63_0x4073();return a63_0x2c97=function(_0x2c9787,_0x209bf1){_0x2c9787=_0x2c9787-0x179;let _0x28d5cc=_0x40732c[_0x2c9787];return _0x28d5cc;},a63_0x2c97(_0x4b2ac4,_0x262e8b);}export function isMatchFilter(_0x42710d,_0x362256){const _0x48eb98=a63_0x2c97;switch(_0x362256[_0x48eb98(0x191)]){case _0x48eb98(0x17a):return!isMatchFilter(_0x42710d,_0x362256['condition']);case'And':{let _0x19bcdf=!![];for(let _0x583bf0=0x0;_0x583bf0<_0x362256[_0x48eb98(0x186)]['length'];_0x583bf0++){_0x19bcdf=_0x19bcdf&&isMatchFilter(_0x42710d,_0x362256[_0x48eb98(0x186)][_0x583bf0]);}return _0x19bcdf;}case'Or':{let _0x1e2de6=![];for(let _0xd8a74b=0x0;_0xd8a74b<_0x362256[_0x48eb98(0x186)][_0x48eb98(0x183)];_0xd8a74b++){_0x1e2de6=_0x1e2de6||isMatchFilter(_0x42710d,_0x362256[_0x48eb98(0x186)][_0xd8a74b]);}return _0x1e2de6;}case _0x48eb98(0x18f):return _0x42710d[_0x362256['property']]>_0x362256['lowerBoundary']&&_0x42710d[_0x362256[_0x48eb98(0x18a)]]<_0x362256[_0x48eb98(0x179)];case _0x48eb98(0x197):return _0x42710d[_0x362256[_0x48eb98(0x18e)]]===_0x362256[_0x48eb98(0x181)];case _0x48eb98(0x19a):return _0x42710d[_0x362256[_0x48eb98(0x18e)]]!==_0x362256[_0x48eb98(0x181)];case'PropertyIsLessThan':return _0x42710d[_0x362256[_0x48eb98(0x18e)]]<_0x362256[_0x48eb98(0x181)];case _0x48eb98(0x182):return _0x42710d[_0x362256[_0x48eb98(0x18e)]]<=_0x362256[_0x48eb98(0x181)];case _0x48eb98(0x190):return _0x42710d[_0x362256[_0x48eb98(0x18e)]]>_0x362256[_0x48eb98(0x181)];case _0x48eb98(0x18b):return _0x42710d[_0x362256['propertyName']]>=_0x362256[_0x48eb98(0x181)];case _0x48eb98(0x180):return _0x42710d[_0x362256[_0x48eb98(0x18e)]][_0x48eb98(0x19b)](_0x362256[_0x48eb98(0x181)])>-0x1;case _0x48eb98(0x187):{return!_0x42710d[_0x362256['propertyName']];}default:return![];}}export function isEqualFilter(_0x5196b3,_0x5c0957){const _0x50108f=a63_0x2c97;switch(_0x5196b3[_0x50108f(0x191)]){case _0x50108f(0x17a):return _0x5196b3['tagName_']===_0x5c0957['tagName_']&&isEqualFilter(_0x5196b3[_0x50108f(0x17f)],_0x5c0957[_0x50108f(0x17f)]);case'Or':case _0x50108f(0x17e):{let _0x31dedb=_0x5196b3[_0x50108f(0x191)]===_0x5c0957['tagName_']&&_0x5196b3['conditions'][_0x50108f(0x183)]===_0x5c0957[_0x50108f(0x186)][_0x50108f(0x183)];for(let _0x1dcc67=0x0;_0x1dcc67<_0x5196b3[_0x50108f(0x186)][_0x50108f(0x183)];_0x1dcc67++){_0x31dedb=_0x31dedb&&isEqualFilter(_0x5196b3[_0x50108f(0x186)][_0x1dcc67],_0x5c0957[_0x50108f(0x186)][_0x1dcc67]);}return _0x31dedb;}case _0x50108f(0x18f):return _0x5196b3[_0x50108f(0x191)]===_0x5c0957['tagName_']&&_0x5196b3[_0x50108f(0x18a)]===_0x5c0957[_0x50108f(0x18a)];case _0x50108f(0x197):case'PropertyIsNotEqualTo':case _0x50108f(0x17c):case'PropertyIsLessThanOrEqualTo':case _0x50108f(0x190):case _0x50108f(0x18b):case _0x50108f(0x180):case'PropertyIsNull':return _0x5196b3[_0x50108f(0x191)]===_0x5c0957[_0x50108f(0x191)]&&_0x5196b3[_0x50108f(0x18e)]===_0x5c0957['propertyName'];default:return![];}}export function indexOfFilter(_0x1fcead,_0x270d79){const _0x1bffa2=a63_0x2c97;let _0x52eab3=-0x1;if((_0x1fcead===null||_0x1fcead===void 0x0?void 0x0:_0x1fcead[_0x1bffa2(0x183)])>0x0)for(let _0xcd2d76 in _0x1fcead){if(isEqualFilter(_0x1fcead[_0xcd2d76]['template'],_0x270d79))return _0xcd2d76;}return _0x52eab3;}export function getIndexByTemplate(_0xb93634,_0x3a8b85){const _0x272c2b=a63_0x2c97;let _0x457de3=_0x3a8b85['template'];if(_0x3a8b85[_0x272c2b(0x198)]>0x0){let _0xfdb68=getKeyByTemplate(_0xb93634,_0x457de3);if(_0xfdb68 instanceof Array)for(let _0x49c553 in _0xfdb68){let _0xbafa02=_0x3a8b85[_0x272c2b(0x185)][_0xfdb68[_0x49c553]+'_'+_0x49c553];if(_0xbafa02)return _0xbafa02;}else return _0x3a8b85[_0x272c2b(0x185)][_0xfdb68];}return null;}export function getKeyByTemplate(_0x3217a9,_0x26bb67){const _0x227258=a63_0x2c97;switch(_0x26bb67[_0x227258(0x191)]){case'PropertyIsEqualTo':{return _0x3217a9[_0x26bb67[_0x227258(0x18e)]];}case'And':{let _0x138767=[];for(let _0x300df4=0x0;_0x300df4<_0x26bb67['conditions'][_0x227258(0x183)];_0x300df4++){let _0x5f59a9=getKeyByTemplate(_0x3217a9,_0x26bb67['conditions'][_0x300df4]);_0x5f59a9&&_0x138767[_0x227258(0x194)](_0x5f59a9);}return _0x138767[_0x227258(0x184)](',');}case'Or':{let _0x56ae5c=[];for(let _0xcb4eb8=0x0;_0xcb4eb8<_0x26bb67['conditions']['length'];_0xcb4eb8++){let _0x3e2296=getKeyByTemplate(_0x3217a9,_0x26bb67[_0x227258(0x186)][_0xcb4eb8]);_0x3e2296&&_0x56ae5c['push'](_0x3e2296);}return _0x56ae5c;}default:return null;}}export function createKeyFromFilter(_0x5f3ee5){const _0x2fc69b=a63_0x2c97;switch(_0x5f3ee5[_0x2fc69b(0x191)]){case _0x2fc69b(0x197):return _0x5f3ee5[_0x2fc69b(0x181)];case _0x2fc69b(0x17e):{let _0x34302b=[];for(let _0x53c9e3=0x0;_0x53c9e3<_0x5f3ee5['conditions']['length'];_0x53c9e3++){let _0x403dd7=createKeyFromFilter(_0x5f3ee5[_0x2fc69b(0x186)][_0x53c9e3]);if(_0x403dd7)_0x34302b[_0x2fc69b(0x194)](_0x403dd7);else return null;}return _0x34302b[_0x2fc69b(0x184)](',');}case'Or':{let _0x279c7a=[];for(let _0x593952=0x0;_0x593952<_0x5f3ee5['conditions'][_0x2fc69b(0x183)];_0x593952++){let _0x322fd=createKeyFromFilter(_0x5f3ee5[_0x2fc69b(0x186)][_0x593952]);_0x322fd&&_0x279c7a['push'](_0x322fd);}return _0x279c7a;}default:return null;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66_0x1d9749=a66_0x2029;(function(_0x428300,_0x38f577){const _0x29b22f=a66_0x2029,_0x2fd072=_0x428300();while(!![]){try{const _0x195c64=-parseInt(_0x29b22f(0x192))/0x1+-parseInt(_0x29b22f(0x198))/0x2+parseInt(_0x29b22f(0x19c))/0x3*(parseInt(_0x29b22f(0x199))/0x4)+-parseInt(_0x29b22f(0x1a2))/0x5*(-parseInt(_0x29b22f(0x19a))/0x6)+-parseInt(_0x29b22f(0x19b))/0x7+-parseInt(_0x29b22f(0x19f))/0x8*(parseInt(_0x29b22f(0x1a1))/0x9)+parseInt(_0x29b22f(0x1a3))/0xa*(parseInt(_0x29b22f(0x19e))/0xb);if(_0x195c64===_0x38f577)break;else _0x2fd072['push'](_0x2fd072['shift']());}catch(_0x15c13d){_0x2fd072['push'](_0x2fd072['shift']());}}}(a66_0x27b6,0xe44cf));import{asString}from'ol/color';function a66_0x2029(_0x53a71d,_0x3c43a7){const _0x27b639=a66_0x27b6();return a66_0x2029=function(_0x2029ac,_0x128a3c){_0x2029ac=_0x2029ac-0x190;let _0x5420b1=_0x27b639[_0x2029ac];return _0x5420b1;},a66_0x2029(_0x53a71d,_0x3c43a7);}class ImageCache{constructor(){const _0x1f9a4c=a66_0x2029;this['cache_']={},this[_0x1f9a4c(0x191)]=0x0;}[a66_0x1d9749(0x190)](){const _0x423b3a=a66_0x1d9749;this[_0x423b3a(0x193)]={},this[_0x423b3a(0x191)]=0x0;}['get'](_0x5be460){const _0x4f721b=a66_0x1d9749,_0x9b9218=getKey(_0x5be460[_0x4f721b(0x196)],_0x5be460['markerSize'],_0x5be460[_0x4f721b(0x1a0)],_0x5be460[_0x4f721b(0x194)]);return _0x9b9218 in this[_0x4f721b(0x193)]?this[_0x4f721b(0x193)][_0x9b9218]:null;}[a66_0x1d9749(0x19d)](_0x522e1d,_0x810c2f){const _0xb5d572=a66_0x1d9749,_0x4b4d4e=getKey(_0x522e1d[_0xb5d572(0x196)],_0x522e1d[_0xb5d572(0x195)],_0x522e1d[_0xb5d572(0x1a0)],_0x522e1d['image']);this[_0xb5d572(0x193)][_0x4b4d4e]=_0x810c2f,++this['cacheSize_'];}}function getKey(_0x2e3826,_0xa89a4e,_0x39fdf1,_0x25325a){const _0xa22215=a66_0x1d9749,_0x1f7fea=_0x39fdf1?asString(_0x39fdf1):_0xa22215(0x197);return _0x2e3826+':'+_0x25325a+':'+_0x1f7fea+':'+_0xa89a4e;}export default ImageCache;export const shared=new ImageCache();function a66_0x27b6(){const _0x48ff89=['5128TEsxsb','markerColor','19827ZcAMEd','335TRJBGS','24616660AtFAMe','clear','cacheSize_','1112757IRMoQd','cache_','image','markerSize','markerLabel','null','1105090cRHhYs','382584qHHsrb','43536oiuOWi','3928792hCnFhN','51WNSJTh','set','11zaEnEH'];a66_0x27b6=function(){return _0x48ff89;};return a66_0x27b6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0xbb35f3=a67_0x3f28;function a67_0x3f28(_0x16f526,_0x1f8dfe){const _0x2ad7cd=a67_0x2ad7();return a67_0x3f28=function(_0x3f28ae,_0x9fbff1){_0x3f28ae=_0x3f28ae-0xc1;let _0x253a86=_0x2ad7cd[_0x3f28ae];return _0x253a86;},a67_0x3f28(_0x16f526,_0x1f8dfe);}function a67_0x2ad7(){const _0x1970af=['target','moveTo','text\x20is\x20required','bold\x20','261560HVIpUq','10874043nATTPb','destination-out','closePath','IDLE','destination-over','stringify','round','size\x20is\x20required','358764cHGkuu','toDataURL','24JTwxCq','createElement','LOADED','309545kzFtZv','fillStyle','getImageState','408KlSNPK','889xDSaxF','fromUrl','color\x20is\x20required','listenImageChange','getImage','getContext','hexa','25617qlNugX','canvas','save','_cache','lineTo','97736mPITys','width','beginPath','restore','globalCompositeOperation','fill','#000000','fromColor','#FFFFFF','ERROR','lineWidth','strokeStyle','lighten','drawImage','fromMakiIconId','height','px\x20sans-serif','url\x20is\x20required','fillRect','load','bezierCurveTo','15628270LaOwcM'];a67_0x2ad7=function(){return _0x1970af;};return a67_0x2ad7();}(function(_0x890a21,_0x271e19){const _0x364624=a67_0x3f28,_0x5ea1da=_0x890a21();while(!![]){try{const _0x517529=-parseInt(_0x364624(0xd0))/0x1+-parseInt(_0x364624(0xd9))/0x2+parseInt(_0x364624(0xe9))/0x3*(-parseInt(_0x364624(0xe1))/0x4)+parseInt(_0x364624(0xde))/0x5*(parseInt(_0x364624(0xdb))/0x6)+-parseInt(_0x364624(0xe2))/0x7*(-parseInt(_0x364624(0xee))/0x8)+-parseInt(_0x364624(0xd1))/0x9+parseInt(_0x364624(0xcb))/0xa;if(_0x517529===_0x271e19)break;else _0x5ea1da['push'](_0x5ea1da['shift']());}catch(_0x4d03b2){_0x5ea1da['push'](_0x5ea1da['shift']());}}}(a67_0x2ad7,0xcd893));import a67_0x273ce3 from'color';import a67_0x585c26 from'./writeTextToCanvas';import{Icon}from'ol/style';import a67_0x1bb0e9 from'ol/ImageState';import{parseImage}from'../../UrlUtil.js';class PinBuilder{constructor(){this['_cache']={};}[a67_0xbb35f3(0xf5)](_0x49ed1a,_0x272f57){const _0xab428d=a67_0xbb35f3;if(!_0x49ed1a)throw new Error(_0xab428d(0xe4));if(!_0x272f57)throw new Error(_0xab428d(0xd8));return createPin('','',_0x49ed1a,_0x272f57,this['_cache']);}[a67_0xbb35f3(0xe3)](_0x6922b,_0x53518e,_0x211956){const _0x4fd957=a67_0xbb35f3;if(!_0x6922b)throw new Error(_0x4fd957(0xc7));if(!_0x53518e)throw new Error(_0x4fd957(0xe4));if(!_0x211956)throw new Error(_0x4fd957(0xd8));return createPin(_0x6922b,'',_0x53518e,_0x211956,this['_cache']);}[a67_0xbb35f3(0xc4)](_0x218f2a,_0x4a9614,_0x54cb05){const _0x4350ad=a67_0xbb35f3;if(!_0x218f2a)throw new Error('id\x20is\x20required');if(!_0x4a9614)throw new Error(_0x4350ad(0xe4));if(!_0x54cb05)throw new Error(_0x4350ad(0xd8));return createPin(parseImage(_0x218f2a),'',_0x4a9614,_0x54cb05,this[_0x4350ad(0xec)]);}['fromText'](_0x41708d,_0xb456e5,_0x449a34){const _0x4b6194=a67_0xbb35f3;if(!_0x41708d)throw new Error(_0x4b6194(0xce));if(!_0xb456e5)throw new Error(_0x4b6194(0xe4));if(!_0x449a34)throw new Error(_0x4b6194(0xd8));return createPin('',_0x41708d,_0xb456e5,_0x449a34,this[_0x4b6194(0xec)]);}}function drawPin(_0x3c7c09,_0x26804d,_0x9a2308){const _0x11e05f=a67_0xbb35f3;_0x3c7c09[_0x11e05f(0xeb)](),_0x3c7c09['scale'](_0x9a2308/0x18,_0x9a2308/0x18),_0x3c7c09['fillStyle']=_0x26804d,_0x3c7c09[_0x11e05f(0xc1)]=a67_0x273ce3(_0x26804d)[_0x11e05f(0xc2)](0.6)[_0x11e05f(0xe8)](),_0x3c7c09[_0x11e05f(0xf8)]=0.846,_0x3c7c09[_0x11e05f(0xf0)](),_0x3c7c09[_0x11e05f(0xcd)](6.72,0.422),_0x3c7c09['lineTo'](17.28,0.422),_0x3c7c09['bezierCurveTo'](18.553,0.422,19.577,1.758,19.577,3.415),_0x3c7c09['lineTo'](19.577,10.973),_0x3c7c09[_0x11e05f(0xca)](19.577,12.63,18.553,13.966,17.282,13.966),_0x3c7c09[_0x11e05f(0xed)](14.386,14.008),_0x3c7c09[_0x11e05f(0xed)](11.826,23.578),_0x3c7c09[_0x11e05f(0xed)](9.614,14.008),_0x3c7c09['lineTo'](6.719,13.965),_0x3c7c09['bezierCurveTo'](5.446,13.983,4.422,12.629,4.422,10.972),_0x3c7c09[_0x11e05f(0xed)](4.422,3.416),_0x3c7c09[_0x11e05f(0xca)](4.423,1.76,5.447,0.423,6.718,0.423),_0x3c7c09[_0x11e05f(0xd3)](),_0x3c7c09[_0x11e05f(0xf3)](),_0x3c7c09['stroke'](),_0x3c7c09[_0x11e05f(0xf1)]();}function drawIcon(_0xebf4b1,_0x18246e,_0x4bf65f){const _0x1ba8a6=a67_0xbb35f3,_0x1fb265=_0x4bf65f/2.5;let _0xfb3d53=_0x1fb265,_0x37e04f=_0x1fb265;if(_0x18246e[_0x1ba8a6(0xef)]>_0x18246e[_0x1ba8a6(0xc5)])_0x37e04f=_0x1fb265*(_0x18246e[_0x1ba8a6(0xc5)]/_0x18246e['width']);else _0x18246e['width']<_0x18246e['height']&&(_0xfb3d53=_0x1fb265*(_0x18246e['width']/_0x18246e[_0x1ba8a6(0xc5)]));const _0xe525c8=Math[_0x1ba8a6(0xd7)]((_0x4bf65f-_0xfb3d53)/0x2),_0x3c377d=Math[_0x1ba8a6(0xd7)](0x7/0x18*_0x4bf65f-_0x37e04f/0x2);_0xebf4b1[_0x1ba8a6(0xf2)]=_0x1ba8a6(0xd2),_0xebf4b1[_0x1ba8a6(0xc3)](_0x18246e,_0xe525c8-0x1,_0x3c377d,_0xfb3d53,_0x37e04f),_0xebf4b1[_0x1ba8a6(0xc3)](_0x18246e,_0xe525c8,_0x3c377d-0x1,_0xfb3d53,_0x37e04f),_0xebf4b1['drawImage'](_0x18246e,_0xe525c8+0x1,_0x3c377d,_0xfb3d53,_0x37e04f),_0xebf4b1[_0x1ba8a6(0xc3)](_0x18246e,_0xe525c8,_0x3c377d+0x1,_0xfb3d53,_0x37e04f),_0xebf4b1[_0x1ba8a6(0xf2)]='destination-over',_0xebf4b1[_0x1ba8a6(0xdf)]=_0x1ba8a6(0xf4),_0xebf4b1[_0x1ba8a6(0xc8)](_0xe525c8-0x1,_0x3c377d-0x1,_0xfb3d53+0x2,_0x37e04f+0x2),_0xebf4b1[_0x1ba8a6(0xf2)]=_0x1ba8a6(0xd2),_0xebf4b1['drawImage'](_0x18246e,_0xe525c8,_0x3c377d,_0xfb3d53,_0x37e04f),_0xebf4b1['globalCompositeOperation']=_0x1ba8a6(0xd5),_0xebf4b1['fillStyle']=_0x1ba8a6(0xf6),_0xebf4b1[_0x1ba8a6(0xc8)](_0xe525c8-0x1,_0x3c377d-0x2,_0xfb3d53+0x2,_0x37e04f+0x2);}const stringifyScratch=new Array(0x4);function createPin(_0x51c087,_0x337a7e,_0xdcca3f,_0x258ffe,_0x4fe2c3){const _0x5f0c97=a67_0xbb35f3;stringifyScratch[0x0]=_0x51c087,stringifyScratch[0x1]=_0x337a7e,stringifyScratch[0x2]=_0xdcca3f,stringifyScratch[0x3]=_0x258ffe;const _0x53a27e=JSON[_0x5f0c97(0xd6)](stringifyScratch),_0x2b8451=_0x4fe2c3[_0x53a27e];if(_0x2b8451)return _0x2b8451;const _0x371ba6=document[_0x5f0c97(0xdc)](_0x5f0c97(0xea));_0x371ba6['width']=_0x258ffe,_0x371ba6[_0x5f0c97(0xc5)]=_0x258ffe;const _0x1e1c2a=_0x371ba6[_0x5f0c97(0xe7)]('2d');drawPin(_0x1e1c2a,_0xdcca3f,_0x258ffe);if(_0x51c087)return new Promise(_0x5c9f9c=>{const _0x5e8fe5=_0x5f0c97;let _0x314b8e=new Icon({'src':_0x51c087}),_0x4cee1a=_0x314b8e[_0x5e8fe5(0xe0)]();_0x4cee1a===a67_0x1bb0e9[_0x5e8fe5(0xdd)]||_0x4cee1a===a67_0x1bb0e9[_0x5e8fe5(0xf7)]?(drawIcon(_0x1e1c2a,_0x314b8e[_0x5e8fe5(0xe6)](0x60),_0x258ffe),_0x4fe2c3[_0x53a27e]=_0x371ba6['toDataURL'](),_0x5c9f9c(_0x371ba6['toDataURL']())):(_0x4cee1a===a67_0x1bb0e9[_0x5e8fe5(0xd4)]&&_0x314b8e[_0x5e8fe5(0xc9)](),_0x314b8e[_0x5e8fe5(0xe5)](_0x4423ed=>{const _0x4fbe6f=_0x5e8fe5;_0x4cee1a=_0x4423ed[_0x4fbe6f(0xcc)]['getImageState'](),(_0x4cee1a===a67_0x1bb0e9[_0x4fbe6f(0xdd)]||_0x4cee1a===a67_0x1bb0e9[_0x4fbe6f(0xf7)])&&(drawIcon(_0x1e1c2a,_0x314b8e[_0x4fbe6f(0xe6)](0x60),_0x258ffe),_0x4fe2c3[_0x53a27e]=_0x371ba6[_0x4fbe6f(0xda)](),_0x5c9f9c(_0x371ba6[_0x4fbe6f(0xda)]()));}));});else{if(_0x337a7e){const _0x43b634=a67_0x585c26(_0x337a7e,{'font':_0x5f0c97(0xcf)+_0x258ffe+_0x5f0c97(0xc6)});drawIcon(_0x1e1c2a,_0x43b634,_0x258ffe);}}return _0x4fe2c3[_0x53a27e]=_0x371ba6[_0x5f0c97(0xda)](),_0x371ba6[_0x5f0c97(0xda)]();}export default PinBuilder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a68_0x4158(){const _0x477e10=['getImageState','LOADED','71790oqalzN','56UaBTnY','165ljmRCf','ERROR','error','fromText','fromUrl','markerSize','2695608BYKMJF','getImage','resolve','loadIcon','options','151806KQHgKV','934833bFHURB','load','_icon','3DNcyFg','11430084nVvamG','3421404uqfbGS','110gZqNIO','2iCjCLM','listenImageChange','_imageState','dispatchEvent','markerColor','catch','image','755192YEzyjZ'];a68_0x4158=function(){return _0x477e10;};return a68_0x4158();}function a68_0x60ee(_0xd5fc74,_0x348bac){const _0x4158ee=a68_0x4158();return a68_0x60ee=function(_0x60ee2e,_0x59af00){_0x60ee2e=_0x60ee2e-0x18d;let _0x3f7883=_0x4158ee[_0x60ee2e];return _0x3f7883;},a68_0x60ee(_0xd5fc74,_0x348bac);}const a68_0x27aaf7=a68_0x60ee;(function(_0x4be6ba,_0x13d212){const _0x2a40bc=a68_0x60ee,_0x3f2a36=_0x4be6ba();while(!![]){try{const _0x423fb4=parseInt(_0x2a40bc(0x19c))/0x1*(parseInt(_0x2a40bc(0x1a3))/0x2)+parseInt(_0x2a40bc(0x19f))/0x3*(parseInt(_0x2a40bc(0x196))/0x4)+parseInt(_0x2a40bc(0x1a2))/0x5*(-parseInt(_0x2a40bc(0x19b))/0x6)+parseInt(_0x2a40bc(0x18f))/0x7*(-parseInt(_0x2a40bc(0x1aa))/0x8)+-parseInt(_0x2a40bc(0x1a1))/0x9+-parseInt(_0x2a40bc(0x18e))/0xa*(parseInt(_0x2a40bc(0x190))/0xb)+parseInt(_0x2a40bc(0x1a0))/0xc;if(_0x423fb4===_0x13d212)break;else _0x3f2a36['push'](_0x3f2a36['shift']());}catch(_0x51f1f4){_0x3f2a36['push'](_0x3f2a36['shift']());}}}(a68_0x4158,0xb9ef3));import a68_0x28c806 from'./PinBuilder';import{Icon}from'ol/style';import a68_0x29471f from'ol/ImageState';import a68_0x2782d5 from'ol/events/Event';import{shared as a68_0x277c14}from'./ImageCache';export default class PinIcon{constructor(_0x29e735){const _0xea15a7=a68_0x60ee;this['options']=_0x29e735||{},this[_0xea15a7(0x1a5)]=a68_0x29471f['IDLE'],this[_0xea15a7(0x19e)]=a68_0x277c14['get'](this[_0xea15a7(0x19a)]),this[_0xea15a7(0x19e)]&&(this[_0xea15a7(0x1a5)]=a68_0x29471f[_0xea15a7(0x18d)]);}[a68_0x27aaf7(0x19d)](){const _0x320595=a68_0x27aaf7;try{let _0x37b153,_0x586e38=new a68_0x28c806();if(this[_0x320595(0x19a)]['markerLabel'])_0x37b153=_0x586e38[_0x320595(0x193)](this[_0x320595(0x19a)]['markerLabel'],this[_0x320595(0x19a)][_0x320595(0x1a7)],this[_0x320595(0x19a)][_0x320595(0x195)]||0x30);else this[_0x320595(0x19a)][_0x320595(0x1a9)]&&(_0x37b153=_0x586e38[_0x320595(0x194)](this[_0x320595(0x19a)][_0x320595(0x1a9)],this[_0x320595(0x19a)][_0x320595(0x1a7)],this[_0x320595(0x19a)]['markerSize']||0x30));Promise[_0x320595(0x198)](_0x37b153)['then'](_0x7890d7=>{const _0x116dc9=_0x320595;this[_0x116dc9(0x199)](_0x7890d7);})[_0x320595(0x1a8)](_0xf56cc0=>{const _0x375a4c=_0x320595;console['warn'](_0xf56cc0),this['_imageState']=a68_0x29471f['ERROR'],this[_0x375a4c(0x1a6)]('error');});}catch(_0x4e10da){console['warn'](_0x4e10da),this['_imageState']=a68_0x29471f['ERROR'],this[_0x320595(0x1a6)](_0x320595(0x192));}}[a68_0x27aaf7(0x199)](_0x341fc8){const _0x3cd02d=a68_0x27aaf7;this[_0x3cd02d(0x19e)]=new Icon({'src':_0x341fc8}),a68_0x277c14['set'](this['options'],this[_0x3cd02d(0x19e)]);let _0x3693e7=this[_0x3cd02d(0x19e)][_0x3cd02d(0x1ab)]();_0x3693e7===a68_0x29471f[_0x3cd02d(0x18d)]||_0x3693e7===a68_0x29471f[_0x3cd02d(0x191)]?(this[_0x3cd02d(0x1a5)]=this[_0x3cd02d(0x19e)][_0x3cd02d(0x1ab)](),this[_0x3cd02d(0x1a6)]('load')):(_0x3693e7===a68_0x29471f['IDLE']&&this['_icon'][_0x3cd02d(0x19d)](),this[_0x3cd02d(0x19e)][_0x3cd02d(0x1a4)](_0x43437b=>{const _0x13cc4a=_0x3cd02d;_0x3693e7=_0x43437b['target'][_0x13cc4a(0x1ab)](),(_0x3693e7===a68_0x29471f[_0x13cc4a(0x18d)]||_0x3693e7===a68_0x29471f[_0x13cc4a(0x191)])&&(this[_0x13cc4a(0x1a5)]=this[_0x13cc4a(0x19e)][_0x13cc4a(0x1ab)](),this[_0x13cc4a(0x1a6)]('load'));}));}['getImageState'](){const _0xeb9eda=a68_0x27aaf7;return this[_0xeb9eda(0x1a5)];}[a68_0x27aaf7(0x197)](){const _0x18a644=a68_0x27aaf7;var _0x360ae1;return(_0x360ae1=this['_icon'])===null||_0x360ae1===void 0x0?void 0x0:_0x360ae1[_0x18a644(0x197)]();}[a68_0x27aaf7(0x1a4)](_0x1369f9){this['_listener']=_0x1369f9;}[a68_0x27aaf7(0x1a6)](_0x2174f7){if(this['_listener']){let _0x124e87=new a68_0x2782d5(_0x2174f7);_0x124e87['target']=this,this['_listener'](_0x124e87);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a69_0x37ef(){const _0x3cd019=['stroke','msImageSmoothingEnabled','fillText','style','font-size','strokeWidth','data','241765ipoHWN','18SmRcOg','round','52140pLfMfy','16hNatNG','fillRect','ceil','minx','10px\x20sans-serif','mozImageSmoothingEnabled','7pVhEsB','removeChild','getComputedStyle','canvas','font','3661176VyHfdx','1005990BqPCRN','lineJoin','getPropertyValue','text\x20is\x20required.','14IOzpcQ','body','appendChild','722968VdZAdL','451DEwHaW','#00000000','getContext','black','createElement','width','test','webkitImageSmoothingEnabled','white','32323YiMifZ','strokeText','getImageData','dimensions','height','imageSmoothingEnabled','#FFFFFF','visibility','lineWidth','9528WaLRnG','backgroundColor','ascent','fillStyle','#000000'];a69_0x37ef=function(){return _0x3cd019;};return a69_0x37ef();}(function(_0x4ebcf9,_0x15fb2b){const _0x5c9328=a69_0x122f,_0x2c7726=_0x4ebcf9();while(!![]){try{const _0x329d3f=parseInt(_0x5c9328(0x20a))/0x1*(parseInt(_0x5c9328(0x1fd))/0x2)+parseInt(_0x5c9328(0x213))/0x3+-parseInt(_0x5c9328(0x1ed))/0x4*(parseInt(_0x5c9328(0x1e9))/0x5)+-parseInt(_0x5c9328(0x1f9))/0x6*(-parseInt(_0x5c9328(0x1f3))/0x7)+-parseInt(_0x5c9328(0x200))/0x8*(parseInt(_0x5c9328(0x1ea))/0x9)+parseInt(_0x5c9328(0x1ec))/0xa*(-parseInt(_0x5c9328(0x201))/0xb)+parseInt(_0x5c9328(0x1f8))/0xc;if(_0x329d3f===_0x15fb2b)break;else _0x2c7726['push'](_0x2c7726['shift']());}catch(_0x21313d){_0x2c7726['push'](_0x2c7726['shift']());}}}(a69_0x37ef,0x1be60));function measureText(_0x31cbdf,_0x292a53,_0x4cca12,_0x2d7582,_0x9de9a1){const _0x45629a=a69_0x122f,_0x47702b=_0x31cbdf['measureText'](_0x292a53),_0x5d322a=!/\S/[_0x45629a(0x207)](_0x292a53);if(!_0x5d322a&&document['defaultView']){const _0x11d3bb=document['defaultView'][_0x45629a(0x1f5)](_0x31cbdf[_0x45629a(0x1f6)])[_0x45629a(0x1fb)](_0x45629a(0x1e6))['replace']('px',''),_0x50e8e2=document[_0x45629a(0x205)](_0x45629a(0x1f6)),_0x258a88=0x64,_0x4bd0cc=_0x47702b[_0x45629a(0x206)]+_0x258a88|0x0,_0x52fac6=0x3*(_0x11d3bb-0x0),_0x5a42d7=_0x52fac6/0x2;_0x50e8e2[_0x45629a(0x206)]=_0x4bd0cc,_0x50e8e2[_0x45629a(0x20e)]=_0x52fac6;const _0x5e9283=_0x50e8e2[_0x45629a(0x203)]('2d');if(!_0x5e9283)return{};_0x5e9283['font']=_0x4cca12,_0x5e9283[_0x45629a(0x1e0)]=_0x45629a(0x209),_0x5e9283[_0x45629a(0x1ee)](0x0,0x0,_0x50e8e2[_0x45629a(0x206)]+0x1,_0x50e8e2[_0x45629a(0x20e)]+0x1);_0x2d7582&&(_0x5e9283['strokeStyle']=_0x45629a(0x204),_0x5e9283[_0x45629a(0x212)]=_0x31cbdf[_0x45629a(0x212)],_0x5e9283[_0x45629a(0x20b)](_0x292a53,_0x258a88/0x2,_0x5a42d7));_0x9de9a1&&(_0x5e9283[_0x45629a(0x1e0)]='black',_0x5e9283['fillText'](_0x292a53,_0x258a88/0x2,_0x5a42d7));const _0x4944e7=_0x5e9283[_0x45629a(0x20c)](0x0,0x0,_0x4bd0cc,_0x52fac6)[_0x45629a(0x1e8)],_0x97e1ba=_0x4944e7['length'],_0x48c7bb=_0x4bd0cc*0x4;let _0x22d6d8,_0x1407cc,_0x39cb3a=0x0,_0x52215f=0x0;for(_0x22d6d8=0x0;_0x22d6d8<_0x97e1ba;++_0x22d6d8){if(_0x4944e7[_0x22d6d8]!==0xff){_0x39cb3a=_0x22d6d8/_0x48c7bb|0x0;break;}}for(_0x22d6d8=_0x97e1ba-0x1;_0x22d6d8>=0x0;--_0x22d6d8){if(_0x4944e7[_0x22d6d8]!==0xff){_0x52215f=_0x22d6d8/_0x48c7bb|0x0;break;}}let _0x5420a7=-0x1;for(_0x22d6d8=0x0;_0x22d6d8<_0x4bd0cc&&_0x5420a7===-0x1;++_0x22d6d8){for(_0x1407cc=0x0;_0x1407cc<_0x52fac6;++_0x1407cc){const _0x1089cf=_0x22d6d8*0x4+_0x1407cc*_0x48c7bb;if(_0x4944e7[_0x1089cf]!==0xff||_0x4944e7[_0x1089cf+0x1]!==0xff||_0x4944e7[_0x1089cf+0x2]!==0xff||_0x4944e7[_0x1089cf+0x3]!==0xff){_0x5420a7=_0x22d6d8;break;}}}return{'width':_0x47702b[_0x45629a(0x206)],'height':_0x52215f-_0x39cb3a,'ascent':_0x5a42d7-_0x39cb3a,'descent':_0x52215f-_0x5a42d7,'minx':_0x5420a7-_0x258a88/0x2};}return{'width':_0x47702b['width'],'height':0x0,'ascent':0x0,'descent':0x0,'minx':0x0};}let imageSmoothingEnabledName='';function writeTextToCanvas(_0x4c1e11,_0xc88b17){const _0x109201=a69_0x122f;if(!_0x4c1e11)throw new Error(_0x109201(0x1fc));if(_0x4c1e11==='')return undefined;_0xc88b17=defaultValue(_0xc88b17,{});const _0x14968c=defaultValue(_0xc88b17[_0x109201(0x1f7)],_0x109201(0x1f1)),_0x2f2bfb=defaultValue(_0xc88b17[_0x109201(0x1e2)],![]),_0x343336=defaultValue(_0xc88b17['fill'],!![]),_0x173884=defaultValue(_0xc88b17[_0x109201(0x1e7)],0x1),_0x5b4685=defaultValue(_0xc88b17[_0x109201(0x214)],_0x109201(0x202)),_0x3dc667=defaultValue(_0xc88b17['padding'],0x0),_0x3eeaa7=_0x3dc667*0x2,_0x5937bb=document[_0x109201(0x205)]('canvas');_0x5937bb[_0x109201(0x206)]=0x1,_0x5937bb[_0x109201(0x20e)]=0x1,_0x5937bb[_0x109201(0x1e5)][_0x109201(0x1f7)]=_0x14968c;const _0x145019=_0x5937bb['getContext']('2d');if(!imageSmoothingEnabledName&&_0x145019){if(_0x145019[_0x109201(0x20f)])imageSmoothingEnabledName=_0x109201(0x20f);else{if(_0x145019[_0x109201(0x1f2)])imageSmoothingEnabledName=_0x109201(0x1f2);else{if(_0x145019[_0x109201(0x208)])imageSmoothingEnabledName='webkitImageSmoothingEnabled';else _0x145019[_0x109201(0x1e3)]&&(imageSmoothingEnabledName='msImageSmoothingEnabled');}}}_0x145019[_0x109201(0x1f7)]=_0x14968c,_0x145019['lineJoin']=_0x109201(0x1eb),_0x145019[_0x109201(0x212)]=_0x173884,_0x145019[imageSmoothingEnabledName]=![],_0x5937bb['style'][_0x109201(0x211)]='hidden',document[_0x109201(0x1fe)][_0x109201(0x1ff)](_0x5937bb);const _0x144760=measureText(_0x145019,_0x4c1e11,_0x14968c,_0x2f2bfb,_0x343336);if(!_0x144760)return;_0x5937bb[_0x109201(0x20d)]=_0x144760,document[_0x109201(0x1fe)][_0x109201(0x1f4)](_0x5937bb),_0x5937bb['style']['visibility']='';const _0x4d1028=-(_0x144760[_0x109201(0x1f0)]?_0x144760[_0x109201(0x1f0)]:0x0),_0x4fa8a6=Math[_0x109201(0x1ef)](_0x144760[_0x109201(0x206)])+_0x4d1028+_0x3eeaa7,_0x104bb6=(_0x144760[_0x109201(0x20e)]?_0x144760[_0x109201(0x20e)]:0x0)+_0x3eeaa7,_0x4fd409=_0x104bb6-(_0x144760[_0x109201(0x215)]?_0x144760[_0x109201(0x215)]:0x0)+_0x3dc667,_0x1c2780=_0x104bb6-_0x4fd409+_0x3eeaa7;return _0x5937bb['width']=_0x4fa8a6,_0x5937bb[_0x109201(0x20e)]=_0x104bb6,_0x145019[_0x109201(0x1f7)]=_0x14968c,_0x145019[_0x109201(0x1fa)]=_0x109201(0x1eb),_0x145019['lineWidth']=_0x173884,_0x145019[imageSmoothingEnabledName]=![],_0x5b4685!==_0x109201(0x202)&&(_0x145019[_0x109201(0x1e0)]=_0x5b4685,_0x145019[_0x109201(0x1ee)](0x0,0x0,_0x5937bb[_0x109201(0x206)],_0x5937bb['height'])),_0x2f2bfb&&(_0x145019['strokeStyle']=defaultValue(_0xc88b17['strokeColor'],_0x109201(0x1e1)),_0x145019[_0x109201(0x20b)](_0x4c1e11,_0x4d1028+_0x3dc667,_0x1c2780)),_0x343336&&(_0x145019[_0x109201(0x1e0)]=defaultValue(_0xc88b17['fillColor'],_0x109201(0x210)),_0x145019[_0x109201(0x1e4)](_0x4c1e11,_0x4d1028+_0x3dc667,_0x1c2780)),_0x5937bb;}function a69_0x122f(_0x3cb191,_0x27b285){const _0x37efa2=a69_0x37ef();return a69_0x122f=function(_0x122f50,_0x50cee1){_0x122f50=_0x122f50-0x1e0;let _0x34c8f5=_0x37efa2[_0x122f50];return _0x34c8f5;},a69_0x122f(_0x3cb191,_0x27b285);}function defaultValue(_0x28d286,_0x3d8dd4){if(_0x28d286!==undefined&&_0x28d286!==null)return _0x28d286;return _0x3d8dd4;}export default writeTextToCanvas;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73_0x134cb3=a73_0x50cd;function a73_0x50cd(_0x417ef0,_0x4f8724){const _0x1a95eb=a73_0x1a95();return a73_0x50cd=function(_0x50cd4d,_0x50504e){_0x50cd4d=_0x50cd4d-0x13c;let _0x29386a=_0x1a95eb[_0x50cd4d];return _0x29386a;},a73_0x50cd(_0x417ef0,_0x4f8724);}(function(_0x536780,_0x489b61){const _0x5d55f7=a73_0x50cd,_0x572e97=_0x536780();while(!![]){try{const _0x539e1d=parseInt(_0x5d55f7(0x15c))/0x1+-parseInt(_0x5d55f7(0x157))/0x2*(-parseInt(_0x5d55f7(0x145))/0x3)+parseInt(_0x5d55f7(0x140))/0x4+-parseInt(_0x5d55f7(0x146))/0x5*(-parseInt(_0x5d55f7(0x13e))/0x6)+parseInt(_0x5d55f7(0x159))/0x7+-parseInt(_0x5d55f7(0x151))/0x8+-parseInt(_0x5d55f7(0x15d))/0x9;if(_0x539e1d===_0x489b61)break;else _0x572e97['push'](_0x572e97['shift']());}catch(_0x2ce602){_0x572e97['push'](_0x572e97['shift']());}}}(a73_0x1a95,0xb5ada));import a73_0x2acaee from'ol/format/EsriJSON';import a73_0x11225b from'ol/format/GeoJSON';import{getPointResolution}from'ol/proj';import a73_0x260f36 from'./Task';import{appendPath}from'../../UrlUtil';function a73_0x1a95(){const _0x44fef3=['getProjection','layerDefs','imageDisplay','9774936MphqFo','getResolution','run','getSize','writeGeometryObject','getCode','352wRAJBg','returnZ','8788486ELimNA','layers','getView','662204tiASwm','6647031QZGrki','params','_setGeometryParams','1389006xEbEuI','all','1690692SojzPP','geometry','url','inSR','mapExtent','2262EKRXyn','5WqAvuu','time','resolution','request','path','valueOf','returnGeometry','returnM'];a73_0x1a95=function(){return _0x44fef3;};return a73_0x1a95();}import{getEsriSpatialReference}from'../../EsriUtil';export default class Identify extends a73_0x260f36{constructor(_0x21f058,_0x5767bd,_0x3e904b){const _0x1876de=a73_0x50cd;super(_0x21f058,_0x5767bd,_0x3e904b),this[_0x1876de(0x14a)]='identify',this[_0x1876de(0x13c)]={'layers':_0x1876de(0x13f),'tolerance':0x0,'returnGeometry':!![]},this['tolerance']=0x3,this['resolution']=0x0,this[_0x1876de(0x142)]=appendPath(this['url'],this[_0x1876de(0x14a)]),_0x5767bd&&((_0x5767bd[_0x1876de(0x14c)]===!![]||_0x5767bd[_0x1876de(0x14c)]===![])&&(this[_0x1876de(0x13c)][_0x1876de(0x14c)]=_0x5767bd[_0x1876de(0x14c)]),_0x5767bd[_0x1876de(0x15a)]&&(this['params']['layers']=_0x5767bd[_0x1876de(0x15a)]),_0x5767bd[_0x1876de(0x14f)]&&(this[_0x1876de(0x13c)][_0x1876de(0x14f)]=_0x5767bd[_0x1876de(0x14f)]),(_0x5767bd[_0x1876de(0x158)]===!![]||_0x5767bd[_0x1876de(0x158)]===![])&&(this[_0x1876de(0x13c)][_0x1876de(0x158)]=_0x5767bd[_0x1876de(0x158)]),(_0x5767bd['returnM']===!![]||_0x5767bd['returnM']===![])&&(this[_0x1876de(0x13c)]['returnM']=_0x5767bd[_0x1876de(0x14d)]));}['at'](_0x4788b4,_0x236908){const _0x33bfc2=a73_0x50cd;let _0x368c8f,_0x103374;const _0x5dfc83=new a73_0x11225b();_0x368c8f=_0x4788b4,_0x103374=getEsriSpatialReference(_0x236908['getView']()['getProjection']()['getCode']());const _0x59860c=_0x236908[_0x33bfc2(0x154)]();_0x59860c&&(this[_0x33bfc2(0x13c)][_0x33bfc2(0x150)]=[_0x59860c[0x0],_0x59860c[0x1],0x60]);this[_0x33bfc2(0x13c)]['sr']=_0x103374;const _0x47a137=_0x236908[_0x33bfc2(0x15b)]()['calculateExtent'](_0x236908[_0x33bfc2(0x154)]());this[_0x33bfc2(0x13c)][_0x33bfc2(0x144)]={'xmin':_0x47a137[0x0],'ymin':_0x47a137[0x1],'xmax':_0x47a137[0x2],'ymax':_0x47a137[0x3],'spatialReference':_0x103374};const _0x51f8dc=_0x236908['getView']()[_0x33bfc2(0x152)](),_0x574d2f=_0x236908[_0x33bfc2(0x15b)]()['getCenter']();return _0x51f8dc&&_0x574d2f&&(this[_0x33bfc2(0x148)]=getPointResolution(_0x236908['getView']()[_0x33bfc2(0x14e)](),_0x51f8dc,_0x574d2f)),this[_0x33bfc2(0x13d)](_0x368c8f,_0x236908[_0x33bfc2(0x15b)]()[_0x33bfc2(0x14e)]()[_0x33bfc2(0x156)]()),this;}['between'](_0x2dd5cb,_0x4e6b87){const _0x15204e=a73_0x50cd;return this['params'][_0x15204e(0x147)]=[_0x2dd5cb['valueOf'](),_0x4e6b87[_0x15204e(0x14b)]()],this;}[a73_0x134cb3(0x153)](){const _0x267ac4=a73_0x134cb3;this[_0x267ac4(0x149)]();}['_setGeometryParams'](_0x18d90b,_0xba886b){const _0x1d4156=a73_0x134cb3;var _0x429a7c=new a73_0x2acaee();const _0x4c4f9d=_0x429a7c[_0x1d4156(0x155)](_0x18d90b);this[_0x1d4156(0x13c)][_0x1d4156(0x143)]=getEsriSpatialReference(_0xba886b),this[_0x1d4156(0x13c)][_0x1d4156(0x141)]=_0x4c4f9d,this[_0x1d4156(0x13c)]['geometryType']=this['geojsonTypeToArcGIS'](_0x18d90b['getType']());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a74_0x3df1(_0x17a4fb,_0x46992f){const _0x42f882=a74_0x42f8();return a74_0x3df1=function(_0x3df154,_0x37d2a9){_0x3df154=_0x3df154-0x66;let _0x3ea835=_0x42f882[_0x3df154];return _0x3ea835;},a74_0x3df1(_0x17a4fb,_0x46992f);}const a74_0x169682=a74_0x3df1;function a74_0x42f8(){const _0x49693b=['units','nearby','params','getType','intersects','returnZ','warn','count','_setGeometryParams','maxAllowableOffset','returnCountOnly','/query','catch','esriSpatialRelEnvelopeIntersects','where','esriSpatialRelIntersects','code','length','253EBrdtG','returnDistinctValues','contains','orderByFields','features','8acPFfP','No\x20features\x20found','esriSpatialRelWithin','3839906kkAvQB','esriSpatialRelIndexIntersects','bboxIntersects','inSR','touches','1=1','run','orderBy','forEach','esriSpatialRelOverlaps','crosses','abs','simplify','readFeature','esriSpatialRelTouches','returnIdsOnly','distance','25181NGOgaU','getSize','request','spatialRel','returnExtentOnly','push','ids','geojsonTypeToArcGIS','2115665hWMVAL','query','outSR','12990474aFMEAU','path','returnGeometry','16941340gDlOgq','indexIntersects','time','94XForOy','geometry','895308rldFDT','writeGeometryObject','url','24QajEHM','esriSRUnit_Meter','valueOf','_cleanParams','esriSpatialRelContains','400','1056OdaliC','returnM','12176kEQgyS','data'];a74_0x42f8=function(){return _0x49693b;};return a74_0x42f8();}(function(_0x517e3d,_0x291701){const _0x4dfc68=a74_0x3df1,_0x53d1d9=_0x517e3d();while(!![]){try{const _0x18255d=parseInt(_0x4dfc68(0xa1))/0x1*(parseInt(_0x4dfc68(0x67))/0x2)+parseInt(_0x4dfc68(0x72))/0x3*(-parseInt(_0x4dfc68(0x74))/0x4)+-parseInt(_0x4dfc68(0xa9))/0x5*(parseInt(_0x4dfc68(0x6c))/0x6)+-parseInt(_0x4dfc68(0x90))/0x7*(-parseInt(_0x4dfc68(0x8d))/0x8)+-parseInt(_0x4dfc68(0xac))/0x9+parseInt(_0x4dfc68(0xaf))/0xa+-parseInt(_0x4dfc68(0x88))/0xb*(-parseInt(_0x4dfc68(0x69))/0xc);if(_0x18255d===_0x291701)break;else _0x53d1d9['push'](_0x53d1d9['shift']());}catch(_0x42d010){_0x53d1d9['push'](_0x53d1d9['shift']());}}}(a74_0x42f8,0xe4390));import a74_0x5d4d63 from'ol/format/EsriJSON';import a74_0x3a0ab1 from'./Task';import{getEsriSpatialReference}from'../../EsriUtil';import{appendPath}from'../../UrlUtil';export default class Query extends a74_0x3a0ab1{constructor(_0x8b5622,_0x3c1039,_0x25e503){const _0x1a9c60=a74_0x3df1;super(_0x8b5622,_0x3c1039,_0x25e503),this[_0x1a9c60(0xad)]=_0x1a9c60(0xaa),this[_0x1a9c60(0x78)]={'returnGeometry':!![],'where':_0x1a9c60(0x95),'outFields':'*','returnZ':![],'returnM':![],'t':new Date()['getTime']()},this[_0x1a9c60(0x6b)]=appendPath(this['url'],this[_0x1a9c60(0xad)]),_0x3c1039&&((_0x3c1039['returnGeometry']===!![]||_0x3c1039[_0x1a9c60(0xae)]===![])&&(this[_0x1a9c60(0x78)][_0x1a9c60(0xae)]=_0x3c1039['returnGeometry']),_0x3c1039[_0x1a9c60(0x84)]&&(this[_0x1a9c60(0x78)][_0x1a9c60(0x84)]=_0x3c1039[_0x1a9c60(0x84)]),_0x3c1039[_0x1a9c60(0xab)]&&(this['params'][_0x1a9c60(0xab)]=getEsriSpatialReference(_0x3c1039['outSR'])),(_0x3c1039[_0x1a9c60(0x7b)]===!![]||_0x3c1039[_0x1a9c60(0x7b)]===![])&&(this[_0x1a9c60(0x78)]['returnZ']=_0x3c1039[_0x1a9c60(0x7b)]),(_0x3c1039[_0x1a9c60(0x73)]===!![]||_0x3c1039[_0x1a9c60(0x73)]===![])&&(this[_0x1a9c60(0x78)][_0x1a9c60(0x73)]=_0x3c1039[_0x1a9c60(0x73)]));}['within'](_0x44de85,_0x14c3ca){const _0x915db4=a74_0x3df1;return this['_setGeometryParams'](_0x44de85,_0x14c3ca),this['params'][_0x915db4(0xa4)]=_0x915db4(0x70),this;}[a74_0x169682(0x7a)](_0x41846c,_0x514953){const _0x226fc6=a74_0x169682;return this[_0x226fc6(0x7e)](_0x41846c,_0x514953),this[_0x226fc6(0x78)][_0x226fc6(0xa4)]='esriSpatialRelIntersects',this;}[a74_0x169682(0x8a)](_0x5a1981,_0x5e5308){const _0x2c91d0=a74_0x169682;return this[_0x2c91d0(0x7e)](_0x5a1981,_0x5e5308),this[_0x2c91d0(0x78)]['spatialRel']=_0x2c91d0(0x8f),this;}[a74_0x169682(0x9a)](_0x232a49,_0x39dc87){const _0x196133=a74_0x169682;return this['_setGeometryParams'](_0x232a49,_0x39dc87),this['params'][_0x196133(0xa4)]='esriSpatialRelCrosses',this;}[a74_0x169682(0x94)](_0x1f906f,_0x5900a2){const _0x3e92d6=a74_0x169682;return this[_0x3e92d6(0x7e)](_0x1f906f,_0x5900a2),this[_0x3e92d6(0x78)][_0x3e92d6(0xa4)]=_0x3e92d6(0x9e),this;}['overlaps'](_0x8eb04,_0xa95117){const _0x49603b=a74_0x169682;return this['_setGeometryParams'](_0x8eb04,_0xa95117),this[_0x49603b(0x78)][_0x49603b(0xa4)]=_0x49603b(0x99),this;}[a74_0x169682(0x92)](_0x31ac15,_0x3b4146){const _0x49891f=a74_0x169682;return this[_0x49891f(0x7e)](_0x31ac15,_0x3b4146),this[_0x49891f(0x78)][_0x49891f(0xa4)]=_0x49891f(0x83),this;}[a74_0x169682(0xb0)](_0x5c7001,_0x36d23c){const _0x4487bd=a74_0x169682;return this[_0x4487bd(0x7e)](_0x5c7001,_0x36d23c),this['params']['spatialRel']=_0x4487bd(0x91),this;}[a74_0x169682(0x77)](_0x34ffe6,_0x34d3a9,_0x543d82){const _0x398fb9=a74_0x169682;return this['_setGeometryParams'](_0x34ffe6,_0x34d3a9),this[_0x398fb9(0x78)][_0x398fb9(0xa4)]=_0x398fb9(0x85),this[_0x398fb9(0x78)][_0x398fb9(0x76)]=_0x398fb9(0x6d),this[_0x398fb9(0x78)][_0x398fb9(0xa0)]=_0x543d82,this;}['where'](_0x185746){const _0x30e48a=a74_0x169682;return this[_0x30e48a(0x78)][_0x30e48a(0x84)]=_0x185746,this;}['between'](_0x4745dc,_0x49229f){const _0x50169f=a74_0x169682;return this[_0x50169f(0x78)][_0x50169f(0x66)]=[_0x4745dc[_0x50169f(0x6e)](),_0x49229f[_0x50169f(0x6e)]()],this;}[a74_0x169682(0x9c)](_0x1c7b6c,_0x253309){const _0x22e3a1=a74_0x169682,_0x1c1e9a=_0x1c7b6c['getExtent']();var _0x51f72f=Math[_0x22e3a1(0x9b)](_0x1c1e9a[0x2]-_0x1c1e9a[0x0]);const _0x12a0cd=_0x1c7b6c[_0x22e3a1(0xa2)]();if(_0x12a0cd)return this[_0x22e3a1(0x78)][_0x22e3a1(0x7f)]=_0x51f72f/_0x12a0cd[0x1]*_0x253309,this;}[a74_0x169682(0x97)](_0x51725c,_0x515b83){const _0xab1e08=a74_0x169682;return _0x515b83=_0x515b83||'ASC',this[_0xab1e08(0x78)][_0xab1e08(0x8b)]=this[_0xab1e08(0x78)]['orderByFields']?this[_0xab1e08(0x78)][_0xab1e08(0x8b)]+',':'',this['params']['orderByFields']+=[_0x51725c,_0x515b83]['join']('\x20'),this;}async[a74_0x169682(0x96)](){const _0x55ad29=a74_0x169682;this[_0x55ad29(0x6f)]();const _0xdf0496=await this['request']()[_0x55ad29(0x82)](_0x2f4487=>{throw new Error(_0x2f4487);});if(_0xdf0496['status']!==0xc8)throw new Error(_0x55ad29(0x8e));if(_0xdf0496[_0x55ad29(0x75)]&&_0xdf0496[_0x55ad29(0x75)][_0x55ad29(0x8c)]&&_0xdf0496[_0x55ad29(0x75)][_0x55ad29(0x8c)][_0x55ad29(0x87)]>0x0){var _0x5bc7c9=new a74_0x5d4d63();let _0x589064=[];return _0xdf0496[_0x55ad29(0x75)][_0x55ad29(0x8c)][_0x55ad29(0x98)](_0x270be5=>{const _0x51ac73=_0x55ad29,_0x1e1321=_0x5bc7c9[_0x51ac73(0x9d)](_0x270be5);_0x589064[_0x51ac73(0xa6)](_0x1e1321);}),_0x589064;}return[];}[a74_0x169682(0x7d)](){const _0x5a34e4=a74_0x169682;this[_0x5a34e4(0x6f)](),this['params'][_0x5a34e4(0x80)]=!![],this[_0x5a34e4(0xa3)]();}[a74_0x169682(0xa7)](){const _0xb09abb=a74_0x169682;this[_0xb09abb(0x6f)](),this[_0xb09abb(0x78)]['returnIdsOnly']=!![],this[_0xb09abb(0xa3)]();}['distinct'](){const _0x1de038=a74_0x169682;return this[_0x1de038(0x78)][_0x1de038(0xae)]=![],this['params'][_0x1de038(0x89)]=!![],this;}['layer'](_0x90606){const _0x47fae3=a74_0x169682;return this['path']=_0x90606+_0x47fae3(0x81),this;}['_trapSQLerrors'](_0x34611a){const _0x5b987b=a74_0x169682;_0x34611a&&(_0x34611a[_0x5b987b(0x86)]===_0x5b987b(0x71)&&console[_0x5b987b(0x7c)]['apply']('one\x20common\x20syntax\x20error\x20in\x20query\x20requests\x20is\x20encasing\x20string\x20values\x20in\x20double\x20quotes\x20instead\x20of\x20single\x20quotes'));}['_cleanParams'](){const _0x229018=a74_0x169682;delete this['params'][_0x229018(0x9f)],delete this[_0x229018(0x78)][_0x229018(0xa5)],delete this[_0x229018(0x78)][_0x229018(0x80)];}['_setGeometryParams'](_0x35409c,_0x19bed1){const _0x4c4777=a74_0x169682;var _0x435c1c=new a74_0x5d4d63();const _0xb3a6c5=_0x435c1c[_0x4c4777(0x6a)](_0x35409c);this[_0x4c4777(0x78)][_0x4c4777(0x93)]=getEsriSpatialReference(_0x19bed1),this['params'][_0x4c4777(0x68)]=_0xb3a6c5,this[_0x4c4777(0x78)]['geometryType']=this[_0x4c4777(0xa8)](_0x35409c[_0x4c4777(0x79)]());}}
|
package/utils/tasks/esri/Task.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a75_0x1a8f(){var _0x10362b=['184887nyKgRk','format','esriGeometryMultipoint','stringify','url','call','returnUnformattedValues','345238ZIbnsK','method','14KcHqYM','1370kPgtDi','MultiPoint','test','join','prototype','GET','geojsonTypeToArcGIS','esriGeometryPolyline','[object\x20Object]','serialize','toString','get','190UPzEHD','2538880SwOQdU','13062xzJyAT','esriGeometryPolygon','hasOwnProperty','Point','1819624VbyJML','MultiLineString','request','[object\x20Date]','Polygon','isArcgisOnline','425254XglLga','json','6eSIAPk','params','3110338aPBaUQ','post','LineString'];a75_0x1a8f=function(){return _0x10362b;};return a75_0x1a8f();}var a75_0x14ad7f=a75_0x23e2;(function(_0x2736e0,_0x32ade5){var _0xf04e23=a75_0x23e2,_0x4bea20=_0x2736e0();while(!![]){try{var _0x566689=-parseInt(_0xf04e23(0x152))/0x1+parseInt(_0xf04e23(0x160))/0x2*(-parseInt(_0xf04e23(0x154))/0x3)+parseInt(_0xf04e23(0x14c))/0x4+-parseInt(_0xf04e23(0x163))/0x5*(-parseInt(_0xf04e23(0x148))/0x6)+parseInt(_0xf04e23(0x162))/0x7*(-parseInt(_0xf04e23(0x147))/0x8)+parseInt(_0xf04e23(0x159))/0x9*(parseInt(_0xf04e23(0x146))/0xa)+parseInt(_0xf04e23(0x156))/0xb;if(_0x566689===_0x32ade5)break;else _0x4bea20['push'](_0x4bea20['shift']());}catch(_0x45bb3d){_0x4bea20['push'](_0x4bea20['shift']());}}}(a75_0x1a8f,0x4df23));import a75_0x1f1d42 from'../../AxiosUtil';function a75_0x23e2(_0xd8cb29,_0x34cef0){var _0x1a8f2f=a75_0x1a8f();return a75_0x23e2=function(_0x23e2da,_0xf90043){_0x23e2da=_0x23e2da-0x146;var _0x244751=_0x1a8f2f[_0x23e2da];return _0x244751;},a75_0x23e2(_0xd8cb29,_0x34cef0);}import{jsonp,stringify}from'../../AxiosUtil';export default class Task{constructor(_0xa24516,_0x47125a,_0x5eddab){var _0x39b828=a75_0x23e2;this[_0x39b828(0x15d)]=_0xa24516,this[_0x39b828(0x155)]=_0x47125a||{},this['method']=!_0x5eddab?_0x39b828(0x168):_0x5eddab;}[a75_0x14ad7f(0x169)](_0x5e50cc){var _0x130e09=a75_0x14ad7f,_0x55a197;switch(_0x5e50cc){case _0x130e09(0x14b):_0x55a197='esriGeometryPoint';break;case _0x130e09(0x164):_0x55a197=_0x130e09(0x15b);break;case _0x130e09(0x158):_0x55a197='esriGeometryPolyline';break;case _0x130e09(0x14d):_0x55a197=_0x130e09(0x16a);break;case _0x130e09(0x150):_0x55a197=_0x130e09(0x149);break;case'MultiPolygon':_0x55a197=_0x130e09(0x149);break;}return _0x55a197;}[a75_0x14ad7f(0x151)](_0x8ecc8d){var _0x430901=a75_0x14ad7f;return/^(?!.*utility\.arcgis\.com).*\.arcgis\.com.*FeatureServer/i[_0x430901(0x165)](_0x8ecc8d);}['serialize'](_0x2c813c){var _0x1d3f8e=a75_0x14ad7f,_0x3eb381='';_0x2c813c['f']=_0x2c813c['f']||_0x1d3f8e(0x153);for(var _0x24fef7 in _0x2c813c){if(Object[_0x1d3f8e(0x167)][_0x1d3f8e(0x14a)][_0x1d3f8e(0x15e)](_0x2c813c,_0x24fef7)){var _0x540285=_0x2c813c[_0x24fef7],_0x466527=Object[_0x1d3f8e(0x167)][_0x1d3f8e(0x16d)][_0x1d3f8e(0x15e)](_0x540285),_0x1802d6;_0x3eb381['length']&&(_0x3eb381+='&');if(_0x466527==='[object\x20Array]')_0x1802d6=Object[_0x1d3f8e(0x167)][_0x1d3f8e(0x16d)]['call'](_0x540285[0x0])===_0x1d3f8e(0x16b)?JSON['stringify'](_0x540285):_0x540285[_0x1d3f8e(0x166)](',');else{if(_0x466527===_0x1d3f8e(0x16b))_0x1802d6=JSON[_0x1d3f8e(0x15c)](_0x540285);else _0x466527===_0x1d3f8e(0x14f)?_0x1802d6=_0x540285['valueOf']():_0x1802d6=_0x540285;}_0x3eb381+=encodeURIComponent(_0x24fef7)+'='+encodeURIComponent(_0x1802d6);}}return _0x3eb381;}[a75_0x14ad7f(0x15a)](_0x132d20){var _0x534520=a75_0x14ad7f;return this[_0x534520(0x155)][_0x534520(0x15f)]=!_0x132d20,this;}async[a75_0x14ad7f(0x14e)](){var _0x1cc207=a75_0x14ad7f,_0x1c8b33=this[_0x1cc207(0x16c)](this[_0x1cc207(0x155)]);const _0x53ee34=this[_0x1cc207(0x15d)]['indexOf']('?')>-0x1?this[_0x1cc207(0x15d)]+'&'+_0x1c8b33:this[_0x1cc207(0x15d)]+'?'+_0x1c8b33;if(this['method']==='GET')return a75_0x1f1d42[_0x1cc207(0x16e)](_0x53ee34);else{if(this[_0x1cc207(0x161)]==='JSONP')return jsonp(_0x53ee34);else{const _0xc5b674=stringify(this[_0x1cc207(0x155)]);return a75_0x1f1d42[_0x1cc207(0x157)](this[_0x1cc207(0x15d)],_0xc5b674);}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a77_0x2cae72=a77_0x1456;(function(_0x458a16,_0x15bfe9){const _0x1f46df=a77_0x1456,_0xecb657=_0x458a16();while(!![]){try{const _0x22310f=-parseInt(_0x1f46df(0x1f1))/0x1*(-parseInt(_0x1f46df(0x1ec))/0x2)+-parseInt(_0x1f46df(0x1eb))/0x3+-parseInt(_0x1f46df(0x1ea))/0x4+-parseInt(_0x1f46df(0x1dd))/0x5*(parseInt(_0x1f46df(0x1e0))/0x6)+parseInt(_0x1f46df(0x1e2))/0x7+parseInt(_0x1f46df(0x1d8))/0x8*(-parseInt(_0x1f46df(0x1e7))/0x9)+parseInt(_0x1f46df(0x1e4))/0xa;if(_0x22310f===_0x15bfe9)break;else _0xecb657['push'](_0xecb657['shift']());}catch(_0x35484f){_0xecb657['push'](_0xecb657['shift']());}}}(a77_0x17a0,0x3c7ea));import{and,intersects}from'ol/format/filter';import a77_0x5abf54 from'../../format/CQL';import a77_0x1d567b from'ol/format/WFS';function a77_0x1456(_0x5c05cd,_0x329a9c){const _0x17a029=a77_0x17a0();return a77_0x1456=function(_0x1456d9,_0x403078){_0x1456d9=_0x1456d9-0x1d5;let _0x33cfa4=_0x17a029[_0x1456d9];return _0x33cfa4;},a77_0x1456(_0x5c05cd,_0x329a9c);}import a77_0x3430e2 from'ol/format/GeoJSON';export default class QueryTask{constructor(_0x814c45){const _0x57e1fe=a77_0x1456;this[_0x57e1fe(0x1f0)]={},this[_0x57e1fe(0x1dc)]=_0x814c45;}async[a77_0x2cae72(0x1ed)](_0x404baa){const _0x2bc231=a77_0x2cae72;this[_0x2bc231(0x1f0)]=_0x404baa||{};const _0x4329bf=this[_0x2bc231(0x1f0)][_0x2bc231(0x1de)]||_0x2bc231(0x1f2);let _0x13518d=this[_0x2bc231(0x1f0)]['where'],_0x2f6e87;_0x13518d&&(_0x2f6e87=new a77_0x5abf54()[_0x2bc231(0x1e8)](_0x13518d));let _0x429f29=_0x2f6e87;if(this[_0x2bc231(0x1f0)][_0x2bc231(0x1f3)]){if(!this[_0x2bc231(0x1f0)]['srsName'])throw new Error(_0x2bc231(0x1ee));const _0x17a5f=intersects(_0x4329bf,this[_0x2bc231(0x1f0)][_0x2bc231(0x1f3)]);_0x429f29=_0x2f6e87?and(_0x2f6e87,_0x17a5f):_0x17a5f;}let _0x3b2cfa=new a77_0x1d567b()[_0x2bc231(0x1da)]({'srsName':this[_0x2bc231(0x1f0)]['srsName'],'featureNS':'','featurePrefix':'','featureTypes':[this[_0x2bc231(0x1f0)][_0x2bc231(0x1db)]],'outputFormat':'application/json','geometryName':_0x4329bf,'filter':_0x429f29});const _0xe2ec56=await fetch(this['url'],{'method':_0x2bc231(0x1ef),'body':new XMLSerializer()[_0x2bc231(0x1e5)](_0x3b2cfa)}),_0x238549=await _0xe2ec56[_0x2bc231(0x1e6)]();let _0x2a38bc=[];const _0x384633=new a77_0x3430e2();return _0x2a38bc=_0x238549[_0x2bc231(0x1d7)]['map'](_0x23eb8e=>{const _0x1bad16=_0x2bc231;return _0x384633[_0x1bad16(0x1df)](JSON['stringify'](_0x23eb8e));}),_0x2a38bc;}[a77_0x2cae72(0x1e3)](){const _0x2dbc2d=a77_0x2cae72,_0x31e409=this[_0x2dbc2d(0x1f0)]['geometryName']||_0x2dbc2d(0x1f2);let _0x1b1f6c=this[_0x2dbc2d(0x1f0)][_0x2dbc2d(0x1e1)],_0x307e9a;_0x1b1f6c&&(_0x307e9a=new a77_0x5abf54()[_0x2dbc2d(0x1e8)](_0x1b1f6c));let _0x57049e=_0x307e9a;if(this[_0x2dbc2d(0x1f0)][_0x2dbc2d(0x1f3)]){const _0x3cf5cf=intersects(_0x31e409,this[_0x2dbc2d(0x1f0)][_0x2dbc2d(0x1f3)]);_0x57049e=_0x307e9a?and(_0x307e9a,_0x3cf5cf):_0x3cf5cf;}let _0x207f19=new a77_0x1d567b()['writeGetFeature']({'srsName':this[_0x2dbc2d(0x1f0)][_0x2dbc2d(0x1d9)],'featureNS':'','featurePrefix':'','featureTypes':[this[_0x2dbc2d(0x1f0)][_0x2dbc2d(0x1db)]],'outputFormat':_0x2dbc2d(0x1d6),'geometryName':_0x31e409,'filter':_0x57049e});return new Promise(_0x12f68f=>{const _0x4ed77f=_0x2dbc2d;fetch(this['url'],{'method':'POST','body':new XMLSerializer()[_0x4ed77f(0x1e5)](_0x207f19)})['then'](_0x391e3c=>{const _0x30e341=_0x4ed77f;return _0x391e3c[_0x30e341(0x1e6)]();})[_0x4ed77f(0x1f5)](_0x3675da=>{const _0x417726=_0x4ed77f;let _0x195134=[];const _0xe61ed7=new a77_0x3430e2();_0x195134=_0x3675da[_0x417726(0x1d7)][_0x417726(0x1d5)](_0x4b357d=>{const _0x36d21a=_0x417726;return _0xe61ed7[_0x36d21a(0x1df)](JSON[_0x36d21a(0x1e9)](_0x4b357d));}),_0x12f68f(_0x195134);})[_0x4ed77f(0x1f6)](_0x8177bd=>{const _0x451bf9=_0x4ed77f;_0x12f68f([]),console[_0x451bf9(0x1f4)](_0x8177bd);});});}}function a77_0x17a0(){const _0x19c40c=['catch','map','application/json','features','792sSBHtq','srsName','writeGetFeature','tableName','url','52380poBttx','geometryName','readFeature','216hZAmfk','where','1219351gNylrs','_geoserverQuery','2704410KAdYOM','serializeToString','json','4527xFzSta','read','stringify','263496YQAoQD','506613BOkPpp','2162CsuKju','execute','srsName\x20is\x20required','POST','queryParameters','430bDFdSt','the_geom','geometry','error','then'];a77_0x17a0=function(){return _0x19c40c;};return a77_0x17a0();}
|