ym-gis-2d 1.0.11 → 1.0.12
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/assets/main.css +12 -0
- 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/style.css +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
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1632ed,_0x20ccb4){var _0x80ffa8=a36_0x4b92,_0x5827ba=_0x1632ed();while(!![]){try{var _0x44ee62=-parseInt(_0x80ffa8(0x194))/0x1+-parseInt(_0x80ffa8(0x198))/0x2+-parseInt(_0x80ffa8(0x195))/0x3*(-parseInt(_0x80ffa8(0x193))/0x4)+parseInt(_0x80ffa8(0x191))/0x5+parseInt(_0x80ffa8(0x190))/0x6+parseInt(_0x80ffa8(0x196))/0x7*(parseInt(_0x80ffa8(0x192))/0x8)+-parseInt(_0x80ffa8(0x197))/0x9*(parseInt(_0x80ffa8(0x18f))/0xa);if(_0x44ee62===_0x20ccb4)break;else _0x5827ba['push'](_0x5827ba['shift']());}catch(_0x2f63d1){_0x5827ba['push'](_0x5827ba['shift']());}}}(a36_0x3a3a,0x36050));import a36_0x3ee8df from'./mapView/Map';function a36_0x3a3a(){var _0x121263=['601230VBuEkw','727208TYVlJr','32uXHucE','406501mbZqZX','71202erKMLt','28MnsHjW','693xbSbCu','177644TNnOFN','11370FkAjpM','782484eJXxIR'];a36_0x3a3a=function(){return _0x121263;};return a36_0x3a3a();}function a36_0x4b92(_0x15288,_0x53ff35){var _0x3a3a50=a36_0x3a3a();return a36_0x4b92=function(_0x4b92a1,_0x3207c8){_0x4b92a1=_0x4b92a1-0x18f;var _0x4fa321=_0x3a3a50[_0x4b92a1];return _0x4fa321;},a36_0x4b92(_0x15288,_0x53ff35);}export{a36_0x3ee8df as Map2D};
|
package/interaction/Draw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a37_0x1f41cd=a37_0x3a16;(function(_0x81e021,_0x589be5){const _0x4373d3=a37_0x3a16,_0x3a64d6=_0x81e021();while(!![]){try{const _0xf9bff7=parseInt(_0x4373d3(0x147))/0x1+-parseInt(_0x4373d3(0x10a))/0x2*(-parseInt(_0x4373d3(0x134))/0x3)+parseInt(_0x4373d3(0x133))/0x4*(-parseInt(_0x4373d3(0x13e))/0x5)+-parseInt(_0x4373d3(0x14f))/0x6*(parseInt(_0x4373d3(0x115))/0x7)+parseInt(_0x4373d3(0x143))/0x8+parseInt(_0x4373d3(0x155))/0x9+parseInt(_0x4373d3(0x122))/0xa;if(_0xf9bff7===_0x589be5)break;else _0x3a64d6['push'](_0x3a64d6['shift']());}catch(_0x38d6e1){_0x3a64d6['push'](_0x3a64d6['shift']());}}}(a37_0x5aa0,0x65b9a));import a37_0x2acc13 from'ol/events/Event';import a37_0x143f5b from'ol/interaction/Pointer';function a37_0x5aa0(){const _0x2cc068=['addPoint','setMap','updateTip_','once','单击开始绘制','_isStayDraw','_style','_tipOverlay','4jvQUpR','1133313NfFuxU','pixel','_sketchFeature','_tipStyle','_snapTolerance','rgba(0,\x200,\x200,\x200.4)','Rectangle','pointermove','getView','drawmoving','1419545scKuDZ','_features','coordinate','handleUpEvent','_overlay','7024jXleTN','revert','createMultiPointFeature','_type','80288zphPqp','单击增加点,右击删除点','coordinates','DRAWABORT','getMap','addFeature','push','DRAWADDPOINT','1146PyMfts','_showTip','atFinish_','单击拖动绘制','setGeometry','stopDown','1292634NMRmTX','rgba(255,\x20255,\x20255,\x201)','DRAWEND','_source','minPoint','originalEvent','tipText','addChangeListener','ACTIVE','buildDrawingFeature','feature','clear','handleMoveEvent','startDrawing_','Ellipse','getCode','drawaddpoint','drawstart','setText','setStyle','onInternal','abortDrawing_','2WQzMsL','handleDownEvent','rectangle','_minPoints','snapTolerance','MAX_VALUE','12px\x20Calibre,sans-serif','_drawingCoordinates','finishDrawing','drawabort','dispatchEvent','30359LsKoeM','updateSketchFeatures_','updateState_','getSource','style','unInternal','getPixelFromCoordinate','wrapX','point','length','_tipFeature','features','button','9263790yQlQqY','getProjection','_fixPoint','drawend','DRAWMOVING','getType','getGeometry','getOverlay','preventDefault'];a37_0x5aa0=function(){return _0x2cc068;};return a37_0x5aa0();}import{MultiPoint,Point}from'ol/geom';import a37_0x224fc1 from'ol/Feature';import a37_0x4abee5,{createEditingStyle}from'ol/style/Style';import a37_0x2fe011 from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a37_0x24cffa from'ol/style/Text';import a37_0x65fb9a from'ol/style/Fill';function a37_0x3a16(_0x542e28,_0x1fc679){const _0x5aa0e3=a37_0x5aa0();return a37_0x3a16=function(_0x3a16ee,_0x269e84){_0x3a16ee=_0x3a16ee-0x10a;let _0x5785a2=_0x5aa0e3[_0x3a16ee];return _0x5785a2;},a37_0x3a16(_0x542e28,_0x1fc679);}import a37_0x265ff0 from'ol/interaction/Property';import a37_0x273dd5 from'ol/layer/Vector';import a37_0x360e6 from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a37_0x1f41cd(0x166),'DRAWEND':a37_0x1f41cd(0x125),'DRAWABORT':a37_0x1f41cd(0x113),'DRAWADDPOINT':a37_0x1f41cd(0x165),'DRAWMOVING':a37_0x1f41cd(0x13d)};export class DrawEvent extends a37_0x2acc13{constructor(_0x8188a3,_0x37912c,_0x1af22b){const _0x4bd608=a37_0x1f41cd;super(_0x8188a3),this[_0x4bd608(0x15f)]=_0x37912c,this[_0x4bd608(0x149)]=_0x1af22b;}}export class ShEvent extends a37_0x2acc13{constructor(_0x2e0e74,_0x397a53,_0x50e6e1,_0xf1eb33,_0x174ecd){const _0x5bd884=a37_0x1f41cd;super(_0x2e0e74),this['projection']=_0x174ecd,this['type']=_0x397a53,this[_0x5bd884(0x140)]=_0x50e6e1,this[_0x5bd884(0x149)]=_0xf1eb33;}}export default class Draw extends a37_0x143f5b{constructor(_0x10a21a,_0x154f16){const _0x5c4310=a37_0x1f41cd,_0x1f1a77=_0x154f16?_0x154f16:{};!_0x1f1a77['stopDown']&&(_0x1f1a77[_0x5c4310(0x154)]=![]);super(_0x154f16),this['on']=this[_0x5c4310(0x169)],this[_0x5c4310(0x12e)]=this['onceInternal'],this['un']=this[_0x5c4310(0x11a)],this[_0x5c4310(0x130)]=![],this[_0x5c4310(0x146)]=_0x10a21a,this['_style']=_0x154f16===null||_0x154f16===void 0x0?void 0x0:_0x154f16[_0x5c4310(0x119)],this['_source']=_0x154f16===null||_0x154f16===void 0x0?void 0x0:_0x154f16['source'],this[_0x5c4310(0x13f)]=_0x154f16===null||_0x154f16===void 0x0?void 0x0:_0x154f16[_0x5c4310(0x120)];const _0x875453=getPlotCount(this['_type']);this['_minPoints']=_0x875453[_0x5c4310(0x159)],this[_0x5c4310(0x124)]=_0x875453['fixPoint'],this[_0x5c4310(0x15b)]=_0x154f16===null||_0x154f16===void 0x0?void 0x0:_0x154f16[_0x5c4310(0x15b)],this['_showTip']=(_0x154f16===null||_0x154f16===void 0x0?void 0x0:_0x154f16['showTip'])==![]?![]:!![],this[_0x5c4310(0x138)]=_0x1f1a77[_0x5c4310(0x10e)]?_0x1f1a77['snapTolerance']:0x6,this[_0x5c4310(0x11f)]=new a37_0x224fc1(),this[_0x5c4310(0x137)]=new a37_0x4abee5({'text':new a37_0x24cffa({'font':_0x5c4310(0x110),'fill':new a37_0x65fb9a({'color':_0x5c4310(0x156)}),'backgroundFill':new a37_0x65fb9a({'color':_0x5c4310(0x139)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':'left','offsetX':0xf})}),this[_0x5c4310(0x111)]=[],this[_0x5c4310(0x132)]=new a37_0x273dd5({'source':new a37_0x2fe011({'useSpatialIndex':![],'wrapX':(_0x154f16===null||_0x154f16===void 0x0?void 0x0:_0x154f16[_0x5c4310(0x11c)])?_0x154f16[_0x5c4310(0x11c)]:![]})}),this['_overlay']=new a37_0x273dd5({'source':new a37_0x2fe011({'useSpatialIndex':![],'wrapX':(_0x154f16===null||_0x154f16===void 0x0?void 0x0:_0x154f16[_0x5c4310(0x11c)])?_0x154f16[_0x5c4310(0x11c)]:![]}),'updateWhileInteracting':!![]}),this[_0x5c4310(0x15c)](a37_0x265ff0[_0x5c4310(0x15d)],this[_0x5c4310(0x117)]);}['updateState_'](){const _0x2a040a=a37_0x1f41cd,_0x24ca9b=this[_0x2a040a(0x14b)](),_0x112a31=this['getActive']();(!_0x24ca9b||!_0x112a31)&&this['abortDrawing'](),this[_0x2a040a(0x142)]['setMap'](_0x112a31?_0x24ca9b:null),this['_tipOverlay'][_0x2a040a(0x12c)](_0x112a31?_0x24ca9b:null);}['setMap'](_0x4fe483){const _0x3417c6=a37_0x1f41cd;super[_0x3417c6(0x12c)](_0x4fe483),this[_0x3417c6(0x117)]();}[a37_0x1f41cd(0x168)](_0x3fcd73){const _0x16f26c=a37_0x1f41cd;this[_0x16f26c(0x131)]=_0x3fcd73?_0x3fcd73:{};}[a37_0x1f41cd(0x129)](){const _0x481637=a37_0x1f41cd;return this[_0x481637(0x142)];}[a37_0x1f41cd(0x10b)](_0x36aba4){const _0xd709ba=a37_0x1f41cd;if(_0x36aba4[_0xd709ba(0x15a)][_0xd709ba(0x121)]===0x2)return _0x36aba4[_0xd709ba(0x15a)]['preventDefault'](),this[_0xd709ba(0x144)](),this['handleMoveEvent'](_0x36aba4),![];return!![];}[a37_0x1f41cd(0x141)](_0x30a9d0){const _0x3ae899=a37_0x1f41cd;var _0x3416dc,_0x46eaa9;if(this[_0x3ae899(0x146)]==_0x3ae899(0x10c)&&this[_0x3ae899(0x111)][_0x3ae899(0x11e)]<0x1)return this['dispatchEvent'](new DrawEvent(DrawEventType[_0x3ae899(0x157)],undefined,[_0x30a9d0[_0x3ae899(0x140)]])),![];if(!this['_isStayDraw'])this[_0x3ae899(0x162)](_0x30a9d0[_0x3ae899(0x140)]),this[_0x3ae899(0x114)](new ShEvent(DrawEventType[_0x3ae899(0x14e)],this[_0x3ae899(0x146)],_0x30a9d0[_0x3ae899(0x140)],this[_0x3ae899(0x111)],(_0x3416dc=this[_0x3ae899(0x14b)]())===null||_0x3416dc===void 0x0?void 0x0:_0x3416dc[_0x3ae899(0x13c)]()[_0x3ae899(0x123)]()['getCode']())),this[_0x3ae899(0x146)]==_0x3ae899(0x11d)&&this[_0x3ae899(0x112)]();else{if(this[_0x3ae899(0x111)]&&this[_0x3ae899(0x111)][_0x3ae899(0x11e)]>0x0){if(this[_0x3ae899(0x151)](_0x30a9d0[_0x3ae899(0x135)]))return this[_0x3ae899(0x112)](),_0x30a9d0['preventDefault'](),![];let _0x36d15b=this[_0x3ae899(0x111)][_0x3ae899(0x11e)]+0x1;_0x36d15b<=this[_0x3ae899(0x124)]&&this[_0x3ae899(0x12b)](_0x30a9d0[_0x3ae899(0x140)]),this[_0x3ae899(0x114)](new ShEvent(DrawEventType[_0x3ae899(0x14e)],this[_0x3ae899(0x146)],_0x30a9d0['coordinate'],this[_0x3ae899(0x111)],(_0x46eaa9=this[_0x3ae899(0x14b)]())===null||_0x46eaa9===void 0x0?void 0x0:_0x46eaa9[_0x3ae899(0x13c)]()['getProjection']()[_0x3ae899(0x164)]())),_0x36d15b>=this[_0x3ae899(0x10d)]&&this[_0x3ae899(0x15e)](this[_0x3ae899(0x111)]),_0x36d15b===this['_fixPoint']&&this[_0x3ae899(0x112)]();}}return _0x30a9d0[_0x3ae899(0x12a)](),![];}['handleDragEvent'](_0x127f2b){const _0x21c838=a37_0x1f41cd;var _0xc088bc;if(this['_type']==_0x21c838(0x10c)&&_0x127f2b[_0x21c838(0x15a)]['type']==_0x21c838(0x13b)){if(!this[_0x21c838(0x130)]){this[_0x21c838(0x162)](_0x127f2b[_0x21c838(0x140)]),this[_0x21c838(0x114)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x21c838(0x146)],_0x127f2b[_0x21c838(0x140)],this['_drawingCoordinates'],(_0xc088bc=this[_0x21c838(0x14b)]())===null||_0xc088bc===void 0x0?void 0x0:_0xc088bc[_0x21c838(0x13c)]()[_0x21c838(0x123)]()[_0x21c838(0x164)]()));return;}let _0x85d0fd=[...this[_0x21c838(0x111)],_0x127f2b[_0x21c838(0x140)]];this[_0x21c838(0x15e)](_0x85d0fd),this['dispatchEvent'](new DrawEvent(DrawEventType[_0x21c838(0x126)],this[_0x21c838(0x136)],this[_0x21c838(0x111)]));}}[a37_0x1f41cd(0x161)](_0x7c8185){const _0x423ae8=a37_0x1f41cd;var _0x5989b0,_0x1cf971,_0x10bd75;let _0x490738='';this[_0x423ae8(0x146)]==_0x423ae8(0x13b)&&(this[_0x423ae8(0x162)](_0x7c8185['coordinate']),this[_0x423ae8(0x114)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x423ae8(0x146)],_0x7c8185[_0x423ae8(0x140)],this[_0x423ae8(0x111)],(_0x5989b0=this[_0x423ae8(0x14b)]())===null||_0x5989b0===void 0x0?void 0x0:_0x5989b0[_0x423ae8(0x13c)]()['getProjection']()[_0x423ae8(0x164)]())),this[_0x423ae8(0x112)]());!this[_0x423ae8(0x130)]?_0x490738=this[_0x423ae8(0x146)]==_0x423ae8(0x10c)?_0x423ae8(0x152):_0x423ae8(0x12f):(_0x490738=_0x423ae8(0x148),((_0x1cf971=this['_drawingCoordinates'])===null||_0x1cf971===void 0x0?void 0x0:_0x1cf971['length'])===this['_fixPoint']-0x1&&(_0x490738='单击结束绘制,右击删除点'),((_0x10bd75=this['_drawingCoordinates'])===null||_0x10bd75===void 0x0?void 0x0:_0x10bd75[_0x423ae8(0x11e)])>=this[_0x423ae8(0x10d)]&&this[_0x423ae8(0x124)]===Number[_0x423ae8(0x10f)]&&(_0x490738='单击增加点,右击删除点双击完成绘制'));this[_0x423ae8(0x15b)]!=undefined&&(_0x490738=this[_0x423ae8(0x15b)]);this[_0x423ae8(0x12d)](_0x7c8185[_0x423ae8(0x140)],_0x490738);if(this[_0x423ae8(0x130)]&&this[_0x423ae8(0x146)]!=_0x423ae8(0x10c)){let _0x916301=[...this[_0x423ae8(0x111)],_0x7c8185[_0x423ae8(0x140)]];this[_0x423ae8(0x15e)](_0x916301),this[_0x423ae8(0x114)](new DrawEvent(DrawEventType[_0x423ae8(0x126)],this[_0x423ae8(0x136)],this[_0x423ae8(0x111)]));}}[a37_0x1f41cd(0x151)](_0x137ca7){const _0x3d6c3d=a37_0x1f41cd;var _0x1d1635;let _0x441489=![],_0x2d153e=this[_0x3d6c3d(0x111)][_0x3d6c3d(0x11e)];if(_0x2d153e>this[_0x3d6c3d(0x10d)]&&this[_0x3d6c3d(0x124)]===Number[_0x3d6c3d(0x10f)]){const _0x268b7c=this[_0x3d6c3d(0x111)][this[_0x3d6c3d(0x111)][_0x3d6c3d(0x11e)]-0x1],_0x5e0daf=(_0x1d1635=this[_0x3d6c3d(0x14b)]())===null||_0x1d1635===void 0x0?void 0x0:_0x1d1635[_0x3d6c3d(0x11b)](_0x268b7c),_0x51d714=_0x137ca7[0x0]-(_0x5e0daf?_0x5e0daf[0x0]:0x0),_0x1c5703=_0x137ca7[0x1]-(_0x5e0daf?_0x5e0daf[0x1]:0x0);_0x441489=Math['sqrt'](_0x51d714*_0x51d714+_0x1c5703*_0x1c5703)<=this[_0x3d6c3d(0x138)];}return _0x441489;}[a37_0x1f41cd(0x162)](_0x5556d4){const _0x1da75e=a37_0x1f41cd;this[_0x1da75e(0x130)]=!![],this[_0x1da75e(0x111)]=[_0x5556d4['slice']()],this[_0x1da75e(0x136)]=this[_0x1da75e(0x145)](),this[_0x1da75e(0x116)](),this[_0x1da75e(0x114)](new DrawEvent(DrawEventType['DRAWSTART'],this[_0x1da75e(0x136)],this[_0x1da75e(0x111)]));}[a37_0x1f41cd(0x112)](){const _0x1af593=a37_0x1f41cd;if(this[_0x1af593(0x111)]['length']>this['_minPoints']){this[_0x1af593(0x15e)](this['_drawingCoordinates']);let _0x3066a2=this[_0x1af593(0x111)];const _0x241018=this[_0x1af593(0x16a)]();if(!_0x241018)return;this[_0x1af593(0x114)](new DrawEvent(DrawEventType[_0x1af593(0x157)],_0x241018,_0x3066a2)),this[_0x1af593(0x13f)]&&this[_0x1af593(0x13f)][_0x1af593(0x14d)](_0x241018),this[_0x1af593(0x158)]&&this['_source'][_0x1af593(0x14c)](_0x241018);}}[a37_0x1f41cd(0x12b)](_0x5b571b){const _0xe5fc41=a37_0x1f41cd;this[_0xe5fc41(0x111)][_0xe5fc41(0x14d)](_0x5b571b),this[_0xe5fc41(0x136)]=this[_0xe5fc41(0x145)](),this['updateSketchFeatures_']();}[a37_0x1f41cd(0x145)](){const _0x2e1eb5=a37_0x1f41cd,_0x4e8312=new MultiPoint(this['_drawingCoordinates']);let _0x3ab07c=new a37_0x224fc1();return _0x3ab07c[_0x2e1eb5(0x153)](_0x4e8312),_0x3ab07c;}[a37_0x1f41cd(0x16a)](){const _0x109fd8=a37_0x1f41cd;var _0x34fe1d,_0x502cb3;this[_0x109fd8(0x130)]=![];const _0xda03f=this[_0x109fd8(0x136)];return this[_0x109fd8(0x136)]=undefined,this[_0x109fd8(0x111)]=[],(_0x34fe1d=this[_0x109fd8(0x142)][_0x109fd8(0x118)]())===null||_0x34fe1d===void 0x0?void 0x0:_0x34fe1d[_0x109fd8(0x160)](!![]),(_0x502cb3=this[_0x109fd8(0x132)][_0x109fd8(0x118)]())===null||_0x502cb3===void 0x0?void 0x0:_0x502cb3[_0x109fd8(0x160)](!![]),_0xda03f;}['abortDrawing'](){const _0x2e84d3=a37_0x1f41cd,_0x3b8265=this['abortDrawing_']();_0x3b8265&&this[_0x2e84d3(0x114)](new DrawEvent(DrawEventType[_0x2e84d3(0x14a)],_0x3b8265,this[_0x2e84d3(0x111)]));}[a37_0x1f41cd(0x15e)](_0x2de9ee){const _0xe39ed6=a37_0x1f41cd;this[_0xe39ed6(0x136)]=new a37_0x224fc1();let _0x4ade90=createPlot(this['_type'],_0x2de9ee);if(!_0x4ade90)return;this['_sketchFeature']['setGeometry'](_0x4ade90);let _0x1e5491=[a37_0x360e6['Circle'],a37_0x360e6['Ellipsoid'],a37_0x360e6[_0xe39ed6(0x163)]];if(_0x1e5491['indexOf'](this[_0xe39ed6(0x146)])>-0x1&&this[_0xe39ed6(0x131)]){}const _0x1cc965=this[_0xe39ed6(0x14b)]();this['_sketchFeature'][_0xe39ed6(0x168)](getStyle(this[_0xe39ed6(0x146)],this[_0xe39ed6(0x131)],this[_0xe39ed6(0x14b)]())),this[_0xe39ed6(0x116)]();}[a37_0x1f41cd(0x116)](){const _0x56f4da=a37_0x1f41cd,_0x33af8c=this[_0x56f4da(0x142)][_0x56f4da(0x118)]();_0x33af8c&&this[_0x56f4da(0x136)]&&(_0x33af8c[_0x56f4da(0x160)](!![]),_0x33af8c[_0x56f4da(0x14c)](this[_0x56f4da(0x136)]));}[a37_0x1f41cd(0x144)](){const _0x23ccff=a37_0x1f41cd;if(this[_0x23ccff(0x130)]){if(this['_drawingCoordinates']&&this['_drawingCoordinates'][_0x23ccff(0x11e)]>0x0){const _0x35666a=this[_0x23ccff(0x142)]['getSource']();_0x35666a===null||_0x35666a===void 0x0?void 0x0:_0x35666a['clear'](!![]),this[_0x23ccff(0x111)]['pop'](),this[_0x23ccff(0x111)][_0x23ccff(0x11e)]>=this[_0x23ccff(0x10d)]&&this[_0x23ccff(0x15e)](this[_0x23ccff(0x111)]),this['_drawingCoordinates']['length']===0x0&&(this['_isStayDraw']=![]);}}}['updateTip_'](_0x5c583a,_0x11d672){const _0x646f4b=a37_0x1f41cd;var _0x3dbf5e,_0x3fd474,_0x1d3064,_0x22a112;if(!this[_0x646f4b(0x150)])return;const _0x34204f=this[_0x646f4b(0x132)]['getSource']();_0x34204f===null||_0x34204f===void 0x0?void 0x0:_0x34204f[_0x646f4b(0x160)](!![]),(_0x3dbf5e=this[_0x646f4b(0x11f)])===null||_0x3dbf5e===void 0x0?void 0x0:_0x3dbf5e[_0x646f4b(0x153)](new Point(_0x5c583a)),(_0x1d3064=(_0x3fd474=this[_0x646f4b(0x137)])===null||_0x3fd474===void 0x0?void 0x0:_0x3fd474['getText']())===null||_0x1d3064===void 0x0?void 0x0:_0x1d3064[_0x646f4b(0x167)](_0x11d672),(_0x22a112=this[_0x646f4b(0x11f)])===null||_0x22a112===void 0x0?void 0x0:_0x22a112[_0x646f4b(0x168)](this[_0x646f4b(0x137)]),this[_0x646f4b(0x11f)]&&(_0x34204f===null||_0x34204f===void 0x0?void 0x0:_0x34204f[_0x646f4b(0x14c)](this[_0x646f4b(0x11f)]));}}function getDefaultStyleFunction(){const _0xc6eb34=createEditingStyle();return function(_0x52315f,_0xeb98e9){const _0x53d0a5=a37_0x3a16,_0x400625=_0xc6eb34[_0x52315f['getGeometry']()[_0x53d0a5(0x127)]()];if(_0x400625&&_0x53d0a5(0x13a)==_0x52315f[_0x53d0a5(0x128)]()[_0x53d0a5(0x127)]()){}};}
|
|
1
|
+
const a37_0x471886=a37_0xc377;(function(_0x4c5de1,_0x7ceb47){const _0x118fa3=a37_0xc377,_0xfc905b=_0x4c5de1();while(!![]){try{const _0xaa26de=parseInt(_0x118fa3(0x14d))/0x1*(parseInt(_0x118fa3(0x17a))/0x2)+parseInt(_0x118fa3(0x14a))/0x3+parseInt(_0x118fa3(0x16e))/0x4*(parseInt(_0x118fa3(0x17e))/0x5)+-parseInt(_0x118fa3(0x161))/0x6*(-parseInt(_0x118fa3(0x129))/0x7)+parseInt(_0x118fa3(0x14e))/0x8*(parseInt(_0x118fa3(0x11b))/0x9)+parseInt(_0x118fa3(0x16b))/0xa*(parseInt(_0x118fa3(0x170))/0xb)+parseInt(_0x118fa3(0x181))/0xc*(-parseInt(_0x118fa3(0x16f))/0xd);if(_0xaa26de===_0x7ceb47)break;else _0xfc905b['push'](_0xfc905b['shift']());}catch(_0x42f586){_0xfc905b['push'](_0xfc905b['shift']());}}}(a37_0x27e1,0x4c470));import a37_0x49fc92 from'ol/events/Event';import a37_0x34ec15 from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';function a37_0xc377(_0x26cb36,_0x4f096d){const _0x27e184=a37_0x27e1();return a37_0xc377=function(_0xc377d9,_0x5770fe){_0xc377d9=_0xc377d9-0x119;let _0x2bed4a=_0x27e184[_0xc377d9];return _0x2bed4a;},a37_0xc377(_0x26cb36,_0x4f096d);}import a37_0x324031 from'ol/Feature';import a37_0x3e9c58,{createEditingStyle}from'ol/style/Style';function a37_0x27e1(){const _0x5e483b=['124bjHbtk','_showTip','Circle','snapTolerance','212555UtmPoq','getText','Rectangle','12oaCSOm','clear','style','showTip','DRAWMOVING','91197jxaMwD','_drawingCoordinates','buildDrawingFeature','wrapX','left','getMap','slice','button','onceInternal','createMultiPointFeature','_features','type','setMap','pointermove','105hWCGwQ','addFeature','fixPoint','12px\x20Calibre,sans-serif','feature','_tipFeature','_type','coordinates','_style','单击结束绘制,右击删除点','DRAWADDPOINT','minPoint','getView','addPoint','updateSketchFeatures_','drawend','_tipOverlay','DRAWABORT','onInternal','_minPoints','getProjection','setText','setGeometry','rgba(255,\x20255,\x20255,\x201)','pixel','handleUpEvent','getCode','coordinate','drawstart','length','finishDrawing','drawmoving','_source','1317816VFxjlB','MAX_VALUE','features','2645hUclGC','296fWSQxx','point','rectangle','tipText','startDrawing_','once','originalEvent','单击拖动绘制','atFinish_','Ellipse','pop','getGeometry','handleDragEvent','_sketchFeature','dispatchEvent','indexOf','unInternal','preventDefault','setStyle','37404ZwWSGE','push','_fixPoint','updateState_','DRAWSTART','DRAWEND','abortDrawing_','abortDrawing','_overlay','revert','20BETFhr','getSource','addChangeListener','28TAydyR','17248972Khmfqg','1485033yytRLq','updateTip_','stopDown','source','handleMoveEvent','_tipStyle','getActive','_isStayDraw','getType','_snapTolerance'];a37_0x27e1=function(){return _0x5e483b;};return a37_0x27e1();}import a37_0x5e19bb from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a37_0x59669e from'ol/style/Text';import a37_0x2a2594 from'ol/style/Fill';import a37_0x1ffd4f from'ol/interaction/Property';import a37_0x5a6235 from'ol/layer/Vector';import a37_0x2bf8d9 from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a37_0x471886(0x145),'DRAWEND':a37_0x471886(0x138),'DRAWABORT':'drawabort','DRAWADDPOINT':'drawaddpoint','DRAWMOVING':a37_0x471886(0x148)};export class DrawEvent extends a37_0x49fc92{constructor(_0x22f6db,_0x11eb11,_0x13afed){const _0x4095ea=a37_0x471886;super(_0x22f6db),this[_0x4095ea(0x12d)]=_0x11eb11,this['coordinates']=_0x13afed;}}export class ShEvent extends a37_0x49fc92{constructor(_0xf8adef,_0x3f4b41,_0x458166,_0x15d650,_0x2c9c78){const _0x13d06b=a37_0x471886;super(_0xf8adef),this['projection']=_0x2c9c78,this[_0x13d06b(0x126)]=_0x3f4b41,this['coordinate']=_0x458166,this[_0x13d06b(0x130)]=_0x15d650;}}export default class Draw extends a37_0x34ec15{constructor(_0x599537,_0x237a5d){const _0x2422ca=a37_0x471886,_0x216c7e=_0x237a5d?_0x237a5d:{};!_0x216c7e[_0x2422ca(0x172)]&&(_0x216c7e[_0x2422ca(0x172)]=![]);super(_0x237a5d),this['on']=this[_0x2422ca(0x13b)],this[_0x2422ca(0x153)]=this[_0x2422ca(0x123)],this['un']=this[_0x2422ca(0x15e)],this[_0x2422ca(0x177)]=![],this[_0x2422ca(0x12f)]=_0x599537,this[_0x2422ca(0x131)]=_0x237a5d===null||_0x237a5d===void 0x0?void 0x0:_0x237a5d[_0x2422ca(0x183)],this[_0x2422ca(0x149)]=_0x237a5d===null||_0x237a5d===void 0x0?void 0x0:_0x237a5d[_0x2422ca(0x173)],this['_features']=_0x237a5d===null||_0x237a5d===void 0x0?void 0x0:_0x237a5d[_0x2422ca(0x14c)];const _0x50f15e=getPlotCount(this[_0x2422ca(0x12f)]);this[_0x2422ca(0x13c)]=_0x50f15e[_0x2422ca(0x134)],this[_0x2422ca(0x163)]=_0x50f15e[_0x2422ca(0x12b)],this['tipText']=_0x237a5d===null||_0x237a5d===void 0x0?void 0x0:_0x237a5d['tipText'],this[_0x2422ca(0x17b)]=(_0x237a5d===null||_0x237a5d===void 0x0?void 0x0:_0x237a5d[_0x2422ca(0x119)])==![]?![]:!![],this[_0x2422ca(0x179)]=_0x216c7e[_0x2422ca(0x17d)]?_0x216c7e[_0x2422ca(0x17d)]:0x6,this['_tipFeature']=new a37_0x324031(),this['_tipStyle']=new a37_0x3e9c58({'text':new a37_0x59669e({'font':_0x2422ca(0x12c),'fill':new a37_0x2a2594({'color':_0x2422ca(0x140)}),'backgroundFill':new a37_0x2a2594({'color':'rgba(0,\x200,\x200,\x200.4)'}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x2422ca(0x11f),'offsetX':0xf})}),this['_drawingCoordinates']=[],this[_0x2422ca(0x139)]=new a37_0x5a6235({'source':new a37_0x5e19bb({'useSpatialIndex':![],'wrapX':(_0x237a5d===null||_0x237a5d===void 0x0?void 0x0:_0x237a5d[_0x2422ca(0x11e)])?_0x237a5d['wrapX']:![]})}),this[_0x2422ca(0x169)]=new a37_0x5a6235({'source':new a37_0x5e19bb({'useSpatialIndex':![],'wrapX':(_0x237a5d===null||_0x237a5d===void 0x0?void 0x0:_0x237a5d[_0x2422ca(0x11e)])?_0x237a5d['wrapX']:![]}),'updateWhileInteracting':!![]}),this[_0x2422ca(0x16d)](a37_0x1ffd4f['ACTIVE'],this[_0x2422ca(0x164)]);}['updateState_'](){const _0x2b2ba9=a37_0x471886,_0x867dc9=this[_0x2b2ba9(0x120)](),_0x279fef=this[_0x2b2ba9(0x176)]();(!_0x867dc9||!_0x279fef)&&this['abortDrawing'](),this[_0x2b2ba9(0x169)][_0x2b2ba9(0x127)](_0x279fef?_0x867dc9:null),this[_0x2b2ba9(0x139)]['setMap'](_0x279fef?_0x867dc9:null);}[a37_0x471886(0x127)](_0x594c8f){const _0x5a2169=a37_0x471886;super[_0x5a2169(0x127)](_0x594c8f),this[_0x5a2169(0x164)]();}[a37_0x471886(0x160)](_0x504188){const _0x43170a=a37_0x471886;this[_0x43170a(0x131)]=_0x504188?_0x504188:{};}['getOverlay'](){return this['_overlay'];}['handleDownEvent'](_0x24f1e8){const _0x4f543d=a37_0x471886;if(_0x24f1e8['originalEvent'][_0x4f543d(0x122)]===0x2)return _0x24f1e8[_0x4f543d(0x154)]['preventDefault'](),this[_0x4f543d(0x16a)](),this['handleMoveEvent'](_0x24f1e8),![];return!![];}[a37_0x471886(0x142)](_0x29f23c){const _0x4c5771=a37_0x471886;var _0x540ad7,_0x17602c;if(this[_0x4c5771(0x12f)]=='rectangle'&&this[_0x4c5771(0x11c)][_0x4c5771(0x146)]<0x1)return this[_0x4c5771(0x15c)](new DrawEvent(DrawEventType[_0x4c5771(0x166)],undefined,[_0x29f23c[_0x4c5771(0x144)]])),![];if(!this[_0x4c5771(0x177)])this[_0x4c5771(0x152)](_0x29f23c[_0x4c5771(0x144)]),this[_0x4c5771(0x15c)](new ShEvent(DrawEventType[_0x4c5771(0x133)],this[_0x4c5771(0x12f)],_0x29f23c[_0x4c5771(0x144)],this['_drawingCoordinates'],(_0x540ad7=this[_0x4c5771(0x120)]())===null||_0x540ad7===void 0x0?void 0x0:_0x540ad7[_0x4c5771(0x135)]()[_0x4c5771(0x13d)]()[_0x4c5771(0x143)]())),this[_0x4c5771(0x12f)]==_0x4c5771(0x14f)&&this[_0x4c5771(0x147)]();else{if(this[_0x4c5771(0x11c)]&&this['_drawingCoordinates']['length']>0x0){if(this['atFinish_'](_0x29f23c[_0x4c5771(0x141)]))return this[_0x4c5771(0x147)](),_0x29f23c[_0x4c5771(0x15f)](),![];let _0x286cd5=this[_0x4c5771(0x11c)][_0x4c5771(0x146)]+0x1;_0x286cd5<=this[_0x4c5771(0x163)]&&this[_0x4c5771(0x136)](_0x29f23c['coordinate']),this[_0x4c5771(0x15c)](new ShEvent(DrawEventType[_0x4c5771(0x133)],this[_0x4c5771(0x12f)],_0x29f23c[_0x4c5771(0x144)],this[_0x4c5771(0x11c)],(_0x17602c=this[_0x4c5771(0x120)]())===null||_0x17602c===void 0x0?void 0x0:_0x17602c[_0x4c5771(0x135)]()[_0x4c5771(0x13d)]()['getCode']())),_0x286cd5>=this['_minPoints']&&this[_0x4c5771(0x11d)](this[_0x4c5771(0x11c)]),_0x286cd5===this[_0x4c5771(0x163)]&&this[_0x4c5771(0x147)]();}}return _0x29f23c[_0x4c5771(0x15f)](),![];}[a37_0x471886(0x15a)](_0x1aea82){const _0x36e38e=a37_0x471886;var _0x3cbbc4;if(this[_0x36e38e(0x12f)]=='rectangle'&&_0x1aea82[_0x36e38e(0x154)][_0x36e38e(0x126)]==_0x36e38e(0x128)){if(!this['_isStayDraw']){this[_0x36e38e(0x152)](_0x1aea82[_0x36e38e(0x144)]),this[_0x36e38e(0x15c)](new ShEvent(DrawEventType[_0x36e38e(0x133)],this[_0x36e38e(0x12f)],_0x1aea82[_0x36e38e(0x144)],this[_0x36e38e(0x11c)],(_0x3cbbc4=this[_0x36e38e(0x120)]())===null||_0x3cbbc4===void 0x0?void 0x0:_0x3cbbc4[_0x36e38e(0x135)]()[_0x36e38e(0x13d)]()[_0x36e38e(0x143)]()));return;}let _0x86dfb2=[...this['_drawingCoordinates'],_0x1aea82[_0x36e38e(0x144)]];this['buildDrawingFeature'](_0x86dfb2),this[_0x36e38e(0x15c)](new DrawEvent(DrawEventType[_0x36e38e(0x11a)],this['_sketchFeature'],this[_0x36e38e(0x11c)]));}}[a37_0x471886(0x174)](_0x4eb80e){const _0x4d77d5=a37_0x471886;var _0x8843eb,_0x1b2e4b,_0x2f254c;let _0x248223='';this['_type']==_0x4d77d5(0x128)&&(this['startDrawing_'](_0x4eb80e['coordinate']),this[_0x4d77d5(0x15c)](new ShEvent(DrawEventType[_0x4d77d5(0x133)],this[_0x4d77d5(0x12f)],_0x4eb80e[_0x4d77d5(0x144)],this['_drawingCoordinates'],(_0x8843eb=this[_0x4d77d5(0x120)]())===null||_0x8843eb===void 0x0?void 0x0:_0x8843eb['getView']()['getProjection']()['getCode']())),this[_0x4d77d5(0x147)]());!this['_isStayDraw']?_0x248223=this[_0x4d77d5(0x12f)]==_0x4d77d5(0x150)?_0x4d77d5(0x155):'单击开始绘制':(_0x248223='单击增加点,右击删除点',((_0x1b2e4b=this[_0x4d77d5(0x11c)])===null||_0x1b2e4b===void 0x0?void 0x0:_0x1b2e4b[_0x4d77d5(0x146)])===this[_0x4d77d5(0x163)]-0x1&&(_0x248223=_0x4d77d5(0x132)),((_0x2f254c=this[_0x4d77d5(0x11c)])===null||_0x2f254c===void 0x0?void 0x0:_0x2f254c['length'])>=this[_0x4d77d5(0x13c)]&&this[_0x4d77d5(0x163)]===Number[_0x4d77d5(0x14b)]&&(_0x248223='单击增加点,右击删除点双击完成绘制'));this[_0x4d77d5(0x151)]!=undefined&&(_0x248223=this[_0x4d77d5(0x151)]);this['updateTip_'](_0x4eb80e['coordinate'],_0x248223);if(this[_0x4d77d5(0x177)]&&this[_0x4d77d5(0x12f)]!=_0x4d77d5(0x150)){let _0x5a1052=[...this[_0x4d77d5(0x11c)],_0x4eb80e[_0x4d77d5(0x144)]];this['buildDrawingFeature'](_0x5a1052),this[_0x4d77d5(0x15c)](new DrawEvent(DrawEventType[_0x4d77d5(0x11a)],this[_0x4d77d5(0x15b)],this[_0x4d77d5(0x11c)]));}}[a37_0x471886(0x156)](_0x376440){const _0x28afdb=a37_0x471886;var _0x1f0a25;let _0x12c0df=![],_0x530033=this[_0x28afdb(0x11c)][_0x28afdb(0x146)];if(_0x530033>this[_0x28afdb(0x13c)]&&this[_0x28afdb(0x163)]===Number['MAX_VALUE']){const _0x5a1044=this[_0x28afdb(0x11c)][this[_0x28afdb(0x11c)][_0x28afdb(0x146)]-0x1],_0x2dd7bf=(_0x1f0a25=this[_0x28afdb(0x120)]())===null||_0x1f0a25===void 0x0?void 0x0:_0x1f0a25['getPixelFromCoordinate'](_0x5a1044),_0x30ce84=_0x376440[0x0]-(_0x2dd7bf?_0x2dd7bf[0x0]:0x0),_0x11ae0a=_0x376440[0x1]-(_0x2dd7bf?_0x2dd7bf[0x1]:0x0);_0x12c0df=Math['sqrt'](_0x30ce84*_0x30ce84+_0x11ae0a*_0x11ae0a)<=this['_snapTolerance'];}return _0x12c0df;}['startDrawing_'](_0x5f3cb3){const _0x40c940=a37_0x471886;this[_0x40c940(0x177)]=!![],this[_0x40c940(0x11c)]=[_0x5f3cb3[_0x40c940(0x121)]()],this[_0x40c940(0x15b)]=this[_0x40c940(0x124)](),this[_0x40c940(0x137)](),this[_0x40c940(0x15c)](new DrawEvent(DrawEventType[_0x40c940(0x165)],this[_0x40c940(0x15b)],this['_drawingCoordinates']));}[a37_0x471886(0x147)](){const _0x448cfe=a37_0x471886;if(this[_0x448cfe(0x11c)]['length']>this[_0x448cfe(0x13c)]){this[_0x448cfe(0x11d)](this[_0x448cfe(0x11c)]);let _0x2099c4=this['_drawingCoordinates'];const _0x1c6e7b=this[_0x448cfe(0x167)]();if(!_0x1c6e7b)return;this['dispatchEvent'](new DrawEvent(DrawEventType['DRAWEND'],_0x1c6e7b,_0x2099c4)),this[_0x448cfe(0x125)]&&this[_0x448cfe(0x125)][_0x448cfe(0x162)](_0x1c6e7b),this[_0x448cfe(0x149)]&&this['_source']['addFeature'](_0x1c6e7b);}}[a37_0x471886(0x136)](_0x20798a){const _0xc10b0d=a37_0x471886;this[_0xc10b0d(0x11c)][_0xc10b0d(0x162)](_0x20798a),this[_0xc10b0d(0x15b)]=this[_0xc10b0d(0x124)](),this['updateSketchFeatures_']();}['createMultiPointFeature'](){const _0x12bf76=a37_0x471886,_0x599b70=new MultiPoint(this[_0x12bf76(0x11c)]);let _0x1272f1=new a37_0x324031();return _0x1272f1[_0x12bf76(0x13f)](_0x599b70),_0x1272f1;}['abortDrawing_'](){const _0x42a2a4=a37_0x471886;var _0x508470,_0x3e864f;this[_0x42a2a4(0x177)]=![];const _0x20b327=this['_sketchFeature'];return this[_0x42a2a4(0x15b)]=undefined,this[_0x42a2a4(0x11c)]=[],(_0x508470=this[_0x42a2a4(0x169)][_0x42a2a4(0x16c)]())===null||_0x508470===void 0x0?void 0x0:_0x508470[_0x42a2a4(0x182)](!![]),(_0x3e864f=this[_0x42a2a4(0x139)][_0x42a2a4(0x16c)]())===null||_0x3e864f===void 0x0?void 0x0:_0x3e864f[_0x42a2a4(0x182)](!![]),_0x20b327;}[a37_0x471886(0x168)](){const _0x39bca4=a37_0x471886,_0x30e3ef=this[_0x39bca4(0x167)]();_0x30e3ef&&this[_0x39bca4(0x15c)](new DrawEvent(DrawEventType[_0x39bca4(0x13a)],_0x30e3ef,this['_drawingCoordinates']));}[a37_0x471886(0x11d)](_0x8f884d){const _0x9e075d=a37_0x471886;this['_sketchFeature']=new a37_0x324031();let _0xff862f=createPlot(this[_0x9e075d(0x12f)],_0x8f884d);if(!_0xff862f)return;this[_0x9e075d(0x15b)][_0x9e075d(0x13f)](_0xff862f);let _0xf02841=[a37_0x2bf8d9[_0x9e075d(0x17c)],a37_0x2bf8d9['Ellipsoid'],a37_0x2bf8d9[_0x9e075d(0x157)]];if(_0xf02841[_0x9e075d(0x15d)](this['_type'])>-0x1&&this[_0x9e075d(0x131)]){}const _0x286c9e=this['getMap']();this[_0x9e075d(0x15b)][_0x9e075d(0x160)](getStyle(this[_0x9e075d(0x12f)],this[_0x9e075d(0x131)],this[_0x9e075d(0x120)]())),this['updateSketchFeatures_']();}[a37_0x471886(0x137)](){const _0x1481a6=a37_0x471886,_0x43e362=this[_0x1481a6(0x169)][_0x1481a6(0x16c)]();_0x43e362&&this[_0x1481a6(0x15b)]&&(_0x43e362['clear'](!![]),_0x43e362['addFeature'](this[_0x1481a6(0x15b)]));}[a37_0x471886(0x16a)](){const _0x51e119=a37_0x471886;if(this[_0x51e119(0x177)]){if(this[_0x51e119(0x11c)]&&this[_0x51e119(0x11c)][_0x51e119(0x146)]>0x0){const _0x4fc023=this[_0x51e119(0x169)][_0x51e119(0x16c)]();_0x4fc023===null||_0x4fc023===void 0x0?void 0x0:_0x4fc023[_0x51e119(0x182)](!![]),this['_drawingCoordinates'][_0x51e119(0x158)](),this['_drawingCoordinates'][_0x51e119(0x146)]>=this['_minPoints']&&this['buildDrawingFeature'](this['_drawingCoordinates']),this[_0x51e119(0x11c)][_0x51e119(0x146)]===0x0&&(this['_isStayDraw']=![]);}}}[a37_0x471886(0x171)](_0x39efcf,_0x28d01e){const _0x258392=a37_0x471886;var _0x328b08,_0x537118,_0x4ec998,_0x59c249;if(!this[_0x258392(0x17b)])return;const _0x242409=this['_tipOverlay'][_0x258392(0x16c)]();_0x242409===null||_0x242409===void 0x0?void 0x0:_0x242409[_0x258392(0x182)](!![]),(_0x328b08=this[_0x258392(0x12e)])===null||_0x328b08===void 0x0?void 0x0:_0x328b08[_0x258392(0x13f)](new Point(_0x39efcf)),(_0x4ec998=(_0x537118=this[_0x258392(0x175)])===null||_0x537118===void 0x0?void 0x0:_0x537118[_0x258392(0x17f)]())===null||_0x4ec998===void 0x0?void 0x0:_0x4ec998[_0x258392(0x13e)](_0x28d01e),(_0x59c249=this[_0x258392(0x12e)])===null||_0x59c249===void 0x0?void 0x0:_0x59c249[_0x258392(0x160)](this['_tipStyle']),this['_tipFeature']&&(_0x242409===null||_0x242409===void 0x0?void 0x0:_0x242409[_0x258392(0x12a)](this[_0x258392(0x12e)]));}}function getDefaultStyleFunction(){const _0x4e25a3=createEditingStyle();return function(_0x1f888b,_0x4fc4e4){const _0x1612c9=a37_0xc377,_0x43f431=_0x4e25a3[_0x1f888b[_0x1612c9(0x159)]()[_0x1612c9(0x178)]()];if(_0x43f431&&_0x1612c9(0x180)==_0x1f888b[_0x1612c9(0x159)]()[_0x1612c9(0x178)]()){}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a38_0x49e6(_0x448b7e,_0x46ccb1){const _0x557b7a=a38_0x557b();return a38_0x49e6=function(_0x49e65b,_0x33950c){_0x49e65b=_0x49e65b-0x195;let _0x46993d=_0x557b7a[_0x49e65b];return _0x46993d;},a38_0x49e6(_0x448b7e,_0x46ccb1);}const a38_0x3a336e=a38_0x49e6;(function(_0x23bfb4,_0x11d6ca){const _0x5529a1=a38_0x49e6,_0x31e06f=_0x23bfb4();while(!![]){try{const _0x287b49=-parseInt(_0x5529a1(0x1a7))/0x1+parseInt(_0x5529a1(0x19a))/0x2*(parseInt(_0x5529a1(0x19e))/0x3)+-parseInt(_0x5529a1(0x1a2))/0x4+-parseInt(_0x5529a1(0x197))/0x5+parseInt(_0x5529a1(0x1a1))/0x6+parseInt(_0x5529a1(0x199))/0x7+parseInt(_0x5529a1(0x19d))/0x8;if(_0x287b49===_0x11d6ca)break;else _0x31e06f['push'](_0x31e06f['shift']());}catch(_0x129474){_0x31e06f['push'](_0x31e06f['shift']());}}}(a38_0x557b,0x88026));function a38_0x557b(){const _0x4f714c=['15vYECmQ','removeAllInteractions','clear','3200940zTYjhE','1531448ptfDee','get','delete','interactions','set','725068NduUFq','getInteraction','has','removeInteraction','2155040eVOGoO','addInteraction','3333554pDMwvk','179160zsjMaC','map','forEach','5107360RlGrrm'];a38_0x557b=function(){return _0x4f714c;};return a38_0x557b();}export default class InteractionManager{constructor(_0x1902f9){const _0x59cb5d=a38_0x49e6;this[_0x59cb5d(0x19b)]=_0x1902f9,this[_0x59cb5d(0x1a5)]=new Map();}['addInteraction'](_0x5c572c,_0x55536b){const _0x3586ed=a38_0x49e6;this[_0x3586ed(0x1a5)][_0x3586ed(0x195)](_0x5c572c)&&this[_0x3586ed(0x196)](_0x5c572c),_0x55536b[_0x3586ed(0x1a6)]('name',_0x5c572c),this[_0x3586ed(0x1a5)][_0x3586ed(0x1a6)](_0x5c572c,_0x55536b),this[_0x3586ed(0x19b)][_0x3586ed(0x198)](_0x55536b);}[a38_0x3a336e(0x196)](_0xd87b48){const _0x5f1a96=a38_0x3a336e,_0x51547f=this['interactions'][_0x5f1a96(0x1a3)](_0xd87b48);_0x51547f&&(this[_0x5f1a96(0x19b)][_0x5f1a96(0x196)](_0x51547f),this[_0x5f1a96(0x1a5)][_0x5f1a96(0x1a4)](_0xd87b48));}[a38_0x3a336e(0x19f)](){const _0x222644=a38_0x3a336e;this[_0x222644(0x1a5)][_0x222644(0x19c)](_0x333e05=>{const _0x37e12d=_0x222644;this[_0x37e12d(0x19b)]['removeInteraction'](_0x333e05);}),this[_0x222644(0x1a5)][_0x222644(0x1a0)]();}[a38_0x3a336e(0x1a8)](_0x265da1){const _0x287a93=a38_0x3a336e;return this[_0x287a93(0x1a5)][_0x287a93(0x1a3)](_0x265da1);}}
|
package/interaction/Select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a39_0xecf35e=a39_0x2c2c;function a39_0x2c2c(_0x1d54d0,_0x6d65a8){const _0x50d113=a39_0x50d1();return a39_0x2c2c=function(_0x2c2c07,_0x865c5c){_0x2c2c07=_0x2c2c07-0x114;let _0x106e1d=_0x50d113[_0x2c2c07];return _0x106e1d;},a39_0x2c2c(_0x1d54d0,_0x6d65a8);}(function(_0x496518,_0x4ccf69){const _0xcfa7e1=a39_0x2c2c,_0x23ad22=_0x496518();while(!![]){try{const _0x394a39=-parseInt(_0xcfa7e1(0x137))/0x1*(parseInt(_0xcfa7e1(0x15a))/0x2)+parseInt(_0xcfa7e1(0x12d))/0x3*(parseInt(_0xcfa7e1(0x14e))/0x4)+parseInt(_0xcfa7e1(0x14c))/0x5*(parseInt(_0xcfa7e1(0x15b))/0x6)+-parseInt(_0xcfa7e1(0x161))/0x7+parseInt(_0xcfa7e1(0x11f))/0x8+-parseInt(_0xcfa7e1(0x12c))/0x9*(-parseInt(_0xcfa7e1(0x138))/0xa)+-parseInt(_0xcfa7e1(0x152))/0xb;if(_0x394a39===_0x4ccf69)break;else _0x23ad22['push'](_0x23ad22['shift']());}catch(_0x19e2a9){_0x23ad22['push'](_0x23ad22['shift']());}}}(a39_0x50d1,0x62e93));import a39_0x369bdd from'./Draw';import a39_0x489bc2 from'ol/events/Event';function a39_0x50d1(){const _0x990bc=['polygonStyle','feature','pointFeatures','canceLineStyle','getPolygonTempLayer','getMap','holdCtrl','setStyle','cancePolygonStyle','fromType','push','getSelectedFeatures','SELECTED','ctrlKey','currentLayers','map','selectstart','union','selectGeom','5LObyyy','cancePointStyle','85896oHtHAU','drawaddpoint','lineFeatures','forEach','1552771pWENCu','addFeatures','keyup','getType','selectIndex','error','getView','MultiPoint','5538MZhRTf','2332938tQljNO','length','layerType','layerInfo','getVisible','MultiPolygon','1413930WsXbip','selected','lineStyle','tempLayer','url','selectedLineFeatures','drawstart','addTempLayer','getSource','cut','drawend','getCode','getLayers','未获取到几何','selectedPolygonFeatures','layerId','getGeometry','getProjection','selectedPointFeatures','SELECTSTART','draw','allFeatures','dispatchEvent','allSelectedFeatures','selectTempLayer','import','2994904qYtkzo','Point','setSelectLayers','Polygon','getLineTempLayer','message','filter','seletctEditeFeature','getPointTempLayer','drawabort','pixelDistance','tipText','getArray','18dBxVtv','27pFGeSn','LineString','drawmoving','includes','keydown','selectLayer','MultiLineString','coordinates','selectLayers','pointStyle','156uXYAJz','1119010dYifvI'];a39_0x50d1=function(){return _0x990bc;};return a39_0x50d1();}import{bufferPixel,intersects}from'../utils/GeometryUtil';import{Point}from'ol/geom';import a39_0x591523 from'../feature/FeatureManager';import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';import{selectFeaturesByGeo}from'../utils/tasks';const SelectEventType={'DRAWSTART':a39_0xecf35e(0x167),'DRAWEND':a39_0xecf35e(0x16b),'DRAWABORT':a39_0xecf35e(0x128),'DRAWADDPOINT':a39_0xecf35e(0x14f),'DRAWMOVING':a39_0xecf35e(0x12f),'SELECTSTART':a39_0xecf35e(0x149),'SELECTED':a39_0xecf35e(0x162)};export class SelectEvent extends a39_0x489bc2{constructor(_0x1c82ed,_0x1e3888,_0x35f878,_0x2e9155,_0x5368bd,_0x12fe47,_0x2f1cfb,_0x398eca,_0x3346e0){const _0xe4d81e=a39_0xecf35e;super(_0x1c82ed),this[_0xe4d81e(0x14b)]=_0x35f878,this['coordinates']=_0x2e9155,this[_0xe4d81e(0x13b)]=_0x5368bd,this[_0xe4d81e(0x150)]=_0x12fe47,this['polygonFeatures']=_0x2f1cfb,this[_0xe4d81e(0x11a)]=_0x398eca,this[_0xe4d81e(0x157)]=_0x3346e0,this[_0xe4d81e(0x13f)]=_0x1e3888;}}export default class Select extends a39_0x369bdd{constructor(_0xcf837b,_0xf04687){const _0x4abca0=a39_0xecf35e;super(_0xcf837b,{'tipText':_0xf04687===null||_0xf04687===void 0x0?void 0x0:_0xf04687[_0x4abca0(0x12a)]}),this[_0x4abca0(0x117)]=[],this[_0x4abca0(0x166)]=[],this[_0x4abca0(0x16f)]=[],this[_0x4abca0(0x11c)]=[];const _0x497e40=_0xf04687||{};this[_0x4abca0(0x168)]=_0x497e40[_0x4abca0(0x168)]||![],this['currentLayers']=_0x497e40[_0x4abca0(0x135)],this[_0x4abca0(0x11d)]=_0x497e40[_0x4abca0(0x11d)]===undefined?!![]:_0x497e40[_0x4abca0(0x11d)],this[_0x4abca0(0x129)]=_0x497e40[_0x4abca0(0x129)]===undefined?0x5:_0x497e40['pixelDistance'],this[_0x4abca0(0x136)]=_0x497e40[_0x4abca0(0x136)]?getStyle(_0x497e40['pointStyle']):getSelectPointStyle(),this[_0x4abca0(0x14d)]=_0x497e40[_0x4abca0(0x14d)]?getStyle(_0x497e40['cancePointStyle']):getSelectCancePointStyle(),this[_0x4abca0(0x163)]=_0x497e40[_0x4abca0(0x163)]?getStyle(_0x497e40['lineStyle']):getSelectLineStyle(),this[_0x4abca0(0x13c)]=_0x497e40[_0x4abca0(0x13c)]?getStyle(_0x497e40[_0x4abca0(0x13c)]):getSelectCancelLineStyle(),this['polygonStyle']=_0x497e40[_0x4abca0(0x139)]?getStyle(_0x497e40[_0x4abca0(0x139)]):getSelectPolygonStyle(),this[_0x4abca0(0x141)]=_0x497e40[_0x4abca0(0x141)]?getStyle(_0x497e40[_0x4abca0(0x141)]):getSelectCancelPolygonStyle(),this['holdCtrl']=![];let _0x48e493;this['on']=this['onInternal'],this['on']('drawend',async _0x133196=>{const _0x54fd87=_0x4abca0,_0x47eb88=this['holdCtrl'],_0x35db19=this[_0x54fd87(0x13e)]();if(!_0x35db19)return;try{let _0x53e670=undefined;if(!_0x133196[_0x54fd87(0x13a)]&&_0x133196['coordinates']&&_0x133196[_0x54fd87(0x134)][_0x54fd87(0x15c)]==0x1)_0x53e670=bufferPixel(new Point(_0x133196['coordinates'][0x0]),this[_0x54fd87(0x129)],_0x35db19);else _0x133196['feature']&&(_0x53e670=_0x133196[_0x54fd87(0x13a)]['getGeometry']());if(!_0x53e670)throw new Error(_0x54fd87(0x16e));this[_0x54fd87(0x11b)](new SelectEvent(SelectEventType[_0x54fd87(0x118)],_0x47eb88,_0x53e670)),this[_0x54fd87(0x117)]=[],this[_0x54fd87(0x166)]=[],this[_0x54fd87(0x16f)]=[],this[_0x54fd87(0x11c)]=[],this[_0x54fd87(0x11d)]&&this[_0x54fd87(0x126)](_0x53e670),_0x48e493&&clearTimeout(_0x48e493),_0x48e493=setTimeout(async()=>{const _0x5bcbea=_0x54fd87;await this[_0x5bcbea(0x132)](_0x53e670),this['dispatchEvent'](new SelectEvent(SelectEventType[_0x5bcbea(0x145)],_0x47eb88,_0x53e670,_0x133196[_0x5bcbea(0x134)],this['selectedPointFeatures'],this[_0x5bcbea(0x166)],this[_0x5bcbea(0x16f)],this['allSelectedFeatures']));},0x46);}catch(_0x4ea487){this['dispatchEvent'](new SelectEvent(SelectEventType[_0x54fd87(0x145)],_0x47eb88,undefined,_0x133196['coordinates'],this['selectedPointFeatures'],this['selectedLineFeatures'],this[_0x54fd87(0x16f)],this[_0x54fd87(0x11c)],_0x4ea487[_0x54fd87(0x124)]));}}),window['addEventListener'](_0x4abca0(0x131),_0x5b5046=>{const _0x4db2df=_0x4abca0;_0x5b5046[_0x4db2df(0x146)]&&(this['holdCtrl']=!![]);}),window['addEventListener'](_0x4abca0(0x154),_0x3f9ec2=>{const _0x1878d8=_0x4abca0;this[_0x1878d8(0x13f)]=![];});}[a39_0xecf35e(0x121)](_0x243266){const _0x471cdc=a39_0xecf35e;this[_0x471cdc(0x147)]=_0x243266;}async[a39_0xecf35e(0x132)](_0x4d63d1){const _0x164e9b=a39_0xecf35e;var _0xd3604a;const _0x10da02=this[_0x164e9b(0x13e)]();let _0x1d7705=[];if(this[_0x164e9b(0x147)]&&this[_0x164e9b(0x147)][_0x164e9b(0x15c)]>0x0)_0x1d7705=this[_0x164e9b(0x147)];else{let _0x370f08=_0x10da02[_0x164e9b(0x16d)]()[_0x164e9b(0x12b)]();_0x370f08=_0x370f08[_0x164e9b(0x125)](_0x34d6e1=>{const _0x1bc01b=_0x164e9b,_0x2f73dd=_0x34d6e1[_0x1bc01b(0x15e)];if(!_0x2f73dd)return![];return _0x34d6e1[_0x1bc01b(0x15f)]()==!![]&&_0x2f73dd[_0x1bc01b(0x156)]!=undefined&&_0x2f73dd[_0x1bc01b(0x156)]!='';}),_0x1d7705=_0x370f08[_0x164e9b(0x148)](_0x5f2e4c=>{const _0x1d5e51=_0x164e9b;return _0x5f2e4c[_0x1d5e51(0x15e)];});}if(!_0x1d7705||_0x1d7705[_0x164e9b(0x15c)]==0x0)return;const _0x3b70a9=_0x10da02[_0x164e9b(0x158)]()[_0x164e9b(0x116)]()[_0x164e9b(0x16c)]();for(let _0x43fabc=0x0,_0x333989=_0x1d7705[_0x164e9b(0x15c)];_0x43fabc<_0x333989;_0x43fabc++){const _0x420915=_0x1d7705[_0x43fabc];if(!_0x420915||!_0x420915['url']||!_0x420915['selectIndex'])continue;let _0xfdc758=await selectFeaturesByGeo(_0x4d63d1,_0x3b70a9,_0x420915[_0x164e9b(0x165)],_0x420915['selectIndex'],_0x420915[_0x164e9b(0x15d)],_0x420915['loadFilter']);if(_0xfdc758[_0x164e9b(0x15c)]>0x0){this[_0x164e9b(0x11c)][_0x164e9b(0x143)](..._0xfdc758);let _0x3943cc=_0x10da02[_0x164e9b(0x13d)](),_0x94fa58=this[_0x164e9b(0x139)];switch((_0xd3604a=_0xfdc758[0x0]['getGeometry']())===null||_0xd3604a===void 0x0?void 0x0:_0xd3604a[_0x164e9b(0x155)]()){case _0x164e9b(0x120):case _0x164e9b(0x159):this[_0x164e9b(0x117)][_0x164e9b(0x143)](..._0xfdc758),_0x3943cc=_0x10da02[_0x164e9b(0x127)](),_0x94fa58=this[_0x164e9b(0x136)];break;case'LineString':case _0x164e9b(0x133):this['selectedLineFeatures'][_0x164e9b(0x143)](..._0xfdc758),_0x3943cc=_0x10da02[_0x164e9b(0x123)](),_0x94fa58=this[_0x164e9b(0x163)];break;case _0x164e9b(0x122):case _0x164e9b(0x160):this[_0x164e9b(0x16f)][_0x164e9b(0x143)](..._0xfdc758),_0x3943cc=_0x10da02[_0x164e9b(0x13d)](),_0x94fa58=this[_0x164e9b(0x139)];break;default:break;}const _0x1965a5=_0x3943cc[_0x164e9b(0x169)]();_0x1965a5&&(_0xfdc758[_0x164e9b(0x151)](_0x1bfa9a=>{const _0x25f7e1=_0x164e9b;_0x1bfa9a[_0x25f7e1(0x114)]=_0x420915['id'],_0x1bfa9a[_0x25f7e1(0x164)]=_0x3943cc,_0x1bfa9a['setStyle'](_0x94fa58);}),this['addTempLayer']&&_0x1965a5[_0x164e9b(0x153)](_0xfdc758));}}}['seletctEditeFeature'](_0x3af1d5){const _0x3bea56=a39_0xecf35e,_0x3bace8=new a39_0x591523(this[_0x3bea56(0x13e)]()),_0x1c9cc0=_0x3bace8[_0x3bea56(0x144)]();if(!_0x1c9cc0||_0x1c9cc0['length']===0x0)return[];const _0x412cbe=['copy',_0x3bea56(0x16a),_0x3bea56(0x119),_0x3bea56(0x11e),_0x3bea56(0x14a)],_0x2ad1bc=[];for(const _0x33762c of _0x1c9cc0){if(!_0x33762c||!_0x33762c[_0x3bea56(0x142)]||!_0x412cbe[_0x3bea56(0x130)](_0x33762c['fromType']))continue;const _0x276612=_0x33762c[_0x3bea56(0x115)]();if(!_0x276612)continue;if(!intersects(_0x276612,_0x3af1d5))continue;let _0x1e7a1e=this['polygonStyle'];this['allSelectedFeatures']['push'](_0x33762c);switch(_0x276612[_0x3bea56(0x155)]()){case _0x3bea56(0x120):case _0x3bea56(0x159):this['selectedPointFeatures']['push'](_0x33762c),_0x1e7a1e=this['pointStyle'];break;case _0x3bea56(0x12e):case'MultiLineString':this[_0x3bea56(0x166)][_0x3bea56(0x143)](_0x33762c),_0x1e7a1e=this[_0x3bea56(0x163)];break;case _0x3bea56(0x122):case _0x3bea56(0x160):this[_0x3bea56(0x16f)][_0x3bea56(0x143)](_0x33762c),_0x1e7a1e=this['polygonStyle'];break;default:break;}_0x33762c[_0x3bea56(0x140)](_0x1e7a1e);}return _0x2ad1bc;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5cb980,_0x42a7a3){const _0x304be2=a40_0x3819,_0x4b18e0=_0x5cb980();while(!![]){try{const _0x15160b=parseInt(_0x304be2(0x175))/0x1*(-parseInt(_0x304be2(0x184))/0x2)+-parseInt(_0x304be2(0x171))/0x3*(parseInt(_0x304be2(0x174))/0x4)+parseInt(_0x304be2(0x188))/0x5+-parseInt(_0x304be2(0x179))/0x6+-parseInt(_0x304be2(0x170))/0x7*(parseInt(_0x304be2(0x18a))/0x8)+-parseInt(_0x304be2(0x172))/0x9+parseInt(_0x304be2(0x17e))/0xa;if(_0x15160b===_0x42a7a3)break;else _0x4b18e0['push'](_0x4b18e0['shift']());}catch(_0x2d533b){_0x4b18e0['push'](_0x4b18e0['shift']());}}}(a40_0x3314,0x33480));import a40_0x5d3a6b from'ol/source/ImageArcGISRest';function a40_0x3314(){const _0x290e66=['wkid','xmin','show:','15106byQXdt','33mDhQBg','2344833wwSrdu','loadFilter','136036yvvpxx','2649BlIhpY','stringify','wkt','ymin','2401350OCZhTE','EPSG:','sublayers','layerInfo','url','15962320BTplEk','xmax','selectIndex','anonymous','layerDefs','join','106OmZQhE','spatialReference','ymax','initialExtent','704140hHTVfw','projection','1304oYmhsj','fullExtent'];a40_0x3314=function(){return _0x290e66;};return a40_0x3314();}import{Image as a40_0x55556b}from'ol/layer';function a40_0x3819(_0x5dcc64,_0x8b198c){const _0x3314c1=a40_0x3314();return a40_0x3819=function(_0x38197f,_0x9398a9){_0x38197f=_0x38197f-0x16f;let _0x4f2b82=_0x3314c1[_0x38197f];return _0x4f2b82;},a40_0x3819(_0x5dcc64,_0x8b198c);}import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisDynamicLayer extends a40_0x55556b{constructor(_0x5cf9aa,_0x3b6fb7){const _0x2aea85=a40_0x3819;var _0x2d5fe6;let _0xb19568={'LAYERS':_0x2aea85(0x16f)+((_0x2d5fe6=_0x5cf9aa[_0x2aea85(0x17b)])===null||_0x2d5fe6===void 0x0?void 0x0:_0x2d5fe6[_0x2aea85(0x183)](','))};if(_0x5cf9aa[_0x2aea85(0x173)]&&_0x5cf9aa['selectIndex']){const _0x57b53f={};_0x57b53f[_0x5cf9aa[_0x2aea85(0x180)]]=_0x5cf9aa[_0x2aea85(0x173)],_0xb19568[_0x2aea85(0x182)]=JSON[_0x2aea85(0x176)](_0x57b53f);}const _0x60a1bd=[_0x3b6fb7[_0x2aea85(0x187)]['xmin'],_0x3b6fb7[_0x2aea85(0x187)][_0x2aea85(0x178)],_0x3b6fb7['initialExtent'][_0x2aea85(0x17f)],_0x3b6fb7[_0x2aea85(0x187)][_0x2aea85(0x186)]],_0x2f8b16=[_0x3b6fb7['fullExtent'][_0x2aea85(0x18d)],_0x3b6fb7[_0x2aea85(0x18b)]['ymin'],_0x3b6fb7[_0x2aea85(0x18b)]['xmax'],_0x3b6fb7[_0x2aea85(0x18b)]['ymax']];let _0x4e679f;_0x3b6fb7['spatialReference'][_0x2aea85(0x18c)]?_0x4e679f=registerProj(_0x2aea85(0x17a)+_0x3b6fb7[_0x2aea85(0x185)][_0x2aea85(0x18c)],_0x2f8b16):_0x4e679f=registerProj(_0x3b6fb7['spatialReference'][_0x2aea85(0x177)],_0x2f8b16),super({'opacity':_0x5cf9aa['opacity'],'zIndex':_0x5cf9aa['mapIndex'],'source':new a40_0x5d3a6b({'crossOrigin':_0x2aea85(0x181),'projection':_0x4e679f,'ratio':0x1,'url':_0x5cf9aa[_0x2aea85(0x17d)],'params':_0xb19568})}),this['id']=_0x5cf9aa['id'],this[_0x2aea85(0x187)]=_0x60a1bd,this[_0x2aea85(0x189)]=_0x4e679f,this[_0x2aea85(0x17c)]=_0x5cf9aa;}['setFilter'](_0x5e250a){const _0x7d7ff3=a40_0x3819;var _0x2e3898;const _0x296756={};this[_0x7d7ff3(0x17c)][_0x7d7ff3(0x180)]&&(_0x296756[this[_0x7d7ff3(0x17c)]['selectIndex']]=_0x5e250a),(_0x2e3898=this['getSource']())===null||_0x2e3898===void 0x0?void 0x0:_0x2e3898['updateParams']({'layerDefs':JSON[_0x7d7ff3(0x176)](_0x5e250a)});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41_0x101fec=a41_0xb50f;(function(_0x1898c6,_0x2fd97d){const _0x2aea1a=a41_0xb50f,_0x29b988=_0x1898c6();while(!![]){try{const _0x1663d8=parseInt(_0x2aea1a(0x119))/0x1*(parseInt(_0x2aea1a(0x10d))/0x2)+parseInt(_0x2aea1a(0x124))/0x3+parseInt(_0x2aea1a(0x122))/0x4*(-parseInt(_0x2aea1a(0x126))/0x5)+-parseInt(_0x2aea1a(0x139))/0x6+parseInt(_0x2aea1a(0x10f))/0x7*(-parseInt(_0x2aea1a(0x120))/0x8)+parseInt(_0x2aea1a(0x111))/0x9+-parseInt(_0x2aea1a(0x138))/0xa;if(_0x1663d8===_0x2fd97d)break;else _0x29b988['push'](_0x29b988['shift']());}catch(_0xbdb832){_0x29b988['push'](_0x29b988['shift']());}}}(a41_0x48ed,0x77f9a));import a41_0x2bcbb4 from'ol/format/EsriJSON';import a41_0x1e64bf from'ol/source/Vector';import{Vector as a41_0x564120}from'ol/layer';import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';import{tile as a41_0x3b203f}from'ol/loadingstrategy';import a41_0x568a3b from'ol/layer/Group';import{registerProj}from'../utils/RegisterProjUtil';function a41_0xb50f(_0x6ee3eb,_0x35ddee){const _0x48ed24=a41_0x48ed();return a41_0xb50f=function(_0xb50fc4,_0x503027){_0xb50fc4=_0xb50fc4-0x107;let _0x1c1751=_0x48ed24[_0xb50fc4];return _0x1c1751;},a41_0xb50f(_0x6ee3eb,_0x35ddee);}function a41_0x48ed(){const _0x5509df=['xmin','&geometryType=esriGeometryEnvelope&inSR=','createArcGISFeatureLayer','defaultSymbol','log','returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry=','6712XxUiIz','ymin','4hQuLax',',\x22spatialReference\x22:{\x22wkid\x22:','2420376jjwriY','find','3967370RmeYNf','split','readFeatures','then','showIndex','symbol','wkid','url','forEach','loadFilter','renderer','&outFields=*','push','drawingInfo','projection','field1','setLayers','setStyle','3669240vRNjLR','1110990GlsTzs','xmax','stringify','spatialReference','{\x22xmin\x22:','type',',\x22ymin\x22:','1402VgItsn','f\x20=\x20json\x20&\x20','5474pPRaJk','value','8507970lqelgE','string','layerInfo','ymax',',\x22xmax\x22:','initialExtent','fullExtent','error','1057sdglSW'];a41_0x48ed=function(){return _0x5509df;};return a41_0x48ed();}import{transformedEsriStyle}from'../utils/StyleUtil';import a41_0x170f8c from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';export default class ArcgisFeatureLayer extends a41_0x568a3b{constructor(_0x1ed9ab,_0x3f013d,_0x5eae92){const _0x52ca61=a41_0xb50f,_0x58ccd7=[_0x3f013d[_0x52ca61(0x116)]['xmin'],_0x3f013d[_0x52ca61(0x116)]['ymin'],_0x3f013d[_0x52ca61(0x116)]['xmax'],_0x3f013d[_0x52ca61(0x116)][_0x52ca61(0x114)]],_0x2af3be=[_0x3f013d[_0x52ca61(0x117)][_0x52ca61(0x11a)],_0x3f013d[_0x52ca61(0x117)][_0x52ca61(0x121)],_0x3f013d[_0x52ca61(0x117)][_0x52ca61(0x107)],_0x3f013d[_0x52ca61(0x117)][_0x52ca61(0x114)]];let _0x140a8e;_0x3f013d[_0x52ca61(0x109)][_0x52ca61(0x12c)]?_0x140a8e=registerProj('EPSG:'+_0x3f013d[_0x52ca61(0x109)]['wkid'],_0x2af3be):_0x140a8e=registerProj(_0x3f013d[_0x52ca61(0x109)]['wkt'],_0x2af3be);let _0x27851d=[];super({'zIndex':_0x1ed9ab['mapIndex']});for(let _0x10895f of _0x5eae92){let _0x16529a=this[_0x52ca61(0x11c)](_0x1ed9ab,_0x10895f);_0x27851d[_0x52ca61(0x132)](_0x16529a);}this[_0x52ca61(0x136)](new a41_0x170f8c(_0x27851d)),this['id']=_0x1ed9ab['id'],this['initialExtent']=_0x58ccd7,this[_0x52ca61(0x134)]=_0x140a8e,this[_0x52ca61(0x113)]=_0x1ed9ab;}[a41_0x101fec(0x11c)](_0x1c8d0c,_0x2245bf){const _0x1268d1=a41_0x101fec;var _0x58a7eb=new a41_0x2bcbb4();let _0xcc400e=new a41_0x1e64bf({'loader':function(_0x4daf2b,_0x4f8dde,_0x3ba118){const _0x3442f6=a41_0xb50f;let _0x59616c='1=1';_0x1c8d0c['loadFilter']&&(_0x59616c=typeof _0x1c8d0c['loadFilter']===_0x3442f6(0x112)?_0x1c8d0c['loadFilter']:JSON[_0x3442f6(0x108)](_0x1c8d0c[_0x3442f6(0x12f)]));let _0x4d5235=_0x3ba118['getCode'](),_0x2c78b0=_0x4d5235[_0x3442f6(0x127)](':')[0x1];var _0x183727=appendPath(_0x2245bf[_0x3442f6(0x12d)],'/query');_0x183727=appendParam(_0x183727,_0x3442f6(0x10e)+'where='+encodeURIComponent(_0x59616c)+_0x3442f6(0x11f)+encodeURIComponent(_0x3442f6(0x10a)+_0x4daf2b[0x0]+_0x3442f6(0x10c)+_0x4daf2b[0x1]+_0x3442f6(0x115)+_0x4daf2b[0x2]+',\x22ymax\x22:'+_0x4daf2b[0x3]+_0x3442f6(0x123)+_0x2c78b0+'}}')+_0x3442f6(0x11b)+_0x2c78b0+_0x3442f6(0x131)+'&outSR='+_0x2c78b0),jsonp(_0x183727)[_0x3442f6(0x129)](_0x300a7e=>{const _0x3496d1=_0x3442f6;if(_0x300a7e[_0x3496d1(0x118)])console[_0x3496d1(0x11e)](_0x300a7e);else{var _0xef8098=_0x58a7eb[_0x3496d1(0x128)](_0x300a7e,{'featureProjection':_0x3ba118});_0xef8098['length']>0x0&&(_0x2245bf['drawingInfo'][_0x3496d1(0x130)][_0x3496d1(0x10b)]=='uniqueValue'&&_0xef8098[_0x3496d1(0x12e)](function(_0x587071){const _0x240f19=_0x3496d1;var _0x133aa3=_0x587071['get'](_0x2245bf[_0x240f19(0x133)]['renderer'][_0x240f19(0x135)]);const _0x5501db=_0x2245bf[_0x240f19(0x133)][_0x240f19(0x130)]['uniqueValueInfos'][_0x240f19(0x125)](_0x1968c7=>_0x1968c7[_0x240f19(0x110)]==_0x133aa3);let _0x5ebc68;_0x5501db?_0x5ebc68=transformedEsriStyle(_0x5501db[_0x240f19(0x12b)]):_0x5ebc68=transformedEsriStyle(_0x2245bf[_0x240f19(0x133)][_0x240f19(0x130)][_0x240f19(0x11d)]),_0x587071[_0x240f19(0x137)](_0x5ebc68);}),_0xcc400e['addFeatures'](_0xef8098));}});},'strategy':a41_0x3b203f(createXYZ({'tileSize':0x200}))}),_0x3de8cf=new a41_0x564120({'source':_0xcc400e,'zIndex':_0x1c8d0c[_0x1268d1(0x12a)]});if(_0x2245bf[_0x1268d1(0x133)]['renderer'][_0x1268d1(0x10b)]=='simple'&&_0x2245bf[_0x1268d1(0x133)][_0x1268d1(0x130)][_0x1268d1(0x12b)]){let _0x39301d=transformedEsriStyle(_0x2245bf[_0x1268d1(0x133)]['renderer']['symbol']);_0x3de8cf[_0x1268d1(0x137)](_0x39301d);}return _0x3de8cf;}['setFilter'](_0x3855d7){const _0x4a3fee=a41_0x101fec;this[_0x4a3fee(0x113)][_0x4a3fee(0x12f)]=_0x3855d7;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x180f9f,_0x1a3fbc){const _0x2bd9db=a42_0x126b,_0x57f1a5=_0x180f9f();while(!![]){try{const _0x4ada49=parseInt(_0x2bd9db(0xec))/0x1*(-parseInt(_0x2bd9db(0xfa))/0x2)+-parseInt(_0x2bd9db(0xf7))/0x3+-parseInt(_0x2bd9db(0x106))/0x4+parseInt(_0x2bd9db(0xed))/0x5+-parseInt(_0x2bd9db(0xfe))/0x6*(-parseInt(_0x2bd9db(0x100))/0x7)+parseInt(_0x2bd9db(0xe7))/0x8*(parseInt(_0x2bd9db(0xf0))/0x9)+parseInt(_0x2bd9db(0x104))/0xa*(parseInt(_0x2bd9db(0xf5))/0xb);if(_0x4ada49===_0x1a3fbc)break;else _0x57f1a5['push'](_0x57f1a5['shift']());}catch(_0x4aca8c){_0x57f1a5['push'](_0x57f1a5['shift']());}}}(a42_0x18c2,0x26687));import a42_0x439865 from'ol/layer/Tile';import a42_0x540dca from'ol/source/XYZ';import a42_0x59d28a from'ol/tilegrid/TileGrid';function a42_0x126b(_0x3e414b,_0x44bd5e){const _0x18c237=a42_0x18c2();return a42_0x126b=function(_0x126ba3,_0x51f2b9){_0x126ba3=_0x126ba3-0xe7;let _0xf6be24=_0x18c237[_0x126ba3];return _0xf6be24;},a42_0x126b(_0x3e414b,_0x44bd5e);}import{registerProj}from'../utils/RegisterProjUtil';import{appendPath}from'../utils/UrlUtil';function a42_0x18c2(){const _0x19324f=['10WnqdYs','spatialReference','819180hCoJXV','17528CMfFlM','EPSG:','fullExtent','wkid','opacity','109JdnZaK','251970wioHEj','anonymous','xmin','261NqODXT','initialExtent','resolution','layerInfo','projection','5706283mIlhVm','wkt','844416AyqDlY','tileInfo','url','4678niqxEq','xmax','lods','length','6kLcAkk','cols','1860957HhjakB','origin','ymax','mapIndex'];a42_0x18c2=function(){return _0x19324f;};return a42_0x18c2();}export default class ArcgisTileLayer extends a42_0x439865{constructor(_0x286554,_0x125942){const _0xc92a95=a42_0x126b,_0x13ab68=_0x286554[_0xc92a95(0xf9)]?_0x286554['url']:'',_0x3ea2c5=appendPath(_0x13ab68,'/tile/{z}/{y}/{x}'),_0xcf8a22=[_0x125942['initialExtent'][_0xc92a95(0xef)],_0x125942[_0xc92a95(0xf1)]['ymin'],_0x125942[_0xc92a95(0xf1)][_0xc92a95(0xfb)],_0x125942[_0xc92a95(0xf1)][_0xc92a95(0x102)]],_0x305314=[_0x125942[_0xc92a95(0xe9)][_0xc92a95(0xef)],_0x125942[_0xc92a95(0xe9)]['ymin'],_0x125942['fullExtent']['xmax'],_0x125942[_0xc92a95(0xe9)][_0xc92a95(0x102)]];let _0x21e5b8;_0x125942[_0xc92a95(0x105)][_0xc92a95(0xea)]?_0x21e5b8=registerProj(_0xc92a95(0xe8)+_0x125942[_0xc92a95(0x105)]['wkid'],_0x305314):_0x21e5b8=registerProj(_0x125942[_0xc92a95(0x105)][_0xc92a95(0xf6)],_0x305314);let _0x3719e0=[];for(let _0x366c69=0x0,_0x20b993=_0x125942['tileInfo'][_0xc92a95(0xfc)][_0xc92a95(0xfd)];_0x366c69<_0x20b993;_0x366c69++){_0x3719e0['push'](_0x125942['tileInfo'][_0xc92a95(0xfc)][_0x366c69][_0xc92a95(0xf2)]);}super({'opacity':_0x286554[_0xc92a95(0xeb)],'zIndex':_0x286554[_0xc92a95(0x103)],'maxResolution':_0x3719e0[0x0]*0x2,'source':new a42_0x540dca({'url':_0x3ea2c5,'projection':_0x21e5b8,'crossOrigin':_0xc92a95(0xee),'tileGrid':new a42_0x59d28a({'extent':_0x305314,'origin':[_0x125942['tileInfo']['origin']['x'],_0x125942[_0xc92a95(0xf8)][_0xc92a95(0x101)]['y']],'resolutions':_0x3719e0,'tileSize':[_0x125942[_0xc92a95(0xf8)]['rows'],_0x125942[_0xc92a95(0xf8)][_0xc92a95(0xff)]]})})}),this['id']=_0x286554['id'],this[_0xc92a95(0xf1)]=_0xcf8a22,this[_0xc92a95(0xf4)]=_0x21e5b8,this[_0xc92a95(0xf3)]=_0x286554;}}
|
package/layers/ArcgisWMSLayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a43_0x123c(_0x1eac02,_0x3fb555){const _0x1fccae=a43_0x1fcc();return a43_0x123c=function(_0x123ccf,_0x5ae67b){_0x123ccf=_0x123ccf-0xd9;let _0x12acbc=_0x1fccae[_0x123ccf];return _0x12acbc;},a43_0x123c(_0x1eac02,_0x3fb555);}const a43_0x181d00=a43_0x123c;(function(_0x4de5e1,_0x5551ea){const _0x2215a7=a43_0x123c,_0x20572c=_0x4de5e1();while(!![]){try{const _0x12abe5=parseInt(_0x2215a7(0xd9))/0x1+parseInt(_0x2215a7(0xee))/0x2*(parseInt(_0x2215a7(0xf1))/0x3)+parseInt(_0x2215a7(0xe7))/0x4+parseInt(_0x2215a7(0xe2))/0x5+-parseInt(_0x2215a7(0xe4))/0x6*(-parseInt(_0x2215a7(0xe0))/0x7)+parseInt(_0x2215a7(0xdb))/0x8+-parseInt(_0x2215a7(0xda))/0x9;if(_0x12abe5===_0x5551ea)break;else _0x20572c['push'](_0x20572c['shift']());}catch(_0x5b15be){_0x20572c['push'](_0x20572c['shift']());}}}(a43_0x1fcc,0x94e9c));import{ImageWMS as a43_0x2c861f}from'ol/source';import{Image as a43_0x2b603e}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';function a43_0x1fcc(){const _0x1a34f8=['2689400REhgCB','url','mapIndex','initExtent','join','sublayers','1.1.0','6FdDAig','layerInfo','anonymous','621843OvLVNy','262575zxabqw','28739547UfFzES','6057936ibTWIb','refresh','initialExtent','setFilter','EPSG:','7nfEFPd','opacity','1815190wWmEVR','wkid','6757098faHBcM','loadFilter','projection'];a43_0x1fcc=function(){return _0x1a34f8;};return a43_0x1fcc();}export default class ArcgisWMSLayer extends a43_0x2b603e{constructor(_0x24aba7,_0x20ef9f){const _0xb5289b=a43_0x123c;var _0x5829bd;let _0x13a5bc=registerProj(_0xb5289b(0xdf)+_0x20ef9f[_0xb5289b(0xe3)],undefined),_0x2eecc1={'LAYERS':(_0x5829bd=_0x24aba7[_0xb5289b(0xec)])===null||_0x5829bd===void 0x0?void 0x0:_0x5829bd[_0xb5289b(0xeb)](','),'VERSION':_0xb5289b(0xed)};_0x24aba7['loadFilter']&&(_0x2eecc1['CQL_FILTER']=_0x24aba7[_0xb5289b(0xe5)]),super({'opacity':_0x24aba7[_0xb5289b(0xe1)],'zIndex':_0x24aba7[_0xb5289b(0xe9)],'source':new a43_0x2c861f({'crossOrigin':_0xb5289b(0xf0),'url':_0x24aba7[_0xb5289b(0xe8)],'params':_0x2eecc1})}),this['id']=_0x24aba7['id'],this[_0xb5289b(0xdd)]=_0x20ef9f[_0xb5289b(0xea)],this[_0xb5289b(0xe6)]=_0x13a5bc,this[_0xb5289b(0xef)]=_0x24aba7;}[a43_0x181d00(0xdc)](){}[a43_0x181d00(0xde)](_0x53bf3c){var _0x49b93f;(_0x49b93f=this['getSource']())===null||_0x49b93f===void 0x0?void 0x0:_0x49b93f['updateParams']({'CQL_FILTER':_0x53bf3c});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a44_0x2ed8(){const _0x4ac81b=['image/png','indexOf','boundingBoxExtent','42384hGPAqT','getResolutions','requestEncoding','tileGrid','1069482lXbxBI','14xrdcaP','length','10IQkLwy','urls','value','opacity','matrixSet','69856MFSGbB','sublayers','80290NaGUWU','url','165aTAgVf','join','src','44261oZMwaS','initialExtent','1419888NLhnQV','EPSG:','1161luKuCd','origins_','layer','tileMatrixSet','format','layerInfo','getImage','projection','style','190zRQzUq','getMatrixIds','wkid','token','19098972ytdtED','?http','sourceXml'];a44_0x2ed8=function(){return _0x4ac81b;};return a44_0x2ed8();}(function(_0xa6820e,_0x3e3a0b){const _0x51f701=a44_0x593e,_0x2d25c4=_0xa6820e();while(!![]){try{const _0x2ba377=parseInt(_0x51f701(0x104))/0x1*(-parseInt(_0x51f701(0xf8))/0x2)+-parseInt(_0x51f701(0x106))/0x3+parseInt(_0x51f701(0xfd))/0x4*(parseInt(_0x51f701(0x111))/0x5)+parseInt(_0x51f701(0x11f))/0x6*(-parseInt(_0x51f701(0x120))/0x7)+parseInt(_0x51f701(0x11b))/0x8*(-parseInt(_0x51f701(0x108))/0x9)+-parseInt(_0x51f701(0xff))/0xa*(parseInt(_0x51f701(0x101))/0xb)+parseInt(_0x51f701(0x115))/0xc;if(_0x2ba377===_0x3e3a0b)break;else _0x2d25c4['push'](_0x2d25c4['shift']());}catch(_0x4c22f6){_0x2d25c4['push'](_0x2d25c4['shift']());}}}(a44_0x2ed8,0x61b71));import a44_0x281a5a from'ol/layer/Tile';function a44_0x593e(_0x1ca47a,_0x47b363){const _0x2ed81e=a44_0x2ed8();return a44_0x593e=function(_0x593e07,_0x18d998){_0x593e07=_0x593e07-0xf7;let _0x42b340=_0x2ed81e[_0x593e07];return _0x42b340;},a44_0x593e(_0x1ca47a,_0x47b363);}import a44_0x1f5f30,{optionsFromCapabilities}from'ol/source/WMTS.js';import a44_0x4d9411 from'ol/tilegrid/WMTS';import{registerProj}from'../utils/RegisterProjUtil';import{addArgument,getUrlParams}from'../utils/UrlUtil';export default class ArcgisWMTSLayer extends a44_0x281a5a{constructor(_0x106430,_0x29e49b){const _0x7be58e=a44_0x593e;var _0x16d4f6;let _0x4b0093='';_0x106430['sublayers']&&_0x106430['sublayers'][_0x7be58e(0xf7)]>0x0&&(_0x4b0093=_0x106430['sublayers'][_0x7be58e(0x102)](','));const _0x7a07ae=_0x7be58e(0x107)+_0x29e49b[_0x7be58e(0x113)];let _0x157e62=registerProj(_0x7a07ae);const _0x578441=optionsFromCapabilities(_0x29e49b[_0x7be58e(0x117)],{'layer':(_0x16d4f6=_0x106430[_0x7be58e(0xfe)])===null||_0x16d4f6===void 0x0?void 0x0:_0x16d4f6[0x0],'matrixSet':_0x29e49b[_0x7be58e(0x10b)],'format':_0x7be58e(0x118)});let _0x5e4fb5=_0x578441['tileGrid'][_0x7be58e(0x109)][0x0];_0x5e4fb5[0x0]===0x5a&&_0x5e4fb5[0x1]===-0xb4&&(_0x5e4fb5=[_0x5e4fb5[0x1],_0x5e4fb5[0x0]]),super({'opacity':_0x106430[_0x7be58e(0xfb)],'zIndex':_0x106430['mapIndex'],'source':new a44_0x1f5f30({'urls':_0x578441[_0x7be58e(0xf9)],'requestEncoding':_0x578441[_0x7be58e(0x11d)],'layer':_0x578441[_0x7be58e(0x10a)],'tileLoadFunction':function(_0x8ae24a,_0x3d186e){const _0xeb9c5b=_0x7be58e,_0x3713a5=_0x106430['url']?_0x106430[_0xeb9c5b(0x100)]:'';let _0x430c41=getUrlParams(_0x3713a5);if((_0x430c41===null||_0x430c41===void 0x0?void 0x0:_0x430c41[_0xeb9c5b(0xf7)])>0x0)for(let _0x298d88 of _0x430c41){_0x3d186e=addArgument(_0x3d186e,_0x298d88['name'],_0x298d88[_0xeb9c5b(0xfa)]);}let _0x3f859e=_0x3d186e[_0xeb9c5b(0x119)](_0xeb9c5b(0x116));_0x3f859e!==-0x1?_0x3d186e[_0xeb9c5b(0x119)](_0xeb9c5b(0x114))===-0x1&&_0x3d186e[_0xeb9c5b(0x119)]('tk')===-0x1?_0x8ae24a[_0xeb9c5b(0x10e)]()['src']=_0x3d186e['replace']('&','?'):_0x8ae24a['getImage']()[_0xeb9c5b(0x103)]=_0x3d186e:_0x8ae24a[_0xeb9c5b(0x10e)]()[_0xeb9c5b(0x103)]=_0x3d186e;},'matrixSet':_0x578441[_0x7be58e(0xfc)],'format':_0x578441[_0x7be58e(0x10c)],'projection':_0x578441['projection'],'tileGrid':new a44_0x4d9411({'origin':_0x5e4fb5,'resolutions':_0x578441[_0x7be58e(0x11e)][_0x7be58e(0x11c)](),'matrixIds':_0x578441[_0x7be58e(0x11e)][_0x7be58e(0x112)](),'extent':_0x29e49b[_0x7be58e(0x11a)]}),'style':_0x29e49b[_0x7be58e(0x110)],'wrapX':!![]})}),this['id']=_0x106430['id'],this[_0x7be58e(0x105)]=_0x29e49b['boundingBoxExtent'],this[_0x7be58e(0x10f)]=_0x157e62,this[_0x7be58e(0x10d)]=_0x106430;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4f2440,_0x12b266){const _0x377cd8=a45_0x361c,_0x265cad=_0x4f2440();while(!![]){try{const _0x4ca4d6=-parseInt(_0x377cd8(0xd8))/0x1*(parseInt(_0x377cd8(0xf1))/0x2)+parseInt(_0x377cd8(0xeb))/0x3*(parseInt(_0x377cd8(0xe4))/0x4)+-parseInt(_0x377cd8(0xde))/0x5*(-parseInt(_0x377cd8(0xf2))/0x6)+parseInt(_0x377cd8(0xed))/0x7+-parseInt(_0x377cd8(0xec))/0x8*(parseInt(_0x377cd8(0xe8))/0x9)+-parseInt(_0x377cd8(0xdd))/0xa*(parseInt(_0x377cd8(0xe0))/0xb)+parseInt(_0x377cd8(0xee))/0xc*(parseInt(_0x377cd8(0xd7))/0xd);if(_0x4ca4d6===_0x12b266)break;else _0x265cad['push'](_0x265cad['shift']());}catch(_0x288861){_0x265cad['push'](_0x265cad['shift']());}}}(a45_0x23c4,0x3ed47));import a45_0x36b300 from'ol/layer/VectorTile';import a45_0x387e74 from'ol/source/VectorTile';import a45_0xa16dde from'ol/format/MVT';function a45_0x361c(_0x1f072b,_0x54c283){const _0x23c4e5=a45_0x23c4();return a45_0x361c=function(_0x361cfd,_0x457a9c){_0x361cfd=_0x361cfd-0xcf;let _0x1bd8e3=_0x23c4e5[_0x361cfd];return _0x1bd8e3;},a45_0x361c(_0x1f072b,_0x54c283);}import{registerProj}from'../utils/RegisterProjUtil';import a45_0x1ac656 from'ol/tilegrid/WMTS';import{optionsFromCapabilities}from'ol/source/WMTS';import{addArgument}from'../utils/UrlUtil';export default class GeoserverVectorTileLayer extends a45_0x36b300{constructor(_0xa6461a,_0xb71a67){const _0x24b538=a45_0x361c;var _0x51a6bf;let _0x22e2cc=registerProj(_0x24b538(0xd9)+_0xb71a67[_0x24b538(0xe1)]);const _0x4f9a48=optionsFromCapabilities(_0xb71a67['sourceXml'],{'layer':(_0x51a6bf=_0xa6461a[_0x24b538(0xf3)])===null||_0x51a6bf===void 0x0?void 0x0:_0x51a6bf[0x0],'matrixSet':_0xb71a67[_0x24b538(0xd2)],'format':_0x24b538(0xd1)});let _0x58395e=_0xa6461a[_0x24b538(0xf3)]&&_0xa6461a['sublayers'][_0x24b538(0xd4)]>0x0?_0xa6461a['sublayers'][0x0]:'';const _0x53294e={'REQUEST':'GetTile','SERVICE':_0x24b538(0xd5),'VERSION':_0x24b538(0xf0),'LAYER':_0x58395e,'STYLE':_0xb71a67[_0x24b538(0xdb)][_0x24b538(0xd0)](),'TILEMATRIX':_0xb71a67[_0x24b538(0xd2)]+_0x24b538(0xdc),'TILEMATRIXSET':_0xb71a67['tileMatrixSet'][_0x24b538(0xd0)](),'FORMAT':_0x24b538(0xe2),'TILECOL':_0x24b538(0xcf),'TILEROW':_0x24b538(0xd3)};let _0x3ebebd=_0xa6461a[_0x24b538(0xe3)]?_0xa6461a['url']:'';for(const _0x3f4d0a in _0x53294e){_0x3ebebd=addArgument(_0x3ebebd,_0x3f4d0a,_0x53294e[_0x3f4d0a]);}super({'opacity':_0xa6461a[_0x24b538(0xd6)],'zIndex':_0xa6461a[_0x24b538(0xe5)],'declutter':!![],'source':new a45_0x387e74({'projection':_0x24b538(0xd9)+_0xb71a67[_0x24b538(0xe1)],'format':new a45_0xa16dde(),'wrapX':!![],'extent':_0xb71a67[_0x24b538(0xe7)],'tileGrid':new a45_0x1ac656({'tileSize':_0x4f9a48['tileGrid'][_0x24b538(0xea)][0x0],'origin':_0x4f9a48[_0x24b538(0xda)][_0x24b538(0xef)][0x0],'resolutions':_0x4f9a48[_0x24b538(0xda)][_0x24b538(0xe6)](),'matrixIds':_0x4f9a48[_0x24b538(0xda)][_0x24b538(0xdf)]()}),'url':_0x3ebebd})}),this['id']=_0xa6461a['id'],this['initialExtent']=_0xb71a67[_0x24b538(0xe7)],this['projection']=_0x22e2cc,this[_0x24b538(0xe9)]=_0xa6461a;}}function a45_0x23c4(){const _0x100233=['image/png','tileMatrixSet','{y}','length','WMTS','opacity','226213WXEcra','43161jzGHQR','EPSG:','tileGrid','style',':{z}','570uHZKAV','365JChehz','getMatrixIds','65879JXOdve','wkid','application/vnd.mapbox-vector-tile','url','132qpTQxE','mapIndex','getResolutions','boundingBoxExtent','3925926pHUBeB','layerInfo','tileSizes_','24996JdMCfw','8vihXpP','2957710VrYvZy','12BJdoeb','origins_','1.0.0','6PZuvuP','36948pQnzZT','sublayers','{x}','toString'];a45_0x23c4=function(){return _0x100233;};return a45_0x23c4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4ecd75,_0x115e16){const _0x5f1939=a46_0x3922,_0x3a189e=_0x4ecd75();while(!![]){try{const _0x5db1d5=parseInt(_0x5f1939(0xfb))/0x1+-parseInt(_0x5f1939(0x105))/0x2+-parseInt(_0x5f1939(0x113))/0x3+-parseInt(_0x5f1939(0x120))/0x4*(-parseInt(_0x5f1939(0xfd))/0x5)+parseInt(_0x5f1939(0x10f))/0x6+parseInt(_0x5f1939(0x100))/0x7*(-parseInt(_0x5f1939(0x101))/0x8)+parseInt(_0x5f1939(0x11a))/0x9*(-parseInt(_0x5f1939(0x103))/0xa);if(_0x5db1d5===_0x115e16)break;else _0x3a189e['push'](_0x3a189e['shift']());}catch(_0x2b49cf){_0x3a189e['push'](_0x3a189e['shift']());}}}(a46_0x5b4c,0xa1513));import a46_0x2d40c7 from'ol/source/Vector';import a46_0x1259b1 from'ol/format/GeoJSON';function a46_0x5b4c(){const _0x1e8465=['then','addFeatures','initExtent','equalTo','636114BGIXng','apply','785WRZHxb','find','param字段不存在','17017hRrYKQ','408OduMfU','layerFields','10xKZBcK','json','1378320CTQmhd','removeLoadedExtent','type','string','fieldType','wkid','warn','sublayers','POST','type字段不存在','7835724LjzvOi','toLowerCase','greaterThanOrEqualTo','writeGetFeature','1282116XaYoHz','not','readFeatures','read','EPSG:','parseFilter','and','4960863UXzbRX','loadFilter','mapIndex','length','lessThan','application/json','13004grmouP','name','!==','push','greaterThan','notEqualTo','param','getSource'];a46_0x5b4c=function(){return _0x1e8465;};return a46_0x5b4c();}function a46_0x3922(_0x288f2d,_0xfeab76){const _0x5b4ce5=a46_0x5b4c();return a46_0x3922=function(_0x3922c0,_0x6acb73){_0x3922c0=_0x3922c0-0xfb;let _0x502e03=_0x5b4ce5[_0x3922c0];return _0x502e03;},a46_0x3922(_0x288f2d,_0xfeab76);}import{Vector as a46_0x5c17f0}from'ol/layer';import a46_0xfc940d from'ol/format/WFS';import{registerProj}from'../utils/RegisterProjUtil';import{bbox}from'ol/loadingstrategy';import a46_0x32d82d from'../utils/format/CQL';import*as a46_0x5068b7 from'ol/format/filter';export default class GeoserverWFSLayer extends a46_0x5c17f0{constructor(_0x11663c,_0x489839){const _0x5a3f10=a46_0x3922;let _0x271d4f=registerProj(_0x5a3f10(0x117)+_0x489839[_0x5a3f10(0x10a)]);const _0x4431de=_0x489839[_0x5a3f10(0x102)][_0x5a3f10(0xfe)](_0x42d2fe=>_0x42d2fe[_0x5a3f10(0x109)]==0x6);super({'zIndex':_0x11663c[_0x5a3f10(0x11c)],'source':new a46_0x2d40c7({'format':new a46_0x1259b1(),'loader':(_0x4dc8c8,_0x53891d,_0x39b030,_0x311799,_0x56c903)=>{const _0x482108=_0x5a3f10;let _0x4000ab=_0x11663c[_0x482108(0x11b)],_0x4f8437={'srsName':_0x39b030['getCode'](),'featureTypes':_0x11663c[_0x482108(0x10c)],'bbox':_0x4dc8c8,'geometryName':_0x4431de?_0x4431de[_0x482108(0x121)]:'','outputFormat':_0x482108(0x11f)};_0x4000ab&&(typeof _0x4000ab===_0x482108(0x108)?_0x4f8437['filter']=new a46_0x32d82d()[_0x482108(0x116)](_0x4000ab):_0x4f8437['filter']=this[_0x482108(0x118)](_0x4000ab));var _0x372605=new a46_0xfc940d()[_0x482108(0x112)](_0x4f8437);let _0x270457=_0x11663c['url']?_0x11663c['url']:'';fetch(_0x270457,{'method':_0x482108(0x10d),'body':new XMLSerializer()['serializeToString'](_0x372605)})[_0x482108(0x128)](_0x4dc3a4=>{const _0x56acc4=_0x482108;return _0x4dc3a4[_0x56acc4(0x104)]();})[_0x482108(0x128)](_0x487bbc=>{const _0x3c897a=_0x482108,_0x1cdaa2=new a46_0x1259b1()[_0x3c897a(0x115)](_0x487bbc);let _0x36114f=this[_0x3c897a(0x127)]();_0x36114f&&_0x36114f[_0x3c897a(0x129)](_0x1cdaa2);if(_0x311799)_0x311799(_0x1cdaa2);})['catch'](()=>{const _0x5296dd=_0x482108;let _0x666f71=this[_0x5296dd(0x127)]();_0x666f71&&_0x666f71[_0x5296dd(0x106)](_0x4dc8c8);if(_0x56c903)_0x56c903();});},'strategy':bbox})}),this['id']=_0x11663c['id'],this['initialExtent']=_0x489839[_0x5a3f10(0x12a)],this['projection']=_0x271d4f,this['layerInfo']=_0x11663c;}['parseFilter'](_0xc35402){const _0x4dc1ec=a46_0x3922;if(!_0xc35402[_0x4dc1ec(0x107)]){console[_0x4dc1ec(0x10b)](_0x4dc1ec(0x10e));return;}if(!_0xc35402[_0x4dc1ec(0x126)]){console[_0x4dc1ec(0x10b)](_0x4dc1ec(0xff));return;}let _0x3959a6=[];switch(_0xc35402[_0x4dc1ec(0x107)][_0x4dc1ec(0x110)]()){case'and':for(let _0x254f1c=0x0;_0x254f1c<_0xc35402[_0x4dc1ec(0x126)][_0x4dc1ec(0x11d)];_0x254f1c++){let _0x24f774=this['parseFilter'](_0xc35402['param'][_0x254f1c]);_0x3959a6[_0x4dc1ec(0x123)](_0x24f774);}return a46_0x5068b7[_0x4dc1ec(0x119)][_0x4dc1ec(0xfc)](null,_0x3959a6);case'or':for(let _0x176f77=0x0;_0x176f77<_0xc35402['param'][_0x4dc1ec(0x11d)];_0x176f77++){let _0xd61e09=this['parseFilter'](_0xc35402[_0x4dc1ec(0x126)][_0x176f77]);_0x3959a6[_0x4dc1ec(0x123)](_0xd61e09);}return a46_0x5068b7['or'][_0x4dc1ec(0xfc)](null,_0x3959a6);case _0x4dc1ec(0x114):for(let _0x2fed72=0x0;_0x2fed72<_0xc35402[_0x4dc1ec(0x126)]['length'];_0x2fed72++){let _0x4d56c8=this[_0x4dc1ec(0x118)](_0xc35402[_0x4dc1ec(0x126)][_0x2fed72]);_0x3959a6[_0x4dc1ec(0x123)](_0x4d56c8);}return a46_0x5068b7[_0x4dc1ec(0x114)][_0x4dc1ec(0xfc)](null,_0x3959a6);case'=':return a46_0x5068b7[_0x4dc1ec(0x12b)](_0xc35402[_0x4dc1ec(0x126)][0x0],_0xc35402[_0x4dc1ec(0x126)][0x1]);case _0x4dc1ec(0x122):return a46_0x5068b7[_0x4dc1ec(0x125)](_0xc35402[_0x4dc1ec(0x126)][0x0],_0xc35402[_0x4dc1ec(0x126)][0x1]);case'>':return a46_0x5068b7[_0x4dc1ec(0x124)](_0xc35402[_0x4dc1ec(0x126)][0x0],_0xc35402[_0x4dc1ec(0x126)][0x1]);case'<':return a46_0x5068b7[_0x4dc1ec(0x11e)](_0xc35402[_0x4dc1ec(0x126)][0x0],_0xc35402[_0x4dc1ec(0x126)][0x1]);case'>=':return a46_0x5068b7[_0x4dc1ec(0x111)](_0xc35402[_0x4dc1ec(0x126)][0x0],_0xc35402[_0x4dc1ec(0x126)][0x1]);case'<=':return a46_0x5068b7['lessThanOrEqualTo'](_0xc35402[_0x4dc1ec(0x126)][0x0],_0xc35402[_0x4dc1ec(0x126)][0x1]);case'between':return a46_0x5068b7['between'](_0xc35402['param'][0x0],_0xc35402[_0x4dc1ec(0x126)][0x1],_0xc35402[_0x4dc1ec(0x126)][0x2]);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a47_0x193f92=a47_0x11d9;(function(_0x3e7ab8,_0x581b08){const _0x5a3273=a47_0x11d9,_0x587f35=_0x3e7ab8();while(!![]){try{const _0x225740=parseInt(_0x5a3273(0x1ed))/0x1+-parseInt(_0x5a3273(0x1e1))/0x2*(parseInt(_0x5a3273(0x1f6))/0x3)+parseInt(_0x5a3273(0x1e2))/0x4*(-parseInt(_0x5a3273(0x1e9))/0x5)+parseInt(_0x5a3273(0x1dd))/0x6+parseInt(_0x5a3273(0x1f3))/0x7*(-parseInt(_0x5a3273(0x1e4))/0x8)+-parseInt(_0x5a3273(0x1f5))/0x9*(parseInt(_0x5a3273(0x1e7))/0xa)+-parseInt(_0x5a3273(0x1ec))/0xb*(-parseInt(_0x5a3273(0x1df))/0xc);if(_0x225740===_0x581b08)break;else _0x587f35['push'](_0x587f35['shift']());}catch(_0x5f1cdb){_0x587f35['push'](_0x587f35['shift']());}}}(a47_0x25be,0x8b1bf));import{ImageWMS as a47_0x55e568}from'ol/source';function a47_0x25be(){const _0xecf242=['2166135nnceam','1.1.0','layerInfo','714131LyFAdB','636552OddjSe','loadFilter','initialExtent','join','url','anonymous','3314101mkiSfg','getSource','126qfiRbk','782097AhnXCe','1435212IhtrGv','opacity','456wyhMPi','projection','4JHuYVq','8lQKAwM','sublayers','8RNxBDp','wkid','refresh','651190VLHark','EPSG:'];a47_0x25be=function(){return _0xecf242;};return a47_0x25be();}import{Image as a47_0x455e00}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';function a47_0x11d9(_0x250add,_0x4dd4e7){const _0x25bee5=a47_0x25be();return a47_0x11d9=function(_0x11d93e,_0x4ca393){_0x11d93e=_0x11d93e-0x1dd;let _0x4b9e5d=_0x25bee5[_0x11d93e];return _0x4b9e5d;},a47_0x11d9(_0x250add,_0x4dd4e7);}export default class GeoserverWMSLayer extends a47_0x455e00{constructor(_0x30204d,_0x595a4d){const _0xd10823=a47_0x11d9;var _0x441501;let _0x5c1c38=registerProj(_0xd10823(0x1e8)+_0x595a4d[_0xd10823(0x1e5)]),_0x1181d9={'LAYERS':(_0x441501=_0x30204d[_0xd10823(0x1e3)])===null||_0x441501===void 0x0?void 0x0:_0x441501[_0xd10823(0x1f0)](','),'VERSION':_0xd10823(0x1ea)};_0x30204d[_0xd10823(0x1ee)]&&(_0x1181d9['CQL_FILTER']=_0x30204d[_0xd10823(0x1ee)]),super({'opacity':_0x30204d[_0xd10823(0x1de)],'zIndex':_0x30204d['mapIndex'],'source':new a47_0x55e568({'crossOrigin':_0xd10823(0x1f2),'url':_0x30204d[_0xd10823(0x1f1)],'params':_0x1181d9})}),this['id']=_0x30204d['id'],this[_0xd10823(0x1ef)]=_0x595a4d['initExtent'],this[_0xd10823(0x1e0)]=_0x5c1c38,this[_0xd10823(0x1eb)]=_0x30204d;}[a47_0x193f92(0x1e6)](){}['setFilter'](_0x44becb){const _0x58bc4f=a47_0x193f92;var _0x28d6b1;(_0x28d6b1=this[_0x58bc4f(0x1f4)]())===null||_0x28d6b1===void 0x0?void 0x0:_0x28d6b1['updateParams']({'CQL_FILTER':_0x44becb});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1e6695,_0x5a9a25){const _0x376816=a48_0x5aa5,_0x3b9c57=_0x1e6695();while(!![]){try{const _0x2914b5=-parseInt(_0x376816(0xca))/0x1*(-parseInt(_0x376816(0xcc))/0x2)+-parseInt(_0x376816(0xcb))/0x3*(parseInt(_0x376816(0xc5))/0x4)+parseInt(_0x376816(0xc9))/0x5*(parseInt(_0x376816(0xce))/0x6)+parseInt(_0x376816(0xd2))/0x7+parseInt(_0x376816(0xcf))/0x8*(parseInt(_0x376816(0xcd))/0x9)+-parseInt(_0x376816(0xc7))/0xa+parseInt(_0x376816(0xc6))/0xb*(-parseInt(_0x376816(0xd4))/0xc);if(_0x2914b5===_0x5a9a25)break;else _0x3b9c57['push'](_0x3b9c57['shift']());}catch(_0x1d30eb){_0x3b9c57['push'](_0x3b9c57['shift']());}}}(a48_0x2cbc,0x4319e));function a48_0x2cbc(){const _0x4fed48=['opacity','boundingBoxExtent','32QlYsXj','935TSqwdW','3653120MNQtLp','layerInfo','2711845PhERnR','2BpUaTp','138387wUqJyi','366682fMIGeq','276534lDtoPG','6ZzufcW','64mncXjq','image/png','tileMatrixSet','3668322aKrODX','EPSG:','94548MZjCLv','未找到投影信息'];a48_0x2cbc=function(){return _0x4fed48;};return a48_0x2cbc();}import a48_0x248383 from'ol/layer/Tile';import a48_0x31bdd1,{optionsFromCapabilities}from'ol/source/WMTS.js';import{registerProj}from'../utils/RegisterProjUtil';function a48_0x5aa5(_0x5953ff,_0x2fda4b){const _0x2cbc54=a48_0x2cbc();return a48_0x5aa5=function(_0x5aa5cd,_0x207641){_0x5aa5cd=_0x5aa5cd-0xc2;let _0x706f54=_0x2cbc54[_0x5aa5cd];return _0x706f54;},a48_0x5aa5(_0x5953ff,_0x2fda4b);}export default class GeoserverWMTSLayer extends a48_0x248383{constructor(_0x99e0ed,_0x459b4e){const _0xf98a9a=a48_0x5aa5;var _0x40ae70;const _0x20e072=_0xf98a9a(0xd3)+_0x459b4e['wkid'];let _0x14806d=registerProj(_0x20e072);if(!_0x14806d)throw new Error(_0xf98a9a(0xc2));const _0x31cdb4=optionsFromCapabilities(_0x459b4e['sourceXml'],{'layer':(_0x40ae70=_0x99e0ed['sublayers'])===null||_0x40ae70===void 0x0?void 0x0:_0x40ae70[0x0],'matrixSet':_0x459b4e[_0xf98a9a(0xd1)],'format':_0xf98a9a(0xd0)});if(!_0x31cdb4)throw new Error('解析元数据失败');super({'opacity':_0x99e0ed[_0xf98a9a(0xc3)],'zIndex':_0x99e0ed['mapIndex'],'source':new a48_0x31bdd1(_0x31cdb4)}),this['id']=_0x99e0ed['id'],this['initialExtent']=_0x459b4e[_0xf98a9a(0xc4)],this['projection']=_0x14806d,this[_0xf98a9a(0xc8)]=_0x99e0ed;}}
|
package/layers/LayerManager.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a50_0x21e5(){const _0x1f52ae=['81ZiVBEH','1966uWrOmA','getGeoserverWFSLayer','72EgYnXu','getArcgisWmsLayer','3920730HxxBrd','1400742NYvsob','getGeoserverWMTSLayer','160aNRsgE','getGeoserverVectorTileLayer','11730ezWdaN','7551PkJzff','getTDTLayer','getGeoserverWmsLayer','push','getArcgisFeatureLayer','824vFgBbE','sublayers','url','608020ZzHqNz','getDynamicLayer','getArcgisTileLayer','375UBLTQo'];a50_0x21e5=function(){return _0x1f52ae;};return a50_0x21e5();}const a50_0x285e9e=a50_0x29d0;(function(_0x980ea8,_0x194447){const _0x55c1fc=a50_0x29d0,_0x1a1bd4=_0x980ea8();while(!![]){try{const _0x226b9d=-parseInt(_0x55c1fc(0xc1))/0x1*(-parseInt(_0x55c1fc(0xc2))/0x2)+-parseInt(_0x55c1fc(0xc0))/0x3*(-parseInt(_0x55c1fc(0xb2))/0x4)+parseInt(_0x55c1fc(0xb4))/0x5*(parseInt(_0x55c1fc(0xc4))/0x6)+parseInt(_0x55c1fc(0xc7))/0x7+parseInt(_0x55c1fc(0xba))/0x8*(parseInt(_0x55c1fc(0xb5))/0x9)+parseInt(_0x55c1fc(0xbd))/0xa+-parseInt(_0x55c1fc(0xc6))/0xb;if(_0x226b9d===_0x194447)break;else _0x1a1bd4['push'](_0x1a1bd4['shift']());}catch(_0x5dba11){_0x1a1bd4['push'](_0x1a1bd4['shift']());}}}(a50_0x21e5,0x194f6));import a50_0x56fefd from'./ArcgisDynamicLayer';import a50_0x33dcbb from'./ArcgisFeatureLayer';import a50_0x5520d3 from'./TDTLayer';import{getDynamicLayerInfo,getWMTSLayerCapabilities,getFeatureLayerInfo,getWMSLayerCapabilities,getWFSLayerCapabilities}from'../capabilities';import a50_0x1c6592 from'./ArcgisTileLayer';import a50_0x53fe45 from'./GeoserverWMSLayer';import a50_0x4ff660 from'./GeoserverWMTSLayer';function a50_0x29d0(_0x2445a1,_0x1bd77a){const _0x21e5d7=a50_0x21e5();return a50_0x29d0=function(_0x29d063,_0x402f4f){_0x29d063=_0x29d063-0xb1;let _0x3c94ae=_0x21e5d7[_0x29d063];return _0x3c94ae;},a50_0x29d0(_0x2445a1,_0x1bd77a);}import a50_0x4ed983 from'./ArcgisWMSLayer';import a50_0x44adec from'./ArcgisWMTSLayer';import a50_0x1ee9b8 from'./GeoserverWFSLayer';import a50_0x5cc301 from'./GeoserverVectorTile';export default class LayerManagement{static async[a50_0x285e9e(0xbe)](_0x5744d6){const _0x1b4b96=a50_0x285e9e,_0x2713cd=await getDynamicLayerInfo(_0x5744d6['url']?_0x5744d6[_0x1b4b96(0xbc)]:'');let _0xea3bc8=new a50_0x56fefd(_0x5744d6,_0x2713cd);return _0xea3bc8;}static async[a50_0x285e9e(0xbf)](_0x1ccac6){const _0x113348=a50_0x285e9e,_0x48c7ec=await getDynamicLayerInfo(_0x1ccac6[_0x113348(0xbc)]?_0x1ccac6[_0x113348(0xbc)]:'');let _0x159040=new a50_0x1c6592(_0x1ccac6,_0x48c7ec);return _0x159040;}static async[a50_0x285e9e(0xb9)](_0xab2d24){const _0x260392=a50_0x285e9e,_0x514ea4=await getDynamicLayerInfo(_0xab2d24['url']?_0xab2d24[_0x260392(0xbc)]:'');let _0x4ff5fb=[];if(_0xab2d24['sublayers'])for(let _0x3b4487=0x0;_0x3b4487<_0xab2d24['sublayers']['length'];_0x3b4487++){const _0x6a542a=_0xab2d24[_0x260392(0xbb)][_0x3b4487];_0x4ff5fb[_0x260392(0xb8)](await getFeatureLayerInfo(_0xab2d24[_0x260392(0xbc)]?_0xab2d24[_0x260392(0xbc)]:'',_0x6a542a));}let _0x85a7a4=new a50_0x33dcbb(_0xab2d24,_0x514ea4,_0x4ff5fb);return _0x85a7a4;}static async[a50_0x285e9e(0xc5)](_0x46d0e0){const _0x2506a6=a50_0x285e9e;var _0x3d4e15;const _0x4bc444=(_0x3d4e15=_0x46d0e0[_0x2506a6(0xbb)])===null||_0x3d4e15===void 0x0?void 0x0:_0x3d4e15[0x0],_0x459be8=await getWMSLayerCapabilities(_0x46d0e0[_0x2506a6(0xbc)]?_0x46d0e0[_0x2506a6(0xbc)]:'',_0x4bc444==null?'':_0x4bc444);let _0x2d2aed=new a50_0x4ed983(_0x46d0e0,_0x459be8);return _0x2d2aed;}static async['getArcgisWMTSLayer'](_0x233002){const _0x2a405e=a50_0x285e9e;var _0x37e9f3;const _0x5b7207=(_0x37e9f3=_0x233002[_0x2a405e(0xbb)])===null||_0x37e9f3===void 0x0?void 0x0:_0x37e9f3[0x0],_0x298ae0=await getWMTSLayerCapabilities(_0x233002[_0x2a405e(0xbc)]?_0x233002['url']:'',_0x5b7207==null?'':_0x5b7207);let _0x148fa2=new a50_0x44adec(_0x233002,_0x298ae0);return _0x148fa2;}static async[a50_0x285e9e(0xb7)](_0x970644){const _0x38f395=a50_0x285e9e;var _0x5b3311;const _0x2cc552=(_0x5b3311=_0x970644[_0x38f395(0xbb)])===null||_0x5b3311===void 0x0?void 0x0:_0x5b3311[0x0],_0x45143a=await getWMSLayerCapabilities(_0x970644[_0x38f395(0xbc)]?_0x970644[_0x38f395(0xbc)]:'',_0x2cc552==null?'':_0x2cc552);let _0x2138f1=new a50_0x53fe45(_0x970644,_0x45143a);return _0x2138f1;}static async[a50_0x285e9e(0xb1)](_0x574df9){const _0x3dd66f=a50_0x285e9e;var _0x337dcc;const _0x41e2ac=(_0x337dcc=_0x574df9[_0x3dd66f(0xbb)])===null||_0x337dcc===void 0x0?void 0x0:_0x337dcc[0x0],_0x4e278e=await getWMTSLayerCapabilities(_0x574df9[_0x3dd66f(0xbc)]?_0x574df9[_0x3dd66f(0xbc)]:'',_0x41e2ac==null?'':_0x41e2ac);let _0x4f9fea=new a50_0x4ff660(_0x574df9,_0x4e278e);return _0x4f9fea;}static async[a50_0x285e9e(0xc3)](_0x38be50){const _0x228244=a50_0x285e9e;var _0x2a178d;const _0x5f11ca=(_0x2a178d=_0x38be50['sublayers'])===null||_0x2a178d===void 0x0?void 0x0:_0x2a178d[0x0],_0x3156a7=await getWFSLayerCapabilities(_0x38be50[_0x228244(0xbc)]?_0x38be50[_0x228244(0xbc)]:'',_0x5f11ca==null?'':_0x5f11ca);let _0x481de3=new a50_0x1ee9b8(_0x38be50,_0x3156a7);return _0x481de3;}static async[a50_0x285e9e(0xb3)](_0x148fed){const _0x499467=a50_0x285e9e;var _0x3d3a53;const _0x3ddeb2=(_0x3d3a53=_0x148fed[_0x499467(0xbb)])===null||_0x3d3a53===void 0x0?void 0x0:_0x3d3a53[0x0],_0x5261ba=await getWMTSLayerCapabilities(_0x148fed[_0x499467(0xbc)]?_0x148fed[_0x499467(0xbc)]:'',_0x3ddeb2==null?'':_0x3ddeb2);let _0x175bf0=new a50_0x5cc301(_0x148fed,_0x5261ba);return _0x175bf0;}static async[a50_0x285e9e(0xb6)](_0x13b842){const _0xae63b6=a50_0x285e9e;var _0x28be44;const _0x4d2028=(_0x28be44=_0x13b842[_0xae63b6(0xbb)])===null||_0x28be44===void 0x0?void 0x0:_0x28be44[0x0],_0x5a3938=await getWMTSLayerCapabilities(_0x13b842[_0xae63b6(0xbc)]?_0x13b842[_0xae63b6(0xbc)]:'',_0x4d2028==null?'':_0x4d2028);let _0x2be1cd=new a50_0x5520d3(_0x13b842,_0x5a3938);return _0x2be1cd;}}
|