ym-gis-2d 1.0.25 → 1.0.26
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 +11 -3
- 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.d.ts.map +1 -1
- package/utils/tasks/index.js +1 -1
- package/utils/tasks/index.js.map +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_0x2d6008=a37_0x3ff7;function a37_0x1b64(){const _0x44db=['getActive','_snapTolerance','features','_overlay','updateState_','preventDefault','12px\x20Calibre,sans-serif','968qGurlt','getText','slice','setMap','358750mnrXsd','Ellipse','drawmoving','DRAWABORT','pixel','rgba(0,\x200,\x200,\x200.4)','push','drawabort','_type','DRAWEND','setText','startDrawing_','单击结束绘制,右击删除点','getSource','addFeature','dispatchEvent','onInternal','handleMoveEvent','tipText','drawend','snapTolerance','revert','abortDrawing','once','getOverlay','addChangeListener','rectangle','_source','type','updateTip_','单击拖动绘制','fixPoint','atFinish_','MAX_VALUE','getType','_showTip','originalEvent','finishDrawing','abortDrawing_','source','890262PQLJXd','单击增加点,右击删除点','_drawingCoordinates','length','_features','unInternal','_minPoints','getCode','170wjqJXR','getPixelFromCoordinate','setGeometry','sqrt','getProjection','left','clear','setStyle','3110iHmllc','feature','DRAWADDPOINT','coordinates','1557531fYUnbc','drawstart','createMultiPointFeature','stopDown','getMap','单击增加点,右击删除点双击完成绘制','_tipOverlay','DRAWMOVING','getView','_tipFeature','showTip','wrapX','_isStayDraw','addPoint','_fixPoint','updateSketchFeatures_','7JaFdli','button','drawaddpoint','style','getGeometry','_sketchFeature','rgba(255,\x20255,\x20255,\x201)','handleDragEvent','buildDrawingFeature','279433XLeWag','8lkEBJh','projection','Circle','211599CXMutB','pointermove','coordinate','_style','1220580WyhdiC','_tipStyle'];a37_0x1b64=function(){return _0x44db;};return a37_0x1b64();}(function(_0x581212,_0x5d1be1){const _0x339073=a37_0x3ff7,_0x3eb79d=_0x581212();while(!![]){try{const _0x3231da=-parseInt(_0x339073(0x1d4))/0x1+-parseInt(_0x339073(0x1e5))/0x2+parseInt(_0x339073(0x20d))/0x3+-parseInt(_0x339073(0x1e1))/0x4*(parseInt(_0x339073(0x21d))/0x5)+parseInt(_0x339073(0x1d8))/0x6*(-parseInt(_0x339073(0x1c7))/0x7)+-parseInt(_0x339073(0x1d1))/0x8*(-parseInt(_0x339073(0x1b7))/0x9)+parseInt(_0x339073(0x215))/0xa*(parseInt(_0x339073(0x1d0))/0xb);if(_0x3231da===_0x5d1be1)break;else _0x3eb79d['push'](_0x3eb79d['shift']());}catch(_0x2a85f9){_0x3eb79d['push'](_0x3eb79d['shift']());}}}(a37_0x1b64,0x26440));import a37_0x563ed2 from'ol/events/Event';import a37_0x27fdd2 from'ol/interaction/Pointer';function a37_0x3ff7(_0x32cc39,_0x12246e){const _0x1b64ae=a37_0x1b64();return a37_0x3ff7=function(_0x3ff7e6,_0x2c529e){_0x3ff7e6=_0x3ff7e6-0x1b6;let _0x27f567=_0x1b64ae[_0x3ff7e6];return _0x27f567;},a37_0x3ff7(_0x32cc39,_0x12246e);}import{MultiPoint,Point}from'ol/geom';import a37_0x521d95 from'ol/Feature';import a37_0x14de00,{createEditingStyle}from'ol/style/Style';import a37_0x22848b from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a37_0x4fbff1 from'ol/style/Text';import a37_0x2e3250 from'ol/style/Fill';import a37_0xaad4e3 from'ol/interaction/Property';import a37_0x597c2a from'ol/layer/Vector';import a37_0x5bf60e from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a37_0x2d6008(0x1b8),'DRAWEND':a37_0x2d6008(0x1f8),'DRAWABORT':a37_0x2d6008(0x1ec),'DRAWADDPOINT':a37_0x2d6008(0x1c9),'DRAWMOVING':a37_0x2d6008(0x1e7)};export class DrawEvent extends a37_0x563ed2{constructor(_0x151779,_0xdf5539,_0x3d979b){const _0x1f746c=a37_0x2d6008;super(_0x151779),this[_0x1f746c(0x21e)]=_0xdf5539,this[_0x1f746c(0x1b6)]=_0x3d979b;}}export class ShEvent extends a37_0x563ed2{constructor(_0x355375,_0x1506e0,_0x744bdc,_0x27c5b3,_0x299b0c){const _0x18d712=a37_0x2d6008;super(_0x355375),this[_0x18d712(0x1d2)]=_0x299b0c,this[_0x18d712(0x201)]=_0x1506e0,this[_0x18d712(0x1d6)]=_0x744bdc,this[_0x18d712(0x1b6)]=_0x27c5b3;}}export default class Draw extends a37_0x27fdd2{constructor(_0x1ee312,_0x567af1){const _0xa95d4e=a37_0x2d6008,_0x117c84=_0x567af1?_0x567af1:{};!_0x117c84[_0xa95d4e(0x1ba)]&&(_0x117c84[_0xa95d4e(0x1ba)]=![]);super(_0x567af1),this['on']=this[_0xa95d4e(0x1f5)],this[_0xa95d4e(0x1fc)]=this['onceInternal'],this['un']=this[_0xa95d4e(0x212)],this['_isStayDraw']=![],this[_0xa95d4e(0x1ed)]=_0x1ee312,this['_style']=_0x567af1===null||_0x567af1===void 0x0?void 0x0:_0x567af1[_0xa95d4e(0x1ca)],this['_source']=_0x567af1===null||_0x567af1===void 0x0?void 0x0:_0x567af1[_0xa95d4e(0x20c)],this[_0xa95d4e(0x211)]=_0x567af1===null||_0x567af1===void 0x0?void 0x0:_0x567af1[_0xa95d4e(0x1dc)];const _0x35c88b=getPlotCount(this[_0xa95d4e(0x1ed)]);this[_0xa95d4e(0x213)]=_0x35c88b['minPoint'],this['_fixPoint']=_0x35c88b[_0xa95d4e(0x204)],this['tipText']=_0x567af1===null||_0x567af1===void 0x0?void 0x0:_0x567af1[_0xa95d4e(0x1f7)],this[_0xa95d4e(0x208)]=(_0x567af1===null||_0x567af1===void 0x0?void 0x0:_0x567af1[_0xa95d4e(0x1c1)])==![]?![]:!![],this[_0xa95d4e(0x1db)]=_0x117c84[_0xa95d4e(0x1f9)]?_0x117c84[_0xa95d4e(0x1f9)]:0x6,this['_tipFeature']=new a37_0x521d95(),this[_0xa95d4e(0x1d9)]=new a37_0x14de00({'text':new a37_0x4fbff1({'font':_0xa95d4e(0x1e0),'fill':new a37_0x2e3250({'color':_0xa95d4e(0x1cd)}),'backgroundFill':new a37_0x2e3250({'color':_0xa95d4e(0x1ea)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0xa95d4e(0x21a),'offsetX':0xf})}),this['_drawingCoordinates']=[],this['_tipOverlay']=new a37_0x597c2a({'source':new a37_0x22848b({'useSpatialIndex':![],'wrapX':(_0x567af1===null||_0x567af1===void 0x0?void 0x0:_0x567af1[_0xa95d4e(0x1c2)])?_0x567af1[_0xa95d4e(0x1c2)]:![]})}),this[_0xa95d4e(0x1dd)]=new a37_0x597c2a({'source':new a37_0x22848b({'useSpatialIndex':![],'wrapX':(_0x567af1===null||_0x567af1===void 0x0?void 0x0:_0x567af1[_0xa95d4e(0x1c2)])?_0x567af1['wrapX']:![]}),'updateWhileInteracting':!![]}),this[_0xa95d4e(0x1fe)](a37_0xaad4e3['ACTIVE'],this[_0xa95d4e(0x1de)]);}['updateState_'](){const _0x6f0d09=a37_0x2d6008,_0x3b274e=this[_0x6f0d09(0x1bb)](),_0x5de681=this[_0x6f0d09(0x1da)]();(!_0x3b274e||!_0x5de681)&&this[_0x6f0d09(0x1fb)](),this[_0x6f0d09(0x1dd)][_0x6f0d09(0x1e4)](_0x5de681?_0x3b274e:null),this['_tipOverlay']['setMap'](_0x5de681?_0x3b274e:null);}[a37_0x2d6008(0x1e4)](_0x428722){const _0xb3522=a37_0x2d6008;super[_0xb3522(0x1e4)](_0x428722),this[_0xb3522(0x1de)]();}[a37_0x2d6008(0x21c)](_0x337233){const _0x5db573=a37_0x2d6008;this[_0x5db573(0x1d7)]=_0x337233?_0x337233:{};}[a37_0x2d6008(0x1fd)](){const _0x33969a=a37_0x2d6008;return this[_0x33969a(0x1dd)];}['handleDownEvent'](_0x53ebad){const _0x3cf8b8=a37_0x2d6008;if(_0x53ebad['originalEvent'][_0x3cf8b8(0x1c8)]===0x2)return _0x53ebad[_0x3cf8b8(0x209)][_0x3cf8b8(0x1df)](),this[_0x3cf8b8(0x1fa)](),this[_0x3cf8b8(0x1f6)](_0x53ebad),![];return!![];}['handleUpEvent'](_0x4ff89c){const _0x59edb2=a37_0x2d6008;var _0x3eb9e6,_0x20c26a;if(this[_0x59edb2(0x1ed)]=='rectangle'&&this[_0x59edb2(0x20f)][_0x59edb2(0x210)]<0x1)return this[_0x59edb2(0x1f4)](new DrawEvent(DrawEventType[_0x59edb2(0x1ee)],undefined,[_0x4ff89c['coordinate']])),![];if(!this['_isStayDraw'])this[_0x59edb2(0x1f0)](_0x4ff89c[_0x59edb2(0x1d6)]),this[_0x59edb2(0x1f4)](new ShEvent(DrawEventType[_0x59edb2(0x21f)],this['_type'],_0x4ff89c[_0x59edb2(0x1d6)],this['_drawingCoordinates'],(_0x3eb9e6=this[_0x59edb2(0x1bb)]())===null||_0x3eb9e6===void 0x0?void 0x0:_0x3eb9e6[_0x59edb2(0x1bf)]()[_0x59edb2(0x219)]()[_0x59edb2(0x214)]())),this[_0x59edb2(0x1ed)]=='point'&&this[_0x59edb2(0x20a)]();else{if(this[_0x59edb2(0x20f)]&&this[_0x59edb2(0x20f)][_0x59edb2(0x210)]>0x0){if(this['atFinish_'](_0x4ff89c[_0x59edb2(0x1e9)]))return this[_0x59edb2(0x20a)](),_0x4ff89c[_0x59edb2(0x1df)](),![];let _0x5f2706=this[_0x59edb2(0x20f)]['length']+0x1;_0x5f2706<=this[_0x59edb2(0x1c5)]&&this[_0x59edb2(0x1c4)](_0x4ff89c[_0x59edb2(0x1d6)]),this['dispatchEvent'](new ShEvent(DrawEventType[_0x59edb2(0x21f)],this[_0x59edb2(0x1ed)],_0x4ff89c[_0x59edb2(0x1d6)],this[_0x59edb2(0x20f)],(_0x20c26a=this['getMap']())===null||_0x20c26a===void 0x0?void 0x0:_0x20c26a[_0x59edb2(0x1bf)]()['getProjection']()[_0x59edb2(0x214)]())),_0x5f2706>=this[_0x59edb2(0x213)]&&this[_0x59edb2(0x1cf)](this['_drawingCoordinates']),_0x5f2706===this[_0x59edb2(0x1c5)]&&this['finishDrawing']();}}return _0x4ff89c[_0x59edb2(0x1df)](),![];}[a37_0x2d6008(0x1ce)](_0x391a5a){const _0x2ddf5b=a37_0x2d6008;var _0x48e4ae;if(this[_0x2ddf5b(0x1ed)]==_0x2ddf5b(0x1ff)&&_0x391a5a[_0x2ddf5b(0x209)][_0x2ddf5b(0x201)]==_0x2ddf5b(0x1d5)){if(!this[_0x2ddf5b(0x1c3)]){this[_0x2ddf5b(0x1f0)](_0x391a5a[_0x2ddf5b(0x1d6)]),this[_0x2ddf5b(0x1f4)](new ShEvent(DrawEventType[_0x2ddf5b(0x21f)],this['_type'],_0x391a5a[_0x2ddf5b(0x1d6)],this[_0x2ddf5b(0x20f)],(_0x48e4ae=this['getMap']())===null||_0x48e4ae===void 0x0?void 0x0:_0x48e4ae[_0x2ddf5b(0x1bf)]()['getProjection']()[_0x2ddf5b(0x214)]()));return;}let _0x1c66d0=[...this['_drawingCoordinates'],_0x391a5a[_0x2ddf5b(0x1d6)]];this['buildDrawingFeature'](_0x1c66d0),this['dispatchEvent'](new DrawEvent(DrawEventType[_0x2ddf5b(0x1be)],this[_0x2ddf5b(0x1cc)],this[_0x2ddf5b(0x20f)]));}}[a37_0x2d6008(0x1f6)](_0x1310e3){const _0x43af5b=a37_0x2d6008;var _0x5d61a9,_0x4366c7,_0x55ff5f;let _0xb34e84='';this[_0x43af5b(0x1ed)]==_0x43af5b(0x1d5)&&(this['startDrawing_'](_0x1310e3[_0x43af5b(0x1d6)]),this[_0x43af5b(0x1f4)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x43af5b(0x1ed)],_0x1310e3[_0x43af5b(0x1d6)],this[_0x43af5b(0x20f)],(_0x5d61a9=this[_0x43af5b(0x1bb)]())===null||_0x5d61a9===void 0x0?void 0x0:_0x5d61a9['getView']()['getProjection']()[_0x43af5b(0x214)]())),this['finishDrawing']());!this[_0x43af5b(0x1c3)]?_0xb34e84=this[_0x43af5b(0x1ed)]==_0x43af5b(0x1ff)?_0x43af5b(0x203):'单击开始绘制':(_0xb34e84=_0x43af5b(0x20e),((_0x4366c7=this[_0x43af5b(0x20f)])===null||_0x4366c7===void 0x0?void 0x0:_0x4366c7['length'])===this[_0x43af5b(0x1c5)]-0x1&&(_0xb34e84=_0x43af5b(0x1f1)),((_0x55ff5f=this[_0x43af5b(0x20f)])===null||_0x55ff5f===void 0x0?void 0x0:_0x55ff5f['length'])>=this['_minPoints']&&this[_0x43af5b(0x1c5)]===Number[_0x43af5b(0x206)]&&(_0xb34e84=_0x43af5b(0x1bc)));this[_0x43af5b(0x1f7)]!=undefined&&(_0xb34e84=this['tipText']);this['updateTip_'](_0x1310e3[_0x43af5b(0x1d6)],_0xb34e84);if(this[_0x43af5b(0x1c3)]&&this[_0x43af5b(0x1ed)]!=_0x43af5b(0x1ff)){let _0x294d29=[...this[_0x43af5b(0x20f)],_0x1310e3[_0x43af5b(0x1d6)]];this['buildDrawingFeature'](_0x294d29),this[_0x43af5b(0x1f4)](new DrawEvent(DrawEventType['DRAWMOVING'],this[_0x43af5b(0x1cc)],this[_0x43af5b(0x20f)]));}}[a37_0x2d6008(0x205)](_0x52294f){const _0x51138d=a37_0x2d6008;var _0x1303b0;let _0xd0d92d=![],_0x1b9944=this[_0x51138d(0x20f)]['length'];if(_0x1b9944>this['_minPoints']&&this[_0x51138d(0x1c5)]===Number[_0x51138d(0x206)]){const _0x4fcae5=this[_0x51138d(0x20f)][this[_0x51138d(0x20f)]['length']-0x1],_0x527db1=(_0x1303b0=this[_0x51138d(0x1bb)]())===null||_0x1303b0===void 0x0?void 0x0:_0x1303b0[_0x51138d(0x216)](_0x4fcae5),_0x1340ff=_0x52294f[0x0]-(_0x527db1?_0x527db1[0x0]:0x0),_0x21782b=_0x52294f[0x1]-(_0x527db1?_0x527db1[0x1]:0x0);_0xd0d92d=Math[_0x51138d(0x218)](_0x1340ff*_0x1340ff+_0x21782b*_0x21782b)<=this[_0x51138d(0x1db)];}return _0xd0d92d;}[a37_0x2d6008(0x1f0)](_0x11d3d9){const _0x5822ed=a37_0x2d6008;this[_0x5822ed(0x1c3)]=!![],this[_0x5822ed(0x20f)]=[_0x11d3d9[_0x5822ed(0x1e3)]()],this[_0x5822ed(0x1cc)]=this[_0x5822ed(0x1b9)](),this[_0x5822ed(0x1c6)](),this[_0x5822ed(0x1f4)](new DrawEvent(DrawEventType['DRAWSTART'],this[_0x5822ed(0x1cc)],this[_0x5822ed(0x20f)]));}['finishDrawing'](){const _0x3dba01=a37_0x2d6008;if(this['_drawingCoordinates'][_0x3dba01(0x210)]>this['_minPoints']){this[_0x3dba01(0x1cf)](this[_0x3dba01(0x20f)]);let _0x45533e=this[_0x3dba01(0x20f)];const _0x202944=this[_0x3dba01(0x20b)]();if(!_0x202944)return;this['dispatchEvent'](new DrawEvent(DrawEventType[_0x3dba01(0x1ee)],_0x202944,_0x45533e)),this[_0x3dba01(0x211)]&&this[_0x3dba01(0x211)][_0x3dba01(0x1eb)](_0x202944),this[_0x3dba01(0x200)]&&this[_0x3dba01(0x200)][_0x3dba01(0x1f3)](_0x202944);}}[a37_0x2d6008(0x1c4)](_0x2c2796){const _0x145526=a37_0x2d6008;this[_0x145526(0x20f)][_0x145526(0x1eb)](_0x2c2796),this[_0x145526(0x1cc)]=this[_0x145526(0x1b9)](),this['updateSketchFeatures_']();}['createMultiPointFeature'](){const _0x5f4c72=a37_0x2d6008,_0x27ed8a=new MultiPoint(this[_0x5f4c72(0x20f)]);let _0x475eea=new a37_0x521d95();return _0x475eea['setGeometry'](_0x27ed8a),_0x475eea;}[a37_0x2d6008(0x20b)](){const _0x41a008=a37_0x2d6008;var _0x18cb39,_0x1158cb;this[_0x41a008(0x1c3)]=![];const _0x583ab0=this[_0x41a008(0x1cc)];return this[_0x41a008(0x1cc)]=undefined,this[_0x41a008(0x20f)]=[],(_0x18cb39=this[_0x41a008(0x1dd)][_0x41a008(0x1f2)]())===null||_0x18cb39===void 0x0?void 0x0:_0x18cb39[_0x41a008(0x21b)](!![]),(_0x1158cb=this[_0x41a008(0x1bd)][_0x41a008(0x1f2)]())===null||_0x1158cb===void 0x0?void 0x0:_0x1158cb[_0x41a008(0x21b)](!![]),_0x583ab0;}[a37_0x2d6008(0x1fb)](){const _0x9b85d5=a37_0x2d6008,_0x3c7049=this['abortDrawing_']();_0x3c7049&&this[_0x9b85d5(0x1f4)](new DrawEvent(DrawEventType[_0x9b85d5(0x1e8)],_0x3c7049,this[_0x9b85d5(0x20f)]));}[a37_0x2d6008(0x1cf)](_0x3c4e4b){const _0x379b6f=a37_0x2d6008;this['_sketchFeature']=new a37_0x521d95();let _0x922faf=createPlot(this[_0x379b6f(0x1ed)],_0x3c4e4b);if(!_0x922faf)return;this[_0x379b6f(0x1cc)][_0x379b6f(0x217)](_0x922faf);let _0xa09d31=[a37_0x5bf60e[_0x379b6f(0x1d3)],a37_0x5bf60e['Ellipsoid'],a37_0x5bf60e[_0x379b6f(0x1e6)]];if(_0xa09d31['indexOf'](this[_0x379b6f(0x1ed)])>-0x1&&this[_0x379b6f(0x1d7)]){}const _0x1066ee=this[_0x379b6f(0x1bb)]();this[_0x379b6f(0x1cc)]['setStyle'](getStyle(this[_0x379b6f(0x1ed)],this[_0x379b6f(0x1d7)],this[_0x379b6f(0x1bb)]())),this[_0x379b6f(0x1c6)]();}[a37_0x2d6008(0x1c6)](){const _0xa140cc=a37_0x2d6008,_0x40d9ec=this[_0xa140cc(0x1dd)][_0xa140cc(0x1f2)]();_0x40d9ec&&this[_0xa140cc(0x1cc)]&&(_0x40d9ec[_0xa140cc(0x21b)](!![]),_0x40d9ec[_0xa140cc(0x1f3)](this[_0xa140cc(0x1cc)]));}[a37_0x2d6008(0x1fa)](){const _0x2098c9=a37_0x2d6008;if(this['_isStayDraw']){if(this[_0x2098c9(0x20f)]&&this[_0x2098c9(0x20f)][_0x2098c9(0x210)]>0x0){const _0x2ae68e=this['_overlay']['getSource']();_0x2ae68e===null||_0x2ae68e===void 0x0?void 0x0:_0x2ae68e['clear'](!![]),this[_0x2098c9(0x20f)]['pop'](),this[_0x2098c9(0x20f)][_0x2098c9(0x210)]>=this[_0x2098c9(0x213)]&&this[_0x2098c9(0x1cf)](this['_drawingCoordinates']),this[_0x2098c9(0x20f)][_0x2098c9(0x210)]===0x0&&(this[_0x2098c9(0x1c3)]=![]);}}}[a37_0x2d6008(0x202)](_0x489750,_0x51148e){const _0x523351=a37_0x2d6008;var _0x56ab75,_0x12b2d2,_0x1b0311,_0x50407c;if(!this[_0x523351(0x208)])return;const _0x29ac86=this[_0x523351(0x1bd)]['getSource']();_0x29ac86===null||_0x29ac86===void 0x0?void 0x0:_0x29ac86[_0x523351(0x21b)](!![]),(_0x56ab75=this[_0x523351(0x1c0)])===null||_0x56ab75===void 0x0?void 0x0:_0x56ab75[_0x523351(0x217)](new Point(_0x489750)),(_0x1b0311=(_0x12b2d2=this[_0x523351(0x1d9)])===null||_0x12b2d2===void 0x0?void 0x0:_0x12b2d2[_0x523351(0x1e2)]())===null||_0x1b0311===void 0x0?void 0x0:_0x1b0311[_0x523351(0x1ef)](_0x51148e),(_0x50407c=this['_tipFeature'])===null||_0x50407c===void 0x0?void 0x0:_0x50407c[_0x523351(0x21c)](this['_tipStyle']),this[_0x523351(0x1c0)]&&(_0x29ac86===null||_0x29ac86===void 0x0?void 0x0:_0x29ac86['addFeature'](this[_0x523351(0x1c0)]));}}function getDefaultStyleFunction(){const _0x59dc39=createEditingStyle();return function(_0x2e2b82,_0x432700){const _0xb8a2ca=a37_0x3ff7,_0x5f35d4=_0x59dc39[_0x2e2b82['getGeometry']()['getType']()];if(_0x5f35d4&&'Rectangle'==_0x2e2b82[_0xb8a2ca(0x1cb)]()[_0xb8a2ca(0x207)]()){}};}
|
|
1
|
+
const a37_0x21d46f=a37_0x31b8;function a37_0x31b8(_0x84bc5d,_0x3c53d){const _0x2b6f67=a37_0x2b6f();return a37_0x31b8=function(_0x31b8ec,_0x3fe6a6){_0x31b8ec=_0x31b8ec-0x87;let _0x13e5bf=_0x2b6f67[_0x31b8ec];return _0x13e5bf;},a37_0x31b8(_0x84bc5d,_0x3c53d);}(function(_0x2a8f2f,_0x206bf0){const _0x479dcc=a37_0x31b8,_0x188cf8=_0x2a8f2f();while(!![]){try{const _0x33f0ed=-parseInt(_0x479dcc(0xe8))/0x1+parseInt(_0x479dcc(0xc4))/0x2+parseInt(_0x479dcc(0x8a))/0x3*(-parseInt(_0x479dcc(0xd7))/0x4)+parseInt(_0x479dcc(0xd2))/0x5+-parseInt(_0x479dcc(0x8e))/0x6+parseInt(_0x479dcc(0xbd))/0x7*(parseInt(_0x479dcc(0xd1))/0x8)+parseInt(_0x479dcc(0xeb))/0x9*(parseInt(_0x479dcc(0xd8))/0xa);if(_0x33f0ed===_0x206bf0)break;else _0x188cf8['push'](_0x188cf8['shift']());}catch(_0x185011){_0x188cf8['push'](_0x188cf8['shift']());}}}(a37_0x2b6f,0xdc468));import a37_0x410fa1 from'ol/events/Event';import a37_0x9e5d7a from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';import a37_0x47cbe9 from'ol/Feature';import a37_0x4cf135,{createEditingStyle}from'ol/style/Style';import a37_0x280f82 from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a37_0xa1654f from'ol/style/Text';import a37_0x116357 from'ol/style/Fill';import a37_0x3b850f from'ol/interaction/Property';import a37_0x471241 from'ol/layer/Vector';import a37_0x6a3bf9 from'../entity/GeometryType';const DrawEventType={'DRAWSTART':'drawstart','DRAWEND':a37_0x21d46f(0xbc),'DRAWABORT':a37_0x21d46f(0xa1),'DRAWADDPOINT':a37_0x21d46f(0x88),'DRAWMOVING':'drawmoving'};export class DrawEvent extends a37_0x410fa1{constructor(_0x22a6bf,_0x42275b,_0x324380){const _0x3c6153=a37_0x21d46f;super(_0x22a6bf),this[_0x3c6153(0x9a)]=_0x42275b,this[_0x3c6153(0x8b)]=_0x324380;}}export class ShEvent extends a37_0x410fa1{constructor(_0x14751d,_0x3fbb92,_0x529d7d,_0x139903,_0x5b922f){const _0x15c4f0=a37_0x21d46f;super(_0x14751d),this['projection']=_0x5b922f,this[_0x15c4f0(0xb6)]=_0x3fbb92,this['coordinate']=_0x529d7d,this[_0x15c4f0(0x8b)]=_0x139903;}}export default class Draw extends a37_0x9e5d7a{constructor(_0xdd782e,_0x4899a3){const _0x27fe36=a37_0x21d46f,_0x26859f=_0x4899a3?_0x4899a3:{};!_0x26859f['stopDown']&&(_0x26859f[_0x27fe36(0xb8)]=![]);super(_0x4899a3),this['on']=this[_0x27fe36(0x9d)],this[_0x27fe36(0xb3)]=this[_0x27fe36(0xc5)],this['un']=this['unInternal'],this[_0x27fe36(0xe4)]=![],this[_0x27fe36(0xe0)]=_0xdd782e,this['_style']=_0x4899a3===null||_0x4899a3===void 0x0?void 0x0:_0x4899a3[_0x27fe36(0xb7)],this[_0x27fe36(0xa2)]=_0x4899a3===null||_0x4899a3===void 0x0?void 0x0:_0x4899a3[_0x27fe36(0xca)],this[_0x27fe36(0x97)]=_0x4899a3===null||_0x4899a3===void 0x0?void 0x0:_0x4899a3[_0x27fe36(0xcd)];const _0x4755c4=getPlotCount(this[_0x27fe36(0xe0)]);this['_minPoints']=_0x4755c4[_0x27fe36(0x95)],this[_0x27fe36(0xc2)]=_0x4755c4[_0x27fe36(0xda)],this[_0x27fe36(0x87)]=_0x4899a3===null||_0x4899a3===void 0x0?void 0x0:_0x4899a3[_0x27fe36(0x87)],this[_0x27fe36(0xb0)]=(_0x4899a3===null||_0x4899a3===void 0x0?void 0x0:_0x4899a3[_0x27fe36(0xd3)])==![]?![]:!![],this[_0x27fe36(0x9f)]=_0x26859f[_0x27fe36(0xaa)]?_0x26859f[_0x27fe36(0xaa)]:0x6,this['_tipFeature']=new a37_0x47cbe9(),this['_tipStyle']=new a37_0x4cf135({'text':new a37_0xa1654f({'font':'12px\x20Calibre,sans-serif','fill':new a37_0x116357({'color':_0x27fe36(0xbe)}),'backgroundFill':new a37_0x116357({'color':_0x27fe36(0x93)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x27fe36(0xd0),'offsetX':0xf})}),this['_drawingCoordinates']=[],this[_0x27fe36(0xc0)]=new a37_0x471241({'source':new a37_0x280f82({'useSpatialIndex':![],'wrapX':(_0x4899a3===null||_0x4899a3===void 0x0?void 0x0:_0x4899a3[_0x27fe36(0xb9)])?_0x4899a3['wrapX']:![]})}),this[_0x27fe36(0xb1)]=new a37_0x471241({'source':new a37_0x280f82({'useSpatialIndex':![],'wrapX':(_0x4899a3===null||_0x4899a3===void 0x0?void 0x0:_0x4899a3[_0x27fe36(0xb9)])?_0x4899a3['wrapX']:![]}),'updateWhileInteracting':!![]}),this[_0x27fe36(0xb4)](a37_0x3b850f[_0x27fe36(0xc1)],this[_0x27fe36(0xb5)]);}[a37_0x21d46f(0xb5)](){const _0xdc0066=a37_0x21d46f,_0x173b31=this[_0xdc0066(0x98)](),_0xe2cec2=this[_0xdc0066(0xcb)]();(!_0x173b31||!_0xe2cec2)&&this[_0xdc0066(0x8f)](),this[_0xdc0066(0xb1)][_0xdc0066(0xcc)](_0xe2cec2?_0x173b31:null),this[_0xdc0066(0xc0)][_0xdc0066(0xcc)](_0xe2cec2?_0x173b31:null);}[a37_0x21d46f(0xcc)](_0x3446ff){const _0x5105d8=a37_0x21d46f;super[_0x5105d8(0xcc)](_0x3446ff),this[_0x5105d8(0xb5)]();}[a37_0x21d46f(0xad)](_0x4becf0){const _0x5967a6=a37_0x21d46f;this[_0x5967a6(0xc3)]=_0x4becf0?_0x4becf0:{};}['getOverlay'](){const _0x4d66b8=a37_0x21d46f;return this[_0x4d66b8(0xb1)];}[a37_0x21d46f(0xa4)](_0x55bf20){const _0x5e87c6=a37_0x21d46f;if(_0x55bf20[_0x5e87c6(0x92)][_0x5e87c6(0xd6)]===0x2)return _0x55bf20[_0x5e87c6(0x92)]['preventDefault'](),this['revert'](),this[_0x5e87c6(0xa3)](_0x55bf20),![];return!![];}[a37_0x21d46f(0xe2)](_0x3ea999){const _0x5840c3=a37_0x21d46f;var _0x2456c5,_0x14d5b0;if(this[_0x5840c3(0xe0)]==_0x5840c3(0xbf)&&this['_drawingCoordinates']['length']<0x1)return this[_0x5840c3(0x99)](new DrawEvent(DrawEventType[_0x5840c3(0x9b)],undefined,[_0x3ea999[_0x5840c3(0xce)]])),![];if(!this[_0x5840c3(0xe4)])this[_0x5840c3(0x91)](_0x3ea999[_0x5840c3(0xce)]),this[_0x5840c3(0x99)](new ShEvent(DrawEventType[_0x5840c3(0x9c)],this[_0x5840c3(0xe0)],_0x3ea999[_0x5840c3(0xce)],this['_drawingCoordinates'],(_0x2456c5=this['getMap']())===null||_0x2456c5===void 0x0?void 0x0:_0x2456c5[_0x5840c3(0xde)]()[_0x5840c3(0x8d)]()['getCode']())),this[_0x5840c3(0xe0)]==_0x5840c3(0x89)&&this[_0x5840c3(0xa6)]();else{if(this[_0x5840c3(0xc6)]&&this[_0x5840c3(0xc6)][_0x5840c3(0x9e)]>0x0){if(this[_0x5840c3(0xaf)](_0x3ea999['pixel']))return this[_0x5840c3(0xa6)](),_0x3ea999[_0x5840c3(0xba)](),![];let _0x58617a=this[_0x5840c3(0xc6)][_0x5840c3(0x9e)]+0x1;_0x58617a<=this[_0x5840c3(0xc2)]&&this[_0x5840c3(0xac)](_0x3ea999['coordinate']),this[_0x5840c3(0x99)](new ShEvent(DrawEventType[_0x5840c3(0x9c)],this[_0x5840c3(0xe0)],_0x3ea999[_0x5840c3(0xce)],this['_drawingCoordinates'],(_0x14d5b0=this[_0x5840c3(0x98)]())===null||_0x14d5b0===void 0x0?void 0x0:_0x14d5b0['getView']()[_0x5840c3(0x8d)]()[_0x5840c3(0xe1)]())),_0x58617a>=this['_minPoints']&&this[_0x5840c3(0xd9)](this['_drawingCoordinates']),_0x58617a===this[_0x5840c3(0xc2)]&&this[_0x5840c3(0xa6)]();}}return _0x3ea999[_0x5840c3(0xba)](),![];}[a37_0x21d46f(0x90)](_0x18267e){const _0x8ff2a3=a37_0x21d46f;var _0x98f715;if(this['_type']=='rectangle'&&_0x18267e[_0x8ff2a3(0x92)][_0x8ff2a3(0xb6)]==_0x8ff2a3(0xed)){if(!this['_isStayDraw']){this[_0x8ff2a3(0x91)](_0x18267e[_0x8ff2a3(0xce)]),this[_0x8ff2a3(0x99)](new ShEvent(DrawEventType[_0x8ff2a3(0x9c)],this[_0x8ff2a3(0xe0)],_0x18267e[_0x8ff2a3(0xce)],this['_drawingCoordinates'],(_0x98f715=this[_0x8ff2a3(0x98)]())===null||_0x98f715===void 0x0?void 0x0:_0x98f715[_0x8ff2a3(0xde)]()[_0x8ff2a3(0x8d)]()[_0x8ff2a3(0xe1)]()));return;}let _0xfa6239=[...this[_0x8ff2a3(0xc6)],_0x18267e[_0x8ff2a3(0xce)]];this['buildDrawingFeature'](_0xfa6239),this[_0x8ff2a3(0x99)](new DrawEvent(DrawEventType[_0x8ff2a3(0xc7)],this[_0x8ff2a3(0xdc)],this[_0x8ff2a3(0xc6)]));}}[a37_0x21d46f(0xa3)](_0x5d04af){const _0x2d1e9a=a37_0x21d46f;var _0x445139,_0x4e3be0,_0x3afd8b;let _0x93932d='';this[_0x2d1e9a(0xe0)]=='pointermove'&&(this[_0x2d1e9a(0x91)](_0x5d04af[_0x2d1e9a(0xce)]),this[_0x2d1e9a(0x99)](new ShEvent(DrawEventType[_0x2d1e9a(0x9c)],this[_0x2d1e9a(0xe0)],_0x5d04af[_0x2d1e9a(0xce)],this[_0x2d1e9a(0xc6)],(_0x445139=this[_0x2d1e9a(0x98)]())===null||_0x445139===void 0x0?void 0x0:_0x445139[_0x2d1e9a(0xde)]()['getProjection']()[_0x2d1e9a(0xe1)]())),this[_0x2d1e9a(0xa6)]());!this['_isStayDraw']?_0x93932d=this[_0x2d1e9a(0xe0)]=='rectangle'?_0x2d1e9a(0xa5):_0x2d1e9a(0xbb):(_0x93932d='单击增加点,右击删除点',((_0x4e3be0=this[_0x2d1e9a(0xc6)])===null||_0x4e3be0===void 0x0?void 0x0:_0x4e3be0['length'])===this[_0x2d1e9a(0xc2)]-0x1&&(_0x93932d='单击结束绘制,右击删除点'),((_0x3afd8b=this[_0x2d1e9a(0xc6)])===null||_0x3afd8b===void 0x0?void 0x0:_0x3afd8b['length'])>=this[_0x2d1e9a(0xef)]&&this[_0x2d1e9a(0xc2)]===Number['MAX_VALUE']&&(_0x93932d=_0x2d1e9a(0xc8)));this[_0x2d1e9a(0x87)]!=undefined&&(_0x93932d=this[_0x2d1e9a(0x87)]);this[_0x2d1e9a(0xe7)](_0x5d04af[_0x2d1e9a(0xce)],_0x93932d);if(this['_isStayDraw']&&this[_0x2d1e9a(0xe0)]!=_0x2d1e9a(0xbf)){let _0x1d6427=[...this[_0x2d1e9a(0xc6)],_0x5d04af[_0x2d1e9a(0xce)]];this[_0x2d1e9a(0xd9)](_0x1d6427),this[_0x2d1e9a(0x99)](new DrawEvent(DrawEventType[_0x2d1e9a(0xc7)],this['_sketchFeature'],this[_0x2d1e9a(0xc6)]));}}['atFinish_'](_0x4339e3){const _0xfe955=a37_0x21d46f;var _0x5abadb;let _0x315ba2=![],_0xdea8f2=this['_drawingCoordinates'][_0xfe955(0x9e)];if(_0xdea8f2>this['_minPoints']&&this[_0xfe955(0xc2)]===Number[_0xfe955(0xa0)]){const _0x1bb0d9=this['_drawingCoordinates'][this[_0xfe955(0xc6)][_0xfe955(0x9e)]-0x1],_0x5766eb=(_0x5abadb=this[_0xfe955(0x98)]())===null||_0x5abadb===void 0x0?void 0x0:_0x5abadb[_0xfe955(0xe5)](_0x1bb0d9),_0x388fe9=_0x4339e3[0x0]-(_0x5766eb?_0x5766eb[0x0]:0x0),_0x4c75df=_0x4339e3[0x1]-(_0x5766eb?_0x5766eb[0x1]:0x0);_0x315ba2=Math['sqrt'](_0x388fe9*_0x388fe9+_0x4c75df*_0x4c75df)<=this[_0xfe955(0x9f)];}return _0x315ba2;}['startDrawing_'](_0x2983d9){const _0x233284=a37_0x21d46f;this[_0x233284(0xe4)]=!![],this[_0x233284(0xc6)]=[_0x2983d9[_0x233284(0x8c)]()],this[_0x233284(0xdc)]=this['createMultiPointFeature'](),this[_0x233284(0xae)](),this['dispatchEvent'](new DrawEvent(DrawEventType[_0x233284(0xe9)],this['_sketchFeature'],this['_drawingCoordinates']));}[a37_0x21d46f(0xa6)](){const _0x1e9503=a37_0x21d46f;if(this[_0x1e9503(0xc6)][_0x1e9503(0x9e)]>this[_0x1e9503(0xef)]){this[_0x1e9503(0xd9)](this[_0x1e9503(0xc6)]);let _0x4ffc69=this[_0x1e9503(0xc6)];const _0x3098a8=this[_0x1e9503(0xe3)]();if(!_0x3098a8)return;this[_0x1e9503(0x99)](new DrawEvent(DrawEventType[_0x1e9503(0x9b)],_0x3098a8,_0x4ffc69)),this[_0x1e9503(0x97)]&&this[_0x1e9503(0x97)]['push'](_0x3098a8),this['_source']&&this[_0x1e9503(0xa2)][_0x1e9503(0xee)](_0x3098a8);}}['addPoint'](_0x3ddfad){const _0x1b220b=a37_0x21d46f;this[_0x1b220b(0xc6)][_0x1b220b(0xb2)](_0x3ddfad),this[_0x1b220b(0xdc)]=this[_0x1b220b(0xdb)](),this['updateSketchFeatures_']();}['createMultiPointFeature'](){const _0x5e0e9a=a37_0x21d46f,_0x13a744=new MultiPoint(this[_0x5e0e9a(0xc6)]);let _0x4923dd=new a37_0x47cbe9();return _0x4923dd['setGeometry'](_0x13a744),_0x4923dd;}['abortDrawing_'](){const _0x3bfa1a=a37_0x21d46f;var _0x593176,_0x149bf4;this[_0x3bfa1a(0xe4)]=![];const _0x5359e1=this[_0x3bfa1a(0xdc)];return this[_0x3bfa1a(0xdc)]=undefined,this[_0x3bfa1a(0xc6)]=[],(_0x593176=this['_overlay']['getSource']())===null||_0x593176===void 0x0?void 0x0:_0x593176[_0x3bfa1a(0xab)](!![]),(_0x149bf4=this['_tipOverlay'][_0x3bfa1a(0xd5)]())===null||_0x149bf4===void 0x0?void 0x0:_0x149bf4[_0x3bfa1a(0xab)](!![]),_0x5359e1;}[a37_0x21d46f(0x8f)](){const _0x5a8977=a37_0x21d46f,_0x4a47af=this[_0x5a8977(0xe3)]();_0x4a47af&&this[_0x5a8977(0x99)](new DrawEvent(DrawEventType['DRAWABORT'],_0x4a47af,this[_0x5a8977(0xc6)]));}[a37_0x21d46f(0xd9)](_0x5befa1){const _0x5b8c95=a37_0x21d46f;this[_0x5b8c95(0xdc)]=new a37_0x47cbe9();let _0x30c2b7=createPlot(this[_0x5b8c95(0xe0)],_0x5befa1);if(!_0x30c2b7)return;this[_0x5b8c95(0xdc)][_0x5b8c95(0xdd)](_0x30c2b7);let _0x33687e=[a37_0x6a3bf9['Circle'],a37_0x6a3bf9[_0x5b8c95(0xa7)],a37_0x6a3bf9[_0x5b8c95(0xa8)]];if(_0x33687e[_0x5b8c95(0x96)](this[_0x5b8c95(0xe0)])>-0x1&&this[_0x5b8c95(0xc3)]){}const _0x1fcfa2=this[_0x5b8c95(0x98)]();this[_0x5b8c95(0xdc)][_0x5b8c95(0xad)](getStyle(this[_0x5b8c95(0xe0)],this[_0x5b8c95(0xc3)],this[_0x5b8c95(0x98)]())),this['updateSketchFeatures_']();}[a37_0x21d46f(0xae)](){const _0x390c9d=a37_0x21d46f,_0x5bf8bf=this['_overlay'][_0x390c9d(0xd5)]();_0x5bf8bf&&this[_0x390c9d(0xdc)]&&(_0x5bf8bf[_0x390c9d(0xab)](!![]),_0x5bf8bf[_0x390c9d(0xee)](this['_sketchFeature']));}[a37_0x21d46f(0xa9)](){const _0x5e8df9=a37_0x21d46f;if(this[_0x5e8df9(0xe4)]){if(this['_drawingCoordinates']&&this['_drawingCoordinates'][_0x5e8df9(0x9e)]>0x0){const _0x1cf2fa=this[_0x5e8df9(0xb1)][_0x5e8df9(0xd5)]();_0x1cf2fa===null||_0x1cf2fa===void 0x0?void 0x0:_0x1cf2fa[_0x5e8df9(0xab)](!![]),this['_drawingCoordinates'][_0x5e8df9(0xe6)](),this[_0x5e8df9(0xc6)][_0x5e8df9(0x9e)]>=this[_0x5e8df9(0xef)]&&this[_0x5e8df9(0xd9)](this[_0x5e8df9(0xc6)]),this[_0x5e8df9(0xc6)][_0x5e8df9(0x9e)]===0x0&&(this['_isStayDraw']=![]);}}}[a37_0x21d46f(0xe7)](_0x578950,_0x474121){const _0x2b0354=a37_0x21d46f;var _0x432a41,_0x30ca81,_0x165873,_0x506c71;if(!this[_0x2b0354(0xb0)])return;const _0x18b038=this[_0x2b0354(0xc0)]['getSource']();_0x18b038===null||_0x18b038===void 0x0?void 0x0:_0x18b038[_0x2b0354(0xab)](!![]),(_0x432a41=this[_0x2b0354(0xd4)])===null||_0x432a41===void 0x0?void 0x0:_0x432a41[_0x2b0354(0xdd)](new Point(_0x578950)),(_0x165873=(_0x30ca81=this[_0x2b0354(0xcf)])===null||_0x30ca81===void 0x0?void 0x0:_0x30ca81[_0x2b0354(0xec)]())===null||_0x165873===void 0x0?void 0x0:_0x165873[_0x2b0354(0xdf)](_0x474121),(_0x506c71=this[_0x2b0354(0xd4)])===null||_0x506c71===void 0x0?void 0x0:_0x506c71['setStyle'](this[_0x2b0354(0xcf)]),this['_tipFeature']&&(_0x18b038===null||_0x18b038===void 0x0?void 0x0:_0x18b038['addFeature'](this[_0x2b0354(0xd4)]));}}function getDefaultStyleFunction(){const _0x518c12=createEditingStyle();return function(_0x411b2a,_0x4995fc){const _0x2428aa=a37_0x31b8,_0x46e9e3=_0x518c12[_0x411b2a['getGeometry']()[_0x2428aa(0x94)]()];if(_0x46e9e3&&_0x2428aa(0xc9)==_0x411b2a[_0x2428aa(0xea)]()['getType']()){}};}function a37_0x2b6f(){const _0x6cb4ac=['type','style','stopDown','wrapX','preventDefault','单击开始绘制','drawend','7ONaWfN','rgba(255,\x20255,\x20255,\x201)','rectangle','_tipOverlay','ACTIVE','_fixPoint','_style','3277712aprFDr','onceInternal','_drawingCoordinates','DRAWMOVING','单击增加点,右击删除点双击完成绘制','Rectangle','source','getActive','setMap','features','coordinate','_tipStyle','left','10844128ODtsTh','1793725HvmdEm','showTip','_tipFeature','getSource','button','4RlRNoK','70GCgndu','buildDrawingFeature','fixPoint','createMultiPointFeature','_sketchFeature','setGeometry','getView','setText','_type','getCode','handleUpEvent','abortDrawing_','_isStayDraw','getPixelFromCoordinate','pop','updateTip_','954379kgJLcj','DRAWSTART','getGeometry','855999uzQQWl','getText','pointermove','addFeature','_minPoints','tipText','drawaddpoint','point','3204282ljrCVE','coordinates','slice','getProjection','6565038gIrMYt','abortDrawing','handleDragEvent','startDrawing_','originalEvent','rgba(0,\x200,\x200,\x200.4)','getType','minPoint','indexOf','_features','getMap','dispatchEvent','feature','DRAWEND','DRAWADDPOINT','onInternal','length','_snapTolerance','MAX_VALUE','drawabort','_source','handleMoveEvent','handleDownEvent','单击拖动绘制','finishDrawing','Ellipsoid','Ellipse','revert','snapTolerance','clear','addPoint','setStyle','updateSketchFeatures_','atFinish_','_showTip','_overlay','push','once','addChangeListener','updateState_'];a37_0x2b6f=function(){return _0x6cb4ac;};return a37_0x2b6f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a38_0x1450(_0x24ddb6,_0x328aa2){const _0x16052b=a38_0x1605();return a38_0x1450=function(_0x14509c,_0x3d32bf){_0x14509c=_0x14509c-0xc5;let _0x4d15f9=_0x16052b[_0x14509c];return _0x4d15f9;},a38_0x1450(_0x24ddb6,_0x328aa2);}function a38_0x1605(){const _0x40837e=['813861JyoiQU','get','clear','3669105BYBwOl','6FVCGKd','12650790hjfDyc','getInteraction','11235091eyZIMG','9Aywnjs','1391640iihSTf','forEach','28McpzTA','1396425aUfnEs','addInteraction','map','delete','has','removeInteraction','555081mLWntb','2pzXqAw','interactions','removeAllInteractions','set','name'];a38_0x1605=function(){return _0x40837e;};return a38_0x1605();}const a38_0xf89436=a38_0x1450;(function(_0x45bd3e,_0x1b9e1c){const _0x162ea6=a38_0x1450,_0x1ee51a=_0x45bd3e();while(!![]){try{const _0x13f090=-parseInt(_0x162ea6(0xd8))/0x1*(parseInt(_0x162ea6(0xd3))/0x2)+parseInt(_0x162ea6(0xd2))/0x3*(-parseInt(_0x162ea6(0xcb))/0x4)+parseInt(_0x162ea6(0xcc))/0x5+-parseInt(_0x162ea6(0xdc))/0x6*(-parseInt(_0x162ea6(0xc7))/0x7)+-parseInt(_0x162ea6(0xc9))/0x8*(-parseInt(_0x162ea6(0xc8))/0x9)+parseInt(_0x162ea6(0xc5))/0xa+-parseInt(_0x162ea6(0xdb))/0xb;if(_0x13f090===_0x1b9e1c)break;else _0x1ee51a['push'](_0x1ee51a['shift']());}catch(_0x28f71d){_0x1ee51a['push'](_0x1ee51a['shift']());}}}(a38_0x1605,0xd7057));export default class InteractionManager{constructor(_0x59d395){const _0x17d155=a38_0x1450;this[_0x17d155(0xce)]=_0x59d395,this[_0x17d155(0xd4)]=new Map();}['addInteraction'](_0x3ade5a,_0x583ead){const _0x3d56c3=a38_0x1450;this['interactions'][_0x3d56c3(0xd0)](_0x3ade5a)&&this['removeInteraction'](_0x3ade5a),_0x583ead[_0x3d56c3(0xd6)](_0x3d56c3(0xd7),_0x3ade5a),this['interactions'][_0x3d56c3(0xd6)](_0x3ade5a,_0x583ead),this[_0x3d56c3(0xce)][_0x3d56c3(0xcd)](_0x583ead);}['removeInteraction'](_0x3bf797){const _0x2da5d1=a38_0x1450,_0xf3c26b=this[_0x2da5d1(0xd4)]['get'](_0x3bf797);_0xf3c26b&&(this['map'][_0x2da5d1(0xd1)](_0xf3c26b),this['interactions'][_0x2da5d1(0xcf)](_0x3bf797));}[a38_0xf89436(0xd5)](){const _0x147d9d=a38_0xf89436;this['interactions'][_0x147d9d(0xca)](_0x3f99f5=>{const _0x1ad3c1=_0x147d9d;this[_0x1ad3c1(0xce)][_0x1ad3c1(0xd1)](_0x3f99f5);}),this[_0x147d9d(0xd4)][_0x147d9d(0xda)]();}[a38_0xf89436(0xc6)](_0x4c6bc2){const _0x2763ce=a38_0xf89436;return this[_0x2763ce(0xd4)][_0x2763ce(0xd9)](_0x4c6bc2);}}
|
package/interaction/Select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a39_0x45aef6=a39_0x20d8;(function(_0x364151,_0x21f0a5){const _0x775be9=a39_0x20d8,_0x52b5af=_0x364151();while(!![]){try{const _0x104eff=parseInt(_0x775be9(0x132))/0x1+parseInt(_0x775be9(0x165))/0x2*(-parseInt(_0x775be9(0x143))/0x3)+-parseInt(_0x775be9(0x169))/0x4*(parseInt(_0x775be9(0x15f))/0x5)+parseInt(_0x775be9(0x166))/0x6*(-parseInt(_0x775be9(0x130))/0x7)+parseInt(_0x775be9(0x13b))/0x8*(parseInt(_0x775be9(0x14f))/0x9)+-parseInt(_0x775be9(0x150))/0xa+-parseInt(_0x775be9(0x14b))/0xb*(-parseInt(_0x775be9(0x126))/0xc);if(_0x104eff===_0x21f0a5)break;else _0x52b5af['push'](_0x52b5af['shift']());}catch(_0x110ef5){_0x52b5af['push'](_0x52b5af['shift']());}}}(a39_0x2518,0x67ba9));import a39_0x2a4bc8 from'./Draw';import a39_0x979d51 from'ol/events/Event';import{bufferPixel,intersects}from'../utils/GeometryUtil';function a39_0x20d8(_0xeddc38,_0x148129){const _0x2518aa=a39_0x2518();return a39_0x20d8=function(_0x20d857,_0x2b9231){_0x20d857=_0x20d857-0x11b;let _0x2d6c35=_0x2518aa[_0x20d857];return _0x2d6c35;},a39_0x20d8(_0xeddc38,_0x148129);}import{Point}from'ol/geom';function a39_0x2518(){const _0x585ae9=['selectIndex','tipText','getGeometry','selectGeom','getProjection','6431144kQYGoT','loadFilter','import','getCode','selectTempLayer','selectedPolygonFeatures','lineFeatures','Polygon','8262JIhPSD','MultiPolygon','tempLayer','selectedLineFeatures','addTempLayer','drawaddpoint','length','selected','5517523UDTrQf','addFeatures','MultiLineString','MultiPoint','9EviYqQ','495850UBUQUJ','filter','getMap','drawend','includes','message','layerInfo','setSelectLayers','polygonStyle','cancePolygonStyle','selectstart','coordinates','getPolygonTempLayer','url','currentLayers','2909230zlJjKR','Point','onInternal','canceLineStyle','selectedPointFeatures','forEach','430eljEcG','44586MTZica','selectLayer','keyup','4FIWZgW','allSelectedFeatures','drawmoving','getLayers','copy','cancePointStyle','getLayerById','getVisible','push','getSource','fromType','pointStyle','setStyle','lineStyle','getSelectedFeatures','map','36iFphJx','selectLayers','getArray','seletctEditeFeature','未获取到几何','holdCtrl','pixelDistance','keydown','LineString','draw','721hpyqso','addEventListener','105135mzsYNs','SELECTED','feature','dispatchEvent'];a39_0x2518=function(){return _0x585ae9;};return a39_0x2518();}import a39_0x5eddea from'../feature/FeatureManager';import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';import{selectFeaturesByGeo}from'../utils/tasks';const SelectEventType={'DRAWSTART':'drawstart','DRAWEND':a39_0x45aef6(0x153),'DRAWABORT':'drawabort','DRAWADDPOINT':a39_0x45aef6(0x148),'DRAWMOVING':a39_0x45aef6(0x16b),'SELECTSTART':a39_0x45aef6(0x15a),'SELECTED':a39_0x45aef6(0x14a)};export class SelectEvent extends a39_0x979d51{constructor(_0x5c9f5d,_0x248dba,_0x543160,_0x2854fd,_0x205ffc,_0x2c2918,_0x359d28,_0x4deeb6,_0x55f1fe){const _0x358b24=a39_0x45aef6;super(_0x5c9f5d),this[_0x358b24(0x139)]=_0x543160,this['coordinates']=_0x2854fd,this['pointFeatures']=_0x205ffc,this[_0x358b24(0x141)]=_0x2c2918,this['polygonFeatures']=_0x359d28,this['allFeatures']=_0x4deeb6,this['error']=_0x55f1fe,this['holdCtrl']=_0x248dba;}}export default class Select extends a39_0x2a4bc8{constructor(_0x485653,_0x5e2ad5){const _0x43898f=a39_0x45aef6;super(_0x485653,{'tipText':_0x5e2ad5===null||_0x5e2ad5===void 0x0?void 0x0:_0x5e2ad5[_0x43898f(0x137)]}),this[_0x43898f(0x163)]=[],this[_0x43898f(0x146)]=[],this[_0x43898f(0x140)]=[],this[_0x43898f(0x16a)]=[];const _0x2a647b=_0x5e2ad5||{};this[_0x43898f(0x147)]=_0x2a647b['addTempLayer']||![],this[_0x43898f(0x15e)]=_0x2a647b[_0x43898f(0x127)],this[_0x43898f(0x13f)]=_0x2a647b['selectTempLayer']===undefined?!![]:_0x2a647b[_0x43898f(0x13f)],this['pixelDistance']=_0x2a647b[_0x43898f(0x12c)]===undefined?0x5:_0x2a647b[_0x43898f(0x12c)],this[_0x43898f(0x121)]=_0x2a647b[_0x43898f(0x121)]?getStyle(_0x2a647b[_0x43898f(0x121)]):getSelectPointStyle(),this['cancePointStyle']=_0x2a647b['cancePointStyle']?getStyle(_0x2a647b[_0x43898f(0x11b)]):getSelectCancePointStyle(),this['lineStyle']=_0x2a647b[_0x43898f(0x123)]?getStyle(_0x2a647b[_0x43898f(0x123)]):getSelectLineStyle(),this[_0x43898f(0x162)]=_0x2a647b[_0x43898f(0x162)]?getStyle(_0x2a647b[_0x43898f(0x162)]):getSelectCancelLineStyle(),this[_0x43898f(0x158)]=_0x2a647b[_0x43898f(0x158)]?getStyle(_0x2a647b['polygonStyle']):getSelectPolygonStyle(),this[_0x43898f(0x159)]=_0x2a647b[_0x43898f(0x159)]?getStyle(_0x2a647b[_0x43898f(0x159)]):getSelectCancelPolygonStyle(),this[_0x43898f(0x12b)]=![];let _0x4d9dd2;this['on']=this[_0x43898f(0x161)],this['on'](_0x43898f(0x153),async _0x17f246=>{const _0x188e9f=_0x43898f,_0x23540d=this[_0x188e9f(0x12b)],_0xf37f2=this[_0x188e9f(0x152)]();if(!_0xf37f2)return;try{let _0x3c0f92=undefined;if(!_0x17f246[_0x188e9f(0x134)]&&_0x17f246[_0x188e9f(0x15b)]&&_0x17f246[_0x188e9f(0x15b)]['length']==0x1)_0x3c0f92=bufferPixel(new Point(_0x17f246[_0x188e9f(0x15b)][0x0]),this[_0x188e9f(0x12c)],_0xf37f2);else _0x17f246[_0x188e9f(0x134)]&&(_0x3c0f92=_0x17f246[_0x188e9f(0x134)][_0x188e9f(0x138)]());if(!_0x3c0f92)throw new Error(_0x188e9f(0x12a));this[_0x188e9f(0x135)](new SelectEvent(SelectEventType['SELECTSTART'],_0x23540d,_0x3c0f92)),this[_0x188e9f(0x163)]=[],this[_0x188e9f(0x146)]=[],this[_0x188e9f(0x140)]=[],this['allSelectedFeatures']=[],this['selectTempLayer']&&this['seletctEditeFeature'](_0x3c0f92),_0x4d9dd2&&clearTimeout(_0x4d9dd2),_0x4d9dd2=setTimeout(async()=>{const _0xd5fdcf=_0x188e9f;await this['selectLayer'](_0x3c0f92),this[_0xd5fdcf(0x135)](new SelectEvent(SelectEventType[_0xd5fdcf(0x133)],_0x23540d,_0x3c0f92,_0x17f246[_0xd5fdcf(0x15b)],this['selectedPointFeatures'],this[_0xd5fdcf(0x146)],this['selectedPolygonFeatures'],this[_0xd5fdcf(0x16a)]));},0x46);}catch(_0x2e43c4){this[_0x188e9f(0x135)](new SelectEvent(SelectEventType['SELECTED'],_0x23540d,undefined,_0x17f246['coordinates'],this[_0x188e9f(0x163)],this['selectedLineFeatures'],this[_0x188e9f(0x140)],this[_0x188e9f(0x16a)],_0x2e43c4[_0x188e9f(0x155)]));}}),window[_0x43898f(0x131)](_0x43898f(0x12d),_0x2f7b46=>{const _0x478a12=_0x43898f;_0x2f7b46['ctrlKey']&&(this[_0x478a12(0x12b)]=!![]);}),window[_0x43898f(0x131)](_0x43898f(0x168),_0x40b765=>{this['holdCtrl']=![];});}[a39_0x45aef6(0x157)](_0x47f921){const _0x370173=a39_0x45aef6;this[_0x370173(0x15e)]=_0x47f921;}async[a39_0x45aef6(0x167)](_0x569a32){const _0x386613=a39_0x45aef6;var _0x17d60d;const _0x17f8c0=this[_0x386613(0x152)]();let _0x703569=[];if(this['currentLayers']&&this[_0x386613(0x15e)][_0x386613(0x149)]>0x0)_0x703569=this[_0x386613(0x15e)];else{let _0x4a9ee0=_0x17f8c0[_0x386613(0x16c)]()[_0x386613(0x128)]();_0x4a9ee0=_0x4a9ee0[_0x386613(0x151)](_0x5182fa=>{const _0x2bee57=_0x386613,_0x3a33c3=_0x5182fa[_0x2bee57(0x156)];if(!_0x3a33c3)return![];return _0x5182fa[_0x2bee57(0x11d)]()==!![]&&_0x3a33c3['selectIndex']!=undefined&&_0x3a33c3[_0x2bee57(0x136)]!='';}),_0x703569=_0x4a9ee0[_0x386613(0x125)](_0x41d85e=>{return _0x41d85e['layerInfo'];});}if(!_0x703569||_0x703569[_0x386613(0x149)]==0x0)return;const _0x13f2e1=_0x17f8c0['getView']()[_0x386613(0x13a)]()[_0x386613(0x13e)]();for(let _0x5a6987=0x0,_0xc3a829=_0x703569[_0x386613(0x149)];_0x5a6987<_0xc3a829;_0x5a6987++){const _0x216b98=_0x703569[_0x5a6987],_0x555be7=_0x17f8c0[_0x386613(0x11c)](_0x216b98['id']);if(!_0x555be7||_0x555be7[_0x386613(0x11d)]()==![]||!_0x216b98||!_0x216b98['url']||!_0x216b98[_0x386613(0x136)])continue;let _0x12bdc6=await selectFeaturesByGeo(_0x569a32,_0x13f2e1,_0x216b98[_0x386613(0x15d)],_0x216b98[_0x386613(0x136)],_0x216b98['layerType'],_0x216b98[_0x386613(0x13c)]);if(_0x12bdc6[_0x386613(0x149)]>0x0){this['allSelectedFeatures'][_0x386613(0x11e)](..._0x12bdc6);let _0x5561f0=_0x17f8c0[_0x386613(0x15c)](),_0x23df83=this[_0x386613(0x158)];switch((_0x17d60d=_0x12bdc6[0x0][_0x386613(0x138)]())===null||_0x17d60d===void 0x0?void 0x0:_0x17d60d['getType']()){case _0x386613(0x160):case _0x386613(0x14e):this['selectedPointFeatures'][_0x386613(0x11e)](..._0x12bdc6),_0x5561f0=_0x17f8c0['getPointTempLayer'](),_0x23df83=this[_0x386613(0x121)];break;case _0x386613(0x12e):case _0x386613(0x14d):this['selectedLineFeatures'][_0x386613(0x11e)](..._0x12bdc6),_0x5561f0=_0x17f8c0['getLineTempLayer'](),_0x23df83=this[_0x386613(0x123)];break;case _0x386613(0x142):case _0x386613(0x144):this[_0x386613(0x140)]['push'](..._0x12bdc6),_0x5561f0=_0x17f8c0['getPolygonTempLayer'](),_0x23df83=this['polygonStyle'];break;default:break;}const _0x4d3034=_0x5561f0[_0x386613(0x11f)]();_0x4d3034&&(_0x12bdc6[_0x386613(0x164)](_0x23d57a=>{const _0x263853=_0x386613;_0x23d57a['layerId']=_0x216b98['id'],_0x23d57a[_0x263853(0x145)]=_0x5561f0,_0x23d57a[_0x263853(0x122)](_0x23df83);}),this[_0x386613(0x147)]&&_0x4d3034[_0x386613(0x14c)](_0x12bdc6));}}}[a39_0x45aef6(0x129)](_0x22d63c){const _0x5bd21d=a39_0x45aef6,_0x3f5c84=new a39_0x5eddea(this[_0x5bd21d(0x152)]()),_0x4ae3fe=_0x3f5c84[_0x5bd21d(0x124)]();if(!_0x4ae3fe||_0x4ae3fe[_0x5bd21d(0x149)]===0x0)return[];const _0x7ec7=[_0x5bd21d(0x16d),'cut',_0x5bd21d(0x12f),_0x5bd21d(0x13d),'union'],_0x4dc32f=[];for(const _0x453718 of _0x4ae3fe){if(!_0x453718||!_0x453718['fromType']||!_0x7ec7[_0x5bd21d(0x154)](_0x453718[_0x5bd21d(0x120)]))continue;const _0x343be5=_0x453718['getGeometry']();if(!_0x343be5)continue;if(!intersects(_0x343be5,_0x22d63c))continue;let _0x4ae133=this['polygonStyle'];this[_0x5bd21d(0x16a)][_0x5bd21d(0x11e)](_0x453718);switch(_0x343be5['getType']()){case _0x5bd21d(0x160):case _0x5bd21d(0x14e):this[_0x5bd21d(0x163)][_0x5bd21d(0x11e)](_0x453718),_0x4ae133=this['pointStyle'];break;case _0x5bd21d(0x12e):case'MultiLineString':this[_0x5bd21d(0x146)][_0x5bd21d(0x11e)](_0x453718),_0x4ae133=this[_0x5bd21d(0x123)];break;case _0x5bd21d(0x142):case _0x5bd21d(0x144):this['selectedPolygonFeatures']['push'](_0x453718),_0x4ae133=this[_0x5bd21d(0x158)];break;default:break;}_0x453718['setStyle'](_0x4ae133);}return _0x4dc32f;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a40_0x5ed1(){const _0x53ea41=['wkt','12uEJMSA','9cDdFMU','updateParams','stringify','ymin','3770ArHgWu','url','xmax','wkid','projection','opacity','xmin','getSource','initialExtent','3620WHxJEw','selectIndex','fullExtent','115493kJOJEv','layerDefs','EPSG:','460880SVztot','449086DbbyCa','layerInfo','setFilter','loadFilter','2486104UcYyzo','sublayers','ymax','1830610ngMVuh','mapIndex','6145290GtFqcD','spatialReference','join'];a40_0x5ed1=function(){return _0x53ea41;};return a40_0x5ed1();}const a40_0x36e425=a40_0x1c4d;(function(_0x5c541b,_0x3e9e69){const _0x2620cd=a40_0x1c4d,_0x4669c5=_0x5c541b();while(!![]){try{const _0xfc515=-parseInt(_0x2620cd(0xe2))/0x1+parseInt(_0x2620cd(0xe3))/0x2*(parseInt(_0x2620cd(0xcf))/0x3)+-parseInt(_0x2620cd(0xdc))/0x4*(-parseInt(_0x2620cd(0xd3))/0x5)+parseInt(_0x2620cd(0xce))/0x6*(parseInt(_0x2620cd(0xdf))/0x7)+parseInt(_0x2620cd(0xc5))/0x8+-parseInt(_0x2620cd(0xca))/0x9+-parseInt(_0x2620cd(0xc8))/0xa;if(_0xfc515===_0x3e9e69)break;else _0x4669c5['push'](_0x4669c5['shift']());}catch(_0x1f74bc){_0x4669c5['push'](_0x4669c5['shift']());}}}(a40_0x5ed1,0x5b111));import a40_0x29ad20 from'ol/source/ImageArcGISRest';import{Image as a40_0x2ef872}from'ol/layer';function a40_0x1c4d(_0x3070fd,_0x42914e){const _0x5ed126=a40_0x5ed1();return a40_0x1c4d=function(_0x1c4dd6,_0x34b15d){_0x1c4dd6=_0x1c4dd6-0xc2;let _0x1c2750=_0x5ed126[_0x1c4dd6];return _0x1c2750;},a40_0x1c4d(_0x3070fd,_0x42914e);}import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisDynamicLayer extends a40_0x2ef872{constructor(_0x43326f,_0xd81b65){const _0xdc7398=a40_0x1c4d;var _0x43ca20;let _0x443e4e={'LAYERS':'show:'+((_0x43ca20=_0x43326f[_0xdc7398(0xc6)])===null||_0x43ca20===void 0x0?void 0x0:_0x43ca20[_0xdc7398(0xcc)](','))};if(_0x43326f[_0xdc7398(0xc4)]&&_0x43326f['selectIndex']){const _0x174121={};_0x174121[_0x43326f[_0xdc7398(0xdd)]]=_0x43326f['loadFilter'],_0x443e4e[_0xdc7398(0xe0)]=JSON[_0xdc7398(0xd1)](_0x174121);}const _0x8b2cf4=[_0xd81b65['initialExtent'][_0xdc7398(0xd9)],_0xd81b65[_0xdc7398(0xdb)][_0xdc7398(0xd2)],_0xd81b65[_0xdc7398(0xdb)][_0xdc7398(0xd5)],_0xd81b65['initialExtent']['ymax']],_0x272ee1=[_0xd81b65[_0xdc7398(0xde)][_0xdc7398(0xd9)],_0xd81b65['fullExtent']['ymin'],_0xd81b65[_0xdc7398(0xde)][_0xdc7398(0xd5)],_0xd81b65[_0xdc7398(0xde)][_0xdc7398(0xc7)]];let _0x30017e;_0xd81b65[_0xdc7398(0xcb)][_0xdc7398(0xd6)]?_0x30017e=registerProj(_0xdc7398(0xe1)+_0xd81b65['spatialReference']['wkid'],_0x272ee1):_0x30017e=registerProj(_0xd81b65[_0xdc7398(0xcb)][_0xdc7398(0xcd)],_0x272ee1),super({'opacity':_0x43326f[_0xdc7398(0xd8)],'zIndex':_0x43326f[_0xdc7398(0xc9)],'source':new a40_0x29ad20({'crossOrigin':'anonymous','projection':_0x30017e,'ratio':0x1,'url':_0x43326f[_0xdc7398(0xd4)],'params':_0x443e4e})}),this['id']=_0x43326f['id'],this[_0xdc7398(0xdb)]=_0x8b2cf4,this[_0xdc7398(0xd7)]=_0x30017e,this[_0xdc7398(0xc2)]=_0x43326f;}[a40_0x36e425(0xc3)](_0x423dba){const _0x49c2d1=a40_0x36e425;var _0x3c01c7;const _0x2f0cf0={};this[_0x49c2d1(0xc2)]['selectIndex']&&(_0x2f0cf0[this[_0x49c2d1(0xc2)]['selectIndex']]=_0x423dba),(_0x3c01c7=this[_0x49c2d1(0xda)]())===null||_0x3c01c7===void 0x0?void 0x0:_0x3c01c7[_0x49c2d1(0xd0)]({'layerDefs':JSON[_0x49c2d1(0xd1)](_0x423dba)});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41_0x192a14=a41_0x1c4f;(function(_0x25bf92,_0x4624e6){const _0x498131=a41_0x1c4f,_0x3b25ff=_0x25bf92();while(!![]){try{const _0x1bbf6d=-parseInt(_0x498131(0xaa))/0x1+-parseInt(_0x498131(0x93))/0x2+-parseInt(_0x498131(0x98))/0x3+parseInt(_0x498131(0x92))/0x4*(parseInt(_0x498131(0xb0))/0x5)+parseInt(_0x498131(0x8c))/0x6*(parseInt(_0x498131(0x8a))/0x7)+parseInt(_0x498131(0x84))/0x8+parseInt(_0x498131(0x7f))/0x9*(parseInt(_0x498131(0x81))/0xa);if(_0x1bbf6d===_0x4624e6)break;else _0x3b25ff['push'](_0x3b25ff['shift']());}catch(_0x50b0ba){_0x3b25ff['push'](_0x3b25ff['shift']());}}}(a41_0x42b5,0x4931f));import a41_0x1466f7 from'ol/format/EsriJSON';import a41_0x29afb5 from'ol/source/Vector';import{Vector as a41_0x16197c}from'ol/layer';import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';import{tile as a41_0x2c1c5b}from'ol/loadingstrategy';import a41_0x5cab68 from'ol/layer/Group';import{registerProj}from'../utils/RegisterProjUtil';function a41_0x42b5(){const _0x292d32=['36Mdsbpc','projection','573510eDEMCV','setFilter','find','4648680zXBrxA','fullExtent','/query','ymin','&geometryType=esriGeometryEnvelope&inSR=','ymax','875VGmuYa','drawingInfo','12450VDZrAa','uniqueValueInfos','split','createArcGISFeatureLayer','push','defaultSymbol','1489604BPjIbX','449448ZMFTld','initialExtent','showIndex','error','wkt','1323342sibXdy','f\x20=\x20json\x20&\x20','&outSR=','xmin','field1',',\x22ymin\x22:',',\x22xmax\x22:','spatialReference','wkid','simple','{\x22xmin\x22:','xmax','setStyle','symbol','&outFields=*','1=1','uniqueValue','renderer','476620jmVjGi','layerInfo','log','readFeatures','loadFilter','value','5oitUIG','string','EPSG:','url',',\x22ymax\x22:'];a41_0x42b5=function(){return _0x292d32;};return a41_0x42b5();}function a41_0x1c4f(_0x2775ce,_0x23861d){const _0x42b5f6=a41_0x42b5();return a41_0x1c4f=function(_0x1c4fe1,_0x13c923){_0x1c4fe1=_0x1c4fe1-0x7f;let _0x1d812a=_0x42b5f6[_0x1c4fe1];return _0x1d812a;},a41_0x1c4f(_0x2775ce,_0x23861d);}import{transformedEsriStyle}from'../utils/StyleUtil';import a41_0x4fe052 from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';export default class ArcgisFeatureLayer extends a41_0x5cab68{constructor(_0x2d05c8,_0x3e8fdf,_0x1581d){const _0x37437b=a41_0x1c4f,_0x2c25ac=[_0x3e8fdf[_0x37437b(0x94)][_0x37437b(0x9b)],_0x3e8fdf[_0x37437b(0x94)][_0x37437b(0x87)],_0x3e8fdf[_0x37437b(0x94)]['xmax'],_0x3e8fdf[_0x37437b(0x94)][_0x37437b(0x89)]],_0xeed507=[_0x3e8fdf[_0x37437b(0x85)][_0x37437b(0x9b)],_0x3e8fdf['fullExtent'][_0x37437b(0x87)],_0x3e8fdf['fullExtent'][_0x37437b(0xa3)],_0x3e8fdf[_0x37437b(0x85)][_0x37437b(0x89)]];let _0x4a24b2;_0x3e8fdf[_0x37437b(0x9f)][_0x37437b(0xa0)]?_0x4a24b2=registerProj(_0x37437b(0xb2)+_0x3e8fdf['spatialReference'][_0x37437b(0xa0)],_0xeed507):_0x4a24b2=registerProj(_0x3e8fdf[_0x37437b(0x9f)][_0x37437b(0x97)],_0xeed507);let _0xe9fe58=[];super({'zIndex':_0x2d05c8['mapIndex']});for(let _0x1a16e3 of _0x1581d){let _0x28b98e=this[_0x37437b(0x8f)](_0x2d05c8,_0x1a16e3);_0xe9fe58[_0x37437b(0x90)](_0x28b98e);}this['setLayers'](new a41_0x4fe052(_0xe9fe58)),this['id']=_0x2d05c8['id'],this[_0x37437b(0x94)]=_0x2c25ac,this[_0x37437b(0x80)]=_0x4a24b2,this['layerInfo']=_0x2d05c8;}[a41_0x192a14(0x8f)](_0x3e66ba,_0x5b12ed){const _0x59738e=a41_0x192a14;var _0x26491c=new a41_0x1466f7();let _0x13e1d2=new a41_0x29afb5({'loader':function(_0x542dd9,_0x5f265f,_0x33b820){const _0x1fcc7f=a41_0x1c4f;let _0x1e0750=_0x1fcc7f(0xa7);_0x3e66ba[_0x1fcc7f(0xae)]&&(_0x1e0750=typeof _0x3e66ba[_0x1fcc7f(0xae)]===_0x1fcc7f(0xb1)?_0x3e66ba[_0x1fcc7f(0xae)]:JSON['stringify'](_0x3e66ba[_0x1fcc7f(0xae)]));let _0xe89577=_0x33b820['getCode'](),_0x297474=_0xe89577[_0x1fcc7f(0x8e)](':')[0x1];var _0x325e76=appendPath(_0x5b12ed[_0x1fcc7f(0xb3)],_0x1fcc7f(0x86));_0x325e76=appendParam(_0x325e76,_0x1fcc7f(0x99)+'where='+encodeURIComponent(_0x1e0750)+'returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry='+encodeURIComponent(_0x1fcc7f(0xa2)+_0x542dd9[0x0]+_0x1fcc7f(0x9d)+_0x542dd9[0x1]+_0x1fcc7f(0x9e)+_0x542dd9[0x2]+_0x1fcc7f(0xb4)+_0x542dd9[0x3]+',\x22spatialReference\x22:{\x22wkid\x22:'+_0x297474+'}}')+_0x1fcc7f(0x88)+_0x297474+_0x1fcc7f(0xa6)+_0x1fcc7f(0x9a)+_0x297474),jsonp(_0x325e76)['then'](_0x1836a1=>{const _0x5dc27c=_0x1fcc7f;if(_0x1836a1[_0x5dc27c(0x96)])console[_0x5dc27c(0xac)](_0x1836a1);else{var _0x576354=_0x26491c[_0x5dc27c(0xad)](_0x1836a1,{'featureProjection':_0x33b820});_0x576354['length']>0x0&&(_0x5b12ed[_0x5dc27c(0x8b)][_0x5dc27c(0xa9)]['type']==_0x5dc27c(0xa8)&&_0x576354['forEach'](function(_0x3ae64e){const _0x11bacb=_0x5dc27c;var _0x3966a3=_0x3ae64e['get'](_0x5b12ed[_0x11bacb(0x8b)]['renderer'][_0x11bacb(0x9c)]);const _0x5ca00c=_0x5b12ed['drawingInfo']['renderer'][_0x11bacb(0x8d)][_0x11bacb(0x83)](_0x5cb766=>_0x5cb766[_0x11bacb(0xaf)]==_0x3966a3);let _0x197ec3;_0x5ca00c?_0x197ec3=transformedEsriStyle(_0x5ca00c[_0x11bacb(0xa5)]):_0x197ec3=transformedEsriStyle(_0x5b12ed[_0x11bacb(0x8b)]['renderer'][_0x11bacb(0x91)]),_0x3ae64e[_0x11bacb(0xa4)](_0x197ec3);}),_0x13e1d2['addFeatures'](_0x576354));}});},'strategy':a41_0x2c1c5b(createXYZ({'tileSize':0x200}))}),_0x2a05c2=new a41_0x16197c({'source':_0x13e1d2,'zIndex':_0x3e66ba[_0x59738e(0x95)]});if(_0x5b12ed[_0x59738e(0x8b)][_0x59738e(0xa9)]['type']==_0x59738e(0xa1)&&_0x5b12ed[_0x59738e(0x8b)][_0x59738e(0xa9)][_0x59738e(0xa5)]){let _0x3919e4=transformedEsriStyle(_0x5b12ed[_0x59738e(0x8b)][_0x59738e(0xa9)][_0x59738e(0xa5)]);_0x2a05c2[_0x59738e(0xa4)](_0x3919e4);}return _0x2a05c2;}[a41_0x192a14(0x82)](_0x546c03){const _0x5d6460=a41_0x192a14;this[_0x5d6460(0xab)][_0x5d6460(0xae)]=_0x546c03;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x56792b,_0x4fe88f){const _0x1a7a0c=a42_0x24f5,_0x389baa=_0x56792b();while(!![]){try{const _0x381970=parseInt(_0x1a7a0c(0x18e))/0x1*(parseInt(_0x1a7a0c(0x1a3))/0x2)+parseInt(_0x1a7a0c(0x18a))/0x3*(-parseInt(_0x1a7a0c(0x194))/0x4)+parseInt(_0x1a7a0c(0x193))/0x5+-parseInt(_0x1a7a0c(0x195))/0x6*(-parseInt(_0x1a7a0c(0x1a5))/0x7)+parseInt(_0x1a7a0c(0x19e))/0x8*(parseInt(_0x1a7a0c(0x1a4))/0x9)+-parseInt(_0x1a7a0c(0x199))/0xa*(-parseInt(_0x1a7a0c(0x188))/0xb)+-parseInt(_0x1a7a0c(0x19a))/0xc;if(_0x381970===_0x4fe88f)break;else _0x389baa['push'](_0x389baa['shift']());}catch(_0x16494c){_0x389baa['push'](_0x389baa['shift']());}}}(a42_0x1682,0xce822));import a42_0x5876b9 from'ol/layer/Tile';import a42_0x387bc3 from'ol/source/XYZ';import a42_0x24bf8e from'ol/tilegrid/TileGrid';function a42_0x24f5(_0x357a05,_0x16e015){const _0x16826f=a42_0x1682();return a42_0x24f5=function(_0x24f5a9,_0xb49c62){_0x24f5a9=_0x24f5a9-0x188;let _0x4c7122=_0x16826f[_0x24f5a9];return _0x4c7122;},a42_0x24f5(_0x357a05,_0x16e015);}function a42_0x1682(){const _0x295115=['lods','mapIndex','ymax','10EUbfLi','24926064SIroID','layerInfo','cols','EPSG:','658024mIdLJo','wkid','url','spatialReference','anonymous','296546XfiZeE','9lQzeWu','10690484GJRIbz','wkt','12919489InMaeC','initialExtent','15CUMPCc','tileInfo','xmax','xmin','5rLPGOk','fullExtent','opacity','length','resolution','1738280efynQi','759964oCPCVM','6BEmrwj'];a42_0x1682=function(){return _0x295115;};return a42_0x1682();}import{registerProj}from'../utils/RegisterProjUtil';import{appendPath}from'../utils/UrlUtil';export default class ArcgisTileLayer extends a42_0x5876b9{constructor(_0x1e5683,_0x1e6f9c){const _0x2d4084=a42_0x24f5,_0x8a3bd5=_0x1e5683[_0x2d4084(0x1a0)]?_0x1e5683[_0x2d4084(0x1a0)]:'',_0x13338a=appendPath(_0x8a3bd5,'/tile/{z}/{y}/{x}'),_0x3c9825=[_0x1e6f9c[_0x2d4084(0x189)][_0x2d4084(0x18d)],_0x1e6f9c['initialExtent']['ymin'],_0x1e6f9c[_0x2d4084(0x189)][_0x2d4084(0x18c)],_0x1e6f9c[_0x2d4084(0x189)]['ymax']],_0x1b1575=[_0x1e6f9c[_0x2d4084(0x18f)][_0x2d4084(0x18d)],_0x1e6f9c[_0x2d4084(0x18f)]['ymin'],_0x1e6f9c[_0x2d4084(0x18f)][_0x2d4084(0x18c)],_0x1e6f9c[_0x2d4084(0x18f)][_0x2d4084(0x198)]];let _0x4d6704;_0x1e6f9c[_0x2d4084(0x1a1)][_0x2d4084(0x19f)]?_0x4d6704=registerProj(_0x2d4084(0x19d)+_0x1e6f9c[_0x2d4084(0x1a1)][_0x2d4084(0x19f)],_0x1b1575):_0x4d6704=registerProj(_0x1e6f9c[_0x2d4084(0x1a1)][_0x2d4084(0x1a6)],_0x1b1575);let _0x2b8e1c=[];for(let _0x37be7f=0x0,_0x29bedc=_0x1e6f9c['tileInfo'][_0x2d4084(0x196)][_0x2d4084(0x191)];_0x37be7f<_0x29bedc;_0x37be7f++){_0x2b8e1c['push'](_0x1e6f9c['tileInfo'][_0x2d4084(0x196)][_0x37be7f][_0x2d4084(0x192)]);}super({'opacity':_0x1e5683[_0x2d4084(0x190)],'zIndex':_0x1e5683[_0x2d4084(0x197)],'maxResolution':_0x2b8e1c[0x0]*0x2,'source':new a42_0x387bc3({'url':_0x13338a,'projection':_0x4d6704,'crossOrigin':_0x2d4084(0x1a2),'tileGrid':new a42_0x24bf8e({'extent':_0x1b1575,'origin':[_0x1e6f9c[_0x2d4084(0x18b)]['origin']['x'],_0x1e6f9c['tileInfo']['origin']['y']],'resolutions':_0x2b8e1c,'tileSize':[_0x1e6f9c['tileInfo']['rows'],_0x1e6f9c[_0x2d4084(0x18b)][_0x2d4084(0x19c)]]})})}),this['id']=_0x1e5683['id'],this['initialExtent']=_0x3c9825,this['projection']=_0x4d6704,this[_0x2d4084(0x19b)]=_0x1e5683;}}
|
package/layers/ArcgisWMSLayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a43_0x2d7503=a43_0x32ac;(function(_0x184878,_0x311fe3){const _0xa74773=a43_0x32ac,_0x2ff773=_0x184878();while(!![]){try{const _0x53e0a5=parseInt(_0xa74773(0x12f))/0x1+-parseInt(_0xa74773(0x12e))/0x2*(-parseInt(_0xa74773(0x12a))/0x3)+-parseInt(_0xa74773(0x13b))/0x4+-parseInt(_0xa74773(0x131))/0x5*(-parseInt(_0xa74773(0x13a))/0x6)+parseInt(_0xa74773(0x135))/0x7*(parseInt(_0xa74773(0x137))/0x8)+parseInt(_0xa74773(0x127))/0x9*(parseInt(_0xa74773(0x134))/0xa)+-parseInt(_0xa74773(0x125))/0xb;if(_0x53e0a5===_0x311fe3)break;else _0x2ff773['push'](_0x2ff773['shift']());}catch(_0x49feee){_0x2ff773['push'](_0x2ff773['shift']());}}}(a43_0x11af,0x8749a));function a43_0x32ac(_0x1a18eb,_0x22976f){const _0x11af04=a43_0x11af();return a43_0x32ac=function(_0x32acc4,_0x21102b){_0x32acc4=_0x32acc4-0x125;let _0x17a023=_0x11af04[_0x32acc4];return _0x17a023;},a43_0x32ac(_0x1a18eb,_0x22976f);}import{ImageWMS as a43_0x3a2261}from'ol/source';import{Image as a43_0x581e91}from'ol/layer';function a43_0x11af(){const _0xf79330=['EPSG:','224223OaWBjq','mapIndex','layerInfo','url','6NwKRFC','351277hToDkK','sublayers','25STTUGJ','wkid','CQL_FILTER','160ZBIumv','14BaWQca','getSource','960184KYmJlz','opacity','projection','1007166wSNero','810740npnlYW','11160116AyCXsj','setFilter','65547OROFUo','refresh'];a43_0x11af=function(){return _0xf79330;};return a43_0x11af();}import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisWMSLayer extends a43_0x581e91{constructor(_0x244be0,_0x506ae4){const _0x3c568f=a43_0x32ac;var _0x1f8ef4;let _0x369dae=registerProj(_0x3c568f(0x129)+_0x506ae4[_0x3c568f(0x132)],undefined),_0xee644c={'LAYERS':(_0x1f8ef4=_0x244be0[_0x3c568f(0x130)])===null||_0x1f8ef4===void 0x0?void 0x0:_0x1f8ef4['join'](','),'VERSION':'1.1.0'};_0x244be0['loadFilter']&&(_0xee644c[_0x3c568f(0x133)]=_0x244be0['loadFilter']),super({'opacity':_0x244be0[_0x3c568f(0x138)],'zIndex':_0x244be0[_0x3c568f(0x12b)],'source':new a43_0x3a2261({'crossOrigin':'anonymous','url':_0x244be0[_0x3c568f(0x12d)],'params':_0xee644c})}),this['id']=_0x244be0['id'],this['initialExtent']=_0x506ae4['initExtent'],this[_0x3c568f(0x139)]=_0x369dae,this[_0x3c568f(0x12c)]=_0x244be0;}[a43_0x2d7503(0x128)](){}[a43_0x2d7503(0x126)](_0x3dedeb){const _0x441df8=a43_0x2d7503;var _0x43a9d5;(_0x43a9d5=this[_0x441df8(0x136)]())===null||_0x43a9d5===void 0x0?void 0x0:_0x43a9d5['updateParams']({'CQL_FILTER':_0x3dedeb});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a44_0x23c2(){const _0x5371f6=['replace','sourceXml','301nIHjrI','1049964JbKlqP','4637585nhIKrz','12xzZWkp','layerInfo','getMatrixIds','image/png','token','initialExtent','matrixSet','tileGrid','projection','requestEncoding','join','EPSG:','indexOf','getResolutions','tileMatrixSet','wkid','length','urls','2182248vFZIUf','getImage','name','7637139NXuIfk','115592BcAxeM','549296lSZNfg','url','format','7221048qWossH','src','sublayers'];a44_0x23c2=function(){return _0x5371f6;};return a44_0x23c2();}(function(_0x2417e3,_0x1d08ef){const _0x2fea19=a44_0x5156,_0x555893=_0x2417e3();while(!![]){try{const _0x4931b8=-parseInt(_0x2fea19(0x1ba))/0x1+-parseInt(_0x2fea19(0x1b5))/0x2+-parseInt(_0x2fea19(0x1a1))/0x3*(-parseInt(_0x2fea19(0x1a3))/0x4)+parseInt(_0x2fea19(0x1a2))/0x5+-parseInt(_0x2fea19(0x1bd))/0x6+-parseInt(_0x2fea19(0x1a0))/0x7*(-parseInt(_0x2fea19(0x1b9))/0x8)+parseInt(_0x2fea19(0x1b8))/0x9;if(_0x4931b8===_0x1d08ef)break;else _0x555893['push'](_0x555893['shift']());}catch(_0x1e2cd9){_0x555893['push'](_0x555893['shift']());}}}(a44_0x23c2,0x93527));import a44_0x485092 from'ol/layer/Tile';import a44_0x394533,{optionsFromCapabilities}from'ol/source/WMTS.js';import a44_0x3b5581 from'ol/tilegrid/WMTS';import{registerProj}from'../utils/RegisterProjUtil';import{addArgument,getUrlParams}from'../utils/UrlUtil';function a44_0x5156(_0xe763e3,_0x240649){const _0x23c27f=a44_0x23c2();return a44_0x5156=function(_0x515614,_0x39a831){_0x515614=_0x515614-0x19d;let _0x32eebe=_0x23c27f[_0x515614];return _0x32eebe;},a44_0x5156(_0xe763e3,_0x240649);}export default class ArcgisWMTSLayer extends a44_0x485092{constructor(_0x992e6a,_0x18e586){const _0x2bf3b7=a44_0x5156;var _0x469e9f;let _0x527aa5='';_0x992e6a['sublayers']&&_0x992e6a['sublayers'][_0x2bf3b7(0x1b3)]>0x0&&(_0x527aa5=_0x992e6a[_0x2bf3b7(0x19d)][_0x2bf3b7(0x1ad)](','));const _0xbea389=_0x2bf3b7(0x1ae)+_0x18e586[_0x2bf3b7(0x1b2)];let _0x2142d6=registerProj(_0xbea389);const _0x49a8a5=optionsFromCapabilities(_0x18e586[_0x2bf3b7(0x19f)],{'layer':(_0x469e9f=_0x992e6a[_0x2bf3b7(0x19d)])===null||_0x469e9f===void 0x0?void 0x0:_0x469e9f[0x0],'matrixSet':_0x18e586[_0x2bf3b7(0x1b1)],'format':_0x2bf3b7(0x1a6)});let _0x41c490=_0x49a8a5['tileGrid']['origins_'][0x0];_0x41c490[0x0]===0x5a&&_0x41c490[0x1]===-0xb4&&(_0x41c490=[_0x41c490[0x1],_0x41c490[0x0]]),super({'opacity':_0x992e6a['opacity'],'zIndex':_0x992e6a['mapIndex'],'source':new a44_0x394533({'urls':_0x49a8a5[_0x2bf3b7(0x1b4)],'requestEncoding':_0x49a8a5[_0x2bf3b7(0x1ac)],'layer':_0x49a8a5['layer'],'tileLoadFunction':function(_0x2a4a25,_0x143c7a){const _0x48bf78=_0x2bf3b7,_0x3ff74f=_0x992e6a[_0x48bf78(0x1bb)]?_0x992e6a[_0x48bf78(0x1bb)]:'';let _0x2a04f0=getUrlParams(_0x3ff74f);if((_0x2a04f0===null||_0x2a04f0===void 0x0?void 0x0:_0x2a04f0[_0x48bf78(0x1b3)])>0x0)for(let _0x3d49de of _0x2a04f0){_0x143c7a=addArgument(_0x143c7a,_0x3d49de[_0x48bf78(0x1b7)],_0x3d49de['value']);}let _0x1fc842=_0x143c7a[_0x48bf78(0x1af)]('?http');_0x1fc842!==-0x1?_0x143c7a[_0x48bf78(0x1af)](_0x48bf78(0x1a7))===-0x1&&_0x143c7a['indexOf']('tk')===-0x1?_0x2a4a25[_0x48bf78(0x1b6)]()[_0x48bf78(0x1be)]=_0x143c7a[_0x48bf78(0x19e)]('&','?'):_0x2a4a25[_0x48bf78(0x1b6)]()[_0x48bf78(0x1be)]=_0x143c7a:_0x2a4a25['getImage']()[_0x48bf78(0x1be)]=_0x143c7a;},'matrixSet':_0x49a8a5[_0x2bf3b7(0x1a9)],'format':_0x49a8a5[_0x2bf3b7(0x1bc)],'projection':_0x49a8a5[_0x2bf3b7(0x1ab)],'tileGrid':new a44_0x3b5581({'origin':_0x41c490,'resolutions':_0x49a8a5[_0x2bf3b7(0x1aa)][_0x2bf3b7(0x1b0)](),'matrixIds':_0x49a8a5[_0x2bf3b7(0x1aa)][_0x2bf3b7(0x1a5)](),'extent':_0x18e586['boundingBoxExtent']}),'style':_0x18e586['style'],'wrapX':!![]})}),this['id']=_0x992e6a['id'],this[_0x2bf3b7(0x1a8)]=_0x18e586['boundingBoxExtent'],this[_0x2bf3b7(0x1ab)]=_0x2142d6,this[_0x2bf3b7(0x1a4)]=_0x992e6a;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x343048,_0x596bd5){const _0x1aec9c=a45_0x37fe,_0x129782=_0x343048();while(!![]){try{const _0x48c2bb=parseInt(_0x1aec9c(0x1fc))/0x1+-parseInt(_0x1aec9c(0x1fa))/0x2+-parseInt(_0x1aec9c(0x207))/0x3+-parseInt(_0x1aec9c(0x205))/0x4+-parseInt(_0x1aec9c(0x202))/0x5+-parseInt(_0x1aec9c(0x1f4))/0x6+parseInt(_0x1aec9c(0x1f0))/0x7;if(_0x48c2bb===_0x596bd5)break;else _0x129782['push'](_0x129782['shift']());}catch(_0x43a774){_0x129782['push'](_0x129782['shift']());}}}(a45_0x2bfb,0x4ea04));function a45_0x37fe(_0x6ad875,_0x5aa7d3){const _0x2bfbe6=a45_0x2bfb();return a45_0x37fe=function(_0x37fe49,_0x3078fe){_0x37fe49=_0x37fe49-0x1ef;let _0x31175c=_0x2bfbe6[_0x37fe49];return _0x31175c;},a45_0x37fe(_0x6ad875,_0x5aa7d3);}import a45_0x2bad98 from'ol/layer/VectorTile';import a45_0x1a7f68 from'ol/source/VectorTile';function a45_0x2bfb(){const _0x3bc3be=['3040512EWiruG','style','sourceXml','opacity','getResolutions','layerInfo','208202CpiCid','tileGrid','49475sneHVp','EPSG:','length','WMTS','url','image/png','2412985uwEhBQ','GetTile','sublayers','131832CihLBO','tileMatrixSet','957552XJYwbr','{x}','toString','wkid','12027183ftVtHC','{y}','boundingBoxExtent','1.0.0'];a45_0x2bfb=function(){return _0x3bc3be;};return a45_0x2bfb();}import a45_0x38f296 from'ol/format/MVT';import{registerProj}from'../utils/RegisterProjUtil';import a45_0x511150 from'ol/tilegrid/WMTS';import{optionsFromCapabilities}from'ol/source/WMTS';import{addArgument}from'../utils/UrlUtil';export default class GeoserverVectorTileLayer extends a45_0x2bad98{constructor(_0x18b735,_0x410512){const _0x4d099d=a45_0x37fe;var _0x3c8076;let _0x5daed5=registerProj(_0x4d099d(0x1fd)+_0x410512[_0x4d099d(0x1ef)]);const _0x284585=optionsFromCapabilities(_0x410512[_0x4d099d(0x1f6)],{'layer':(_0x3c8076=_0x18b735['sublayers'])===null||_0x3c8076===void 0x0?void 0x0:_0x3c8076[0x0],'matrixSet':_0x410512['tileMatrixSet'],'format':_0x4d099d(0x201)});let _0x2460cf=_0x18b735[_0x4d099d(0x204)]&&_0x18b735['sublayers'][_0x4d099d(0x1fe)]>0x0?_0x18b735[_0x4d099d(0x204)][0x0]:'';const _0x12e4f2={'REQUEST':_0x4d099d(0x203),'SERVICE':_0x4d099d(0x1ff),'VERSION':_0x4d099d(0x1f3),'LAYER':_0x2460cf,'STYLE':_0x410512[_0x4d099d(0x1f5)][_0x4d099d(0x209)](),'TILEMATRIX':_0x410512[_0x4d099d(0x206)]+':{z}','TILEMATRIXSET':_0x410512[_0x4d099d(0x206)][_0x4d099d(0x209)](),'FORMAT':'application/vnd.mapbox-vector-tile','TILECOL':_0x4d099d(0x208),'TILEROW':_0x4d099d(0x1f1)};let _0x243f93=_0x18b735[_0x4d099d(0x200)]?_0x18b735[_0x4d099d(0x200)]:'';for(const _0x2f18c5 in _0x12e4f2){_0x243f93=addArgument(_0x243f93,_0x2f18c5,_0x12e4f2[_0x2f18c5]);}super({'opacity':_0x18b735[_0x4d099d(0x1f7)],'zIndex':_0x18b735['mapIndex'],'declutter':!![],'source':new a45_0x1a7f68({'projection':_0x4d099d(0x1fd)+_0x410512[_0x4d099d(0x1ef)],'format':new a45_0x38f296(),'wrapX':!![],'extent':_0x410512[_0x4d099d(0x1f2)],'tileGrid':new a45_0x511150({'tileSize':_0x284585[_0x4d099d(0x1fb)]['tileSizes_'][0x0],'origin':_0x284585[_0x4d099d(0x1fb)]['origins_'][0x0],'resolutions':_0x284585['tileGrid'][_0x4d099d(0x1f8)](),'matrixIds':_0x284585[_0x4d099d(0x1fb)]['getMatrixIds']()}),'url':_0x243f93})}),this['id']=_0x18b735['id'],this['initialExtent']=_0x410512[_0x4d099d(0x1f2)],this['projection']=_0x5daed5,this[_0x4d099d(0x1f9)]=_0x18b735;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a46_0x7c8fa9=a46_0x387c;(function(_0x49b857,_0x36edb5){const _0x45747c=a46_0x387c,_0x5479cf=_0x49b857();while(!![]){try{const _0x2caff9=-parseInt(_0x45747c(0x1b6))/0x1*(-parseInt(_0x45747c(0x1a4))/0x2)+-parseInt(_0x45747c(0x1c9))/0x3*(parseInt(_0x45747c(0x1c3))/0x4)+-parseInt(_0x45747c(0x1c6))/0x5*(parseInt(_0x45747c(0x1af))/0x6)+-parseInt(_0x45747c(0x1c0))/0x7+-parseInt(_0x45747c(0x1cb))/0x8*(-parseInt(_0x45747c(0x1ac))/0x9)+parseInt(_0x45747c(0x1ad))/0xa*(parseInt(_0x45747c(0x1a2))/0xb)+parseInt(_0x45747c(0x1a5))/0xc*(parseInt(_0x45747c(0x1ae))/0xd);if(_0x2caff9===_0x36edb5)break;else _0x5479cf['push'](_0x5479cf['shift']());}catch(_0x2cd102){_0x5479cf['push'](_0x5479cf['shift']());}}}(a46_0x403d,0xa3438));import a46_0x3af0bb from'ol/source/Vector';import a46_0x2629a3 from'ol/format/GeoJSON';import{Vector as a46_0x50edae}from'ol/layer';import a46_0x45c38b from'ol/format/WFS';function a46_0x387c(_0x3b90b0,_0x55a6e1){const _0x403d7b=a46_0x403d();return a46_0x387c=function(_0x387c71,_0x2790c0){_0x387c71=_0x387c71-0x19f;let _0x1c1b0b=_0x403d7b[_0x387c71];return _0x1c1b0b;},a46_0x387c(_0x3b90b0,_0x55a6e1);}function a46_0x403d(){const _0x59b090=['then','988374mamMjg','apply','15448UyXUuL','sublayers','layerFields','warn','equalTo','1606nweTWs','param','50ICHUlh','14613324pVVlbF','not','and','type字段不存在','name','fieldType','url','4869yhEVfa','58270vcwSFM','13XTNAWs','6hbOnVN','removeLoadedExtent','lessThan','filter','greaterThanOrEqualTo','writeGetFeature','length','25171ILyoyl','parseFilter','find','!==','mapIndex','lessThanOrEqualTo','push','projection','readFeatures','initialExtent','8101933eHKisI','POST','greaterThan','16hLuazu','param字段不存在','between','2992430OLNwNC','type'];a46_0x403d=function(){return _0x59b090;};return a46_0x403d();}import{registerProj}from'../utils/RegisterProjUtil';import{bbox}from'ol/loadingstrategy';import a46_0x56ff97 from'../utils/format/CQL';import*as a46_0x3d8c4e from'ol/format/filter';export default class GeoserverWFSLayer extends a46_0x50edae{constructor(_0x4ef14b,_0x53f9b9){const _0x5c6c52=a46_0x387c;let _0x7bd600=registerProj('EPSG:'+_0x53f9b9['wkid']);const _0x101b24=_0x53f9b9[_0x5c6c52(0x19f)][_0x5c6c52(0x1b8)](_0x56cba7=>_0x56cba7[_0x5c6c52(0x1aa)]==0x6);super({'zIndex':_0x4ef14b[_0x5c6c52(0x1ba)],'source':new a46_0x3af0bb({'format':new a46_0x2629a3(),'loader':(_0x565235,_0x5675b1,_0x1e643f,_0xa9ddb7,_0x5d1921)=>{const _0x25923d=_0x5c6c52;let _0x1dffd3=_0x4ef14b['loadFilter'],_0x439085={'srsName':_0x1e643f['getCode'](),'featureTypes':_0x4ef14b[_0x25923d(0x1cc)],'bbox':_0x565235,'geometryName':_0x101b24?_0x101b24[_0x25923d(0x1a9)]:'','outputFormat':'application/json'};_0x1dffd3&&(typeof _0x1dffd3==='string'?_0x439085[_0x25923d(0x1b2)]=new a46_0x56ff97()['read'](_0x1dffd3):_0x439085[_0x25923d(0x1b2)]=this[_0x25923d(0x1b7)](_0x1dffd3));var _0x214158=new a46_0x45c38b()[_0x25923d(0x1b4)](_0x439085);let _0x3db11a=_0x4ef14b['url']?_0x4ef14b[_0x25923d(0x1ab)]:'';fetch(_0x3db11a,{'method':_0x25923d(0x1c1),'body':new XMLSerializer()['serializeToString'](_0x214158)})[_0x25923d(0x1c8)](_0x47cac4=>{return _0x47cac4['json']();})['then'](_0x6a4cac=>{const _0x53c488=_0x25923d,_0x47992a=new a46_0x2629a3()[_0x53c488(0x1be)](_0x6a4cac);let _0x23983b=this['getSource']();_0x23983b&&_0x23983b['addFeatures'](_0x47992a);if(_0xa9ddb7)_0xa9ddb7(_0x47992a);})['catch'](()=>{const _0x24b707=_0x25923d;let _0x5ebbc2=this['getSource']();_0x5ebbc2&&_0x5ebbc2[_0x24b707(0x1b0)](_0x565235);if(_0x5d1921)_0x5d1921();});},'strategy':bbox})}),this['id']=_0x4ef14b['id'],this[_0x5c6c52(0x1bf)]=_0x53f9b9['initExtent'],this[_0x5c6c52(0x1bd)]=_0x7bd600,this['layerInfo']=_0x4ef14b;}[a46_0x7c8fa9(0x1b7)](_0x177bf5){const _0x24de72=a46_0x7c8fa9;if(!_0x177bf5['type']){console['warn'](_0x24de72(0x1a8));return;}if(!_0x177bf5['param']){console[_0x24de72(0x1a0)](_0x24de72(0x1c4));return;}let _0x50236e=[];switch(_0x177bf5[_0x24de72(0x1c7)]['toLowerCase']()){case _0x24de72(0x1a7):for(let _0x81b197=0x0;_0x81b197<_0x177bf5['param'][_0x24de72(0x1b5)];_0x81b197++){let _0x8a8951=this[_0x24de72(0x1b7)](_0x177bf5[_0x24de72(0x1a3)][_0x81b197]);_0x50236e[_0x24de72(0x1bc)](_0x8a8951);}return a46_0x3d8c4e[_0x24de72(0x1a7)][_0x24de72(0x1ca)](null,_0x50236e);case'or':for(let _0x372093=0x0;_0x372093<_0x177bf5[_0x24de72(0x1a3)][_0x24de72(0x1b5)];_0x372093++){let _0x5b3ee6=this['parseFilter'](_0x177bf5[_0x24de72(0x1a3)][_0x372093]);_0x50236e[_0x24de72(0x1bc)](_0x5b3ee6);}return a46_0x3d8c4e['or'][_0x24de72(0x1ca)](null,_0x50236e);case _0x24de72(0x1a6):for(let _0x243ee4=0x0;_0x243ee4<_0x177bf5['param'][_0x24de72(0x1b5)];_0x243ee4++){let _0x5e345b=this[_0x24de72(0x1b7)](_0x177bf5['param'][_0x243ee4]);_0x50236e['push'](_0x5e345b);}return a46_0x3d8c4e[_0x24de72(0x1a6)]['apply'](null,_0x50236e);case'=':return a46_0x3d8c4e[_0x24de72(0x1a1)](_0x177bf5[_0x24de72(0x1a3)][0x0],_0x177bf5[_0x24de72(0x1a3)][0x1]);case _0x24de72(0x1b9):return a46_0x3d8c4e['notEqualTo'](_0x177bf5['param'][0x0],_0x177bf5[_0x24de72(0x1a3)][0x1]);case'>':return a46_0x3d8c4e[_0x24de72(0x1c2)](_0x177bf5['param'][0x0],_0x177bf5[_0x24de72(0x1a3)][0x1]);case'<':return a46_0x3d8c4e[_0x24de72(0x1b1)](_0x177bf5[_0x24de72(0x1a3)][0x0],_0x177bf5[_0x24de72(0x1a3)][0x1]);case'>=':return a46_0x3d8c4e[_0x24de72(0x1b3)](_0x177bf5['param'][0x0],_0x177bf5['param'][0x1]);case'<=':return a46_0x3d8c4e[_0x24de72(0x1bb)](_0x177bf5[_0x24de72(0x1a3)][0x0],_0x177bf5[_0x24de72(0x1a3)][0x1]);case'between':return a46_0x3d8c4e[_0x24de72(0x1c5)](_0x177bf5[_0x24de72(0x1a3)][0x0],_0x177bf5[_0x24de72(0x1a3)][0x1],_0x177bf5[_0x24de72(0x1a3)][0x2]);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a47_0x478d(){const _0x560f87=['updateParams','EPSG:','initialExtent','sublayers','layerInfo','609890EeSwci','1.1.0','180755ckfncf','url','12309HpKsbd','refresh','CQL_FILTER','89230aSXBUI','anonymous','mapIndex','6AYDUdX','getSource','8NbPpzb','setFilter','1711843TWZhHk','initExtent','148JREOUs','2377035pqBqIC','243381YjMlyO','loadFilter','projection'];a47_0x478d=function(){return _0x560f87;};return a47_0x478d();}const a47_0x1fb483=a47_0x1d88;(function(_0x228941,_0xbca7e9){const _0x9a7854=a47_0x1d88,_0x3f959d=_0x228941();while(!![]){try{const _0x26accf=-parseInt(_0x9a7854(0x153))/0x1+parseInt(_0x9a7854(0x148))/0x2+-parseInt(_0x9a7854(0x145))/0x3*(parseInt(_0x9a7854(0x151))/0x4)+-parseInt(_0x9a7854(0x143))/0x5*(parseInt(_0x9a7854(0x14b))/0x6)+parseInt(_0x9a7854(0x14f))/0x7+parseInt(_0x9a7854(0x14d))/0x8*(parseInt(_0x9a7854(0x152))/0x9)+parseInt(_0x9a7854(0x141))/0xa;if(_0x26accf===_0xbca7e9)break;else _0x3f959d['push'](_0x3f959d['shift']());}catch(_0x1c1c28){_0x3f959d['push'](_0x3f959d['shift']());}}}(a47_0x478d,0x2ca8d));import{ImageWMS as a47_0x5e9dda}from'ol/source';import{Image as a47_0x50493d}from'ol/layer';function a47_0x1d88(_0x1b1396,_0x4d8942){const _0x478dc0=a47_0x478d();return a47_0x1d88=function(_0x1d88ec,_0x56e15a){_0x1d88ec=_0x1d88ec-0x13c;let _0x31316f=_0x478dc0[_0x1d88ec];return _0x31316f;},a47_0x1d88(_0x1b1396,_0x4d8942);}import{registerProj}from'../utils/RegisterProjUtil';export default class GeoserverWMSLayer extends a47_0x50493d{constructor(_0x36783d,_0x4924c5){const _0x477899=a47_0x1d88;var _0x4a6bb8;let _0x50a667=registerProj(_0x477899(0x13d)+_0x4924c5['wkid']),_0x430eb6={'LAYERS':(_0x4a6bb8=_0x36783d[_0x477899(0x13f)])===null||_0x4a6bb8===void 0x0?void 0x0:_0x4a6bb8['join'](','),'VERSION':_0x477899(0x142)};_0x36783d[_0x477899(0x154)]&&(_0x430eb6[_0x477899(0x147)]=_0x36783d['loadFilter']),super({'opacity':_0x36783d['opacity'],'zIndex':_0x36783d[_0x477899(0x14a)],'source':new a47_0x5e9dda({'crossOrigin':_0x477899(0x149),'url':_0x36783d[_0x477899(0x144)],'params':_0x430eb6})}),this['id']=_0x36783d['id'],this[_0x477899(0x13e)]=_0x4924c5[_0x477899(0x150)],this[_0x477899(0x155)]=_0x50a667,this[_0x477899(0x140)]=_0x36783d;}[a47_0x1fb483(0x146)](){}[a47_0x1fb483(0x14e)](_0x26874a){const _0x588533=a47_0x1fb483;var _0x3abdb0;(_0x3abdb0=this[_0x588533(0x14c)]())===null||_0x3abdb0===void 0x0?void 0x0:_0x3abdb0[_0x588533(0x13c)]({'CQL_FILTER':_0x26874a});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5a67d1,_0x1e0242){const _0x9d75af=a48_0x3511,_0x5cfda7=_0x5a67d1();while(!![]){try{const _0xbb07e1=parseInt(_0x9d75af(0x13f))/0x1*(parseInt(_0x9d75af(0x135))/0x2)+parseInt(_0x9d75af(0x144))/0x3+-parseInt(_0x9d75af(0x13c))/0x4*(-parseInt(_0x9d75af(0x137))/0x5)+-parseInt(_0x9d75af(0x136))/0x6*(parseInt(_0x9d75af(0x13a))/0x7)+-parseInt(_0x9d75af(0x143))/0x8*(parseInt(_0x9d75af(0x131))/0x9)+parseInt(_0x9d75af(0x138))/0xa*(-parseInt(_0x9d75af(0x13e))/0xb)+parseInt(_0x9d75af(0x133))/0xc*(parseInt(_0x9d75af(0x140))/0xd);if(_0xbb07e1===_0x1e0242)break;else _0x5cfda7['push'](_0x5cfda7['shift']());}catch(_0x220593){_0x5cfda7['push'](_0x5cfda7['shift']());}}}(a48_0x4307,0xce7d4));import a48_0x216cc2 from'ol/layer/Tile';import a48_0x3016ae,{optionsFromCapabilities}from'ol/source/WMTS.js';import{registerProj}from'../utils/RegisterProjUtil';function a48_0x4307(){const _0xc32544=['16172foUZlN','initialExtent','55OoFifq','7817MUSwgw','52trhBXg','EPSG:','tileMatrixSet','8zmddQs','1166076ORDKLJ','12362877niMKax','layerInfo','9095208gMJCai','sourceXml','34tJjCwA','78RPTVxq','370gLDVxy','2539510EukVJj','image/png','195629MbTdLu','解析元数据失败'];a48_0x4307=function(){return _0xc32544;};return a48_0x4307();}function a48_0x3511(_0x4c7772,_0x31934d){const _0x430794=a48_0x4307();return a48_0x3511=function(_0x351172,_0x4db9e6){_0x351172=_0x351172-0x131;let _0x24a08a=_0x430794[_0x351172];return _0x24a08a;},a48_0x3511(_0x4c7772,_0x31934d);}export default class GeoserverWMTSLayer extends a48_0x216cc2{constructor(_0x3e9cb9,_0x4fb6a5){const _0x4df702=a48_0x3511;var _0x23e0a1;const _0x1b43ee=_0x4df702(0x141)+_0x4fb6a5['wkid'];let _0xb2b12a=registerProj(_0x1b43ee);if(!_0xb2b12a)throw new Error('未找到投影信息');const _0x5b3f12=optionsFromCapabilities(_0x4fb6a5[_0x4df702(0x134)],{'layer':(_0x23e0a1=_0x3e9cb9['sublayers'])===null||_0x23e0a1===void 0x0?void 0x0:_0x23e0a1[0x0],'matrixSet':_0x4fb6a5[_0x4df702(0x142)],'format':_0x4df702(0x139)});if(!_0x5b3f12)throw new Error(_0x4df702(0x13b));super({'opacity':_0x3e9cb9['opacity'],'zIndex':_0x3e9cb9['mapIndex'],'source':new a48_0x3016ae(_0x5b3f12)}),this['id']=_0x3e9cb9['id'],this[_0x4df702(0x13d)]=_0x4fb6a5['boundingBoxExtent'],this['projection']=_0xb2b12a,this[_0x4df702(0x132)]=_0x3e9cb9;}}
|
package/layers/LayerManager.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50_0x59236c=a50_0x3049;(function(_0x2b6095,_0x39f4eb){const _0x12c154=a50_0x3049,_0x3d920b=_0x2b6095();while(!![]){try{const _0x50e8d2=-parseInt(_0x12c154(0x1d5))/0x1*(parseInt(_0x12c154(0x1e3))/0x2)+-parseInt(_0x12c154(0x1d6))/0x3+parseInt(_0x12c154(0x1d0))/0x4+-parseInt(_0x12c154(0x1e2))/0x5*(-parseInt(_0x12c154(0x1e1))/0x6)+-parseInt(_0x12c154(0x1d1))/0x7*(parseInt(_0x12c154(0x1da))/0x8)+-parseInt(_0x12c154(0x1dd))/0x9+-parseInt(_0x12c154(0x1df))/0xa*(-parseInt(_0x12c154(0x1d3))/0xb);if(_0x50e8d2===_0x39f4eb)break;else _0x3d920b['push'](_0x3d920b['shift']());}catch(_0x33d270){_0x3d920b['push'](_0x3d920b['shift']());}}}(a50_0x1d75,0xae5e5));import a50_0x48812f from'./ArcgisDynamicLayer';function a50_0x1d75(){const _0x107683=['getGeoserverWFSLayer','2165884lFREJU','154cCDiQt','getGeoserverWMTSLayer','40987397cmSACw','push','3927IJuHvp','758628hytElG','getDynamicLayer','getGeoserverVectorTileLayer','sublayers','514392ruWVRu','getArcgisWMTSLayer','url','6091191pupkOJ','getArcgisFeatureLayer','10eEPhMW','getArcgisWmsLayer','234JgUCeN','3070yoCMYV','628kBhbrb','getGeoserverWmsLayer'];a50_0x1d75=function(){return _0x107683;};return a50_0x1d75();}import a50_0x5f3c63 from'./ArcgisFeatureLayer';import a50_0x396b02 from'./TDTLayer';import{getDynamicLayerInfo,getWMTSLayerCapabilities,getFeatureLayerInfo,getWMSLayerCapabilities,getWFSLayerCapabilities}from'../capabilities';import a50_0x413041 from'./ArcgisTileLayer';function a50_0x3049(_0x1b4bfc,_0xb9bbe0){const _0x1d75d0=a50_0x1d75();return a50_0x3049=function(_0x304981,_0x14a440){_0x304981=_0x304981-0x1ce;let _0x2527cc=_0x1d75d0[_0x304981];return _0x2527cc;},a50_0x3049(_0x1b4bfc,_0xb9bbe0);}import a50_0x30dc73 from'./GeoserverWMSLayer';import a50_0xa6d65a from'./GeoserverWMTSLayer';import a50_0x46643b from'./ArcgisWMSLayer';import a50_0x470d04 from'./ArcgisWMTSLayer';import a50_0x4b0c7b from'./GeoserverWFSLayer';import a50_0x381e83 from'./GeoserverVectorTile';export default class LayerManagement{static async[a50_0x59236c(0x1d7)](_0x2ff474){const _0x1b33ed=a50_0x59236c,_0x4dc5ca=await getDynamicLayerInfo(_0x2ff474['url']?_0x2ff474[_0x1b33ed(0x1dc)]:'');let _0x42f5b9=new a50_0x48812f(_0x2ff474,_0x4dc5ca);return _0x42f5b9;}static async['getArcgisTileLayer'](_0x58d396){const _0x2e8db7=a50_0x59236c,_0x33f6b1=await getDynamicLayerInfo(_0x58d396[_0x2e8db7(0x1dc)]?_0x58d396['url']:'');let _0x1b591d=new a50_0x413041(_0x58d396,_0x33f6b1);return _0x1b591d;}static async[a50_0x59236c(0x1de)](_0x13b4ea){const _0x223634=a50_0x59236c,_0x54ece0=await getDynamicLayerInfo(_0x13b4ea[_0x223634(0x1dc)]?_0x13b4ea['url']:'');let _0x51fc7d=[];if(_0x13b4ea[_0x223634(0x1d9)])for(let _0x370002=0x0;_0x370002<_0x13b4ea[_0x223634(0x1d9)]['length'];_0x370002++){const _0x2d5920=_0x13b4ea[_0x223634(0x1d9)][_0x370002];_0x51fc7d[_0x223634(0x1d4)](await getFeatureLayerInfo(_0x13b4ea[_0x223634(0x1dc)]?_0x13b4ea[_0x223634(0x1dc)]:'',_0x2d5920));}let _0x2b27ff=new a50_0x5f3c63(_0x13b4ea,_0x54ece0,_0x51fc7d);return _0x2b27ff;}static async[a50_0x59236c(0x1e0)](_0x2ad8c3){const _0x9052fe=a50_0x59236c;var _0x5df5c4;const _0x1c9a95=(_0x5df5c4=_0x2ad8c3['sublayers'])===null||_0x5df5c4===void 0x0?void 0x0:_0x5df5c4[0x0],_0x5c28b7=await getWMSLayerCapabilities(_0x2ad8c3[_0x9052fe(0x1dc)]?_0x2ad8c3['url']:'',_0x1c9a95==null?'':_0x1c9a95);let _0xf460b7=new a50_0x46643b(_0x2ad8c3,_0x5c28b7);return _0xf460b7;}static async[a50_0x59236c(0x1db)](_0x58fb3a){const _0x48f6b9=a50_0x59236c;var _0x3c30d4;const _0x10f7ea=(_0x3c30d4=_0x58fb3a[_0x48f6b9(0x1d9)])===null||_0x3c30d4===void 0x0?void 0x0:_0x3c30d4[0x0],_0x4629a0=await getWMTSLayerCapabilities(_0x58fb3a['url']?_0x58fb3a['url']:'',_0x10f7ea==null?'':_0x10f7ea);let _0x1f8bf3=new a50_0x470d04(_0x58fb3a,_0x4629a0);return _0x1f8bf3;}static async[a50_0x59236c(0x1ce)](_0x501fef){const _0x24ca5c=a50_0x59236c;var _0x29a6b9;const _0x1db060=(_0x29a6b9=_0x501fef[_0x24ca5c(0x1d9)])===null||_0x29a6b9===void 0x0?void 0x0:_0x29a6b9[0x0],_0x202a90=await getWMSLayerCapabilities(_0x501fef[_0x24ca5c(0x1dc)]?_0x501fef[_0x24ca5c(0x1dc)]:'',_0x1db060==null?'':_0x1db060);let _0xd9b575=new a50_0x30dc73(_0x501fef,_0x202a90);return _0xd9b575;}static async[a50_0x59236c(0x1d2)](_0x4aed53){const _0x5cc3cd=a50_0x59236c;var _0x4d1648;const _0x5b23c9=(_0x4d1648=_0x4aed53[_0x5cc3cd(0x1d9)])===null||_0x4d1648===void 0x0?void 0x0:_0x4d1648[0x0],_0x1ba6a6=await getWMTSLayerCapabilities(_0x4aed53[_0x5cc3cd(0x1dc)]?_0x4aed53[_0x5cc3cd(0x1dc)]:'',_0x5b23c9==null?'':_0x5b23c9);let _0x143e06=new a50_0xa6d65a(_0x4aed53,_0x1ba6a6);return _0x143e06;}static async[a50_0x59236c(0x1cf)](_0x2de324){const _0x533684=a50_0x59236c;var _0x1c4df2;const _0x48e5a7=(_0x1c4df2=_0x2de324[_0x533684(0x1d9)])===null||_0x1c4df2===void 0x0?void 0x0:_0x1c4df2[0x0],_0x12d8c5=await getWFSLayerCapabilities(_0x2de324['url']?_0x2de324[_0x533684(0x1dc)]:'',_0x48e5a7==null?'':_0x48e5a7);let _0x306a06=new a50_0x4b0c7b(_0x2de324,_0x12d8c5);return _0x306a06;}static async[a50_0x59236c(0x1d8)](_0x585521){const _0x3958d6=a50_0x59236c;var _0x486947;const _0x16af4b=(_0x486947=_0x585521['sublayers'])===null||_0x486947===void 0x0?void 0x0:_0x486947[0x0],_0x3b8c3a=await getWMTSLayerCapabilities(_0x585521['url']?_0x585521[_0x3958d6(0x1dc)]:'',_0x16af4b==null?'':_0x16af4b);let _0x5b4789=new a50_0x381e83(_0x585521,_0x3b8c3a);return _0x5b4789;}static async['getTDTLayer'](_0x5dc68a){const _0x477f76=a50_0x59236c;var _0x4d5af5;const _0x2b378c=(_0x4d5af5=_0x5dc68a[_0x477f76(0x1d9)])===null||_0x4d5af5===void 0x0?void 0x0:_0x4d5af5[0x0],_0x2d56f1=await getWMTSLayerCapabilities(_0x5dc68a[_0x477f76(0x1dc)]?_0x5dc68a['url']:'',_0x2b378c==null?'':_0x2b378c);let _0x5071e8=new a50_0x396b02(_0x5dc68a,_0x2d56f1);return _0x5071e8;}}
|
package/layers/TDTLayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x53680c,_0x476795){const _0x514a43=a51_0x5ad2,_0x3c516d=_0x53680c();while(!![]){try{const _0x3c42b8=-parseInt(_0x514a43(0x1f9))/0x1+-parseInt(_0x514a43(0x1ee))/0x2*(-parseInt(_0x514a43(0x1f2))/0x3)+parseInt(_0x514a43(0x1ed))/0x4+parseInt(_0x514a43(0x1f8))/0x5+-parseInt(_0x514a43(0x1ea))/0x6+-parseInt(_0x514a43(0x1f1))/0x7*(-parseInt(_0x514a43(0x201))/0x8)+parseInt(_0x514a43(0x1ec))/0x9*(parseInt(_0x514a43(0x1fe))/0xa);if(_0x3c42b8===_0x476795)break;else _0x3c516d['push'](_0x3c516d['shift']());}catch(_0xc5b0f){_0x3c516d['push'](_0x3c516d['shift']());}}}(a51_0x221a,0xf0d1c));import a51_0x372a68 from'ol/layer/Tile';import{WMTS as a51_0x2e2ffc}from'ol/source';import a51_0x4a3ead from'ol/tilegrid/WMTS';import{registerProj}from'../utils/RegisterProjUtil';import{getWidth,getTopLeft}from'ol/extent';export default class TDTLayer extends a51_0x372a68{constructor(_0x22e86a,_0x1469e6){const _0x34d3e2=a51_0x5ad2;let _0x96b103='';_0x22e86a['sublayers']&&_0x22e86a[_0x34d3e2(0x1f4)][_0x34d3e2(0x1ef)]>0x0&&(_0x96b103=_0x22e86a[_0x34d3e2(0x1f4)][_0x34d3e2(0x1fa)](','));const _0x247c24=_0x34d3e2(0x1fb);let _0x3d7fed=registerProj(_0x247c24);const _0x3a8f10=[],_0x28731e=[];for(let _0x12ceca=0x1;_0x12ceca<0x13;_0x12ceca++){_0x3a8f10[_0x12ceca]=getWidth(_0x1469e6['boundingBoxExtent'])/(0x100*Math[_0x34d3e2(0x1fd)](0x2,_0x12ceca)),_0x28731e[_0x12ceca]=_0x12ceca+'';}super({'opacity':_0x22e86a[_0x34d3e2(0x1f7)],'zIndex':_0x22e86a[_0x34d3e2(0x1fc)],'source':new a51_0x2e2ffc({'style':_0x1469e6[_0x34d3e2(0x1f5)],'url':_0x22e86a[_0x34d3e2(0x200)],'tileGrid':new a51_0x4a3ead({'origin':getTopLeft(_0x1469e6['boundingBoxExtent']),'resolutions':_0x3a8f10,'matrixIds':_0x28731e}),'layer':_0x96b103,'matrixSet':_0x1469e6['tileMatrixSet'],'version':_0x34d3e2(0x1e9),'format':_0x1469e6[_0x34d3e2(0x1eb)][0x0],'projection':_0x247c24,'requestEncoding':_0x34d3e2(0x1f3)})}),this['id']=_0x22e86a['id'],this[_0x34d3e2(0x1f0)]=_0x1469e6[_0x34d3e2(0x1e8)],this[_0x34d3e2(0x1ff)]=_0x3d7fed,this[_0x34d3e2(0x1f6)]=_0x22e86a;}}function a51_0x5ad2(_0x70234e,_0x14664e){const _0x221a54=a51_0x221a();return a51_0x5ad2=function(_0x5ad2c6,_0x432cac){_0x5ad2c6=_0x5ad2c6-0x1e8;let _0x42b702=_0x221a54[_0x5ad2c6];return _0x42b702;},a51_0x5ad2(_0x70234e,_0x14664e);}function a51_0x221a(){const _0x1920e2=['join','EPSG:4490','mapIndex','pow','112650NooblJ','projection','url','40EZJCbG','boundingBoxExtent','1.0.0','11347854SvPgBI','format','477XzSxqk','620296SfRNyC','39818SsXpmW','length','initialExtent','2419970wOrlsI','207VcyYcL','KVP','sublayers','style','layerInfo','opacity','4913320omisQa','1959349FOgqZz'];a51_0x221a=function(){return _0x1920e2;};return a51_0x221a();}
|