ym-gis-2d 1.0.12 → 1.0.13
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.d.ts.map +1 -1
- package/capabilities/index.js +1 -1
- package/capabilities/index.js.map +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/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 +8 -7
- 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/mapView/View.js.map +1 -1
- package/package.json +1 -1
- package/plot/Plot.js +1 -1
- package/plot/geometry/point/Point.js +1 -1
- package/plot/geometry/polygon/BasePolygon.js +1 -1
- package/plot/geometry/polygon/Circle.js +1 -1
- package/plot/geometry/polygon/Polygon.js +1 -1
- package/plot/geometry/polygon/RectAngle.js +1 -1
- package/plot/geometry/polyline/BaseLine.js +1 -1
- package/plot/geometry/polyline/Polyline.js +1 -1
- package/style/PointStyleFormat.js +1 -1
- package/style/PolygonStyleFormat.js +1 -1
- package/style/PolylineStyleFormat.js +1 -1
- package/style/StyleManager.js +1 -1
- package/style/common.js +1 -1
- package/utils/ArrayUtil.js +1 -1
- package/utils/AxiosUtil.js +1 -1
- package/utils/EsriUtil.js +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/LayerUtil.js +1 -1
- package/utils/RegisterProjUtil.js +1 -1
- package/utils/ResolutionUtil.js +1 -1
- package/utils/StringUtil.js +1 -1
- package/utils/StyleUtil.js +1 -1
- package/utils/UrlUtil.js +1 -1
- package/utils/XmlUtil.js +1 -1
- package/utils/format/CQL.js +1 -1
- package/utils/format/IsMatchCql.js +1 -1
- package/utils/plug/canvas/ImageCache.js +1 -1
- package/utils/plug/canvas/PinBuilder.js +1 -1
- package/utils/plug/canvas/PinIcon.js +1 -1
- package/utils/plug/canvas/writeTextToCanvas.js +1 -1
- package/utils/tasks/esri/Identify.js +1 -1
- package/utils/tasks/esri/Query.js +1 -1
- package/utils/tasks/esri/Task.js +1 -1
- package/utils/tasks/geoserver/QueryTask.js +1 -1
- package/utils/tasks/index.js +1 -1
- package/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x4ead37,_0x3e2dcf){const _0x485829=a63_0x3188,_0x520b16=_0x4ead37();while(!![]){try{const _0x53d1fc=-parseInt(_0x485829(0x166))/0x1+-parseInt(_0x485829(0x182))/0x2*(-parseInt(_0x485829(0x19f))/0x3)+parseInt(_0x485829(0x198))/0x4+-parseInt(_0x485829(0x183))/0x5+-parseInt(_0x485829(0x18e))/0x6+-parseInt(_0x485829(0x197))/0x7+parseInt(_0x485829(0x17e))/0x8;if(_0x53d1fc===_0x3e2dcf)break;else _0x520b16['push'](_0x520b16['shift']());}catch(_0x436d41){_0x520b16['push'](_0x520b16['shift']());}}}(a63_0x20da,0xdeea8));function a63_0x20da(){const _0x55fc35=['getType','getFlatMidpoints','MultiPolygon','getContext','rotation','translate','LineString','toUpperCase','warn','height','save','23945984qZgdSG','rotate','color','BOTTOM','33458ehxUbW','5837255iwjgNh','text','model','getFlatInteriorPoints','verticalOrigin','MultiLineString','opacity','Polygon','getFlatInteriorPoint','getFlatMidpoint','push','5612802eKatiU','width','context','model/','pixelOffsetX','length','imgUrl','billboard','pixelOffset','12162710afzLOA','5410684tHSHIQ','pixelOffsetY','getImageData','RIGHT','MultiPoint','drawImage','stringify','213ItsjBs','label','TOP','show','horizontalOrigin','pixelSize','CENTER','pixelRatio','zIndex','780166fFGxJu','changeColor','image','scale','point','.png','parse','canvas','globalAlpha','outline','modelKind','outlineColor','createElement'];a63_0x20da=function(){return _0x55fc35;};return a63_0x20da();}import{parseImage}from'../utils/UrlUtil';function a63_0x3188(_0x1edf31,_0x428455){const _0x20dae8=a63_0x20da();return a63_0x3188=function(_0x318809,_0x332fb9){_0x318809=_0x318809-0x162;let _0x4f258f=_0x20dae8[_0x318809];return _0x4f258f;},a63_0x3188(_0x1edf31,_0x428455);}import{createTextStyle,getColor,isShowStyle,preLoadImageRenderFunction,toRadians}from'./common';import a63_0x11dea9 from'ol/style/Style';import a63_0x56fda1 from'ol/style/Circle';import a63_0x5cc67d from'ol/style/Fill';import a63_0x1f58e3 from'ol/style/Stroke';function getMainStyle(_0x458bf9,_0xd8981c=0x0,_0x1a8b8e){const _0x2c165b=a63_0x3188;let _0x129078;return _0x458bf9[_0x2c165b(0x168)]||_0x458bf9['markerColor']?_0x129078=new a63_0x11dea9({'renderer':(_0x111152,_0x55124b)=>{preLoadImageRenderFunction(_0x458bf9,_0x111152,_0x55124b,_0x1a8b8e,_rendererFunction);},'zIndex':Number(_0xd8981c)}):_0x129078=new a63_0x11dea9({'image':new a63_0x56fda1({'radius':_0x458bf9['radius']?_0x458bf9['radius']:_0x458bf9[_0x2c165b(0x162)],'fill':new a63_0x5cc67d({'color':getColor(_0x458bf9[_0x2c165b(0x180)],_0x458bf9['opacity'])}),'stroke':_0x458bf9[_0x2c165b(0x16f)]&&_0x458bf9[_0x2c165b(0x171)]?new a63_0x1f58e3({'color':getColor(_0x458bf9[_0x2c165b(0x171)],_0x458bf9['outlineOpacity']),'width':_0x458bf9['outlineWidth']}):undefined}),'zIndex':Number(_0xd8981c)}),_0x129078;}function _rendererFunction(_0x487cc7,_0x34dd75,_0x4eb9f0,_0x3f87eb,_0x393f94){const _0x374bd4=a63_0x3188;if(!_0x393f94||_0x393f94[_0x374bd4(0x18f)]===0x0){let _0x585aae=new Image();_0x585aae['src']=_0x487cc7[_0x374bd4(0x168)];}if(_0x487cc7[_0x374bd4(0x167)]&&_0x487cc7[_0x374bd4(0x180)]!==''){let _0x1b41d0=_0x487cc7[_0x374bd4(0x169)]||0x1,_0x22f4b6=_0x487cc7[_0x374bd4(0x18f)]||_0x393f94[_0x374bd4(0x18f)]*_0x1b41d0,_0x32bb84=_0x487cc7['height']||_0x393f94['height']*_0x1b41d0;_0x22f4b6=_0x22f4b6*_0x4eb9f0[_0x374bd4(0x164)],_0x32bb84=_0x32bb84*_0x4eb9f0[_0x374bd4(0x164)];const _0x190106=document[_0x374bd4(0x172)](_0x374bd4(0x16d));_0x190106['width']=_0x22f4b6,_0x190106[_0x374bd4(0x17c)]=_0x32bb84;const _0x38a5a2=_0x190106[_0x374bd4(0x176)]('2d');_0x38a5a2===null||_0x38a5a2===void 0x0?void 0x0:_0x38a5a2['drawImage'](_0x393f94,0x0,0x0,_0x22f4b6,_0x32bb84);let _0x3e532b=_0x38a5a2===null||_0x38a5a2===void 0x0?void 0x0:_0x38a5a2[_0x374bd4(0x19a)](0x0,0x0,_0x22f4b6,_0x32bb84),_0x1847f5=_0x3e532b===null||_0x3e532b===void 0x0?void 0x0:_0x3e532b['data'];_0x393f94=_0x190106;let _0x2deca8=HexToRgb(_0x487cc7[_0x374bd4(0x180)]);if(_0x1847f5&&_0x2deca8)for(var _0x49f969=0x0;_0x49f969<_0x1847f5['length'];_0x49f969+=0x4){_0x1847f5[_0x49f969]=_0x2deca8[0x0],_0x1847f5[_0x49f969+0x1]=_0x2deca8[0x1],_0x1847f5[_0x49f969+0x2]=_0x2deca8[0x2];}_0x3e532b&&(_0x38a5a2===null||_0x38a5a2===void 0x0?void 0x0:_0x38a5a2['putImageData'](_0x3e532b,0x0,0x0));}let _0x3d32e6=_0x4eb9f0['geometry'],_0xb6d090=_0x4eb9f0[_0x374bd4(0x164)],_0x44b8b0=_0x3d32e6['getStride'](),_0x27b225=_0x3d32e6[_0x374bd4(0x173)](),_0x33d544=[];switch(_0x27b225){case _0x374bd4(0x179):_0x33d544=_0x3d32e6[_0x374bd4(0x18c)]();break;case _0x374bd4(0x188):_0x33d544=_0x3d32e6[_0x374bd4(0x174)](),_0x44b8b0=0x2;break;case _0x374bd4(0x18a):_0x33d544=_0x3d32e6[_0x374bd4(0x18b)](),_0x44b8b0=0x3;break;case _0x374bd4(0x175):{let _0x12ef95=_0x3d32e6[_0x374bd4(0x186)]();_0x33d544=[];for(let _0x379985=0x0,_0x4afc50=_0x12ef95['length'];_0x379985<_0x4afc50;_0x379985+=0x3){_0x33d544[_0x374bd4(0x18d)](_0x12ef95[_0x379985],_0x12ef95[_0x379985+0x1]);}if(_0x33d544[_0x374bd4(0x193)]===0x0)return;_0x44b8b0=0x2;break;}}if(_0x33d544[_0x374bd4(0x193)]>0x0&&_0x3f87eb)for(let _0x11af5e=0x0,_0x6ecb4b=_0x33d544[_0x374bd4(0x193)];_0x11af5e<_0x6ecb4b;_0x11af5e+=_0x44b8b0){let _0x3c5234=[_0x33d544[_0x11af5e],_0x33d544[_0x11af5e+0x1]],_0x80f525=_0x3f87eb['getPixelFromCoordinate'](_0x3c5234);_0x80f525=[_0x80f525[0x0]*_0xb6d090,_0x80f525[0x1]*_0xb6d090],drawImage(_0x487cc7,_0x80f525,_0x4eb9f0,_0x393f94);}else{if(_0x27b225===_0x374bd4(0x19c))for(let _0x1449c8 of _0x34dd75){drawImage(_0x487cc7,_0x1449c8,_0x4eb9f0,_0x393f94);}else drawImage(_0x487cc7,_0x34dd75,_0x4eb9f0,_0x393f94);}}function HexToRgb(_0x4a3ab5){_0x4a3ab5=_0x4a3ab5['replace']('#','');let _0xbe07af=_0x4a3ab5['match'](/../g);if(_0xbe07af){for(let _0x27a5e2=0x0;_0x27a5e2<0x3;_0x27a5e2++)_0xbe07af[_0x27a5e2]=parseInt(_0xbe07af[_0x27a5e2],0x10);}return _0xbe07af;}export function getImageOlStyle(_0x32d891,_0x3a4fc4,_0x5a9293,_0x436b36){const _0x514b63=a63_0x3188;var _0x4e4340;if(_0x32d891&&_0x32d891[_0x514b63(0x1a2)]!==![]){_0x32d891=JSON['parse'](JSON['stringify'](_0x32d891)),_0x3a4fc4=(_0x4e4340=_0x32d891[_0x514b63(0x165)])!==null&&_0x4e4340!==void 0x0?_0x4e4340:_0x3a4fc4;let _0x1aa5a8=isShowStyle(_0x32d891,_0x5a9293,_0x436b36);if(_0x1aa5a8)return _0x32d891['image']=parseImage(_0x32d891['image']),getMainStyle(_0x32d891,_0x3a4fc4,_0x436b36);}}export function getPointStyle(_0x5df8cf,_0x399ea7,_0xb296c9,_0x3d1515){const _0x397741=a63_0x3188;var _0x481593,_0x3b2701;_0x5df8cf=JSON[_0x397741(0x16c)](JSON[_0x397741(0x19e)](_0x5df8cf));let _0x29413c=(_0x481593=_0x5df8cf['zIndex'])!==null&&_0x481593!==void 0x0?_0x481593:0x0,_0x371ef4=[],_0x9a643=getImageOlStyle(_0x5df8cf,_0x29413c,_0xb296c9,_0x3d1515);_0x9a643&&_0x371ef4[_0x397741(0x18d)](_0x9a643);let _0x4aeebf=getImageOlStyle(_0x5df8cf['billboard'],_0x29413c,_0xb296c9,_0x3d1515);_0x4aeebf&&_0x371ef4[_0x397741(0x18d)](_0x4aeebf);if(_0x5df8cf[_0x397741(0x185)]&&_0x5df8cf[_0x397741(0x185)][_0x397741(0x1a2)]!==![]){let _0x51acc1=isShowStyle(_0x5df8cf['model'],_0xb296c9,_0x3d1515);if(_0x51acc1){let _0x441a9c=(_0x3b2701=_0x5df8cf[_0x397741(0x185)][_0x397741(0x165)])!==null&&_0x3b2701!==void 0x0?_0x3b2701:_0x29413c,_0x5d0e82=_0x5df8cf['model'][_0x397741(0x194)]||_0x397741(0x191)+_0x5df8cf['model'][_0x397741(0x170)]+'.png';_0x5df8cf[_0x397741(0x169)]=0x1,_0x5df8cf[_0x397741(0x18f)]=0x30,_0x5df8cf[_0x397741(0x17c)]=0x30,_0x5df8cf['verticalOrigin']=_0x397741(0x163),_0x371ef4[_0x397741(0x18d)](getMainStyle(_0x5df8cf[_0x397741(0x185)],_0x441a9c,_0x3d1515));}}if(_0x5df8cf[_0x397741(0x1a0)]&&_0x5df8cf[_0x397741(0x1a0)][_0x397741(0x1a2)]!==![]){let _0x2555ab=new a63_0x11dea9({'text':createTextStyle(_0x5df8cf[_0x397741(0x1a0)],_0x399ea7,_0xb296c9,_0x3d1515),'zIndex':Number(_0x29413c)+0x1});_0x371ef4[_0x397741(0x18d)](_0x2555ab);}return _0x371ef4;}export function getPointSingleStyle(_0x3d746d,_0x5e0369,_0x3aad87,_0x3db05a){const _0x7b3e32=a63_0x3188;_0x5e0369=JSON['parse'](JSON['stringify'](_0x5e0369));let _0x4f09ef=_0x5e0369[_0x7b3e32(0x1a0)],_0x44a7d0;_0x4f09ef&&(_0x44a7d0=_0x4f09ef[_0x7b3e32(0x184)]?_0x4f09ef['text']:'');if(_0x3d746d===_0x7b3e32(0x195))return _0x5e0369[_0x7b3e32(0x168)]=parseImage(_0x5e0369[_0x7b3e32(0x168)]),getPointStyle(_0x5e0369,_0x44a7d0,_0x3aad87,_0x3db05a);else{if(_0x3d746d===_0x7b3e32(0x185)){let _0xef4174=_0x5e0369[_0x7b3e32(0x194)]||_0x7b3e32(0x191)+_0x5e0369[_0x7b3e32(0x170)]+_0x7b3e32(0x16b);return _0x5e0369['scale']=0x1,_0x5e0369[_0x7b3e32(0x18f)]=0x30,_0x5e0369['height']=0x30,_0x5e0369[_0x7b3e32(0x187)]=_0x7b3e32(0x163),getPointStyle(_0x5e0369,_0x44a7d0,_0x3aad87,_0x3db05a);}else{if(_0x3d746d==='cloud')return getPointStyle(_0x5e0369,_0x44a7d0,_0x3aad87,_0x3db05a);else{if(_0x3d746d===_0x7b3e32(0x16a))return getPointStyle(_0x5e0369,_0x44a7d0,_0x3aad87,_0x3db05a);else return _0x3d746d===_0x7b3e32(0x1a0)?new a63_0x11dea9({'text':createTextStyle(_0x5e0369,_0x5e0369['text'],_0x3aad87,_0x3db05a),'zIndex':_0x5e0369[_0x7b3e32(0x165)]}):getPointStyle(_0x5e0369,_0x44a7d0,_0x3aad87,_0x3db05a);}}}}function drawImage(_0x147f40,_0x310606,_0x4ec71a,_0x4c4120){const _0x4848f4=a63_0x3188;var _0xe1d49b,_0xb1290a,_0x2bf6e4,_0x256828;let _0x1703ea=_0x4ec71a[_0x4848f4(0x190)];try{_0x1703ea[_0x4848f4(0x17d)]();let _0x4ab0a8=Number(_0x147f40[_0x4848f4(0x192)]||((_0xe1d49b=_0x147f40['pixelOffset'])===null||_0xe1d49b===void 0x0?void 0x0:_0xe1d49b[0x0])||0x0),_0xeb1f2c=Number(_0x147f40[_0x4848f4(0x199)]||((_0xb1290a=_0x147f40[_0x4848f4(0x196)])===null||_0xb1290a===void 0x0?void 0x0:_0xb1290a[0x1])||0x0);_0x1703ea[_0x4848f4(0x178)](_0x310606[0x0]+_0x4ab0a8,_0x310606[0x1]+_0xeb1f2c);if(_0x147f40[_0x4848f4(0x177)])_0x1703ea[_0x4848f4(0x17f)](toRadians(_0x147f40[_0x4848f4(0x177)]));_0x1703ea[_0x4848f4(0x16e)]=_0x147f40[_0x4848f4(0x189)]!=null?_0x147f40[_0x4848f4(0x189)]:0x1;if(_0x4c4120['width']>0x0){let _0x10b53d=_0x147f40['scale']||0x1,_0x550093=_0x147f40[_0x4848f4(0x18f)]||_0x4c4120['width']*_0x10b53d,_0x2b1d0e=_0x147f40[_0x4848f4(0x17c)]||_0x4c4120['height']*_0x10b53d;_0x550093=_0x550093*_0x4ec71a[_0x4848f4(0x164)],_0x2b1d0e=_0x2b1d0e*_0x4ec71a[_0x4848f4(0x164)];_0x147f40[_0x4848f4(0x167)]&&(_0x550093=_0x4c4120['width'],_0x2b1d0e=_0x4c4120[_0x4848f4(0x17c)]);let _0x4f2115;switch((_0x2bf6e4=_0x147f40[_0x4848f4(0x1a3)])===null||_0x2bf6e4===void 0x0?void 0x0:_0x2bf6e4[_0x4848f4(0x17a)]()){default:case _0x4848f4(0x163):_0x4f2115=-_0x550093/0x2;break;case'LEFT':_0x4f2115=0x0;break;case _0x4848f4(0x19b):_0x4f2115=-_0x550093;break;}let _0x12f237;switch((_0x256828=_0x147f40[_0x4848f4(0x187)])===null||_0x256828===void 0x0?void 0x0:_0x256828[_0x4848f4(0x17a)]()){default:case _0x4848f4(0x181):_0x12f237=-_0x2b1d0e;break;case _0x4848f4(0x163):_0x12f237=-_0x2b1d0e/0x2;break;case _0x4848f4(0x1a1):_0x12f237=0x0;break;}_0x1703ea[_0x4848f4(0x19d)](_0x4c4120,_0x4f2115,_0x12f237,_0x550093,_0x2b1d0e);}else _0x1703ea['drawImage'](_0x4c4120,0x0,0x0);_0x1703ea['restore']();}catch(_0x2428b4){_0x1703ea['restore'](),console[_0x4848f4(0x17b)](_0x2428b4);}}
|
|
1
|
+
(function(_0x5b3cd9,_0x34bb3a){const _0x53844f=a63_0x1178,_0x23a593=_0x5b3cd9();while(!![]){try{const _0x2f583e=parseInt(_0x53844f(0x182))/0x1*(-parseInt(_0x53844f(0x1b1))/0x2)+-parseInt(_0x53844f(0x19c))/0x3*(parseInt(_0x53844f(0x183))/0x4)+-parseInt(_0x53844f(0x184))/0x5*(-parseInt(_0x53844f(0x1ad))/0x6)+parseInt(_0x53844f(0x17b))/0x7*(parseInt(_0x53844f(0x186))/0x8)+-parseInt(_0x53844f(0x1bb))/0x9*(-parseInt(_0x53844f(0x1c3))/0xa)+parseInt(_0x53844f(0x188))/0xb*(parseInt(_0x53844f(0x196))/0xc)+-parseInt(_0x53844f(0x199))/0xd*(parseInt(_0x53844f(0x195))/0xe);if(_0x2f583e===_0x34bb3a)break;else _0x23a593['push'](_0x23a593['shift']());}catch(_0x3dbe72){_0x23a593['push'](_0x23a593['shift']());}}}(a63_0x2b2c,0xd3d8a));import{parseImage}from'../utils/UrlUtil';import{createTextStyle,getColor,isShowStyle,preLoadImageRenderFunction,toRadians}from'./common';import a63_0x5602a2 from'ol/style/Style';import a63_0x4a2ac6 from'ol/style/Circle';import a63_0x5eed1c from'ol/style/Fill';import a63_0xab0c15 from'ol/style/Stroke';function getMainStyle(_0xe77af2,_0x560c32=0x0,_0x42668d){const _0x5ee335=a63_0x1178;let _0x75357f;return _0xe77af2[_0x5ee335(0x1a9)]||_0xe77af2[_0x5ee335(0x1c0)]?_0x75357f=new a63_0x5602a2({'renderer':(_0x43a61b,_0x398b28)=>{preLoadImageRenderFunction(_0xe77af2,_0x43a61b,_0x398b28,_0x42668d,_rendererFunction);},'zIndex':Number(_0x560c32)}):_0x75357f=new a63_0x5602a2({'image':new a63_0x4a2ac6({'radius':_0xe77af2['radius']?_0xe77af2[_0x5ee335(0x1b7)]:_0xe77af2[_0x5ee335(0x1a0)],'fill':new a63_0x5eed1c({'color':getColor(_0xe77af2[_0x5ee335(0x191)],_0xe77af2[_0x5ee335(0x181)])}),'stroke':_0xe77af2[_0x5ee335(0x1c1)]&&_0xe77af2[_0x5ee335(0x1a1)]?new a63_0xab0c15({'color':getColor(_0xe77af2[_0x5ee335(0x1a1)],_0xe77af2[_0x5ee335(0x1b0)]),'width':_0xe77af2['outlineWidth']}):undefined}),'zIndex':Number(_0x560c32)}),_0x75357f;}function a63_0x1178(_0x41c1e1,_0x30dd41){const _0x2b2cf1=a63_0x2b2c();return a63_0x1178=function(_0x1178e8,_0x5b7ff9){_0x1178e8=_0x1178e8-0x177;let _0x3758dd=_0x2b2cf1[_0x1178e8];return _0x3758dd;},a63_0x1178(_0x41c1e1,_0x30dd41);}function _rendererFunction(_0x1e98d6,_0x167296,_0x2bd6cd,_0xf80b3d,_0x5e5f27){const _0x46967f=a63_0x1178;if(!_0x5e5f27||_0x5e5f27[_0x46967f(0x1b8)]===0x0){let _0x2b3eab=new Image();_0x2b3eab['src']=_0x1e98d6[_0x46967f(0x1a9)];}if(_0x1e98d6[_0x46967f(0x1c5)]&&_0x1e98d6[_0x46967f(0x191)]!==''){let _0x525b2b=_0x1e98d6[_0x46967f(0x19d)]||0x1,_0x423792=_0x1e98d6[_0x46967f(0x1b8)]||_0x5e5f27[_0x46967f(0x1b8)]*_0x525b2b,_0x391430=_0x1e98d6[_0x46967f(0x17e)]||_0x5e5f27[_0x46967f(0x17e)]*_0x525b2b;_0x423792=_0x423792*_0x2bd6cd[_0x46967f(0x1a8)],_0x391430=_0x391430*_0x2bd6cd[_0x46967f(0x1a8)];const _0x51f909=document[_0x46967f(0x1a7)](_0x46967f(0x17d));_0x51f909['width']=_0x423792,_0x51f909[_0x46967f(0x17e)]=_0x391430;const _0x403495=_0x51f909[_0x46967f(0x1be)]('2d');_0x403495===null||_0x403495===void 0x0?void 0x0:_0x403495[_0x46967f(0x18f)](_0x5e5f27,0x0,0x0,_0x423792,_0x391430);let _0x5173cc=_0x403495===null||_0x403495===void 0x0?void 0x0:_0x403495[_0x46967f(0x193)](0x0,0x0,_0x423792,_0x391430),_0x553850=_0x5173cc===null||_0x5173cc===void 0x0?void 0x0:_0x5173cc[_0x46967f(0x18a)];_0x5e5f27=_0x51f909;let _0x3eff50=HexToRgb(_0x1e98d6[_0x46967f(0x191)]);if(_0x553850&&_0x3eff50)for(var _0x2d8fc5=0x0;_0x2d8fc5<_0x553850[_0x46967f(0x19e)];_0x2d8fc5+=0x4){_0x553850[_0x2d8fc5]=_0x3eff50[0x0],_0x553850[_0x2d8fc5+0x1]=_0x3eff50[0x1],_0x553850[_0x2d8fc5+0x2]=_0x3eff50[0x2];}_0x5173cc&&(_0x403495===null||_0x403495===void 0x0?void 0x0:_0x403495[_0x46967f(0x198)](_0x5173cc,0x0,0x0));}let _0x472a9c=_0x2bd6cd[_0x46967f(0x178)],_0x1cd32b=_0x2bd6cd[_0x46967f(0x1a8)],_0x2bbbf1=_0x472a9c[_0x46967f(0x1bc)](),_0x43ba49=_0x472a9c['getType'](),_0x3f7f3b=[];switch(_0x43ba49){case _0x46967f(0x1c2):_0x3f7f3b=_0x472a9c[_0x46967f(0x185)]();break;case _0x46967f(0x1a6):_0x3f7f3b=_0x472a9c['getFlatMidpoints'](),_0x2bbbf1=0x2;break;case _0x46967f(0x17f):_0x3f7f3b=_0x472a9c[_0x46967f(0x1a4)](),_0x2bbbf1=0x3;break;case _0x46967f(0x18b):{let _0x1736a3=_0x472a9c[_0x46967f(0x1b3)]();_0x3f7f3b=[];for(let _0x2a3d56=0x0,_0x492dcf=_0x1736a3[_0x46967f(0x19e)];_0x2a3d56<_0x492dcf;_0x2a3d56+=0x3){_0x3f7f3b[_0x46967f(0x177)](_0x1736a3[_0x2a3d56],_0x1736a3[_0x2a3d56+0x1]);}if(_0x3f7f3b[_0x46967f(0x19e)]===0x0)return;_0x2bbbf1=0x2;break;}}if(_0x3f7f3b[_0x46967f(0x19e)]>0x0&&_0xf80b3d)for(let _0x338fef=0x0,_0x332817=_0x3f7f3b[_0x46967f(0x19e)];_0x338fef<_0x332817;_0x338fef+=_0x2bbbf1){let _0x3ad147=[_0x3f7f3b[_0x338fef],_0x3f7f3b[_0x338fef+0x1]],_0x5f056a=_0xf80b3d[_0x46967f(0x1af)](_0x3ad147);_0x5f056a=[_0x5f056a[0x0]*_0x1cd32b,_0x5f056a[0x1]*_0x1cd32b],drawImage(_0x1e98d6,_0x5f056a,_0x2bd6cd,_0x5e5f27);}else{if(_0x43ba49===_0x46967f(0x17a))for(let _0x1a5dcc of _0x167296){drawImage(_0x1e98d6,_0x1a5dcc,_0x2bd6cd,_0x5e5f27);}else drawImage(_0x1e98d6,_0x167296,_0x2bd6cd,_0x5e5f27);}}function HexToRgb(_0x1ea9a9){const _0x3acc6e=a63_0x1178;_0x1ea9a9=_0x1ea9a9[_0x3acc6e(0x187)]('#','');let _0x2a3d37=_0x1ea9a9[_0x3acc6e(0x1b2)](/../g);if(_0x2a3d37){for(let _0x458931=0x0;_0x458931<0x3;_0x458931++)_0x2a3d37[_0x458931]=parseInt(_0x2a3d37[_0x458931],0x10);}return _0x2a3d37;}function a63_0x2b2c(){const _0x31f4dc=['length','pixelOffset','pixelSize','outlineColor','billboard','model','getFlatInteriorPoint','TOP','MultiLineString','createElement','pixelRatio','image','verticalOrigin','stringify','zIndex','1518bHEawi','imgUrl','getPixelFromCoordinate','outlineOpacity','596870eByQTv','match','getFlatInteriorPoints','text','.png','rotation','radius','width','modelKind','pixelOffsetX','9FDgbLs','getStride','BOTTOM','getContext','point','markerColor','outline','LineString','16754230zCWBQC','restore','changeColor','parse','push','geometry','model/','MultiPoint','2940KxAjjW','label','canvas','height','Polygon','cloud','opacity','5Yjizkw','104fniXRg','25535ejNYnr','getFlatMidpoint','22904WHqxaf','replace','17750183GlQERE','pixelOffsetY','data','MultiPolygon','LEFT','save','globalAlpha','drawImage','horizontalOrigin','color','CENTER','getImageData','show','50316ffFfsM','12nVmZSR','warn','putImageData','7163dnFbFN','rotate','toUpperCase','166548hWORhX','scale'];a63_0x2b2c=function(){return _0x31f4dc;};return a63_0x2b2c();}export function getImageOlStyle(_0x1c7408,_0x399687,_0xe34a38,_0x3bd5d0){const _0x1c2fc2=a63_0x1178;var _0x137190;if(_0x1c7408&&_0x1c7408[_0x1c2fc2(0x194)]!==![]){_0x1c7408=JSON[_0x1c2fc2(0x1c6)](JSON[_0x1c2fc2(0x1ab)](_0x1c7408)),_0x399687=(_0x137190=_0x1c7408[_0x1c2fc2(0x1ac)])!==null&&_0x137190!==void 0x0?_0x137190:_0x399687;let _0x151803=isShowStyle(_0x1c7408,_0xe34a38,_0x3bd5d0);if(_0x151803)return _0x1c7408[_0x1c2fc2(0x1a9)]=parseImage(_0x1c7408['image']),getMainStyle(_0x1c7408,_0x399687,_0x3bd5d0);}}export function getPointStyle(_0xcf5c54,_0x58dd34,_0x36a7dd,_0x1dda4e){const _0x154b8b=a63_0x1178;var _0x4c495c,_0x2f55f5;_0xcf5c54=JSON[_0x154b8b(0x1c6)](JSON[_0x154b8b(0x1ab)](_0xcf5c54));let _0x500b12=(_0x4c495c=_0xcf5c54['zIndex'])!==null&&_0x4c495c!==void 0x0?_0x4c495c:0x0,_0x113e7d=[],_0x2d2cb9=getImageOlStyle(_0xcf5c54,_0x500b12,_0x36a7dd,_0x1dda4e);_0x2d2cb9&&_0x113e7d['push'](_0x2d2cb9);let _0x5a5627=getImageOlStyle(_0xcf5c54[_0x154b8b(0x1a2)],_0x500b12,_0x36a7dd,_0x1dda4e);_0x5a5627&&_0x113e7d[_0x154b8b(0x177)](_0x5a5627);if(_0xcf5c54[_0x154b8b(0x1a3)]&&_0xcf5c54[_0x154b8b(0x1a3)][_0x154b8b(0x194)]!==![]){let _0x510ac5=isShowStyle(_0xcf5c54[_0x154b8b(0x1a3)],_0x36a7dd,_0x1dda4e);if(_0x510ac5){let _0x198011=(_0x2f55f5=_0xcf5c54[_0x154b8b(0x1a3)][_0x154b8b(0x1ac)])!==null&&_0x2f55f5!==void 0x0?_0x2f55f5:_0x500b12,_0x183c6b=_0xcf5c54[_0x154b8b(0x1a3)]['imgUrl']||_0x154b8b(0x179)+_0xcf5c54['model'][_0x154b8b(0x1b9)]+_0x154b8b(0x1b5);_0xcf5c54[_0x154b8b(0x19d)]=0x1,_0xcf5c54['width']=0x30,_0xcf5c54[_0x154b8b(0x17e)]=0x30,_0xcf5c54['verticalOrigin']=_0x154b8b(0x192),_0x113e7d[_0x154b8b(0x177)](getMainStyle(_0xcf5c54[_0x154b8b(0x1a3)],_0x198011,_0x1dda4e));}}if(_0xcf5c54[_0x154b8b(0x17c)]&&_0xcf5c54[_0x154b8b(0x17c)][_0x154b8b(0x194)]!==![]){let _0x11e55b=new a63_0x5602a2({'text':createTextStyle(_0xcf5c54[_0x154b8b(0x17c)],_0x58dd34,_0x36a7dd,_0x1dda4e),'zIndex':Number(_0x500b12)+0x1});_0x113e7d[_0x154b8b(0x177)](_0x11e55b);}return _0x113e7d;}export function getPointSingleStyle(_0x128bc5,_0x2f2383,_0x5b5e88,_0x2db757){const _0x1577e8=a63_0x1178;_0x2f2383=JSON['parse'](JSON[_0x1577e8(0x1ab)](_0x2f2383));let _0x3c7e6f=_0x2f2383[_0x1577e8(0x17c)],_0x5bce07;_0x3c7e6f&&(_0x5bce07=_0x3c7e6f[_0x1577e8(0x1b4)]?_0x3c7e6f[_0x1577e8(0x1b4)]:'');if(_0x128bc5===_0x1577e8(0x1a2))return _0x2f2383['image']=parseImage(_0x2f2383[_0x1577e8(0x1a9)]),getPointStyle(_0x2f2383,_0x5bce07,_0x5b5e88,_0x2db757);else{if(_0x128bc5===_0x1577e8(0x1a3)){let _0x3a7414=_0x2f2383[_0x1577e8(0x1ae)]||_0x1577e8(0x179)+_0x2f2383[_0x1577e8(0x1b9)]+_0x1577e8(0x1b5);return _0x2f2383[_0x1577e8(0x19d)]=0x1,_0x2f2383['width']=0x30,_0x2f2383[_0x1577e8(0x17e)]=0x30,_0x2f2383[_0x1577e8(0x1aa)]=_0x1577e8(0x192),getPointStyle(_0x2f2383,_0x5bce07,_0x5b5e88,_0x2db757);}else{if(_0x128bc5===_0x1577e8(0x180))return getPointStyle(_0x2f2383,_0x5bce07,_0x5b5e88,_0x2db757);else{if(_0x128bc5===_0x1577e8(0x1bf))return getPointStyle(_0x2f2383,_0x5bce07,_0x5b5e88,_0x2db757);else return _0x128bc5==='label'?new a63_0x5602a2({'text':createTextStyle(_0x2f2383,_0x2f2383[_0x1577e8(0x1b4)],_0x5b5e88,_0x2db757),'zIndex':_0x2f2383[_0x1577e8(0x1ac)]}):getPointStyle(_0x2f2383,_0x5bce07,_0x5b5e88,_0x2db757);}}}}function drawImage(_0x32d123,_0x52738d,_0x267d5e,_0x30004f){const _0x51472c=a63_0x1178;var _0x3acbe4,_0x571231,_0x330d5e,_0x28c347;let _0x3d0c8f=_0x267d5e['context'];try{_0x3d0c8f[_0x51472c(0x18d)]();let _0x530366=Number(_0x32d123[_0x51472c(0x1ba)]||((_0x3acbe4=_0x32d123[_0x51472c(0x19f)])===null||_0x3acbe4===void 0x0?void 0x0:_0x3acbe4[0x0])||0x0),_0x24e4e7=Number(_0x32d123[_0x51472c(0x189)]||((_0x571231=_0x32d123[_0x51472c(0x19f)])===null||_0x571231===void 0x0?void 0x0:_0x571231[0x1])||0x0);_0x3d0c8f['translate'](_0x52738d[0x0]+_0x530366,_0x52738d[0x1]+_0x24e4e7);if(_0x32d123[_0x51472c(0x1b6)])_0x3d0c8f[_0x51472c(0x19a)](toRadians(_0x32d123[_0x51472c(0x1b6)]));_0x3d0c8f[_0x51472c(0x18e)]=_0x32d123[_0x51472c(0x181)]!=null?_0x32d123['opacity']:0x1;if(_0x30004f[_0x51472c(0x1b8)]>0x0){let _0x4469ab=_0x32d123[_0x51472c(0x19d)]||0x1,_0x1453f9=_0x32d123[_0x51472c(0x1b8)]||_0x30004f['width']*_0x4469ab,_0x40d3f=_0x32d123[_0x51472c(0x17e)]||_0x30004f[_0x51472c(0x17e)]*_0x4469ab;_0x1453f9=_0x1453f9*_0x267d5e[_0x51472c(0x1a8)],_0x40d3f=_0x40d3f*_0x267d5e[_0x51472c(0x1a8)];_0x32d123[_0x51472c(0x1c5)]&&(_0x1453f9=_0x30004f[_0x51472c(0x1b8)],_0x40d3f=_0x30004f[_0x51472c(0x17e)]);let _0x32756d;switch((_0x330d5e=_0x32d123[_0x51472c(0x190)])===null||_0x330d5e===void 0x0?void 0x0:_0x330d5e[_0x51472c(0x19b)]()){default:case _0x51472c(0x192):_0x32756d=-_0x1453f9/0x2;break;case _0x51472c(0x18c):_0x32756d=0x0;break;case'RIGHT':_0x32756d=-_0x1453f9;break;}let _0xa69433;switch((_0x28c347=_0x32d123['verticalOrigin'])===null||_0x28c347===void 0x0?void 0x0:_0x28c347[_0x51472c(0x19b)]()){default:case _0x51472c(0x1bd):_0xa69433=-_0x40d3f;break;case'CENTER':_0xa69433=-_0x40d3f/0x2;break;case _0x51472c(0x1a5):_0xa69433=0x0;break;}_0x3d0c8f['drawImage'](_0x30004f,_0x32756d,_0xa69433,_0x1453f9,_0x40d3f);}else _0x3d0c8f['drawImage'](_0x30004f,0x0,0x0);_0x3d0c8f[_0x51472c(0x1c4)]();}catch(_0x52bb76){_0x3d0c8f[_0x51472c(0x1c4)](),console[_0x51472c(0x197)](_0x52bb76);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1774dc,_0x40c34c){const _0x404f27=a64_0x2d71,_0xa96989=_0x1774dc();while(!![]){try{const _0x50f8ae=parseInt(_0x404f27(0xd5))/0x1*(-parseInt(_0x404f27(0xe5))/0x2)+parseInt(_0x404f27(0xc9))/0x3+parseInt(_0x404f27(0xed))/0x4+parseInt(_0x404f27(0xfe))/0x5+parseInt(_0x404f27(0xc8))/0x6*(parseInt(_0x404f27(0xd9))/0x7)+parseInt(_0x404f27(0xe2))/0x8*(parseInt(_0x404f27(0xcc))/0x9)+-parseInt(_0x404f27(0xee))/0xa;if(_0x50f8ae===_0x40c34c)break;else _0xa96989['push'](_0xa96989['shift']());}catch(_0x5dcd1b){_0xa96989['push'](_0xa96989['shift']());}}}(a64_0x2333,0xccf21));import{getColor,createTextStyle,preLoadImageRenderFunction}from'./common';import{Fill,Stroke,Style}from'ol/style';import{getSize,boundingExtent}from'ol/extent';function a64_0x2333(){const _0x29687f=['setFill','translate','lineWidth','repeat','src','5371268PKRxOk','35637730MCcQte','show','verticalOrigin','stripe','checkerboard','max','label','push','width','canvas','checkerboard_repeat','context','globalAlpha','repeatY','zIndex','grid_lineThickness','5814490zhqsQw','fillType','stripe_repeat','opacity','outlineColor','getContext','CENTER','createElement','image','rgba(0,0,0,0)','7419774DsdmGh','2687532iMfFYG','grid_lineCount','warn','59967ynkmfD','outlineWidth','height','setRenderer','rgba(0,0,0,0.01)','moveTo','length','createPattern','lineTo','1EIpIHX','beginPath','grid','stripe_oddcolor','7jtVKbb','restore','save','billboard','color','oddColor','fill','drawImage','outlineOpacity','1480qBHJUD','outline','strokeStyle','2935226uPHNEN','fillStyle','closePath'];a64_0x2333=function(){return _0x29687f;};return a64_0x2333();}import{getImageOlStyle}from'./PointStyleFormat';export function getPolygonStyle(_0x17df8f,_0x599dd8,_0x11409a,_0x4eb20f){const _0x384d46=a64_0x2d71;var _0x46c8a5;let _0x215cdf=(_0x46c8a5=_0x17df8f[_0x384d46(0xfc)])!==null&&_0x46c8a5!==void 0x0?_0x46c8a5:0x0,_0x1de2f1=new Style();_0x1de2f1['setZIndex'](_0x215cdf),_0x1de2f1[_0x384d46(0xe8)](new Fill({'color':_0x384d46(0xc7)}));if(_0x17df8f['fill']!==![]){if(!_0x17df8f[_0x384d46(0xff)]||_0x17df8f['fillType']===_0x384d46(0xdd))_0x1de2f1[_0x384d46(0xe8)](new Fill({'color':getColor(_0x17df8f[_0x384d46(0xdd)],_0x17df8f[_0x384d46(0x101)])}));else{if(_0x17df8f[_0x384d46(0xff)]===_0x384d46(0xc6))_0x1de2f1[_0x384d46(0xcf)]((_0x1810c0,_0x42fc2d)=>{preLoadImageRenderFunction(_0x17df8f,_0x1810c0,_0x42fc2d,_0x4eb20f,_rendererFunction);});else _0x17df8f[_0x384d46(0xff)]===_0x384d46(0xd7)||_0x17df8f[_0x384d46(0xff)]===_0x384d46(0xf1)||_0x17df8f[_0x384d46(0xff)]===_0x384d46(0xf2)?_0x1de2f1[_0x384d46(0xcf)]((_0x4869fa,_0x14311f)=>{_rendererFunction(_0x17df8f,_0x4869fa,_0x14311f,_0x4eb20f,null);}):_0x1de2f1[_0x384d46(0xe8)](new Fill({'color':getColor(_0x17df8f[_0x384d46(0xdd)],_0x17df8f[_0x384d46(0x101)])}));}}_0x17df8f[_0x384d46(0xe3)]!==![]&&_0x1de2f1['setStroke'](new Stroke({'color':getColor(_0x17df8f[_0x384d46(0x102)],_0x17df8f[_0x384d46(0xe1)]),'width':_0x17df8f[_0x384d46(0xcd)]}));let _0x1daea3=[_0x1de2f1];_0x17df8f[_0x384d46(0xdc)]&&!_0x17df8f[_0x384d46(0xdc)][_0x384d46(0xf0)]&&(_0x17df8f[_0x384d46(0xdc)][_0x384d46(0xf0)]='CENTER');let _0x10feca=getImageOlStyle(_0x17df8f[_0x384d46(0xdc)],_0x215cdf,_0x11409a,_0x4eb20f);_0x10feca&&_0x1daea3['push'](_0x10feca);if(_0x17df8f[_0x384d46(0xf4)]&&_0x17df8f[_0x384d46(0xf4)][_0x384d46(0xef)]!==![]){!_0x17df8f[_0x384d46(0xf4)][_0x384d46(0xf0)]&&(_0x17df8f[_0x384d46(0xf4)][_0x384d46(0xf0)]=_0x384d46(0xc4));let _0x2e9187=new Style({'text':createTextStyle(_0x17df8f['label'],_0x599dd8,_0x11409a,_0x4eb20f),'zIndex':Number(_0x215cdf)+0x1});_0x1daea3[_0x384d46(0xf5)](_0x2e9187);}return _0x1daea3;}function _rendererFunction(_0x33679e,_0x1098f5,_0x4f2ec5,_0x23185f,_0x795a6e){const _0x2cf0aa=a64_0x2d71;try{var _0x46e648=_0x4f2ec5[_0x2cf0aa(0xf9)];for(var _0x168785=0x0,_0x3738dd=_0x1098f5[_0x2cf0aa(0xd2)];_0x168785<_0x3738dd;_0x168785++){_0x46e648[_0x2cf0aa(0xdb)](),_0x46e648[_0x2cf0aa(0xd6)]();var _0x121c4d=_0x1098f5[_0x168785];let _0x158fdd=boundingExtent(_0x121c4d);_0x46e648[_0x2cf0aa(0xe9)](_0x158fdd[0x0],_0x158fdd[0x1]);let _0x2f2256;switch(_0x33679e[_0x2cf0aa(0xff)]){case _0x2cf0aa(0xc6):_0x2f2256=_getImagePattern(_0x46e648,_0x158fdd,_0x33679e,_0x795a6e);break;case _0x2cf0aa(0xd7):_0x2f2256=_getGridPattern(_0x46e648,_0x158fdd,_0x33679e);break;case'stripe':_0x2f2256=_getStripePattern(_0x46e648,_0x158fdd,_0x33679e);break;case'checkerboard':_0x2f2256=_getCheckerBoardPattern(_0x46e648,_0x158fdd,_0x33679e);break;default:_0x2f2256=_0x2cf0aa(0xd0);break;}for(var _0x450d7f=0x0,_0x5bbf26=_0x121c4d[_0x2cf0aa(0xd2)];_0x450d7f<_0x5bbf26;_0x450d7f++){var _0x5cf329=_0x121c4d[_0x450d7f];_0x450d7f===0x0?_0x46e648[_0x2cf0aa(0xd1)](_0x5cf329[0x0]-_0x158fdd[0x0],_0x5cf329[0x1]-_0x158fdd[0x1]):_0x46e648[_0x2cf0aa(0xd4)](_0x5cf329[0x0]-_0x158fdd[0x0],_0x5cf329[0x1]-_0x158fdd[0x1]);}_0x46e648[_0x2cf0aa(0xe7)](),_0x46e648[_0x2cf0aa(0xe6)]='rgba(0,0,0,0.01)',_0x46e648[_0x2cf0aa(0xdf)](),_0x46e648[_0x2cf0aa(0xe6)]=_0x2f2256,_0x46e648[_0x2cf0aa(0xdf)](),_0x33679e[_0x2cf0aa(0xe3)]?(_0x46e648[_0x2cf0aa(0xe4)]=getColor(_0x33679e[_0x2cf0aa(0x102)],_0x33679e[_0x2cf0aa(0xe1)]),_0x46e648['lineWidth']=_0x33679e[_0x2cf0aa(0xcd)]):_0x46e648[_0x2cf0aa(0xe4)]='rgba(0,0,0,0.0)',_0x46e648['stroke'](),_0x46e648[_0x2cf0aa(0xda)]();}}catch(_0x1794a9){_0x46e648[_0x2cf0aa(0xda)](),console[_0x2cf0aa(0xcb)](_0x1794a9);}}function a64_0x2d71(_0x1c9809,_0x29ad35){const _0x2333b8=a64_0x2333();return a64_0x2d71=function(_0x2d7147,_0x34f79c){_0x2d7147=_0x2d7147-0xc3;let _0x519d76=_0x2333b8[_0x2d7147];return _0x519d76;},a64_0x2d71(_0x1c9809,_0x29ad35);}function _getImagePattern(_0x25078e,_0x4dc0f1,_0x48ec09,_0x4e90ad){const _0x3312c3=a64_0x2d71;if(!_0x4e90ad||_0x4e90ad[_0x3312c3(0xf6)]===0x0){let _0x49546d=new Image();_0x49546d[_0x3312c3(0xec)]=_0x48ec09[_0x3312c3(0xc6)];}var _0x6c3d39=getSize(_0x4dc0f1);const _0x3d53d0=document[_0x3312c3(0xc5)](_0x3312c3(0xf7)),_0xd99b2c=_0x3d53d0[_0x3312c3(0xc3)]('2d');return _0x3d53d0[_0x3312c3(0xf6)]=Math['max'](_0x6c3d39[0x0]/_0x48ec09['repeatX'],0x1),_0x3d53d0[_0x3312c3(0xce)]=Math[_0x3312c3(0xf3)](_0x6c3d39[0x1]/_0x48ec09[_0x3312c3(0xfb)],0x1),_0xd99b2c&&(_0xd99b2c[_0x3312c3(0xfa)]=_0x48ec09[_0x3312c3(0x101)],_0xd99b2c[_0x3312c3(0xe0)](_0x4e90ad,0x0,0x0,_0x3d53d0['width'],_0x3d53d0[_0x3312c3(0xce)])),_0x25078e[_0x3312c3(0xd3)](_0x3d53d0,'repeat');}function _getGridPattern(_0x5bfd3a,_0x468b44,_0x54d577){const _0x371b99=a64_0x2d71;var _0x4c5352=getSize(_0x468b44);const _0x2ca071=document[_0x371b99(0xc5)]('canvas'),_0x645989=_0x2ca071[_0x371b99(0xc3)]('2d');return _0x2ca071[_0x371b99(0xf6)]=Math['max'](_0x4c5352[0x0]/_0x54d577[_0x371b99(0xca)],0x1),_0x2ca071[_0x371b99(0xce)]=Math[_0x371b99(0xf3)](_0x4c5352[0x1]/_0x54d577[_0x371b99(0xca)],0x1),_0x645989&&(_0x645989[_0x371b99(0xe4)]=getColor(_0x54d577['color'],_0x54d577['opacity']),_0x645989[_0x371b99(0xea)]=_0x54d577[_0x371b99(0xfd)]*0x4,_0x645989['beginPath'](),_0x645989[_0x371b99(0xd1)](0x0,_0x2ca071['height']),_0x645989[_0x371b99(0xd4)](_0x2ca071[_0x371b99(0xf6)],_0x2ca071[_0x371b99(0xce)]),_0x645989[_0x371b99(0xd1)](_0x2ca071[_0x371b99(0xf6)],0x0),_0x645989['lineTo'](_0x2ca071[_0x371b99(0xf6)],_0x2ca071[_0x371b99(0xce)]),_0x645989['stroke']()),_0x5bfd3a[_0x371b99(0xd3)](_0x2ca071,_0x371b99(0xeb));}function _getStripePattern(_0x2415d7,_0x1e1b63,_0xc10912){const _0x53bc3c=a64_0x2d71;var _0x32a640=getSize(_0x1e1b63);const _0x2f6cd1=document['createElement']('canvas'),_0x495243=_0x2f6cd1['getContext']('2d');let _0x5cd480=Math[_0x53bc3c(0xf3)](_0x32a640[0x1]/_0xc10912[_0x53bc3c(0x100)],0x1);return _0x2f6cd1['width']=_0x32a640[0x0],_0x2f6cd1[_0x53bc3c(0xce)]=_0x5cd480*0x2,_0x495243&&(_0x495243[_0x53bc3c(0xd6)](),_0x495243[_0x53bc3c(0xd1)](0x0,0x0),_0x495243[_0x53bc3c(0xd4)](_0x2f6cd1[_0x53bc3c(0xf6)],0x0),_0x495243[_0x53bc3c(0xd4)](_0x2f6cd1['width'],_0x5cd480),_0x495243[_0x53bc3c(0xd4)](0x0,_0x5cd480),_0x495243['closePath'](),_0x495243[_0x53bc3c(0xe6)]=getColor(_0xc10912[_0x53bc3c(0xd8)],_0xc10912[_0x53bc3c(0x101)]),_0x495243[_0x53bc3c(0xdf)](),_0x495243[_0x53bc3c(0xd6)](),_0x495243[_0x53bc3c(0xd1)](0x0,_0x5cd480),_0x495243[_0x53bc3c(0xd4)](_0x2f6cd1['width'],_0x5cd480),_0x495243[_0x53bc3c(0xd4)](_0x2f6cd1[_0x53bc3c(0xf6)],_0x5cd480*0x2),_0x495243[_0x53bc3c(0xd4)](0x0,_0x5cd480*0x2),_0x495243[_0x53bc3c(0xe7)](),_0x495243[_0x53bc3c(0xe6)]=getColor(_0xc10912[_0x53bc3c(0xdd)],_0xc10912[_0x53bc3c(0x101)]),_0x495243[_0x53bc3c(0xdf)]()),_0x2415d7[_0x53bc3c(0xd3)](_0x2f6cd1,_0x53bc3c(0xeb));}function _getCheckerBoardPattern(_0x428ece,_0xc22ef7,_0x1a4ff7){const _0x2c13f7=a64_0x2d71;var _0x19dd1e=getSize(_0xc22ef7);const _0x44c6f5=document[_0x2c13f7(0xc5)](_0x2c13f7(0xf7)),_0x29d549=_0x44c6f5[_0x2c13f7(0xc3)]('2d');let _0x2195a3=Math[_0x2c13f7(0xf3)](_0x19dd1e[0x0]/_0x1a4ff7[_0x2c13f7(0xf8)],0x1),_0x22deb3=Math[_0x2c13f7(0xf3)](_0x19dd1e[0x1]/_0x1a4ff7[_0x2c13f7(0xf8)],0x1);return _0x44c6f5[_0x2c13f7(0xf6)]=_0x2195a3*0x2,_0x44c6f5[_0x2c13f7(0xce)]=_0x22deb3*0x2,_0x29d549&&(_0x29d549['beginPath'](),_0x29d549[_0x2c13f7(0xd1)](0x0,0x0),_0x29d549['lineTo'](_0x2195a3,0x0),_0x29d549[_0x2c13f7(0xd4)](_0x2195a3,_0x22deb3),_0x29d549[_0x2c13f7(0xd4)](0x0,_0x22deb3),_0x29d549[_0x2c13f7(0xe7)](),_0x29d549[_0x2c13f7(0xe6)]=getColor(_0x1a4ff7[_0x2c13f7(0xde)],_0x1a4ff7[_0x2c13f7(0x101)]),_0x29d549[_0x2c13f7(0xdf)](),_0x29d549[_0x2c13f7(0xd6)](),_0x29d549[_0x2c13f7(0xd1)](_0x2195a3,0x0),_0x29d549[_0x2c13f7(0xd4)](_0x44c6f5[_0x2c13f7(0xf6)],0x0),_0x29d549['lineTo'](_0x44c6f5[_0x2c13f7(0xf6)],_0x22deb3),_0x29d549[_0x2c13f7(0xd4)](_0x2195a3,_0x22deb3),_0x29d549['closePath'](),_0x29d549[_0x2c13f7(0xe6)]=getColor(_0x1a4ff7['color'],_0x1a4ff7['opacity']),_0x29d549[_0x2c13f7(0xdf)](),_0x29d549[_0x2c13f7(0xd6)](),_0x29d549[_0x2c13f7(0xd1)](0x0,_0x22deb3),_0x29d549[_0x2c13f7(0xd4)](_0x2195a3,_0x22deb3),_0x29d549[_0x2c13f7(0xd4)](_0x2195a3,_0x44c6f5[_0x2c13f7(0xce)]),_0x29d549[_0x2c13f7(0xd4)](0x0,_0x44c6f5['height']),_0x29d549['closePath'](),_0x29d549[_0x2c13f7(0xe6)]=getColor(_0x1a4ff7['color'],_0x1a4ff7[_0x2c13f7(0x101)]),_0x29d549[_0x2c13f7(0xdf)](),_0x29d549[_0x2c13f7(0xd6)](),_0x29d549[_0x2c13f7(0xd1)](_0x2195a3,_0x22deb3),_0x29d549[_0x2c13f7(0xd4)](_0x44c6f5[_0x2c13f7(0xf6)],_0x22deb3),_0x29d549[_0x2c13f7(0xd4)](_0x44c6f5[_0x2c13f7(0xf6)],_0x44c6f5['height']),_0x29d549['lineTo'](_0x2195a3,_0x44c6f5[_0x2c13f7(0xce)]),_0x29d549[_0x2c13f7(0xe7)](),_0x29d549[_0x2c13f7(0xe6)]=getColor(_0x1a4ff7[_0x2c13f7(0xde)],_0x1a4ff7[_0x2c13f7(0x101)]),_0x29d549[_0x2c13f7(0xdf)]()),_0x428ece['createPattern'](_0x44c6f5,'repeat');}
|
|
1
|
+
(function(_0xdd32b,_0x16a807){const _0x47d9a7=a64_0x129e,_0x1e0c9a=_0xdd32b();while(!![]){try{const _0x391341=parseInt(_0x47d9a7(0x13d))/0x1*(-parseInt(_0x47d9a7(0x13b))/0x2)+-parseInt(_0x47d9a7(0x149))/0x3+parseInt(_0x47d9a7(0x15a))/0x4+-parseInt(_0x47d9a7(0x176))/0x5*(parseInt(_0x47d9a7(0x14b))/0x6)+parseInt(_0x47d9a7(0x152))/0x7+parseInt(_0x47d9a7(0x163))/0x8+-parseInt(_0x47d9a7(0x172))/0x9;if(_0x391341===_0x16a807)break;else _0x1e0c9a['push'](_0x1e0c9a['shift']());}catch(_0x2aaf2c){_0x1e0c9a['push'](_0x1e0c9a['shift']());}}}(a64_0x5647,0x91da9));import{getColor,createTextStyle,preLoadImageRenderFunction}from'./common';import{Fill,Stroke,Style}from'ol/style';function a64_0x5647(){const _0x560c0b=['verticalOrigin','outlineWidth','push','billboard','strokeStyle','createPattern','length','max','3129840atjotW','grid_lineThickness','createElement','closePath','repeatX','fill','lineWidth','width','repeat','canvas','color','drawImage','stroke','outlineOpacity','checkerboard','3759282myCeiQ','setRenderer','beginPath','height','13820UUWQkg','repeatY','stripe_repeat','setFill','30Tvmuwp','fillType','28669vOkwxQ','lineTo','CENTER','stripe_oddcolor','setZIndex','opacity','translate','outlineColor','src','grid','checkerboard_repeat','rgba(0,0,0,0.01)','103014sxcJxX','grid_lineCount','402KGyxAA','context','show','stripe','image','restore','save','5321757CmIcgz','moveTo','oddColor','fillStyle','label','getContext','outline','rgba(0,0,0,0.0)','2052780BHaUaW'];a64_0x5647=function(){return _0x560c0b;};return a64_0x5647();}import{getSize,boundingExtent}from'ol/extent';import{getImageOlStyle}from'./PointStyleFormat';export function getPolygonStyle(_0x5d3bb3,_0x207ee3,_0x1938c4,_0x36cf9b){const _0x16cc94=a64_0x129e;var _0x4789a8;let _0x5e012b=(_0x4789a8=_0x5d3bb3['zIndex'])!==null&&_0x4789a8!==void 0x0?_0x4789a8:0x0,_0x15b5e4=new Style();_0x15b5e4[_0x16cc94(0x141)](_0x5e012b),_0x15b5e4['setFill'](new Fill({'color':'rgba(0,0,0,0)'}));if(_0x5d3bb3[_0x16cc94(0x168)]!==![]){if(!_0x5d3bb3['fillType']||_0x5d3bb3[_0x16cc94(0x13c)]===_0x16cc94(0x16d))_0x15b5e4[_0x16cc94(0x13a)](new Fill({'color':getColor(_0x5d3bb3[_0x16cc94(0x16d)],_0x5d3bb3[_0x16cc94(0x142)])}));else{if(_0x5d3bb3[_0x16cc94(0x13c)]===_0x16cc94(0x14f))_0x15b5e4[_0x16cc94(0x173)]((_0x3acb84,_0x1c5a76)=>{preLoadImageRenderFunction(_0x5d3bb3,_0x3acb84,_0x1c5a76,_0x36cf9b,_rendererFunction);});else _0x5d3bb3[_0x16cc94(0x13c)]===_0x16cc94(0x146)||_0x5d3bb3[_0x16cc94(0x13c)]===_0x16cc94(0x14e)||_0x5d3bb3[_0x16cc94(0x13c)]===_0x16cc94(0x171)?_0x15b5e4['setRenderer']((_0x4a1cca,_0x32c131)=>{_rendererFunction(_0x5d3bb3,_0x4a1cca,_0x32c131,_0x36cf9b,null);}):_0x15b5e4[_0x16cc94(0x13a)](new Fill({'color':getColor(_0x5d3bb3[_0x16cc94(0x16d)],_0x5d3bb3[_0x16cc94(0x142)])}));}}_0x5d3bb3[_0x16cc94(0x158)]!==![]&&_0x15b5e4['setStroke'](new Stroke({'color':getColor(_0x5d3bb3[_0x16cc94(0x144)],_0x5d3bb3[_0x16cc94(0x170)]),'width':_0x5d3bb3['outlineWidth']}));let _0x4fd7cb=[_0x15b5e4];_0x5d3bb3[_0x16cc94(0x15e)]&&!_0x5d3bb3[_0x16cc94(0x15e)][_0x16cc94(0x15b)]&&(_0x5d3bb3[_0x16cc94(0x15e)][_0x16cc94(0x15b)]=_0x16cc94(0x13f));let _0x37c1a6=getImageOlStyle(_0x5d3bb3[_0x16cc94(0x15e)],_0x5e012b,_0x1938c4,_0x36cf9b);_0x37c1a6&&_0x4fd7cb[_0x16cc94(0x15d)](_0x37c1a6);if(_0x5d3bb3['label']&&_0x5d3bb3[_0x16cc94(0x156)][_0x16cc94(0x14d)]!==![]){!_0x5d3bb3[_0x16cc94(0x156)][_0x16cc94(0x15b)]&&(_0x5d3bb3[_0x16cc94(0x156)][_0x16cc94(0x15b)]=_0x16cc94(0x13f));let _0x115f61=new Style({'text':createTextStyle(_0x5d3bb3[_0x16cc94(0x156)],_0x207ee3,_0x1938c4,_0x36cf9b),'zIndex':Number(_0x5e012b)+0x1});_0x4fd7cb[_0x16cc94(0x15d)](_0x115f61);}return _0x4fd7cb;}function _rendererFunction(_0x5aabe9,_0x3fe1a5,_0x432ec9,_0x511681,_0x4ffeeb){const _0x2fa0a5=a64_0x129e;try{var _0x83fffc=_0x432ec9[_0x2fa0a5(0x14c)];for(var _0x5a95d4=0x0,_0x4ff62d=_0x3fe1a5[_0x2fa0a5(0x161)];_0x5a95d4<_0x4ff62d;_0x5a95d4++){_0x83fffc[_0x2fa0a5(0x151)](),_0x83fffc[_0x2fa0a5(0x174)]();var _0xae46ab=_0x3fe1a5[_0x5a95d4];let _0x21455c=boundingExtent(_0xae46ab);_0x83fffc[_0x2fa0a5(0x143)](_0x21455c[0x0],_0x21455c[0x1]);let _0x3938d5;switch(_0x5aabe9[_0x2fa0a5(0x13c)]){case'image':_0x3938d5=_getImagePattern(_0x83fffc,_0x21455c,_0x5aabe9,_0x4ffeeb);break;case _0x2fa0a5(0x146):_0x3938d5=_getGridPattern(_0x83fffc,_0x21455c,_0x5aabe9);break;case _0x2fa0a5(0x14e):_0x3938d5=_getStripePattern(_0x83fffc,_0x21455c,_0x5aabe9);break;case _0x2fa0a5(0x171):_0x3938d5=_getCheckerBoardPattern(_0x83fffc,_0x21455c,_0x5aabe9);break;default:_0x3938d5=_0x2fa0a5(0x148);break;}for(var _0x1109e1=0x0,_0x177998=_0xae46ab[_0x2fa0a5(0x161)];_0x1109e1<_0x177998;_0x1109e1++){var _0x39c253=_0xae46ab[_0x1109e1];_0x1109e1===0x0?_0x83fffc['moveTo'](_0x39c253[0x0]-_0x21455c[0x0],_0x39c253[0x1]-_0x21455c[0x1]):_0x83fffc[_0x2fa0a5(0x13e)](_0x39c253[0x0]-_0x21455c[0x0],_0x39c253[0x1]-_0x21455c[0x1]);}_0x83fffc[_0x2fa0a5(0x166)](),_0x83fffc[_0x2fa0a5(0x155)]=_0x2fa0a5(0x148),_0x83fffc[_0x2fa0a5(0x168)](),_0x83fffc[_0x2fa0a5(0x155)]=_0x3938d5,_0x83fffc['fill'](),_0x5aabe9[_0x2fa0a5(0x158)]?(_0x83fffc[_0x2fa0a5(0x15f)]=getColor(_0x5aabe9[_0x2fa0a5(0x144)],_0x5aabe9[_0x2fa0a5(0x170)]),_0x83fffc['lineWidth']=_0x5aabe9[_0x2fa0a5(0x15c)]):_0x83fffc[_0x2fa0a5(0x15f)]=_0x2fa0a5(0x159),_0x83fffc[_0x2fa0a5(0x16f)](),_0x83fffc[_0x2fa0a5(0x150)]();}}catch(_0x5951d8){_0x83fffc[_0x2fa0a5(0x150)](),console['warn'](_0x5951d8);}}function _getImagePattern(_0x4d4ed4,_0x4a824f,_0x1cd280,_0x1d8c18){const _0x193605=a64_0x129e;if(!_0x1d8c18||_0x1d8c18[_0x193605(0x16a)]===0x0){let _0x17a57d=new Image();_0x17a57d[_0x193605(0x145)]=_0x1cd280[_0x193605(0x14f)];}var _0x13d16d=getSize(_0x4a824f);const _0xf8ddec=document['createElement']('canvas'),_0x515987=_0xf8ddec['getContext']('2d');return _0xf8ddec[_0x193605(0x16a)]=Math[_0x193605(0x162)](_0x13d16d[0x0]/_0x1cd280[_0x193605(0x167)],0x1),_0xf8ddec[_0x193605(0x175)]=Math[_0x193605(0x162)](_0x13d16d[0x1]/_0x1cd280[_0x193605(0x177)],0x1),_0x515987&&(_0x515987['globalAlpha']=_0x1cd280[_0x193605(0x142)],_0x515987[_0x193605(0x16e)](_0x1d8c18,0x0,0x0,_0xf8ddec[_0x193605(0x16a)],_0xf8ddec[_0x193605(0x175)])),_0x4d4ed4[_0x193605(0x160)](_0xf8ddec,_0x193605(0x16b));}function a64_0x129e(_0x4092af,_0x1cf93a){const _0x564726=a64_0x5647();return a64_0x129e=function(_0x129e10,_0x3d1737){_0x129e10=_0x129e10-0x139;let _0x1c9bf3=_0x564726[_0x129e10];return _0x1c9bf3;},a64_0x129e(_0x4092af,_0x1cf93a);}function _getGridPattern(_0x34a72c,_0x8d49cb,_0x2befa6){const _0x10d6c6=a64_0x129e;var _0x59a879=getSize(_0x8d49cb);const _0x32f3aa=document[_0x10d6c6(0x165)](_0x10d6c6(0x16c)),_0x44b10f=_0x32f3aa['getContext']('2d');return _0x32f3aa[_0x10d6c6(0x16a)]=Math['max'](_0x59a879[0x0]/_0x2befa6['grid_lineCount'],0x1),_0x32f3aa['height']=Math[_0x10d6c6(0x162)](_0x59a879[0x1]/_0x2befa6[_0x10d6c6(0x14a)],0x1),_0x44b10f&&(_0x44b10f['strokeStyle']=getColor(_0x2befa6[_0x10d6c6(0x16d)],_0x2befa6[_0x10d6c6(0x142)]),_0x44b10f[_0x10d6c6(0x169)]=_0x2befa6[_0x10d6c6(0x164)]*0x4,_0x44b10f['beginPath'](),_0x44b10f['moveTo'](0x0,_0x32f3aa[_0x10d6c6(0x175)]),_0x44b10f[_0x10d6c6(0x13e)](_0x32f3aa['width'],_0x32f3aa['height']),_0x44b10f[_0x10d6c6(0x153)](_0x32f3aa[_0x10d6c6(0x16a)],0x0),_0x44b10f[_0x10d6c6(0x13e)](_0x32f3aa['width'],_0x32f3aa['height']),_0x44b10f['stroke']()),_0x34a72c[_0x10d6c6(0x160)](_0x32f3aa,_0x10d6c6(0x16b));}function _getStripePattern(_0x3f1a7f,_0x2d2792,_0x4e4020){const _0x8397e9=a64_0x129e;var _0x512e0f=getSize(_0x2d2792);const _0x86475f=document['createElement'](_0x8397e9(0x16c)),_0x31271f=_0x86475f['getContext']('2d');let _0x558f29=Math[_0x8397e9(0x162)](_0x512e0f[0x1]/_0x4e4020[_0x8397e9(0x139)],0x1);return _0x86475f[_0x8397e9(0x16a)]=_0x512e0f[0x0],_0x86475f['height']=_0x558f29*0x2,_0x31271f&&(_0x31271f[_0x8397e9(0x174)](),_0x31271f['moveTo'](0x0,0x0),_0x31271f[_0x8397e9(0x13e)](_0x86475f[_0x8397e9(0x16a)],0x0),_0x31271f['lineTo'](_0x86475f['width'],_0x558f29),_0x31271f[_0x8397e9(0x13e)](0x0,_0x558f29),_0x31271f['closePath'](),_0x31271f['fillStyle']=getColor(_0x4e4020[_0x8397e9(0x140)],_0x4e4020[_0x8397e9(0x142)]),_0x31271f[_0x8397e9(0x168)](),_0x31271f[_0x8397e9(0x174)](),_0x31271f['moveTo'](0x0,_0x558f29),_0x31271f[_0x8397e9(0x13e)](_0x86475f[_0x8397e9(0x16a)],_0x558f29),_0x31271f['lineTo'](_0x86475f[_0x8397e9(0x16a)],_0x558f29*0x2),_0x31271f[_0x8397e9(0x13e)](0x0,_0x558f29*0x2),_0x31271f[_0x8397e9(0x166)](),_0x31271f['fillStyle']=getColor(_0x4e4020[_0x8397e9(0x16d)],_0x4e4020['opacity']),_0x31271f[_0x8397e9(0x168)]()),_0x3f1a7f[_0x8397e9(0x160)](_0x86475f,'repeat');}function _getCheckerBoardPattern(_0x5d1d0d,_0x4d6286,_0x428577){const _0x3e5787=a64_0x129e;var _0x423368=getSize(_0x4d6286);const _0x454e56=document[_0x3e5787(0x165)](_0x3e5787(0x16c)),_0x4c5a8b=_0x454e56[_0x3e5787(0x157)]('2d');let _0x1858be=Math[_0x3e5787(0x162)](_0x423368[0x0]/_0x428577[_0x3e5787(0x147)],0x1),_0x53d580=Math['max'](_0x423368[0x1]/_0x428577[_0x3e5787(0x147)],0x1);return _0x454e56[_0x3e5787(0x16a)]=_0x1858be*0x2,_0x454e56[_0x3e5787(0x175)]=_0x53d580*0x2,_0x4c5a8b&&(_0x4c5a8b['beginPath'](),_0x4c5a8b['moveTo'](0x0,0x0),_0x4c5a8b['lineTo'](_0x1858be,0x0),_0x4c5a8b[_0x3e5787(0x13e)](_0x1858be,_0x53d580),_0x4c5a8b[_0x3e5787(0x13e)](0x0,_0x53d580),_0x4c5a8b['closePath'](),_0x4c5a8b[_0x3e5787(0x155)]=getColor(_0x428577[_0x3e5787(0x154)],_0x428577[_0x3e5787(0x142)]),_0x4c5a8b[_0x3e5787(0x168)](),_0x4c5a8b['beginPath'](),_0x4c5a8b['moveTo'](_0x1858be,0x0),_0x4c5a8b[_0x3e5787(0x13e)](_0x454e56[_0x3e5787(0x16a)],0x0),_0x4c5a8b[_0x3e5787(0x13e)](_0x454e56[_0x3e5787(0x16a)],_0x53d580),_0x4c5a8b[_0x3e5787(0x13e)](_0x1858be,_0x53d580),_0x4c5a8b[_0x3e5787(0x166)](),_0x4c5a8b[_0x3e5787(0x155)]=getColor(_0x428577['color'],_0x428577[_0x3e5787(0x142)]),_0x4c5a8b['fill'](),_0x4c5a8b[_0x3e5787(0x174)](),_0x4c5a8b[_0x3e5787(0x153)](0x0,_0x53d580),_0x4c5a8b[_0x3e5787(0x13e)](_0x1858be,_0x53d580),_0x4c5a8b[_0x3e5787(0x13e)](_0x1858be,_0x454e56[_0x3e5787(0x175)]),_0x4c5a8b[_0x3e5787(0x13e)](0x0,_0x454e56[_0x3e5787(0x175)]),_0x4c5a8b[_0x3e5787(0x166)](),_0x4c5a8b['fillStyle']=getColor(_0x428577[_0x3e5787(0x16d)],_0x428577['opacity']),_0x4c5a8b[_0x3e5787(0x168)](),_0x4c5a8b[_0x3e5787(0x174)](),_0x4c5a8b[_0x3e5787(0x153)](_0x1858be,_0x53d580),_0x4c5a8b[_0x3e5787(0x13e)](_0x454e56['width'],_0x53d580),_0x4c5a8b['lineTo'](_0x454e56['width'],_0x454e56['height']),_0x4c5a8b['lineTo'](_0x1858be,_0x454e56[_0x3e5787(0x175)]),_0x4c5a8b['closePath'](),_0x4c5a8b[_0x3e5787(0x155)]=getColor(_0x428577[_0x3e5787(0x154)],_0x428577[_0x3e5787(0x142)]),_0x4c5a8b[_0x3e5787(0x168)]()),_0x5d1d0d['createPattern'](_0x454e56,_0x3e5787(0x16b));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2e1a85,_0x17c713){const _0x3512f6=a65_0x3c02,_0x4db3de=_0x2e1a85();while(!![]){try{const _0x5bcb68=parseInt(_0x3512f6(0xad))/0x1*(parseInt(_0x3512f6(0xc8))/0x2)+parseInt(_0x3512f6(0xa9))/0x3*(-parseInt(_0x3512f6(0xba))/0x4)+-parseInt(_0x3512f6(0xb6))/0x5*(parseInt(_0x3512f6(0xbd))/0x6)+parseInt(_0x3512f6(0xa3))/0x7*(-parseInt(_0x3512f6(0x97))/0x8)+-parseInt(_0x3512f6(0xce))/0x9*(-parseInt(_0x3512f6(0xa7))/0xa)+-parseInt(_0x3512f6(0xa1))/0xb+parseInt(_0x3512f6(0x94))/0xc;if(_0x5bcb68===_0x17c713)break;else _0x4db3de['push'](_0x4db3de['shift']());}catch(_0x5023b5){_0x4db3de['push'](_0x4db3de['shift']());}}}(a65_0x4ce4,0x24ec5));function a65_0x3c02(_0x22a12a,_0x46eb58){const _0x4ce49d=a65_0x4ce4();return a65_0x3c02=function(_0x3c02c6,_0x4eb514){_0x3c02c6=_0x3c02c6-0x94;let _0x13178c=_0x4ce49d[_0x3c02c6];return _0x13178c;},a65_0x3c02(_0x22a12a,_0x46eb58);}import{createTextStyle,getColor}from'./common';import{Stroke,Style}from'ol/style';function a65_0x4ce4(){const _0x5dc90b=['show','8gDPqbK','sqrt','beginPath','save','arrow','MultiLineString','LineString','outlineOpacity','cos','535kUAuLg','color','push','setRenderer','32QshcaP','glowPower','outline','6432FbiEmc','lineTo','lineCap','lineWidth','length','stroke','getCoordinates','butt','getType','getFlatMidpoint','pow','46346fkwhiu','toString','closed','billboard','getGeometry','setGeometry','34479KbHZKT','5043420IyLNXi','white','sin','23232qDgWoj','outlineWidth','context','restore','shadowColor','outlineColor','width','strokeStyle','opacity','getFlatMidpoints','1822282yadQMA','getFirstCoordinate','7escjDP','glow','concat','moveTo','20PzZqqJ','label','67059ETNbro','shadowBlur','lineType'];a65_0x4ce4=function(){return _0x5dc90b;};return a65_0x4ce4();}import{getImageOlStyle}from'./PointStyleFormat';import{LineString,Point,MultiLineString,MultiPoint}from'ol/geom';export function getPolylineStyle(_0x3f1428,_0x3fb2b6,_0x26641b,_0x319672){const _0x5900ce=a65_0x3c02;var _0x4e7ac8,_0x2f5b5d,_0x4bb699;let _0x36e9e2=(_0x4e7ac8=_0x3f1428['zIndex'])!==null&&_0x4e7ac8!==void 0x0?_0x4e7ac8:0x0;const _0xb4ca4e=_0x2efd50=>{const _0x4b99ad=a65_0x3c02;var _0x512853=_0x2efd50[_0x4b99ad(0xcc)]();if(_0x512853)return _getRealPolyline(_0x512853,_0x3f1428);return _0x512853;},_0x528985=_0x4af66a=>{const _0xe14198=a65_0x3c02;var _0x97b946=_0x4af66a['getGeometry']();let _0x4912cb=_0x97b946;_0x97b946&&(_0x4912cb=_getRealPolyline(_0x97b946,_0x3f1428));if(_0x4912cb&&_0x4912cb['getType']()===_0xe14198(0xb3))return new Point(_0x4912cb[_0xe14198(0xc6)]());else{let _0x590426=_0x4912cb[_0xe14198(0xa0)](),_0x3b35b8=0x2,_0x3750b1=[];for(let _0x455827=0x0,_0x343b81=_0x590426[_0xe14198(0xc1)];_0x455827<_0x343b81;_0x455827+=_0x3b35b8){let _0x1d4d95=[_0x590426[_0x455827],_0x590426[_0x455827+0x1]];_0x3750b1[_0xe14198(0xb8)](_0x1d4d95);}return new MultiPoint(_0x3750b1);}};let _0x3cb8be=new Style({'geometry':_0xb4ca4e,'stroke':new Stroke({'color':getColor(_0x3f1428['color'],_0x3f1428[_0x5900ce(0x9f)]),'width':_0x3f1428['width']}),'zIndex':_0x36e9e2}),_0x5ca386=[_0x3cb8be];if(_0x3f1428[_0x5900ce(0xab)]==='dash'){let _0x4bbf35=_0x3f1428[_0x5900ce(0x98)]/0x2,_0x4bbdff=new Style({'geometry':_0xb4ca4e,'zIndex':_0x36e9e2,'stroke':new Stroke({'color':getColor(_0x3f1428['color'],_0x3f1428[_0x5900ce(0x9f)]),'width':_0x3f1428[_0x5900ce(0x9d)],'lineCap':'butt','lineDash':[_0x4bbf35,_0x4bbf35]})}),_0x532107=new Style({'geometry':_0xb4ca4e,'zIndex':_0x36e9e2+0.5,'stroke':new Stroke({'color':getColor(_0x3f1428[_0x5900ce(0x9c)],Number((_0x4bb699=(_0x2f5b5d=_0x3f1428[_0x5900ce(0xb4)])!==null&&_0x2f5b5d!==void 0x0?_0x2f5b5d:_0x3f1428['opacity'])!==null&&_0x4bb699!==void 0x0?_0x4bb699:0x1)),'width':_0x3f1428[_0x5900ce(0x9d)],'lineCap':'butt','lineDash':[_0x4bbf35,_0x4bbf35],'lineDashOffset':_0x4bbf35})});_0x5ca386=[_0x4bbdff,_0x532107];}_0x3f1428[_0x5900ce(0xab)]===_0x5900ce(0xb1)&&_0x3cb8be[_0x5900ce(0xb9)]((_0x564482,_0x24be76)=>{const _0x24678d=_0x5900ce;let _0x1a4a43=_0x24be76[_0x24678d(0x99)],_0x101024=parseInt((_0x3f1428[_0x24678d(0x9d)]/0x4)[_0x24678d(0xc9)]()),_0x1fdd21=0xa,_0x21876a=Math[_0x24678d(0xae)](Math[_0x24678d(0xc7)](_0x1fdd21,0x2)+Math['pow'](_0x3f1428[_0x24678d(0x9d)]/0x2,0x2)),_0x205186=0x2d,_0x4b19a5=_0x564482[_0x564482[_0x24678d(0xc1)]-0x2][0x0],_0x214c90=_0x564482[_0x564482[_0x24678d(0xc1)]-0x2][0x1],_0xd1e2c1=_0x564482[_0x564482[_0x24678d(0xc1)]-0x1][0x0],_0x8db6a9=_0x564482[_0x564482['length']-0x1][0x1],_0x14a384=Math['atan2'](_0x214c90-_0x8db6a9,_0x4b19a5-_0xd1e2c1)*0xb4/Math['PI'],_0x1be7ff=(_0x14a384+_0x205186)*Math['PI']/0xb4,_0x161796=(_0x14a384-_0x205186)*Math['PI']/0xb4,_0xfb6e94=_0x21876a*Math['cos'](_0x1be7ff),_0x21cd0b=_0x21876a*Math[_0x24678d(0x96)](_0x1be7ff),_0x59208b=_0x21876a*Math[_0x24678d(0xb5)](_0x161796),_0x2f3f46=_0x21876a*Math[_0x24678d(0x96)](_0x161796);_0x1a4a43[_0x24678d(0xb0)](),_0x1a4a43[_0x24678d(0xaf)]();let _0x1463b7,_0x52099d;for(let _0x42cdc6=0x0;_0x42cdc6<_0x564482[_0x24678d(0xc1)];_0x42cdc6++){_0x42cdc6===0x0?_0x1a4a43[_0x24678d(0xa6)](_0x564482[_0x42cdc6][0x0],_0x564482[_0x42cdc6][0x1]):_0x1a4a43[_0x24678d(0xbe)](_0x564482[_0x42cdc6][0x0],_0x564482[_0x42cdc6][0x1]);}_0x1a4a43['strokeStyle']=getColor(_0x3f1428['color'],_0x3f1428[_0x24678d(0x9f)]),_0x1a4a43['lineWidth']=_0x101024,_0x1a4a43[_0x24678d(0xbf)]=_0x24678d(0xc4),_0x1a4a43[_0x24678d(0xc2)](),_0x1463b7=_0xd1e2c1+_0xfb6e94,_0x52099d=_0x8db6a9+_0x21cd0b,_0x1a4a43[_0x24678d(0xa6)](_0x1463b7,_0x52099d),_0x1a4a43[_0x24678d(0xbe)](_0xd1e2c1,_0x8db6a9),_0x1463b7=_0xd1e2c1+_0x59208b,_0x52099d=_0x8db6a9+_0x2f3f46,_0x1a4a43['lineTo'](_0x1463b7,_0x52099d),_0x1a4a43['lineCap']=_0x24678d(0xc4),_0x1a4a43[_0x24678d(0xc2)](),_0x1a4a43[_0x24678d(0x9a)]();});_0x3f1428[_0x5900ce(0xab)]===_0x5900ce(0xa4)&&_0x3cb8be[_0x5900ce(0xb9)]((_0x32a98c,_0x6ee1bb)=>{const _0x18277c=_0x5900ce;let _0x26096e=_0x6ee1bb[_0x18277c(0x99)];_0x26096e[_0x18277c(0xb0)]();for(let _0x3bd99b=0x0;_0x3bd99b<0x4;_0x3bd99b++){let _0x2d7d31=_0x3f1428[_0x18277c(0x9d)]/0xa*(_0x3f1428[_0x18277c(0xbb)]===0x0?0x1:_0x3f1428[_0x18277c(0xbb)]);_0x26096e[_0x18277c(0x9b)]=getColor(_0x3f1428[_0x18277c(0xb7)],_0x3f1428[_0x18277c(0x9f)]),_0x26096e[_0x18277c(0xaa)]=_0x3f1428[_0x18277c(0x9d)]/0x5*0x2,_0x26096e[_0x18277c(0xaf)]();for(let _0x4e9080=0x0;_0x4e9080<_0x32a98c[_0x18277c(0xc1)];_0x4e9080++){_0x4e9080===0x0?_0x26096e[_0x18277c(0xa6)](_0x32a98c[_0x4e9080][0x0],_0x32a98c[_0x4e9080][0x1]):_0x26096e[_0x18277c(0xbe)](_0x32a98c[_0x4e9080][0x0],_0x32a98c[_0x4e9080][0x1]);}_0x26096e['lineCap']=_0x18277c(0xc4),_0x26096e[_0x18277c(0xc0)]=_0x2d7d31,_0x26096e['strokeStyle']=getColor(_0x18277c(0x95),_0x3f1428[_0x18277c(0x9f)]),_0x26096e[_0x18277c(0xc2)]();}_0x26096e[_0x18277c(0x9a)]();});_0x3f1428['lineType']===_0x5900ce(0xbc)&&_0x3cb8be[_0x5900ce(0xb9)]((_0x5baf49,_0x47c5af)=>{const _0x15662d=_0x5900ce;let _0x3db97a=_0x47c5af[_0x15662d(0x99)];_0x3db97a[_0x15662d(0xb0)](),_0x3db97a[_0x15662d(0xaf)]();for(let _0x13ff99=0x0;_0x13ff99<_0x5baf49[_0x15662d(0xc1)];_0x13ff99++){_0x13ff99===0x0?_0x3db97a[_0x15662d(0xa6)](_0x5baf49[_0x13ff99][0x0],_0x5baf49[_0x13ff99][0x1]):_0x3db97a[_0x15662d(0xbe)](_0x5baf49[_0x13ff99][0x0],_0x5baf49[_0x13ff99][0x1]);}_0x3db97a[_0x15662d(0xbf)]=_0x15662d(0xc4),_0x3db97a[_0x15662d(0xc0)]=_0x3f1428[_0x15662d(0x9d)],_0x3db97a[_0x15662d(0x9e)]=getColor(_0x3f1428[_0x15662d(0x9c)],_0x3f1428[_0x15662d(0x9f)]),_0x3db97a[_0x15662d(0xc2)](),_0x3db97a['beginPath']();for(let _0x387c1b=0x0;_0x387c1b<_0x5baf49[_0x15662d(0xc1)];_0x387c1b++){_0x387c1b===0x0?_0x3db97a[_0x15662d(0xa6)](_0x5baf49[_0x387c1b][0x0],_0x5baf49[_0x387c1b][0x1]):_0x3db97a[_0x15662d(0xbe)](_0x5baf49[_0x387c1b][0x0],_0x5baf49[_0x387c1b][0x1]);}_0x3db97a[_0x15662d(0xbf)]=_0x15662d(0xc4),_0x3f1428['outlineWidth']>=_0x3f1428[_0x15662d(0x9d)]&&(_0x3f1428[_0x15662d(0x98)]=_0x3f1428[_0x15662d(0x9d)]-0x1),_0x3db97a[_0x15662d(0xc0)]=_0x3f1428[_0x15662d(0x9d)]-_0x3f1428[_0x15662d(0x98)],_0x3db97a[_0x15662d(0x9e)]=getColor(_0x3f1428[_0x15662d(0xb7)],_0x3f1428[_0x15662d(0x9f)]),_0x3db97a[_0x15662d(0xc2)](),_0x3db97a[_0x15662d(0x9a)]();});let _0x48d364=getImageOlStyle(_0x3f1428[_0x5900ce(0xcb)],_0x36e9e2,_0x26641b,_0x319672);_0x48d364&&(_0x48d364[_0x5900ce(0xcd)](_0x528985),_0x5ca386[_0x5900ce(0xb8)](_0x48d364));if(_0x3f1428['label']&&_0x3f1428[_0x5900ce(0xa8)][_0x5900ce(0xac)]!==![]){let _0x4096f9=new Style({'geometry':_0x528985,'text':createTextStyle(_0x3f1428[_0x5900ce(0xa8)],_0x3fb2b6,_0x26641b,_0x319672),'zIndex':Number(_0x36e9e2)+0x1});_0x5ca386[_0x5900ce(0xb8)](_0x4096f9);}return _0x5ca386;}function _getRealPolyline(_0x4169b8,_0x5d5748){const _0x2317f4=a65_0x3c02;if(!(_0x5d5748===null||_0x5d5748===void 0x0?void 0x0:_0x5d5748[_0x2317f4(0xca)]))return _0x4169b8;else{if(_0x4169b8[_0x2317f4(0xc5)]()===_0x2317f4(0xb2)){let _0x2fa8e2=_0x4169b8[_0x2317f4(0xc3)]();for(let _0x2891a7 in _0x2fa8e2){let _0x552e85=_0x2fa8e2[_0x2891a7];_0x2fa8e2[_0x2891a7]=_0x552e85[_0x2317f4(0xa5)]([_0x552e85[0x0]]);}return new MultiLineString(_0x2fa8e2);}else return new LineString(_0x4169b8[_0x2317f4(0xc3)]()[_0x2317f4(0xa5)]([_0x4169b8[_0x2317f4(0xa2)]()]));}}
|
package/style/StyleManager.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x53525d,_0x39cd1e){const _0x38a0f3=a66_0x5bab,_0x252fd8=_0x53525d();while(!![]){try{const _0x214347=-parseInt(_0x38a0f3(0x130))/0x1*(parseInt(_0x38a0f3(0x138))/0x2)+parseInt(_0x38a0f3(0x128))/0x3*(parseInt(_0x38a0f3(0x12f))/0x4)+-parseInt(_0x38a0f3(0x122))/0x5*(parseInt(_0x38a0f3(0x132))/0x6)+-parseInt(_0x38a0f3(0x137))/0x7*(parseInt(_0x38a0f3(0x136))/0x8)+-parseInt(_0x38a0f3(0x139))/0x9+-parseInt(_0x38a0f3(0x12c))/0xa+parseInt(_0x38a0f3(0x12a))/0xb*(parseInt(_0x38a0f3(0x124))/0xc);if(_0x214347===_0x39cd1e)break;else _0x252fd8['push'](_0x252fd8['shift']());}catch(_0x3afac6){_0x252fd8['push'](_0x252fd8['shift']());}}}(a66_0x68cf,0xb5890));function a66_0x68cf(){const _0xd2ae10=['rgba(0,\x20255,0,\x200)','11865172HDxlbp','rgba(121,\x20243,\x20238,\x200.3)','14157360TLCLqv','setFill','rgba(121,\x20243,\x20238,\x201)','606444CdEAdY','3YAhujc','fill','3482994UNFnEE','outlineOpacity','text','color','8FgXNCP','8910293PlOfOE','735292TttqLb','6592077CMtACw','rgba(0,\x20255,0,\x201)','5oDEdne','rgba(121,\x20243,\x20238,\x200)','60lmViSb','opacity','outlineWidth','outlineColor','9mgkZpv'];a66_0x68cf=function(){return _0xd2ae10;};return a66_0x68cf();}import a66_0x288199 from'ol/style/Circle';import a66_0xa77f6a from'ol/style/Fill';function a66_0x5bab(_0x1388fc,_0x4becfc){const _0x68cf7c=a66_0x68cf();return a66_0x5bab=function(_0x5bab13,_0x98b6a2){_0x5bab13=_0x5bab13-0x122;let _0x480aea=_0x68cf7c[_0x5bab13];return _0x480aea;},a66_0x5bab(_0x1388fc,_0x4becfc);}import a66_0x23dac4 from'ol/style/Stroke';import a66_0x270db0 from'ol/style/Style';import{createTextStyle,getColor}from'./common';export function getSelectPointStyle(){const _0x21ee3c=a66_0x5bab;return new a66_0x270db0({'image':new a66_0x288199({'radius':0x5,'fill':new a66_0xa77f6a({'color':_0x21ee3c(0x12e)}),'stroke':new a66_0x23dac4({'color':_0x21ee3c(0x12e),'width':0x1})})});}export function getSelectCancePointStyle(){const _0x406453=a66_0x5bab;return new a66_0x270db0({'image':new a66_0x288199({'radius':0x5,'fill':new a66_0xa77f6a({'color':_0x406453(0x123)}),'stroke':new a66_0x23dac4({'color':_0x406453(0x12e),'width':0x1})})});}export function getSelectLineStyle(){const _0x1fd92c=a66_0x5bab;return new a66_0x270db0({'stroke':new a66_0x23dac4({'color':_0x1fd92c(0x12e),'width':0x2})});}export function getSelectCancelLineStyle(){const _0x498e46=a66_0x5bab;return new a66_0x270db0({'stroke':new a66_0x23dac4({'color':_0x498e46(0x13a),'width':0x2})});}export function getSelectPolygonStyle(){const _0x1e0c40=a66_0x5bab;return new a66_0x270db0({'stroke':new a66_0x23dac4({'color':_0x1e0c40(0x12e),'width':0x2}),'fill':new a66_0xa77f6a({'color':_0x1e0c40(0x12b)})});}export function getSelectCancelPolygonStyle(){const _0x26bc87=a66_0x5bab;return new a66_0x270db0({'stroke':new a66_0x23dac4({'color':'rgba(0,\x20255,0,\x201)','width':0x2}),'fill':new a66_0xa77f6a({'color':_0x26bc87(0x129)})});}export function getStyle(_0xf37bfa){const _0x299f91=a66_0x5bab;if(_0xf37bfa){if(_0xf37bfa[_0x299f91(0x134)])return new a66_0x270db0({'text':createTextStyle(_0xf37bfa,_0xf37bfa[_0x299f91(0x134)]),'zIndex':0x1});else{const _0x5295d4=new a66_0x270db0();return _0xf37bfa[_0x299f91(0x127)]&&_0x5295d4['setStroke'](new a66_0x23dac4({'color':getColor(_0xf37bfa[_0x299f91(0x127)],_0xf37bfa[_0x299f91(0x133)]),'width':_0xf37bfa[_0x299f91(0x126)]||0x1})),_0xf37bfa[_0x299f91(0x135)]&&_0x5295d4[_0x299f91(0x12d)](new a66_0xa77f6a({'color':getColor(_0xf37bfa[_0x299f91(0x131)],_0xf37bfa[_0x299f91(0x125)])})),_0x5295d4;}}return new a66_0x270db0({'stroke':new a66_0x23dac4({'color':_0x299f91(0x12e),'width':0x2}),'fill':new a66_0xa77f6a({'color':_0x299f91(0x12b)})});}
|
package/style/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a62_0x5c79(){const _0x36d2f7=['LOADED','target','fill','italic','2vIqRKk','47198mVPPOv','opacity','border','offsetY','size','getResolutionForZoom','markerColor','bold','weight','border_width','font','\x20normal\x20','948924TGPsuf','family','#2A2A2A','border_color','color','getImageState','px\x20','ERROR','distanceDisplayNear','1234740Gakwvk','getImage','listenImageChange','outlineWidth','2711187JJtvYU','1635785UzqNOd','getView','load','textBaseline','IDLE','hexa','textAlign','pow','51006fjTxvc','175320TTHGVV','image','7cYoSVo','offsetX'];a62_0x5c79=function(){return _0x36d2f7;};return a62_0x5c79();}(function(_0x11b043,_0x457f41){const _0x5e25aa=a62_0x3a3c,_0x47cbb6=_0x11b043();while(!![]){try{const _0x1d4c62=-parseInt(_0x5e25aa(0x1bf))/0x1*(-parseInt(_0x5e25aa(0x1c0))/0x2)+-parseInt(_0x5e25aa(0x1e2))/0x3+-parseInt(_0x5e25aa(0x1d5))/0x4+parseInt(_0x5e25aa(0x1da))/0x5+-parseInt(_0x5e25aa(0x1cc))/0x6+parseInt(_0x5e25aa(0x1e5))/0x7*(parseInt(_0x5e25aa(0x1e3))/0x8)+parseInt(_0x5e25aa(0x1d9))/0x9;if(_0x1d4c62===_0x457f41)break;else _0x47cbb6['push'](_0x47cbb6['shift']());}catch(_0x42cfd5){_0x47cbb6['push'](_0x47cbb6['shift']());}}}(a62_0x5c79,0x342a8));import a62_0x2dfe31 from'color';import{Fill,Icon,Stroke,Text}from'ol/style';import a62_0x152bba from'../utils/plug/canvas/PinIcon';import a62_0x2275fa from'ol/ImageState';export function isShowStyle(_0x1b4eb2,_0x4e76f4,_0x1daf6c){const _0x5dd236=a62_0x3a3c;let _0x18be32=!![];if(_0x4e76f4==undefined||_0x1daf6c==undefined)return _0x18be32;if(_0x1b4eb2&&typeof _0x1b4eb2['distanceDisplayFar']!=undefined&&typeof _0x1b4eb2[_0x5dd236(0x1d4)]!=undefined){if(_0x1b4eb2['distanceDisplayFar']&&_0x1daf6c){_0x18be32=![];let _0x5d6fed=getLevel(_0x1b4eb2['distanceDisplayFar']),_0x27d16d=_0x1daf6c[_0x5dd236(0x1db)]()[_0x5dd236(0x1c5)](_0x5d6fed);_0x4e76f4<_0x27d16d&&(_0x18be32=!![]);}if(_0x18be32&&_0x1b4eb2[_0x5dd236(0x1d4)]&&_0x1daf6c){_0x18be32=![];let _0xbf899e=getLevel(_0x1b4eb2['distanceDisplayNear']),_0x471ae2=_0x1daf6c['getView']()[_0x5dd236(0x1c5)](_0xbf899e);_0x4e76f4>_0x471ae2&&(_0x18be32=!![]);}}return _0x18be32;}export function getLevel(_0x3d4c77){const _0x5d229a=a62_0x3a3c,_0x98f87c=3252.745,_0x75524=0.0009198301,_0x2ce6d6=52977.61,_0x43c476=-3228.107;return _0x43c476+(_0x98f87c-_0x43c476)/(0x1+Math[_0x5d229a(0x1e1)](_0x3d4c77/_0x2ce6d6,_0x75524));}export function toRadians(_0x4924c6){if(_0x4924c6)return-(_0x4924c6*Math['PI'])/0xb4;return 0x0;}export function createTextStyle(_0x165904,_0x2fa0fd,_0x5809e7,_0x21f603){const _0x1e677f=a62_0x3a3c;if(_0x165904){let _0x37abc2=isShowStyle(_0x165904,_0x5809e7,_0x21f603);if(_0x37abc2===![])return undefined;else{const _0x485257=_0x165904[_0x1e677f(0x1ca)],_0x29f007=(_0x485257===null||_0x485257===void 0x0?void 0x0:_0x485257[_0x1e677f(0x1be)])?_0x1e677f(0x1be):'normal',_0x146686=(_0x485257===null||_0x485257===void 0x0?void 0x0:_0x485257[_0x1e677f(0x1c8)])?_0x1e677f(0x1c7):'normal',_0x46df5b=(_0x485257===null||_0x485257===void 0x0?void 0x0:_0x485257[_0x1e677f(0x1c4)])||'25',_0x118ed9=(_0x485257===null||_0x485257===void 0x0?void 0x0:_0x485257[_0x1e677f(0x1cd)])||'楷体';let _0x35565e=_0x29f007+_0x1e677f(0x1cb)+_0x146686+'\x20'+_0x46df5b+_0x1e677f(0x1d2)+_0x118ed9,_0x1b0bfc=(_0x485257===null||_0x485257===void 0x0?void 0x0:_0x485257[_0x1e677f(0x1e6)])||0x0,_0x4e4f5d=(_0x485257===null||_0x485257===void 0x0?void 0x0:_0x485257[_0x1e677f(0x1c3)])||0x0,_0x4f84a6=(_0x485257===null||_0x485257===void 0x0?void 0x0:_0x485257[_0x1e677f(0x1dd)])||'middle',_0x1e9dd2=(_0x485257===null||_0x485257===void 0x0?void 0x0:_0x485257[_0x1e677f(0x1e0)])||'center';const _0x345194=_0x165904[_0x1e677f(0x1c1)]||0x1;return new Text({'text':_0x2fa0fd,'font':_0x35565e,'offsetX':_0x1b0bfc,'offsetY':_0x4e4f5d,'textAlign':_0x1e9dd2,'textBaseline':_0x4f84a6,'fill':new Fill({'color':getColor(_0x165904[_0x1e677f(0x1d0)],_0x345194)}),'stroke':_getLabelStroke(_0x165904),'backgroundFill':_0x165904['fill']?new Fill({'color':getColor(_0x165904[_0x1e677f(0x1bd)]||_0x1e677f(0x1ce),_0x345194)}):undefined});}}else return undefined;}export function getColor(_0x4ee71d,_0x1b07dc){const _0x454873=a62_0x3a3c;return a62_0x2dfe31(_0x4ee71d)['alpha'](_0x1b07dc!=undefined?_0x1b07dc:0x1)[_0x454873(0x1df)]();}function _getLabelStroke(_0x7fa8b6){const _0x4f6935=a62_0x3a3c;if(_0x7fa8b6[_0x4f6935(0x1c2)])return new Stroke({'color':getColor(_0x7fa8b6[_0x4f6935(0x1cf)],_0x7fa8b6['opacity']),'width':_0x7fa8b6[_0x4f6935(0x1c9)]});if(_0x7fa8b6['outline'])return new Stroke({'color':getColor(_0x7fa8b6['outlineColor'],_0x7fa8b6['opacity']),'width':_0x7fa8b6[_0x4f6935(0x1d8)]});}function a62_0x3a3c(_0x47ee43,_0x1be733){const _0x5c7985=a62_0x5c79();return a62_0x3a3c=function(_0x3a3c12,_0x397332){_0x3a3c12=_0x3a3c12-0x1bc;let _0x43646c=_0x5c7985[_0x3a3c12];return _0x43646c;},a62_0x3a3c(_0x47ee43,_0x1be733);}export function preLoadImageRenderFunction(_0x158f26,_0x4be1f5,_0xfafea5,_0x23833b,_0x518f75){const _0x3b095b=a62_0x3a3c;let _0x523fc4;_0x158f26[_0x3b095b(0x1c6)]?_0x523fc4=new a62_0x152bba(_0x158f26):_0x523fc4=new Icon({'src':_0x158f26[_0x3b095b(0x1e4)]});let _0x779a8d=_0x523fc4[_0x3b095b(0x1d1)]();_0x779a8d===a62_0x2275fa[_0x3b095b(0x1e7)]||_0x779a8d===a62_0x2275fa[_0x3b095b(0x1d3)]?_0x518f75(_0x158f26,_0x4be1f5,_0xfafea5,_0x23833b,_0x523fc4[_0x3b095b(0x1d6)](0x60)):(_0x779a8d===a62_0x2275fa[_0x3b095b(0x1de)]&&_0x523fc4[_0x3b095b(0x1dc)](),_0x523fc4[_0x3b095b(0x1d7)](_0x323e90=>{const _0x415d64=_0x3b095b;_0x779a8d=_0x323e90[_0x415d64(0x1bc)]['getImageState'](),(_0x779a8d===a62_0x2275fa[_0x415d64(0x1e7)]||_0x779a8d===a62_0x2275fa[_0x415d64(0x1d3)])&&_0x518f75(_0x158f26,_0x4be1f5,_0xfafea5,_0x23833b,_0x523fc4[_0x415d64(0x1d6)](0x60));}));}
|
package/utils/ArrayUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xebadfa,_0x4bbc65){const _0x5e4eda=a67_0x5d97,_0x20ad6d=_0xebadfa();while(!![]){try{const _0x313ed0=-parseInt(_0x5e4eda(0x14e))/0x1+-parseInt(_0x5e4eda(0x14a))/0x2*(parseInt(_0x5e4eda(0x14b))/0x3)+-parseInt(_0x5e4eda(0x14d))/0x4+parseInt(_0x5e4eda(0x147))/0x5*(parseInt(_0x5e4eda(0x154))/0x6)+parseInt(_0x5e4eda(0x14f))/0x7+-parseInt(_0x5e4eda(0x146))/0x8*(parseInt(_0x5e4eda(0x150))/0x9)+parseInt(_0x5e4eda(0x145))/0xa;if(_0x313ed0===_0x4bbc65)break;else _0x20ad6d['push'](_0x20ad6d['shift']());}catch(_0x5e8907){_0x20ad6d['push'](_0x20ad6d['shift']());}}}(a67_0x1e93,0x81f1c));export function getDeepth(_0x1163ce){function _0x13e35b(_0x42308c,_0x3eb170){const _0x5427df=a67_0x5d97;return _0x42308c[_0x5427df(0x148)](function(_0x3d9434,_0x3994c1){const _0x1a1003=_0x5427df;var _0xc9ed6b;return Array[_0x1a1003(0x14c)](_0x3994c1)&&(_0xc9ed6b=_0x13e35b(_0x3994c1,_0x3eb170+0x1)),_0xc9ed6b>_0x3d9434?_0xc9ed6b:_0x3d9434;},_0x3eb170);}return _0x13e35b(_0x1163ce,0x1);}function a67_0x5d97(_0x1b0377,_0x37cacc){const _0x1e9308=a67_0x1e93();return a67_0x5d97=function(_0x5d97c5,_0x5cb08a){_0x5d97c5=_0x5d97c5-0x145;let _0xb8791b=_0x1e9308[_0x5d97c5];return _0xb8791b;},a67_0x5d97(_0x1b0377,_0x37cacc);}export function compareArray(_0x45e0f9,_0x548161){const _0x438caa=a67_0x5d97;if(_0x45e0f9[_0x438caa(0x152)]!==_0x548161[_0x438caa(0x152)])return![];const _0x3bf026=_0x45e0f9[_0x438caa(0x152)];for(let _0x315988=0x0;_0x315988<_0x3bf026;_0x315988++){if(!compare(_0x45e0f9[_0x315988],_0x548161[_0x315988]))return![];}return!![];}function a67_0x1e93(){const _0x3dddc6=['length','every','202260aqMcLi','16983570itXRUx','1419208ZrmhOu','90amRvQl','reduce','object','2FhsLSl','2339979kuKVfu','isArray','349472dMcFyp','861507lWzutd','933688YANmyv','9fSLDsO','keys'];a67_0x1e93=function(){return _0x3dddc6;};return a67_0x1e93();}export function compare(_0x4105c9,_0x146df5){const _0x4ca1da=a67_0x5d97;if(_0x4105c9===_0x146df5)return!![];if(typeof _0x4105c9!==typeof _0x146df5||_0x4105c9===null||_0x146df5===null)return![];if(Array['isArray'](_0x4105c9)){if(!Array[_0x4ca1da(0x14c)](_0x146df5))return![];return compareArray(_0x4105c9,_0x146df5);}if(typeof _0x4105c9===_0x4ca1da(0x149))return compareObject(_0x4105c9,_0x146df5);return![];}export function compareObject(_0x13f053,_0x297507){const _0x49a694=a67_0x5d97,_0x7ff855=Object[_0x49a694(0x151)](_0x13f053),_0x35135c=Object[_0x49a694(0x151)](_0x297507);if(_0x7ff855['length']!==_0x35135c[_0x49a694(0x152)])return![];return _0x7ff855[_0x49a694(0x153)](_0x206997=>{if(!compare(_0x13f053[_0x206997],_0x297507[_0x206997]))return![];return!![];});}
|
package/utils/AxiosUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a68_0x49b3(_0x7152fb,_0x50eceb){const _0x486705=a68_0x4867();return a68_0x49b3=function(_0x49b3a5,_0x399728){_0x49b3a5=_0x49b3a5-0x13c;let _0x3e524a=_0x486705[_0x49b3a5];return _0x3e524a;},a68_0x49b3(_0x7152fb,_0x50eceb);}function a68_0x4867(){const _0x45f083=['1233jQxKBh','hasOwnProperty','1197320RUIAib','constructor','2001835mRCIol','create','19192IMFzvm','20vygDkY','stringify','1QVcLIQ','1391262LkKSQl','61122DYveUu','append','538929jIzMAk','387090xdOHyw','567LfPTMn','get'];a68_0x4867=function(){return _0x45f083;};return a68_0x4867();}const a68_0x4c231f=a68_0x49b3;(function(_0x135a3d,_0x3b44d9){const _0x27fef1=a68_0x49b3,_0x4d91ba=_0x135a3d();while(!![]){try{const _0x17df5f=-parseInt(_0x27fef1(0x144))/0x1*(-parseInt(_0x27fef1(0x145))/0x2)+parseInt(_0x27fef1(0x148))/0x3*(parseInt(_0x27fef1(0x142))/0x4)+parseInt(_0x27fef1(0x149))/0x5+parseInt(_0x27fef1(0x146))/0x6*(-parseInt(_0x27fef1(0x14a))/0x7)+parseInt(_0x27fef1(0x141))/0x8*(-parseInt(_0x27fef1(0x14c))/0x9)+parseInt(_0x27fef1(0x13d))/0xa+-parseInt(_0x27fef1(0x13f))/0xb;if(_0x17df5f===_0x3b44d9)break;else _0x4d91ba['push'](_0x4d91ba['shift']());}catch(_0x55ccf6){_0x4d91ba['push'](_0x4d91ba['shift']());}}}(a68_0x4867,0x6f221));import a68_0x3dd3d4 from'axios';import a68_0x1e9a3a from'jquery';const request=a68_0x3dd3d4[a68_0x4c231f(0x140)]({'timeout':0xb4*0x3e8});export function jsonp(_0x32fa3a){return new Promise((_0x30024c,_0x703d49)=>{const _0x2fd1aa=a68_0x49b3;a68_0x1e9a3a['ajax']({'url':_0x32fa3a,'type':_0x2fd1aa(0x14b),'dataType':'jsonp','success':_0x4d2341=>{_0x30024c(_0x4d2341);},'error':_0x5b51f4=>{_0x703d49(_0x5b51f4);}});});}export function stringify(_0x102a9){const _0x4b6647=a68_0x4c231f,_0x2171a7=new FormData();for(const _0x4a11f3 in _0x102a9){if(_0x102a9[_0x4b6647(0x13c)](_0x4a11f3)){if(_0x102a9[_0x4a11f3]){if(_0x102a9[_0x4a11f3][_0x4b6647(0x13e)]===Array)_0x102a9[_0x4a11f3][0x0]?_0x102a9[_0x4a11f3][0x0][_0x4b6647(0x13e)]===Object?_0x2171a7[_0x4b6647(0x147)](_0x4a11f3,JSON[_0x4b6647(0x143)](_0x102a9[_0x4a11f3])):_0x102a9[_0x4a11f3]['forEach']((_0x22a229,_0x58a537)=>{_0x2171a7['append'](_0x4a11f3+('['+_0x58a537+']'),_0x22a229);}):_0x2171a7[_0x4b6647(0x147)](_0x4a11f3+'[]','');else _0x102a9[_0x4a11f3][_0x4b6647(0x13e)]===Object?_0x2171a7[_0x4b6647(0x147)](_0x4a11f3,JSON[_0x4b6647(0x143)](_0x102a9[_0x4a11f3])):_0x2171a7[_0x4b6647(0x147)](_0x4a11f3,_0x102a9[_0x4a11f3]);}else _0x102a9[_0x4a11f3]===0x0?_0x2171a7[_0x4b6647(0x147)](_0x4a11f3,'0'):_0x2171a7[_0x4b6647(0x147)](_0x4a11f3,'');}}return _0x2171a7;}export default request;
|
package/utils/EsriUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a69_0x4b90(_0x2ba560,_0x3aab7e){const _0x523542=a69_0x5235();return a69_0x4b90=function(_0x4b9052,_0x28cbdf){_0x4b9052=_0x4b9052-0x10c;let _0x447086=_0x523542[_0x4b9052];return _0x447086;},a69_0x4b90(_0x2ba560,_0x3aab7e);}(function(_0x465b7a,_0x5c2ad4){const _0x19c9b6=a69_0x4b90,_0xe6e4ed=_0x465b7a();while(!![]){try{const _0x53c635=parseInt(_0x19c9b6(0x11b))/0x1*(parseInt(_0x19c9b6(0x116))/0x2)+-parseInt(_0x19c9b6(0x117))/0x3*(-parseInt(_0x19c9b6(0x10d))/0x4)+-parseInt(_0x19c9b6(0x10f))/0x5+parseInt(_0x19c9b6(0x113))/0x6*(-parseInt(_0x19c9b6(0x115))/0x7)+-parseInt(_0x19c9b6(0x118))/0x8*(parseInt(_0x19c9b6(0x11a))/0x9)+parseInt(_0x19c9b6(0x112))/0xa*(-parseInt(_0x19c9b6(0x10e))/0xb)+parseInt(_0x19c9b6(0x119))/0xc;if(_0x53c635===_0x5c2ad4)break;else _0xe6e4ed['push'](_0xe6e4ed['shift']());}catch(_0x2faeff){_0xe6e4ed['push'](_0xe6e4ed['shift']());}}}(a69_0x5235,0xbb5c8));function a69_0x5235(){const _0x381c15=['EPSG:','7QvAcXw','2NNJHGH','9IIvrAz','2944GwOEyW','24065592rzfVuR','27468VzwkQn','1201947YFDzNY','indexOf','1517420ZndZNd','33USdEcy','2768715yytIAI','toUpperCase','replace','3665170BDeVvF','4809696UeEUZe'];a69_0x5235=function(){return _0x381c15;};return a69_0x5235();}export function getEsriSpatialReference(_0x270c2e){const _0x49e646=a69_0x4b90;let _0xf8197e;if(_0x270c2e){let _0x21ffe5=_0x270c2e[_0x49e646(0x110)]();_0x21ffe5[_0x49e646(0x10c)](_0x49e646(0x114))===0x0?_0xf8197e=_0x270c2e[_0x49e646(0x111)](_0x49e646(0x114),''):_0xf8197e=_0x270c2e;}return _0xf8197e;}
|
package/utils/GeometryUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x142c02=a72_0x4301;(function(_0x7425f3,_0x513572){const _0x29bdc0=a72_0x4301,_0x47dcc5=_0x7425f3();while(!![]){try{const _0x56b469=parseInt(_0x29bdc0(0xe8))/0x1*(-parseInt(_0x29bdc0(0xf7))/0x2)+-parseInt(_0x29bdc0(0xe4))/0x3+-parseInt(_0x29bdc0(0xec))/0x4+-parseInt(_0x29bdc0(0xf9))/0x5*(parseInt(_0x29bdc0(0xfa))/0x6)+-parseInt(_0x29bdc0(0xda))/0x7*(-parseInt(_0x29bdc0(0xf1))/0x8)+-parseInt(_0x29bdc0(0xd3))/0x9*(parseInt(_0x29bdc0(0xe2))/0xa)+parseInt(_0x29bdc0(0xd5))/0xb;if(_0x56b469===_0x513572)break;else _0x47dcc5['push'](_0x47dcc5['shift']());}catch(_0x522178){_0x47dcc5['push'](_0x47dcc5['shift']());}}}(a72_0x3756,0x77314));import a72_0x12eac4 from'ol/proj/Projection';function a72_0x4301(_0x2fdbb5,_0x4a66f8){const _0x3756ca=a72_0x3756();return a72_0x4301=function(_0x4301f9,_0x19b676){_0x4301f9=_0x4301f9-0xd3;let _0x4cbc42=_0x3756ca[_0x4301f9];return _0x4cbc42;},a72_0x4301(_0x2fdbb5,_0x4a66f8);}import{distance as a72_0x4bf3fd}from'ol/coordinate';import{getGeoProjection,isSpheroid,registerProj}from'./RegisterProjUtil';import{getArea as a72_0x1f6ec7}from'ol/sphere';import a72_0x35bea0 from'jsts/org/locationtech/jts/operation/buffer/BufferOp.js';import a72_0xcc87ad from'jsts/org/locationtech/jts/operation/relate/RelateOp.js';import a72_0x1de867 from'jsts/org/locationtech/jts/operation/overlay/OverlayOp';function a72_0x3756(){const _0x109dfe=['write','distance','contains','419317Otzrxb','crosses','clone','array','639584eTZvdZ','add','getArea','getGeometryType','getCoordinateFromPixel','8nvYBAa','readGeometry','getPolygons','getPixelFromCoordinate','inject','_geometries','2vuOzgZ','_holes','20IGLUqG','1020366GDMcDT','length','transform','9uaZBzO','intersects','28285202WpeuaK','difference','writeGeometry','getCoordinates','push','2224047kholtN','无法识别的数据类型','forEach','union','MultiPolygon','read','bufferOp','getExteriorRing','4412420STuXgj','Polygon','2100576CaoiDf'];a72_0x3756=function(){return _0x109dfe;};return a72_0x3756();}import a72_0x63048f from'jsts/org/locationtech/jts/io/OL3Parser.js';import a72_0x599399 from'jsts/org/locationtech/jts/operation/polygonize/Polygonizer.js';import a72_0x117425 from'jsts/org/locationtech/jts/operation/distance/DistanceOp';import a72_0x1eeae9 from'ol/format/GeoJSON';import{LineString,MultiLineString,MultiPoint,MultiPolygon,Point,LinearRing,Polygon,GeometryCollection}from'ol/geom.js';import a72_0x9eaef2 from'ol/format/WKT';import a72_0x463bca from'ol/format/EsriJSON';const _parser=new a72_0x63048f(undefined,undefined);_parser[a72_0x142c02(0xf5)](Point,LineString,LinearRing,Polygon,MultiPoint,MultiLineString,MultiPolygon,GeometryCollection);export function getArea(_0x3003b7,_0x3f41b1,_0x21b0d1=![]){const _0x150f47=a72_0x142c02;if(!_0x3003b7)return 0x0;const _0x23abc9=isSpheroid(_0x3f41b1);if(_0x21b0d1)return a72_0x1f6ec7(_0x3003b7,{'projection':_0x3f41b1});else{if(_0x23abc9){const _0x320607=getGeoProjection(_0x3003b7,_0x3f41b1);return _0x3003b7[_0x150f47(0xea)]()[_0x150f47(0xfc)](_0x3f41b1,_0x320607)[_0x150f47(0xee)]();}return _0x3003b7[_0x150f47(0xee)]();}}export function bufferOp(_0x3e8d44,_0x583c5c){const _0x35c00c=a72_0x142c02,_0x5cd723=_parser['read'](_0x3e8d44),_0x3f31f5=a72_0x35bea0[_0x35c00c(0xe0)](_0x5cd723,_0x583c5c);return _parser['write'](_0x3f31f5);}export function bufferPixel(_0x2da444,_0x1a549c,_0x5be303){const _0x3a6de3=a72_0x142c02,_0x90ba84=_0x5be303[_0x3a6de3(0xf4)](_0x2da444['getCoordinates']()),_0x429ac1=_0x5be303[_0x3a6de3(0xf0)]([_0x90ba84[0x0]+_0x1a549c,_0x90ba84[0x1]]),_0x2a5e4d=a72_0x4bf3fd(_0x2da444[_0x3a6de3(0xd8)](),_0x429ac1),_0x7f654d=bufferOp(_0x2da444,_0x2a5e4d);return _0x7f654d;}export function contains(_0xf097e1,_0x57d23c){const _0x65c614=a72_0x142c02,_0x481318=_parser[_0x65c614(0xdf)](_0xf097e1),_0x393039=_parser['read'](_0x57d23c);return a72_0xcc87ad[_0x65c614(0xe7)](_0x481318,_0x393039);}export function crosses(_0x49b25a,_0x305875){const _0x4b14e8=a72_0x142c02,_0x993a89=_parser[_0x4b14e8(0xdf)](_0x49b25a),_0x4ea6ab=_parser['read'](_0x305875);return a72_0xcc87ad[_0x4b14e8(0xe9)](_0x993a89,_0x4ea6ab);}export function intersects(_0x389ea9,_0x478c7f){const _0x1eb2b5=a72_0x142c02,_0x61e0fa=_parser[_0x1eb2b5(0xdf)](_0x389ea9),_0x3398de=_parser[_0x1eb2b5(0xdf)](_0x478c7f);return a72_0xcc87ad[_0x1eb2b5(0xd4)](_0x61e0fa,_0x3398de);}export function intersection(_0x154c6a,_0x38241f){const _0x531b38=a72_0x142c02,_0x501abd=_parser[_0x531b38(0xdf)](_0x154c6a),_0x210f31=_parser[_0x531b38(0xdf)](_0x38241f);return _parser[_0x531b38(0xe5)](a72_0x1de867['intersection'](_0x501abd,_0x210f31));}export function union(_0x186177,_0x3c1f13){const _0x173e80=a72_0x142c02,_0x40963e=_parser[_0x173e80(0xdf)](_0x186177),_0x21761c=_parser[_0x173e80(0xdf)](_0x3c1f13);return _parser[_0x173e80(0xe5)](a72_0x1de867[_0x173e80(0xdd)](_0x40963e,_0x21761c));}export function difference(_0x5b0b6b,_0x146016){const _0x2ae52b=a72_0x142c02,_0x304bab=_parser[_0x2ae52b(0xdf)](_0x5b0b6b),_0x554dc8=_parser[_0x2ae52b(0xdf)](_0x146016);return _parser[_0x2ae52b(0xe5)](a72_0x1de867[_0x2ae52b(0xd6)](_0x304bab,_0x554dc8));}export function distance(_0xe6cee3,_0x183fbc){const _0x165c9a=a72_0x142c02,_0x3588f3=_parser['read'](_0xe6cee3),_0x166d03=_parser[_0x165c9a(0xdf)](_0x183fbc);return _parser[_0x165c9a(0xe5)](a72_0x117425[_0x165c9a(0xe6)](_0x3588f3,_0x166d03));}export function jstlSplit(_0x2b0866,_0x54087f){const _0x46eafd=a72_0x142c02,_0x5f57db=_parser[_0x46eafd(0xdf)](_0x2b0866),_0xd425a=_parser[_0x46eafd(0xdf)](_0x54087f),_0x458998=_0x5f57db[_0x46eafd(0xef)]();let _0x5663ad=[];function _0x453c20(_0x1fb0b6,_0x51eaca){const _0x357466=_0x46eafd;let _0x209bc7=_0x1fb0b6[_0x357466(0xf8)],_0x638e1e=_0x1fb0b6[_0x357466(0xe1)]()[_0x357466(0xdd)](_0x51eaca),_0x483a88=new a72_0x599399();_0x483a88[_0x357466(0xed)](_0x638e1e);let _0x218552=_0x483a88[_0x357466(0xf3)]();_0x218552[_0x357466(0xeb)][_0x357466(0xfb)]==0x2&&_0x218552[_0x357466(0xeb)][_0x357466(0xdc)](_0x55dc5d=>{const _0x8f666c=_0x357466;_0x209bc7[_0x8f666c(0xdc)](_0x1c09c1=>{const _0x4fcc23=_0x8f666c;let _0x1ceadc=[];for(let _0x4f9d93 in _0x1c09c1['getCoordinates']()){_0x1ceadc[_0x4fcc23(0xd9)]([_0x1c09c1['getCoordinates']()[_0x4f9d93]['x'],_0x1c09c1[_0x4fcc23(0xd8)]()[_0x4f9d93]['y']]);}_0x1c09c1=_parser[_0x4fcc23(0xdf)]({'coordinates':[_0x1ceadc],'type':_0x4fcc23(0xe3)}),_0x55dc5d=_0x55dc5d[_0x4fcc23(0xd6)](_0x1c09c1);}),_0x5663ad[_0x8f666c(0xd9)](_parser['write'](_0x55dc5d));});}if(_0x458998===_0x46eafd(0xe3))_0x453c20(_0x5f57db,_0xd425a);else{if(_0x458998===_0x46eafd(0xde))_0x5f57db[_0x46eafd(0xf6)][_0x46eafd(0xdc)]((_0x25994c,_0xbf1a43)=>{_0x453c20(_0x25994c,_0xd425a);});else throw new Error(_0x46eafd(0xdb));}return _0x5663ad;}export function fromWKT(_0x2f5a97,_0xfce6d9,_0x565f0f){const _0x5f51ff=a72_0x142c02,_0x242690=new a72_0x9eaef2();_0xfce6d9&®isterProj(_0xfce6d9);_0x565f0f&®isterProj(_0x565f0f);const _0x2bddb8=_0x242690[_0x5f51ff(0xf2)](_0x2f5a97);return _0xfce6d9&&_0x565f0f?_0x2bddb8[_0x5f51ff(0xfc)](new a72_0x12eac4({'code':_0xfce6d9}),new a72_0x12eac4({'code':_0x565f0f})):_0x2bddb8;}export function fromWKTs(_0x318d1b,_0x2cfedd,_0x4d72bb){const _0x133995=a72_0x142c02,_0x23fb2f=new a72_0x9eaef2();let _0x25e4bc=[];_0x2cfedd&®isterProj(_0x2cfedd);_0x4d72bb&®isterProj(_0x4d72bb);let _0x13605c,_0x4a2506;_0x2cfedd&&_0x4d72bb&&(_0x13605c=new a72_0x12eac4({'code':_0x2cfedd}),_0x4a2506=new a72_0x12eac4({'code':_0x4d72bb}));for(let _0x314a59=0x0;_0x314a59<_0x318d1b[_0x133995(0xfb)];_0x314a59++){_0x13605c&&_0x4a2506?_0x25e4bc[_0x133995(0xd9)](_0x23fb2f['readGeometry'](_0x318d1b[_0x314a59])[_0x133995(0xfc)](_0x13605c,_0x4a2506)):_0x25e4bc[_0x133995(0xd9)](_0x23fb2f[_0x133995(0xf2)](_0x318d1b[_0x314a59]));}return _0x25e4bc;}export function toWKT(_0x40b041){const _0x443520=a72_0x142c02,_0x3e1b60=new a72_0x9eaef2();return _0x3e1b60[_0x443520(0xd7)](_0x40b041);}export function toGeoJSON(_0x159915){const _0x39b0fb=a72_0x142c02,_0x1e511c=new a72_0x1eeae9();return _0x1e511c[_0x39b0fb(0xd7)](_0x159915);}export function fromGeoJSON(_0x2a15be){const _0x29ae2f=a72_0x142c02,_0x2f7798=new a72_0x1eeae9();return _0x2f7798[_0x29ae2f(0xf2)](_0x2a15be);}export function toEsriJSON(_0x11acf2){const _0x139e71=a72_0x142c02,_0x1fd758=new a72_0x463bca();return _0x1fd758[_0x139e71(0xd7)](_0x11acf2);}export function fromEsriJSON(_0x2a9495){const _0x5e8b5a=new a72_0x463bca();return _0x5e8b5a['readGeometry'](_0x2a9495);}export function expandExtent(_0x189b76,_0x4ef1e1){const _0x2a4c8b=_0x189b76[0x0],_0x2b9de2=_0x189b76[0x1],_0x3723cc=_0x189b76[0x2],_0x608e39=_0x189b76[0x3],_0xb7285b=(_0x2a4c8b+_0x3723cc)/0x2,_0xc1c004=(_0x2b9de2+_0x608e39)/0x2,_0x4c52e7=_0x3723cc-_0x2a4c8b,_0x4ee1cd=_0x608e39-_0x2b9de2,_0x32e6b7=_0x4c52e7*_0x4ef1e1,_0xe08fa4=_0x4ee1cd*_0x4ef1e1,_0x1df402=_0xb7285b-_0x32e6b7/0x2,_0x44e21d=_0xb7285b+_0x32e6b7/0x2,_0x469940=_0xc1c004-_0xe08fa4/0x2,_0x411446=_0xc1c004+_0xe08fa4/0x2;return[_0x1df402,_0x469940,_0x44e21d,_0x411446];}
|
package/utils/LayerUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4fb06a,_0x16e34e){const _0x5d3e35=a73_0x30de,_0x321f75=_0x4fb06a();while(!![]){try{const _0x4ef128=-parseInt(_0x5d3e35(0x14d))/0x1*(parseInt(_0x5d3e35(0x144))/0x2)+-parseInt(_0x5d3e35(0x146))/0x3*(-parseInt(_0x5d3e35(0x149))/0x4)+-parseInt(_0x5d3e35(0x13b))/0x5*(-parseInt(_0x5d3e35(0x15b))/0x6)+-parseInt(_0x5d3e35(0x15a))/0x7+parseInt(_0x5d3e35(0x14f))/0x8+parseInt(_0x5d3e35(0x142))/0x9*(-parseInt(_0x5d3e35(0x155))/0xa)+parseInt(_0x5d3e35(0x14e))/0xb*(-parseInt(_0x5d3e35(0x156))/0xc);if(_0x4ef128===_0x16e34e)break;else _0x321f75['push'](_0x321f75['shift']());}catch(_0x9644c7){_0x321f75['push'](_0x321f75['shift']());}}}(a73_0x774f,0x5d253));import a73_0xf3af6b from'../utils/AxiosUtil';function a73_0x774f(){const _0x34ab3b=['11635XTxeWy','1013111cqmghF','2267344jIWOmd','data','parentId','&format=application/json','service=WMS&version=1.1.0&request=GetLegendGraphic&layer=','assign','10URHxQU','12nraOzB','url','sort','sublayers','3987396vSeuSo','11178eFNnZN','&format=image/png','includes','get','title','1860atebqe','&width=','push','Legend','wms','showIndex','gwc/service/wmts','613215YgYwcA','indexOf','2YAyEyF','geoserver','36642JHoGTp','&height=','forEach','48yVVJWt','replace','length','children'];a73_0x774f=function(){return _0x34ab3b;};return a73_0x774f();}function a73_0x30de(_0x318158,_0x4bdd02){const _0x774f3b=a73_0x774f();return a73_0x30de=function(_0x30de9b,_0x487178){_0x30de9b=_0x30de9b-0x13b;let _0x473617=_0x774f3b[_0x30de9b];return _0x473617;},a73_0x30de(_0x318158,_0x4bdd02);}export function mapServiceTreeTransform(_0x57e59b){const _0x8ece48=a73_0x30de;let _0x546c21=[];return _0x57e59b&&_0x57e59b[_0x8ece48(0x14b)]>0x0&&(_0x57e59b['forEach'](_0x55eee1=>{const _0x2bed8c=_0x8ece48;(!_0x55eee1[_0x2bed8c(0x151)]||_0x55eee1[_0x2bed8c(0x151)]=='')&&_0x546c21[_0x2bed8c(0x13d)](Object[_0x2bed8c(0x154)]({},_0x55eee1));}),_0x546c21=_0x546c21[_0x8ece48(0x158)]((_0x11f5d2,_0xa62f72)=>{const _0x205f54=_0x8ece48;return(_0x11f5d2[_0x205f54(0x140)]?_0x11f5d2[_0x205f54(0x140)]:0x0)-(_0xa62f72['showIndex']?_0xa62f72[_0x205f54(0x140)]:0x0);}),_0x546c21[_0x8ece48(0x148)](_0x2391d5=>{const _0x3b1fcf=_0x8ece48;_0x2391d5[_0x3b1fcf(0x14c)]=setChildren(_0x2391d5['id'],_0x57e59b);})),_0x546c21;}function setChildren(_0x235d05,_0x30a94a){const _0x40476e=a73_0x30de;let _0x437e27=[];return _0x30a94a[_0x40476e(0x148)](_0x5ae94f=>{const _0x5243ec=_0x40476e;_0x235d05===(_0x5ae94f['parentId']==null?'':_0x5ae94f['parentId'])&&_0x437e27['push'](Object[_0x5243ec(0x154)]({},_0x5ae94f));}),_0x437e27=_0x437e27[_0x40476e(0x158)]((_0x45e22c,_0x2dc0a2)=>{const _0x3abc31=_0x40476e;return(_0x45e22c['showIndex']?_0x45e22c[_0x3abc31(0x140)]:0x0)-(_0x2dc0a2[_0x3abc31(0x140)]?_0x2dc0a2['showIndex']:0x0);}),_0x437e27[_0x40476e(0x14b)]>0x0&&_0x437e27[_0x40476e(0x148)](_0x3cc352=>{const _0x410574=_0x40476e;_0x3cc352[_0x410574(0x14c)]=setChildren(_0x3cc352['id'],_0x30a94a);}),_0x437e27;}export async function getLayerLegend(_0x25e458,_0x4580f2){const _0x24bcca=a73_0x30de;if(!_0x25e458||!_0x25e458['url']||!_0x25e458[_0x24bcca(0x159)]||_0x25e458[_0x24bcca(0x159)][_0x24bcca(0x14b)]==0x0||!_0x25e458['layerType'])return;if(_0x25e458['layerType'][_0x24bcca(0x143)](_0x24bcca(0x145))>-0x1)return await getGeoServerLayerLegend(_0x25e458,_0x4580f2);return;}export async function getGeoServerLayerLegend(_0x220627,_0x1e7e8a){const _0x54558a=a73_0x30de;if(!_0x220627||!_0x220627[_0x54558a(0x157)]||!_0x220627[_0x54558a(0x159)]||_0x220627[_0x54558a(0x159)]['length']==0x0)return;let _0x2db9bc=_0x220627['url'];const _0x48ac18=_0x220627['sublayers'];_0x2db9bc=_0x2db9bc[_0x54558a(0x14a)](_0x54558a(0x141),_0x54558a(0x13f));const _0x2448af=[];for(let _0x1c8627=0x0;_0x1c8627<_0x48ac18[_0x54558a(0x14b)];_0x1c8627++){const _0x3821bb=_0x48ac18[_0x1c8627];let _0x2511da=_0x54558a(0x153)+_0x3821bb+_0x54558a(0x152);const _0x419cb9=_0x2db9bc[_0x54558a(0x15d)]('?')?_0x2db9bc+'&'+_0x2511da:_0x2db9bc+'?'+_0x2511da,_0x5c151f=await a73_0xf3af6b[_0x54558a(0x15e)](_0x419cb9);if(_0x5c151f[_0x54558a(0x150)]&&_0x5c151f[_0x54558a(0x150)]['Legend']&&_0x5c151f[_0x54558a(0x150)][_0x54558a(0x13e)]['length']>0x0)_0x2448af[_0x54558a(0x13d)](_0x5c151f[_0x54558a(0x150)][_0x54558a(0x13e)][0x0]);else{let _0x273dfa=_0x1e7e8a?_0x1e7e8a:0x10,_0x5029dd=_0x54558a(0x153)+_0x3821bb+_0x54558a(0x13c)+_0x273dfa+_0x54558a(0x147)+_0x273dfa+_0x54558a(0x15c);const _0x4e4aa9=_0x2db9bc[_0x54558a(0x15d)]('?')?_0x2db9bc+'&'+_0x5029dd:_0x2db9bc+'?'+_0x5029dd;_0x2448af['push']({'title':_0x220627[_0x54558a(0x15f)],'url':_0x4e4aa9});}}return _0x2448af;}
|