ym-gis-2d 1.0.16 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/capabilities/index.js +1 -1
- package/controls/ControlManager.js +1 -1
- package/controls/LegendControl.d.ts +1 -1
- package/controls/LegendControl.d.ts.map +1 -1
- package/controls/LegendControl.js +1 -1
- package/controls/LegendControl.js.map +1 -1
- package/controls/MousePositionControl.js +1 -1
- package/controls/SwipeLayerControl.js +1 -1
- package/conver/kml/geoJSONToKml.js +1 -1
- package/conver/kml/index.js +1 -1
- package/conver/kml/kmlToGeoJSON.js +1 -1
- package/entity/Feature.js +1 -1
- package/entity/GeometryType.js +1 -1
- package/entity/layer/IMapService.d.ts +4 -0
- package/entity/layer/IMapService.d.ts.map +1 -1
- package/feature/FeatureManager.js +1 -1
- package/index.js +1 -1
- package/interaction/Draw.js +1 -1
- package/interaction/InteractionManager.js +1 -1
- package/interaction/Select.d.ts.map +1 -1
- package/interaction/Select.js +1 -1
- package/interaction/Select.js.map +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 +6 -0
- package/mapView/Map.d.ts.map +1 -1
- package/mapView/Map.js +1 -1
- package/mapView/Map.js.map +1 -1
- package/mapView/View.js +1 -1
- package/package.json +1 -1
- package/plot/Plot.js +1 -1
- package/plot/geometry/point/Point.js +1 -1
- package/plot/geometry/polygon/BasePolygon.js +1 -1
- package/plot/geometry/polygon/Circle.js +1 -1
- package/plot/geometry/polygon/Polygon.js +1 -1
- package/plot/geometry/polygon/RectAngle.js +1 -1
- package/plot/geometry/polyline/BaseLine.js +1 -1
- package/plot/geometry/polyline/Polyline.js +1 -1
- package/style/PointStyleFormat.js +1 -1
- package/style/PolygonStyleFormat.js +1 -1
- package/style/PolylineStyleFormat.js +1 -1
- package/style/StyleManager.js +1 -1
- package/style/common.js +1 -1
- package/utils/ArrayUtil.js +1 -1
- package/utils/AxiosUtil.js +1 -1
- package/utils/EsriUtil.js +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/LayerUtil.js +1 -1
- package/utils/RegisterProjUtil.js +1 -1
- package/utils/ResolutionUtil.js +1 -1
- package/utils/StringUtil.js +1 -1
- package/utils/StyleUtil.js +1 -1
- package/utils/UrlUtil.js +1 -1
- package/utils/XmlUtil.js +1 -1
- package/utils/format/CQL.js +1 -1
- package/utils/format/IsMatchCql.js +1 -1
- package/utils/plug/canvas/ImageCache.js +1 -1
- package/utils/plug/canvas/PinBuilder.js +1 -1
- package/utils/plug/canvas/PinIcon.js +1 -1
- package/utils/plug/canvas/writeTextToCanvas.js +1 -1
- package/utils/tasks/esri/Identify.js +1 -1
- package/utils/tasks/esri/Query.js +1 -1
- package/utils/tasks/esri/Task.js +1 -1
- package/utils/tasks/geoserver/QueryTask.js +1 -1
- package/utils/tasks/index.js +1 -1
- package/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x181a22,_0x44d8d7){const _0x212266=a63_0x5506,_0x3e1d9f=_0x181a22();while(!![]){try{const _0x25c4a1=parseInt(_0x212266(0x1e2))/0x1*(parseInt(_0x212266(0x1fc))/0x2)+parseInt(_0x212266(0x1e6))/0x3+-parseInt(_0x212266(0x1ed))/0x4+-parseInt(_0x212266(0x201))/0x5+parseInt(_0x212266(0x211))/0x6+parseInt(_0x212266(0x209))/0x7+-parseInt(_0x212266(0x1f8))/0x8;if(_0x25c4a1===_0x44d8d7)break;else _0x3e1d9f['push'](_0x3e1d9f['shift']());}catch(_0x55a4f7){_0x3e1d9f['push'](_0x3e1d9f['shift']());}}}(a63_0x25ff,0x72711));import{parseImage}from'../utils/UrlUtil';function a63_0x25ff(){const _0x37ae1f=['LineString','677FhJQQI','label','pixelOffset','horizontalOrigin','2165508MRpRQM','changeColor','getFlatMidpoint','globalAlpha','radius','stringify','pixelSize','1212844kxiSkU','outlineColor','CENTER','Polygon','image','rotate','MultiLineString','getStride','zIndex','warn','color','12886680JAuqBP','height','length','modelKind','2732tYgzxe','drawImage','verticalOrigin','billboard','restore','3148450QJSJyj','canvas','rotation','replace','BOTTOM','pixelOffsetY','.png','text','5686233uEdCJB','translate','width','model','model/','opacity','MultiPolygon','createElement','3321312ctMfzK','MultiPoint','getFlatMidpoints','scale','getImageData','show','push','save','parse','outlineWidth','pixelRatio','RIGHT','src'];a63_0x25ff=function(){return _0x37ae1f;};return a63_0x25ff();}import{createTextStyle,getColor,isShowStyle,preLoadImageRenderFunction,toRadians}from'./common';function a63_0x5506(_0x26d71a,_0x485be8){const _0x25ff19=a63_0x25ff();return a63_0x5506=function(_0x550671,_0x3afb91){_0x550671=_0x550671-0x1db;let _0x207046=_0x25ff19[_0x550671];return _0x207046;},a63_0x5506(_0x26d71a,_0x485be8);}import a63_0x16a44f from'ol/style/Style';import a63_0x25ab65 from'ol/style/Circle';import a63_0x4e8e49 from'ol/style/Fill';import a63_0x582bcf from'ol/style/Stroke';function getMainStyle(_0x332cfa,_0x5eddef=0x0,_0x9b5db3){const _0x2079ca=a63_0x5506;let _0x1a5bc4;return _0x332cfa[_0x2079ca(0x1f1)]||_0x332cfa['markerColor']?_0x1a5bc4=new a63_0x16a44f({'renderer':(_0x4c7222,_0x22fea3)=>{preLoadImageRenderFunction(_0x332cfa,_0x4c7222,_0x22fea3,_0x9b5db3,_rendererFunction);},'zIndex':Number(_0x5eddef)}):_0x1a5bc4=new a63_0x16a44f({'image':new a63_0x25ab65({'radius':_0x332cfa[_0x2079ca(0x1ea)]?_0x332cfa[_0x2079ca(0x1ea)]:_0x332cfa[_0x2079ca(0x1ec)],'fill':new a63_0x4e8e49({'color':getColor(_0x332cfa['color'],_0x332cfa[_0x2079ca(0x20e)])}),'stroke':_0x332cfa['outline']&&_0x332cfa[_0x2079ca(0x1ee)]?new a63_0x582bcf({'color':getColor(_0x332cfa[_0x2079ca(0x1ee)],_0x332cfa['outlineOpacity']),'width':_0x332cfa[_0x2079ca(0x1dd)]}):undefined}),'zIndex':Number(_0x5eddef)}),_0x1a5bc4;}function _rendererFunction(_0x220ca8,_0x24af1c,_0x4f992a,_0x44f2d9,_0x3bb019){const _0x139c03=a63_0x5506;if(!_0x3bb019||_0x3bb019[_0x139c03(0x20b)]===0x0){let _0x9735e9=new Image();_0x9735e9[_0x139c03(0x1e0)]=_0x220ca8[_0x139c03(0x1f1)];}if(_0x220ca8[_0x139c03(0x1e7)]&&_0x220ca8[_0x139c03(0x1f7)]!==''){let _0x3aa7e4=_0x220ca8['scale']||0x1,_0x4f4980=_0x220ca8[_0x139c03(0x20b)]||_0x3bb019[_0x139c03(0x20b)]*_0x3aa7e4,_0x1cb9bd=_0x220ca8['height']||_0x3bb019['height']*_0x3aa7e4;_0x4f4980=_0x4f4980*_0x4f992a['pixelRatio'],_0x1cb9bd=_0x1cb9bd*_0x4f992a[_0x139c03(0x1de)];const _0x5eff84=document[_0x139c03(0x210)](_0x139c03(0x202));_0x5eff84['width']=_0x4f4980,_0x5eff84[_0x139c03(0x1f9)]=_0x1cb9bd;const _0xabfd5b=_0x5eff84['getContext']('2d');_0xabfd5b===null||_0xabfd5b===void 0x0?void 0x0:_0xabfd5b[_0x139c03(0x1fd)](_0x3bb019,0x0,0x0,_0x4f4980,_0x1cb9bd);let _0xfedf7e=_0xabfd5b===null||_0xabfd5b===void 0x0?void 0x0:_0xabfd5b[_0x139c03(0x215)](0x0,0x0,_0x4f4980,_0x1cb9bd),_0x8f1d2e=_0xfedf7e===null||_0xfedf7e===void 0x0?void 0x0:_0xfedf7e['data'];_0x3bb019=_0x5eff84;let _0x525fc1=HexToRgb(_0x220ca8[_0x139c03(0x1f7)]);if(_0x8f1d2e&&_0x525fc1)for(var _0x4f6b43=0x0;_0x4f6b43<_0x8f1d2e[_0x139c03(0x1fa)];_0x4f6b43+=0x4){_0x8f1d2e[_0x4f6b43]=_0x525fc1[0x0],_0x8f1d2e[_0x4f6b43+0x1]=_0x525fc1[0x1],_0x8f1d2e[_0x4f6b43+0x2]=_0x525fc1[0x2];}_0xfedf7e&&(_0xabfd5b===null||_0xabfd5b===void 0x0?void 0x0:_0xabfd5b['putImageData'](_0xfedf7e,0x0,0x0));}let _0x2e5ad2=_0x4f992a['geometry'],_0x2dca56=_0x4f992a[_0x139c03(0x1de)],_0x5e9439=_0x2e5ad2[_0x139c03(0x1f4)](),_0x75818c=_0x2e5ad2['getType'](),_0x8e1209=[];switch(_0x75818c){case _0x139c03(0x1e1):_0x8e1209=_0x2e5ad2[_0x139c03(0x1e8)]();break;case _0x139c03(0x1f3):_0x8e1209=_0x2e5ad2[_0x139c03(0x213)](),_0x5e9439=0x2;break;case _0x139c03(0x1f0):_0x8e1209=_0x2e5ad2['getFlatInteriorPoint'](),_0x5e9439=0x3;break;case _0x139c03(0x20f):{let _0x58d405=_0x2e5ad2['getFlatInteriorPoints']();_0x8e1209=[];for(let _0xdce454=0x0,_0x21916e=_0x58d405[_0x139c03(0x1fa)];_0xdce454<_0x21916e;_0xdce454+=0x3){_0x8e1209[_0x139c03(0x217)](_0x58d405[_0xdce454],_0x58d405[_0xdce454+0x1]);}if(_0x8e1209[_0x139c03(0x1fa)]===0x0)return;_0x5e9439=0x2;break;}}if(_0x8e1209[_0x139c03(0x1fa)]>0x0&&_0x44f2d9)for(let _0x4a5dfb=0x0,_0x400574=_0x8e1209[_0x139c03(0x1fa)];_0x4a5dfb<_0x400574;_0x4a5dfb+=_0x5e9439){let _0x500cb5=[_0x8e1209[_0x4a5dfb],_0x8e1209[_0x4a5dfb+0x1]],_0x2249f3=_0x44f2d9['getPixelFromCoordinate'](_0x500cb5);_0x2249f3=[_0x2249f3[0x0]*_0x2dca56,_0x2249f3[0x1]*_0x2dca56],drawImage(_0x220ca8,_0x2249f3,_0x4f992a,_0x3bb019);}else{if(_0x75818c===_0x139c03(0x212))for(let _0x494acb of _0x24af1c){drawImage(_0x220ca8,_0x494acb,_0x4f992a,_0x3bb019);}else drawImage(_0x220ca8,_0x24af1c,_0x4f992a,_0x3bb019);}}function HexToRgb(_0x1ded7a){const _0x233819=a63_0x5506;_0x1ded7a=_0x1ded7a[_0x233819(0x204)]('#','');let _0x39645f=_0x1ded7a['match'](/../g);if(_0x39645f){for(let _0x1f27d2=0x0;_0x1f27d2<0x3;_0x1f27d2++)_0x39645f[_0x1f27d2]=parseInt(_0x39645f[_0x1f27d2],0x10);}return _0x39645f;}export function getImageOlStyle(_0x308564,_0x5db825,_0x4dfd4e,_0x2db9c1){const _0x5990b2=a63_0x5506;var _0x4743d0;if(_0x308564&&_0x308564[_0x5990b2(0x216)]!==![]){_0x308564=JSON['parse'](JSON[_0x5990b2(0x1eb)](_0x308564)),_0x5db825=(_0x4743d0=_0x308564['zIndex'])!==null&&_0x4743d0!==void 0x0?_0x4743d0:_0x5db825;let _0x335cd4=isShowStyle(_0x308564,_0x4dfd4e,_0x2db9c1);if(_0x335cd4)return _0x308564['image']=parseImage(_0x308564['image']),getMainStyle(_0x308564,_0x5db825,_0x2db9c1);}}export function getPointStyle(_0x4e163f,_0x5df644,_0x29f0fc,_0x1c8ed1){const _0x2bb06c=a63_0x5506;var _0x442fa0,_0xe7ff64;_0x4e163f=JSON[_0x2bb06c(0x1dc)](JSON[_0x2bb06c(0x1eb)](_0x4e163f));let _0x569344=(_0x442fa0=_0x4e163f[_0x2bb06c(0x1f5)])!==null&&_0x442fa0!==void 0x0?_0x442fa0:0x0,_0xa851a6=[],_0x287e6d=getImageOlStyle(_0x4e163f,_0x569344,_0x29f0fc,_0x1c8ed1);_0x287e6d&&_0xa851a6[_0x2bb06c(0x217)](_0x287e6d);let _0x115f9c=getImageOlStyle(_0x4e163f[_0x2bb06c(0x1ff)],_0x569344,_0x29f0fc,_0x1c8ed1);_0x115f9c&&_0xa851a6[_0x2bb06c(0x217)](_0x115f9c);if(_0x4e163f[_0x2bb06c(0x20c)]&&_0x4e163f[_0x2bb06c(0x20c)][_0x2bb06c(0x216)]!==![]){let _0x37185b=isShowStyle(_0x4e163f[_0x2bb06c(0x20c)],_0x29f0fc,_0x1c8ed1);if(_0x37185b){let _0x56e976=(_0xe7ff64=_0x4e163f[_0x2bb06c(0x20c)]['zIndex'])!==null&&_0xe7ff64!==void 0x0?_0xe7ff64:_0x569344,_0x3345fe=_0x4e163f['model']['imgUrl']||'model/'+_0x4e163f[_0x2bb06c(0x20c)][_0x2bb06c(0x1fb)]+_0x2bb06c(0x207);_0x4e163f['scale']=0x1,_0x4e163f['width']=0x30,_0x4e163f[_0x2bb06c(0x1f9)]=0x30,_0x4e163f[_0x2bb06c(0x1fe)]='CENTER',_0xa851a6['push'](getMainStyle(_0x4e163f[_0x2bb06c(0x20c)],_0x56e976,_0x1c8ed1));}}if(_0x4e163f[_0x2bb06c(0x1e3)]&&_0x4e163f[_0x2bb06c(0x1e3)][_0x2bb06c(0x216)]!==![]){let _0x57938a=new a63_0x16a44f({'text':createTextStyle(_0x4e163f[_0x2bb06c(0x1e3)],_0x5df644,_0x29f0fc,_0x1c8ed1),'zIndex':Number(_0x569344)+0x1});_0xa851a6[_0x2bb06c(0x217)](_0x57938a);}return _0xa851a6;}export function getPointSingleStyle(_0x13ba19,_0x25c6d8,_0x1426c9,_0x5aa6c6){const _0x6910b6=a63_0x5506;_0x25c6d8=JSON[_0x6910b6(0x1dc)](JSON['stringify'](_0x25c6d8));let _0x1d64ea=_0x25c6d8[_0x6910b6(0x1e3)],_0x4c970a;_0x1d64ea&&(_0x4c970a=_0x1d64ea[_0x6910b6(0x208)]?_0x1d64ea[_0x6910b6(0x208)]:'');if(_0x13ba19===_0x6910b6(0x1ff))return _0x25c6d8[_0x6910b6(0x1f1)]=parseImage(_0x25c6d8[_0x6910b6(0x1f1)]),getPointStyle(_0x25c6d8,_0x4c970a,_0x1426c9,_0x5aa6c6);else{if(_0x13ba19===_0x6910b6(0x20c)){let _0x35cda2=_0x25c6d8['imgUrl']||_0x6910b6(0x20d)+_0x25c6d8[_0x6910b6(0x1fb)]+_0x6910b6(0x207);return _0x25c6d8['scale']=0x1,_0x25c6d8[_0x6910b6(0x20b)]=0x30,_0x25c6d8[_0x6910b6(0x1f9)]=0x30,_0x25c6d8['verticalOrigin']=_0x6910b6(0x1ef),getPointStyle(_0x25c6d8,_0x4c970a,_0x1426c9,_0x5aa6c6);}else{if(_0x13ba19==='cloud')return getPointStyle(_0x25c6d8,_0x4c970a,_0x1426c9,_0x5aa6c6);else{if(_0x13ba19==='point')return getPointStyle(_0x25c6d8,_0x4c970a,_0x1426c9,_0x5aa6c6);else return _0x13ba19===_0x6910b6(0x1e3)?new a63_0x16a44f({'text':createTextStyle(_0x25c6d8,_0x25c6d8['text'],_0x1426c9,_0x5aa6c6),'zIndex':_0x25c6d8[_0x6910b6(0x1f5)]}):getPointStyle(_0x25c6d8,_0x4c970a,_0x1426c9,_0x5aa6c6);}}}}function drawImage(_0x1b8fed,_0x457abf,_0x4d7296,_0xe34f5){const _0x11dea3=a63_0x5506;var _0x509d09,_0x2de551,_0x4bae3a,_0x47a4f3;let _0x1c6b6e=_0x4d7296['context'];try{_0x1c6b6e[_0x11dea3(0x1db)]();let _0x585fdd=Number(_0x1b8fed['pixelOffsetX']||((_0x509d09=_0x1b8fed[_0x11dea3(0x1e4)])===null||_0x509d09===void 0x0?void 0x0:_0x509d09[0x0])||0x0),_0x328a58=Number(_0x1b8fed[_0x11dea3(0x206)]||((_0x2de551=_0x1b8fed[_0x11dea3(0x1e4)])===null||_0x2de551===void 0x0?void 0x0:_0x2de551[0x1])||0x0);_0x1c6b6e[_0x11dea3(0x20a)](_0x457abf[0x0]+_0x585fdd,_0x457abf[0x1]+_0x328a58);if(_0x1b8fed[_0x11dea3(0x203)])_0x1c6b6e[_0x11dea3(0x1f2)](toRadians(_0x1b8fed['rotation']));_0x1c6b6e[_0x11dea3(0x1e9)]=_0x1b8fed[_0x11dea3(0x20e)]!=null?_0x1b8fed[_0x11dea3(0x20e)]:0x1;if(_0xe34f5[_0x11dea3(0x20b)]>0x0){let _0x48d054=_0x1b8fed[_0x11dea3(0x214)]||0x1,_0x31c075=_0x1b8fed[_0x11dea3(0x20b)]||_0xe34f5['width']*_0x48d054,_0x577c8b=_0x1b8fed[_0x11dea3(0x1f9)]||_0xe34f5[_0x11dea3(0x1f9)]*_0x48d054;_0x31c075=_0x31c075*_0x4d7296[_0x11dea3(0x1de)],_0x577c8b=_0x577c8b*_0x4d7296['pixelRatio'];_0x1b8fed['changeColor']&&(_0x31c075=_0xe34f5['width'],_0x577c8b=_0xe34f5[_0x11dea3(0x1f9)]);let _0x4759ee;switch((_0x4bae3a=_0x1b8fed[_0x11dea3(0x1e5)])===null||_0x4bae3a===void 0x0?void 0x0:_0x4bae3a['toUpperCase']()){default:case _0x11dea3(0x1ef):_0x4759ee=-_0x31c075/0x2;break;case'LEFT':_0x4759ee=0x0;break;case _0x11dea3(0x1df):_0x4759ee=-_0x31c075;break;}let _0x2061a6;switch((_0x47a4f3=_0x1b8fed[_0x11dea3(0x1fe)])===null||_0x47a4f3===void 0x0?void 0x0:_0x47a4f3['toUpperCase']()){default:case _0x11dea3(0x205):_0x2061a6=-_0x577c8b;break;case _0x11dea3(0x1ef):_0x2061a6=-_0x577c8b/0x2;break;case'TOP':_0x2061a6=0x0;break;}_0x1c6b6e[_0x11dea3(0x1fd)](_0xe34f5,_0x4759ee,_0x2061a6,_0x31c075,_0x577c8b);}else _0x1c6b6e[_0x11dea3(0x1fd)](_0xe34f5,0x0,0x0);_0x1c6b6e[_0x11dea3(0x200)]();}catch(_0x23f578){_0x1c6b6e[_0x11dea3(0x200)](),console[_0x11dea3(0x1f6)](_0x23f578);}}
|
|
1
|
+
(function(_0x1183b9,_0x89f9ca){const _0x465bd7=a63_0x37d1,_0x102f69=_0x1183b9();while(!![]){try{const _0x20f7d6=parseInt(_0x465bd7(0xe4))/0x1+-parseInt(_0x465bd7(0xfa))/0x2*(parseInt(_0x465bd7(0xf0))/0x3)+-parseInt(_0x465bd7(0xee))/0x4*(-parseInt(_0x465bd7(0x106))/0x5)+parseInt(_0x465bd7(0x10c))/0x6+parseInt(_0x465bd7(0xf3))/0x7+parseInt(_0x465bd7(0x103))/0x8*(-parseInt(_0x465bd7(0xf2))/0x9)+-parseInt(_0x465bd7(0xe1))/0xa;if(_0x20f7d6===_0x89f9ca)break;else _0x102f69['push'](_0x102f69['shift']());}catch(_0x9d770c){_0x102f69['push'](_0x102f69['shift']());}}}(a63_0x7243,0x94b5c));import{parseImage}from'../utils/UrlUtil';import{createTextStyle,getColor,isShowStyle,preLoadImageRenderFunction,toRadians}from'./common';import a63_0x5676b7 from'ol/style/Style';import a63_0x507e6e from'ol/style/Circle';function a63_0x7243(){const _0x595003=['getImageData','image','imgUrl','save','getStride','horizontalOrigin','push','restore','zIndex','.png','model/','replace','data','point','getFlatInteriorPoint','CENTER','RIGHT','billboard','getFlatInteriorPoints','MultiLineString','stringify','markerColor','cloud','TOP','16846950bjuiXD','toUpperCase','modelKind','594485UeXAKW','MultiPoint','rotate','drawImage','LineString','createElement','scale','MultiPolygon','pixelOffset','geometry','1232828EMLNLN','height','369OetSKh','show','385137RToOgh','8303281TwXQrx','canvas','pixelSize','getFlatMidpoint','changeColor','verticalOrigin','parse','9684CCtFge','getType','opacity','translate','match','label','model','pixelRatio','text','8uVeGEf','putImageData','getContext','15GNHQuM','outlineOpacity','color','width','outline','length','1361286DTZheW'];a63_0x7243=function(){return _0x595003;};return a63_0x7243();}import a63_0x55bd77 from'ol/style/Fill';import a63_0xe01e1a from'ol/style/Stroke';function getMainStyle(_0x1133fa,_0x2c4b62=0x0,_0x4351ec){const _0xbc7e1b=a63_0x37d1;let _0x29ebdb;return _0x1133fa['image']||_0x1133fa[_0xbc7e1b(0xde)]?_0x29ebdb=new a63_0x5676b7({'renderer':(_0x2c1cb9,_0x5c8e2d)=>{preLoadImageRenderFunction(_0x1133fa,_0x2c1cb9,_0x5c8e2d,_0x4351ec,_rendererFunction);},'zIndex':Number(_0x2c4b62)}):_0x29ebdb=new a63_0x5676b7({'image':new a63_0x507e6e({'radius':_0x1133fa['radius']?_0x1133fa['radius']:_0x1133fa[_0xbc7e1b(0xf5)],'fill':new a63_0x55bd77({'color':getColor(_0x1133fa[_0xbc7e1b(0x108)],_0x1133fa[_0xbc7e1b(0xfc)])}),'stroke':_0x1133fa[_0xbc7e1b(0x10a)]&&_0x1133fa['outlineColor']?new a63_0xe01e1a({'color':getColor(_0x1133fa['outlineColor'],_0x1133fa[_0xbc7e1b(0x107)]),'width':_0x1133fa['outlineWidth']}):undefined}),'zIndex':Number(_0x2c4b62)}),_0x29ebdb;}function _rendererFunction(_0x1b60af,_0x2f858e,_0x370ec9,_0x1b6ed1,_0x3bedfd){const _0xf1f384=a63_0x37d1;if(!_0x3bedfd||_0x3bedfd[_0xf1f384(0x109)]===0x0){let _0x339278=new Image();_0x339278['src']=_0x1b60af[_0xf1f384(0x10e)];}if(_0x1b60af['changeColor']&&_0x1b60af['color']!==''){let _0x2e5abb=_0x1b60af[_0xf1f384(0xea)]||0x1,_0x190a74=_0x1b60af['width']||_0x3bedfd[_0xf1f384(0x109)]*_0x2e5abb,_0x5addf5=_0x1b60af[_0xf1f384(0xef)]||_0x3bedfd['height']*_0x2e5abb;_0x190a74=_0x190a74*_0x370ec9['pixelRatio'],_0x5addf5=_0x5addf5*_0x370ec9[_0xf1f384(0x101)];const _0x5e795e=document[_0xf1f384(0xe9)](_0xf1f384(0xf4));_0x5e795e[_0xf1f384(0x109)]=_0x190a74,_0x5e795e[_0xf1f384(0xef)]=_0x5addf5;const _0x2b8ac2=_0x5e795e[_0xf1f384(0x105)]('2d');_0x2b8ac2===null||_0x2b8ac2===void 0x0?void 0x0:_0x2b8ac2[_0xf1f384(0xe7)](_0x3bedfd,0x0,0x0,_0x190a74,_0x5addf5);let _0x486549=_0x2b8ac2===null||_0x2b8ac2===void 0x0?void 0x0:_0x2b8ac2[_0xf1f384(0x10d)](0x0,0x0,_0x190a74,_0x5addf5),_0x1a7a8c=_0x486549===null||_0x486549===void 0x0?void 0x0:_0x486549[_0xf1f384(0xd5)];_0x3bedfd=_0x5e795e;let _0x321c61=HexToRgb(_0x1b60af[_0xf1f384(0x108)]);if(_0x1a7a8c&&_0x321c61)for(var _0x109563=0x0;_0x109563<_0x1a7a8c[_0xf1f384(0x10b)];_0x109563+=0x4){_0x1a7a8c[_0x109563]=_0x321c61[0x0],_0x1a7a8c[_0x109563+0x1]=_0x321c61[0x1],_0x1a7a8c[_0x109563+0x2]=_0x321c61[0x2];}_0x486549&&(_0x2b8ac2===null||_0x2b8ac2===void 0x0?void 0x0:_0x2b8ac2[_0xf1f384(0x104)](_0x486549,0x0,0x0));}let _0x427103=_0x370ec9[_0xf1f384(0xed)],_0x3d9186=_0x370ec9['pixelRatio'],_0x3f8081=_0x427103[_0xf1f384(0x111)](),_0xeb0a2a=_0x427103[_0xf1f384(0xfb)](),_0x3e2318=[];switch(_0xeb0a2a){case _0xf1f384(0xe8):_0x3e2318=_0x427103[_0xf1f384(0xf6)]();break;case _0xf1f384(0xdc):_0x3e2318=_0x427103['getFlatMidpoints'](),_0x3f8081=0x2;break;case'Polygon':_0x3e2318=_0x427103[_0xf1f384(0xd7)](),_0x3f8081=0x3;break;case _0xf1f384(0xeb):{let _0x5c031a=_0x427103[_0xf1f384(0xdb)]();_0x3e2318=[];for(let _0x5b0ac5=0x0,_0x1f2a6f=_0x5c031a['length'];_0x5b0ac5<_0x1f2a6f;_0x5b0ac5+=0x3){_0x3e2318[_0xf1f384(0x113)](_0x5c031a[_0x5b0ac5],_0x5c031a[_0x5b0ac5+0x1]);}if(_0x3e2318[_0xf1f384(0x10b)]===0x0)return;_0x3f8081=0x2;break;}}if(_0x3e2318[_0xf1f384(0x10b)]>0x0&&_0x1b6ed1)for(let _0x11d1dd=0x0,_0x26d32b=_0x3e2318['length'];_0x11d1dd<_0x26d32b;_0x11d1dd+=_0x3f8081){let _0x481d3a=[_0x3e2318[_0x11d1dd],_0x3e2318[_0x11d1dd+0x1]],_0x28c0ca=_0x1b6ed1['getPixelFromCoordinate'](_0x481d3a);_0x28c0ca=[_0x28c0ca[0x0]*_0x3d9186,_0x28c0ca[0x1]*_0x3d9186],drawImage(_0x1b60af,_0x28c0ca,_0x370ec9,_0x3bedfd);}else{if(_0xeb0a2a===_0xf1f384(0xe5))for(let _0x31b3c5 of _0x2f858e){drawImage(_0x1b60af,_0x31b3c5,_0x370ec9,_0x3bedfd);}else drawImage(_0x1b60af,_0x2f858e,_0x370ec9,_0x3bedfd);}}function HexToRgb(_0x35a08c){const _0x5ad645=a63_0x37d1;_0x35a08c=_0x35a08c[_0x5ad645(0xd4)]('#','');let _0x18aad8=_0x35a08c[_0x5ad645(0xfe)](/../g);if(_0x18aad8){for(let _0x1ceca7=0x0;_0x1ceca7<0x3;_0x1ceca7++)_0x18aad8[_0x1ceca7]=parseInt(_0x18aad8[_0x1ceca7],0x10);}return _0x18aad8;}export function getImageOlStyle(_0x219154,_0x4f129e,_0xc50349,_0x54fb30){const _0x54a9dc=a63_0x37d1;var _0x53ccc0;if(_0x219154&&_0x219154['show']!==![]){_0x219154=JSON['parse'](JSON[_0x54a9dc(0xdd)](_0x219154)),_0x4f129e=(_0x53ccc0=_0x219154['zIndex'])!==null&&_0x53ccc0!==void 0x0?_0x53ccc0:_0x4f129e;let _0x181851=isShowStyle(_0x219154,_0xc50349,_0x54fb30);if(_0x181851)return _0x219154[_0x54a9dc(0x10e)]=parseImage(_0x219154['image']),getMainStyle(_0x219154,_0x4f129e,_0x54fb30);}}export function getPointStyle(_0x1a89c0,_0x5dc797,_0x56776a,_0xb75952){const _0x439c13=a63_0x37d1;var _0x42ff08,_0x3ffd23;_0x1a89c0=JSON[_0x439c13(0xf9)](JSON[_0x439c13(0xdd)](_0x1a89c0));let _0x2107bf=(_0x42ff08=_0x1a89c0[_0x439c13(0x115)])!==null&&_0x42ff08!==void 0x0?_0x42ff08:0x0,_0x3aa9ca=[],_0x367145=getImageOlStyle(_0x1a89c0,_0x2107bf,_0x56776a,_0xb75952);_0x367145&&_0x3aa9ca[_0x439c13(0x113)](_0x367145);let _0x118fb0=getImageOlStyle(_0x1a89c0[_0x439c13(0xda)],_0x2107bf,_0x56776a,_0xb75952);_0x118fb0&&_0x3aa9ca[_0x439c13(0x113)](_0x118fb0);if(_0x1a89c0[_0x439c13(0x100)]&&_0x1a89c0[_0x439c13(0x100)][_0x439c13(0xf1)]!==![]){let _0x170b0e=isShowStyle(_0x1a89c0[_0x439c13(0x100)],_0x56776a,_0xb75952);if(_0x170b0e){let _0x20121f=(_0x3ffd23=_0x1a89c0['model'][_0x439c13(0x115)])!==null&&_0x3ffd23!==void 0x0?_0x3ffd23:_0x2107bf,_0x30d9d0=_0x1a89c0['model']['imgUrl']||_0x439c13(0xd3)+_0x1a89c0['model']['modelKind']+_0x439c13(0xd2);_0x1a89c0['scale']=0x1,_0x1a89c0[_0x439c13(0x109)]=0x30,_0x1a89c0['height']=0x30,_0x1a89c0['verticalOrigin']='CENTER',_0x3aa9ca[_0x439c13(0x113)](getMainStyle(_0x1a89c0[_0x439c13(0x100)],_0x20121f,_0xb75952));}}if(_0x1a89c0[_0x439c13(0xff)]&&_0x1a89c0['label'][_0x439c13(0xf1)]!==![]){let _0x246080=new a63_0x5676b7({'text':createTextStyle(_0x1a89c0[_0x439c13(0xff)],_0x5dc797,_0x56776a,_0xb75952),'zIndex':Number(_0x2107bf)+0x1});_0x3aa9ca['push'](_0x246080);}return _0x3aa9ca;}export function getPointSingleStyle(_0x633dfc,_0x5923c7,_0x4807be,_0x52df40){const _0x2edff2=a63_0x37d1;_0x5923c7=JSON[_0x2edff2(0xf9)](JSON[_0x2edff2(0xdd)](_0x5923c7));let _0x36baec=_0x5923c7[_0x2edff2(0xff)],_0x5b9374;_0x36baec&&(_0x5b9374=_0x36baec[_0x2edff2(0x102)]?_0x36baec['text']:'');if(_0x633dfc===_0x2edff2(0xda))return _0x5923c7[_0x2edff2(0x10e)]=parseImage(_0x5923c7['image']),getPointStyle(_0x5923c7,_0x5b9374,_0x4807be,_0x52df40);else{if(_0x633dfc===_0x2edff2(0x100)){let _0x1880c2=_0x5923c7[_0x2edff2(0x10f)]||_0x2edff2(0xd3)+_0x5923c7[_0x2edff2(0xe3)]+_0x2edff2(0xd2);return _0x5923c7[_0x2edff2(0xea)]=0x1,_0x5923c7['width']=0x30,_0x5923c7[_0x2edff2(0xef)]=0x30,_0x5923c7[_0x2edff2(0xf8)]=_0x2edff2(0xd8),getPointStyle(_0x5923c7,_0x5b9374,_0x4807be,_0x52df40);}else{if(_0x633dfc===_0x2edff2(0xdf))return getPointStyle(_0x5923c7,_0x5b9374,_0x4807be,_0x52df40);else{if(_0x633dfc===_0x2edff2(0xd6))return getPointStyle(_0x5923c7,_0x5b9374,_0x4807be,_0x52df40);else return _0x633dfc===_0x2edff2(0xff)?new a63_0x5676b7({'text':createTextStyle(_0x5923c7,_0x5923c7[_0x2edff2(0x102)],_0x4807be,_0x52df40),'zIndex':_0x5923c7['zIndex']}):getPointStyle(_0x5923c7,_0x5b9374,_0x4807be,_0x52df40);}}}}function a63_0x37d1(_0x455bee,_0x17892c){const _0x724333=a63_0x7243();return a63_0x37d1=function(_0x37d11e,_0x251cd3){_0x37d11e=_0x37d11e-0xd2;let _0x38d0c8=_0x724333[_0x37d11e];return _0x38d0c8;},a63_0x37d1(_0x455bee,_0x17892c);}function drawImage(_0x473870,_0x3fde3f,_0xc99239,_0x5ed0c7){const _0x2c45c5=a63_0x37d1;var _0x236c3e,_0x133833,_0x435e2c,_0x3017c;let _0x56d718=_0xc99239['context'];try{_0x56d718[_0x2c45c5(0x110)]();let _0x5186e8=Number(_0x473870['pixelOffsetX']||((_0x236c3e=_0x473870[_0x2c45c5(0xec)])===null||_0x236c3e===void 0x0?void 0x0:_0x236c3e[0x0])||0x0),_0x3781e1=Number(_0x473870['pixelOffsetY']||((_0x133833=_0x473870[_0x2c45c5(0xec)])===null||_0x133833===void 0x0?void 0x0:_0x133833[0x1])||0x0);_0x56d718[_0x2c45c5(0xfd)](_0x3fde3f[0x0]+_0x5186e8,_0x3fde3f[0x1]+_0x3781e1);if(_0x473870['rotation'])_0x56d718[_0x2c45c5(0xe6)](toRadians(_0x473870['rotation']));_0x56d718['globalAlpha']=_0x473870['opacity']!=null?_0x473870['opacity']:0x1;if(_0x5ed0c7[_0x2c45c5(0x109)]>0x0){let _0xc4b19c=_0x473870[_0x2c45c5(0xea)]||0x1,_0x3bc733=_0x473870[_0x2c45c5(0x109)]||_0x5ed0c7['width']*_0xc4b19c,_0x2c44fb=_0x473870[_0x2c45c5(0xef)]||_0x5ed0c7[_0x2c45c5(0xef)]*_0xc4b19c;_0x3bc733=_0x3bc733*_0xc99239[_0x2c45c5(0x101)],_0x2c44fb=_0x2c44fb*_0xc99239[_0x2c45c5(0x101)];_0x473870[_0x2c45c5(0xf7)]&&(_0x3bc733=_0x5ed0c7[_0x2c45c5(0x109)],_0x2c44fb=_0x5ed0c7['height']);let _0x1b2840;switch((_0x435e2c=_0x473870[_0x2c45c5(0x112)])===null||_0x435e2c===void 0x0?void 0x0:_0x435e2c[_0x2c45c5(0xe2)]()){default:case _0x2c45c5(0xd8):_0x1b2840=-_0x3bc733/0x2;break;case'LEFT':_0x1b2840=0x0;break;case _0x2c45c5(0xd9):_0x1b2840=-_0x3bc733;break;}let _0x201ca9;switch((_0x3017c=_0x473870[_0x2c45c5(0xf8)])===null||_0x3017c===void 0x0?void 0x0:_0x3017c[_0x2c45c5(0xe2)]()){default:case'BOTTOM':_0x201ca9=-_0x2c44fb;break;case _0x2c45c5(0xd8):_0x201ca9=-_0x2c44fb/0x2;break;case _0x2c45c5(0xe0):_0x201ca9=0x0;break;}_0x56d718[_0x2c45c5(0xe7)](_0x5ed0c7,_0x1b2840,_0x201ca9,_0x3bc733,_0x2c44fb);}else _0x56d718[_0x2c45c5(0xe7)](_0x5ed0c7,0x0,0x0);_0x56d718['restore']();}catch(_0x2f9b94){_0x56d718[_0x2c45c5(0x114)](),console['warn'](_0x2f9b94);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3bde2b,_0x1c75ed){const _0x23649e=a64_0x50ad,_0x448c49=_0x3bde2b();while(!![]){try{const _0x280026=parseInt(_0x23649e(0x17f))/0x1+parseInt(_0x23649e(0x16a))/0x2*(-parseInt(_0x23649e(0x151))/0x3)+parseInt(_0x23649e(0x14c))/0x4*(-parseInt(_0x23649e(0x18f))/0x5)+-parseInt(_0x23649e(0x18d))/0x6*(parseInt(_0x23649e(0x186))/0x7)+parseInt(_0x23649e(0x15a))/0x8*(-parseInt(_0x23649e(0x172))/0x9)+-parseInt(_0x23649e(0x173))/0xa+-parseInt(_0x23649e(0x185))/0xb*(-parseInt(_0x23649e(0x17a))/0xc);if(_0x280026===_0x1c75ed)break;else _0x448c49['push'](_0x448c49['shift']());}catch(_0x3aaca5){_0x448c49['push'](_0x448c49['shift']());}}}(a64_0xacd2,0x823b7));import{getColor,createTextStyle,preLoadImageRenderFunction}from'./common';import{Fill,Stroke,Style}from'ol/style';function a64_0x50ad(_0xef8d0c,_0x1f6a34){const _0xacd2e=a64_0xacd2();return a64_0x50ad=function(_0x50ad52,_0x1ea1eb){_0x50ad52=_0x50ad52-0x14c;let _0x38056a=_0xacd2e[_0x50ad52];return _0x38056a;},a64_0x50ad(_0xef8d0c,_0x1f6a34);}import{getSize,boundingExtent}from'ol/extent';import{getImageOlStyle}from'./PointStyleFormat';function a64_0xacd2(){const _0x30a242=['stroke','outlineColor','moveTo','checkerboard_repeat','max','length','112mafRlK','setStroke','closePath','globalAlpha','setRenderer','setFill','restore','strokeStyle','opacity','verticalOrigin','push','CENTER','color','height','translate','drawImage','68FBXXgP','rgba(0,0,0,0.0)','checkerboard','lineTo','warn','rgba(0,0,0,0)','label','grid_lineCount','100377iQosTr','4615480glOrEh','createElement','fillType','outlineOpacity','canvas','stripe_oddcolor','grid','545784fqAzBF','fillStyle','width','repeat','zIndex','374866ZADNYQ','show','fill','repeatX','image','context','671KSEBHj','2952047ulJxIZ','rgba(0,0,0,0.01)','billboard','grid_lineThickness','getContext','createPattern','lineWidth','12peANYQ','outline','55tXULQd','349964GtDuGl','outlineWidth','src','stripe','beginPath','16968RUdPWv','repeatY','setZIndex'];a64_0xacd2=function(){return _0x30a242;};return a64_0xacd2();}export function getPolygonStyle(_0x14c098,_0x1fa628,_0x50b1f1,_0x1ede0b){const _0x3cd61d=a64_0x50ad;var _0xbbc516;let _0x242139=(_0xbbc516=_0x14c098[_0x3cd61d(0x17e)])!==null&&_0xbbc516!==void 0x0?_0xbbc516:0x0,_0x581bad=new Style();_0x581bad[_0x3cd61d(0x153)](_0x242139),_0x581bad['setFill'](new Fill({'color':_0x3cd61d(0x16f)}));if(_0x14c098[_0x3cd61d(0x181)]!==![]){if(!_0x14c098['fillType']||_0x14c098[_0x3cd61d(0x175)]==='color')_0x581bad[_0x3cd61d(0x15f)](new Fill({'color':getColor(_0x14c098['color'],_0x14c098[_0x3cd61d(0x162)])}));else{if(_0x14c098[_0x3cd61d(0x175)]===_0x3cd61d(0x183))_0x581bad['setRenderer']((_0x4c5ac8,_0x23c494)=>{preLoadImageRenderFunction(_0x14c098,_0x4c5ac8,_0x23c494,_0x1ede0b,_rendererFunction);});else _0x14c098[_0x3cd61d(0x175)]==='grid'||_0x14c098[_0x3cd61d(0x175)]===_0x3cd61d(0x14f)||_0x14c098[_0x3cd61d(0x175)]===_0x3cd61d(0x16c)?_0x581bad[_0x3cd61d(0x15e)]((_0x1ae0b9,_0x5cc127)=>{_rendererFunction(_0x14c098,_0x1ae0b9,_0x5cc127,_0x1ede0b,null);}):_0x581bad['setFill'](new Fill({'color':getColor(_0x14c098['color'],_0x14c098[_0x3cd61d(0x162)])}));}}_0x14c098['outline']!==![]&&_0x581bad[_0x3cd61d(0x15b)](new Stroke({'color':getColor(_0x14c098[_0x3cd61d(0x155)],_0x14c098[_0x3cd61d(0x176)]),'width':_0x14c098[_0x3cd61d(0x14d)]}));let _0x56ff69=[_0x581bad];_0x14c098[_0x3cd61d(0x188)]&&!_0x14c098['billboard'][_0x3cd61d(0x163)]&&(_0x14c098[_0x3cd61d(0x188)][_0x3cd61d(0x163)]=_0x3cd61d(0x165));let _0x40804a=getImageOlStyle(_0x14c098[_0x3cd61d(0x188)],_0x242139,_0x50b1f1,_0x1ede0b);_0x40804a&&_0x56ff69[_0x3cd61d(0x164)](_0x40804a);if(_0x14c098[_0x3cd61d(0x170)]&&_0x14c098[_0x3cd61d(0x170)][_0x3cd61d(0x180)]!==![]){!_0x14c098[_0x3cd61d(0x170)][_0x3cd61d(0x163)]&&(_0x14c098[_0x3cd61d(0x170)]['verticalOrigin']='CENTER');let _0x2029b6=new Style({'text':createTextStyle(_0x14c098['label'],_0x1fa628,_0x50b1f1,_0x1ede0b),'zIndex':Number(_0x242139)+0x1});_0x56ff69['push'](_0x2029b6);}return _0x56ff69;}function _rendererFunction(_0x50a82f,_0x19bb48,_0x16f8a3,_0x1b15ec,_0x7e6109){const _0x585375=a64_0x50ad;try{var _0x3085bc=_0x16f8a3[_0x585375(0x184)];for(var _0x2289c8=0x0,_0x1f80fc=_0x19bb48[_0x585375(0x159)];_0x2289c8<_0x1f80fc;_0x2289c8++){_0x3085bc['save'](),_0x3085bc['beginPath']();var _0x18e058=_0x19bb48[_0x2289c8];let _0x17d988=boundingExtent(_0x18e058);_0x3085bc[_0x585375(0x168)](_0x17d988[0x0],_0x17d988[0x1]);let _0x46dc8b;switch(_0x50a82f['fillType']){case _0x585375(0x183):_0x46dc8b=_getImagePattern(_0x3085bc,_0x17d988,_0x50a82f,_0x7e6109);break;case _0x585375(0x179):_0x46dc8b=_getGridPattern(_0x3085bc,_0x17d988,_0x50a82f);break;case'stripe':_0x46dc8b=_getStripePattern(_0x3085bc,_0x17d988,_0x50a82f);break;case'checkerboard':_0x46dc8b=_getCheckerBoardPattern(_0x3085bc,_0x17d988,_0x50a82f);break;default:_0x46dc8b=_0x585375(0x187);break;}for(var _0x381bd1=0x0,_0x596030=_0x18e058[_0x585375(0x159)];_0x381bd1<_0x596030;_0x381bd1++){var _0x16a6c9=_0x18e058[_0x381bd1];_0x381bd1===0x0?_0x3085bc[_0x585375(0x156)](_0x16a6c9[0x0]-_0x17d988[0x0],_0x16a6c9[0x1]-_0x17d988[0x1]):_0x3085bc['lineTo'](_0x16a6c9[0x0]-_0x17d988[0x0],_0x16a6c9[0x1]-_0x17d988[0x1]);}_0x3085bc[_0x585375(0x15c)](),_0x3085bc[_0x585375(0x17b)]=_0x585375(0x187),_0x3085bc[_0x585375(0x181)](),_0x3085bc['fillStyle']=_0x46dc8b,_0x3085bc[_0x585375(0x181)](),_0x50a82f[_0x585375(0x18e)]?(_0x3085bc['strokeStyle']=getColor(_0x50a82f['outlineColor'],_0x50a82f['outlineOpacity']),_0x3085bc[_0x585375(0x18c)]=_0x50a82f[_0x585375(0x14d)]):_0x3085bc[_0x585375(0x161)]=_0x585375(0x16b),_0x3085bc[_0x585375(0x154)](),_0x3085bc[_0x585375(0x160)]();}}catch(_0x383765){_0x3085bc[_0x585375(0x160)](),console[_0x585375(0x16e)](_0x383765);}}function _getImagePattern(_0x1d0ecc,_0xa70a2c,_0x4545c4,_0x81567b){const _0x4613e4=a64_0x50ad;if(!_0x81567b||_0x81567b[_0x4613e4(0x17c)]===0x0){let _0x171fad=new Image();_0x171fad[_0x4613e4(0x14e)]=_0x4545c4['image'];}var _0x125aba=getSize(_0xa70a2c);const _0x474f30=document['createElement'](_0x4613e4(0x177)),_0x52bc05=_0x474f30['getContext']('2d');return _0x474f30['width']=Math[_0x4613e4(0x158)](_0x125aba[0x0]/_0x4545c4[_0x4613e4(0x182)],0x1),_0x474f30[_0x4613e4(0x167)]=Math[_0x4613e4(0x158)](_0x125aba[0x1]/_0x4545c4[_0x4613e4(0x152)],0x1),_0x52bc05&&(_0x52bc05[_0x4613e4(0x15d)]=_0x4545c4[_0x4613e4(0x162)],_0x52bc05[_0x4613e4(0x169)](_0x81567b,0x0,0x0,_0x474f30[_0x4613e4(0x17c)],_0x474f30[_0x4613e4(0x167)])),_0x1d0ecc[_0x4613e4(0x18b)](_0x474f30,_0x4613e4(0x17d));}function _getGridPattern(_0x38a21b,_0x33aaf2,_0x1ff0cb){const _0x4d0ee5=a64_0x50ad;var _0x1f8a3b=getSize(_0x33aaf2);const _0x570379=document['createElement'](_0x4d0ee5(0x177)),_0x36e45f=_0x570379[_0x4d0ee5(0x18a)]('2d');return _0x570379[_0x4d0ee5(0x17c)]=Math[_0x4d0ee5(0x158)](_0x1f8a3b[0x0]/_0x1ff0cb['grid_lineCount'],0x1),_0x570379[_0x4d0ee5(0x167)]=Math[_0x4d0ee5(0x158)](_0x1f8a3b[0x1]/_0x1ff0cb[_0x4d0ee5(0x171)],0x1),_0x36e45f&&(_0x36e45f[_0x4d0ee5(0x161)]=getColor(_0x1ff0cb[_0x4d0ee5(0x166)],_0x1ff0cb[_0x4d0ee5(0x162)]),_0x36e45f[_0x4d0ee5(0x18c)]=_0x1ff0cb[_0x4d0ee5(0x189)]*0x4,_0x36e45f['beginPath'](),_0x36e45f[_0x4d0ee5(0x156)](0x0,_0x570379[_0x4d0ee5(0x167)]),_0x36e45f[_0x4d0ee5(0x16d)](_0x570379[_0x4d0ee5(0x17c)],_0x570379[_0x4d0ee5(0x167)]),_0x36e45f[_0x4d0ee5(0x156)](_0x570379[_0x4d0ee5(0x17c)],0x0),_0x36e45f[_0x4d0ee5(0x16d)](_0x570379[_0x4d0ee5(0x17c)],_0x570379['height']),_0x36e45f[_0x4d0ee5(0x154)]()),_0x38a21b[_0x4d0ee5(0x18b)](_0x570379,'repeat');}function _getStripePattern(_0x10ac37,_0x2a250c,_0x1d7cfc){const _0x466d78=a64_0x50ad;var _0x513d09=getSize(_0x2a250c);const _0x52ad37=document[_0x466d78(0x174)](_0x466d78(0x177)),_0x32461f=_0x52ad37['getContext']('2d');let _0x1fe101=Math[_0x466d78(0x158)](_0x513d09[0x1]/_0x1d7cfc['stripe_repeat'],0x1);return _0x52ad37[_0x466d78(0x17c)]=_0x513d09[0x0],_0x52ad37[_0x466d78(0x167)]=_0x1fe101*0x2,_0x32461f&&(_0x32461f[_0x466d78(0x150)](),_0x32461f[_0x466d78(0x156)](0x0,0x0),_0x32461f['lineTo'](_0x52ad37[_0x466d78(0x17c)],0x0),_0x32461f['lineTo'](_0x52ad37['width'],_0x1fe101),_0x32461f[_0x466d78(0x16d)](0x0,_0x1fe101),_0x32461f[_0x466d78(0x15c)](),_0x32461f['fillStyle']=getColor(_0x1d7cfc[_0x466d78(0x178)],_0x1d7cfc[_0x466d78(0x162)]),_0x32461f[_0x466d78(0x181)](),_0x32461f[_0x466d78(0x150)](),_0x32461f[_0x466d78(0x156)](0x0,_0x1fe101),_0x32461f['lineTo'](_0x52ad37[_0x466d78(0x17c)],_0x1fe101),_0x32461f['lineTo'](_0x52ad37[_0x466d78(0x17c)],_0x1fe101*0x2),_0x32461f['lineTo'](0x0,_0x1fe101*0x2),_0x32461f[_0x466d78(0x15c)](),_0x32461f[_0x466d78(0x17b)]=getColor(_0x1d7cfc['color'],_0x1d7cfc['opacity']),_0x32461f[_0x466d78(0x181)]()),_0x10ac37[_0x466d78(0x18b)](_0x52ad37,_0x466d78(0x17d));}function _getCheckerBoardPattern(_0x4353f1,_0x2beb99,_0x594db5){const _0x5d2305=a64_0x50ad;var _0x542c77=getSize(_0x2beb99);const _0x14b07b=document['createElement'](_0x5d2305(0x177)),_0x6edeb3=_0x14b07b[_0x5d2305(0x18a)]('2d');let _0x5da6ae=Math[_0x5d2305(0x158)](_0x542c77[0x0]/_0x594db5['checkerboard_repeat'],0x1),_0x321c34=Math[_0x5d2305(0x158)](_0x542c77[0x1]/_0x594db5[_0x5d2305(0x157)],0x1);return _0x14b07b[_0x5d2305(0x17c)]=_0x5da6ae*0x2,_0x14b07b[_0x5d2305(0x167)]=_0x321c34*0x2,_0x6edeb3&&(_0x6edeb3[_0x5d2305(0x150)](),_0x6edeb3[_0x5d2305(0x156)](0x0,0x0),_0x6edeb3['lineTo'](_0x5da6ae,0x0),_0x6edeb3['lineTo'](_0x5da6ae,_0x321c34),_0x6edeb3['lineTo'](0x0,_0x321c34),_0x6edeb3['closePath'](),_0x6edeb3[_0x5d2305(0x17b)]=getColor(_0x594db5['oddColor'],_0x594db5[_0x5d2305(0x162)]),_0x6edeb3[_0x5d2305(0x181)](),_0x6edeb3[_0x5d2305(0x150)](),_0x6edeb3[_0x5d2305(0x156)](_0x5da6ae,0x0),_0x6edeb3[_0x5d2305(0x16d)](_0x14b07b['width'],0x0),_0x6edeb3[_0x5d2305(0x16d)](_0x14b07b['width'],_0x321c34),_0x6edeb3[_0x5d2305(0x16d)](_0x5da6ae,_0x321c34),_0x6edeb3[_0x5d2305(0x15c)](),_0x6edeb3[_0x5d2305(0x17b)]=getColor(_0x594db5['color'],_0x594db5[_0x5d2305(0x162)]),_0x6edeb3[_0x5d2305(0x181)](),_0x6edeb3[_0x5d2305(0x150)](),_0x6edeb3[_0x5d2305(0x156)](0x0,_0x321c34),_0x6edeb3['lineTo'](_0x5da6ae,_0x321c34),_0x6edeb3[_0x5d2305(0x16d)](_0x5da6ae,_0x14b07b[_0x5d2305(0x167)]),_0x6edeb3[_0x5d2305(0x16d)](0x0,_0x14b07b['height']),_0x6edeb3[_0x5d2305(0x15c)](),_0x6edeb3['fillStyle']=getColor(_0x594db5[_0x5d2305(0x166)],_0x594db5[_0x5d2305(0x162)]),_0x6edeb3[_0x5d2305(0x181)](),_0x6edeb3[_0x5d2305(0x150)](),_0x6edeb3[_0x5d2305(0x156)](_0x5da6ae,_0x321c34),_0x6edeb3[_0x5d2305(0x16d)](_0x14b07b['width'],_0x321c34),_0x6edeb3[_0x5d2305(0x16d)](_0x14b07b[_0x5d2305(0x17c)],_0x14b07b[_0x5d2305(0x167)]),_0x6edeb3[_0x5d2305(0x16d)](_0x5da6ae,_0x14b07b[_0x5d2305(0x167)]),_0x6edeb3[_0x5d2305(0x15c)](),_0x6edeb3[_0x5d2305(0x17b)]=getColor(_0x594db5['oddColor'],_0x594db5['opacity']),_0x6edeb3['fill']()),_0x4353f1[_0x5d2305(0x18b)](_0x14b07b,_0x5d2305(0x17d));}
|
|
1
|
+
(function(_0x125173,_0x8534b7){const _0x1d78c0=a64_0x520e,_0x1ae56d=_0x125173();while(!![]){try{const _0x1bb67b=parseInt(_0x1d78c0(0x106))/0x1*(-parseInt(_0x1d78c0(0xff))/0x2)+parseInt(_0x1d78c0(0xfd))/0x3+parseInt(_0x1d78c0(0x103))/0x4+-parseInt(_0x1d78c0(0xf6))/0x5*(-parseInt(_0x1d78c0(0xe9))/0x6)+-parseInt(_0x1d78c0(0xe1))/0x7+parseInt(_0x1d78c0(0x110))/0x8*(-parseInt(_0x1d78c0(0x102))/0x9)+parseInt(_0x1d78c0(0xf1))/0xa;if(_0x1bb67b===_0x8534b7)break;else _0x1ae56d['push'](_0x1ae56d['shift']());}catch(_0x280e17){_0x1ae56d['push'](_0x1ae56d['shift']());}}}(a64_0x3f63,0x6676e));import{getColor,createTextStyle,preLoadImageRenderFunction}from'./common';import{Fill,Stroke,Style}from'ol/style';import{getSize,boundingExtent}from'ol/extent';import{getImageOlStyle}from'./PointStyleFormat';export function getPolygonStyle(_0x469420,_0x4a438d,_0x606f7,_0x2e79d2){const _0x404638=a64_0x520e;var _0x22b292;let _0x315a09=(_0x22b292=_0x469420[_0x404638(0x104)])!==null&&_0x22b292!==void 0x0?_0x22b292:0x0,_0x21c59e=new Style();_0x21c59e['setZIndex'](_0x315a09),_0x21c59e[_0x404638(0xf9)](new Fill({'color':_0x404638(0xfb)}));if(_0x469420[_0x404638(0xdd)]!==![]){if(!_0x469420[_0x404638(0x108)]||_0x469420[_0x404638(0x108)]==='color')_0x21c59e[_0x404638(0xf9)](new Fill({'color':getColor(_0x469420[_0x404638(0xd7)],_0x469420[_0x404638(0xda)])}));else{if(_0x469420[_0x404638(0x108)]===_0x404638(0xe6))_0x21c59e[_0x404638(0xf8)]((_0x216d5c,_0x27c53a)=>{preLoadImageRenderFunction(_0x469420,_0x216d5c,_0x27c53a,_0x2e79d2,_rendererFunction);});else _0x469420['fillType']==='grid'||_0x469420[_0x404638(0x108)]===_0x404638(0xdf)||_0x469420[_0x404638(0x108)]===_0x404638(0xef)?_0x21c59e[_0x404638(0xf8)]((_0xe6f4e5,_0x3560ec)=>{_rendererFunction(_0x469420,_0xe6f4e5,_0x3560ec,_0x2e79d2,null);}):_0x21c59e[_0x404638(0xf9)](new Fill({'color':getColor(_0x469420[_0x404638(0xd7)],_0x469420[_0x404638(0xda)])}));}}_0x469420['outline']!==![]&&_0x21c59e['setStroke'](new Stroke({'color':getColor(_0x469420[_0x404638(0xe0)],_0x469420['outlineOpacity']),'width':_0x469420['outlineWidth']}));let _0x17415b=[_0x21c59e];_0x469420['billboard']&&!_0x469420['billboard'][_0x404638(0xf4)]&&(_0x469420[_0x404638(0x107)]['verticalOrigin']=_0x404638(0xde));let _0x4059db=getImageOlStyle(_0x469420[_0x404638(0x107)],_0x315a09,_0x606f7,_0x2e79d2);_0x4059db&&_0x17415b[_0x404638(0xdb)](_0x4059db);if(_0x469420['label']&&_0x469420['label'][_0x404638(0x10b)]!==![]){!_0x469420[_0x404638(0xf3)][_0x404638(0xf4)]&&(_0x469420[_0x404638(0xf3)]['verticalOrigin']=_0x404638(0xde));let _0x47221c=new Style({'text':createTextStyle(_0x469420[_0x404638(0xf3)],_0x4a438d,_0x606f7,_0x2e79d2),'zIndex':Number(_0x315a09)+0x1});_0x17415b[_0x404638(0xdb)](_0x47221c);}return _0x17415b;}function _rendererFunction(_0x4427b0,_0x3a1e8f,_0x55cc4d,_0x41ca24,_0x563227){const _0x4abcf9=a64_0x520e;try{var _0x1e438a=_0x55cc4d[_0x4abcf9(0xd8)];for(var _0x362313=0x0,_0x251566=_0x3a1e8f['length'];_0x362313<_0x251566;_0x362313++){_0x1e438a['save'](),_0x1e438a[_0x4abcf9(0xf0)]();var _0x41f81f=_0x3a1e8f[_0x362313];let _0x767632=boundingExtent(_0x41f81f);_0x1e438a[_0x4abcf9(0xe8)](_0x767632[0x0],_0x767632[0x1]);let _0x87222a;switch(_0x4427b0[_0x4abcf9(0x108)]){case _0x4abcf9(0xe6):_0x87222a=_getImagePattern(_0x1e438a,_0x767632,_0x4427b0,_0x563227);break;case _0x4abcf9(0x101):_0x87222a=_getGridPattern(_0x1e438a,_0x767632,_0x4427b0);break;case _0x4abcf9(0xdf):_0x87222a=_getStripePattern(_0x1e438a,_0x767632,_0x4427b0);break;case'checkerboard':_0x87222a=_getCheckerBoardPattern(_0x1e438a,_0x767632,_0x4427b0);break;default:_0x87222a=_0x4abcf9(0xec);break;}for(var _0x29c52d=0x0,_0x3f3c06=_0x41f81f['length'];_0x29c52d<_0x3f3c06;_0x29c52d++){var _0x27ba37=_0x41f81f[_0x29c52d];_0x29c52d===0x0?_0x1e438a[_0x4abcf9(0x113)](_0x27ba37[0x0]-_0x767632[0x0],_0x27ba37[0x1]-_0x767632[0x1]):_0x1e438a[_0x4abcf9(0x100)](_0x27ba37[0x0]-_0x767632[0x0],_0x27ba37[0x1]-_0x767632[0x1]);}_0x1e438a['closePath'](),_0x1e438a[_0x4abcf9(0x105)]=_0x4abcf9(0xec),_0x1e438a[_0x4abcf9(0xdd)](),_0x1e438a[_0x4abcf9(0x105)]=_0x87222a,_0x1e438a[_0x4abcf9(0xdd)](),_0x4427b0[_0x4abcf9(0xea)]?(_0x1e438a[_0x4abcf9(0xed)]=getColor(_0x4427b0[_0x4abcf9(0xe0)],_0x4427b0['outlineOpacity']),_0x1e438a[_0x4abcf9(0x10c)]=_0x4427b0['outlineWidth']):_0x1e438a[_0x4abcf9(0xed)]=_0x4abcf9(0xdc),_0x1e438a[_0x4abcf9(0xf2)](),_0x1e438a[_0x4abcf9(0xee)]();}}catch(_0x1681bb){_0x1e438a['restore'](),console[_0x4abcf9(0x10a)](_0x1681bb);}}function a64_0x520e(_0x4fa5d9,_0x33fe26){const _0x3f6388=a64_0x3f63();return a64_0x520e=function(_0x520e61,_0x308f7c){_0x520e61=_0x520e61-0xd7;let _0x17a835=_0x3f6388[_0x520e61];return _0x17a835;},a64_0x520e(_0x4fa5d9,_0x33fe26);}function a64_0x3f63(){const _0x438e4f=['stroke','label','verticalOrigin','stripe_repeat','5IxrIcy','createElement','setRenderer','setFill','stripe_oddcolor','rgba(0,0,0,0)','repeatY','268461PtNPhw','src','46LhubWj','lineTo','grid','2806893ZctMcj','834316VdRysH','zIndex','fillStyle','18959acFrnv','billboard','fillType','width','warn','show','lineWidth','getContext','checkerboard_repeat','max','8HQmweD','repeatX','closePath','moveTo','color','context','oddColor','opacity','push','rgba(0,0,0,0.0)','fill','CENTER','stripe','outlineColor','2985556CPSVOb','grid_lineCount','createPattern','canvas','grid_lineThickness','image','repeat','translate','1235346JeuPmM','outline','height','rgba(0,0,0,0.01)','strokeStyle','restore','checkerboard','beginPath','10901790SEdhek'];a64_0x3f63=function(){return _0x438e4f;};return a64_0x3f63();}function _getImagePattern(_0x3f8cee,_0x227d35,_0x566535,_0x49d5f6){const _0x54a4a8=a64_0x520e;if(!_0x49d5f6||_0x49d5f6[_0x54a4a8(0x109)]===0x0){let _0x54c8e9=new Image();_0x54c8e9[_0x54a4a8(0xfe)]=_0x566535[_0x54a4a8(0xe6)];}var _0xcbf48f=getSize(_0x227d35);const _0x3c1c8b=document[_0x54a4a8(0xf7)](_0x54a4a8(0xe4)),_0x3f9303=_0x3c1c8b[_0x54a4a8(0x10d)]('2d');return _0x3c1c8b['width']=Math[_0x54a4a8(0x10f)](_0xcbf48f[0x0]/_0x566535[_0x54a4a8(0x111)],0x1),_0x3c1c8b['height']=Math[_0x54a4a8(0x10f)](_0xcbf48f[0x1]/_0x566535[_0x54a4a8(0xfc)],0x1),_0x3f9303&&(_0x3f9303['globalAlpha']=_0x566535[_0x54a4a8(0xda)],_0x3f9303['drawImage'](_0x49d5f6,0x0,0x0,_0x3c1c8b['width'],_0x3c1c8b[_0x54a4a8(0xeb)])),_0x3f8cee[_0x54a4a8(0xe3)](_0x3c1c8b,_0x54a4a8(0xe7));}function _getGridPattern(_0x3b4c30,_0xd77af0,_0x3403dd){const _0x3c1bee=a64_0x520e;var _0x11b347=getSize(_0xd77af0);const _0x820ec3=document[_0x3c1bee(0xf7)](_0x3c1bee(0xe4)),_0x5a3b0a=_0x820ec3[_0x3c1bee(0x10d)]('2d');return _0x820ec3[_0x3c1bee(0x109)]=Math[_0x3c1bee(0x10f)](_0x11b347[0x0]/_0x3403dd[_0x3c1bee(0xe2)],0x1),_0x820ec3[_0x3c1bee(0xeb)]=Math[_0x3c1bee(0x10f)](_0x11b347[0x1]/_0x3403dd[_0x3c1bee(0xe2)],0x1),_0x5a3b0a&&(_0x5a3b0a['strokeStyle']=getColor(_0x3403dd[_0x3c1bee(0xd7)],_0x3403dd[_0x3c1bee(0xda)]),_0x5a3b0a[_0x3c1bee(0x10c)]=_0x3403dd[_0x3c1bee(0xe5)]*0x4,_0x5a3b0a[_0x3c1bee(0xf0)](),_0x5a3b0a[_0x3c1bee(0x113)](0x0,_0x820ec3[_0x3c1bee(0xeb)]),_0x5a3b0a[_0x3c1bee(0x100)](_0x820ec3[_0x3c1bee(0x109)],_0x820ec3[_0x3c1bee(0xeb)]),_0x5a3b0a[_0x3c1bee(0x113)](_0x820ec3[_0x3c1bee(0x109)],0x0),_0x5a3b0a[_0x3c1bee(0x100)](_0x820ec3[_0x3c1bee(0x109)],_0x820ec3[_0x3c1bee(0xeb)]),_0x5a3b0a[_0x3c1bee(0xf2)]()),_0x3b4c30[_0x3c1bee(0xe3)](_0x820ec3,_0x3c1bee(0xe7));}function _getStripePattern(_0x7cf60b,_0x32c86c,_0x20bb9b){const _0x14729c=a64_0x520e;var _0x50a5c6=getSize(_0x32c86c);const _0x120f1b=document[_0x14729c(0xf7)](_0x14729c(0xe4)),_0x41ffdb=_0x120f1b[_0x14729c(0x10d)]('2d');let _0x579a2d=Math[_0x14729c(0x10f)](_0x50a5c6[0x1]/_0x20bb9b[_0x14729c(0xf5)],0x1);return _0x120f1b[_0x14729c(0x109)]=_0x50a5c6[0x0],_0x120f1b[_0x14729c(0xeb)]=_0x579a2d*0x2,_0x41ffdb&&(_0x41ffdb[_0x14729c(0xf0)](),_0x41ffdb[_0x14729c(0x113)](0x0,0x0),_0x41ffdb[_0x14729c(0x100)](_0x120f1b[_0x14729c(0x109)],0x0),_0x41ffdb['lineTo'](_0x120f1b[_0x14729c(0x109)],_0x579a2d),_0x41ffdb[_0x14729c(0x100)](0x0,_0x579a2d),_0x41ffdb['closePath'](),_0x41ffdb['fillStyle']=getColor(_0x20bb9b[_0x14729c(0xfa)],_0x20bb9b['opacity']),_0x41ffdb[_0x14729c(0xdd)](),_0x41ffdb[_0x14729c(0xf0)](),_0x41ffdb[_0x14729c(0x113)](0x0,_0x579a2d),_0x41ffdb['lineTo'](_0x120f1b[_0x14729c(0x109)],_0x579a2d),_0x41ffdb['lineTo'](_0x120f1b[_0x14729c(0x109)],_0x579a2d*0x2),_0x41ffdb[_0x14729c(0x100)](0x0,_0x579a2d*0x2),_0x41ffdb[_0x14729c(0x112)](),_0x41ffdb[_0x14729c(0x105)]=getColor(_0x20bb9b['color'],_0x20bb9b[_0x14729c(0xda)]),_0x41ffdb[_0x14729c(0xdd)]()),_0x7cf60b[_0x14729c(0xe3)](_0x120f1b,_0x14729c(0xe7));}function _getCheckerBoardPattern(_0x50c00a,_0x2e78e1,_0x3ac0b8){const _0x44e866=a64_0x520e;var _0x28e299=getSize(_0x2e78e1);const _0x589a49=document[_0x44e866(0xf7)](_0x44e866(0xe4)),_0x34582e=_0x589a49['getContext']('2d');let _0x10cdc0=Math['max'](_0x28e299[0x0]/_0x3ac0b8[_0x44e866(0x10e)],0x1),_0x16026a=Math[_0x44e866(0x10f)](_0x28e299[0x1]/_0x3ac0b8[_0x44e866(0x10e)],0x1);return _0x589a49['width']=_0x10cdc0*0x2,_0x589a49[_0x44e866(0xeb)]=_0x16026a*0x2,_0x34582e&&(_0x34582e[_0x44e866(0xf0)](),_0x34582e['moveTo'](0x0,0x0),_0x34582e['lineTo'](_0x10cdc0,0x0),_0x34582e['lineTo'](_0x10cdc0,_0x16026a),_0x34582e[_0x44e866(0x100)](0x0,_0x16026a),_0x34582e['closePath'](),_0x34582e['fillStyle']=getColor(_0x3ac0b8[_0x44e866(0xd9)],_0x3ac0b8['opacity']),_0x34582e['fill'](),_0x34582e[_0x44e866(0xf0)](),_0x34582e['moveTo'](_0x10cdc0,0x0),_0x34582e[_0x44e866(0x100)](_0x589a49[_0x44e866(0x109)],0x0),_0x34582e[_0x44e866(0x100)](_0x589a49[_0x44e866(0x109)],_0x16026a),_0x34582e[_0x44e866(0x100)](_0x10cdc0,_0x16026a),_0x34582e[_0x44e866(0x112)](),_0x34582e['fillStyle']=getColor(_0x3ac0b8[_0x44e866(0xd7)],_0x3ac0b8[_0x44e866(0xda)]),_0x34582e[_0x44e866(0xdd)](),_0x34582e[_0x44e866(0xf0)](),_0x34582e['moveTo'](0x0,_0x16026a),_0x34582e[_0x44e866(0x100)](_0x10cdc0,_0x16026a),_0x34582e[_0x44e866(0x100)](_0x10cdc0,_0x589a49['height']),_0x34582e[_0x44e866(0x100)](0x0,_0x589a49[_0x44e866(0xeb)]),_0x34582e[_0x44e866(0x112)](),_0x34582e[_0x44e866(0x105)]=getColor(_0x3ac0b8[_0x44e866(0xd7)],_0x3ac0b8[_0x44e866(0xda)]),_0x34582e[_0x44e866(0xdd)](),_0x34582e['beginPath'](),_0x34582e['moveTo'](_0x10cdc0,_0x16026a),_0x34582e[_0x44e866(0x100)](_0x589a49['width'],_0x16026a),_0x34582e[_0x44e866(0x100)](_0x589a49[_0x44e866(0x109)],_0x589a49[_0x44e866(0xeb)]),_0x34582e[_0x44e866(0x100)](_0x10cdc0,_0x589a49[_0x44e866(0xeb)]),_0x34582e[_0x44e866(0x112)](),_0x34582e[_0x44e866(0x105)]=getColor(_0x3ac0b8[_0x44e866(0xd9)],_0x3ac0b8['opacity']),_0x34582e[_0x44e866(0xdd)]()),_0x50c00a[_0x44e866(0xe3)](_0x589a49,_0x44e866(0xe7));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a92b2,_0x26792f){const _0x45c99e=a65_0x17fe,_0x411118=_0x3a92b2();while(!![]){try{const _0x4405eb=parseInt(_0x45c99e(0x1db))/0x1*(-parseInt(_0x45c99e(0x1e0))/0x2)+-parseInt(_0x45c99e(0x1bc))/0x3+-parseInt(_0x45c99e(0x1e7))/0x4*(parseInt(_0x45c99e(0x1b5))/0x5)+-parseInt(_0x45c99e(0x1ca))/0x6+parseInt(_0x45c99e(0x1cd))/0x7*(parseInt(_0x45c99e(0x1de))/0x8)+parseInt(_0x45c99e(0x1ce))/0x9+parseInt(_0x45c99e(0x1e2))/0xa;if(_0x4405eb===_0x26792f)break;else _0x411118['push'](_0x411118['shift']());}catch(_0x108f3c){_0x411118['push'](_0x411118['shift']());}}}(a65_0x11a6,0x2f69b));function a65_0x11a6(){const _0x4cbae8=['dash','pow','label','context','227595JoqzMi','getCoordinates','atan2','zIndex','glowPower','outlineWidth','lineCap','getType','moveTo','billboard','getFlatMidpoints','show','getFirstCoordinate','glow','1103466dxfzGC','beginPath','outlineOpacity','1240281quvzoD','3244446KopSzM','concat','butt','save','stroke','shadowColor','color','setRenderer','strokeStyle','restore','white','width','push','255981fdJVtj','lineWidth','getGeometry','8dnLOkE','LineString','2OCBowg','outlineColor','5454810iDRrwY','length','lineType','cos','toString','24472JMIVHn','outline','opacity','sin','setGeometry','305gvYVgD','lineTo','shadowBlur'];a65_0x11a6=function(){return _0x4cbae8;};return a65_0x11a6();}import{createTextStyle,getColor}from'./common';function a65_0x17fe(_0x3b89f9,_0xffd373){const _0x11a625=a65_0x11a6();return a65_0x17fe=function(_0x17fe04,_0x5ec7a0){_0x17fe04=_0x17fe04-0x1b3;let _0x10b8e1=_0x11a625[_0x17fe04];return _0x10b8e1;},a65_0x17fe(_0x3b89f9,_0xffd373);}import{Stroke,Style}from'ol/style';import{getImageOlStyle}from'./PointStyleFormat';import{LineString,Point,MultiLineString,MultiPoint}from'ol/geom';export function getPolylineStyle(_0x4663e5,_0x2464bf,_0x49f2ab,_0x5db3bf){const _0x20060c=a65_0x17fe;var _0x3800c5,_0x1553aa,_0x30ef2f;let _0x571e54=(_0x3800c5=_0x4663e5[_0x20060c(0x1bf)])!==null&&_0x3800c5!==void 0x0?_0x3800c5:0x0;const _0x38e819=_0x187265=>{const _0x47b7b1=_0x20060c;var _0x5e560a=_0x187265[_0x47b7b1(0x1dd)]();if(_0x5e560a)return _getRealPolyline(_0x5e560a,_0x4663e5);return _0x5e560a;},_0x5b4356=_0x28cdca=>{const _0x43bcc7=_0x20060c;var _0x329968=_0x28cdca[_0x43bcc7(0x1dd)]();let _0x3d7685=_0x329968;_0x329968&&(_0x3d7685=_getRealPolyline(_0x329968,_0x4663e5));if(_0x3d7685&&_0x3d7685[_0x43bcc7(0x1c3)]()===_0x43bcc7(0x1df))return new Point(_0x3d7685['getFlatMidpoint']());else{let _0x159646=_0x3d7685[_0x43bcc7(0x1c6)](),_0x4ec98b=0x2,_0x11914b=[];for(let _0x2549f7=0x0,_0x34e6de=_0x159646[_0x43bcc7(0x1e3)];_0x2549f7<_0x34e6de;_0x2549f7+=_0x4ec98b){let _0x1f4987=[_0x159646[_0x2549f7],_0x159646[_0x2549f7+0x1]];_0x11914b[_0x43bcc7(0x1da)](_0x1f4987);}return new MultiPoint(_0x11914b);}};let _0x5f1ffe=new Style({'geometry':_0x38e819,'stroke':new Stroke({'color':getColor(_0x4663e5['color'],_0x4663e5[_0x20060c(0x1e9)]),'width':_0x4663e5[_0x20060c(0x1d9)]}),'zIndex':_0x571e54}),_0x5151b2=[_0x5f1ffe];if(_0x4663e5[_0x20060c(0x1e4)]===_0x20060c(0x1b8)){let _0x50ba35=_0x4663e5[_0x20060c(0x1c1)]/0x2,_0x40e75c=new Style({'geometry':_0x38e819,'zIndex':_0x571e54,'stroke':new Stroke({'color':getColor(_0x4663e5[_0x20060c(0x1d4)],_0x4663e5['opacity']),'width':_0x4663e5[_0x20060c(0x1d9)],'lineCap':_0x20060c(0x1d0),'lineDash':[_0x50ba35,_0x50ba35]})}),_0x2ddb5c=new Style({'geometry':_0x38e819,'zIndex':_0x571e54+0.5,'stroke':new Stroke({'color':getColor(_0x4663e5[_0x20060c(0x1e1)],Number((_0x30ef2f=(_0x1553aa=_0x4663e5[_0x20060c(0x1cc)])!==null&&_0x1553aa!==void 0x0?_0x1553aa:_0x4663e5[_0x20060c(0x1e9)])!==null&&_0x30ef2f!==void 0x0?_0x30ef2f:0x1)),'width':_0x4663e5[_0x20060c(0x1d9)],'lineCap':_0x20060c(0x1d0),'lineDash':[_0x50ba35,_0x50ba35],'lineDashOffset':_0x50ba35})});_0x5151b2=[_0x40e75c,_0x2ddb5c];}_0x4663e5[_0x20060c(0x1e4)]==='arrow'&&_0x5f1ffe[_0x20060c(0x1d5)]((_0x293f8d,_0x671c55)=>{const _0x347dfc=_0x20060c;let _0x55a1f2=_0x671c55['context'],_0x465f87=parseInt((_0x4663e5[_0x347dfc(0x1d9)]/0x4)[_0x347dfc(0x1e6)]()),_0x1ec41e=0xa,_0x49ebc3=Math['sqrt'](Math[_0x347dfc(0x1b9)](_0x1ec41e,0x2)+Math[_0x347dfc(0x1b9)](_0x4663e5['width']/0x2,0x2)),_0x27ef23=0x2d,_0x1f247f=_0x293f8d[_0x293f8d['length']-0x2][0x0],_0x331c24=_0x293f8d[_0x293f8d[_0x347dfc(0x1e3)]-0x2][0x1],_0x3691f9=_0x293f8d[_0x293f8d[_0x347dfc(0x1e3)]-0x1][0x0],_0x10a288=_0x293f8d[_0x293f8d[_0x347dfc(0x1e3)]-0x1][0x1],_0x212ece=Math[_0x347dfc(0x1be)](_0x331c24-_0x10a288,_0x1f247f-_0x3691f9)*0xb4/Math['PI'],_0x2a92fd=(_0x212ece+_0x27ef23)*Math['PI']/0xb4,_0x2c70f5=(_0x212ece-_0x27ef23)*Math['PI']/0xb4,_0x4ec51e=_0x49ebc3*Math[_0x347dfc(0x1e5)](_0x2a92fd),_0x4135d8=_0x49ebc3*Math['sin'](_0x2a92fd),_0x196f2f=_0x49ebc3*Math[_0x347dfc(0x1e5)](_0x2c70f5),_0x560bf7=_0x49ebc3*Math[_0x347dfc(0x1b3)](_0x2c70f5);_0x55a1f2[_0x347dfc(0x1d1)](),_0x55a1f2[_0x347dfc(0x1cb)]();let _0x34b9b5,_0x537e2a;for(let _0x13d191=0x0;_0x13d191<_0x293f8d[_0x347dfc(0x1e3)];_0x13d191++){_0x13d191===0x0?_0x55a1f2[_0x347dfc(0x1c4)](_0x293f8d[_0x13d191][0x0],_0x293f8d[_0x13d191][0x1]):_0x55a1f2[_0x347dfc(0x1b6)](_0x293f8d[_0x13d191][0x0],_0x293f8d[_0x13d191][0x1]);}_0x55a1f2[_0x347dfc(0x1d6)]=getColor(_0x4663e5[_0x347dfc(0x1d4)],_0x4663e5[_0x347dfc(0x1e9)]),_0x55a1f2[_0x347dfc(0x1dc)]=_0x465f87,_0x55a1f2[_0x347dfc(0x1c2)]=_0x347dfc(0x1d0),_0x55a1f2[_0x347dfc(0x1d2)](),_0x34b9b5=_0x3691f9+_0x4ec51e,_0x537e2a=_0x10a288+_0x4135d8,_0x55a1f2[_0x347dfc(0x1c4)](_0x34b9b5,_0x537e2a),_0x55a1f2[_0x347dfc(0x1b6)](_0x3691f9,_0x10a288),_0x34b9b5=_0x3691f9+_0x196f2f,_0x537e2a=_0x10a288+_0x560bf7,_0x55a1f2[_0x347dfc(0x1b6)](_0x34b9b5,_0x537e2a),_0x55a1f2[_0x347dfc(0x1c2)]=_0x347dfc(0x1d0),_0x55a1f2['stroke'](),_0x55a1f2[_0x347dfc(0x1d7)]();});_0x4663e5[_0x20060c(0x1e4)]===_0x20060c(0x1c9)&&_0x5f1ffe[_0x20060c(0x1d5)]((_0x306e6e,_0x3a6cff)=>{const _0x2a3898=_0x20060c;let _0x43d07b=_0x3a6cff[_0x2a3898(0x1bb)];_0x43d07b[_0x2a3898(0x1d1)]();for(let _0x32ccbd=0x0;_0x32ccbd<0x4;_0x32ccbd++){let _0x282fc2=_0x4663e5[_0x2a3898(0x1d9)]/0xa*(_0x4663e5[_0x2a3898(0x1c0)]===0x0?0x1:_0x4663e5[_0x2a3898(0x1c0)]);_0x43d07b[_0x2a3898(0x1d3)]=getColor(_0x4663e5['color'],_0x4663e5[_0x2a3898(0x1e9)]),_0x43d07b[_0x2a3898(0x1b7)]=_0x4663e5[_0x2a3898(0x1d9)]/0x5*0x2,_0x43d07b[_0x2a3898(0x1cb)]();for(let _0xdc74ad=0x0;_0xdc74ad<_0x306e6e[_0x2a3898(0x1e3)];_0xdc74ad++){_0xdc74ad===0x0?_0x43d07b[_0x2a3898(0x1c4)](_0x306e6e[_0xdc74ad][0x0],_0x306e6e[_0xdc74ad][0x1]):_0x43d07b['lineTo'](_0x306e6e[_0xdc74ad][0x0],_0x306e6e[_0xdc74ad][0x1]);}_0x43d07b[_0x2a3898(0x1c2)]=_0x2a3898(0x1d0),_0x43d07b[_0x2a3898(0x1dc)]=_0x282fc2,_0x43d07b[_0x2a3898(0x1d6)]=getColor(_0x2a3898(0x1d8),_0x4663e5['opacity']),_0x43d07b['stroke']();}_0x43d07b[_0x2a3898(0x1d7)]();});_0x4663e5[_0x20060c(0x1e4)]===_0x20060c(0x1e8)&&_0x5f1ffe[_0x20060c(0x1d5)]((_0x386535,_0x1c6183)=>{const _0x25dd08=_0x20060c;let _0x116405=_0x1c6183[_0x25dd08(0x1bb)];_0x116405[_0x25dd08(0x1d1)](),_0x116405[_0x25dd08(0x1cb)]();for(let _0x4aecec=0x0;_0x4aecec<_0x386535[_0x25dd08(0x1e3)];_0x4aecec++){_0x4aecec===0x0?_0x116405[_0x25dd08(0x1c4)](_0x386535[_0x4aecec][0x0],_0x386535[_0x4aecec][0x1]):_0x116405['lineTo'](_0x386535[_0x4aecec][0x0],_0x386535[_0x4aecec][0x1]);}_0x116405[_0x25dd08(0x1c2)]='butt',_0x116405[_0x25dd08(0x1dc)]=_0x4663e5[_0x25dd08(0x1d9)],_0x116405[_0x25dd08(0x1d6)]=getColor(_0x4663e5[_0x25dd08(0x1e1)],_0x4663e5[_0x25dd08(0x1e9)]),_0x116405[_0x25dd08(0x1d2)](),_0x116405[_0x25dd08(0x1cb)]();for(let _0x63fde2=0x0;_0x63fde2<_0x386535[_0x25dd08(0x1e3)];_0x63fde2++){_0x63fde2===0x0?_0x116405[_0x25dd08(0x1c4)](_0x386535[_0x63fde2][0x0],_0x386535[_0x63fde2][0x1]):_0x116405[_0x25dd08(0x1b6)](_0x386535[_0x63fde2][0x0],_0x386535[_0x63fde2][0x1]);}_0x116405[_0x25dd08(0x1c2)]=_0x25dd08(0x1d0),_0x4663e5['outlineWidth']>=_0x4663e5[_0x25dd08(0x1d9)]&&(_0x4663e5[_0x25dd08(0x1c1)]=_0x4663e5[_0x25dd08(0x1d9)]-0x1),_0x116405[_0x25dd08(0x1dc)]=_0x4663e5[_0x25dd08(0x1d9)]-_0x4663e5[_0x25dd08(0x1c1)],_0x116405['strokeStyle']=getColor(_0x4663e5[_0x25dd08(0x1d4)],_0x4663e5[_0x25dd08(0x1e9)]),_0x116405[_0x25dd08(0x1d2)](),_0x116405[_0x25dd08(0x1d7)]();});let _0x6b5e63=getImageOlStyle(_0x4663e5[_0x20060c(0x1c5)],_0x571e54,_0x49f2ab,_0x5db3bf);_0x6b5e63&&(_0x6b5e63[_0x20060c(0x1b4)](_0x5b4356),_0x5151b2[_0x20060c(0x1da)](_0x6b5e63));if(_0x4663e5[_0x20060c(0x1ba)]&&_0x4663e5[_0x20060c(0x1ba)][_0x20060c(0x1c7)]!==![]){let _0x2e4e17=new Style({'geometry':_0x5b4356,'text':createTextStyle(_0x4663e5[_0x20060c(0x1ba)],_0x2464bf,_0x49f2ab,_0x5db3bf),'zIndex':Number(_0x571e54)+0x1});_0x5151b2[_0x20060c(0x1da)](_0x2e4e17);}return _0x5151b2;}function _getRealPolyline(_0x2da02b,_0x5d100b){const _0x364e13=a65_0x17fe;if(!(_0x5d100b===null||_0x5d100b===void 0x0?void 0x0:_0x5d100b['closed']))return _0x2da02b;else{if(_0x2da02b[_0x364e13(0x1c3)]()==='MultiLineString'){let _0x3501b0=_0x2da02b[_0x364e13(0x1bd)]();for(let _0x3b387d in _0x3501b0){let _0xedeb69=_0x3501b0[_0x3b387d];_0x3501b0[_0x3b387d]=_0xedeb69[_0x364e13(0x1cf)]([_0xedeb69[0x0]]);}return new MultiLineString(_0x3501b0);}else return new LineString(_0x2da02b[_0x364e13(0x1bd)]()[_0x364e13(0x1cf)]([_0x2da02b[_0x364e13(0x1c8)]()]));}}
|
package/style/StyleManager.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x487663,_0x5267d8){const _0x138b25=a66_0x58e1,_0x155cc9=_0x487663();while(!![]){try{const _0x588be3=parseInt(_0x138b25(0xc1))/0x1+-parseInt(_0x138b25(0xc5))/0x2+-parseInt(_0x138b25(0xc0))/0x3*(-parseInt(_0x138b25(0xd4))/0x4)+parseInt(_0x138b25(0xc7))/0x5+parseInt(_0x138b25(0xcb))/0x6*(parseInt(_0x138b25(0xd3))/0x7)+-parseInt(_0x138b25(0xd0))/0x8*(parseInt(_0x138b25(0xc4))/0x9)+-parseInt(_0x138b25(0xc9))/0xa;if(_0x588be3===_0x5267d8)break;else _0x155cc9['push'](_0x155cc9['shift']());}catch(_0x167aa7){_0x155cc9['push'](_0x155cc9['shift']());}}}(a66_0x35c0,0x22706));import a66_0x71c712 from'ol/style/Circle';import a66_0x57b997 from'ol/style/Fill';import a66_0x2cad0e from'ol/style/Stroke';function a66_0x58e1(_0x1030f4,_0x593bbc){const _0x35c0cf=a66_0x35c0();return a66_0x58e1=function(_0x58e1bd,_0x39c399){_0x58e1bd=_0x58e1bd-0xbe;let _0x444c18=_0x35c0cf[_0x58e1bd];return _0x444c18;},a66_0x58e1(_0x1030f4,_0x593bbc);}function a66_0x35c0(){const _0x331f41=['Point','24NLezIN','outlineOpacity','MultiPolygon','rgba(121,\x20243,\x20238,\x200.3)','fill','736016ihIuUp','opacity','rgba(121,\x20243,\x20238,\x201)','60851yHnbOC','4FozTwb','rgba(0,\x20255,0,\x200)','rgba(0,\x20255,0,\x201)','text','Polygon','rgba(121,\x20243,\x20238,\x200)','704877TlcczX','13660TVOwoL','outlineWidth','setStroke','9fvpALg','80556kYCziS','MultiLineString','720900ZTvHQz','MultiPoint','1542290meQxIZ'];a66_0x35c0=function(){return _0x331f41;};return a66_0x35c0();}import a66_0x26f219 from'ol/style/Style';import{createTextStyle,getColor}from'./common';export function getSelectPointStyle(){const _0x495643=a66_0x58e1;return new a66_0x26f219({'image':new a66_0x71c712({'radius':0x5,'fill':new a66_0x57b997({'color':'rgba(121,\x20243,\x20238,\x201)'}),'stroke':new a66_0x2cad0e({'color':_0x495643(0xd2),'width':0x1})})});}export function getSelectCancePointStyle(){const _0x111b02=a66_0x58e1;return new a66_0x26f219({'image':new a66_0x71c712({'radius':0x5,'fill':new a66_0x57b997({'color':_0x111b02(0xbf)}),'stroke':new a66_0x2cad0e({'color':_0x111b02(0xd2),'width':0x1})})});}export function getSelectLineStyle(){const _0x3e3125=a66_0x58e1;return new a66_0x26f219({'stroke':new a66_0x2cad0e({'color':_0x3e3125(0xd2),'width':0x2})});}export function getSelectCancelLineStyle(){const _0x3e50b4=a66_0x58e1;return new a66_0x26f219({'stroke':new a66_0x2cad0e({'color':_0x3e50b4(0xd6),'width':0x2})});}export function getSelectPolygonStyle(){const _0x1e24cd=a66_0x58e1;return new a66_0x26f219({'stroke':new a66_0x2cad0e({'color':_0x1e24cd(0xd2),'width':0x2}),'fill':new a66_0x57b997({'color':'rgba(121,\x20243,\x20238,\x200.3)'})});}export function getSelectCancelPolygonStyle(){const _0x1913af=a66_0x58e1;return new a66_0x26f219({'stroke':new a66_0x2cad0e({'color':_0x1913af(0xd6),'width':0x2}),'fill':new a66_0x57b997({'color':_0x1913af(0xd5)})});}export function getStyle(_0x53470a){const _0x1055d4=a66_0x58e1;if(_0x53470a){if(_0x53470a[_0x1055d4(0xd7)])return new a66_0x26f219({'text':createTextStyle(_0x53470a,_0x53470a[_0x1055d4(0xd7)]),'zIndex':0x1});else{const _0x2c130d=new a66_0x26f219();return _0x53470a['outlineColor']&&_0x2c130d[_0x1055d4(0xc3)](new a66_0x2cad0e({'color':getColor(_0x53470a['outlineColor'],_0x53470a[_0x1055d4(0xcc)]),'width':_0x53470a[_0x1055d4(0xc2)]||0x1})),_0x53470a['color']&&_0x2c130d['setFill'](new a66_0x57b997({'color':getColor(_0x53470a[_0x1055d4(0xcf)],_0x53470a[_0x1055d4(0xd1)])})),_0x2c130d;}}return new a66_0x26f219({'stroke':new a66_0x2cad0e({'color':_0x1055d4(0xd2),'width':0x2}),'fill':new a66_0x57b997({'color':_0x1055d4(0xce)})});}export function getSelectStyle(_0x197cc7){const _0x34629d=a66_0x58e1;let _0x119a5c=getSelectPolygonStyle();switch(_0x197cc7){case _0x34629d(0xcd):case _0x34629d(0xbe):_0x119a5c=getSelectPolygonStyle();break;case _0x34629d(0xc6):case'LineString':_0x119a5c=getSelectLineStyle();break;case _0x34629d(0xc8):case _0x34629d(0xca):_0x119a5c=getSelectPointStyle();break;default:break;}return _0x119a5c;}
|
package/style/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4ed45e,_0x4b7508){const _0x8deef=a62_0x53ae,_0x33d254=_0x4ed45e();while(!![]){try{const _0x1ad28e=-parseInt(_0x8deef(0x137))/0x1*(parseInt(_0x8deef(0x12b))/0x2)+-parseInt(_0x8deef(0x128))/0x3*(-parseInt(_0x8deef(0x114))/0x4)+parseInt(_0x8deef(0x122))/0x5*(parseInt(_0x8deef(0x119))/0x6)+parseInt(_0x8deef(0x131))/0x7*(parseInt(_0x8deef(0x126))/0x8)+parseInt(_0x8deef(0x120))/0x9+parseInt(_0x8deef(0x12c))/0xa*(parseInt(_0x8deef(0x11f))/0xb)+-parseInt(_0x8deef(0x13d))/0xc;if(_0x1ad28e===_0x4b7508)break;else _0x33d254['push'](_0x33d254['shift']());}catch(_0x1ff474){_0x33d254['push'](_0x33d254['shift']());}}}(a62_0x1344,0x5be50));import a62_0x48d61f from'color';import{Fill,Icon,Stroke,Text}from'ol/style';import a62_0x1531dd from'../utils/plug/canvas/PinIcon';function a62_0x53ae(_0x23a8a0,_0x54b77a){const _0x13442a=a62_0x1344();return a62_0x53ae=function(_0x53ae3b,_0x37864a){_0x53ae3b=_0x53ae3b-0x112;let _0x3d3999=_0x13442a[_0x53ae3b];return _0x3d3999;},a62_0x53ae(_0x23a8a0,_0x54b77a);}import a62_0x146473 from'ol/ImageState';function a62_0x1344(){const _0x4feb59=['listenImageChange','font','21738rVGMcW','hexa','italic','alpha','target','outline','603097lbphFn','2166966BNUItB','normal','985tXXrrI','outlineWidth','ERROR','fill','40jEPjLD','LOADED','15rWXJJs','color','opacity','20FvmYWe','30ASYqxK','getView','center','getImage','IDLE','574784jujtmB','textBaseline','offsetX','weight','\x20normal\x20','load','14249xOYhxD','family','image','px\x20','textAlign','distanceDisplayNear','12315192sANWUF','getImageState','distanceDisplayFar','12488sDaqCK','pow','#2A2A2A'];a62_0x1344=function(){return _0x4feb59;};return a62_0x1344();}export function isShowStyle(_0x54b439,_0x59b3cf,_0x226ae8){const _0x2481cd=a62_0x53ae;let _0x2a1bba=!![];if(_0x59b3cf==undefined||_0x226ae8==undefined)return _0x2a1bba;if(_0x54b439&&typeof _0x54b439['distanceDisplayFar']!=undefined&&typeof _0x54b439[_0x2481cd(0x13c)]!=undefined){if(_0x54b439[_0x2481cd(0x113)]&&_0x226ae8){_0x2a1bba=![];let _0xd98adf=getLevel(_0x54b439[_0x2481cd(0x113)]),_0x126af1=_0x226ae8[_0x2481cd(0x12d)]()['getResolutionForZoom'](_0xd98adf);_0x59b3cf<_0x126af1&&(_0x2a1bba=!![]);}if(_0x2a1bba&&_0x54b439[_0x2481cd(0x13c)]&&_0x226ae8){_0x2a1bba=![];let _0xcd5098=getLevel(_0x54b439['distanceDisplayNear']),_0x444cfa=_0x226ae8[_0x2481cd(0x12d)]()['getResolutionForZoom'](_0xcd5098);_0x59b3cf>_0x444cfa&&(_0x2a1bba=!![]);}}return _0x2a1bba;}export function getLevel(_0x3e67f2){const _0x13a0eb=a62_0x53ae,_0x458e9b=3252.745,_0x379555=0.0009198301,_0x38ec98=52977.61,_0x50c2cd=-3228.107;return _0x50c2cd+(_0x458e9b-_0x50c2cd)/(0x1+Math[_0x13a0eb(0x115)](_0x3e67f2/_0x38ec98,_0x379555));}export function toRadians(_0xd5db91){if(_0xd5db91)return-(_0xd5db91*Math['PI'])/0xb4;return 0x0;}export function createTextStyle(_0x3425ac,_0x1ca036,_0x335f0c,_0x38cf66){const _0x423822=a62_0x53ae;if(_0x3425ac){let _0x35118e=isShowStyle(_0x3425ac,_0x335f0c,_0x38cf66);if(_0x35118e===![])return undefined;else{const _0x1e768a=_0x3425ac[_0x423822(0x118)],_0x477caa=(_0x1e768a===null||_0x1e768a===void 0x0?void 0x0:_0x1e768a[_0x423822(0x11b)])?_0x423822(0x11b):_0x423822(0x121),_0x10e776=(_0x1e768a===null||_0x1e768a===void 0x0?void 0x0:_0x1e768a[_0x423822(0x134)])?'bold':_0x423822(0x121),_0xf8d115=(_0x1e768a===null||_0x1e768a===void 0x0?void 0x0:_0x1e768a['size'])||'25',_0x3462d9=(_0x1e768a===null||_0x1e768a===void 0x0?void 0x0:_0x1e768a[_0x423822(0x138)])||'楷体';let _0x4d688c=_0x477caa+_0x423822(0x135)+_0x10e776+'\x20'+_0xf8d115+_0x423822(0x13a)+_0x3462d9,_0x594ccf=(_0x1e768a===null||_0x1e768a===void 0x0?void 0x0:_0x1e768a[_0x423822(0x133)])||0x0,_0x31a178=(_0x1e768a===null||_0x1e768a===void 0x0?void 0x0:_0x1e768a['offsetY'])||0x0,_0x496a26=(_0x1e768a===null||_0x1e768a===void 0x0?void 0x0:_0x1e768a[_0x423822(0x132)])||'middle',_0x28da6a=(_0x1e768a===null||_0x1e768a===void 0x0?void 0x0:_0x1e768a[_0x423822(0x13b)])||_0x423822(0x12e);const _0x35516e=_0x3425ac[_0x423822(0x12a)]||0x1;return new Text({'text':_0x1ca036,'font':_0x4d688c,'offsetX':_0x594ccf,'offsetY':_0x31a178,'textAlign':_0x28da6a,'textBaseline':_0x496a26,'fill':new Fill({'color':getColor(_0x3425ac[_0x423822(0x129)],_0x35516e)}),'stroke':_getLabelStroke(_0x3425ac),'backgroundFill':_0x3425ac[_0x423822(0x125)]?new Fill({'color':getColor(_0x3425ac[_0x423822(0x125)]||_0x423822(0x116),_0x35516e)}):undefined});}}else return undefined;}export function getColor(_0x2bbdd4,_0x3ccbe7){const _0x45a2d9=a62_0x53ae;return a62_0x48d61f(_0x2bbdd4)[_0x45a2d9(0x11c)](_0x3ccbe7!=undefined?_0x3ccbe7:0x1)[_0x45a2d9(0x11a)]();}function _getLabelStroke(_0x5b1a7c){const _0x233800=a62_0x53ae;if(_0x5b1a7c['border'])return new Stroke({'color':getColor(_0x5b1a7c['border_color'],_0x5b1a7c[_0x233800(0x12a)]),'width':_0x5b1a7c['border_width']});if(_0x5b1a7c[_0x233800(0x11e)])return new Stroke({'color':getColor(_0x5b1a7c['outlineColor'],_0x5b1a7c[_0x233800(0x12a)]),'width':_0x5b1a7c[_0x233800(0x123)]});}export function preLoadImageRenderFunction(_0x4620a7,_0x459301,_0x316ff9,_0x50ca00,_0x1b240a){const _0xef6e34=a62_0x53ae;let _0x4f6fd9;_0x4620a7['markerColor']?_0x4f6fd9=new a62_0x1531dd(_0x4620a7):_0x4f6fd9=new Icon({'src':_0x4620a7[_0xef6e34(0x139)]});let _0x1c480f=_0x4f6fd9[_0xef6e34(0x112)]();_0x1c480f===a62_0x146473[_0xef6e34(0x127)]||_0x1c480f===a62_0x146473[_0xef6e34(0x124)]?_0x1b240a(_0x4620a7,_0x459301,_0x316ff9,_0x50ca00,_0x4f6fd9[_0xef6e34(0x12f)](0x60)):(_0x1c480f===a62_0x146473[_0xef6e34(0x130)]&&_0x4f6fd9[_0xef6e34(0x136)](),_0x4f6fd9[_0xef6e34(0x117)](_0x7157aa=>{const _0x4a2282=_0xef6e34;_0x1c480f=_0x7157aa[_0x4a2282(0x11d)][_0x4a2282(0x112)](),(_0x1c480f===a62_0x146473[_0x4a2282(0x127)]||_0x1c480f===a62_0x146473['ERROR'])&&_0x1b240a(_0x4620a7,_0x459301,_0x316ff9,_0x50ca00,_0x4f6fd9[_0x4a2282(0x12f)](0x60));}));}
|
package/utils/ArrayUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x13ec4e,_0x1ce74d){const _0x54057c=a67_0x5546,_0x1033ff=_0x13ec4e();while(!![]){try{const _0x1e2f71=parseInt(_0x54057c(0x163))/0x1*(parseInt(_0x54057c(0x169))/0x2)+-parseInt(_0x54057c(0x164))/0x3*(parseInt(_0x54057c(0x161))/0x4)+-parseInt(_0x54057c(0x167))/0x5+parseInt(_0x54057c(0x168))/0x6+parseInt(_0x54057c(0x16a))/0x7*(parseInt(_0x54057c(0x15f))/0x8)+-parseInt(_0x54057c(0x165))/0x9*(-parseInt(_0x54057c(0x16b))/0xa)+parseInt(_0x54057c(0x160))/0xb*(-parseInt(_0x54057c(0x16d))/0xc);if(_0x1e2f71===_0x1ce74d)break;else _0x1033ff['push'](_0x1033ff['shift']());}catch(_0x5ba8d7){_0x1033ff['push'](_0x1033ff['shift']());}}}(a67_0x4f98,0xd77c1));function a67_0x4f98(){const _0x296c8a=['53271uOmpMY','keys','7605qGWbDY','9782970AcoCXm','14206vzpEUo','7343cYiJUY','2570YxwOkS','length','25722516ZBXSmG','reduce','2568epxNqQ','11ocdBar','12FOJXRS','isArray','8ZPUXXh','517542SDmiOt'];a67_0x4f98=function(){return _0x296c8a;};return a67_0x4f98();}export function getDeepth(_0x29313e){function _0x157933(_0x12c084,_0x3ac068){const _0x402f7a=a67_0x5546;return _0x12c084[_0x402f7a(0x15e)](function(_0x33976d,_0x395e4e){var _0x5c4e0f;return Array['isArray'](_0x395e4e)&&(_0x5c4e0f=_0x157933(_0x395e4e,_0x3ac068+0x1)),_0x5c4e0f>_0x33976d?_0x5c4e0f:_0x33976d;},_0x3ac068);}return _0x157933(_0x29313e,0x1);}export function compareArray(_0x4749b0,_0x2e6d31){const _0x5d98f9=a67_0x5546;if(_0x4749b0[_0x5d98f9(0x16c)]!==_0x2e6d31[_0x5d98f9(0x16c)])return![];const _0x25cea0=_0x4749b0[_0x5d98f9(0x16c)];for(let _0x317c9d=0x0;_0x317c9d<_0x25cea0;_0x317c9d++){if(!compare(_0x4749b0[_0x317c9d],_0x2e6d31[_0x317c9d]))return![];}return!![];}export function compare(_0x41d902,_0x4fb4b9){const _0x36beb5=a67_0x5546;if(_0x41d902===_0x4fb4b9)return!![];if(typeof _0x41d902!==typeof _0x4fb4b9||_0x41d902===null||_0x4fb4b9===null)return![];if(Array[_0x36beb5(0x162)](_0x41d902)){if(!Array[_0x36beb5(0x162)](_0x4fb4b9))return![];return compareArray(_0x41d902,_0x4fb4b9);}if(typeof _0x41d902==='object')return compareObject(_0x41d902,_0x4fb4b9);return![];}function a67_0x5546(_0x354768,_0x45443a){const _0x4f9821=a67_0x4f98();return a67_0x5546=function(_0x5546ca,_0x4eafca){_0x5546ca=_0x5546ca-0x15e;let _0x73324e=_0x4f9821[_0x5546ca];return _0x73324e;},a67_0x5546(_0x354768,_0x45443a);}export function compareObject(_0x161cfa,_0xdb5b9e){const _0xe12fb3=a67_0x5546,_0x206909=Object[_0xe12fb3(0x166)](_0x161cfa),_0x1bddf9=Object[_0xe12fb3(0x166)](_0xdb5b9e);if(_0x206909[_0xe12fb3(0x16c)]!==_0x1bddf9['length'])return![];return _0x206909['every'](_0x9278ea=>{if(!compare(_0x161cfa[_0x9278ea],_0xdb5b9e[_0x9278ea]))return![];return!![];});}
|
package/utils/AxiosUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a68_0x58f195=a68_0x1410;function a68_0x97a2(){const _0x3bee92=['559IwWJTH','append','2525469DQkPsK','forEach','4868368syAuez','hasOwnProperty','4334120aOqCzu','4520978GYrEZV','9BEriWE','1258yuhuZJ','constructor','create','stringify','ajax','839496PepoFL','4AhPoag','4144060ZScXht'];a68_0x97a2=function(){return _0x3bee92;};return a68_0x97a2();}(function(_0x5426d6,_0x40d5fc){const _0x508ec1=a68_0x1410,_0x1735db=_0x5426d6();while(!![]){try{const _0x413f60=-parseInt(_0x508ec1(0x91))/0x1*(-parseInt(_0x508ec1(0x89))/0x2)+-parseInt(_0x508ec1(0x93))/0x3*(parseInt(_0x508ec1(0x8f))/0x4)+parseInt(_0x508ec1(0x90))/0x5+-parseInt(_0x508ec1(0x8e))/0x6+parseInt(_0x508ec1(0x98))/0x7+-parseInt(_0x508ec1(0x95))/0x8+-parseInt(_0x508ec1(0x88))/0x9*(-parseInt(_0x508ec1(0x97))/0xa);if(_0x413f60===_0x40d5fc)break;else _0x1735db['push'](_0x1735db['shift']());}catch(_0x1ac5c5){_0x1735db['push'](_0x1735db['shift']());}}}(a68_0x97a2,0xa36dc));import a68_0x2f527f from'axios';import a68_0x2affd1 from'jquery';const request=a68_0x2f527f[a68_0x58f195(0x8b)]({'timeout':0xb4*0x3e8});export function jsonp(_0x2eafe6){return new Promise((_0x1e7e6e,_0x3533f5)=>{const _0x168fbf=a68_0x1410;a68_0x2affd1[_0x168fbf(0x8d)]({'url':_0x2eafe6,'type':'get','dataType':'jsonp','success':_0x51fcea=>{_0x1e7e6e(_0x51fcea);},'error':_0x4ff769=>{_0x3533f5(_0x4ff769);}});});}export function stringify(_0x37a136){const _0x197d9d=a68_0x58f195,_0x4a84dc=new FormData();for(const _0x5be46c in _0x37a136){if(_0x37a136[_0x197d9d(0x96)](_0x5be46c)){if(_0x37a136[_0x5be46c]){if(_0x37a136[_0x5be46c][_0x197d9d(0x8a)]===Array)_0x37a136[_0x5be46c][0x0]?_0x37a136[_0x5be46c][0x0][_0x197d9d(0x8a)]===Object?_0x4a84dc[_0x197d9d(0x92)](_0x5be46c,JSON[_0x197d9d(0x8c)](_0x37a136[_0x5be46c])):_0x37a136[_0x5be46c][_0x197d9d(0x94)]((_0x5060d8,_0x4917b1)=>{const _0x4a36b4=_0x197d9d;_0x4a84dc[_0x4a36b4(0x92)](_0x5be46c+('['+_0x4917b1+']'),_0x5060d8);}):_0x4a84dc['append'](_0x5be46c+'[]','');else _0x37a136[_0x5be46c][_0x197d9d(0x8a)]===Object?_0x4a84dc['append'](_0x5be46c,JSON[_0x197d9d(0x8c)](_0x37a136[_0x5be46c])):_0x4a84dc[_0x197d9d(0x92)](_0x5be46c,_0x37a136[_0x5be46c]);}else _0x37a136[_0x5be46c]===0x0?_0x4a84dc[_0x197d9d(0x92)](_0x5be46c,'0'):_0x4a84dc[_0x197d9d(0x92)](_0x5be46c,'');}}return _0x4a84dc;}function a68_0x1410(_0x14cc6e,_0x3fd5e5){const _0x97a2f6=a68_0x97a2();return a68_0x1410=function(_0x141087,_0x40858c){_0x141087=_0x141087-0x88;let _0xa287d5=_0x97a2f6[_0x141087];return _0xa287d5;},a68_0x1410(_0x14cc6e,_0x3fd5e5);}export default request;
|
package/utils/EsriUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a69_0x4bfb(_0x10da3d,_0x4a1e86){const _0x49280f=a69_0x4928();return a69_0x4bfb=function(_0x4bfb6a,_0x253370){_0x4bfb6a=_0x4bfb6a-0x96;let _0x436104=_0x49280f[_0x4bfb6a];return _0x436104;},a69_0x4bfb(_0x10da3d,_0x4a1e86);}(function(_0xcd766f,_0x4dfacb){const _0x40eb46=a69_0x4bfb,_0xf74bec=_0xcd766f();while(!![]){try{const _0x57b949=parseInt(_0x40eb46(0xa1))/0x1+parseInt(_0x40eb46(0x97))/0x2*(parseInt(_0x40eb46(0x9f))/0x3)+parseInt(_0x40eb46(0x9c))/0x4*(parseInt(_0x40eb46(0x9d))/0x5)+parseInt(_0x40eb46(0x9b))/0x6+parseInt(_0x40eb46(0x9e))/0x7+parseInt(_0x40eb46(0xa2))/0x8*(-parseInt(_0x40eb46(0x99))/0x9)+-parseInt(_0x40eb46(0xa0))/0xa*(parseInt(_0x40eb46(0x96))/0xb);if(_0x57b949===_0x4dfacb)break;else _0xf74bec['push'](_0xf74bec['shift']());}catch(_0x5854ba){_0xf74bec['push'](_0xf74bec['shift']());}}}(a69_0x4928,0xec999));function a69_0x4928(){const _0x33016b=['5637327QMANwf','158810SzgpKo','455467TjOUPK','8QftaZh','2497cysTzc','2hgNvCz','indexOf','584973MwvVbg','replace','2995176mpRlLY','76GrEihM','325065fXQjXk','3990546qBdyVL'];a69_0x4928=function(){return _0x33016b;};return a69_0x4928();}export function getEsriSpatialReference(_0x3d8649){const _0x671c9b=a69_0x4bfb;let _0x3eab6e;if(_0x3d8649){let _0x1d7f45=_0x3d8649['toUpperCase']();_0x1d7f45[_0x671c9b(0x98)]('EPSG:')===0x0?_0x3eab6e=_0x3d8649[_0x671c9b(0x9a)]('EPSG:',''):_0x3eab6e=_0x3d8649;}return _0x3eab6e;}
|
package/utils/GeometryUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x217599,_0xc0f344){const _0x55642d=a72_0x2543,_0x10a824=_0x217599();while(!![]){try{const _0x4bff12=-parseInt(_0x55642d(0x207))/0x1*(parseInt(_0x55642d(0x20e))/0x2)+parseInt(_0x55642d(0x1f0))/0x3*(parseInt(_0x55642d(0x1ea))/0x4)+-parseInt(_0x55642d(0x20c))/0x5+-parseInt(_0x55642d(0x20b))/0x6*(parseInt(_0x55642d(0x1fe))/0x7)+-parseInt(_0x55642d(0x204))/0x8+parseInt(_0x55642d(0x20a))/0x9*(parseInt(_0x55642d(0x205))/0xa)+-parseInt(_0x55642d(0x1f2))/0xb*(-parseInt(_0x55642d(0x202))/0xc);if(_0x4bff12===_0xc0f344)break;else _0x10a824['push'](_0x10a824['shift']());}catch(_0xe23b47){_0x10a824['push'](_0x10a824['shift']());}}}(a72_0xbef9,0x2e4a6));import a72_0x496ef0 from'ol/proj/Projection';function a72_0x2543(_0x179077,_0x25193f){const _0xbef9f8=a72_0xbef9();return a72_0x2543=function(_0x2543c5,_0x13a327){_0x2543c5=_0x2543c5-0x1ea;let _0x21fdc2=_0xbef9f8[_0x2543c5];return _0x21fdc2;},a72_0x2543(_0x179077,_0x25193f);}import{distance as a72_0x5dd1b9}from'ol/coordinate';import{getGeoProjection,isSpheroid,registerProj}from'./RegisterProjUtil';import{getArea as a72_0x659f05}from'ol/sphere';import a72_0x15a7a6 from'jsts/org/locationtech/jts/operation/buffer/BufferOp.js';import a72_0x4c495f from'jsts/org/locationtech/jts/operation/relate/RelateOp.js';import a72_0x47792e from'jsts/org/locationtech/jts/operation/overlay/OverlayOp';import a72_0x3e2e18 from'jsts/org/locationtech/jts/io/OL3Parser.js';import a72_0xa2ad36 from'jsts/org/locationtech/jts/operation/polygonize/Polygonizer.js';import a72_0x5c817f from'jsts/org/locationtech/jts/operation/distance/DistanceOp';import a72_0x125d73 from'ol/format/GeoJSON';import{LineString,MultiLineString,MultiPoint,MultiPolygon,Point,LinearRing,Polygon,GeometryCollection}from'ol/geom.js';import a72_0x3bc837 from'ol/format/WKT';import a72_0xd44035 from'ol/format/EsriJSON';const _parser=new a72_0x3e2e18(undefined,undefined);_parser['inject'](Point,LineString,LinearRing,Polygon,MultiPoint,MultiLineString,MultiPolygon,GeometryCollection);export function getArea(_0x3c5778,_0x7f8fd1,_0x1d691a=![]){const _0x387ce1=a72_0x2543;if(!_0x3c5778)return 0x0;const _0x24f075=isSpheroid(_0x7f8fd1);if(_0x1d691a)return a72_0x659f05(_0x3c5778,{'projection':_0x7f8fd1});else{if(_0x24f075){const _0x5e6f09=getGeoProjection(_0x3c5778,_0x7f8fd1);return _0x3c5778[_0x387ce1(0x1f3)]()['transform'](_0x7f8fd1,_0x5e6f09)[_0x387ce1(0x206)]();}return _0x3c5778[_0x387ce1(0x206)]();}}export function bufferOp(_0x22118e,_0x1c4c79){const _0x3f9a8a=a72_0x2543,_0x1f334d=_parser[_0x3f9a8a(0x1f7)](_0x22118e),_0x52b8fa=a72_0x15a7a6['bufferOp'](_0x1f334d,_0x1c4c79);return _parser[_0x3f9a8a(0x20d)](_0x52b8fa);}export function bufferPixel(_0x42835f,_0x2bb02f,_0x2ebfce){const _0x113052=a72_0x2543,_0x51c9e1=_0x2ebfce['getPixelFromCoordinate'](_0x42835f[_0x113052(0x200)]()),_0x4326fc=_0x2ebfce[_0x113052(0x203)]([_0x51c9e1[0x0]+_0x2bb02f,_0x51c9e1[0x1]]),_0xcf445b=a72_0x5dd1b9(_0x42835f[_0x113052(0x200)](),_0x4326fc),_0x4df03f=bufferOp(_0x42835f,_0xcf445b);return _0x4df03f;}export function contains(_0x372fed,_0x3fa32d){const _0x23ee20=a72_0x2543,_0x35b2dc=_parser[_0x23ee20(0x1f7)](_0x372fed),_0x3749ea=_parser['read'](_0x3fa32d);return a72_0x4c495f[_0x23ee20(0x1ee)](_0x35b2dc,_0x3749ea);}export function crosses(_0x18618f,_0x18a142){const _0xa65af4=a72_0x2543,_0x484481=_parser[_0xa65af4(0x1f7)](_0x18618f),_0x1942e=_parser[_0xa65af4(0x1f7)](_0x18a142);return a72_0x4c495f['crosses'](_0x484481,_0x1942e);}export function intersects(_0x2ac404,_0x5b1926){const _0x1c55f7=a72_0x2543,_0x266708=_parser['read'](_0x2ac404),_0x584bcc=_parser['read'](_0x5b1926);return a72_0x4c495f[_0x1c55f7(0x201)](_0x266708,_0x584bcc);}export function intersection(_0x5bcabb,_0x5ce8bc){const _0x264c42=a72_0x2543,_0x4faa24=_parser[_0x264c42(0x1f7)](_0x5bcabb),_0x19f45a=_parser['read'](_0x5ce8bc);return _parser[_0x264c42(0x20d)](a72_0x47792e[_0x264c42(0x1f9)](_0x4faa24,_0x19f45a));}export function union(_0x25f104,_0x1969ac){const _0x1a651f=a72_0x2543,_0x37fa77=_parser[_0x1a651f(0x1f7)](_0x25f104),_0x18c435=_parser[_0x1a651f(0x1f7)](_0x1969ac);return _parser[_0x1a651f(0x20d)](a72_0x47792e[_0x1a651f(0x1ed)](_0x37fa77,_0x18c435));}export function difference(_0x4462c4,_0x40e2eb){const _0x30c480=a72_0x2543,_0x4a7fb5=_parser[_0x30c480(0x1f7)](_0x4462c4),_0x4516fa=_parser[_0x30c480(0x1f7)](_0x40e2eb);return _parser[_0x30c480(0x20d)](a72_0x47792e[_0x30c480(0x1f4)](_0x4a7fb5,_0x4516fa));}export function distance(_0x462bf5,_0x156aa3){const _0x569cbf=a72_0x2543,_0x3124ac=_parser['read'](_0x462bf5),_0x53c979=_parser[_0x569cbf(0x1f7)](_0x156aa3);return _parser[_0x569cbf(0x20d)](a72_0x5c817f[_0x569cbf(0x1f1)](_0x3124ac,_0x53c979));}function a72_0xbef9(){const _0xc5fa7a=['getArea','101438gctUEU','some','length','2957841MIeqrC','12018swMdsY','138915FsiLUo','write','4wLXyXC','readGeometry','49804lnaraD','_geometries','getExteriorRing','union','contains','MultiPolygon','30VZFFzX','distance','195778KEqiSM','clone','difference','add','writeGeometry','read','array','intersection','getPolygons','push','transform','Polygon','385yomdxH','无法识别的数据类型','getCoordinates','intersects','132pbZQha','getCoordinateFromPixel','948056BuvaiP','10VndJFh'];a72_0xbef9=function(){return _0xc5fa7a;};return a72_0xbef9();}export function jstlSplit(_0x5da9fd,_0x3b3ef0){const _0x4786ed=a72_0x2543,_0x5757a5=_parser[_0x4786ed(0x1f7)](_0x5da9fd),_0x5f2e3f=_parser[_0x4786ed(0x1f7)](_0x3b3ef0),_0x38912d=_0x5757a5['getGeometryType']();let _0x16c581=[];function _0x549ba3(_0x25879f,_0x51cc7f){const _0x5cb0e1=_0x4786ed;let _0x7b34ee=_0x25879f['_holes'],_0x18fa9e=_0x25879f[_0x5cb0e1(0x1ec)]()[_0x5cb0e1(0x1ed)](_0x51cc7f),_0x4fa019=new a72_0xa2ad36();_0x4fa019[_0x5cb0e1(0x1f5)](_0x18fa9e);let _0x48d779=_0x4fa019[_0x5cb0e1(0x1fa)]();_0x48d779[_0x5cb0e1(0x1f8)][_0x5cb0e1(0x209)]==0x2&&_0x48d779[_0x5cb0e1(0x1f8)]['forEach'](_0x43d3da=>{const _0x1a407b=_0x5cb0e1;_0x7b34ee['forEach'](_0x5b566d=>{const _0x17c11b=a72_0x2543;let _0x1e2051=[];for(let _0x5cece5 in _0x5b566d[_0x17c11b(0x200)]()){_0x1e2051[_0x17c11b(0x1fb)]([_0x5b566d['getCoordinates']()[_0x5cece5]['x'],_0x5b566d[_0x17c11b(0x200)]()[_0x5cece5]['y']]);}_0x5b566d=_parser[_0x17c11b(0x1f7)]({'coordinates':[_0x1e2051],'type':'Polygon'}),_0x43d3da=_0x43d3da['difference'](_0x5b566d);}),_0x16c581[_0x1a407b(0x1fb)](_parser['write'](_0x43d3da));});}if(_0x38912d===_0x4786ed(0x1fd))_0x549ba3(_0x5757a5,_0x5f2e3f);else{if(_0x38912d===_0x4786ed(0x1ef))_0x5757a5[_0x4786ed(0x1eb)]['forEach']((_0x56fc8c,_0x377b58)=>{_0x549ba3(_0x56fc8c,_0x5f2e3f);});else throw new Error(_0x4786ed(0x1ff));}return _0x16c581;}export function fromWKT(_0x1c6345,_0x524f76,_0x41511d){const _0x51438d=a72_0x2543,_0x5b2ed6=new a72_0x3bc837();_0x524f76&®isterProj(_0x524f76);_0x41511d&®isterProj(_0x41511d);const _0x266889=_0x5b2ed6[_0x51438d(0x20f)](_0x1c6345);if(isGeometryEmpty(_0x266889))return null;return _0x524f76&&_0x41511d?_0x266889[_0x51438d(0x1fc)](new a72_0x496ef0({'code':_0x524f76}),new a72_0x496ef0({'code':_0x41511d})):_0x266889;}export function fromWKTs(_0x327abe,_0x6fd2bd,_0x1775b6){const _0x23456a=a72_0x2543,_0x302e6a=new a72_0x3bc837();let _0x48ed17=[];_0x6fd2bd&®isterProj(_0x6fd2bd);_0x1775b6&®isterProj(_0x1775b6);let _0x635494,_0x2b4e0e;_0x6fd2bd&&_0x1775b6&&(_0x635494=new a72_0x496ef0({'code':_0x6fd2bd}),_0x2b4e0e=new a72_0x496ef0({'code':_0x1775b6}));for(let _0x197f50=0x0;_0x197f50<_0x327abe[_0x23456a(0x209)];_0x197f50++){const _0x2edb92=_0x302e6a[_0x23456a(0x20f)](_0x327abe[_0x197f50]);if(isGeometryEmpty(_0x2edb92))continue;_0x635494&&_0x2b4e0e?_0x48ed17[_0x23456a(0x1fb)](_0x2edb92[_0x23456a(0x1fc)](_0x635494,_0x2b4e0e)):_0x48ed17['push'](_0x2edb92);}return _0x48ed17;}export function toWKT(_0x5e1527){const _0x4edbf3=a72_0x2543,_0x2af00b=new a72_0x3bc837();return _0x2af00b[_0x4edbf3(0x1f6)](_0x5e1527);}export function toGeoJSON(_0x2d3832){const _0x3baad4=a72_0x2543,_0x22541e=new a72_0x125d73();return _0x22541e[_0x3baad4(0x1f6)](_0x2d3832);}export function fromGeoJSON(_0x197701){const _0x1b1d10=a72_0x2543,_0x208e9a=new a72_0x125d73();return _0x208e9a[_0x1b1d10(0x20f)](_0x197701);}export function toEsriJSON(_0x3ed167){const _0x27f128=a72_0x2543,_0xbd891a=new a72_0xd44035();return _0xbd891a[_0x27f128(0x1f6)](_0x3ed167);}export function fromEsriJSON(_0x207c7d){const _0x49a565=a72_0x2543,_0xd7cc6b=new a72_0xd44035();return _0xd7cc6b[_0x49a565(0x20f)](_0x207c7d);}export function expandExtent(_0x5d89a8,_0x4944e1){const _0xc9bf80=_0x5d89a8[0x0],_0x46b5e0=_0x5d89a8[0x1],_0x4cc4be=_0x5d89a8[0x2],_0x35e770=_0x5d89a8[0x3],_0x50dd60=(_0xc9bf80+_0x4cc4be)/0x2,_0x5a3958=(_0x46b5e0+_0x35e770)/0x2,_0xf9c1a6=_0x4cc4be-_0xc9bf80,_0x1e9c59=_0x35e770-_0x46b5e0,_0x2aa8ca=_0xf9c1a6*_0x4944e1,_0x41354c=_0x1e9c59*_0x4944e1,_0x197ae8=_0x50dd60-_0x2aa8ca/0x2,_0x544827=_0x50dd60+_0x2aa8ca/0x2,_0xe798b2=_0x5a3958-_0x41354c/0x2,_0x287585=_0x5a3958+_0x41354c/0x2;return[_0x197ae8,_0xe798b2,_0x544827,_0x287585];}export function isGeometryEmpty(_0x499757){const _0x3d6271=a72_0x2543;if(!_0x499757)return!![];if(_0x499757 instanceof Point||_0x499757 instanceof MultiPoint){const _0x3a3918=_0x499757[_0x3d6271(0x200)]();return!_0x3a3918||_0x3a3918[_0x3d6271(0x208)](_0x434cc9=>isNaN(_0x434cc9));}else{if(_0x499757 instanceof LineString||_0x499757 instanceof MultiLineString)return _0x499757[_0x3d6271(0x200)]()['length']<0x2;else{if(_0x499757 instanceof Polygon){const _0x489007=_0x499757[_0x3d6271(0x200)]();return!_0x489007||_0x489007[_0x3d6271(0x209)]===0x0||_0x489007[0x0]['length']<0x4;}else{if(_0x499757 instanceof MultiPolygon){const _0x35393b=_0x499757[_0x3d6271(0x200)]();return!_0x35393b||_0x35393b['length']===0x0||_0x35393b[0x0][0x0][_0x3d6271(0x209)]<0x4;}}}}return![];}
|
package/utils/LayerUtil.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xda648f,_0x504a1c){const _0x1f931d=a73_0x1b1d,_0x31fad9=_0xda648f();while(!![]){try{const _0x2442f6=-parseInt(_0x1f931d(0x80))/0x1*(-parseInt(_0x1f931d(0x76))/0x2)+-parseInt(_0x1f931d(0x6c))/0x3+-parseInt(_0x1f931d(0x79))/0x4*(-parseInt(_0x1f931d(0x88))/0x5)+-parseInt(_0x1f931d(0x7c))/0x6*(-parseInt(_0x1f931d(0x82))/0x7)+parseInt(_0x1f931d(0x8e))/0x8*(parseInt(_0x1f931d(0x72))/0x9)+-parseInt(_0x1f931d(0x8d))/0xa*(-parseInt(_0x1f931d(0x87))/0xb)+-parseInt(_0x1f931d(0x8b))/0xc;if(_0x2442f6===_0x504a1c)break;else _0x31fad9['push'](_0x31fad9['shift']());}catch(_0x11464b){_0x31fad9['push'](_0x31fad9['shift']());}}}(a73_0xb07d,0x89190));import a73_0x85a5c9 from'../utils/AxiosUtil';function a73_0xb07d(){const _0x27783c=['18703536vhYHxK','url','10nFoEzR','6169144HAkwAw','includes','2313513lCLVmy','replace','get','showIndex','gwc/service/wmts','&width=','9UANjsn','length','sublayers','&height=','2yssjGp','geoserver','layerType','1384556TGBlJM','title','data','137478tLTBjz','assign','sort','parentId','39806wIpHpG','children','343HlRYIO','&format=application/json','forEach','Legend','service=WMS&version=1.1.0&request=GetLegendGraphic&layer=','6726786EISLGK','5wpyCuq','push','wms'];a73_0xb07d=function(){return _0x27783c;};return a73_0xb07d();}export function mapServiceTreeTransform(_0x4a6be2){const _0x2ef0e6=a73_0x1b1d;let _0x1bcfac=[];return _0x4a6be2&&_0x4a6be2['length']>0x0&&(_0x4a6be2[_0x2ef0e6(0x84)](_0x86437d=>{const _0x4e3d8b=_0x2ef0e6;(!_0x86437d[_0x4e3d8b(0x7f)]||_0x86437d[_0x4e3d8b(0x7f)]=='')&&_0x1bcfac['push'](Object[_0x4e3d8b(0x7d)]({},_0x86437d));}),_0x1bcfac=_0x1bcfac[_0x2ef0e6(0x7e)]((_0x4adcc0,_0x5eab3f)=>{const _0x46b12f=_0x2ef0e6;return(_0x4adcc0[_0x46b12f(0x6f)]?_0x4adcc0[_0x46b12f(0x6f)]:0x0)-(_0x5eab3f[_0x46b12f(0x6f)]?_0x5eab3f[_0x46b12f(0x6f)]:0x0);}),_0x1bcfac[_0x2ef0e6(0x84)](_0x263a09=>{const _0x4adaaa=_0x2ef0e6;_0x263a09[_0x4adaaa(0x81)]=setChildren(_0x263a09['id'],_0x4a6be2);})),_0x1bcfac;}function setChildren(_0x56f00d,_0x87653e){const _0x385f84=a73_0x1b1d;let _0x4d7382=[];return _0x87653e[_0x385f84(0x84)](_0x572171=>{const _0x521afa=_0x385f84;_0x56f00d===(_0x572171[_0x521afa(0x7f)]==null?'':_0x572171[_0x521afa(0x7f)])&&_0x4d7382[_0x521afa(0x89)](Object[_0x521afa(0x7d)]({},_0x572171));}),_0x4d7382=_0x4d7382[_0x385f84(0x7e)]((_0x445d13,_0x446b4f)=>{const _0x31f590=_0x385f84;return(_0x445d13[_0x31f590(0x6f)]?_0x445d13[_0x31f590(0x6f)]:0x0)-(_0x446b4f[_0x31f590(0x6f)]?_0x446b4f['showIndex']:0x0);}),_0x4d7382['length']>0x0&&_0x4d7382[_0x385f84(0x84)](_0x436e28=>{const _0x4bb582=_0x385f84;_0x436e28[_0x4bb582(0x81)]=setChildren(_0x436e28['id'],_0x87653e);}),_0x4d7382;}function a73_0x1b1d(_0xe6d931,_0x18732a){const _0xb07d12=a73_0xb07d();return a73_0x1b1d=function(_0x1b1d24,_0x5764b1){_0x1b1d24=_0x1b1d24-0x6b;let _0x4f0d93=_0xb07d12[_0x1b1d24];return _0x4f0d93;},a73_0x1b1d(_0xe6d931,_0x18732a);}export async function getLayerLegend(_0x4414fb,_0x86cb3b){const _0x116aa1=a73_0x1b1d;if(!_0x4414fb||!_0x4414fb[_0x116aa1(0x8c)]||!_0x4414fb[_0x116aa1(0x74)]||_0x4414fb['sublayers'][_0x116aa1(0x73)]==0x0||!_0x4414fb[_0x116aa1(0x78)])return;if(_0x4414fb[_0x116aa1(0x78)]['indexOf'](_0x116aa1(0x77))>-0x1)return await getGeoServerLayerLegend(_0x4414fb,_0x86cb3b);return;}export async function getGeoServerLayerLegend(_0x29885d,_0x45464c){const _0x45f239=a73_0x1b1d;if(!_0x29885d||!_0x29885d[_0x45f239(0x8c)]||!_0x29885d[_0x45f239(0x74)]||_0x29885d['sublayers'][_0x45f239(0x73)]==0x0)return;let _0x3ac022=_0x29885d[_0x45f239(0x8c)];const _0x2d7cc8=_0x29885d[_0x45f239(0x74)];_0x3ac022=_0x3ac022[_0x45f239(0x6d)](_0x45f239(0x70),_0x45f239(0x8a));const _0x322073=[];for(let _0x32a5b9=0x0;_0x32a5b9<_0x2d7cc8[_0x45f239(0x73)];_0x32a5b9++){const _0x5e015a=_0x2d7cc8[_0x32a5b9];let _0x45fceb=_0x45f239(0x86)+_0x5e015a+_0x45f239(0x83);const _0xc20d76=_0x3ac022[_0x45f239(0x6b)]('?')?_0x3ac022+'&'+_0x45fceb:_0x3ac022+'?'+_0x45fceb,_0x2c6529=await a73_0x85a5c9[_0x45f239(0x6e)](_0xc20d76);if(_0x2c6529[_0x45f239(0x7b)]&&_0x2c6529[_0x45f239(0x7b)][_0x45f239(0x85)]&&_0x2c6529['data'][_0x45f239(0x85)][_0x45f239(0x73)]>0x0)_0x322073['push'](_0x2c6529[_0x45f239(0x7b)]['Legend'][0x0]);else{let _0x447229=_0x45464c?_0x45464c:0x10,_0x38b4c8=_0x45f239(0x86)+_0x5e015a+_0x45f239(0x71)+_0x447229+_0x45f239(0x75)+_0x447229+'&format=image/png';const _0x590ed7=_0x3ac022[_0x45f239(0x6b)]('?')?_0x3ac022+'&'+_0x38b4c8:_0x3ac022+'?'+_0x38b4c8;_0x322073['push']({'title':_0x29885d[_0x45f239(0x7a)],'url':_0x590ed7});}}return _0x322073;}
|