ym-gis-2d 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/capabilities/index.js +1 -1
- package/controls/ControlManager.js +1 -1
- package/controls/LegendControl.js +1 -1
- package/controls/MousePositionControl.js +1 -1
- package/controls/SwipeLayerControl.js +1 -1
- package/conver/kml/geoJSONToKml.js +1 -1
- package/conver/kml/index.js +1 -1
- package/conver/kml/kmlToGeoJSON.js +1 -1
- package/entity/Feature.js +1 -1
- package/entity/GeometryType.js +1 -1
- package/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.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.js +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.d.ts.map +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/GeometryUtil.js.map +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
package/interaction/Draw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a37_0x4fb69d=a37_0xac02;(function(_0x47e719,_0xc831a1){const _0x16511f=a37_0xac02,_0x56be5a=_0x47e719();while(!![]){try{const _0x436f3e=parseInt(_0x16511f(0x164))/0x1*(-parseInt(_0x16511f(0x152))/0x2)+-parseInt(_0x16511f(0x129))/0x3*(-parseInt(_0x16511f(0x166))/0x4)+-parseInt(_0x16511f(0x120))/0x5+-parseInt(_0x16511f(0x163))/0x6*(parseInt(_0x16511f(0x10d))/0x7)+parseInt(_0x16511f(0x151))/0x8+-parseInt(_0x16511f(0x16b))/0x9+parseInt(_0x16511f(0x134))/0xa*(parseInt(_0x16511f(0x137))/0xb);if(_0x436f3e===_0xc831a1)break;else _0x56be5a['push'](_0x56be5a['shift']());}catch(_0x3b9c68){_0x56be5a['push'](_0x56be5a['shift']());}}}(a37_0x1a9f,0x8c7d8));import a37_0x1647b4 from'ol/events/Event';import a37_0x48453a from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';import a37_0x3a1ea9 from'ol/Feature';import a37_0x27c0d8,{createEditingStyle}from'ol/style/Style';import a37_0x1eeecb from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a37_0x51146e from'ol/style/Text';import a37_0x4d6091 from'ol/style/Fill';import a37_0x4aab68 from'ol/interaction/Property';function a37_0xac02(_0x114e97,_0x360ffc){const _0x1a9fe6=a37_0x1a9f();return a37_0xac02=function(_0xac0206,_0x3f006d){_0xac0206=_0xac0206-0x106;let _0x3e416b=_0x1a9fe6[_0xac0206];return _0x3e416b;},a37_0xac02(_0x114e97,_0x360ffc);}import a37_0x193eaf from'ol/layer/Vector';import a37_0xd0f4eb from'../entity/GeometryType';const DrawEventType={'DRAWSTART':'drawstart','DRAWEND':'drawend','DRAWABORT':a37_0x4fb69d(0x15a),'DRAWADDPOINT':a37_0x4fb69d(0x16a),'DRAWMOVING':a37_0x4fb69d(0x144)};export class DrawEvent extends a37_0x1647b4{constructor(_0x457a96,_0x12c13d,_0x224f68){const _0x4acb14=a37_0x4fb69d;super(_0x457a96),this[_0x4acb14(0x150)]=_0x12c13d,this['coordinates']=_0x224f68;}}export class ShEvent extends a37_0x1647b4{constructor(_0xdb7023,_0x38364c,_0x41452f,_0x205218,_0x213327){const _0x3d469e=a37_0x4fb69d;super(_0xdb7023),this[_0x3d469e(0x131)]=_0x213327,this[_0x3d469e(0x155)]=_0x38364c,this[_0x3d469e(0x12d)]=_0x41452f,this[_0x3d469e(0x116)]=_0x205218;}}function a37_0x1a9f(){const _0x5aea48=['type','push','dispatchEvent','sqrt','getText','drawabort','createMultiPointFeature','showTip','pop','getCode','addFeature','setStyle','handleUpEvent','wrapX','2208dLDeBw','826599bzWykR','getSource','603956lHgscU','getPixelFromCoordinate','getGeometry','_fixPoint','drawaddpoint','9708471Xswvrh','DRAWMOVING','setText','indexOf','单击结束绘制,右击删除点','_showTip','DRAWABORT','stopDown','rectangle','setGeometry','_minPoints','16177aYOLnR','_tipStyle','_tipOverlay','handleDragEvent','clear','单击增加点,右击删除点双击完成绘制','addChangeListener','_style','ACTIVE','coordinates','unInternal','revert','updateSketchFeatures_','_drawingCoordinates','DRAWEND','_overlay','pointermove','_features','updateTip_','3338380RGfVIB','Rectangle','MAX_VALUE','Ellipse','12px\x20Calibre,sans-serif','atFinish_','_snapTolerance','_tipFeature','onceInternal','3rCRObd','_sketchFeature','getProjection','features','coordinate','finishDrawing','startDrawing_','source','projection','originalEvent','Ellipsoid','30380010YtfWhf','getMap','DRAWADDPOINT','11mrdJqp','buildDrawingFeature','setMap','Circle','preventDefault','abortDrawing_','单击拖动绘制','left','onInternal','_isStayDraw','getView','getType','updateState_','drawmoving','minPoint','handleMoveEvent','snapTolerance','单击增加点,右击删除点','_type','单击开始绘制','addPoint','fixPoint','button','length','tipText','feature','6479200cRkUkc','2zFxiPH','_source','abortDrawing'];a37_0x1a9f=function(){return _0x5aea48;};return a37_0x1a9f();}export default class Draw extends a37_0x48453a{constructor(_0x3a036c,_0x58caff){const _0x57a9eb=a37_0x4fb69d,_0x2e8d1b=_0x58caff?_0x58caff:{};!_0x2e8d1b[_0x57a9eb(0x109)]&&(_0x2e8d1b[_0x57a9eb(0x109)]=![]);super(_0x58caff),this['on']=this[_0x57a9eb(0x13f)],this['once']=this[_0x57a9eb(0x128)],this['un']=this[_0x57a9eb(0x117)],this[_0x57a9eb(0x140)]=![],this[_0x57a9eb(0x149)]=_0x3a036c,this[_0x57a9eb(0x114)]=_0x58caff===null||_0x58caff===void 0x0?void 0x0:_0x58caff['style'],this[_0x57a9eb(0x153)]=_0x58caff===null||_0x58caff===void 0x0?void 0x0:_0x58caff[_0x57a9eb(0x130)],this['_features']=_0x58caff===null||_0x58caff===void 0x0?void 0x0:_0x58caff[_0x57a9eb(0x12c)];const _0x5d4316=getPlotCount(this[_0x57a9eb(0x149)]);this['_minPoints']=_0x5d4316[_0x57a9eb(0x145)],this[_0x57a9eb(0x169)]=_0x5d4316[_0x57a9eb(0x14c)],this[_0x57a9eb(0x14f)]=_0x58caff===null||_0x58caff===void 0x0?void 0x0:_0x58caff[_0x57a9eb(0x14f)],this[_0x57a9eb(0x107)]=(_0x58caff===null||_0x58caff===void 0x0?void 0x0:_0x58caff[_0x57a9eb(0x15c)])==![]?![]:!![],this[_0x57a9eb(0x126)]=_0x2e8d1b[_0x57a9eb(0x147)]?_0x2e8d1b[_0x57a9eb(0x147)]:0x6,this['_tipFeature']=new a37_0x3a1ea9(),this[_0x57a9eb(0x10e)]=new a37_0x27c0d8({'text':new a37_0x51146e({'font':_0x57a9eb(0x124),'fill':new a37_0x4d6091({'color':'rgba(255,\x20255,\x20255,\x201)'}),'backgroundFill':new a37_0x4d6091({'color':'rgba(0,\x200,\x200,\x200.4)'}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x57a9eb(0x13e),'offsetX':0xf})}),this[_0x57a9eb(0x11a)]=[],this['_tipOverlay']=new a37_0x193eaf({'source':new a37_0x1eeecb({'useSpatialIndex':![],'wrapX':(_0x58caff===null||_0x58caff===void 0x0?void 0x0:_0x58caff[_0x57a9eb(0x162)])?_0x58caff[_0x57a9eb(0x162)]:![]})}),this[_0x57a9eb(0x11c)]=new a37_0x193eaf({'source':new a37_0x1eeecb({'useSpatialIndex':![],'wrapX':(_0x58caff===null||_0x58caff===void 0x0?void 0x0:_0x58caff[_0x57a9eb(0x162)])?_0x58caff[_0x57a9eb(0x162)]:![]}),'updateWhileInteracting':!![]}),this[_0x57a9eb(0x113)](a37_0x4aab68[_0x57a9eb(0x115)],this[_0x57a9eb(0x143)]);}[a37_0x4fb69d(0x143)](){const _0x122388=a37_0x4fb69d,_0x258009=this[_0x122388(0x135)](),_0x59105a=this['getActive']();(!_0x258009||!_0x59105a)&&this[_0x122388(0x154)](),this[_0x122388(0x11c)]['setMap'](_0x59105a?_0x258009:null),this[_0x122388(0x10f)][_0x122388(0x139)](_0x59105a?_0x258009:null);}[a37_0x4fb69d(0x139)](_0x5a43e7){const _0x4f6b6b=a37_0x4fb69d;super[_0x4f6b6b(0x139)](_0x5a43e7),this[_0x4f6b6b(0x143)]();}['setStyle'](_0x31a2f4){this['_style']=_0x31a2f4?_0x31a2f4:{};}['getOverlay'](){const _0x16eba9=a37_0x4fb69d;return this[_0x16eba9(0x11c)];}['handleDownEvent'](_0x1cb876){const _0x49f1ff=a37_0x4fb69d;if(_0x1cb876['originalEvent'][_0x49f1ff(0x14d)]===0x2)return _0x1cb876[_0x49f1ff(0x132)][_0x49f1ff(0x13b)](),this[_0x49f1ff(0x118)](),this[_0x49f1ff(0x146)](_0x1cb876),![];return!![];}[a37_0x4fb69d(0x161)](_0x2c6375){const _0x5d9193=a37_0x4fb69d;var _0x17a046,_0x411e48;if(this['_type']=='rectangle'&&this[_0x5d9193(0x11a)]['length']<0x1)return this['dispatchEvent'](new DrawEvent(DrawEventType[_0x5d9193(0x11b)],undefined,[_0x2c6375[_0x5d9193(0x12d)]])),![];if(!this[_0x5d9193(0x140)])this[_0x5d9193(0x12f)](_0x2c6375[_0x5d9193(0x12d)]),this[_0x5d9193(0x157)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x5d9193(0x149)],_0x2c6375[_0x5d9193(0x12d)],this[_0x5d9193(0x11a)],(_0x17a046=this['getMap']())===null||_0x17a046===void 0x0?void 0x0:_0x17a046[_0x5d9193(0x141)]()[_0x5d9193(0x12b)]()['getCode']())),this[_0x5d9193(0x149)]=='point'&&this[_0x5d9193(0x12e)]();else{if(this[_0x5d9193(0x11a)]&&this[_0x5d9193(0x11a)][_0x5d9193(0x14e)]>0x0){if(this[_0x5d9193(0x125)](_0x2c6375['pixel']))return this[_0x5d9193(0x12e)](),_0x2c6375[_0x5d9193(0x13b)](),![];let _0x2e37e8=this[_0x5d9193(0x11a)][_0x5d9193(0x14e)]+0x1;_0x2e37e8<=this['_fixPoint']&&this[_0x5d9193(0x14b)](_0x2c6375[_0x5d9193(0x12d)]),this['dispatchEvent'](new ShEvent(DrawEventType[_0x5d9193(0x136)],this['_type'],_0x2c6375[_0x5d9193(0x12d)],this[_0x5d9193(0x11a)],(_0x411e48=this['getMap']())===null||_0x411e48===void 0x0?void 0x0:_0x411e48[_0x5d9193(0x141)]()[_0x5d9193(0x12b)]()[_0x5d9193(0x15e)]())),_0x2e37e8>=this[_0x5d9193(0x10c)]&&this[_0x5d9193(0x138)](this['_drawingCoordinates']),_0x2e37e8===this['_fixPoint']&&this['finishDrawing']();}}return _0x2c6375[_0x5d9193(0x13b)](),![];}[a37_0x4fb69d(0x110)](_0x26aea7){const _0x21c16e=a37_0x4fb69d;var _0x2dca05;if(this[_0x21c16e(0x149)]==_0x21c16e(0x10a)&&_0x26aea7[_0x21c16e(0x132)][_0x21c16e(0x155)]=='pointermove'){if(!this[_0x21c16e(0x140)]){this[_0x21c16e(0x12f)](_0x26aea7['coordinate']),this[_0x21c16e(0x157)](new ShEvent(DrawEventType[_0x21c16e(0x136)],this[_0x21c16e(0x149)],_0x26aea7[_0x21c16e(0x12d)],this[_0x21c16e(0x11a)],(_0x2dca05=this[_0x21c16e(0x135)]())===null||_0x2dca05===void 0x0?void 0x0:_0x2dca05[_0x21c16e(0x141)]()[_0x21c16e(0x12b)]()[_0x21c16e(0x15e)]()));return;}let _0x54ee44=[...this[_0x21c16e(0x11a)],_0x26aea7[_0x21c16e(0x12d)]];this['buildDrawingFeature'](_0x54ee44),this[_0x21c16e(0x157)](new DrawEvent(DrawEventType['DRAWMOVING'],this[_0x21c16e(0x12a)],this['_drawingCoordinates']));}}[a37_0x4fb69d(0x146)](_0x4d294f){const _0x3c3120=a37_0x4fb69d;var _0x5268a5,_0x3797e9,_0x172032;let _0x39c8df='';this['_type']==_0x3c3120(0x11d)&&(this[_0x3c3120(0x12f)](_0x4d294f[_0x3c3120(0x12d)]),this[_0x3c3120(0x157)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x3c3120(0x149)],_0x4d294f[_0x3c3120(0x12d)],this[_0x3c3120(0x11a)],(_0x5268a5=this[_0x3c3120(0x135)]())===null||_0x5268a5===void 0x0?void 0x0:_0x5268a5[_0x3c3120(0x141)]()[_0x3c3120(0x12b)]()[_0x3c3120(0x15e)]())),this[_0x3c3120(0x12e)]());!this['_isStayDraw']?_0x39c8df=this[_0x3c3120(0x149)]==_0x3c3120(0x10a)?_0x3c3120(0x13d):_0x3c3120(0x14a):(_0x39c8df=_0x3c3120(0x148),((_0x3797e9=this[_0x3c3120(0x11a)])===null||_0x3797e9===void 0x0?void 0x0:_0x3797e9[_0x3c3120(0x14e)])===this[_0x3c3120(0x169)]-0x1&&(_0x39c8df=_0x3c3120(0x106)),((_0x172032=this[_0x3c3120(0x11a)])===null||_0x172032===void 0x0?void 0x0:_0x172032[_0x3c3120(0x14e)])>=this[_0x3c3120(0x10c)]&&this[_0x3c3120(0x169)]===Number['MAX_VALUE']&&(_0x39c8df=_0x3c3120(0x112)));this[_0x3c3120(0x14f)]!=undefined&&(_0x39c8df=this['tipText']);this[_0x3c3120(0x11f)](_0x4d294f[_0x3c3120(0x12d)],_0x39c8df);if(this['_isStayDraw']&&this[_0x3c3120(0x149)]!='rectangle'){let _0x496c67=[...this[_0x3c3120(0x11a)],_0x4d294f[_0x3c3120(0x12d)]];this[_0x3c3120(0x138)](_0x496c67),this[_0x3c3120(0x157)](new DrawEvent(DrawEventType[_0x3c3120(0x16c)],this[_0x3c3120(0x12a)],this[_0x3c3120(0x11a)]));}}[a37_0x4fb69d(0x125)](_0x16a227){const _0x1f8623=a37_0x4fb69d;var _0x3510f4;let _0x12c090=![],_0x393dcb=this[_0x1f8623(0x11a)][_0x1f8623(0x14e)];if(_0x393dcb>this[_0x1f8623(0x10c)]&&this[_0x1f8623(0x169)]===Number[_0x1f8623(0x122)]){const _0x5c889c=this[_0x1f8623(0x11a)][this[_0x1f8623(0x11a)][_0x1f8623(0x14e)]-0x1],_0x51e55c=(_0x3510f4=this['getMap']())===null||_0x3510f4===void 0x0?void 0x0:_0x3510f4[_0x1f8623(0x167)](_0x5c889c),_0x2404b5=_0x16a227[0x0]-(_0x51e55c?_0x51e55c[0x0]:0x0),_0x12e369=_0x16a227[0x1]-(_0x51e55c?_0x51e55c[0x1]:0x0);_0x12c090=Math[_0x1f8623(0x158)](_0x2404b5*_0x2404b5+_0x12e369*_0x12e369)<=this['_snapTolerance'];}return _0x12c090;}['startDrawing_'](_0x5096b2){const _0x27ff72=a37_0x4fb69d;this[_0x27ff72(0x140)]=!![],this[_0x27ff72(0x11a)]=[_0x5096b2['slice']()],this['_sketchFeature']=this[_0x27ff72(0x15b)](),this[_0x27ff72(0x119)](),this['dispatchEvent'](new DrawEvent(DrawEventType['DRAWSTART'],this['_sketchFeature'],this[_0x27ff72(0x11a)]));}['finishDrawing'](){const _0x11e462=a37_0x4fb69d;if(this[_0x11e462(0x11a)][_0x11e462(0x14e)]>this[_0x11e462(0x10c)]){this[_0x11e462(0x138)](this[_0x11e462(0x11a)]);let _0x52a7bf=this['_drawingCoordinates'];const _0x10bb76=this[_0x11e462(0x13c)]();if(!_0x10bb76)return;this[_0x11e462(0x157)](new DrawEvent(DrawEventType[_0x11e462(0x11b)],_0x10bb76,_0x52a7bf)),this[_0x11e462(0x11e)]&&this['_features'][_0x11e462(0x156)](_0x10bb76),this[_0x11e462(0x153)]&&this['_source']['addFeature'](_0x10bb76);}}[a37_0x4fb69d(0x14b)](_0x5a3a03){const _0xc92155=a37_0x4fb69d;this[_0xc92155(0x11a)][_0xc92155(0x156)](_0x5a3a03),this[_0xc92155(0x12a)]=this[_0xc92155(0x15b)](),this[_0xc92155(0x119)]();}['createMultiPointFeature'](){const _0x153c77=a37_0x4fb69d,_0xa38959=new MultiPoint(this['_drawingCoordinates']);let _0x195a1c=new a37_0x3a1ea9();return _0x195a1c[_0x153c77(0x10b)](_0xa38959),_0x195a1c;}['abortDrawing_'](){const _0xdd1aa7=a37_0x4fb69d;var _0x27d902,_0xb102a5;this[_0xdd1aa7(0x140)]=![];const _0x273da1=this[_0xdd1aa7(0x12a)];return this[_0xdd1aa7(0x12a)]=undefined,this[_0xdd1aa7(0x11a)]=[],(_0x27d902=this[_0xdd1aa7(0x11c)][_0xdd1aa7(0x165)]())===null||_0x27d902===void 0x0?void 0x0:_0x27d902['clear'](!![]),(_0xb102a5=this['_tipOverlay']['getSource']())===null||_0xb102a5===void 0x0?void 0x0:_0xb102a5[_0xdd1aa7(0x111)](!![]),_0x273da1;}['abortDrawing'](){const _0x2b1c7f=a37_0x4fb69d,_0xe86e15=this[_0x2b1c7f(0x13c)]();_0xe86e15&&this[_0x2b1c7f(0x157)](new DrawEvent(DrawEventType[_0x2b1c7f(0x108)],_0xe86e15,this['_drawingCoordinates']));}['buildDrawingFeature'](_0x16682e){const _0x43c702=a37_0x4fb69d;this['_sketchFeature']=new a37_0x3a1ea9();let _0x194b44=createPlot(this[_0x43c702(0x149)],_0x16682e);if(!_0x194b44)return;this[_0x43c702(0x12a)]['setGeometry'](_0x194b44);let _0x21c786=[a37_0xd0f4eb[_0x43c702(0x13a)],a37_0xd0f4eb[_0x43c702(0x133)],a37_0xd0f4eb[_0x43c702(0x123)]];if(_0x21c786[_0x43c702(0x16e)](this[_0x43c702(0x149)])>-0x1&&this[_0x43c702(0x114)]){}const _0x27bd55=this[_0x43c702(0x135)]();this[_0x43c702(0x12a)][_0x43c702(0x160)](getStyle(this['_type'],this['_style'],this['getMap']())),this['updateSketchFeatures_']();}[a37_0x4fb69d(0x119)](){const _0x4caccc=a37_0x4fb69d,_0x22d0b0=this[_0x4caccc(0x11c)][_0x4caccc(0x165)]();_0x22d0b0&&this['_sketchFeature']&&(_0x22d0b0[_0x4caccc(0x111)](!![]),_0x22d0b0[_0x4caccc(0x15f)](this[_0x4caccc(0x12a)]));}['revert'](){const _0x3d6482=a37_0x4fb69d;if(this['_isStayDraw']){if(this[_0x3d6482(0x11a)]&&this[_0x3d6482(0x11a)][_0x3d6482(0x14e)]>0x0){const _0x540244=this[_0x3d6482(0x11c)][_0x3d6482(0x165)]();_0x540244===null||_0x540244===void 0x0?void 0x0:_0x540244[_0x3d6482(0x111)](!![]),this[_0x3d6482(0x11a)][_0x3d6482(0x15d)](),this[_0x3d6482(0x11a)][_0x3d6482(0x14e)]>=this[_0x3d6482(0x10c)]&&this[_0x3d6482(0x138)](this[_0x3d6482(0x11a)]),this[_0x3d6482(0x11a)][_0x3d6482(0x14e)]===0x0&&(this[_0x3d6482(0x140)]=![]);}}}[a37_0x4fb69d(0x11f)](_0x3019bf,_0xefc510){const _0x2ab6db=a37_0x4fb69d;var _0x5c5712,_0x13b843,_0x3f1429,_0x37b9f5;if(!this['_showTip'])return;const _0x377dc8=this[_0x2ab6db(0x10f)][_0x2ab6db(0x165)]();_0x377dc8===null||_0x377dc8===void 0x0?void 0x0:_0x377dc8[_0x2ab6db(0x111)](!![]),(_0x5c5712=this[_0x2ab6db(0x127)])===null||_0x5c5712===void 0x0?void 0x0:_0x5c5712[_0x2ab6db(0x10b)](new Point(_0x3019bf)),(_0x3f1429=(_0x13b843=this[_0x2ab6db(0x10e)])===null||_0x13b843===void 0x0?void 0x0:_0x13b843[_0x2ab6db(0x159)]())===null||_0x3f1429===void 0x0?void 0x0:_0x3f1429[_0x2ab6db(0x16d)](_0xefc510),(_0x37b9f5=this[_0x2ab6db(0x127)])===null||_0x37b9f5===void 0x0?void 0x0:_0x37b9f5[_0x2ab6db(0x160)](this[_0x2ab6db(0x10e)]),this[_0x2ab6db(0x127)]&&(_0x377dc8===null||_0x377dc8===void 0x0?void 0x0:_0x377dc8['addFeature'](this['_tipFeature']));}}function getDefaultStyleFunction(){const _0x26fdf0=createEditingStyle();return function(_0x18db33,_0xd4395f){const _0xc02d51=a37_0xac02,_0x6a1b39=_0x26fdf0[_0x18db33[_0xc02d51(0x168)]()['getType']()];if(_0x6a1b39&&_0xc02d51(0x121)==_0x18db33['getGeometry']()[_0xc02d51(0x142)]()){}};}
|
|
1
|
+
const a37_0x3a0ba6=a37_0x1470;(function(_0x3a47f9,_0x464c5b){const _0x1fced7=a37_0x1470,_0x1c0518=_0x3a47f9();while(!![]){try{const _0x176dde=parseInt(_0x1fced7(0xee))/0x1+parseInt(_0x1fced7(0xe6))/0x2+parseInt(_0x1fced7(0xe5))/0x3+parseInt(_0x1fced7(0x113))/0x4+-parseInt(_0x1fced7(0x136))/0x5+parseInt(_0x1fced7(0x105))/0x6+parseInt(_0x1fced7(0x12c))/0x7*(parseInt(_0x1fced7(0x123))/0x8);if(_0x176dde===_0x464c5b)break;else _0x1c0518['push'](_0x1c0518['shift']());}catch(_0x3bd02c){_0x1c0518['push'](_0x1c0518['shift']());}}}(a37_0x335b,0xc4331));import a37_0x24d5bf from'ol/events/Event';import a37_0x11c7a2 from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';function a37_0x1470(_0x4f331d,_0x114c30){const _0x335b28=a37_0x335b();return a37_0x1470=function(_0x1470c8,_0x20bb3b){_0x1470c8=_0x1470c8-0xe0;let _0x3d1017=_0x335b28[_0x1470c8];return _0x3d1017;},a37_0x1470(_0x4f331d,_0x114c30);}import a37_0x2ceed0 from'ol/Feature';import a37_0x472052,{createEditingStyle}from'ol/style/Style';import a37_0x432151 from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a37_0x511165 from'ol/style/Text';import a37_0xfdf786 from'ol/style/Fill';import a37_0x566ae4 from'ol/interaction/Property';import a37_0x3891b3 from'ol/layer/Vector';import a37_0x366744 from'../entity/GeometryType';const DrawEventType={'DRAWSTART':'drawstart','DRAWEND':a37_0x3a0ba6(0x126),'DRAWABORT':a37_0x3a0ba6(0x103),'DRAWADDPOINT':a37_0x3a0ba6(0x130),'DRAWMOVING':a37_0x3a0ba6(0x11c)};export class DrawEvent extends a37_0x24d5bf{constructor(_0x1638de,_0x12c75d,_0x53d23d){const _0x116380=a37_0x3a0ba6;super(_0x1638de),this[_0x116380(0x121)]=_0x12c75d,this['coordinates']=_0x53d23d;}}export class ShEvent extends a37_0x24d5bf{constructor(_0x4e7f9e,_0x2d992d,_0x483973,_0x354b97,_0xba2d38){const _0x5c957e=a37_0x3a0ba6;super(_0x4e7f9e),this['projection']=_0xba2d38,this[_0x5c957e(0x10b)]=_0x2d992d,this[_0x5c957e(0x12a)]=_0x483973,this[_0x5c957e(0xe7)]=_0x354b97;}}export default class Draw extends a37_0x11c7a2{constructor(_0x330c30,_0x26b821){const _0x50ae9c=a37_0x3a0ba6,_0x239af1=_0x26b821?_0x26b821:{};!_0x239af1[_0x50ae9c(0xf8)]&&(_0x239af1[_0x50ae9c(0xf8)]=![]);super(_0x26b821),this['on']=this['onInternal'],this[_0x50ae9c(0xf4)]=this[_0x50ae9c(0x139)],this['un']=this['unInternal'],this[_0x50ae9c(0x143)]=![],this[_0x50ae9c(0x12b)]=_0x330c30,this[_0x50ae9c(0x133)]=_0x26b821===null||_0x26b821===void 0x0?void 0x0:_0x26b821[_0x50ae9c(0x109)],this[_0x50ae9c(0x115)]=_0x26b821===null||_0x26b821===void 0x0?void 0x0:_0x26b821[_0x50ae9c(0x13b)],this[_0x50ae9c(0x12f)]=_0x26b821===null||_0x26b821===void 0x0?void 0x0:_0x26b821[_0x50ae9c(0xff)];const _0x232520=getPlotCount(this[_0x50ae9c(0x12b)]);this[_0x50ae9c(0x13a)]=_0x232520[_0x50ae9c(0x12e)],this[_0x50ae9c(0xf6)]=_0x232520[_0x50ae9c(0x134)],this[_0x50ae9c(0x11a)]=_0x26b821===null||_0x26b821===void 0x0?void 0x0:_0x26b821['tipText'],this['_showTip']=(_0x26b821===null||_0x26b821===void 0x0?void 0x0:_0x26b821['showTip'])==![]?![]:!![],this[_0x50ae9c(0x119)]=_0x239af1['snapTolerance']?_0x239af1[_0x50ae9c(0x13d)]:0x6,this[_0x50ae9c(0x10d)]=new a37_0x2ceed0(),this[_0x50ae9c(0xe0)]=new a37_0x472052({'text':new a37_0x511165({'font':_0x50ae9c(0x141),'fill':new a37_0xfdf786({'color':_0x50ae9c(0xed)}),'backgroundFill':new a37_0xfdf786({'color':_0x50ae9c(0x122)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x50ae9c(0xf9),'offsetX':0xf})}),this[_0x50ae9c(0xe1)]=[],this[_0x50ae9c(0x132)]=new a37_0x3891b3({'source':new a37_0x432151({'useSpatialIndex':![],'wrapX':(_0x26b821===null||_0x26b821===void 0x0?void 0x0:_0x26b821['wrapX'])?_0x26b821[_0x50ae9c(0x11b)]:![]})}),this[_0x50ae9c(0x110)]=new a37_0x3891b3({'source':new a37_0x432151({'useSpatialIndex':![],'wrapX':(_0x26b821===null||_0x26b821===void 0x0?void 0x0:_0x26b821[_0x50ae9c(0x11b)])?_0x26b821['wrapX']:![]}),'updateWhileInteracting':!![]}),this[_0x50ae9c(0x13f)](a37_0x566ae4[_0x50ae9c(0xfc)],this['updateState_']);}[a37_0x3a0ba6(0xfa)](){const _0x1ddb71=a37_0x3a0ba6,_0x48c821=this[_0x1ddb71(0x131)](),_0x101e4c=this[_0x1ddb71(0x116)]();(!_0x48c821||!_0x101e4c)&&this[_0x1ddb71(0x10f)](),this[_0x1ddb71(0x110)][_0x1ddb71(0xe3)](_0x101e4c?_0x48c821:null),this[_0x1ddb71(0x132)][_0x1ddb71(0xe3)](_0x101e4c?_0x48c821:null);}[a37_0x3a0ba6(0xe3)](_0x5387a7){const _0xe0f149=a37_0x3a0ba6;super[_0xe0f149(0xe3)](_0x5387a7),this[_0xe0f149(0xfa)]();}[a37_0x3a0ba6(0xf5)](_0x3325f9){const _0x5d9af4=a37_0x3a0ba6;this[_0x5d9af4(0x133)]=_0x3325f9?_0x3325f9:{};}[a37_0x3a0ba6(0x140)](){return this['_overlay'];}['handleDownEvent'](_0x4378d2){const _0xe05d1c=a37_0x3a0ba6;if(_0x4378d2[_0xe05d1c(0xe9)][_0xe05d1c(0x108)]===0x2)return _0x4378d2[_0xe05d1c(0xe9)]['preventDefault'](),this['revert'](),this[_0xe05d1c(0xe8)](_0x4378d2),![];return!![];}['handleUpEvent'](_0x29c8f4){const _0x125949=a37_0x3a0ba6;var _0x2582eb,_0x49a2e9;if(this['_type']=='rectangle'&&this[_0x125949(0xe1)]['length']<0x1)return this[_0x125949(0xef)](new DrawEvent(DrawEventType[_0x125949(0x10c)],undefined,[_0x29c8f4[_0x125949(0x12a)]])),![];if(!this[_0x125949(0x143)])this[_0x125949(0x124)](_0x29c8f4['coordinate']),this[_0x125949(0xef)](new ShEvent(DrawEventType[_0x125949(0x112)],this[_0x125949(0x12b)],_0x29c8f4[_0x125949(0x12a)],this[_0x125949(0xe1)],(_0x2582eb=this[_0x125949(0x131)]())===null||_0x2582eb===void 0x0?void 0x0:_0x2582eb['getView']()[_0x125949(0x142)]()[_0x125949(0xfd)]())),this[_0x125949(0x12b)]==_0x125949(0x138)&&this[_0x125949(0x114)]();else{if(this[_0x125949(0xe1)]&&this[_0x125949(0xe1)][_0x125949(0xfe)]>0x0){if(this[_0x125949(0x11d)](_0x29c8f4[_0x125949(0xf7)]))return this['finishDrawing'](),_0x29c8f4[_0x125949(0x128)](),![];let _0x55a406=this[_0x125949(0xe1)][_0x125949(0xfe)]+0x1;_0x55a406<=this[_0x125949(0xf6)]&&this[_0x125949(0x106)](_0x29c8f4['coordinate']),this[_0x125949(0xef)](new ShEvent(DrawEventType[_0x125949(0x112)],this[_0x125949(0x12b)],_0x29c8f4[_0x125949(0x12a)],this[_0x125949(0xe1)],(_0x49a2e9=this[_0x125949(0x131)]())===null||_0x49a2e9===void 0x0?void 0x0:_0x49a2e9[_0x125949(0x127)]()[_0x125949(0x142)]()[_0x125949(0xfd)]())),_0x55a406>=this['_minPoints']&&this[_0x125949(0xe4)](this['_drawingCoordinates']),_0x55a406===this[_0x125949(0xf6)]&&this[_0x125949(0x114)]();}}return _0x29c8f4['preventDefault'](),![];}[a37_0x3a0ba6(0x102)](_0x1a44e0){const _0xf1bcf3=a37_0x3a0ba6;var _0x51cda2;if(this['_type']=='rectangle'&&_0x1a44e0['originalEvent']['type']=='pointermove'){if(!this[_0xf1bcf3(0x143)]){this[_0xf1bcf3(0x124)](_0x1a44e0[_0xf1bcf3(0x12a)]),this['dispatchEvent'](new ShEvent(DrawEventType[_0xf1bcf3(0x112)],this['_type'],_0x1a44e0[_0xf1bcf3(0x12a)],this[_0xf1bcf3(0xe1)],(_0x51cda2=this['getMap']())===null||_0x51cda2===void 0x0?void 0x0:_0x51cda2[_0xf1bcf3(0x127)]()['getProjection']()['getCode']()));return;}let _0x4d7625=[...this['_drawingCoordinates'],_0x1a44e0[_0xf1bcf3(0x12a)]];this[_0xf1bcf3(0xe4)](_0x4d7625),this[_0xf1bcf3(0xef)](new DrawEvent(DrawEventType[_0xf1bcf3(0x104)],this[_0xf1bcf3(0x135)],this['_drawingCoordinates']));}}[a37_0x3a0ba6(0xe8)](_0xadadbe){const _0x466003=a37_0x3a0ba6;var _0x39a951,_0x524234,_0x521a6d;let _0x130dc0='';this[_0x466003(0x12b)]==_0x466003(0xf2)&&(this[_0x466003(0x124)](_0xadadbe[_0x466003(0x12a)]),this[_0x466003(0xef)](new ShEvent(DrawEventType[_0x466003(0x112)],this[_0x466003(0x12b)],_0xadadbe[_0x466003(0x12a)],this[_0x466003(0xe1)],(_0x39a951=this[_0x466003(0x131)]())===null||_0x39a951===void 0x0?void 0x0:_0x39a951[_0x466003(0x127)]()['getProjection']()['getCode']())),this['finishDrawing']());!this['_isStayDraw']?_0x130dc0=this['_type']==_0x466003(0x117)?'单击拖动绘制':_0x466003(0x120):(_0x130dc0='单击增加点,右击删除点',((_0x524234=this[_0x466003(0xe1)])===null||_0x524234===void 0x0?void 0x0:_0x524234['length'])===this['_fixPoint']-0x1&&(_0x130dc0='单击结束绘制,右击删除点'),((_0x521a6d=this['_drawingCoordinates'])===null||_0x521a6d===void 0x0?void 0x0:_0x521a6d[_0x466003(0xfe)])>=this[_0x466003(0x13a)]&&this[_0x466003(0xf6)]===Number[_0x466003(0x11e)]&&(_0x130dc0=_0x466003(0x137)));this[_0x466003(0x11a)]!=undefined&&(_0x130dc0=this[_0x466003(0x11a)]);this[_0x466003(0x11f)](_0xadadbe['coordinate'],_0x130dc0);if(this['_isStayDraw']&&this[_0x466003(0x12b)]!=_0x466003(0x117)){let _0xd0a950=[...this[_0x466003(0xe1)],_0xadadbe[_0x466003(0x12a)]];this[_0x466003(0xe4)](_0xd0a950),this['dispatchEvent'](new DrawEvent(DrawEventType[_0x466003(0x104)],this[_0x466003(0x135)],this['_drawingCoordinates']));}}[a37_0x3a0ba6(0x11d)](_0x49a8ac){const _0x20c446=a37_0x3a0ba6;var _0x1b1e4b;let _0xd21894=![],_0x1ec490=this['_drawingCoordinates']['length'];if(_0x1ec490>this['_minPoints']&&this[_0x20c446(0xf6)]===Number[_0x20c446(0x11e)]){const _0x40ac38=this[_0x20c446(0xe1)][this['_drawingCoordinates'][_0x20c446(0xfe)]-0x1],_0x4c159d=(_0x1b1e4b=this[_0x20c446(0x131)]())===null||_0x1b1e4b===void 0x0?void 0x0:_0x1b1e4b['getPixelFromCoordinate'](_0x40ac38),_0x516671=_0x49a8ac[0x0]-(_0x4c159d?_0x4c159d[0x0]:0x0),_0x3940d7=_0x49a8ac[0x1]-(_0x4c159d?_0x4c159d[0x1]:0x0);_0xd21894=Math[_0x20c446(0x101)](_0x516671*_0x516671+_0x3940d7*_0x3940d7)<=this['_snapTolerance'];}return _0xd21894;}[a37_0x3a0ba6(0x124)](_0x536032){const _0x10da00=a37_0x3a0ba6;this[_0x10da00(0x143)]=!![],this['_drawingCoordinates']=[_0x536032['slice']()],this[_0x10da00(0x135)]=this[_0x10da00(0xf1)](),this['updateSketchFeatures_'](),this[_0x10da00(0xef)](new DrawEvent(DrawEventType[_0x10da00(0x107)],this['_sketchFeature'],this['_drawingCoordinates']));}['finishDrawing'](){const _0x1c7f1a=a37_0x3a0ba6;if(this[_0x1c7f1a(0xe1)][_0x1c7f1a(0xfe)]>this['_minPoints']){this[_0x1c7f1a(0xe4)](this[_0x1c7f1a(0xe1)]);let _0x4aa70c=this[_0x1c7f1a(0xe1)];const _0x47b981=this[_0x1c7f1a(0x13e)]();if(!_0x47b981)return;this[_0x1c7f1a(0xef)](new DrawEvent(DrawEventType[_0x1c7f1a(0x10c)],_0x47b981,_0x4aa70c)),this[_0x1c7f1a(0x12f)]&&this[_0x1c7f1a(0x12f)]['push'](_0x47b981),this[_0x1c7f1a(0x115)]&&this['_source'][_0x1c7f1a(0x129)](_0x47b981);}}[a37_0x3a0ba6(0x106)](_0x5a8f70){const _0x5e38fe=a37_0x3a0ba6;this['_drawingCoordinates'][_0x5e38fe(0x13c)](_0x5a8f70),this['_sketchFeature']=this[_0x5e38fe(0xf1)](),this[_0x5e38fe(0xec)]();}[a37_0x3a0ba6(0xf1)](){const _0x5af631=a37_0x3a0ba6,_0x1f7678=new MultiPoint(this[_0x5af631(0xe1)]);let _0xedcd27=new a37_0x2ceed0();return _0xedcd27['setGeometry'](_0x1f7678),_0xedcd27;}[a37_0x3a0ba6(0x13e)](){const _0x5dfb15=a37_0x3a0ba6;var _0x219253,_0x4b2548;this['_isStayDraw']=![];const _0x5baf79=this[_0x5dfb15(0x135)];return this[_0x5dfb15(0x135)]=undefined,this[_0x5dfb15(0xe1)]=[],(_0x219253=this[_0x5dfb15(0x110)]['getSource']())===null||_0x219253===void 0x0?void 0x0:_0x219253[_0x5dfb15(0x125)](!![]),(_0x4b2548=this[_0x5dfb15(0x132)]['getSource']())===null||_0x4b2548===void 0x0?void 0x0:_0x4b2548['clear'](!![]),_0x5baf79;}[a37_0x3a0ba6(0x10f)](){const _0x22e3eb=a37_0x3a0ba6,_0x48289c=this[_0x22e3eb(0x13e)]();_0x48289c&&this[_0x22e3eb(0xef)](new DrawEvent(DrawEventType['DRAWABORT'],_0x48289c,this[_0x22e3eb(0xe1)]));}[a37_0x3a0ba6(0xe4)](_0x45af5d){const _0x35b34e=a37_0x3a0ba6;this[_0x35b34e(0x135)]=new a37_0x2ceed0();let _0xe3be85=createPlot(this[_0x35b34e(0x12b)],_0x45af5d);if(!_0xe3be85)return;this[_0x35b34e(0x135)]['setGeometry'](_0xe3be85);let _0x376d6a=[a37_0x366744['Circle'],a37_0x366744[_0x35b34e(0x100)],a37_0x366744[_0x35b34e(0x111)]];if(_0x376d6a[_0x35b34e(0xea)](this['_type'])>-0x1&&this[_0x35b34e(0x133)]){}const _0x4da9eb=this[_0x35b34e(0x131)]();this[_0x35b34e(0x135)][_0x35b34e(0xf5)](getStyle(this[_0x35b34e(0x12b)],this[_0x35b34e(0x133)],this['getMap']())),this[_0x35b34e(0xec)]();}[a37_0x3a0ba6(0xec)](){const _0x29a003=a37_0x3a0ba6,_0x233049=this[_0x29a003(0x110)]['getSource']();_0x233049&&this['_sketchFeature']&&(_0x233049['clear'](!![]),_0x233049[_0x29a003(0x129)](this['_sketchFeature']));}[a37_0x3a0ba6(0xfb)](){const _0x30c0ec=a37_0x3a0ba6;if(this[_0x30c0ec(0x143)]){if(this[_0x30c0ec(0xe1)]&&this[_0x30c0ec(0xe1)][_0x30c0ec(0xfe)]>0x0){const _0x1efd8b=this[_0x30c0ec(0x110)][_0x30c0ec(0x10a)]();_0x1efd8b===null||_0x1efd8b===void 0x0?void 0x0:_0x1efd8b[_0x30c0ec(0x125)](!![]),this[_0x30c0ec(0xe1)][_0x30c0ec(0xe2)](),this[_0x30c0ec(0xe1)][_0x30c0ec(0xfe)]>=this['_minPoints']&&this['buildDrawingFeature'](this[_0x30c0ec(0xe1)]),this[_0x30c0ec(0xe1)][_0x30c0ec(0xfe)]===0x0&&(this['_isStayDraw']=![]);}}}[a37_0x3a0ba6(0x11f)](_0x2be45a,_0x19a334){const _0x1e46dc=a37_0x3a0ba6;var _0x553bd1,_0x151e91,_0x3007f2,_0x5c501c;if(!this[_0x1e46dc(0xeb)])return;const _0x138d67=this[_0x1e46dc(0x132)][_0x1e46dc(0x10a)]();_0x138d67===null||_0x138d67===void 0x0?void 0x0:_0x138d67[_0x1e46dc(0x125)](!![]),(_0x553bd1=this[_0x1e46dc(0x10d)])===null||_0x553bd1===void 0x0?void 0x0:_0x553bd1[_0x1e46dc(0x12d)](new Point(_0x2be45a)),(_0x3007f2=(_0x151e91=this[_0x1e46dc(0xe0)])===null||_0x151e91===void 0x0?void 0x0:_0x151e91['getText']())===null||_0x3007f2===void 0x0?void 0x0:_0x3007f2[_0x1e46dc(0xf0)](_0x19a334),(_0x5c501c=this[_0x1e46dc(0x10d)])===null||_0x5c501c===void 0x0?void 0x0:_0x5c501c[_0x1e46dc(0xf5)](this[_0x1e46dc(0xe0)]),this[_0x1e46dc(0x10d)]&&(_0x138d67===null||_0x138d67===void 0x0?void 0x0:_0x138d67['addFeature'](this[_0x1e46dc(0x10d)]));}}function a37_0x335b(){const _0x35bee1=['rectangle','getType','_snapTolerance','tipText','wrapX','drawmoving','atFinish_','MAX_VALUE','updateTip_','单击开始绘制','feature','rgba(0,\x200,\x200,\x200.4)','8WICMuw','startDrawing_','clear','drawend','getView','preventDefault','addFeature','coordinate','_type','566062vjYLDs','setGeometry','minPoint','_features','drawaddpoint','getMap','_tipOverlay','_style','fixPoint','_sketchFeature','3767455pjktyz','单击增加点,右击删除点双击完成绘制','point','onceInternal','_minPoints','source','push','snapTolerance','abortDrawing_','addChangeListener','getOverlay','12px\x20Calibre,sans-serif','getProjection','_isStayDraw','_tipStyle','_drawingCoordinates','pop','setMap','buildDrawingFeature','1283115Qzppvi','320532ysjLwI','coordinates','handleMoveEvent','originalEvent','indexOf','_showTip','updateSketchFeatures_','rgba(255,\x20255,\x20255,\x201)','239019AUrVRu','dispatchEvent','setText','createMultiPointFeature','pointermove','Rectangle','once','setStyle','_fixPoint','pixel','stopDown','left','updateState_','revert','ACTIVE','getCode','length','features','Ellipsoid','sqrt','handleDragEvent','drawabort','DRAWMOVING','535482nJNRri','addPoint','DRAWSTART','button','style','getSource','type','DRAWEND','_tipFeature','getGeometry','abortDrawing','_overlay','Ellipse','DRAWADDPOINT','2240084qiHTyX','finishDrawing','_source','getActive'];a37_0x335b=function(){return _0x35bee1;};return a37_0x335b();}function getDefaultStyleFunction(){const _0x2ab551=createEditingStyle();return function(_0x5d1ec0,_0x292412){const _0x2194b4=a37_0x1470,_0x30e9ee=_0x2ab551[_0x5d1ec0[_0x2194b4(0x10e)]()['getType']()];if(_0x30e9ee&&_0x2194b4(0xf3)==_0x5d1ec0[_0x2194b4(0x10e)]()[_0x2194b4(0x118)]()){}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38_0x518daa=a38_0x3f29;(function(_0x22b962,_0x546808){const _0x42e02e=a38_0x3f29,_0x3b7792=_0x22b962();while(!![]){try{const _0x4a95b2=-parseInt(_0x42e02e(0x12e))/0x1*(parseInt(_0x42e02e(0x12a))/0x2)+-parseInt(_0x42e02e(0x131))/0x3*(-parseInt(_0x42e02e(0x128))/0x4)+-parseInt(_0x42e02e(0x122))/0x5+-parseInt(_0x42e02e(0x139))/0x6+-parseInt(_0x42e02e(0x137))/0x7*(-parseInt(_0x42e02e(0x123))/0x8)+parseInt(_0x42e02e(0x132))/0x9*(parseInt(_0x42e02e(0x130))/0xa)+parseInt(_0x42e02e(0x135))/0xb*(-parseInt(_0x42e02e(0x133))/0xc);if(_0x4a95b2===_0x546808)break;else _0x3b7792['push'](_0x3b7792['shift']());}catch(_0x1bced5){_0x3b7792['push'](_0x3b7792['shift']());}}}(a38_0xebd7,0x980f0));function a38_0x3f29(_0x951c28,_0x350089){const _0xebd776=a38_0xebd7();return a38_0x3f29=function(_0x3f29d3,_0x57d529){_0x3f29d3=_0x3f29d3-0x122;let _0x38ac26=_0xebd776[_0x3f29d3];return _0x38ac26;},a38_0x3f29(_0x951c28,_0x350089);}export default class InteractionManager{constructor(_0x48fbba){const _0x4e2985=a38_0x3f29;this[_0x4e2985(0x12d)]=_0x48fbba,this[_0x4e2985(0x125)]=new Map();}['addInteraction'](_0x4dfe0c,_0x500a43){const _0x5e3470=a38_0x3f29;this[_0x5e3470(0x125)][_0x5e3470(0x134)](_0x4dfe0c)&&this[_0x5e3470(0x12b)](_0x4dfe0c),_0x500a43[_0x5e3470(0x12c)](_0x5e3470(0x127),_0x4dfe0c),this[_0x5e3470(0x125)][_0x5e3470(0x12c)](_0x4dfe0c,_0x500a43),this[_0x5e3470(0x12d)][_0x5e3470(0x129)](_0x500a43);}[a38_0x518daa(0x12b)](_0x2c711f){const _0x77b74b=a38_0x518daa,_0x4be045=this[_0x77b74b(0x125)]['get'](_0x2c711f);_0x4be045&&(this[_0x77b74b(0x12d)][_0x77b74b(0x12b)](_0x4be045),this[_0x77b74b(0x125)][_0x77b74b(0x138)](_0x2c711f));}[a38_0x518daa(0x124)](){const _0x504bab=a38_0x518daa;this[_0x504bab(0x125)][_0x504bab(0x12f)](_0x3e0d16=>{const _0x50099a=_0x504bab;this[_0x50099a(0x12d)][_0x50099a(0x12b)](_0x3e0d16);}),this['interactions'][_0x504bab(0x136)]();}[a38_0x518daa(0x126)](_0x48970f){const _0x12c116=a38_0x518daa;return this[_0x12c116(0x125)]['get'](_0x48970f);}}function a38_0xebd7(){const _0x3a7300=['16BQieur','addInteraction','333054uqBBEU','removeInteraction','set','map','1jnkLkS','forEach','839430PirEQe','736215YUKmHH','18qZoVWU','11544ClIuaF','has','1243UKfkdI','clear','203hYHBHj','delete','5056368kGHoaA','1046870yJDJBo','220872blQFHB','removeAllInteractions','interactions','getInteraction','name'];a38_0xebd7=function(){return _0x3a7300;};return a38_0xebd7();}
|
package/interaction/Select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a39_0x2a213c=a39_0x23e4;(function(_0x19ec5c,_0x108bce){const _0x139839=a39_0x23e4,_0x3f25f3=_0x19ec5c();while(!![]){try{const _0x5c4202=parseInt(_0x139839(0x23c))/0x1*(-parseInt(_0x139839(0x1ff))/0x2)+parseInt(_0x139839(0x21d))/0x3*(parseInt(_0x139839(0x212))/0x4)+-parseInt(_0x139839(0x22c))/0x5+parseInt(_0x139839(0x220))/0x6*(-parseInt(_0x139839(0x221))/0x7)+-parseInt(_0x139839(0x21b))/0x8+-parseInt(_0x139839(0x204))/0x9*(parseInt(_0x139839(0x20c))/0xa)+parseInt(_0x139839(0x1f8))/0xb;if(_0x5c4202===_0x108bce)break;else _0x3f25f3['push'](_0x3f25f3['shift']());}catch(_0xa9b93d){_0x3f25f3['push'](_0x3f25f3['shift']());}}}(a39_0x4b7e,0xc69ba));import a39_0x28d901 from'./Draw';import a39_0x1c8a04 from'ol/events/Event';import{bufferPixel,intersects}from'../utils/GeometryUtil';import{Point}from'ol/geom';import a39_0x1b3ae1 from'../feature/FeatureManager';function a39_0x23e4(_0x1d5ed2,_0x386a51){const _0x4b7e66=a39_0x4b7e();return a39_0x23e4=function(_0x23e48f,_0x26e585){_0x23e48f=_0x23e48f-0x1ed;let _0x499c5d=_0x4b7e66[_0x23e48f];return _0x499c5d;},a39_0x23e4(_0x1d5ed2,_0x386a51);}import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';import{selectFeaturesByGeo}from'../utils/tasks';function a39_0x4b7e(){const _0x9eb89a=['MultiPolygon','39036426BNNKjC','url','addFeatures','fromType','canceLineStyle','getType','layerType','6XYCeIP','getGeometry','getMap','lineStyle','cancePointStyle','2306943etpami','allSelectedFeatures','push','keyup','selectedLineFeatures','import','selectTempLayer','layerId','40dzWeiT','keydown','selectIndex','onInternal','dispatchEvent','selectedPolygonFeatures','3092yAdbsQ','addTempLayer','SELECTED','polygonStyle','MultiPoint','includes','map','length','currentLayers','6008144DzqhHm','SELECTSTART','1791gUYmCM','MultiLineString','Point','38094rVATqe','889BaOIDa','selectLayer','lineFeatures','pointFeatures','selectGeom','setStyle','pixelDistance','message','getCode','selectstart','layerInfo','2987670saGecS','setSelectLayers','draw','drawaddpoint','LineString','getVisible','getPolygonTempLayer','seletctEditeFeature','pointStyle','filter','polygonFeatures','cancePolygonStyle','tempLayer','getSelectedFeatures','forEach','Polygon','5522cHqfwl','error','feature','drawabort','holdCtrl','union','getLineTempLayer','selectedPointFeatures','coordinates','getView','未获取到几何','drawend'];a39_0x4b7e=function(){return _0x9eb89a;};return a39_0x4b7e();}const SelectEventType={'DRAWSTART':'drawstart','DRAWEND':a39_0x2a213c(0x1f6),'DRAWABORT':a39_0x2a213c(0x1ee),'DRAWADDPOINT':a39_0x2a213c(0x22f),'DRAWMOVING':'drawmoving','SELECTSTART':a39_0x2a213c(0x22a),'SELECTED':'selected'};export class SelectEvent extends a39_0x1c8a04{constructor(_0x282245,_0x57e850,_0x32c579,_0x3f19ff,_0x57c672,_0x4bafc8,_0x3bc8b1,_0x35fb20,_0x692ab){const _0x5d087b=a39_0x2a213c;super(_0x282245),this[_0x5d087b(0x225)]=_0x32c579,this[_0x5d087b(0x1f3)]=_0x3f19ff,this[_0x5d087b(0x224)]=_0x57c672,this[_0x5d087b(0x223)]=_0x4bafc8,this[_0x5d087b(0x236)]=_0x3bc8b1,this['allFeatures']=_0x35fb20,this[_0x5d087b(0x23d)]=_0x692ab,this['holdCtrl']=_0x57e850;}}export default class Select extends a39_0x28d901{constructor(_0x5c75cd,_0x523941){const _0x176f36=a39_0x2a213c;super(_0x5c75cd,{'tipText':_0x523941===null||_0x523941===void 0x0?void 0x0:_0x523941['tipText']}),this[_0x176f36(0x1f2)]=[],this[_0x176f36(0x208)]=[],this[_0x176f36(0x211)]=[],this[_0x176f36(0x205)]=[];const _0x3fc3e7=_0x523941||{};this[_0x176f36(0x213)]=_0x3fc3e7[_0x176f36(0x213)]||![],this[_0x176f36(0x21a)]=_0x3fc3e7['selectLayers'],this[_0x176f36(0x20a)]=_0x3fc3e7[_0x176f36(0x20a)]===undefined?!![]:_0x3fc3e7[_0x176f36(0x20a)],this['pixelDistance']=_0x3fc3e7['pixelDistance']===undefined?0x5:_0x3fc3e7[_0x176f36(0x227)],this[_0x176f36(0x234)]=_0x3fc3e7[_0x176f36(0x234)]?getStyle(_0x3fc3e7[_0x176f36(0x234)]):getSelectPointStyle(),this[_0x176f36(0x203)]=_0x3fc3e7[_0x176f36(0x203)]?getStyle(_0x3fc3e7[_0x176f36(0x203)]):getSelectCancePointStyle(),this['lineStyle']=_0x3fc3e7[_0x176f36(0x202)]?getStyle(_0x3fc3e7['lineStyle']):getSelectLineStyle(),this[_0x176f36(0x1fc)]=_0x3fc3e7[_0x176f36(0x1fc)]?getStyle(_0x3fc3e7['canceLineStyle']):getSelectCancelLineStyle(),this['polygonStyle']=_0x3fc3e7['polygonStyle']?getStyle(_0x3fc3e7[_0x176f36(0x215)]):getSelectPolygonStyle(),this['cancePolygonStyle']=_0x3fc3e7[_0x176f36(0x237)]?getStyle(_0x3fc3e7[_0x176f36(0x237)]):getSelectCancelPolygonStyle(),this['holdCtrl']=![];let _0x270750;this['on']=this[_0x176f36(0x20f)],this['on'](_0x176f36(0x1f6),async _0x4f02f7=>{const _0x5d7e8a=_0x176f36,_0x668d55=this[_0x5d7e8a(0x1ef)],_0xa6daaa=this['getMap']();if(!_0xa6daaa)return;try{let _0x1be447=undefined;if(!_0x4f02f7[_0x5d7e8a(0x1ed)]&&_0x4f02f7[_0x5d7e8a(0x1f3)]&&_0x4f02f7['coordinates'][_0x5d7e8a(0x219)]==0x1)_0x1be447=bufferPixel(new Point(_0x4f02f7[_0x5d7e8a(0x1f3)][0x0]),this[_0x5d7e8a(0x227)],_0xa6daaa);else _0x4f02f7[_0x5d7e8a(0x1ed)]&&(_0x1be447=_0x4f02f7['feature'][_0x5d7e8a(0x200)]());if(!_0x1be447)throw new Error(_0x5d7e8a(0x1f5));this['dispatchEvent'](new SelectEvent(SelectEventType[_0x5d7e8a(0x21c)],_0x668d55,_0x1be447)),this[_0x5d7e8a(0x1f2)]=[],this[_0x5d7e8a(0x208)]=[],this[_0x5d7e8a(0x211)]=[],this['allSelectedFeatures']=[],this['selectTempLayer']&&this[_0x5d7e8a(0x233)](_0x1be447),_0x270750&&clearTimeout(_0x270750),_0x270750=setTimeout(async()=>{const _0x44d14e=_0x5d7e8a;await this['selectLayer'](_0x1be447),this[_0x44d14e(0x210)](new SelectEvent(SelectEventType[_0x44d14e(0x214)],_0x668d55,_0x1be447,_0x4f02f7[_0x44d14e(0x1f3)],this[_0x44d14e(0x1f2)],this[_0x44d14e(0x208)],this[_0x44d14e(0x211)],this[_0x44d14e(0x205)]));},0x46);}catch(_0x1400ed){this['dispatchEvent'](new SelectEvent(SelectEventType[_0x5d7e8a(0x214)],_0x668d55,undefined,_0x4f02f7['coordinates'],this[_0x5d7e8a(0x1f2)],this[_0x5d7e8a(0x208)],this[_0x5d7e8a(0x211)],this['allSelectedFeatures'],_0x1400ed[_0x5d7e8a(0x228)]));}}),window['addEventListener'](_0x176f36(0x20d),_0x118e9a=>{_0x118e9a['ctrlKey']&&(this['holdCtrl']=!![]);}),window['addEventListener'](_0x176f36(0x207),_0x28eb1b=>{this['holdCtrl']=![];});}[a39_0x2a213c(0x22d)](_0x5e63ff){const _0x44ec44=a39_0x2a213c;this[_0x44ec44(0x21a)]=_0x5e63ff;}async[a39_0x2a213c(0x222)](_0x11e4d1){const _0x1aebe8=a39_0x2a213c;var _0x4cddf2;const _0x37918f=this[_0x1aebe8(0x201)]();let _0x3f0440=[];if(this[_0x1aebe8(0x21a)]&&this[_0x1aebe8(0x21a)]['length']>0x0)_0x3f0440=this[_0x1aebe8(0x21a)];else{let _0x31fd3e=_0x37918f['getLayers']()['getArray']();_0x31fd3e=_0x31fd3e[_0x1aebe8(0x235)](_0x1b143f=>{const _0x3f3bc4=_0x1aebe8,_0x12f268=_0x1b143f[_0x3f3bc4(0x22b)];if(!_0x12f268)return![];return _0x1b143f[_0x3f3bc4(0x231)]()==!![]&&_0x12f268[_0x3f3bc4(0x20e)]!=undefined&&_0x12f268['selectIndex']!='';}),_0x3f0440=_0x31fd3e[_0x1aebe8(0x218)](_0x1cc510=>{const _0x4b4837=_0x1aebe8;return _0x1cc510[_0x4b4837(0x22b)];});}if(!_0x3f0440||_0x3f0440[_0x1aebe8(0x219)]==0x0)return;const _0xdf57e8=_0x37918f[_0x1aebe8(0x1f4)]()['getProjection']()[_0x1aebe8(0x229)]();for(let _0x181fc7=0x0,_0x2a75a2=_0x3f0440[_0x1aebe8(0x219)];_0x181fc7<_0x2a75a2;_0x181fc7++){const _0xb18acf=_0x3f0440[_0x181fc7];if(!_0xb18acf||!_0xb18acf[_0x1aebe8(0x1f9)]||!_0xb18acf[_0x1aebe8(0x20e)])continue;let _0x5f1fcc=await selectFeaturesByGeo(_0x11e4d1,_0xdf57e8,_0xb18acf[_0x1aebe8(0x1f9)],_0xb18acf[_0x1aebe8(0x20e)],_0xb18acf[_0x1aebe8(0x1fe)],_0xb18acf['loadFilter']);if(_0x5f1fcc['length']>0x0){this[_0x1aebe8(0x205)][_0x1aebe8(0x206)](..._0x5f1fcc);let _0x414fd1=_0x37918f[_0x1aebe8(0x232)](),_0xa22cd7=this['polygonStyle'];switch((_0x4cddf2=_0x5f1fcc[0x0][_0x1aebe8(0x200)]())===null||_0x4cddf2===void 0x0?void 0x0:_0x4cddf2[_0x1aebe8(0x1fd)]()){case _0x1aebe8(0x21f):case _0x1aebe8(0x216):this[_0x1aebe8(0x1f2)][_0x1aebe8(0x206)](..._0x5f1fcc),_0x414fd1=_0x37918f['getPointTempLayer'](),_0xa22cd7=this[_0x1aebe8(0x234)];break;case _0x1aebe8(0x230):case _0x1aebe8(0x21e):this[_0x1aebe8(0x208)]['push'](..._0x5f1fcc),_0x414fd1=_0x37918f[_0x1aebe8(0x1f1)](),_0xa22cd7=this[_0x1aebe8(0x202)];break;case'Polygon':case _0x1aebe8(0x1f7):this[_0x1aebe8(0x211)][_0x1aebe8(0x206)](..._0x5f1fcc),_0x414fd1=_0x37918f[_0x1aebe8(0x232)](),_0xa22cd7=this[_0x1aebe8(0x215)];break;default:break;}const _0x117eb9=_0x414fd1['getSource']();_0x117eb9&&(_0x5f1fcc[_0x1aebe8(0x23a)](_0x478dc8=>{const _0x37a2c3=_0x1aebe8;_0x478dc8[_0x37a2c3(0x20b)]=_0xb18acf['id'],_0x478dc8[_0x37a2c3(0x238)]=_0x414fd1,_0x478dc8[_0x37a2c3(0x226)](_0xa22cd7);}),this['addTempLayer']&&_0x117eb9[_0x1aebe8(0x1fa)](_0x5f1fcc));}}}[a39_0x2a213c(0x233)](_0x43a4ed){const _0x192043=a39_0x2a213c,_0x45838a=new a39_0x1b3ae1(this['getMap']()),_0xaa0985=_0x45838a[_0x192043(0x239)]();if(!_0xaa0985||_0xaa0985[_0x192043(0x219)]===0x0)return[];const _0x952707=['copy','cut',_0x192043(0x22e),_0x192043(0x209),_0x192043(0x1f0)],_0x20cff9=[];for(const _0x57518b of _0xaa0985){if(!_0x57518b||!_0x57518b[_0x192043(0x1fb)]||!_0x952707[_0x192043(0x217)](_0x57518b[_0x192043(0x1fb)]))continue;const _0x216c52=_0x57518b[_0x192043(0x200)]();if(!_0x216c52)continue;if(!intersects(_0x216c52,_0x43a4ed))continue;let _0x1c30a9=this[_0x192043(0x215)];this[_0x192043(0x205)][_0x192043(0x206)](_0x57518b);switch(_0x216c52[_0x192043(0x1fd)]()){case _0x192043(0x21f):case _0x192043(0x216):this[_0x192043(0x1f2)][_0x192043(0x206)](_0x57518b),_0x1c30a9=this[_0x192043(0x234)];break;case _0x192043(0x230):case _0x192043(0x21e):this[_0x192043(0x208)][_0x192043(0x206)](_0x57518b),_0x1c30a9=this[_0x192043(0x202)];break;case _0x192043(0x23b):case _0x192043(0x1f7):this[_0x192043(0x211)][_0x192043(0x206)](_0x57518b),_0x1c30a9=this[_0x192043(0x215)];break;default:break;}_0x57518b[_0x192043(0x226)](_0x1c30a9);}return _0x20cff9;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a40_0x127e38=a40_0x3d0c;(function(_0x5231fc,_0x1ed1d5){const _0x42b274=a40_0x3d0c,_0x17acee=_0x5231fc();while(!![]){try{const _0x44d99c=parseInt(_0x42b274(0xfb))/0x1+parseInt(_0x42b274(0xf3))/0x2*(parseInt(_0x42b274(0x102))/0x3)+parseInt(_0x42b274(0x101))/0x4+parseInt(_0x42b274(0x10b))/0x5*(parseInt(_0x42b274(0xf0))/0x6)+parseInt(_0x42b274(0xf8))/0x7*(parseInt(_0x42b274(0x108))/0x8)+parseInt(_0x42b274(0xef))/0x9+parseInt(_0x42b274(0xf5))/0xa*(-parseInt(_0x42b274(0xfc))/0xb);if(_0x44d99c===_0x1ed1d5)break;else _0x17acee['push'](_0x17acee['shift']());}catch(_0x138de0){_0x17acee['push'](_0x17acee['shift']());}}}(a40_0x2b8f,0x296e4));import a40_0x3bb798 from'ol/source/ImageArcGISRest';import{Image as a40_0x3f871c}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';function a40_0x3d0c(_0x3c076e,_0xe4d348){const _0x2b8f0a=a40_0x2b8f();return a40_0x3d0c=function(_0x3d0cc8,_0x36231d){_0x3d0cc8=_0x3d0cc8-0xec;let _0x5c5380=_0x2b8f0a[_0x3d0cc8];return _0x5c5380;},a40_0x3d0c(_0x3c076e,_0xe4d348);}function a40_0x2b8f(){const _0x19ae2b=['fullExtent','setFilter','141355UHLWZU','ymax','xmax','stringify','570654HPjNvU','6VgLbxp','xmin','join','70ayqqqv','spatialReference','3442930FcjvJN','wkid','mapIndex','28vAAXmp','layerInfo','getSource','35265yOHgDW','11HQhFWM','anonymous','show:','initialExtent','loadFilter','72992jBTnvd','3303whGoLv','ymin','sublayers','selectIndex','EPSG:','opacity','660536PTUtsB'];a40_0x2b8f=function(){return _0x19ae2b;};return a40_0x2b8f();}export default class ArcgisDynamicLayer extends a40_0x3f871c{constructor(_0x3b2255,_0x598d95){const _0x1b5109=a40_0x3d0c;var _0x285bca;let _0x43be08={'LAYERS':_0x1b5109(0xfe)+((_0x285bca=_0x3b2255[_0x1b5109(0x104)])===null||_0x285bca===void 0x0?void 0x0:_0x285bca[_0x1b5109(0xf2)](','))};if(_0x3b2255[_0x1b5109(0x100)]&&_0x3b2255[_0x1b5109(0x105)]){const _0x40058b={};_0x40058b[_0x3b2255[_0x1b5109(0x105)]]=_0x3b2255[_0x1b5109(0x100)],_0x43be08['layerDefs']=JSON[_0x1b5109(0xee)](_0x40058b);}const _0x2a6242=[_0x598d95[_0x1b5109(0xff)][_0x1b5109(0xf1)],_0x598d95['initialExtent'][_0x1b5109(0x103)],_0x598d95[_0x1b5109(0xff)][_0x1b5109(0xed)],_0x598d95[_0x1b5109(0xff)][_0x1b5109(0xec)]],_0x2c04c1=[_0x598d95[_0x1b5109(0x109)]['xmin'],_0x598d95[_0x1b5109(0x109)][_0x1b5109(0x103)],_0x598d95[_0x1b5109(0x109)][_0x1b5109(0xed)],_0x598d95['fullExtent']['ymax']];let _0x38e5a9;_0x598d95['spatialReference']['wkid']?_0x38e5a9=registerProj(_0x1b5109(0x106)+_0x598d95[_0x1b5109(0xf4)][_0x1b5109(0xf6)],_0x2c04c1):_0x38e5a9=registerProj(_0x598d95['spatialReference']['wkt'],_0x2c04c1),super({'opacity':_0x3b2255[_0x1b5109(0x107)],'zIndex':_0x3b2255[_0x1b5109(0xf7)],'source':new a40_0x3bb798({'crossOrigin':_0x1b5109(0xfd),'projection':_0x38e5a9,'ratio':0x1,'url':_0x3b2255['url'],'params':_0x43be08})}),this['id']=_0x3b2255['id'],this[_0x1b5109(0xff)]=_0x2a6242,this['projection']=_0x38e5a9,this[_0x1b5109(0xf9)]=_0x3b2255;}[a40_0x127e38(0x10a)](_0x1bb23d){const _0x32e0f8=a40_0x127e38;var _0x135033;const _0x245771={};this[_0x32e0f8(0xf9)][_0x32e0f8(0x105)]&&(_0x245771[this['layerInfo'][_0x32e0f8(0x105)]]=_0x1bb23d),(_0x135033=this[_0x32e0f8(0xfa)]())===null||_0x135033===void 0x0?void 0x0:_0x135033['updateParams']({'layerDefs':JSON[_0x32e0f8(0xee)](_0x1bb23d)});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41_0x437c11=a41_0x26ad;(function(_0x2fb2cd,_0x1867b1){const _0x32eaa3=a41_0x26ad,_0x45ce24=_0x2fb2cd();while(!![]){try{const _0x45201d=parseInt(_0x32eaa3(0x115))/0x1+-parseInt(_0x32eaa3(0x116))/0x2+parseInt(_0x32eaa3(0x107))/0x3*(-parseInt(_0x32eaa3(0x12f))/0x4)+parseInt(_0x32eaa3(0x117))/0x5*(parseInt(_0x32eaa3(0x122))/0x6)+-parseInt(_0x32eaa3(0x10a))/0x7*(-parseInt(_0x32eaa3(0xfe))/0x8)+-parseInt(_0x32eaa3(0x12c))/0x9*(-parseInt(_0x32eaa3(0x10e))/0xa)+parseInt(_0x32eaa3(0x11a))/0xb*(-parseInt(_0x32eaa3(0x105))/0xc);if(_0x45201d===_0x1867b1)break;else _0x45ce24['push'](_0x45ce24['shift']());}catch(_0x199fbd){_0x45ce24['push'](_0x45ce24['shift']());}}}(a41_0x2490,0x6c989));import a41_0x32c915 from'ol/format/EsriJSON';import a41_0x142bc0 from'ol/source/Vector';import{Vector as a41_0x4cc667}from'ol/layer';import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';function a41_0x26ad(_0x5cf94c,_0x498fb8){const _0x249028=a41_0x2490();return a41_0x26ad=function(_0x26ad45,_0x49add8){_0x26ad45=_0x26ad45-0xfc;let _0x1f80e5=_0x249028[_0x26ad45];return _0x1f80e5;},a41_0x26ad(_0x5cf94c,_0x498fb8);}import{tile as a41_0x4421e5}from'ol/loadingstrategy';import a41_0xd47a08 from'ol/layer/Group';import{registerProj}from'../utils/RegisterProjUtil';function a41_0x2490(){const _0x262359=['forEach','wkt','showIndex',',\x22ymax\x22:','6369588thGkrU','ymax','3RffVJs','setStyle','defaultSymbol','1510873cmbEfa','setLayers','drawingInfo','EPSG:','11150dYrdnv','string','f\x20=\x20json\x20&\x20','uniqueValue','/query',',\x22ymin\x22:','wkid','635543itFuMG','439980nkUPdj','568780HCmnAs','simple','length','11xNThnc','ymin','where=','getCode','renderer','symbol','uniqueValueInfos','spatialReference','6YUoZis','xmax','value','1=1','log','createArcGISFeatureLayer','addFeatures','layerInfo','loadFilter','fullExtent','5337HLWERr','setFilter','get','2586296rYonLr','type','initialExtent','find','mapIndex','16IgoOXg','&outSR=','returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry='];a41_0x2490=function(){return _0x262359;};return a41_0x2490();}import{transformedEsriStyle}from'../utils/StyleUtil';import a41_0x2acf93 from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';export default class ArcgisFeatureLayer extends a41_0xd47a08{constructor(_0x2eb68c,_0xa79e8d,_0xe4f1cd){const _0xf06bb7=a41_0x26ad,_0x24b382=[_0xa79e8d[_0xf06bb7(0x131)]['xmin'],_0xa79e8d[_0xf06bb7(0x131)][_0xf06bb7(0x11b)],_0xa79e8d[_0xf06bb7(0x131)][_0xf06bb7(0x123)],_0xa79e8d['initialExtent'][_0xf06bb7(0x106)]],_0x2286bd=[_0xa79e8d[_0xf06bb7(0x12b)]['xmin'],_0xa79e8d[_0xf06bb7(0x12b)][_0xf06bb7(0x11b)],_0xa79e8d['fullExtent'][_0xf06bb7(0x123)],_0xa79e8d[_0xf06bb7(0x12b)][_0xf06bb7(0x106)]];let _0x4a8da3;_0xa79e8d[_0xf06bb7(0x121)][_0xf06bb7(0x114)]?_0x4a8da3=registerProj(_0xf06bb7(0x10d)+_0xa79e8d['spatialReference'][_0xf06bb7(0x114)],_0x2286bd):_0x4a8da3=registerProj(_0xa79e8d['spatialReference'][_0xf06bb7(0x102)],_0x2286bd);let _0x435103=[];super({'zIndex':_0x2eb68c[_0xf06bb7(0xfd)]});for(let _0x5941e3 of _0xe4f1cd){let _0x5e667c=this[_0xf06bb7(0x127)](_0x2eb68c,_0x5941e3);_0x435103['push'](_0x5e667c);}this[_0xf06bb7(0x10b)](new a41_0x2acf93(_0x435103)),this['id']=_0x2eb68c['id'],this['initialExtent']=_0x24b382,this['projection']=_0x4a8da3,this['layerInfo']=_0x2eb68c;}['createArcGISFeatureLayer'](_0x17010c,_0x27d86b){const _0x3ec1eb=a41_0x26ad;var _0x238917=new a41_0x32c915();let _0x370ba9=new a41_0x142bc0({'loader':function(_0x32a50e,_0x557a8b,_0x32e5c2){const _0x51c5d7=a41_0x26ad;let _0x50ab2d=_0x51c5d7(0x125);_0x17010c[_0x51c5d7(0x12a)]&&(_0x50ab2d=typeof _0x17010c['loadFilter']===_0x51c5d7(0x10f)?_0x17010c[_0x51c5d7(0x12a)]:JSON['stringify'](_0x17010c['loadFilter']));let _0x19044b=_0x32e5c2[_0x51c5d7(0x11d)](),_0x330e02=_0x19044b['split'](':')[0x1];var _0x1d0073=appendPath(_0x27d86b['url'],_0x51c5d7(0x112));_0x1d0073=appendParam(_0x1d0073,_0x51c5d7(0x110)+_0x51c5d7(0x11c)+encodeURIComponent(_0x50ab2d)+_0x51c5d7(0x100)+encodeURIComponent('{\x22xmin\x22:'+_0x32a50e[0x0]+_0x51c5d7(0x113)+_0x32a50e[0x1]+',\x22xmax\x22:'+_0x32a50e[0x2]+_0x51c5d7(0x104)+_0x32a50e[0x3]+',\x22spatialReference\x22:{\x22wkid\x22:'+_0x330e02+'}}')+'&geometryType=esriGeometryEnvelope&inSR='+_0x330e02+'&outFields=*'+_0x51c5d7(0xff)+_0x330e02),jsonp(_0x1d0073)['then'](_0x3f14b2=>{const _0xd0d910=_0x51c5d7;if(_0x3f14b2['error'])console[_0xd0d910(0x126)](_0x3f14b2);else{var _0xfc854c=_0x238917['readFeatures'](_0x3f14b2,{'featureProjection':_0x32e5c2});_0xfc854c[_0xd0d910(0x119)]>0x0&&(_0x27d86b[_0xd0d910(0x10c)][_0xd0d910(0x11e)][_0xd0d910(0x130)]==_0xd0d910(0x111)&&_0xfc854c[_0xd0d910(0x101)](function(_0x35d879){const _0x2fc60e=_0xd0d910;var _0x3edb75=_0x35d879[_0x2fc60e(0x12e)](_0x27d86b[_0x2fc60e(0x10c)]['renderer']['field1']);const _0x1b6ca6=_0x27d86b[_0x2fc60e(0x10c)][_0x2fc60e(0x11e)][_0x2fc60e(0x120)][_0x2fc60e(0xfc)](_0x4bb61e=>_0x4bb61e[_0x2fc60e(0x124)]==_0x3edb75);let _0x45e18e;_0x1b6ca6?_0x45e18e=transformedEsriStyle(_0x1b6ca6[_0x2fc60e(0x11f)]):_0x45e18e=transformedEsriStyle(_0x27d86b[_0x2fc60e(0x10c)][_0x2fc60e(0x11e)][_0x2fc60e(0x109)]),_0x35d879[_0x2fc60e(0x108)](_0x45e18e);}),_0x370ba9[_0xd0d910(0x128)](_0xfc854c));}});},'strategy':a41_0x4421e5(createXYZ({'tileSize':0x200}))}),_0x5f3e56=new a41_0x4cc667({'source':_0x370ba9,'zIndex':_0x17010c[_0x3ec1eb(0x103)]});if(_0x27d86b['drawingInfo'][_0x3ec1eb(0x11e)][_0x3ec1eb(0x130)]==_0x3ec1eb(0x118)&&_0x27d86b[_0x3ec1eb(0x10c)][_0x3ec1eb(0x11e)][_0x3ec1eb(0x11f)]){let _0x293a74=transformedEsriStyle(_0x27d86b[_0x3ec1eb(0x10c)][_0x3ec1eb(0x11e)]['symbol']);_0x5f3e56[_0x3ec1eb(0x108)](_0x293a74);}return _0x5f3e56;}[a41_0x437c11(0x12d)](_0x40605c){const _0x3b6944=a41_0x437c11;this[_0x3b6944(0x129)][_0x3b6944(0x12a)]=_0x40605c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4a2eb5,_0x4a44c4){const _0x2bf90c=a42_0x4869,_0x25b5b3=_0x4a2eb5();while(!![]){try{const _0x49ed27=-parseInt(_0x2bf90c(0x79))/0x1*(parseInt(_0x2bf90c(0x8c))/0x2)+parseInt(_0x2bf90c(0x80))/0x3+parseInt(_0x2bf90c(0x7b))/0x4*(parseInt(_0x2bf90c(0x71))/0x5)+parseInt(_0x2bf90c(0x8d))/0x6+parseInt(_0x2bf90c(0x7e))/0x7*(parseInt(_0x2bf90c(0x7d))/0x8)+-parseInt(_0x2bf90c(0x77))/0x9+-parseInt(_0x2bf90c(0x7a))/0xa*(-parseInt(_0x2bf90c(0x85))/0xb);if(_0x49ed27===_0x4a44c4)break;else _0x25b5b3['push'](_0x25b5b3['shift']());}catch(_0x3f93c8){_0x25b5b3['push'](_0x25b5b3['shift']());}}}(a42_0x1961,0x6ee95));import a42_0x5da9de from'ol/layer/Tile';import a42_0xa1cc48 from'ol/source/XYZ';import a42_0xeb0f91 from'ol/tilegrid/TileGrid';function a42_0x1961(){const _0xfa61d6=['95zJJqxz','spatialReference','initialExtent','anonymous','opacity','wkid','4404960nyZrvh','ymax','3BXkzTa','910OXrdDV','160232WktAUy','xmin','4419016EXkRnK','7nsJxZb','url','305592AqFfTL','layerInfo','origin','length','ymin','9647edWVoh','xmax','tileInfo','projection','resolution','push','lods','483680HTcPMt','1044618LNPxOa','fullExtent'];a42_0x1961=function(){return _0xfa61d6;};return a42_0x1961();}function a42_0x4869(_0x259104,_0x16000d){const _0x196137=a42_0x1961();return a42_0x4869=function(_0x4869e9,_0x2e50c0){_0x4869e9=_0x4869e9-0x70;let _0x324c90=_0x196137[_0x4869e9];return _0x324c90;},a42_0x4869(_0x259104,_0x16000d);}import{registerProj}from'../utils/RegisterProjUtil';import{appendPath}from'../utils/UrlUtil';export default class ArcgisTileLayer extends a42_0x5da9de{constructor(_0x3c5dd7,_0x42ffbd){const _0x2019ef=a42_0x4869,_0x57293b=_0x3c5dd7[_0x2019ef(0x7f)]?_0x3c5dd7['url']:'',_0x192d7a=appendPath(_0x57293b,'/tile/{z}/{y}/{x}'),_0x26bd07=[_0x42ffbd['initialExtent'][_0x2019ef(0x7c)],_0x42ffbd[_0x2019ef(0x73)]['ymin'],_0x42ffbd[_0x2019ef(0x73)][_0x2019ef(0x86)],_0x42ffbd[_0x2019ef(0x73)][_0x2019ef(0x78)]],_0x4d9625=[_0x42ffbd[_0x2019ef(0x70)][_0x2019ef(0x7c)],_0x42ffbd[_0x2019ef(0x70)][_0x2019ef(0x84)],_0x42ffbd['fullExtent'][_0x2019ef(0x86)],_0x42ffbd[_0x2019ef(0x70)][_0x2019ef(0x78)]];let _0x58bff1;_0x42ffbd['spatialReference'][_0x2019ef(0x76)]?_0x58bff1=registerProj('EPSG:'+_0x42ffbd['spatialReference'][_0x2019ef(0x76)],_0x4d9625):_0x58bff1=registerProj(_0x42ffbd[_0x2019ef(0x72)]['wkt'],_0x4d9625);let _0x4caac4=[];for(let _0x53a870=0x0,_0x495d6a=_0x42ffbd[_0x2019ef(0x87)][_0x2019ef(0x8b)][_0x2019ef(0x83)];_0x53a870<_0x495d6a;_0x53a870++){_0x4caac4[_0x2019ef(0x8a)](_0x42ffbd['tileInfo'][_0x2019ef(0x8b)][_0x53a870][_0x2019ef(0x89)]);}super({'opacity':_0x3c5dd7[_0x2019ef(0x75)],'zIndex':_0x3c5dd7['mapIndex'],'maxResolution':_0x4caac4[0x0]*0x2,'source':new a42_0xa1cc48({'url':_0x192d7a,'projection':_0x58bff1,'crossOrigin':_0x2019ef(0x74),'tileGrid':new a42_0xeb0f91({'extent':_0x4d9625,'origin':[_0x42ffbd[_0x2019ef(0x87)][_0x2019ef(0x82)]['x'],_0x42ffbd[_0x2019ef(0x87)][_0x2019ef(0x82)]['y']],'resolutions':_0x4caac4,'tileSize':[_0x42ffbd[_0x2019ef(0x87)]['rows'],_0x42ffbd['tileInfo']['cols']]})})}),this['id']=_0x3c5dd7['id'],this[_0x2019ef(0x73)]=_0x26bd07,this[_0x2019ef(0x88)]=_0x58bff1,this[_0x2019ef(0x81)]=_0x3c5dd7;}}
|
package/layers/ArcgisWMSLayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a43_0x6b1f6=a43_0x2f59;function a43_0x2980(){const _0x3245e8=['refresh','join','10117220eKKfrw','loadFilter','1wFACPa','368336KkcilO','opacity','mapIndex','68383IrYQFp','layerInfo','4146740zbzsgb','wkid','anonymous','18BEbWOy','200692SrDpun','296fWxAuh','url','updateParams','1109526azWKia','getSource','initExtent','CQL_FILTER','1.1.0','2421108vAhiiT','sublayers','projection','EPSG:','initialExtent'];a43_0x2980=function(){return _0x3245e8;};return a43_0x2980();}(function(_0x5f47c4,_0x365db6){const _0x26905e=a43_0x2f59,_0x2a0f8c=_0x5f47c4();while(!![]){try{const _0x4cbf0d=parseInt(_0x26905e(0xde))/0x1*(parseInt(_0x26905e(0xdf))/0x2)+-parseInt(_0x26905e(0xf1))/0x3+parseInt(_0x26905e(0xe8))/0x4+-parseInt(_0x26905e(0xe4))/0x5+parseInt(_0x26905e(0xec))/0x6+parseInt(_0x26905e(0xe2))/0x7*(-parseInt(_0x26905e(0xe9))/0x8)+parseInt(_0x26905e(0xe7))/0x9*(parseInt(_0x26905e(0xdc))/0xa);if(_0x4cbf0d===_0x365db6)break;else _0x2a0f8c['push'](_0x2a0f8c['shift']());}catch(_0x32d01d){_0x2a0f8c['push'](_0x2a0f8c['shift']());}}}(a43_0x2980,0x6c9c5));import{ImageWMS as a43_0x23572d}from'ol/source';import{Image as a43_0x375278}from'ol/layer';function a43_0x2f59(_0x5c5ee9,_0x28a805){const _0x29804e=a43_0x2980();return a43_0x2f59=function(_0x2f5998,_0x333b4f){_0x2f5998=_0x2f5998-0xd7;let _0x77959=_0x29804e[_0x2f5998];return _0x77959;},a43_0x2f59(_0x5c5ee9,_0x28a805);}import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisWMSLayer extends a43_0x375278{constructor(_0xcc874d,_0x398784){const _0x47b2cf=a43_0x2f59;var _0x30ba25;let _0x474219=registerProj(_0x47b2cf(0xd8)+_0x398784[_0x47b2cf(0xe5)],undefined),_0x4f23cb={'LAYERS':(_0x30ba25=_0xcc874d[_0x47b2cf(0xf2)])===null||_0x30ba25===void 0x0?void 0x0:_0x30ba25[_0x47b2cf(0xdb)](','),'VERSION':_0x47b2cf(0xf0)};_0xcc874d[_0x47b2cf(0xdd)]&&(_0x4f23cb[_0x47b2cf(0xef)]=_0xcc874d[_0x47b2cf(0xdd)]),super({'opacity':_0xcc874d[_0x47b2cf(0xe0)],'zIndex':_0xcc874d[_0x47b2cf(0xe1)],'source':new a43_0x23572d({'crossOrigin':_0x47b2cf(0xe6),'url':_0xcc874d[_0x47b2cf(0xea)],'params':_0x4f23cb})}),this['id']=_0xcc874d['id'],this[_0x47b2cf(0xd9)]=_0x398784[_0x47b2cf(0xee)],this[_0x47b2cf(0xd7)]=_0x474219,this[_0x47b2cf(0xe3)]=_0xcc874d;}[a43_0x6b1f6(0xda)](){}['setFilter'](_0x2d4c86){const _0x4db6aa=a43_0x6b1f6;var _0x5d308f;(_0x5d308f=this[_0x4db6aa(0xed)]())===null||_0x5d308f===void 0x0?void 0x0:_0x5d308f[_0x4db6aa(0xeb)]({'CQL_FILTER':_0x2d4c86});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a44_0x5d3f(){const _0x2b31c9=['11092AQLgnG','10KTZJbQ','EPSG:','indexOf','7800903ZzBJwE','projection','length','158vkBANV','50jZbxeE','tileMatrixSet','396654hcDFcE','src','1131305ZsacQU','style','origins_','getMatrixIds','name','5453768QZjuaE','getImage','?http','format','524WYRTfn','value','sublayers','urls','7494453kKyydE','replace','wkid','url','matrixSet','image/png','initialExtent','token','6582JeKvZz','boundingBoxExtent','tileGrid'];a44_0x5d3f=function(){return _0x2b31c9;};return a44_0x5d3f();}(function(_0x96d8d6,_0x5b7f2c){const _0x659092=a44_0x1efb,_0x4f95e9=_0x96d8d6();while(!![]){try{const _0x293b52=parseInt(_0x659092(0xab))/0x1*(parseInt(_0x659092(0xb2))/0x2)+parseInt(_0x659092(0xa8))/0x3*(-parseInt(_0x659092(0x9c))/0x4)+parseInt(_0x659092(0xb3))/0x5*(-parseInt(_0x659092(0x91))/0x6)+parseInt(_0x659092(0x93))/0x7+parseInt(_0x659092(0x98))/0x8+parseInt(_0x659092(0xa0))/0x9*(parseInt(_0x659092(0xac))/0xa)+-parseInt(_0x659092(0xaf))/0xb;if(_0x293b52===_0x5b7f2c)break;else _0x4f95e9['push'](_0x4f95e9['shift']());}catch(_0xb2c8c4){_0x4f95e9['push'](_0x4f95e9['shift']());}}}(a44_0x5d3f,0xda6b4));import a44_0x267ee5 from'ol/layer/Tile';import a44_0x5b0f49,{optionsFromCapabilities}from'ol/source/WMTS.js';function a44_0x1efb(_0x362d16,_0xb20021){const _0x5d3fd7=a44_0x5d3f();return a44_0x1efb=function(_0x1efbc0,_0x167264){_0x1efbc0=_0x1efbc0-0x91;let _0xe5a8d4=_0x5d3fd7[_0x1efbc0];return _0xe5a8d4;},a44_0x1efb(_0x362d16,_0xb20021);}import a44_0x18f8f4 from'ol/tilegrid/WMTS';import{registerProj}from'../utils/RegisterProjUtil';import{addArgument,getUrlParams}from'../utils/UrlUtil';export default class ArcgisWMTSLayer extends a44_0x267ee5{constructor(_0x4bd22f,_0x5d0a82){const _0x377fd4=a44_0x1efb;var _0x164de1;let _0x20d08e='';_0x4bd22f['sublayers']&&_0x4bd22f[_0x377fd4(0x9e)][_0x377fd4(0xb1)]>0x0&&(_0x20d08e=_0x4bd22f['sublayers']['join'](','));const _0x165a12=_0x377fd4(0xad)+_0x5d0a82[_0x377fd4(0xa2)];let _0x4264c0=registerProj(_0x165a12);const _0x3d2c59=optionsFromCapabilities(_0x5d0a82['sourceXml'],{'layer':(_0x164de1=_0x4bd22f['sublayers'])===null||_0x164de1===void 0x0?void 0x0:_0x164de1[0x0],'matrixSet':_0x5d0a82[_0x377fd4(0xb4)],'format':_0x377fd4(0xa5)});let _0x2db716=_0x3d2c59[_0x377fd4(0xaa)][_0x377fd4(0x95)][0x0];_0x2db716[0x0]===0x5a&&_0x2db716[0x1]===-0xb4&&(_0x2db716=[_0x2db716[0x1],_0x2db716[0x0]]),super({'opacity':_0x4bd22f['opacity'],'zIndex':_0x4bd22f['mapIndex'],'source':new a44_0x5b0f49({'urls':_0x3d2c59[_0x377fd4(0x9f)],'requestEncoding':_0x3d2c59['requestEncoding'],'layer':_0x3d2c59['layer'],'tileLoadFunction':function(_0x5b7869,_0x2879d8){const _0x144e82=_0x377fd4,_0x372df1=_0x4bd22f[_0x144e82(0xa3)]?_0x4bd22f[_0x144e82(0xa3)]:'';let _0x5b9b7a=getUrlParams(_0x372df1);if((_0x5b9b7a===null||_0x5b9b7a===void 0x0?void 0x0:_0x5b9b7a[_0x144e82(0xb1)])>0x0)for(let _0x46f875 of _0x5b9b7a){_0x2879d8=addArgument(_0x2879d8,_0x46f875[_0x144e82(0x97)],_0x46f875[_0x144e82(0x9d)]);}let _0x288bd4=_0x2879d8[_0x144e82(0xae)](_0x144e82(0x9a));_0x288bd4!==-0x1?_0x2879d8['indexOf'](_0x144e82(0xa7))===-0x1&&_0x2879d8[_0x144e82(0xae)]('tk')===-0x1?_0x5b7869[_0x144e82(0x99)]()[_0x144e82(0x92)]=_0x2879d8[_0x144e82(0xa1)]('&','?'):_0x5b7869[_0x144e82(0x99)]()[_0x144e82(0x92)]=_0x2879d8:_0x5b7869[_0x144e82(0x99)]()['src']=_0x2879d8;},'matrixSet':_0x3d2c59[_0x377fd4(0xa4)],'format':_0x3d2c59[_0x377fd4(0x9b)],'projection':_0x3d2c59[_0x377fd4(0xb0)],'tileGrid':new a44_0x18f8f4({'origin':_0x2db716,'resolutions':_0x3d2c59['tileGrid']['getResolutions'](),'matrixIds':_0x3d2c59['tileGrid'][_0x377fd4(0x96)](),'extent':_0x5d0a82[_0x377fd4(0xa9)]}),'style':_0x5d0a82[_0x377fd4(0x94)],'wrapX':!![]})}),this['id']=_0x4bd22f['id'],this[_0x377fd4(0xa6)]=_0x5d0a82[_0x377fd4(0xa9)],this[_0x377fd4(0xb0)]=_0x4264c0,this['layerInfo']=_0x4bd22f;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4f3419,_0x40abcd){const _0x3937af=a45_0x79d8,_0xf39447=_0x4f3419();while(!![]){try{const _0x3fc09c=-parseInt(_0x3937af(0x16f))/0x1+-parseInt(_0x3937af(0x176))/0x2+-parseInt(_0x3937af(0x163))/0x3*(parseInt(_0x3937af(0x171))/0x4)+parseInt(_0x3937af(0x166))/0x5+-parseInt(_0x3937af(0x162))/0x6+-parseInt(_0x3937af(0x175))/0x7+parseInt(_0x3937af(0x17c))/0x8*(parseInt(_0x3937af(0x17e))/0x9);if(_0x3fc09c===_0x40abcd)break;else _0xf39447['push'](_0xf39447['shift']());}catch(_0xca9707){_0xf39447['push'](_0xf39447['shift']());}}}(a45_0x56c1,0x2edb4));import a45_0xf3df9f from'ol/layer/VectorTile';import a45_0x1ecde4 from'ol/source/VectorTile';import a45_0xea5042 from'ol/format/MVT';import{registerProj}from'../utils/RegisterProjUtil';import a45_0x74a92a from'ol/tilegrid/WMTS';import{optionsFromCapabilities}from'ol/source/WMTS';function a45_0x79d8(_0x582faf,_0x2fc27a){const _0x56c1dc=a45_0x56c1();return a45_0x79d8=function(_0x79d879,_0x985851){_0x79d879=_0x79d879-0x15e;let _0x545cb5=_0x56c1dc[_0x79d879];return _0x545cb5;},a45_0x79d8(_0x582faf,_0x2fc27a);}import{addArgument}from'../utils/UrlUtil';export default class GeoserverVectorTileLayer extends a45_0xf3df9f{constructor(_0x3a58c6,_0x214dc6){const _0x23f2e2=a45_0x79d8;var _0x24d12d;let _0x4a9134=registerProj(_0x23f2e2(0x169)+_0x214dc6[_0x23f2e2(0x160)]);const _0x2a64e1=optionsFromCapabilities(_0x214dc6[_0x23f2e2(0x17b)],{'layer':(_0x24d12d=_0x3a58c6['sublayers'])===null||_0x24d12d===void 0x0?void 0x0:_0x24d12d[0x0],'matrixSet':_0x214dc6[_0x23f2e2(0x170)],'format':_0x23f2e2(0x177)});let _0x4e907=_0x3a58c6[_0x23f2e2(0x161)]&&_0x3a58c6[_0x23f2e2(0x161)][_0x23f2e2(0x17f)]>0x0?_0x3a58c6[_0x23f2e2(0x161)][0x0]:'';const _0x4a535e={'REQUEST':'GetTile','SERVICE':_0x23f2e2(0x16b),'VERSION':_0x23f2e2(0x178),'LAYER':_0x4e907,'STYLE':_0x214dc6[_0x23f2e2(0x173)]['toString'](),'TILEMATRIX':_0x214dc6[_0x23f2e2(0x170)]+_0x23f2e2(0x172),'TILEMATRIXSET':_0x214dc6[_0x23f2e2(0x170)][_0x23f2e2(0x15f)](),'FORMAT':_0x23f2e2(0x164),'TILECOL':_0x23f2e2(0x16c),'TILEROW':_0x23f2e2(0x16d)};let _0x3e87e8=_0x3a58c6[_0x23f2e2(0x16e)]?_0x3a58c6[_0x23f2e2(0x16e)]:'';for(const _0x2a2016 in _0x4a535e){_0x3e87e8=addArgument(_0x3e87e8,_0x2a2016,_0x4a535e[_0x2a2016]);}super({'opacity':_0x3a58c6[_0x23f2e2(0x15e)],'zIndex':_0x3a58c6['mapIndex'],'declutter':!![],'source':new a45_0x1ecde4({'projection':_0x23f2e2(0x169)+_0x214dc6[_0x23f2e2(0x160)],'format':new a45_0xea5042(),'wrapX':!![],'extent':_0x214dc6[_0x23f2e2(0x17d)],'tileGrid':new a45_0x74a92a({'tileSize':_0x2a64e1[_0x23f2e2(0x179)][_0x23f2e2(0x17a)][0x0],'origin':_0x2a64e1[_0x23f2e2(0x179)][_0x23f2e2(0x168)][0x0],'resolutions':_0x2a64e1['tileGrid']['getResolutions'](),'matrixIds':_0x2a64e1[_0x23f2e2(0x179)][_0x23f2e2(0x174)]()}),'url':_0x3e87e8})}),this['id']=_0x3a58c6['id'],this[_0x23f2e2(0x167)]=_0x214dc6[_0x23f2e2(0x17d)],this[_0x23f2e2(0x165)]=_0x4a9134,this[_0x23f2e2(0x16a)]=_0x3a58c6;}}function a45_0x56c1(){const _0x5338a6=['boundingBoxExtent','18sPhpWM','length','opacity','toString','wkid','sublayers','1183524uJZVpm','28446AwmJEH','application/vnd.mapbox-vector-tile','projection','654400ffISpW','initialExtent','origins_','EPSG:','layerInfo','WMTS','{x}','{y}','url','276830gNRlMG','tileMatrixSet','148CauGNx',':{z}','style','getMatrixIds','1830745pkqJGD','79406pfbmed','image/png','1.0.0','tileGrid','tileSizes_','sourceXml','4748800edNpWU'];a45_0x56c1=function(){return _0x5338a6;};return a45_0x56c1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a46_0x36f924=a46_0xb604;(function(_0x108b62,_0x4677c9){const _0x342219=a46_0xb604,_0x22650c=_0x108b62();while(!![]){try{const _0x1b94ec=-parseInt(_0x342219(0x208))/0x1+-parseInt(_0x342219(0x1fe))/0x2+-parseInt(_0x342219(0x206))/0x3+parseInt(_0x342219(0x20a))/0x4+parseInt(_0x342219(0x205))/0x5+-parseInt(_0x342219(0x200))/0x6+-parseInt(_0x342219(0x1f0))/0x7*(-parseInt(_0x342219(0x1ee))/0x8);if(_0x1b94ec===_0x4677c9)break;else _0x22650c['push'](_0x22650c['shift']());}catch(_0x49cbe1){_0x22650c['push'](_0x22650c['shift']());}}}(a46_0x4bff,0x268cb));import a46_0x4a53db from'ol/source/Vector';function a46_0xb604(_0x1017de,_0x313fe4){const _0x4bfffb=a46_0x4bff();return a46_0xb604=function(_0xb6049f,_0x4f7fb0){_0xb6049f=_0xb6049f-0x1e1;let _0x443806=_0x4bfffb[_0xb6049f];return _0x443806;},a46_0xb604(_0x1017de,_0x313fe4);}import a46_0x31f3d9 from'ol/format/GeoJSON';import{Vector as a46_0x21af74}from'ol/layer';import a46_0x216559 from'ol/format/WFS';import{registerProj}from'../utils/RegisterProjUtil';import{bbox}from'ol/loadingstrategy';import a46_0x39753c from'../utils/format/CQL';function a46_0x4bff(){const _0x3658b8=['wkid','mapIndex','readFeatures','layerInfo','toLowerCase','between','EPSG:','read','length','writeGetFeature','removeLoadedExtent','33136hpdwdY','and','595alRila','POST','loadFilter','parseFilter','filter','name','lessThan','warn','addFeatures','sublayers','not','param字段不存在','apply','application/json','303282scMZrz','getCode','357960mSySUt','getSource','url','type字段不存在','fieldType','67785TZSpuk','474387GfeRLo','param','91633Nxgisn','string','1013340AtYQdb','serializeToString','push','equalTo','notEqualTo','type','lessThanOrEqualTo'];a46_0x4bff=function(){return _0x3658b8;};return a46_0x4bff();}import*as a46_0x4592d2 from'ol/format/filter';export default class GeoserverWFSLayer extends a46_0x21af74{constructor(_0x5f4640,_0x31e673){const _0xbfeaa4=a46_0xb604;let _0x42d2ff=registerProj(_0xbfeaa4(0x1e9)+_0x31e673[_0xbfeaa4(0x1e3)]);const _0x21b9b1=_0x31e673['layerFields']['find'](_0x3a447d=>_0x3a447d[_0xbfeaa4(0x204)]==0x6);super({'zIndex':_0x5f4640[_0xbfeaa4(0x1e4)],'source':new a46_0x4a53db({'format':new a46_0x31f3d9(),'loader':(_0x140827,_0x25dc57,_0x31d7fe,_0x1afd22,_0xb74521)=>{const _0x58476c=_0xbfeaa4;let _0x102136=_0x5f4640[_0x58476c(0x1f2)],_0x4f12a5={'srsName':_0x31d7fe[_0x58476c(0x1ff)](),'featureTypes':_0x5f4640[_0x58476c(0x1f9)],'bbox':_0x140827,'geometryName':_0x21b9b1?_0x21b9b1[_0x58476c(0x1f5)]:'','outputFormat':_0x58476c(0x1fd)};_0x102136&&(typeof _0x102136===_0x58476c(0x209)?_0x4f12a5['filter']=new a46_0x39753c()[_0x58476c(0x1ea)](_0x102136):_0x4f12a5[_0x58476c(0x1f4)]=this[_0x58476c(0x1f3)](_0x102136));var _0x1ad861=new a46_0x216559()[_0x58476c(0x1ec)](_0x4f12a5);let _0x40fef6=_0x5f4640['url']?_0x5f4640[_0x58476c(0x202)]:'';fetch(_0x40fef6,{'method':_0x58476c(0x1f1),'body':new XMLSerializer()[_0x58476c(0x20b)](_0x1ad861)})['then'](_0x4ff108=>{return _0x4ff108['json']();})['then'](_0x350f7c=>{const _0x4cbb55=_0x58476c,_0x571924=new a46_0x31f3d9()[_0x4cbb55(0x1e5)](_0x350f7c);let _0x330629=this[_0x4cbb55(0x201)]();_0x330629&&_0x330629[_0x4cbb55(0x1f8)](_0x571924);if(_0x1afd22)_0x1afd22(_0x571924);})['catch'](()=>{const _0x219c59=_0x58476c;let _0x11ebcf=this[_0x219c59(0x201)]();_0x11ebcf&&_0x11ebcf[_0x219c59(0x1ed)](_0x140827);if(_0xb74521)_0xb74521();});},'strategy':bbox})}),this['id']=_0x5f4640['id'],this['initialExtent']=_0x31e673['initExtent'],this['projection']=_0x42d2ff,this[_0xbfeaa4(0x1e6)]=_0x5f4640;}[a46_0x36f924(0x1f3)](_0x1256ed){const _0xe36e56=a46_0x36f924;if(!_0x1256ed[_0xe36e56(0x1e1)]){console[_0xe36e56(0x1f7)](_0xe36e56(0x203));return;}if(!_0x1256ed[_0xe36e56(0x207)]){console[_0xe36e56(0x1f7)](_0xe36e56(0x1fb));return;}let _0x5c1b9d=[];switch(_0x1256ed['type'][_0xe36e56(0x1e7)]()){case'and':for(let _0x138969=0x0;_0x138969<_0x1256ed[_0xe36e56(0x207)]['length'];_0x138969++){let _0x47814a=this[_0xe36e56(0x1f3)](_0x1256ed['param'][_0x138969]);_0x5c1b9d[_0xe36e56(0x20c)](_0x47814a);}return a46_0x4592d2[_0xe36e56(0x1ef)]['apply'](null,_0x5c1b9d);case'or':for(let _0x583124=0x0;_0x583124<_0x1256ed[_0xe36e56(0x207)][_0xe36e56(0x1eb)];_0x583124++){let _0x581b22=this[_0xe36e56(0x1f3)](_0x1256ed[_0xe36e56(0x207)][_0x583124]);_0x5c1b9d[_0xe36e56(0x20c)](_0x581b22);}return a46_0x4592d2['or'][_0xe36e56(0x1fc)](null,_0x5c1b9d);case _0xe36e56(0x1fa):for(let _0xb021ff=0x0;_0xb021ff<_0x1256ed['param']['length'];_0xb021ff++){let _0x4b86d4=this[_0xe36e56(0x1f3)](_0x1256ed[_0xe36e56(0x207)][_0xb021ff]);_0x5c1b9d[_0xe36e56(0x20c)](_0x4b86d4);}return a46_0x4592d2[_0xe36e56(0x1fa)][_0xe36e56(0x1fc)](null,_0x5c1b9d);case'=':return a46_0x4592d2[_0xe36e56(0x20d)](_0x1256ed[_0xe36e56(0x207)][0x0],_0x1256ed[_0xe36e56(0x207)][0x1]);case'!==':return a46_0x4592d2[_0xe36e56(0x20e)](_0x1256ed[_0xe36e56(0x207)][0x0],_0x1256ed[_0xe36e56(0x207)][0x1]);case'>':return a46_0x4592d2['greaterThan'](_0x1256ed[_0xe36e56(0x207)][0x0],_0x1256ed['param'][0x1]);case'<':return a46_0x4592d2[_0xe36e56(0x1f6)](_0x1256ed['param'][0x0],_0x1256ed[_0xe36e56(0x207)][0x1]);case'>=':return a46_0x4592d2['greaterThanOrEqualTo'](_0x1256ed['param'][0x0],_0x1256ed['param'][0x1]);case'<=':return a46_0x4592d2[_0xe36e56(0x1e2)](_0x1256ed[_0xe36e56(0x207)][0x0],_0x1256ed[_0xe36e56(0x207)][0x1]);case _0xe36e56(0x1e8):return a46_0x4592d2['between'](_0x1256ed[_0xe36e56(0x207)][0x0],_0x1256ed['param'][0x1],_0x1256ed[_0xe36e56(0x207)][0x2]);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a47_0x45aa(_0xce4103,_0x524763){const _0x5cb0ca=a47_0x5cb0();return a47_0x45aa=function(_0x45aa57,_0x37009d){_0x45aa57=_0x45aa57-0x6e;let _0x2c185c=_0x5cb0ca[_0x45aa57];return _0x2c185c;},a47_0x45aa(_0xce4103,_0x524763);}const a47_0x239614=a47_0x45aa;(function(_0x4f7f41,_0xb74791){const _0x4ab828=a47_0x45aa,_0x28d041=_0x4f7f41();while(!![]){try{const _0x1cd24e=parseInt(_0x4ab828(0x74))/0x1*(-parseInt(_0x4ab828(0x71))/0x2)+-parseInt(_0x4ab828(0x73))/0x3+parseInt(_0x4ab828(0x7f))/0x4+parseInt(_0x4ab828(0x79))/0x5+parseInt(_0x4ab828(0x78))/0x6+-parseInt(_0x4ab828(0x75))/0x7+-parseInt(_0x4ab828(0x72))/0x8;if(_0x1cd24e===_0xb74791)break;else _0x28d041['push'](_0x28d041['shift']());}catch(_0x1cf3ec){_0x28d041['push'](_0x28d041['shift']());}}}(a47_0x5cb0,0xc357d));import{ImageWMS as a47_0x1ba29b}from'ol/source';function a47_0x5cb0(){const _0x17d7e4=['1aAAKEN','3488604DMbXhf','opacity','refresh','7133526EWRTyG','4677890cFBXER','1.1.0','projection','EPSG:','mapIndex','setFilter','3654036QZRDnN','wkid','getSource','url','sublayers','initExtent','loadFilter','363338MnZwtn','2902096WJhyKY','3585240sBeKAs'];a47_0x5cb0=function(){return _0x17d7e4;};return a47_0x5cb0();}import{Image as a47_0x567d2f}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';export default class GeoserverWMSLayer extends a47_0x567d2f{constructor(_0x19575c,_0x1a18be){const _0x61a95f=a47_0x45aa;var _0x14b478;let _0x40f32b=registerProj(_0x61a95f(0x7c)+_0x1a18be[_0x61a95f(0x80)]),_0x5345a9={'LAYERS':(_0x14b478=_0x19575c[_0x61a95f(0x6e)])===null||_0x14b478===void 0x0?void 0x0:_0x14b478['join'](','),'VERSION':_0x61a95f(0x7a)};_0x19575c['loadFilter']&&(_0x5345a9['CQL_FILTER']=_0x19575c[_0x61a95f(0x70)]),super({'opacity':_0x19575c[_0x61a95f(0x76)],'zIndex':_0x19575c[_0x61a95f(0x7d)],'source':new a47_0x1ba29b({'crossOrigin':'anonymous','url':_0x19575c[_0x61a95f(0x82)],'params':_0x5345a9})}),this['id']=_0x19575c['id'],this['initialExtent']=_0x1a18be[_0x61a95f(0x6f)],this[_0x61a95f(0x7b)]=_0x40f32b,this['layerInfo']=_0x19575c;}[a47_0x239614(0x77)](){}[a47_0x239614(0x7e)](_0x51bb07){const _0x305569=a47_0x239614;var _0x15c3bb;(_0x15c3bb=this[_0x305569(0x81)]())===null||_0x15c3bb===void 0x0?void 0x0:_0x15c3bb['updateParams']({'CQL_FILTER':_0x51bb07});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x48fadc,_0x504b02){const _0x2a2ce1=a48_0x4395,_0x41a930=_0x48fadc();while(!![]){try{const _0x172daf=parseInt(_0x2a2ce1(0xfd))/0x1+-parseInt(_0x2a2ce1(0x107))/0x2*(parseInt(_0x2a2ce1(0x102))/0x3)+parseInt(_0x2a2ce1(0xfe))/0x4*(parseInt(_0x2a2ce1(0xfa))/0x5)+parseInt(_0x2a2ce1(0x106))/0x6*(-parseInt(_0x2a2ce1(0xff))/0x7)+-parseInt(_0x2a2ce1(0xf9))/0x8+-parseInt(_0x2a2ce1(0xf8))/0x9*(parseInt(_0x2a2ce1(0xf6))/0xa)+parseInt(_0x2a2ce1(0xf7))/0xb;if(_0x172daf===_0x504b02)break;else _0x41a930['push'](_0x41a930['shift']());}catch(_0x1af170){_0x41a930['push'](_0x41a930['shift']());}}}(a48_0x2277,0x19f8a));import a48_0x45b328 from'ol/layer/Tile';import a48_0x18c258,{optionsFromCapabilities}from'ol/source/WMTS.js';function a48_0x2277(){const _0x520277=['43470kZyLFN','4dsOHfc','287rGwiYl','sublayers','解析元数据失败','3DXYSdM','image/png','projection','mapIndex','16770rewJoF','81214FHyhKe','layerInfo','未找到投影信息','669490GIuzNW','4480388DidJpy','18iuFEON','611896cmohbK','105935rTgSuB','EPSG:','boundingBoxExtent'];a48_0x2277=function(){return _0x520277;};return a48_0x2277();}import{registerProj}from'../utils/RegisterProjUtil';function a48_0x4395(_0x565864,_0x315960){const _0x227722=a48_0x2277();return a48_0x4395=function(_0x43952e,_0x471bd8){_0x43952e=_0x43952e-0xf5;let _0x36827e=_0x227722[_0x43952e];return _0x36827e;},a48_0x4395(_0x565864,_0x315960);}export default class GeoserverWMTSLayer extends a48_0x45b328{constructor(_0x1f570c,_0xad6950){const _0x3e191b=a48_0x4395;var _0x3f6237;const _0x45bd8a=_0x3e191b(0xfb)+_0xad6950['wkid'];let _0x2fe89f=registerProj(_0x45bd8a);if(!_0x2fe89f)throw new Error(_0x3e191b(0xf5));const _0x23a8b7=optionsFromCapabilities(_0xad6950['sourceXml'],{'layer':(_0x3f6237=_0x1f570c[_0x3e191b(0x100)])===null||_0x3f6237===void 0x0?void 0x0:_0x3f6237[0x0],'matrixSet':_0xad6950['tileMatrixSet'],'format':_0x3e191b(0x103)});if(!_0x23a8b7)throw new Error(_0x3e191b(0x101));super({'opacity':_0x1f570c['opacity'],'zIndex':_0x1f570c[_0x3e191b(0x105)],'source':new a48_0x18c258(_0x23a8b7)}),this['id']=_0x1f570c['id'],this['initialExtent']=_0xad6950[_0x3e191b(0xfc)],this[_0x3e191b(0x104)]=_0x2fe89f,this[_0x3e191b(0x108)]=_0x1f570c;}}
|
package/layers/LayerManager.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50_0x2ce6fc=a50_0x1737;(function(_0x28a518,_0x2c98ac){const _0x250032=a50_0x1737,_0x13ce4d=_0x28a518();while(!![]){try{const _0x11e0a5=parseInt(_0x250032(0x119))/0x1+-parseInt(_0x250032(0x10f))/0x2+-parseInt(_0x250032(0x118))/0x3+parseInt(_0x250032(0x120))/0x4*(-parseInt(_0x250032(0x11f))/0x5)+-parseInt(_0x250032(0x116))/0x6*(parseInt(_0x250032(0x114))/0x7)+parseInt(_0x250032(0x11b))/0x8+parseInt(_0x250032(0x11c))/0x9;if(_0x11e0a5===_0x2c98ac)break;else _0x13ce4d['push'](_0x13ce4d['shift']());}catch(_0x34c73b){_0x13ce4d['push'](_0x13ce4d['shift']());}}}(a50_0x2d55,0x6a2bc));import a50_0x88e8dc from'./ArcgisDynamicLayer';import a50_0x451d07 from'./ArcgisFeatureLayer';import a50_0x271b5d from'./TDTLayer';import{getDynamicLayerInfo,getWMTSLayerCapabilities,getFeatureLayerInfo,getWMSLayerCapabilities,getWFSLayerCapabilities}from'../capabilities';import a50_0xefaaef from'./ArcgisTileLayer';import a50_0x3ede4f from'./GeoserverWMSLayer';import a50_0x29bf26 from'./GeoserverWMTSLayer';function a50_0x1737(_0x27e79c,_0x48087c){const _0x2d553b=a50_0x2d55();return a50_0x1737=function(_0x1737ba,_0x4031fb){_0x1737ba=_0x1737ba-0x10e;let _0x513be3=_0x2d553b[_0x1737ba];return _0x513be3;},a50_0x1737(_0x27e79c,_0x48087c);}import a50_0x4b0b7e from'./ArcgisWMSLayer';import a50_0x416f16 from'./ArcgisWMTSLayer';import a50_0x22d550 from'./GeoserverWFSLayer';import a50_0x4e7fd8 from'./GeoserverVectorTile';export default class LayerManagement{static async[a50_0x2ce6fc(0x11d)](_0x320843){const _0x27fcc3=a50_0x2ce6fc,_0x566910=await getDynamicLayerInfo(_0x320843[_0x27fcc3(0x113)]?_0x320843[_0x27fcc3(0x113)]:'');let _0x4ea117=new a50_0x88e8dc(_0x320843,_0x566910);return _0x4ea117;}static async[a50_0x2ce6fc(0x117)](_0x249965){const _0x56b96b=a50_0x2ce6fc,_0x4685f7=await getDynamicLayerInfo(_0x249965[_0x56b96b(0x113)]?_0x249965[_0x56b96b(0x113)]:'');let _0x1cb9fb=new a50_0xefaaef(_0x249965,_0x4685f7);return _0x1cb9fb;}static async[a50_0x2ce6fc(0x111)](_0x557436){const _0x3dba74=a50_0x2ce6fc,_0x362d58=await getDynamicLayerInfo(_0x557436['url']?_0x557436[_0x3dba74(0x113)]:'');let _0x843387=[];if(_0x557436[_0x3dba74(0x110)])for(let _0x559529=0x0;_0x559529<_0x557436[_0x3dba74(0x110)]['length'];_0x559529++){const _0x9f8cd8=_0x557436[_0x3dba74(0x110)][_0x559529];_0x843387['push'](await getFeatureLayerInfo(_0x557436['url']?_0x557436[_0x3dba74(0x113)]:'',_0x9f8cd8));}let _0x293076=new a50_0x451d07(_0x557436,_0x362d58,_0x843387);return _0x293076;}static async[a50_0x2ce6fc(0x11a)](_0x225844){const _0x3cc304=a50_0x2ce6fc;var _0x4b0be2;const _0x159457=(_0x4b0be2=_0x225844[_0x3cc304(0x110)])===null||_0x4b0be2===void 0x0?void 0x0:_0x4b0be2[0x0],_0x1a36bc=await getWMSLayerCapabilities(_0x225844[_0x3cc304(0x113)]?_0x225844[_0x3cc304(0x113)]:'',_0x159457==null?'':_0x159457);let _0x49507c=new a50_0x4b0b7e(_0x225844,_0x1a36bc);return _0x49507c;}static async[a50_0x2ce6fc(0x11e)](_0x38c952){const _0x5113e0=a50_0x2ce6fc;var _0x42ed56;const _0x5205a8=(_0x42ed56=_0x38c952[_0x5113e0(0x110)])===null||_0x42ed56===void 0x0?void 0x0:_0x42ed56[0x0],_0x1f1ef3=await getWMTSLayerCapabilities(_0x38c952[_0x5113e0(0x113)]?_0x38c952[_0x5113e0(0x113)]:'',_0x5205a8==null?'':_0x5205a8);let _0x44958e=new a50_0x416f16(_0x38c952,_0x1f1ef3);return _0x44958e;}static async[a50_0x2ce6fc(0x10e)](_0xeaa214){const _0x5f2b6f=a50_0x2ce6fc;var _0xb4786c;const _0x2a1f66=(_0xb4786c=_0xeaa214[_0x5f2b6f(0x110)])===null||_0xb4786c===void 0x0?void 0x0:_0xb4786c[0x0],_0x285cf3=await getWMSLayerCapabilities(_0xeaa214[_0x5f2b6f(0x113)]?_0xeaa214[_0x5f2b6f(0x113)]:'',_0x2a1f66==null?'':_0x2a1f66);let _0x59a179=new a50_0x3ede4f(_0xeaa214,_0x285cf3);return _0x59a179;}static async[a50_0x2ce6fc(0x112)](_0x553987){const _0x3cdec3=a50_0x2ce6fc;var _0x437c40;const _0x1e79d8=(_0x437c40=_0x553987['sublayers'])===null||_0x437c40===void 0x0?void 0x0:_0x437c40[0x0],_0x388441=await getWMTSLayerCapabilities(_0x553987[_0x3cdec3(0x113)]?_0x553987['url']:'',_0x1e79d8==null?'':_0x1e79d8);let _0x518c89=new a50_0x29bf26(_0x553987,_0x388441);return _0x518c89;}static async['getGeoserverWFSLayer'](_0x3c2695){const _0x250e0e=a50_0x2ce6fc;var _0x33be41;const _0x532dc1=(_0x33be41=_0x3c2695[_0x250e0e(0x110)])===null||_0x33be41===void 0x0?void 0x0:_0x33be41[0x0],_0x5cd6c9=await getWFSLayerCapabilities(_0x3c2695[_0x250e0e(0x113)]?_0x3c2695['url']:'',_0x532dc1==null?'':_0x532dc1);let _0x3e2bac=new a50_0x22d550(_0x3c2695,_0x5cd6c9);return _0x3e2bac;}static async[a50_0x2ce6fc(0x115)](_0xdffbd8){const _0x211a74=a50_0x2ce6fc;var _0x2a8021;const _0x34ab97=(_0x2a8021=_0xdffbd8[_0x211a74(0x110)])===null||_0x2a8021===void 0x0?void 0x0:_0x2a8021[0x0],_0x3320e0=await getWMTSLayerCapabilities(_0xdffbd8[_0x211a74(0x113)]?_0xdffbd8[_0x211a74(0x113)]:'',_0x34ab97==null?'':_0x34ab97);let _0x271b0f=new a50_0x4e7fd8(_0xdffbd8,_0x3320e0);return _0x271b0f;}static async['getTDTLayer'](_0x219773){const _0x2c0e79=a50_0x2ce6fc;var _0x5e22df;const _0x15c315=(_0x5e22df=_0x219773[_0x2c0e79(0x110)])===null||_0x5e22df===void 0x0?void 0x0:_0x5e22df[0x0],_0x20bb4a=await getWMTSLayerCapabilities(_0x219773[_0x2c0e79(0x113)]?_0x219773[_0x2c0e79(0x113)]:'',_0x15c315==null?'':_0x15c315);let _0x372632=new a50_0x271b5d(_0x219773,_0x20bb4a);return _0x372632;}}function a50_0x2d55(){const _0x4894ec=['5335YuDZGz','1196ZtMoZV','getGeoserverWmsLayer','656708RpoYZY','sublayers','getArcgisFeatureLayer','getGeoserverWMTSLayer','url','2275301GJkBFR','getGeoserverVectorTileLayer','6rMhdnG','getArcgisTileLayer','1273839PgWktr','242942vhElPK','getArcgisWmsLayer','3128768gZlpHw','10780929ggtpjd','getDynamicLayer','getArcgisWMTSLayer'];a50_0x2d55=function(){return _0x4894ec;};return a50_0x2d55();}
|
package/layers/TDTLayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a51_0x4e59(_0x17fa92,_0x348865){const _0x38e8bb=a51_0x38e8();return a51_0x4e59=function(_0x4e59ec,_0x179371){_0x4e59ec=_0x4e59ec-0x1db;let _0xfb898e=_0x38e8bb[_0x4e59ec];return _0xfb898e;},a51_0x4e59(_0x17fa92,_0x348865);}(function(_0x578047,_0x59a4b0){const _0x47429f=a51_0x4e59,_0x27c85d=_0x578047();while(!![]){try{const _0x1406b1=-parseInt(_0x47429f(0x1dc))/0x1*(parseInt(_0x47429f(0x1e8))/0x2)+-parseInt(_0x47429f(0x1e2))/0x3*(parseInt(_0x47429f(0x1e3))/0x4)+-parseInt(_0x47429f(0x1eb))/0x5+-parseInt(_0x47429f(0x1ef))/0x6+parseInt(_0x47429f(0x1f1))/0x7*(parseInt(_0x47429f(0x1dd))/0x8)+-parseInt(_0x47429f(0x1e5))/0x9+-parseInt(_0x47429f(0x1ed))/0xa*(-parseInt(_0x47429f(0x1ec))/0xb);if(_0x1406b1===_0x59a4b0)break;else _0x27c85d['push'](_0x27c85d['shift']());}catch(_0x973eca){_0x27c85d['push'](_0x27c85d['shift']());}}}(a51_0x38e8,0xbdb21));import a51_0xd7a8fe from'ol/layer/Tile';import{WMTS as a51_0x170bed}from'ol/source';import a51_0x2da4b2 from'ol/tilegrid/WMTS';import{registerProj}from'../utils/RegisterProjUtil';function a51_0x38e8(){const _0xf17b3c=['KVP','length','4380357BxlmPc','4kIYIbb','style','167040FzPoNq','url','join','194edVtNh','sublayers','1.0.0','3869110fwwqUU','5027SMCAZA','91750pLxnyr','EPSG:4490','1464456HarjzY','opacity','14uUPUak','pow','format','14259DowJJh','1854872snhHev','boundingBoxExtent','projection'];a51_0x38e8=function(){return _0xf17b3c;};return a51_0x38e8();}import{getWidth,getTopLeft}from'ol/extent';export default class TDTLayer extends a51_0xd7a8fe{constructor(_0x58af7a,_0x38b1fa){const _0x16ceeb=a51_0x4e59;let _0x28f3b8='';_0x58af7a[_0x16ceeb(0x1e9)]&&_0x58af7a[_0x16ceeb(0x1e9)][_0x16ceeb(0x1e1)]>0x0&&(_0x28f3b8=_0x58af7a[_0x16ceeb(0x1e9)][_0x16ceeb(0x1e7)](','));const _0x551253=_0x16ceeb(0x1ee);let _0x244a4c=registerProj(_0x551253);const _0x71a3f0=[],_0x1b209f=[];for(let _0x46c8f3=0x1;_0x46c8f3<0x13;_0x46c8f3++){_0x71a3f0[_0x46c8f3]=getWidth(_0x38b1fa[_0x16ceeb(0x1de)])/(0x100*Math[_0x16ceeb(0x1f2)](0x2,_0x46c8f3)),_0x1b209f[_0x46c8f3]=_0x46c8f3+'';}super({'opacity':_0x58af7a[_0x16ceeb(0x1f0)],'zIndex':_0x58af7a['mapIndex'],'source':new a51_0x170bed({'style':_0x38b1fa[_0x16ceeb(0x1e4)],'url':_0x58af7a[_0x16ceeb(0x1e6)],'tileGrid':new a51_0x2da4b2({'origin':getTopLeft(_0x38b1fa[_0x16ceeb(0x1de)]),'resolutions':_0x71a3f0,'matrixIds':_0x1b209f}),'layer':_0x28f3b8,'matrixSet':_0x38b1fa['tileMatrixSet'],'version':_0x16ceeb(0x1ea),'format':_0x38b1fa[_0x16ceeb(0x1db)][0x0],'projection':_0x551253,'requestEncoding':_0x16ceeb(0x1e0)})}),this['id']=_0x58af7a['id'],this['initialExtent']=_0x38b1fa[_0x16ceeb(0x1de)],this[_0x16ceeb(0x1df)]=_0x244a4c,this['layerInfo']=_0x58af7a;}}
|