ym-gis-2d 1.0.9 → 1.0.10
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/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.d.ts +1 -0
- package/mapView/View.d.ts.map +1 -1
- package/mapView/View.js +1 -1
- package/mapView/View.js.map +1 -1
- package/package.json +1 -1
- package/plot/Plot.js +1 -1
- package/plot/geometry/point/Point.js +1 -1
- package/plot/geometry/polygon/BasePolygon.js +1 -1
- package/plot/geometry/polygon/Circle.js +1 -1
- package/plot/geometry/polygon/Polygon.js +1 -1
- package/plot/geometry/polygon/RectAngle.js +1 -1
- package/plot/geometry/polyline/BaseLine.js +1 -1
- package/plot/geometry/polyline/Polyline.js +1 -1
- package/style/PointStyleFormat.js +1 -1
- package/style/PolygonStyleFormat.js +1 -1
- package/style/PolylineStyleFormat.js +1 -1
- package/style/StyleManager.js +1 -1
- package/style/common.js +1 -1
- package/utils/ArrayUtil.js +1 -1
- package/utils/AxiosUtil.js +1 -1
- package/utils/EsriUtil.js +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/LayerUtil.js +1 -1
- package/utils/RegisterProjUtil.js +1 -1
- package/utils/ResolutionUtil.js +1 -1
- package/utils/StringUtil.js +1 -1
- package/utils/StyleUtil.js +1 -1
- package/utils/UrlUtil.js +1 -1
- package/utils/XmlUtil.js +1 -1
- package/utils/format/CQL.js +1 -1
- package/utils/format/IsMatchCql.js +1 -1
- package/utils/plug/canvas/ImageCache.js +1 -1
- package/utils/plug/canvas/PinBuilder.js +1 -1
- package/utils/plug/canvas/PinIcon.js +1 -1
- package/utils/plug/canvas/writeTextToCanvas.js +1 -1
- package/utils/tasks/esri/Identify.js +1 -1
- package/utils/tasks/esri/Query.js +1 -1
- package/utils/tasks/esri/Task.js +1 -1
- package/utils/tasks/geoserver/QueryTask.js +1 -1
- package/utils/tasks/index.js +1 -1
- package/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
package/interaction/Draw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a29_0x18600e=a29_0x5873;function a29_0x5873(_0x5280fe,_0x57da64){const _0x2acde9=a29_0x2acd();return a29_0x5873=function(_0x587356,_0x297425){_0x587356=_0x587356-0x11d;let _0x4feeee=_0x2acde9[_0x587356];return _0x4feeee;},a29_0x5873(_0x5280fe,_0x57da64);}(function(_0x184b26,_0x4fd83d){const _0x3ebf13=a29_0x5873,_0xad05b8=_0x184b26();while(!![]){try{const _0x4df8c3=parseInt(_0x3ebf13(0x155))/0x1*(-parseInt(_0x3ebf13(0x129))/0x2)+-parseInt(_0x3ebf13(0x177))/0x3*(parseInt(_0x3ebf13(0x150))/0x4)+parseInt(_0x3ebf13(0x14f))/0x5*(parseInt(_0x3ebf13(0x14c))/0x6)+parseInt(_0x3ebf13(0x12a))/0x7*(-parseInt(_0x3ebf13(0x152))/0x8)+-parseInt(_0x3ebf13(0x127))/0x9*(parseInt(_0x3ebf13(0x13c))/0xa)+parseInt(_0x3ebf13(0x17b))/0xb*(parseInt(_0x3ebf13(0x136))/0xc)+parseInt(_0x3ebf13(0x182))/0xd*(parseInt(_0x3ebf13(0x132))/0xe);if(_0x4df8c3===_0x4fd83d)break;else _0xad05b8['push'](_0xad05b8['shift']());}catch(_0x13fed8){_0xad05b8['push'](_0xad05b8['shift']());}}}(a29_0x2acd,0x28026));import a29_0xe46ccc from'ol/events/Event';import a29_0x182f72 from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';import a29_0x488d6b from'ol/Feature';import a29_0x20ace2,{createEditingStyle}from'ol/style/Style';import a29_0x2c0abc from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a29_0x1ed062 from'ol/style/Text';import a29_0x269e5d from'ol/style/Fill';import a29_0x46e7d3 from'ol/interaction/Property';import a29_0x6ffa6c from'ol/layer/Vector';function a29_0x2acd(){const _0x258635=['clear','push','_style','features','snapTolerance','DRAWADDPOINT','atFinish_','preventDefault','MAX_VALUE','once','_drawingCoordinates','Circle','_type','rgba(0,\x200,\x200,\x200.4)','12px\x20Calibre,sans-serif','getMap','rgba(255,\x20255,\x20255,\x201)','type','getProjection','getActive','44349MJZXrV','getOverlay','_tipFeature','abortDrawing','1192851KNxupH','pointermove','drawend','updateState_','abortDrawing_','_sketchFeature','addFeature','524459BYlypz','DRAWEND','getSource','pixel','rectangle','startDrawing_','showTip','_tipStyle','addPoint','length','tipText','dispatchEvent','_isStayDraw','addChangeListener','onceInternal','1143iaGUnP','drawstart','4cLuxje','232953UEdFYx','_source','indexOf','_overlay','button','fixPoint','DRAWSTART','_minPoints','70gyANKT','source','Ellipse','getGeometry','24VGLvcC','DRAWABORT','originalEvent','drawaddpoint','updateSketchFeatures_','setStyle','3620lMVuZd','stopDown','Ellipsoid','createMultiPointFeature','_tipOverlay','getPixelFromCoordinate','pop','getCode','slice','getType','单击增加点,右击删除点','wrapX','单击增加点,右击删除点双击完成绘制','coordinate','finishDrawing','sqrt','6yJZgnA','_features','setGeometry','513870pdsfPK','32PKEqeH','point','8UTzDHJ','handleMoveEvent','单击结束绘制,右击删除点','79988FxZPUc','_fixPoint','_snapTolerance','onInternal','单击拖动绘制','setMap','coordinates','_showTip','projection','单击开始绘制','buildDrawingFeature','getView','revert','style'];a29_0x2acd=function(){return _0x258635;};return a29_0x2acd();}import a29_0x40278c from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a29_0x18600e(0x128),'DRAWEND':a29_0x18600e(0x17d),'DRAWABORT':'drawabort','DRAWADDPOINT':a29_0x18600e(0x139),'DRAWMOVING':'drawmoving'};export class DrawEvent extends a29_0xe46ccc{constructor(_0x4a210b,_0xb3649f,_0x3ebd22){const _0x61fa0b=a29_0x18600e;super(_0x4a210b),this['feature']=_0xb3649f,this[_0x61fa0b(0x15b)]=_0x3ebd22;}}export class ShEvent extends a29_0xe46ccc{constructor(_0x15684c,_0x3164e7,_0x2e08cf,_0x5cd28f,_0x4e7e1b){const _0x5a5f4a=a29_0x18600e;super(_0x15684c),this[_0x5a5f4a(0x15d)]=_0x4e7e1b,this[_0x5a5f4a(0x174)]=_0x3164e7,this[_0x5a5f4a(0x149)]=_0x2e08cf,this[_0x5a5f4a(0x15b)]=_0x5cd28f;}}export default class Draw extends a29_0x182f72{constructor(_0xe5c907,_0x57e503){const _0x5e5c5b=a29_0x18600e,_0x2c8ec5=_0x57e503?_0x57e503:{};!_0x2c8ec5[_0x5e5c5b(0x13d)]&&(_0x2c8ec5[_0x5e5c5b(0x13d)]=![]);super(_0x57e503),this['on']=this[_0x5e5c5b(0x158)],this[_0x5e5c5b(0x16c)]=this[_0x5e5c5b(0x126)],this['un']=this['unInternal'],this[_0x5e5c5b(0x124)]=![],this['_type']=_0xe5c907,this[_0x5e5c5b(0x165)]=_0x57e503===null||_0x57e503===void 0x0?void 0x0:_0x57e503[_0x5e5c5b(0x162)],this[_0x5e5c5b(0x12b)]=_0x57e503===null||_0x57e503===void 0x0?void 0x0:_0x57e503[_0x5e5c5b(0x133)],this['_features']=_0x57e503===null||_0x57e503===void 0x0?void 0x0:_0x57e503[_0x5e5c5b(0x166)];const _0x18c6c3=getPlotCount(this[_0x5e5c5b(0x16f)]);this['_minPoints']=_0x18c6c3['minPoint'],this['_fixPoint']=_0x18c6c3[_0x5e5c5b(0x12f)],this[_0x5e5c5b(0x122)]=_0x57e503===null||_0x57e503===void 0x0?void 0x0:_0x57e503[_0x5e5c5b(0x122)],this['_showTip']=(_0x57e503===null||_0x57e503===void 0x0?void 0x0:_0x57e503[_0x5e5c5b(0x11e)])==![]?![]:!![],this[_0x5e5c5b(0x157)]=_0x2c8ec5['snapTolerance']?_0x2c8ec5[_0x5e5c5b(0x167)]:0x6,this[_0x5e5c5b(0x179)]=new a29_0x488d6b(),this[_0x5e5c5b(0x11f)]=new a29_0x20ace2({'text':new a29_0x1ed062({'font':_0x5e5c5b(0x171),'fill':new a29_0x269e5d({'color':_0x5e5c5b(0x173)}),'backgroundFill':new a29_0x269e5d({'color':_0x5e5c5b(0x170)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':'left','offsetX':0xf})}),this[_0x5e5c5b(0x16d)]=[],this[_0x5e5c5b(0x140)]=new a29_0x6ffa6c({'source':new a29_0x2c0abc({'useSpatialIndex':![],'wrapX':(_0x57e503===null||_0x57e503===void 0x0?void 0x0:_0x57e503[_0x5e5c5b(0x147)])?_0x57e503[_0x5e5c5b(0x147)]:![]})}),this[_0x5e5c5b(0x12d)]=new a29_0x6ffa6c({'source':new a29_0x2c0abc({'useSpatialIndex':![],'wrapX':(_0x57e503===null||_0x57e503===void 0x0?void 0x0:_0x57e503[_0x5e5c5b(0x147)])?_0x57e503[_0x5e5c5b(0x147)]:![]}),'updateWhileInteracting':!![]}),this[_0x5e5c5b(0x125)](a29_0x46e7d3['ACTIVE'],this[_0x5e5c5b(0x17e)]);}[a29_0x18600e(0x17e)](){const _0x1bfb22=a29_0x18600e,_0x502755=this[_0x1bfb22(0x172)](),_0x479dbc=this[_0x1bfb22(0x176)]();(!_0x502755||!_0x479dbc)&&this['abortDrawing'](),this['_overlay'][_0x1bfb22(0x15a)](_0x479dbc?_0x502755:null),this[_0x1bfb22(0x140)][_0x1bfb22(0x15a)](_0x479dbc?_0x502755:null);}[a29_0x18600e(0x15a)](_0x579d4c){const _0x3190ee=a29_0x18600e;super[_0x3190ee(0x15a)](_0x579d4c),this['updateState_']();}[a29_0x18600e(0x13b)](_0x14b871){const _0x2fef4a=a29_0x18600e;this[_0x2fef4a(0x165)]=_0x14b871?_0x14b871:{};}[a29_0x18600e(0x178)](){const _0x169598=a29_0x18600e;return this[_0x169598(0x12d)];}['handleDownEvent'](_0x2199e6){const _0xbaf932=a29_0x18600e;if(_0x2199e6['originalEvent'][_0xbaf932(0x12e)]===0x2)return _0x2199e6[_0xbaf932(0x138)][_0xbaf932(0x16a)](),this['revert'](),this[_0xbaf932(0x153)](_0x2199e6),![];return!![];}['handleUpEvent'](_0x1783dc){const _0x3db66c=a29_0x18600e;var _0x39c9b4,_0x4f1e99;if(this[_0x3db66c(0x16f)]=='rectangle'&&this[_0x3db66c(0x16d)][_0x3db66c(0x121)]<0x1)return this[_0x3db66c(0x123)](new DrawEvent(DrawEventType['DRAWEND'],undefined,[_0x1783dc[_0x3db66c(0x149)]])),![];if(!this[_0x3db66c(0x124)])this[_0x3db66c(0x11d)](_0x1783dc['coordinate']),this[_0x3db66c(0x123)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x3db66c(0x16f)],_0x1783dc[_0x3db66c(0x149)],this[_0x3db66c(0x16d)],(_0x39c9b4=this[_0x3db66c(0x172)]())===null||_0x39c9b4===void 0x0?void 0x0:_0x39c9b4['getView']()[_0x3db66c(0x175)]()[_0x3db66c(0x143)]())),this[_0x3db66c(0x16f)]==_0x3db66c(0x151)&&this[_0x3db66c(0x14a)]();else{if(this[_0x3db66c(0x16d)]&&this[_0x3db66c(0x16d)][_0x3db66c(0x121)]>0x0){if(this[_0x3db66c(0x169)](_0x1783dc[_0x3db66c(0x185)]))return this['finishDrawing'](),_0x1783dc[_0x3db66c(0x16a)](),![];let _0x2019fc=this[_0x3db66c(0x16d)][_0x3db66c(0x121)]+0x1;_0x2019fc<=this['_fixPoint']&&this[_0x3db66c(0x120)](_0x1783dc['coordinate']),this[_0x3db66c(0x123)](new ShEvent(DrawEventType[_0x3db66c(0x168)],this['_type'],_0x1783dc[_0x3db66c(0x149)],this[_0x3db66c(0x16d)],(_0x4f1e99=this[_0x3db66c(0x172)]())===null||_0x4f1e99===void 0x0?void 0x0:_0x4f1e99[_0x3db66c(0x160)]()[_0x3db66c(0x175)]()[_0x3db66c(0x143)]())),_0x2019fc>=this[_0x3db66c(0x131)]&&this['buildDrawingFeature'](this[_0x3db66c(0x16d)]),_0x2019fc===this['_fixPoint']&&this['finishDrawing']();}}return _0x1783dc[_0x3db66c(0x16a)](),![];}['handleDragEvent'](_0x4bc88d){const _0xbd7243=a29_0x18600e;var _0x307291;if(this['_type']=='rectangle'&&_0x4bc88d[_0xbd7243(0x138)][_0xbd7243(0x174)]==_0xbd7243(0x17c)){if(!this['_isStayDraw']){this[_0xbd7243(0x11d)](_0x4bc88d[_0xbd7243(0x149)]),this['dispatchEvent'](new ShEvent(DrawEventType[_0xbd7243(0x168)],this['_type'],_0x4bc88d[_0xbd7243(0x149)],this[_0xbd7243(0x16d)],(_0x307291=this[_0xbd7243(0x172)]())===null||_0x307291===void 0x0?void 0x0:_0x307291['getView']()[_0xbd7243(0x175)]()[_0xbd7243(0x143)]()));return;}let _0x427a60=[...this[_0xbd7243(0x16d)],_0x4bc88d[_0xbd7243(0x149)]];this['buildDrawingFeature'](_0x427a60),this[_0xbd7243(0x123)](new DrawEvent(DrawEventType['DRAWMOVING'],this['_sketchFeature'],this[_0xbd7243(0x16d)]));}}[a29_0x18600e(0x153)](_0x13046b){const _0x24798b=a29_0x18600e;var _0x16c78b,_0x3fb348,_0x157806;let _0x4f5897='';this['_type']==_0x24798b(0x17c)&&(this[_0x24798b(0x11d)](_0x13046b[_0x24798b(0x149)]),this[_0x24798b(0x123)](new ShEvent(DrawEventType[_0x24798b(0x168)],this['_type'],_0x13046b[_0x24798b(0x149)],this[_0x24798b(0x16d)],(_0x16c78b=this['getMap']())===null||_0x16c78b===void 0x0?void 0x0:_0x16c78b['getView']()[_0x24798b(0x175)]()[_0x24798b(0x143)]())),this[_0x24798b(0x14a)]());!this[_0x24798b(0x124)]?_0x4f5897=this[_0x24798b(0x16f)]==_0x24798b(0x186)?_0x24798b(0x159):_0x24798b(0x15e):(_0x4f5897=_0x24798b(0x146),((_0x3fb348=this[_0x24798b(0x16d)])===null||_0x3fb348===void 0x0?void 0x0:_0x3fb348[_0x24798b(0x121)])===this['_fixPoint']-0x1&&(_0x4f5897=_0x24798b(0x154)),((_0x157806=this['_drawingCoordinates'])===null||_0x157806===void 0x0?void 0x0:_0x157806['length'])>=this[_0x24798b(0x131)]&&this[_0x24798b(0x156)]===Number[_0x24798b(0x16b)]&&(_0x4f5897=_0x24798b(0x148)));this[_0x24798b(0x122)]!=undefined&&(_0x4f5897=this[_0x24798b(0x122)]);this['updateTip_'](_0x13046b[_0x24798b(0x149)],_0x4f5897);if(this['_isStayDraw']&&this[_0x24798b(0x16f)]!=_0x24798b(0x186)){let _0x7487fc=[...this[_0x24798b(0x16d)],_0x13046b[_0x24798b(0x149)]];this[_0x24798b(0x15f)](_0x7487fc),this[_0x24798b(0x123)](new DrawEvent(DrawEventType['DRAWMOVING'],this[_0x24798b(0x180)],this['_drawingCoordinates']));}}['atFinish_'](_0xd5851b){const _0xe12f09=a29_0x18600e;var _0x653919;let _0x3951b1=![],_0x1d07e2=this[_0xe12f09(0x16d)][_0xe12f09(0x121)];if(_0x1d07e2>this[_0xe12f09(0x131)]&&this['_fixPoint']===Number[_0xe12f09(0x16b)]){const _0x27db71=this[_0xe12f09(0x16d)][this['_drawingCoordinates'][_0xe12f09(0x121)]-0x1],_0x37e938=(_0x653919=this[_0xe12f09(0x172)]())===null||_0x653919===void 0x0?void 0x0:_0x653919[_0xe12f09(0x141)](_0x27db71),_0x504ebf=_0xd5851b[0x0]-(_0x37e938?_0x37e938[0x0]:0x0),_0x4b7f17=_0xd5851b[0x1]-(_0x37e938?_0x37e938[0x1]:0x0);_0x3951b1=Math[_0xe12f09(0x14b)](_0x504ebf*_0x504ebf+_0x4b7f17*_0x4b7f17)<=this[_0xe12f09(0x157)];}return _0x3951b1;}[a29_0x18600e(0x11d)](_0x52f593){const _0x3d676e=a29_0x18600e;this[_0x3d676e(0x124)]=!![],this[_0x3d676e(0x16d)]=[_0x52f593[_0x3d676e(0x144)]()],this['_sketchFeature']=this['createMultiPointFeature'](),this['updateSketchFeatures_'](),this[_0x3d676e(0x123)](new DrawEvent(DrawEventType[_0x3d676e(0x130)],this[_0x3d676e(0x180)],this[_0x3d676e(0x16d)]));}[a29_0x18600e(0x14a)](){const _0x49cb35=a29_0x18600e;if(this['_drawingCoordinates'][_0x49cb35(0x121)]>this[_0x49cb35(0x131)]){this[_0x49cb35(0x15f)](this[_0x49cb35(0x16d)]);let _0xbede98=this['_drawingCoordinates'];const _0x24ff7a=this[_0x49cb35(0x17f)]();if(!_0x24ff7a)return;this['dispatchEvent'](new DrawEvent(DrawEventType[_0x49cb35(0x183)],_0x24ff7a,_0xbede98)),this['_features']&&this[_0x49cb35(0x14d)][_0x49cb35(0x164)](_0x24ff7a),this[_0x49cb35(0x12b)]&&this[_0x49cb35(0x12b)]['addFeature'](_0x24ff7a);}}[a29_0x18600e(0x120)](_0x4619){const _0x5d0450=a29_0x18600e;this[_0x5d0450(0x16d)][_0x5d0450(0x164)](_0x4619),this['_sketchFeature']=this[_0x5d0450(0x13f)](),this[_0x5d0450(0x13a)]();}[a29_0x18600e(0x13f)](){const _0x55c7fb=a29_0x18600e,_0x5476f2=new MultiPoint(this['_drawingCoordinates']);let _0x30babf=new a29_0x488d6b();return _0x30babf[_0x55c7fb(0x14e)](_0x5476f2),_0x30babf;}[a29_0x18600e(0x17f)](){const _0x49541f=a29_0x18600e;var _0x22f495,_0x29d301;this['_isStayDraw']=![];const _0x1bb279=this[_0x49541f(0x180)];return this[_0x49541f(0x180)]=undefined,this[_0x49541f(0x16d)]=[],(_0x22f495=this['_overlay'][_0x49541f(0x184)]())===null||_0x22f495===void 0x0?void 0x0:_0x22f495[_0x49541f(0x163)](!![]),(_0x29d301=this[_0x49541f(0x140)][_0x49541f(0x184)]())===null||_0x29d301===void 0x0?void 0x0:_0x29d301[_0x49541f(0x163)](!![]),_0x1bb279;}[a29_0x18600e(0x17a)](){const _0x774c21=a29_0x18600e,_0x3d3d4f=this[_0x774c21(0x17f)]();_0x3d3d4f&&this[_0x774c21(0x123)](new DrawEvent(DrawEventType[_0x774c21(0x137)],_0x3d3d4f,this['_drawingCoordinates']));}[a29_0x18600e(0x15f)](_0x128668){const _0x562bc3=a29_0x18600e;this[_0x562bc3(0x180)]=new a29_0x488d6b();let _0x5af6fe=createPlot(this[_0x562bc3(0x16f)],_0x128668);if(!_0x5af6fe)return;this[_0x562bc3(0x180)][_0x562bc3(0x14e)](_0x5af6fe);let _0x31367f=[a29_0x40278c[_0x562bc3(0x16e)],a29_0x40278c[_0x562bc3(0x13e)],a29_0x40278c[_0x562bc3(0x134)]];if(_0x31367f[_0x562bc3(0x12c)](this[_0x562bc3(0x16f)])>-0x1&&this[_0x562bc3(0x165)]){}const _0x350808=this['getMap']();this['_sketchFeature'][_0x562bc3(0x13b)](getStyle(this[_0x562bc3(0x16f)],this[_0x562bc3(0x165)],this['getMap']())),this[_0x562bc3(0x13a)]();}[a29_0x18600e(0x13a)](){const _0x122f0c=a29_0x18600e,_0xf90509=this[_0x122f0c(0x12d)][_0x122f0c(0x184)]();_0xf90509&&this[_0x122f0c(0x180)]&&(_0xf90509[_0x122f0c(0x163)](!![]),_0xf90509[_0x122f0c(0x181)](this['_sketchFeature']));}[a29_0x18600e(0x161)](){const _0x119089=a29_0x18600e;if(this[_0x119089(0x124)]){if(this['_drawingCoordinates']&&this['_drawingCoordinates'][_0x119089(0x121)]>0x0){const _0x5df830=this[_0x119089(0x12d)][_0x119089(0x184)]();_0x5df830===null||_0x5df830===void 0x0?void 0x0:_0x5df830[_0x119089(0x163)](!![]),this['_drawingCoordinates'][_0x119089(0x142)](),this['_drawingCoordinates'][_0x119089(0x121)]>=this['_minPoints']&&this['buildDrawingFeature'](this[_0x119089(0x16d)]),this[_0x119089(0x16d)][_0x119089(0x121)]===0x0&&(this[_0x119089(0x124)]=![]);}}}['updateTip_'](_0x385251,_0x58e785){const _0x37deb6=a29_0x18600e;var _0x2936ec,_0x1d58a4,_0x512925,_0x197554;if(!this[_0x37deb6(0x15c)])return;const _0x3e0a36=this[_0x37deb6(0x140)][_0x37deb6(0x184)]();_0x3e0a36===null||_0x3e0a36===void 0x0?void 0x0:_0x3e0a36[_0x37deb6(0x163)](!![]),(_0x2936ec=this['_tipFeature'])===null||_0x2936ec===void 0x0?void 0x0:_0x2936ec['setGeometry'](new Point(_0x385251)),(_0x512925=(_0x1d58a4=this[_0x37deb6(0x11f)])===null||_0x1d58a4===void 0x0?void 0x0:_0x1d58a4['getText']())===null||_0x512925===void 0x0?void 0x0:_0x512925['setText'](_0x58e785),(_0x197554=this['_tipFeature'])===null||_0x197554===void 0x0?void 0x0:_0x197554[_0x37deb6(0x13b)](this[_0x37deb6(0x11f)]),this[_0x37deb6(0x179)]&&(_0x3e0a36===null||_0x3e0a36===void 0x0?void 0x0:_0x3e0a36[_0x37deb6(0x181)](this['_tipFeature']));}}function getDefaultStyleFunction(){const _0x381984=createEditingStyle();return function(_0x2371e5,_0x251740){const _0x30b5ce=a29_0x5873,_0x42d6b6=_0x381984[_0x2371e5[_0x30b5ce(0x135)]()[_0x30b5ce(0x145)]()];if(_0x42d6b6&&'Rectangle'==_0x2371e5[_0x30b5ce(0x135)]()[_0x30b5ce(0x145)]()){}};}
|
|
1
|
+
const a29_0x5e0ee5=a29_0x2fbc;(function(_0x12d93a,_0xbbd8db){const _0x3ffb0b=a29_0x2fbc,_0x506402=_0x12d93a();while(!![]){try{const _0x252b34=-parseInt(_0x3ffb0b(0x1a1))/0x1*(-parseInt(_0x3ffb0b(0x1e7))/0x2)+-parseInt(_0x3ffb0b(0x1c9))/0x3*(parseInt(_0x3ffb0b(0x1ce))/0x4)+-parseInt(_0x3ffb0b(0x18e))/0x5*(-parseInt(_0x3ffb0b(0x17d))/0x6)+parseInt(_0x3ffb0b(0x1a0))/0x7*(parseInt(_0x3ffb0b(0x1d4))/0x8)+parseInt(_0x3ffb0b(0x1b8))/0x9*(-parseInt(_0x3ffb0b(0x18b))/0xa)+-parseInt(_0x3ffb0b(0x1dd))/0xb*(parseInt(_0x3ffb0b(0x1a4))/0xc)+-parseInt(_0x3ffb0b(0x1ba))/0xd;if(_0x252b34===_0xbbd8db)break;else _0x506402['push'](_0x506402['shift']());}catch(_0x4383d0){_0x506402['push'](_0x506402['shift']());}}}(a29_0x37a9,0xd8194));import a29_0x36ed30 from'ol/events/Event';import a29_0x3b8e33 from'ol/interaction/Pointer';function a29_0x37a9(){const _0x12cf28=['_sketchFeature','70zdNLhC','671855KUSKNh','drawaddpoint','wrapX','1326444nRhNEg','updateSketchFeatures_','getGeometry','clear','_features','_fixPoint','updateState_','setMap','单击结束绘制,右击删除点','preventDefault','slice','getText','features','getPixelFromCoordinate','style','addPoint','coordinates','Rectangle','showTip','atFinish_','562041BWBJLO','rectangle','5387213JhZjxn','DRAWABORT','DRAWADDPOINT','stopDown','abortDrawing','getProjection','getSource','setGeometry','onInternal','setText','createMultiPointFeature','DRAWSTART','单击增加点,右击删除点双击完成绘制','_tipStyle','_source','9174EXyZtM','type','revert','unInternal','pixel','104oPnUyn','_minPoints','handleDragEvent','snapTolerance','handleUpEvent','length','1001240mcIUOJ','MAX_VALUE','handleDownEvent','_style','addChangeListener','drawend','_showTip','Ellipse','sqrt','11bacWYa','单击开始绘制','_isStayDraw','left','_overlay','pop','DRAWMOVING','pointermove','updateTip_','getMap','2wvCCHQ','push','abortDrawing_','25572QPtjMX','Ellipsoid','indexOf','Circle','coordinate','addFeature','fixPoint','_drawingCoordinates','drawmoving','rgba(255,\x20255,\x20255,\x201)','12px\x20Calibre,sans-serif','_snapTolerance','getOverlay','rgba(0,\x200,\x200,\x200.4)','150HKlBgF','finishDrawing','DRAWEND','590FFCpWR','drawabort','_type','originalEvent','startDrawing_','getView','buildDrawingFeature','setStyle','minPoint','_tipFeature','dispatchEvent','_tipOverlay','getActive','getCode','tipText','projection','handleMoveEvent'];a29_0x37a9=function(){return _0x12cf28;};return a29_0x37a9();}import{MultiPoint,Point}from'ol/geom';import a29_0x3d0f70 from'ol/Feature';import a29_0x5f0f8b,{createEditingStyle}from'ol/style/Style';import a29_0x2045f6 from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a29_0x4ebc86 from'ol/style/Text';import a29_0x4559d6 from'ol/style/Fill';import a29_0x175e8d from'ol/interaction/Property';import a29_0x3deac7 from'ol/layer/Vector';function a29_0x2fbc(_0x121365,_0x5bbc0b){const _0x37a972=a29_0x37a9();return a29_0x2fbc=function(_0x2fbc0c,_0x2e9d09){_0x2fbc0c=_0x2fbc0c-0x17c;let _0x245753=_0x37a972[_0x2fbc0c];return _0x245753;},a29_0x2fbc(_0x121365,_0x5bbc0b);}import a29_0x2fa36e from'../entity/GeometryType';const DrawEventType={'DRAWSTART':'drawstart','DRAWEND':a29_0x5e0ee5(0x1d9),'DRAWABORT':a29_0x5e0ee5(0x18f),'DRAWADDPOINT':a29_0x5e0ee5(0x1a2),'DRAWMOVING':a29_0x5e0ee5(0x185)};export class DrawEvent extends a29_0x36ed30{constructor(_0x5bd4b0,_0x23242d,_0x3cb1c0){super(_0x5bd4b0),this['feature']=_0x23242d,this['coordinates']=_0x3cb1c0;}}export class ShEvent extends a29_0x36ed30{constructor(_0x5c0893,_0x2a1c67,_0x2cb8c7,_0xafd27f,_0x111c5b){const _0x4697c3=a29_0x5e0ee5;super(_0x5c0893),this[_0x4697c3(0x19d)]=_0x111c5b,this[_0x4697c3(0x1ca)]=_0x2a1c67,this['coordinate']=_0x2cb8c7,this[_0x4697c3(0x1b4)]=_0xafd27f;}}export default class Draw extends a29_0x3b8e33{constructor(_0x2ecab3,_0x24cea6){const _0x375692=a29_0x5e0ee5,_0x286c1=_0x24cea6?_0x24cea6:{};!_0x286c1[_0x375692(0x1bd)]&&(_0x286c1['stopDown']=![]);super(_0x24cea6),this['on']=this[_0x375692(0x1c2)],this['once']=this['onceInternal'],this['un']=this[_0x375692(0x1cc)],this['_isStayDraw']=![],this[_0x375692(0x190)]=_0x2ecab3,this[_0x375692(0x1d7)]=_0x24cea6===null||_0x24cea6===void 0x0?void 0x0:_0x24cea6[_0x375692(0x1b2)],this['_source']=_0x24cea6===null||_0x24cea6===void 0x0?void 0x0:_0x24cea6['source'],this['_features']=_0x24cea6===null||_0x24cea6===void 0x0?void 0x0:_0x24cea6[_0x375692(0x1b0)];const _0x1d324b=getPlotCount(this[_0x375692(0x190)]);this[_0x375692(0x1cf)]=_0x1d324b[_0x375692(0x196)],this[_0x375692(0x1a9)]=_0x1d324b[_0x375692(0x183)],this[_0x375692(0x19c)]=_0x24cea6===null||_0x24cea6===void 0x0?void 0x0:_0x24cea6['tipText'],this[_0x375692(0x1da)]=(_0x24cea6===null||_0x24cea6===void 0x0?void 0x0:_0x24cea6[_0x375692(0x1b6)])==![]?![]:!![],this[_0x375692(0x188)]=_0x286c1[_0x375692(0x1d1)]?_0x286c1[_0x375692(0x1d1)]:0x6,this[_0x375692(0x197)]=new a29_0x3d0f70(),this['_tipStyle']=new a29_0x5f0f8b({'text':new a29_0x4ebc86({'font':_0x375692(0x187),'fill':new a29_0x4559d6({'color':_0x375692(0x186)}),'backgroundFill':new a29_0x4559d6({'color':_0x375692(0x18a)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x375692(0x1e0),'offsetX':0xf})}),this[_0x375692(0x184)]=[],this[_0x375692(0x199)]=new a29_0x3deac7({'source':new a29_0x2045f6({'useSpatialIndex':![],'wrapX':(_0x24cea6===null||_0x24cea6===void 0x0?void 0x0:_0x24cea6[_0x375692(0x1a3)])?_0x24cea6[_0x375692(0x1a3)]:![]})}),this[_0x375692(0x1e1)]=new a29_0x3deac7({'source':new a29_0x2045f6({'useSpatialIndex':![],'wrapX':(_0x24cea6===null||_0x24cea6===void 0x0?void 0x0:_0x24cea6[_0x375692(0x1a3)])?_0x24cea6[_0x375692(0x1a3)]:![]}),'updateWhileInteracting':!![]}),this[_0x375692(0x1d8)](a29_0x175e8d['ACTIVE'],this['updateState_']);}[a29_0x5e0ee5(0x1aa)](){const _0x26e597=a29_0x5e0ee5,_0x8be9c9=this[_0x26e597(0x1e6)](),_0x53a0d4=this[_0x26e597(0x19a)]();(!_0x8be9c9||!_0x53a0d4)&&this['abortDrawing'](),this[_0x26e597(0x1e1)]['setMap'](_0x53a0d4?_0x8be9c9:null),this[_0x26e597(0x199)][_0x26e597(0x1ab)](_0x53a0d4?_0x8be9c9:null);}[a29_0x5e0ee5(0x1ab)](_0xfd2d0b){const _0x7694e9=a29_0x5e0ee5;super[_0x7694e9(0x1ab)](_0xfd2d0b),this[_0x7694e9(0x1aa)]();}['setStyle'](_0x199d96){const _0x35f93e=a29_0x5e0ee5;this[_0x35f93e(0x1d7)]=_0x199d96?_0x199d96:{};}[a29_0x5e0ee5(0x189)](){const _0x2aa4da=a29_0x5e0ee5;return this[_0x2aa4da(0x1e1)];}[a29_0x5e0ee5(0x1d6)](_0x555e04){const _0x217a50=a29_0x5e0ee5;if(_0x555e04[_0x217a50(0x191)]['button']===0x2)return _0x555e04[_0x217a50(0x191)][_0x217a50(0x1ad)](),this[_0x217a50(0x1cb)](),this['handleMoveEvent'](_0x555e04),![];return!![];}[a29_0x5e0ee5(0x1d2)](_0x2ff566){const _0x1fdb54=a29_0x5e0ee5;var _0x433ed0,_0x3f5814;if(this[_0x1fdb54(0x190)]==_0x1fdb54(0x1b9)&&this[_0x1fdb54(0x184)][_0x1fdb54(0x1d3)]<0x1)return this[_0x1fdb54(0x198)](new DrawEvent(DrawEventType[_0x1fdb54(0x18d)],undefined,[_0x2ff566[_0x1fdb54(0x181)]])),![];if(!this[_0x1fdb54(0x1df)])this['startDrawing_'](_0x2ff566[_0x1fdb54(0x181)]),this['dispatchEvent'](new ShEvent(DrawEventType[_0x1fdb54(0x1bc)],this[_0x1fdb54(0x190)],_0x2ff566['coordinate'],this[_0x1fdb54(0x184)],(_0x433ed0=this[_0x1fdb54(0x1e6)]())===null||_0x433ed0===void 0x0?void 0x0:_0x433ed0[_0x1fdb54(0x193)]()[_0x1fdb54(0x1bf)]()[_0x1fdb54(0x19b)]())),this[_0x1fdb54(0x190)]=='point'&&this[_0x1fdb54(0x18c)]();else{if(this[_0x1fdb54(0x184)]&&this[_0x1fdb54(0x184)][_0x1fdb54(0x1d3)]>0x0){if(this['atFinish_'](_0x2ff566[_0x1fdb54(0x1cd)]))return this[_0x1fdb54(0x18c)](),_0x2ff566[_0x1fdb54(0x1ad)](),![];let _0xe03425=this[_0x1fdb54(0x184)][_0x1fdb54(0x1d3)]+0x1;_0xe03425<=this[_0x1fdb54(0x1a9)]&&this[_0x1fdb54(0x1b3)](_0x2ff566['coordinate']),this[_0x1fdb54(0x198)](new ShEvent(DrawEventType[_0x1fdb54(0x1bc)],this[_0x1fdb54(0x190)],_0x2ff566[_0x1fdb54(0x181)],this['_drawingCoordinates'],(_0x3f5814=this[_0x1fdb54(0x1e6)]())===null||_0x3f5814===void 0x0?void 0x0:_0x3f5814[_0x1fdb54(0x193)]()[_0x1fdb54(0x1bf)]()[_0x1fdb54(0x19b)]())),_0xe03425>=this[_0x1fdb54(0x1cf)]&&this['buildDrawingFeature'](this[_0x1fdb54(0x184)]),_0xe03425===this[_0x1fdb54(0x1a9)]&&this['finishDrawing']();}}return _0x2ff566[_0x1fdb54(0x1ad)](),![];}[a29_0x5e0ee5(0x1d0)](_0x267206){const _0x1f67dd=a29_0x5e0ee5;var _0x2fe5a9;if(this[_0x1f67dd(0x190)]==_0x1f67dd(0x1b9)&&_0x267206[_0x1f67dd(0x191)][_0x1f67dd(0x1ca)]==_0x1f67dd(0x1e4)){if(!this[_0x1f67dd(0x1df)]){this[_0x1f67dd(0x192)](_0x267206[_0x1f67dd(0x181)]),this[_0x1f67dd(0x198)](new ShEvent(DrawEventType[_0x1f67dd(0x1bc)],this[_0x1f67dd(0x190)],_0x267206[_0x1f67dd(0x181)],this[_0x1f67dd(0x184)],(_0x2fe5a9=this[_0x1f67dd(0x1e6)]())===null||_0x2fe5a9===void 0x0?void 0x0:_0x2fe5a9[_0x1f67dd(0x193)]()[_0x1f67dd(0x1bf)]()[_0x1f67dd(0x19b)]()));return;}let _0x3c302e=[...this[_0x1f67dd(0x184)],_0x267206['coordinate']];this[_0x1f67dd(0x194)](_0x3c302e),this['dispatchEvent'](new DrawEvent(DrawEventType[_0x1f67dd(0x1e3)],this[_0x1f67dd(0x19f)],this[_0x1f67dd(0x184)]));}}[a29_0x5e0ee5(0x19e)](_0x3e6d42){const _0x1e89c7=a29_0x5e0ee5;var _0x2ebc23,_0x5e9138,_0x48353c;let _0x52701a='';this[_0x1e89c7(0x190)]==_0x1e89c7(0x1e4)&&(this['startDrawing_'](_0x3e6d42['coordinate']),this['dispatchEvent'](new ShEvent(DrawEventType[_0x1e89c7(0x1bc)],this[_0x1e89c7(0x190)],_0x3e6d42[_0x1e89c7(0x181)],this['_drawingCoordinates'],(_0x2ebc23=this[_0x1e89c7(0x1e6)]())===null||_0x2ebc23===void 0x0?void 0x0:_0x2ebc23['getView']()[_0x1e89c7(0x1bf)]()[_0x1e89c7(0x19b)]())),this['finishDrawing']());!this['_isStayDraw']?_0x52701a=this[_0x1e89c7(0x190)]==_0x1e89c7(0x1b9)?'单击拖动绘制':_0x1e89c7(0x1de):(_0x52701a='单击增加点,右击删除点',((_0x5e9138=this[_0x1e89c7(0x184)])===null||_0x5e9138===void 0x0?void 0x0:_0x5e9138[_0x1e89c7(0x1d3)])===this[_0x1e89c7(0x1a9)]-0x1&&(_0x52701a=_0x1e89c7(0x1ac)),((_0x48353c=this[_0x1e89c7(0x184)])===null||_0x48353c===void 0x0?void 0x0:_0x48353c['length'])>=this[_0x1e89c7(0x1cf)]&&this[_0x1e89c7(0x1a9)]===Number[_0x1e89c7(0x1d5)]&&(_0x52701a=_0x1e89c7(0x1c6)));this['tipText']!=undefined&&(_0x52701a=this['tipText']);this['updateTip_'](_0x3e6d42[_0x1e89c7(0x181)],_0x52701a);if(this[_0x1e89c7(0x1df)]&&this['_type']!='rectangle'){let _0x3d38f8=[...this['_drawingCoordinates'],_0x3e6d42[_0x1e89c7(0x181)]];this[_0x1e89c7(0x194)](_0x3d38f8),this[_0x1e89c7(0x198)](new DrawEvent(DrawEventType['DRAWMOVING'],this['_sketchFeature'],this[_0x1e89c7(0x184)]));}}[a29_0x5e0ee5(0x1b7)](_0x2d4087){const _0x40fbe6=a29_0x5e0ee5;var _0x3aa6ae;let _0xb60999=![],_0x3a4b83=this[_0x40fbe6(0x184)][_0x40fbe6(0x1d3)];if(_0x3a4b83>this[_0x40fbe6(0x1cf)]&&this[_0x40fbe6(0x1a9)]===Number[_0x40fbe6(0x1d5)]){const _0x59417a=this[_0x40fbe6(0x184)][this[_0x40fbe6(0x184)][_0x40fbe6(0x1d3)]-0x1],_0x24ff64=(_0x3aa6ae=this[_0x40fbe6(0x1e6)]())===null||_0x3aa6ae===void 0x0?void 0x0:_0x3aa6ae[_0x40fbe6(0x1b1)](_0x59417a),_0x674a87=_0x2d4087[0x0]-(_0x24ff64?_0x24ff64[0x0]:0x0),_0x2f96c8=_0x2d4087[0x1]-(_0x24ff64?_0x24ff64[0x1]:0x0);_0xb60999=Math[_0x40fbe6(0x1dc)](_0x674a87*_0x674a87+_0x2f96c8*_0x2f96c8)<=this[_0x40fbe6(0x188)];}return _0xb60999;}['startDrawing_'](_0x1295b0){const _0x4f1c78=a29_0x5e0ee5;this[_0x4f1c78(0x1df)]=!![],this[_0x4f1c78(0x184)]=[_0x1295b0[_0x4f1c78(0x1ae)]()],this[_0x4f1c78(0x19f)]=this['createMultiPointFeature'](),this[_0x4f1c78(0x1a5)](),this['dispatchEvent'](new DrawEvent(DrawEventType[_0x4f1c78(0x1c5)],this['_sketchFeature'],this['_drawingCoordinates']));}[a29_0x5e0ee5(0x18c)](){const _0x45b8f7=a29_0x5e0ee5;if(this[_0x45b8f7(0x184)]['length']>this['_minPoints']){this['buildDrawingFeature'](this[_0x45b8f7(0x184)]);let _0xd06980=this[_0x45b8f7(0x184)];const _0x58fe07=this['abortDrawing_']();if(!_0x58fe07)return;this['dispatchEvent'](new DrawEvent(DrawEventType['DRAWEND'],_0x58fe07,_0xd06980)),this[_0x45b8f7(0x1a8)]&&this[_0x45b8f7(0x1a8)]['push'](_0x58fe07),this['_source']&&this[_0x45b8f7(0x1c8)]['addFeature'](_0x58fe07);}}[a29_0x5e0ee5(0x1b3)](_0x1e2e5d){const _0x305cb2=a29_0x5e0ee5;this['_drawingCoordinates'][_0x305cb2(0x1e8)](_0x1e2e5d),this[_0x305cb2(0x19f)]=this[_0x305cb2(0x1c4)](),this[_0x305cb2(0x1a5)]();}[a29_0x5e0ee5(0x1c4)](){const _0x3fe08c=a29_0x5e0ee5,_0xb8a22e=new MultiPoint(this[_0x3fe08c(0x184)]);let _0x1050e9=new a29_0x3d0f70();return _0x1050e9[_0x3fe08c(0x1c1)](_0xb8a22e),_0x1050e9;}['abortDrawing_'](){const _0x596528=a29_0x5e0ee5;var _0x2fb069,_0x5d8f64;this[_0x596528(0x1df)]=![];const _0x4b9bff=this['_sketchFeature'];return this['_sketchFeature']=undefined,this[_0x596528(0x184)]=[],(_0x2fb069=this[_0x596528(0x1e1)][_0x596528(0x1c0)]())===null||_0x2fb069===void 0x0?void 0x0:_0x2fb069[_0x596528(0x1a7)](!![]),(_0x5d8f64=this[_0x596528(0x199)][_0x596528(0x1c0)]())===null||_0x5d8f64===void 0x0?void 0x0:_0x5d8f64[_0x596528(0x1a7)](!![]),_0x4b9bff;}[a29_0x5e0ee5(0x1be)](){const _0x47d46a=a29_0x5e0ee5,_0x5defac=this[_0x47d46a(0x17c)]();_0x5defac&&this[_0x47d46a(0x198)](new DrawEvent(DrawEventType[_0x47d46a(0x1bb)],_0x5defac,this[_0x47d46a(0x184)]));}['buildDrawingFeature'](_0x491d9c){const _0xf6d1e9=a29_0x5e0ee5;this[_0xf6d1e9(0x19f)]=new a29_0x3d0f70();let _0x2217df=createPlot(this[_0xf6d1e9(0x190)],_0x491d9c);if(!_0x2217df)return;this[_0xf6d1e9(0x19f)][_0xf6d1e9(0x1c1)](_0x2217df);let _0x56d9c6=[a29_0x2fa36e[_0xf6d1e9(0x180)],a29_0x2fa36e[_0xf6d1e9(0x17e)],a29_0x2fa36e[_0xf6d1e9(0x1db)]];if(_0x56d9c6[_0xf6d1e9(0x17f)](this[_0xf6d1e9(0x190)])>-0x1&&this[_0xf6d1e9(0x1d7)]){}const _0x19fd80=this['getMap']();this[_0xf6d1e9(0x19f)][_0xf6d1e9(0x195)](getStyle(this[_0xf6d1e9(0x190)],this[_0xf6d1e9(0x1d7)],this['getMap']())),this['updateSketchFeatures_']();}[a29_0x5e0ee5(0x1a5)](){const _0x4af36f=a29_0x5e0ee5,_0x57508f=this[_0x4af36f(0x1e1)]['getSource']();_0x57508f&&this[_0x4af36f(0x19f)]&&(_0x57508f['clear'](!![]),_0x57508f[_0x4af36f(0x182)](this[_0x4af36f(0x19f)]));}[a29_0x5e0ee5(0x1cb)](){const _0x16e7bb=a29_0x5e0ee5;if(this[_0x16e7bb(0x1df)]){if(this[_0x16e7bb(0x184)]&&this['_drawingCoordinates']['length']>0x0){const _0x201c6b=this['_overlay']['getSource']();_0x201c6b===null||_0x201c6b===void 0x0?void 0x0:_0x201c6b['clear'](!![]),this[_0x16e7bb(0x184)][_0x16e7bb(0x1e2)](),this[_0x16e7bb(0x184)][_0x16e7bb(0x1d3)]>=this['_minPoints']&&this[_0x16e7bb(0x194)](this[_0x16e7bb(0x184)]),this['_drawingCoordinates'][_0x16e7bb(0x1d3)]===0x0&&(this[_0x16e7bb(0x1df)]=![]);}}}[a29_0x5e0ee5(0x1e5)](_0x23598a,_0x1ea44d){const _0x54bf5a=a29_0x5e0ee5;var _0x428b84,_0xe28f11,_0x2340b4,_0x37613a;if(!this['_showTip'])return;const _0x40b270=this[_0x54bf5a(0x199)]['getSource']();_0x40b270===null||_0x40b270===void 0x0?void 0x0:_0x40b270[_0x54bf5a(0x1a7)](!![]),(_0x428b84=this[_0x54bf5a(0x197)])===null||_0x428b84===void 0x0?void 0x0:_0x428b84[_0x54bf5a(0x1c1)](new Point(_0x23598a)),(_0x2340b4=(_0xe28f11=this[_0x54bf5a(0x1c7)])===null||_0xe28f11===void 0x0?void 0x0:_0xe28f11[_0x54bf5a(0x1af)]())===null||_0x2340b4===void 0x0?void 0x0:_0x2340b4[_0x54bf5a(0x1c3)](_0x1ea44d),(_0x37613a=this[_0x54bf5a(0x197)])===null||_0x37613a===void 0x0?void 0x0:_0x37613a[_0x54bf5a(0x195)](this['_tipStyle']),this['_tipFeature']&&(_0x40b270===null||_0x40b270===void 0x0?void 0x0:_0x40b270[_0x54bf5a(0x182)](this[_0x54bf5a(0x197)]));}}function getDefaultStyleFunction(){const _0xd6cd54=createEditingStyle();return function(_0x4987d0,_0x10de81){const _0x5186ad=a29_0x2fbc,_0x5265aa=_0xd6cd54[_0x4987d0['getGeometry']()['getType']()];if(_0x5265aa&&_0x5186ad(0x1b5)==_0x4987d0[_0x5186ad(0x1a6)]()['getType']()){}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a30_0xd759(_0x1a68ab,_0x10fb84){const _0xc1915e=a30_0xc191();return a30_0xd759=function(_0xd7592a,_0x2823ec){_0xd7592a=_0xd7592a-0x1a1;let _0x23fc52=_0xc1915e[_0xd7592a];return _0x23fc52;},a30_0xd759(_0x1a68ab,_0x10fb84);}const a30_0x115c59=a30_0xd759;(function(_0x521489,_0x2908d2){const _0x4a8bc4=a30_0xd759,_0x27a6bc=_0x521489();while(!![]){try{const _0x5dce6c=parseInt(_0x4a8bc4(0x1b4))/0x1*(parseInt(_0x4a8bc4(0x1a3))/0x2)+parseInt(_0x4a8bc4(0x1a4))/0x3*(-parseInt(_0x4a8bc4(0x1b1))/0x4)+-parseInt(_0x4a8bc4(0x1ab))/0x5*(-parseInt(_0x4a8bc4(0x1a1))/0x6)+parseInt(_0x4a8bc4(0x1a2))/0x7+-parseInt(_0x4a8bc4(0x1ae))/0x8+parseInt(_0x4a8bc4(0x1b5))/0x9+-parseInt(_0x4a8bc4(0x1a9))/0xa*(-parseInt(_0x4a8bc4(0x1b3))/0xb);if(_0x5dce6c===_0x2908d2)break;else _0x27a6bc['push'](_0x27a6bc['shift']());}catch(_0x37c6f7){_0x27a6bc['push'](_0x27a6bc['shift']());}}}(a30_0xc191,0x35a12));function a30_0xc191(){const _0x275fb5=['set','delete','3223960dpCBJm','get','has','76cnJmNA','addInteraction','2079NpPDHY','142waWayn','1423026OtPiWN','1074KQGJSe','1292158rosvKt','1000ndeoNo','44793BixYku','removeInteraction','name','map','getInteraction','16860BHXSuu','interactions','4860WgqnZZ'];a30_0xc191=function(){return _0x275fb5;};return a30_0xc191();}export default class InteractionManager{constructor(_0x3a817f){const _0x51e517=a30_0xd759;this[_0x51e517(0x1a7)]=_0x3a817f,this['interactions']=new Map();}[a30_0x115c59(0x1b2)](_0x3dff44,_0x3ac94b){const _0x4524fb=a30_0x115c59;this[_0x4524fb(0x1aa)][_0x4524fb(0x1b0)](_0x3dff44)&&this['removeInteraction'](_0x3dff44),_0x3ac94b[_0x4524fb(0x1ac)](_0x4524fb(0x1a6),_0x3dff44),this[_0x4524fb(0x1aa)][_0x4524fb(0x1ac)](_0x3dff44,_0x3ac94b),this[_0x4524fb(0x1a7)][_0x4524fb(0x1b2)](_0x3ac94b);}['removeInteraction'](_0x384d43){const _0x79332e=a30_0x115c59,_0x1186b9=this[_0x79332e(0x1aa)][_0x79332e(0x1af)](_0x384d43);_0x1186b9&&(this[_0x79332e(0x1a7)]['removeInteraction'](_0x1186b9),this[_0x79332e(0x1aa)][_0x79332e(0x1ad)](_0x384d43));}['removeAllInteractions'](){const _0x24eb1b=a30_0x115c59;this[_0x24eb1b(0x1aa)]['forEach'](_0x23b8f4=>{const _0x194327=_0x24eb1b;this[_0x194327(0x1a7)][_0x194327(0x1a5)](_0x23b8f4);}),this[_0x24eb1b(0x1aa)]['clear']();}[a30_0x115c59(0x1a8)](_0x8e5d53){const _0x17122b=a30_0x115c59;return this[_0x17122b(0x1aa)][_0x17122b(0x1af)](_0x8e5d53);}}
|
package/interaction/Select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0xb02d7e=a31_0x35a2;(function(_0x43a0c6,_0x5811bb){const _0x55a66e=a31_0x35a2,_0x222361=_0x43a0c6();while(!![]){try{const _0x5f5951=-parseInt(_0x55a66e(0x181))/0x1+-parseInt(_0x55a66e(0x189))/0x2*(parseInt(_0x55a66e(0x176))/0x3)+parseInt(_0x55a66e(0x17f))/0x4*(parseInt(_0x55a66e(0x166))/0x5)+parseInt(_0x55a66e(0x150))/0x6*(-parseInt(_0x55a66e(0x172))/0x7)+parseInt(_0x55a66e(0x190))/0x8+parseInt(_0x55a66e(0x15c))/0x9+parseInt(_0x55a66e(0x168))/0xa;if(_0x5f5951===_0x5811bb)break;else _0x222361['push'](_0x222361['shift']());}catch(_0x5e96cb){_0x222361['push'](_0x222361['shift']());}}}(a31_0x1fc4,0xd594f));import a31_0x569d8f from'./Draw';import a31_0x22461f from'ol/events/Event';import{bufferPixel,intersects}from'../utils/GeometryUtil';function a31_0x35a2(_0xd94000,_0x10ba1b){const _0x1fc424=a31_0x1fc4();return a31_0x35a2=function(_0x35a29c,_0x313727){_0x35a29c=_0x35a29c-0x14b;let _0x4d2fd4=_0x1fc424[_0x35a29c];return _0x4d2fd4;},a31_0x35a2(_0xd94000,_0x10ba1b);}import{Point}from'ol/geom';import a31_0xac87b2 from'../feature/FeatureManager';import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';import{selectFeaturesByGeo}from'../utils/tasks';const SelectEventType={'DRAWSTART':a31_0xb02d7e(0x170),'DRAWEND':'drawend','DRAWABORT':'drawabort','DRAWADDPOINT':a31_0xb02d7e(0x19c),'DRAWMOVING':a31_0xb02d7e(0x158),'SELECTSTART':a31_0xb02d7e(0x196),'SELECTED':'selected'};export class SelectEvent extends a31_0x22461f{constructor(_0xdfa2fe,_0x276a09,_0x40699b,_0x31a765,_0x125b58,_0x5403ad,_0x5f4ad4,_0x3f2727,_0x4abfb0){const _0x7111e8=a31_0xb02d7e;super(_0xdfa2fe),this[_0x7111e8(0x177)]=_0x40699b,this['coordinates']=_0x31a765,this[_0x7111e8(0x183)]=_0x125b58,this[_0x7111e8(0x152)]=_0x5403ad,this[_0x7111e8(0x16c)]=_0x5f4ad4,this[_0x7111e8(0x14d)]=_0x3f2727,this[_0x7111e8(0x164)]=_0x4abfb0,this[_0x7111e8(0x15a)]=_0x276a09;}}function a31_0x1fc4(){const _0x3190b2=['12376935gnmoNY','import','coordinates','Polygon','MultiPoint','LineString','keydown','getSelectedFeatures','error','allSelectedFeatures','740705QJDWRA','addFeatures','2327330yZYAZM','cancePolygonStyle','cut','includes','polygonFeatures','getPointTempLayer','addEventListener','getView','drawstart','selectTempLayer','78757IVTyXZ','getLayers','url','tempLayer','2122887FJIkXi','selectGeom','forEach','getMap','layerId','length','selectedPointFeatures','getCode','getPolygonTempLayer','28QzkTqQ','selectedLineFeatures','1506186JApLgk','getArray','pointFeatures','onInternal','未获取到几何','MultiLineString','filter','pointStyle','2jFJdRr','addTempLayer','push','layerType','keyup','SELECTED','setSelectLayers','13270552HnStLK','getType','selectedPolygonFeatures','getVisible','selectIndex','fromType','selectstart','feature','dispatchEvent','getLineTempLayer','getSource','copy','drawaddpoint','drawend','canceLineStyle','map','loadFilter','Point','layerInfo','ctrlKey','allFeatures','setStyle','pixelDistance','648OpyUHk','union','lineFeatures','getGeometry','cancePointStyle','currentLayers','lineStyle','seletctEditeFeature','drawmoving','MultiPolygon','holdCtrl','polygonStyle'];a31_0x1fc4=function(){return _0x3190b2;};return a31_0x1fc4();}export default class Select extends a31_0x569d8f{constructor(_0x132e79,_0x53f66a){const _0x1a8d89=a31_0xb02d7e;super(_0x132e79,{'tipText':_0x53f66a===null||_0x53f66a===void 0x0?void 0x0:_0x53f66a['tipText']}),this[_0x1a8d89(0x17c)]=[],this[_0x1a8d89(0x180)]=[],this[_0x1a8d89(0x192)]=[],this[_0x1a8d89(0x165)]=[];const _0x595c22=_0x53f66a||{};this[_0x1a8d89(0x18a)]=_0x595c22[_0x1a8d89(0x18a)]||![],this[_0x1a8d89(0x155)]=_0x595c22['selectLayers'],this['selectTempLayer']=_0x595c22[_0x1a8d89(0x171)]===undefined?!![]:_0x595c22[_0x1a8d89(0x171)],this[_0x1a8d89(0x14f)]=_0x595c22[_0x1a8d89(0x14f)]===undefined?0x5:_0x595c22['pixelDistance'],this['pointStyle']=_0x595c22[_0x1a8d89(0x188)]?getStyle(_0x595c22[_0x1a8d89(0x188)]):getSelectPointStyle(),this[_0x1a8d89(0x154)]=_0x595c22[_0x1a8d89(0x154)]?getStyle(_0x595c22[_0x1a8d89(0x154)]):getSelectCancePointStyle(),this['lineStyle']=_0x595c22[_0x1a8d89(0x156)]?getStyle(_0x595c22['lineStyle']):getSelectLineStyle(),this[_0x1a8d89(0x19e)]=_0x595c22[_0x1a8d89(0x19e)]?getStyle(_0x595c22[_0x1a8d89(0x19e)]):getSelectCancelLineStyle(),this[_0x1a8d89(0x15b)]=_0x595c22[_0x1a8d89(0x15b)]?getStyle(_0x595c22[_0x1a8d89(0x15b)]):getSelectPolygonStyle(),this[_0x1a8d89(0x169)]=_0x595c22[_0x1a8d89(0x169)]?getStyle(_0x595c22['cancePolygonStyle']):getSelectCancelPolygonStyle(),this['holdCtrl']=![];let _0x5dd7fc;this['on']=this[_0x1a8d89(0x184)],this['on'](_0x1a8d89(0x19d),async _0x31b69d=>{const _0xd57a59=_0x1a8d89,_0x3ddcc0=this[_0xd57a59(0x15a)],_0x57b05b=this[_0xd57a59(0x179)]();if(!_0x57b05b)return;try{let _0x15058d=undefined;if(!_0x31b69d[_0xd57a59(0x197)]&&_0x31b69d[_0xd57a59(0x15e)]&&_0x31b69d[_0xd57a59(0x15e)][_0xd57a59(0x17b)]==0x1)_0x15058d=bufferPixel(new Point(_0x31b69d['coordinates'][0x0]),this['pixelDistance'],_0x57b05b);else _0x31b69d['feature']&&(_0x15058d=_0x31b69d['feature'][_0xd57a59(0x153)]());if(!_0x15058d)throw new Error(_0xd57a59(0x185));this[_0xd57a59(0x198)](new SelectEvent(SelectEventType['SELECTSTART'],_0x3ddcc0,_0x15058d)),this['selectedPointFeatures']=[],this[_0xd57a59(0x180)]=[],this[_0xd57a59(0x192)]=[],this[_0xd57a59(0x165)]=[],this['selectTempLayer']&&this['seletctEditeFeature'](_0x15058d),_0x5dd7fc&&clearTimeout(_0x5dd7fc),_0x5dd7fc=setTimeout(async()=>{const _0x19899b=_0xd57a59;await this['selectLayer'](_0x15058d),this[_0x19899b(0x198)](new SelectEvent(SelectEventType[_0x19899b(0x18e)],_0x3ddcc0,_0x15058d,_0x31b69d[_0x19899b(0x15e)],this[_0x19899b(0x17c)],this[_0x19899b(0x180)],this[_0x19899b(0x192)],this['allSelectedFeatures']));},0x46);}catch(_0x51443d){this[_0xd57a59(0x198)](new SelectEvent(SelectEventType['SELECTED'],_0x3ddcc0,undefined,_0x31b69d['coordinates'],this['selectedPointFeatures'],this[_0xd57a59(0x180)],this[_0xd57a59(0x192)],this['allSelectedFeatures'],_0x51443d['message']));}}),window[_0x1a8d89(0x16e)](_0x1a8d89(0x162),_0x9b94d7=>{const _0x652e29=_0x1a8d89;_0x9b94d7[_0x652e29(0x14c)]&&(this['holdCtrl']=!![]);}),window[_0x1a8d89(0x16e)](_0x1a8d89(0x18d),_0x53ceb8=>{const _0x51ba39=_0x1a8d89;this[_0x51ba39(0x15a)]=![];});}[a31_0xb02d7e(0x18f)](_0x50f915){const _0x17472e=a31_0xb02d7e;this[_0x17472e(0x155)]=_0x50f915;}async['selectLayer'](_0x1eb04e){const _0x4f3f5f=a31_0xb02d7e;var _0x5ae296;const _0x6918ed=this[_0x4f3f5f(0x179)]();let _0x5d3085=[];if(this[_0x4f3f5f(0x155)]&&this[_0x4f3f5f(0x155)][_0x4f3f5f(0x17b)]>0x0)_0x5d3085=this[_0x4f3f5f(0x155)];else{let _0x1848d8=_0x6918ed[_0x4f3f5f(0x173)]()[_0x4f3f5f(0x182)]();_0x1848d8=_0x1848d8[_0x4f3f5f(0x187)](_0x5251f2=>{const _0x15983d=_0x4f3f5f,_0xcf83a3=_0x5251f2['layerInfo'];if(!_0xcf83a3)return![];return _0x5251f2[_0x15983d(0x193)]()==!![]&&_0xcf83a3[_0x15983d(0x194)]!=undefined&&_0xcf83a3[_0x15983d(0x194)]!='';}),_0x5d3085=_0x1848d8[_0x4f3f5f(0x19f)](_0x34c855=>{const _0x4ef77f=_0x4f3f5f;return _0x34c855[_0x4ef77f(0x14b)];});}if(!_0x5d3085||_0x5d3085[_0x4f3f5f(0x17b)]==0x0)return;const _0x5d61db=_0x6918ed[_0x4f3f5f(0x16f)]()['getProjection']()[_0x4f3f5f(0x17d)]();for(let _0x4b6352=0x0,_0x7ee671=_0x5d3085[_0x4f3f5f(0x17b)];_0x4b6352<_0x7ee671;_0x4b6352++){const _0x32aeb0=_0x5d3085[_0x4b6352];if(!_0x32aeb0||!_0x32aeb0['url']||!_0x32aeb0[_0x4f3f5f(0x194)])continue;let _0x365f59=await selectFeaturesByGeo(_0x1eb04e,_0x5d61db,_0x32aeb0[_0x4f3f5f(0x174)],_0x32aeb0[_0x4f3f5f(0x194)],_0x32aeb0[_0x4f3f5f(0x18c)],_0x32aeb0[_0x4f3f5f(0x1a0)]);if(_0x365f59['length']>0x0){this[_0x4f3f5f(0x165)][_0x4f3f5f(0x18b)](..._0x365f59);let _0x1633dc=_0x6918ed[_0x4f3f5f(0x17e)](),_0x2b7970=this[_0x4f3f5f(0x15b)];switch((_0x5ae296=_0x365f59[0x0][_0x4f3f5f(0x153)]())===null||_0x5ae296===void 0x0?void 0x0:_0x5ae296[_0x4f3f5f(0x191)]()){case _0x4f3f5f(0x1a1):case'MultiPoint':this[_0x4f3f5f(0x17c)]['push'](..._0x365f59),_0x1633dc=_0x6918ed[_0x4f3f5f(0x16d)](),_0x2b7970=this[_0x4f3f5f(0x188)];break;case _0x4f3f5f(0x161):case _0x4f3f5f(0x186):this[_0x4f3f5f(0x180)]['push'](..._0x365f59),_0x1633dc=_0x6918ed[_0x4f3f5f(0x199)](),_0x2b7970=this[_0x4f3f5f(0x156)];break;case'Polygon':case _0x4f3f5f(0x159):this[_0x4f3f5f(0x192)][_0x4f3f5f(0x18b)](..._0x365f59),_0x1633dc=_0x6918ed['getPolygonTempLayer'](),_0x2b7970=this[_0x4f3f5f(0x15b)];break;default:break;}const _0x15b7e5=_0x1633dc[_0x4f3f5f(0x19a)]();_0x15b7e5&&(_0x365f59[_0x4f3f5f(0x178)](_0x49efe7=>{const _0x5af315=_0x4f3f5f;_0x49efe7[_0x5af315(0x17a)]=_0x32aeb0['id'],_0x49efe7[_0x5af315(0x175)]=_0x1633dc,_0x49efe7[_0x5af315(0x14e)](_0x2b7970);}),this['addTempLayer']&&_0x15b7e5[_0x4f3f5f(0x167)](_0x365f59));}}}[a31_0xb02d7e(0x157)](_0x2694f7){const _0x7d2afd=a31_0xb02d7e,_0x4b2ef3=new a31_0xac87b2(this['getMap']()),_0x383b3a=_0x4b2ef3[_0x7d2afd(0x163)]();if(!_0x383b3a||_0x383b3a['length']===0x0)return[];const _0x82b5a2=[_0x7d2afd(0x19b),_0x7d2afd(0x16a),'draw',_0x7d2afd(0x15d),_0x7d2afd(0x151)],_0xe6f5da=[];for(const _0x8e843a of _0x383b3a){if(!_0x8e843a||!_0x8e843a[_0x7d2afd(0x195)]||!_0x82b5a2[_0x7d2afd(0x16b)](_0x8e843a[_0x7d2afd(0x195)]))continue;const _0x223adb=_0x8e843a['getGeometry']();if(!_0x223adb)continue;if(!intersects(_0x223adb,_0x2694f7))continue;let _0x2029f0=this[_0x7d2afd(0x15b)];this[_0x7d2afd(0x165)][_0x7d2afd(0x18b)](_0x8e843a);switch(_0x223adb[_0x7d2afd(0x191)]()){case'Point':case _0x7d2afd(0x160):this[_0x7d2afd(0x17c)]['push'](_0x8e843a),_0x2029f0=this[_0x7d2afd(0x188)];break;case _0x7d2afd(0x161):case _0x7d2afd(0x186):this[_0x7d2afd(0x180)]['push'](_0x8e843a),_0x2029f0=this[_0x7d2afd(0x156)];break;case _0x7d2afd(0x15f):case _0x7d2afd(0x159):this['selectedPolygonFeatures'][_0x7d2afd(0x18b)](_0x8e843a),_0x2029f0=this[_0x7d2afd(0x15b)];break;default:break;}_0x8e843a[_0x7d2afd(0x14e)](_0x2029f0);}return _0xe6f5da;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a32_0x271c(){const _0x15d64d=['wkid','xmin','url','EPSG:','xmax','stringify','wkt','join','12335120IPGXOt','116LZYCnO','getSource','4320441qyhiBR','mapIndex','7869jIBfWc','3066580eGqeCB','ymax','selectIndex','198456Wpxgtx','projection','setFilter','layerInfo','fullExtent','1072778fbrpxn','layerDefs','spatialReference','2394910SsZBPC','updateParams','ymin','initialExtent','6OcPEuC','loadFilter'];a32_0x271c=function(){return _0x15d64d;};return a32_0x271c();}const a32_0x33b5e3=a32_0x413c;(function(_0x8e6c12,_0x3ff485){const _0x24bccf=a32_0x413c,_0x1da3a4=_0x8e6c12();while(!![]){try{const _0x2bc435=parseInt(_0x24bccf(0x11b))/0x1+parseInt(_0x24bccf(0x113))/0x2*(parseInt(_0x24bccf(0x117))/0x3)+-parseInt(_0x24bccf(0x118))/0x4+parseInt(_0x24bccf(0x123))/0x5*(parseInt(_0x24bccf(0x108))/0x6)+-parseInt(_0x24bccf(0x120))/0x7+parseInt(_0x24bccf(0x112))/0x8+-parseInt(_0x24bccf(0x115))/0x9;if(_0x2bc435===_0x3ff485)break;else _0x1da3a4['push'](_0x1da3a4['shift']());}catch(_0x29763a){_0x1da3a4['push'](_0x1da3a4['shift']());}}}(a32_0x271c,0xed2fa));import a32_0x252569 from'ol/source/ImageArcGISRest';function a32_0x413c(_0x225749,_0x585f34){const _0x271c8a=a32_0x271c();return a32_0x413c=function(_0x413c8a,_0xe7bdf1){_0x413c8a=_0x413c8a-0x106;let _0xa926ba=_0x271c8a[_0x413c8a];return _0xa926ba;},a32_0x413c(_0x225749,_0x585f34);}import{Image as a32_0x347ca7}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisDynamicLayer extends a32_0x347ca7{constructor(_0xa837c,_0x3423c0){const _0x16c3f4=a32_0x413c;var _0x406bef;let _0x1e0678={'LAYERS':'show:'+((_0x406bef=_0xa837c['sublayers'])===null||_0x406bef===void 0x0?void 0x0:_0x406bef[_0x16c3f4(0x111)](','))};if(_0xa837c[_0x16c3f4(0x109)]&&_0xa837c[_0x16c3f4(0x11a)]){const _0x4e6ae0={};_0x4e6ae0[_0xa837c[_0x16c3f4(0x11a)]]=_0xa837c[_0x16c3f4(0x109)],_0x1e0678[_0x16c3f4(0x121)]=JSON[_0x16c3f4(0x10f)](_0x4e6ae0);}const _0x59147c=[_0x3423c0['initialExtent'][_0x16c3f4(0x10b)],_0x3423c0['initialExtent'][_0x16c3f4(0x106)],_0x3423c0[_0x16c3f4(0x107)][_0x16c3f4(0x10e)],_0x3423c0[_0x16c3f4(0x107)][_0x16c3f4(0x119)]],_0x1c96dc=[_0x3423c0[_0x16c3f4(0x11f)][_0x16c3f4(0x10b)],_0x3423c0['fullExtent'][_0x16c3f4(0x106)],_0x3423c0[_0x16c3f4(0x11f)][_0x16c3f4(0x10e)],_0x3423c0[_0x16c3f4(0x11f)]['ymax']];let _0x5690fa;_0x3423c0[_0x16c3f4(0x122)][_0x16c3f4(0x10a)]?_0x5690fa=registerProj(_0x16c3f4(0x10d)+_0x3423c0[_0x16c3f4(0x122)][_0x16c3f4(0x10a)],_0x1c96dc):_0x5690fa=registerProj(_0x3423c0[_0x16c3f4(0x122)][_0x16c3f4(0x110)],_0x1c96dc),super({'opacity':_0xa837c['opacity'],'zIndex':_0xa837c[_0x16c3f4(0x116)],'source':new a32_0x252569({'crossOrigin':'anonymous','projection':_0x5690fa,'ratio':0x1,'url':_0xa837c[_0x16c3f4(0x10c)],'params':_0x1e0678})}),this['id']=_0xa837c['id'],this[_0x16c3f4(0x107)]=_0x59147c,this[_0x16c3f4(0x11c)]=_0x5690fa,this[_0x16c3f4(0x11e)]=_0xa837c;}[a32_0x33b5e3(0x11d)](_0x4aac80){const _0x573110=a32_0x33b5e3;var _0x656b2e;const _0x56527d={};this[_0x573110(0x11e)][_0x573110(0x11a)]&&(_0x56527d[this[_0x573110(0x11e)]['selectIndex']]=_0x4aac80),(_0x656b2e=this[_0x573110(0x114)]())===null||_0x656b2e===void 0x0?void 0x0:_0x656b2e[_0x573110(0x124)]({'layerDefs':JSON['stringify'](_0x4aac80)});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a33_0x23c586=a33_0xb67e;(function(_0x29edf7,_0x355d89){const _0x4b628e=a33_0xb67e,_0x150b28=_0x29edf7();while(!![]){try{const _0x567c46=-parseInt(_0x4b628e(0x1b7))/0x1*(parseInt(_0x4b628e(0x1b5))/0x2)+parseInt(_0x4b628e(0x1cf))/0x3*(-parseInt(_0x4b628e(0x1d1))/0x4)+parseInt(_0x4b628e(0x1aa))/0x5*(-parseInt(_0x4b628e(0x1c7))/0x6)+-parseInt(_0x4b628e(0x1c3))/0x7*(-parseInt(_0x4b628e(0x1cb))/0x8)+parseInt(_0x4b628e(0x1b4))/0x9+-parseInt(_0x4b628e(0x1d8))/0xa*(parseInt(_0x4b628e(0x1ab))/0xb)+parseInt(_0x4b628e(0x1c1))/0xc;if(_0x567c46===_0x355d89)break;else _0x150b28['push'](_0x150b28['shift']());}catch(_0x375d7c){_0x150b28['push'](_0x150b28['shift']());}}}(a33_0x2feb,0xb06b0));function a33_0xb67e(_0x2bdb43,_0x47a184){const _0x2febe7=a33_0x2feb();return a33_0xb67e=function(_0xb67e95,_0x4db6b4){_0xb67e95=_0xb67e95-0x1a1;let _0x38626d=_0x2febe7[_0xb67e95];return _0x38626d;},a33_0xb67e(_0x2bdb43,_0x47a184);}import a33_0x10f07f from'ol/format/EsriJSON';import a33_0x4ed804 from'ol/source/Vector';import{Vector as a33_0x228bf8}from'ol/layer';import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';import{tile as a33_0x1b92cb}from'ol/loadingstrategy';import a33_0x2e674b from'ol/layer/Group';import{registerProj}from'../utils/RegisterProjUtil';import{transformedEsriStyle}from'../utils/StyleUtil';import a33_0x32ca90 from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';function a33_0x2feb(){const _0x35f1a7=[',\x22ymax\x22:','10068048wbzFjT','2133418hJBbtQ','then','1doBfLf','where=','layerInfo','spatialReference','EPSG:','setFilter','url','setStyle','length','fullExtent','36155148QCdoPo','xmin','21882DGuLwv','addFeatures','1=1','uniqueValueInfos','6HpXigK','find','split','get','1040LOoimc','showIndex',',\x22spatialReference\x22:{\x22wkid\x22:','symbol','366QINwUO','log','42184qmrrJv','push','string','defaultSymbol','createArcGISFeatureLayer','loadFilter',',\x22ymin\x22:','2405630rodnSK','returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry=','ymax','&outFields=*','value','ymin','type','drawingInfo','{\x22xmin\x22:','f\x20=\x20json\x20&\x20',',\x22xmax\x22:','renderer','6107445xgFkfL','11GogBrD','&geometryType=esriGeometryEnvelope&inSR=','projection','initialExtent','setLayers','error','xmax','wkid'];a33_0x2feb=function(){return _0x35f1a7;};return a33_0x2feb();}export default class ArcgisFeatureLayer extends a33_0x2e674b{constructor(_0x102ded,_0x14dcb6,_0x164b13){const _0x4f8960=a33_0xb67e,_0x47ec21=[_0x14dcb6[_0x4f8960(0x1ae)][_0x4f8960(0x1c2)],_0x14dcb6[_0x4f8960(0x1ae)][_0x4f8960(0x1a3)],_0x14dcb6[_0x4f8960(0x1ae)]['xmax'],_0x14dcb6[_0x4f8960(0x1ae)][_0x4f8960(0x1da)]],_0x27bc57=[_0x14dcb6[_0x4f8960(0x1c0)][_0x4f8960(0x1c2)],_0x14dcb6[_0x4f8960(0x1c0)][_0x4f8960(0x1a3)],_0x14dcb6[_0x4f8960(0x1c0)][_0x4f8960(0x1b1)],_0x14dcb6[_0x4f8960(0x1c0)][_0x4f8960(0x1da)]];let _0x279744;_0x14dcb6['spatialReference'][_0x4f8960(0x1b2)]?_0x279744=registerProj(_0x4f8960(0x1bb)+_0x14dcb6[_0x4f8960(0x1ba)]['wkid'],_0x27bc57):_0x279744=registerProj(_0x14dcb6[_0x4f8960(0x1ba)]['wkt'],_0x27bc57);let _0x25eef6=[];super({'zIndex':_0x102ded['mapIndex']});for(let _0x584311 of _0x164b13){let _0x371c00=this[_0x4f8960(0x1d5)](_0x102ded,_0x584311);_0x25eef6[_0x4f8960(0x1d2)](_0x371c00);}this[_0x4f8960(0x1af)](new a33_0x32ca90(_0x25eef6)),this['id']=_0x102ded['id'],this['initialExtent']=_0x47ec21,this[_0x4f8960(0x1ad)]=_0x279744,this[_0x4f8960(0x1b9)]=_0x102ded;}[a33_0x23c586(0x1d5)](_0x2cea8c,_0x3dcbac){const _0x2dc0c2=a33_0x23c586;var _0x2fab60=new a33_0x10f07f();let _0x5d3ff9=new a33_0x4ed804({'loader':function(_0x44818f,_0x1ea611,_0x3c9800){const _0x3062ff=a33_0xb67e;let _0x3b6c7e=_0x3062ff(0x1c5);_0x2cea8c['loadFilter']&&(_0x3b6c7e=typeof _0x2cea8c[_0x3062ff(0x1d6)]===_0x3062ff(0x1d3)?_0x2cea8c[_0x3062ff(0x1d6)]:JSON['stringify'](_0x2cea8c[_0x3062ff(0x1d6)]));let _0x50e20e=_0x3c9800['getCode'](),_0x52b13c=_0x50e20e[_0x3062ff(0x1c9)](':')[0x1];var _0x271550=appendPath(_0x3dcbac[_0x3062ff(0x1bd)],'/query');_0x271550=appendParam(_0x271550,_0x3062ff(0x1a7)+_0x3062ff(0x1b8)+encodeURIComponent(_0x3b6c7e)+_0x3062ff(0x1d9)+encodeURIComponent(_0x3062ff(0x1a6)+_0x44818f[0x0]+_0x3062ff(0x1d7)+_0x44818f[0x1]+_0x3062ff(0x1a8)+_0x44818f[0x2]+_0x3062ff(0x1b3)+_0x44818f[0x3]+_0x3062ff(0x1cd)+_0x52b13c+'}}')+_0x3062ff(0x1ac)+_0x52b13c+_0x3062ff(0x1a1)+'&outSR='+_0x52b13c),jsonp(_0x271550)[_0x3062ff(0x1b6)](_0x56c54b=>{const _0x10a97f=_0x3062ff;if(_0x56c54b[_0x10a97f(0x1b0)])console[_0x10a97f(0x1d0)](_0x56c54b);else{var _0x264ae5=_0x2fab60['readFeatures'](_0x56c54b,{'featureProjection':_0x3c9800});_0x264ae5[_0x10a97f(0x1bf)]>0x0&&(_0x3dcbac[_0x10a97f(0x1a5)][_0x10a97f(0x1a9)][_0x10a97f(0x1a4)]=='uniqueValue'&&_0x264ae5['forEach'](function(_0x58964f){const _0x172893=_0x10a97f;var _0x28a589=_0x58964f[_0x172893(0x1ca)](_0x3dcbac[_0x172893(0x1a5)][_0x172893(0x1a9)]['field1']);const _0x5b708a=_0x3dcbac[_0x172893(0x1a5)][_0x172893(0x1a9)][_0x172893(0x1c6)][_0x172893(0x1c8)](_0x160a5c=>_0x160a5c[_0x172893(0x1a2)]==_0x28a589);let _0x56c52e;_0x5b708a?_0x56c52e=transformedEsriStyle(_0x5b708a[_0x172893(0x1ce)]):_0x56c52e=transformedEsriStyle(_0x3dcbac[_0x172893(0x1a5)][_0x172893(0x1a9)][_0x172893(0x1d4)]),_0x58964f[_0x172893(0x1be)](_0x56c52e);}),_0x5d3ff9[_0x10a97f(0x1c4)](_0x264ae5));}});},'strategy':a33_0x1b92cb(createXYZ({'tileSize':0x200}))}),_0x53f3d5=new a33_0x228bf8({'source':_0x5d3ff9,'zIndex':_0x2cea8c[_0x2dc0c2(0x1cc)]});if(_0x3dcbac[_0x2dc0c2(0x1a5)]['renderer'][_0x2dc0c2(0x1a4)]=='simple'&&_0x3dcbac[_0x2dc0c2(0x1a5)][_0x2dc0c2(0x1a9)][_0x2dc0c2(0x1ce)]){let _0x171d26=transformedEsriStyle(_0x3dcbac[_0x2dc0c2(0x1a5)][_0x2dc0c2(0x1a9)][_0x2dc0c2(0x1ce)]);_0x53f3d5[_0x2dc0c2(0x1be)](_0x171d26);}return _0x53f3d5;}[a33_0x23c586(0x1bc)](_0x1b67ca){const _0x26dfe6=a33_0x23c586;this[_0x26dfe6(0x1b9)][_0x26dfe6(0x1d6)]=_0x1b67ca;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x54788b,_0x4a7e10){const _0x46d3b4=a34_0x2f58,_0x3551de=_0x54788b();while(!![]){try{const _0x4ebb76=parseInt(_0x46d3b4(0x8d))/0x1+parseInt(_0x46d3b4(0x97))/0x2+-parseInt(_0x46d3b4(0x8c))/0x3+-parseInt(_0x46d3b4(0x9f))/0x4*(parseInt(_0x46d3b4(0xa3))/0x5)+-parseInt(_0x46d3b4(0x95))/0x6+-parseInt(_0x46d3b4(0x8e))/0x7*(parseInt(_0x46d3b4(0x98))/0x8)+-parseInt(_0x46d3b4(0x9b))/0x9*(-parseInt(_0x46d3b4(0x93))/0xa);if(_0x4ebb76===_0x4a7e10)break;else _0x3551de['push'](_0x3551de['shift']());}catch(_0x5913e7){_0x3551de['push'](_0x3551de['shift']());}}}(a34_0x5736,0x5741c));function a34_0x5736(){const _0x36c93e=['initialExtent','24297wGsujW','85088ahBclH','14XLWtXm','ymin','ymax','origin','xmax','290TsgnSM','projection','1919910XGVrBQ','url','1355208kjBxDj','2686312LIvPnR','EPSG:','xmin','310770NkURJB','wkid','cols','tileInfo','8pxbMbz','layerInfo','fullExtent','/tile/{z}/{y}/{x}','1017490QPFYVo','resolution','spatialReference','anonymous','opacity','mapIndex','lods'];a34_0x5736=function(){return _0x36c93e;};return a34_0x5736();}function a34_0x2f58(_0x32b08a,_0x39e2cd){const _0x5736bd=a34_0x5736();return a34_0x2f58=function(_0x2f585c,_0x7e91ad){_0x2f585c=_0x2f585c-0x88;let _0x4c865f=_0x5736bd[_0x2f585c];return _0x4c865f;},a34_0x2f58(_0x32b08a,_0x39e2cd);}import a34_0x5ab094 from'ol/layer/Tile';import a34_0x1fe38d from'ol/source/XYZ';import a34_0xe39275 from'ol/tilegrid/TileGrid';import{registerProj}from'../utils/RegisterProjUtil';import{appendPath}from'../utils/UrlUtil';export default class ArcgisTileLayer extends a34_0x5ab094{constructor(_0x351adb,_0x685787){const _0x41fe74=a34_0x2f58,_0x1d910b=_0x351adb[_0x41fe74(0x96)]?_0x351adb[_0x41fe74(0x96)]:'',_0xeb5d3c=appendPath(_0x1d910b,_0x41fe74(0xa2)),_0x594f2d=[_0x685787['initialExtent'][_0x41fe74(0x9a)],_0x685787[_0x41fe74(0x8b)][_0x41fe74(0x8f)],_0x685787[_0x41fe74(0x8b)][_0x41fe74(0x92)],_0x685787['initialExtent'][_0x41fe74(0x90)]],_0x59b6fb=[_0x685787['fullExtent'][_0x41fe74(0x9a)],_0x685787[_0x41fe74(0xa1)][_0x41fe74(0x8f)],_0x685787[_0x41fe74(0xa1)]['xmax'],_0x685787['fullExtent'][_0x41fe74(0x90)]];let _0x5cc1f5;_0x685787['spatialReference'][_0x41fe74(0x9c)]?_0x5cc1f5=registerProj(_0x41fe74(0x99)+_0x685787[_0x41fe74(0xa5)][_0x41fe74(0x9c)],_0x59b6fb):_0x5cc1f5=registerProj(_0x685787[_0x41fe74(0xa5)]['wkt'],_0x59b6fb);let _0x334ac9=[];for(let _0x5ba744=0x0,_0x133eb8=_0x685787[_0x41fe74(0x9e)][_0x41fe74(0x8a)]['length'];_0x5ba744<_0x133eb8;_0x5ba744++){_0x334ac9['push'](_0x685787[_0x41fe74(0x9e)][_0x41fe74(0x8a)][_0x5ba744][_0x41fe74(0xa4)]);}super({'opacity':_0x351adb[_0x41fe74(0x88)],'zIndex':_0x351adb[_0x41fe74(0x89)],'maxResolution':_0x334ac9[0x0]*0x2,'source':new a34_0x1fe38d({'url':_0xeb5d3c,'projection':_0x5cc1f5,'crossOrigin':_0x41fe74(0xa6),'tileGrid':new a34_0xe39275({'extent':_0x59b6fb,'origin':[_0x685787[_0x41fe74(0x9e)][_0x41fe74(0x91)]['x'],_0x685787[_0x41fe74(0x9e)]['origin']['y']],'resolutions':_0x334ac9,'tileSize':[_0x685787['tileInfo']['rows'],_0x685787[_0x41fe74(0x9e)][_0x41fe74(0x9d)]]})})}),this['id']=_0x351adb['id'],this[_0x41fe74(0x8b)]=_0x594f2d,this[_0x41fe74(0x94)]=_0x5cc1f5,this[_0x41fe74(0xa0)]=_0x351adb;}}
|
package/layers/ArcgisWMSLayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a35_0x2cea5d=a35_0x2ad8;(function(_0x311e20,_0x5ace42){const _0x40f709=a35_0x2ad8,_0x55f656=_0x311e20();while(!![]){try{const _0x1eb2e7=-parseInt(_0x40f709(0x103))/0x1+-parseInt(_0x40f709(0x105))/0x2+parseInt(_0x40f709(0x111))/0x3*(parseInt(_0x40f709(0xff))/0x4)+parseInt(_0x40f709(0x107))/0x5+parseInt(_0x40f709(0xfe))/0x6+parseInt(_0x40f709(0x106))/0x7+-parseInt(_0x40f709(0x10e))/0x8*(parseInt(_0x40f709(0x109))/0x9);if(_0x1eb2e7===_0x5ace42)break;else _0x55f656['push'](_0x55f656['shift']());}catch(_0x5b8ef2){_0x55f656['push'](_0x55f656['shift']());}}}(a35_0x11d0,0xcfd2c));function a35_0x2ad8(_0x49633c,_0x130d68){const _0x11d062=a35_0x11d0();return a35_0x2ad8=function(_0x2ad80f,_0x822d){_0x2ad80f=_0x2ad80f-0xfe;let _0x579551=_0x11d062[_0x2ad80f];return _0x579551;},a35_0x2ad8(_0x49633c,_0x130d68);}import{ImageWMS as a35_0x3e4cf9}from'ol/source';function a35_0x11d0(){const _0x3d35e9=['847406dRPFQf','8931146Nugtjd','3355495YDIZDZ','initialExtent','58770azPtui','mapIndex','CQL_FILTER','join','wkid','2064YFUaXy','url','opacity','105444NdNAny','7727298EHYGJO','84DQuhjO','getSource','loadFilter','setFilter','1013281iQHQDE','initExtent'];a35_0x11d0=function(){return _0x3d35e9;};return a35_0x11d0();}import{Image as a35_0x12e5df}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisWMSLayer extends a35_0x12e5df{constructor(_0x435115,_0x238d6c){const _0x4b76e3=a35_0x2ad8;var _0x49a30d;let _0x47a63c=registerProj('EPSG:'+_0x238d6c[_0x4b76e3(0x10d)],undefined),_0x21043b={'LAYERS':(_0x49a30d=_0x435115['sublayers'])===null||_0x49a30d===void 0x0?void 0x0:_0x49a30d[_0x4b76e3(0x10c)](','),'VERSION':'1.1.0'};_0x435115[_0x4b76e3(0x101)]&&(_0x21043b[_0x4b76e3(0x10b)]=_0x435115[_0x4b76e3(0x101)]),super({'opacity':_0x435115[_0x4b76e3(0x110)],'zIndex':_0x435115[_0x4b76e3(0x10a)],'source':new a35_0x3e4cf9({'crossOrigin':'anonymous','url':_0x435115[_0x4b76e3(0x10f)],'params':_0x21043b})}),this['id']=_0x435115['id'],this[_0x4b76e3(0x108)]=_0x238d6c[_0x4b76e3(0x104)],this['projection']=_0x47a63c,this['layerInfo']=_0x435115;}['refresh'](){}[a35_0x2cea5d(0x102)](_0x75ebbf){const _0x4fa07c=a35_0x2cea5d;var _0x27428a;(_0x27428a=this[_0x4fa07c(0x100)]())===null||_0x27428a===void 0x0?void 0x0:_0x27428a['updateParams']({'CQL_FILTER':_0x75ebbf});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a36_0x391e(){const _0x297902=['projection','src','getMatrixIds','972756Eolsld','312cXEtPY','layer','11880RQaDOO','6186jCygBJ','requestEncoding','replace','length','token','layerInfo','140270jWJuHd','wkid','?http','opacity','join','boundingBoxExtent','indexOf','format','4711608cGLcwG','4XXtzqE','url','sublayers','getImage','mapIndex','name','52lKsHpp','11ZsBFGl','origins_','46151FBpOPU','4735190LanlkT','urls','tileGrid'];a36_0x391e=function(){return _0x297902;};return a36_0x391e();}(function(_0xc69b0,_0x3c2812){const _0x7fc736=a36_0x58b1,_0x46a526=_0xc69b0();while(!![]){try{const _0x151eea=-parseInt(_0x7fc736(0xfe))/0x1*(-parseInt(_0x7fc736(0xef))/0x2)+parseInt(_0x7fc736(0xeb))/0x3+parseInt(_0x7fc736(0xe1))/0x4*(-parseInt(_0x7fc736(0xf5))/0x5)+-parseInt(_0x7fc736(0xee))/0x6+parseInt(_0x7fc736(0xe4))/0x7*(parseInt(_0x7fc736(0xec))/0x8)+parseInt(_0x7fc736(0xfd))/0x9+parseInt(_0x7fc736(0xe5))/0xa*(-parseInt(_0x7fc736(0xe2))/0xb);if(_0x151eea===_0x3c2812)break;else _0x46a526['push'](_0x46a526['shift']());}catch(_0x402a3e){_0x46a526['push'](_0x46a526['shift']());}}}(a36_0x391e,0x43a46));import a36_0x4922de from'ol/layer/Tile';function a36_0x58b1(_0x425620,_0x3c49dd){const _0x391e75=a36_0x391e();return a36_0x58b1=function(_0x58b1ab,_0x3445f2){_0x58b1ab=_0x58b1ab-0xdc;let _0x3cbd6f=_0x391e75[_0x58b1ab];return _0x3cbd6f;},a36_0x58b1(_0x425620,_0x3c49dd);}import a36_0x28ae18,{optionsFromCapabilities}from'ol/source/WMTS.js';import a36_0x2af1f7 from'ol/tilegrid/WMTS';import{registerProj}from'../utils/RegisterProjUtil';import{addArgument,getUrlParams}from'../utils/UrlUtil';export default class ArcgisWMTSLayer extends a36_0x4922de{constructor(_0x5ce7dd,_0x1409ad){const _0x3e4f4c=a36_0x58b1;var _0x203f44;let _0x490db1='';_0x5ce7dd[_0x3e4f4c(0xdd)]&&_0x5ce7dd[_0x3e4f4c(0xdd)][_0x3e4f4c(0xf2)]>0x0&&(_0x490db1=_0x5ce7dd[_0x3e4f4c(0xdd)][_0x3e4f4c(0xf9)](','));const _0xba62db='EPSG:'+_0x1409ad[_0x3e4f4c(0xf6)];let _0x382190=registerProj(_0xba62db);const _0x572e07=optionsFromCapabilities(_0x1409ad['sourceXml'],{'layer':(_0x203f44=_0x5ce7dd[_0x3e4f4c(0xdd)])===null||_0x203f44===void 0x0?void 0x0:_0x203f44[0x0],'matrixSet':_0x1409ad['tileMatrixSet'],'format':'image/png'});let _0x128dea=_0x572e07[_0x3e4f4c(0xe7)][_0x3e4f4c(0xe3)][0x0];_0x128dea[0x0]===0x5a&&_0x128dea[0x1]===-0xb4&&(_0x128dea=[_0x128dea[0x1],_0x128dea[0x0]]),super({'opacity':_0x5ce7dd[_0x3e4f4c(0xf8)],'zIndex':_0x5ce7dd[_0x3e4f4c(0xdf)],'source':new a36_0x28ae18({'urls':_0x572e07[_0x3e4f4c(0xe6)],'requestEncoding':_0x572e07[_0x3e4f4c(0xf0)],'layer':_0x572e07[_0x3e4f4c(0xed)],'tileLoadFunction':function(_0x26f8af,_0x1a554a){const _0x31ad96=_0x3e4f4c,_0xab095b=_0x5ce7dd[_0x31ad96(0xdc)]?_0x5ce7dd[_0x31ad96(0xdc)]:'';let _0x59f052=getUrlParams(_0xab095b);if((_0x59f052===null||_0x59f052===void 0x0?void 0x0:_0x59f052['length'])>0x0)for(let _0x11e581 of _0x59f052){_0x1a554a=addArgument(_0x1a554a,_0x11e581[_0x31ad96(0xe0)],_0x11e581['value']);}let _0x37d958=_0x1a554a[_0x31ad96(0xfb)](_0x31ad96(0xf7));_0x37d958!==-0x1?_0x1a554a[_0x31ad96(0xfb)](_0x31ad96(0xf3))===-0x1&&_0x1a554a[_0x31ad96(0xfb)]('tk')===-0x1?_0x26f8af[_0x31ad96(0xde)]()['src']=_0x1a554a[_0x31ad96(0xf1)]('&','?'):_0x26f8af[_0x31ad96(0xde)]()[_0x31ad96(0xe9)]=_0x1a554a:_0x26f8af[_0x31ad96(0xde)]()['src']=_0x1a554a;},'matrixSet':_0x572e07['matrixSet'],'format':_0x572e07[_0x3e4f4c(0xfc)],'projection':_0x572e07['projection'],'tileGrid':new a36_0x2af1f7({'origin':_0x128dea,'resolutions':_0x572e07[_0x3e4f4c(0xe7)]['getResolutions'](),'matrixIds':_0x572e07[_0x3e4f4c(0xe7)][_0x3e4f4c(0xea)](),'extent':_0x1409ad[_0x3e4f4c(0xfa)]}),'style':_0x1409ad['style'],'wrapX':!![]})}),this['id']=_0x5ce7dd['id'],this['initialExtent']=_0x1409ad[_0x3e4f4c(0xfa)],this[_0x3e4f4c(0xe8)]=_0x382190,this[_0x3e4f4c(0xf4)]=_0x5ce7dd;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1c4dc6,_0x223cae){const _0x30450a=a37_0xfdfa,_0x21be38=_0x1c4dc6();while(!![]){try{const _0x1be546=-parseInt(_0x30450a(0x1a6))/0x1+-parseInt(_0x30450a(0x194))/0x2*(parseInt(_0x30450a(0x1a8))/0x3)+-parseInt(_0x30450a(0x18c))/0x4*(-parseInt(_0x30450a(0x19e))/0x5)+-parseInt(_0x30450a(0x1a9))/0x6*(-parseInt(_0x30450a(0x1ac))/0x7)+-parseInt(_0x30450a(0x191))/0x8+parseInt(_0x30450a(0x192))/0x9*(parseInt(_0x30450a(0x1ad))/0xa)+parseInt(_0x30450a(0x18f))/0xb*(parseInt(_0x30450a(0x197))/0xc);if(_0x1be546===_0x223cae)break;else _0x21be38['push'](_0x21be38['shift']());}catch(_0x2d84fc){_0x21be38['push'](_0x21be38['shift']());}}}(a37_0x34ae,0xa434b));import a37_0x5c1de9 from'ol/layer/VectorTile';import a37_0x4d4787 from'ol/source/VectorTile';import a37_0x20b3f4 from'ol/format/MVT';import{registerProj}from'../utils/RegisterProjUtil';function a37_0xfdfa(_0xd65e69,_0x441405){const _0x34ae07=a37_0x34ae();return a37_0xfdfa=function(_0xfdfa0b,_0x4c3a8f){_0xfdfa0b=_0xfdfa0b-0x18b;let _0x22695b=_0x34ae07[_0xfdfa0b];return _0x22695b;},a37_0xfdfa(_0xd65e69,_0x441405);}import a37_0x793aa0 from'ol/tilegrid/WMTS';import{optionsFromCapabilities}from'ol/source/WMTS';import{addArgument}from'../utils/UrlUtil';export default class GeoserverVectorTileLayer extends a37_0x5c1de9{constructor(_0x1b4ace,_0xa96364){const _0x124568=a37_0xfdfa;var _0x43adcc;let _0x1c4ecd=registerProj(_0x124568(0x195)+_0xa96364[_0x124568(0x1ab)]);const _0x5be4a9=optionsFromCapabilities(_0xa96364[_0x124568(0x190)],{'layer':(_0x43adcc=_0x1b4ace[_0x124568(0x1a5)])===null||_0x43adcc===void 0x0?void 0x0:_0x43adcc[0x0],'matrixSet':_0xa96364[_0x124568(0x18b)],'format':_0x124568(0x1a2)});let _0x57e567=_0x1b4ace['sublayers']&&_0x1b4ace[_0x124568(0x1a5)]['length']>0x0?_0x1b4ace[_0x124568(0x1a5)][0x0]:'';const _0xc89c9={'REQUEST':_0x124568(0x19b),'SERVICE':'WMTS','VERSION':_0x124568(0x1a0),'LAYER':_0x57e567,'STYLE':_0xa96364[_0x124568(0x19d)][_0x124568(0x19f)](),'TILEMATRIX':_0xa96364[_0x124568(0x18b)]+_0x124568(0x19a),'TILEMATRIXSET':_0xa96364[_0x124568(0x18b)]['toString'](),'FORMAT':_0x124568(0x18e),'TILECOL':_0x124568(0x198),'TILEROW':_0x124568(0x1a1)};let _0xa60e71=_0x1b4ace[_0x124568(0x19c)]?_0x1b4ace[_0x124568(0x19c)]:'';for(const _0x51cc34 in _0xc89c9){_0xa60e71=addArgument(_0xa60e71,_0x51cc34,_0xc89c9[_0x51cc34]);}super({'opacity':_0x1b4ace[_0x124568(0x1a7)],'zIndex':_0x1b4ace[_0x124568(0x193)],'declutter':!![],'source':new a37_0x4d4787({'projection':_0x124568(0x195)+_0xa96364[_0x124568(0x1ab)],'format':new a37_0x20b3f4(),'wrapX':!![],'extent':_0xa96364['boundingBoxExtent'],'tileGrid':new a37_0x793aa0({'tileSize':_0x5be4a9[_0x124568(0x196)]['tileSizes_'][0x0],'origin':_0x5be4a9[_0x124568(0x196)][_0x124568(0x1aa)][0x0],'resolutions':_0x5be4a9[_0x124568(0x196)]['getResolutions'](),'matrixIds':_0x5be4a9[_0x124568(0x196)][_0x124568(0x18d)]()}),'url':_0xa60e71})}),this['id']=_0x1b4ace['id'],this[_0x124568(0x1a4)]=_0xa96364['boundingBoxExtent'],this[_0x124568(0x199)]=_0x1c4ecd,this[_0x124568(0x1a3)]=_0x1b4ace;}}function a37_0x34ae(){const _0x1aa23b=['application/vnd.mapbox-vector-tile','33ncFtTp','sourceXml','1151848hZoUpC','216549pSKGUC','mapIndex','101794BwxqZb','EPSG:','tileGrid','5465352QZPpEA','{x}','projection',':{z}','GetTile','url','style','271515aFKtgj','toString','1.0.0','{y}','image/png','layerInfo','initialExtent','sublayers','645038hCaMoU','opacity','66SjxlqA','384mOJdru','origins_','wkid','5677ufLLMh','190QwCOUd','tileMatrixSet','52kaJkey','getMatrixIds'];a37_0x34ae=function(){return _0x1aa23b;};return a37_0x34ae();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a38_0x9d5d(_0x535b3f,_0x13afd6){const _0x51cf3b=a38_0x51cf();return a38_0x9d5d=function(_0x9d5db5,_0x31ac5b){_0x9d5db5=_0x9d5db5-0xd4;let _0x165785=_0x51cf3b[_0x9d5db5];return _0x165785;},a38_0x9d5d(_0x535b3f,_0x13afd6);}const a38_0x37d323=a38_0x9d5d;function a38_0x51cf(){const _0x3e1d26=['781FKrhrQ','serializeToString','type','catch','POST','3868479VzZZYc','not','between','2799643WrxVSI','warn','param','303ZxfCXj','string','lessThan','length','initExtent','1744520JcBkgz','sublayers','222380CaOOnj','parseFilter','read','readFeatures','17932XqvoZZ','param字段不存在','382812lqqpMh','filter','loadFilter','writeGetFeature','then','push','type字段不存在','toLowerCase','application/json','!==','409186xrWgbD','getSource','removeLoadedExtent','notEqualTo','EPSG:','projection','name','greaterThanOrEqualTo','and','url','apply','getCode','initialExtent','equalTo','json','6MmDYQs','lessThanOrEqualTo','8FTEdQh'];a38_0x51cf=function(){return _0x3e1d26;};return a38_0x51cf();}(function(_0x279774,_0x37940e){const _0xbeb8d3=a38_0x9d5d,_0x4aa358=_0x279774();while(!![]){try{const _0xa2d5cd=parseInt(_0xbeb8d3(0xee))/0x1+-parseInt(_0xbeb8d3(0xf8))/0x2+parseInt(_0xbeb8d3(0xe1))/0x3*(parseInt(_0xbeb8d3(0xec))/0x4)+parseInt(_0xbeb8d3(0xe6))/0x5+-parseInt(_0xbeb8d3(0x107))/0x6*(-parseInt(_0xbeb8d3(0xde))/0x7)+-parseInt(_0xbeb8d3(0xd5))/0x8*(-parseInt(_0xbeb8d3(0xdb))/0x9)+-parseInt(_0xbeb8d3(0xe8))/0xa*(parseInt(_0xbeb8d3(0xd6))/0xb);if(_0xa2d5cd===_0x37940e)break;else _0x4aa358['push'](_0x4aa358['shift']());}catch(_0x5a57ca){_0x4aa358['push'](_0x4aa358['shift']());}}}(a38_0x51cf,0x38584));import a38_0x37eb49 from'ol/source/Vector';import a38_0xc1a3ed from'ol/format/GeoJSON';import{Vector as a38_0x132a99}from'ol/layer';import a38_0x349268 from'ol/format/WFS';import{registerProj}from'../utils/RegisterProjUtil';import{bbox}from'ol/loadingstrategy';import a38_0x28017b from'../utils/format/CQL';import*as a38_0x5b06b1 from'ol/format/filter';export default class GeoserverWFSLayer extends a38_0x132a99{constructor(_0x2c7257,_0x138e24){const _0x394813=a38_0x9d5d;let _0x38fe9a=registerProj(_0x394813(0xfc)+_0x138e24['wkid']);const _0x10bfae=_0x138e24['layerFields']['find'](_0x45b54b=>_0x45b54b['fieldType']==0x6);super({'zIndex':_0x2c7257['mapIndex'],'source':new a38_0x37eb49({'format':new a38_0xc1a3ed(),'loader':(_0x1d4bca,_0x309cfe,_0x457aa1,_0xee4e98,_0x2404f3)=>{const _0xf4577b=_0x394813;let _0x21ab73=_0x2c7257[_0xf4577b(0xf0)],_0x1714cd={'srsName':_0x457aa1[_0xf4577b(0x103)](),'featureTypes':_0x2c7257[_0xf4577b(0xe7)],'bbox':_0x1d4bca,'geometryName':_0x10bfae?_0x10bfae[_0xf4577b(0xfe)]:'','outputFormat':_0xf4577b(0xf6)};_0x21ab73&&(typeof _0x21ab73===_0xf4577b(0xe2)?_0x1714cd[_0xf4577b(0xef)]=new a38_0x28017b()[_0xf4577b(0xea)](_0x21ab73):_0x1714cd[_0xf4577b(0xef)]=this[_0xf4577b(0xe9)](_0x21ab73));var _0x247139=new a38_0x349268()[_0xf4577b(0xf1)](_0x1714cd);let _0xa01629=_0x2c7257[_0xf4577b(0x101)]?_0x2c7257[_0xf4577b(0x101)]:'';fetch(_0xa01629,{'method':_0xf4577b(0xda),'body':new XMLSerializer()[_0xf4577b(0xd7)](_0x247139)})['then'](_0x4bf4c6=>{const _0x3fa72d=_0xf4577b;return _0x4bf4c6[_0x3fa72d(0x106)]();})[_0xf4577b(0xf2)](_0x4a1f8e=>{const _0x10af10=_0xf4577b,_0x215bd3=new a38_0xc1a3ed()[_0x10af10(0xeb)](_0x4a1f8e);let _0x4d0db2=this[_0x10af10(0xf9)]();_0x4d0db2&&_0x4d0db2['addFeatures'](_0x215bd3);if(_0xee4e98)_0xee4e98(_0x215bd3);})[_0xf4577b(0xd9)](()=>{const _0x2d89ce=_0xf4577b;let _0x28f78a=this[_0x2d89ce(0xf9)]();_0x28f78a&&_0x28f78a[_0x2d89ce(0xfa)](_0x1d4bca);if(_0x2404f3)_0x2404f3();});},'strategy':bbox})}),this['id']=_0x2c7257['id'],this[_0x394813(0x104)]=_0x138e24[_0x394813(0xe5)],this[_0x394813(0xfd)]=_0x38fe9a,this['layerInfo']=_0x2c7257;}[a38_0x37d323(0xe9)](_0x21d56a){const _0x482a23=a38_0x37d323;if(!_0x21d56a[_0x482a23(0xd8)]){console[_0x482a23(0xdf)](_0x482a23(0xf4));return;}if(!_0x21d56a[_0x482a23(0xe0)]){console[_0x482a23(0xdf)](_0x482a23(0xed));return;}let _0xc3094=[];switch(_0x21d56a[_0x482a23(0xd8)][_0x482a23(0xf5)]()){case _0x482a23(0x100):for(let _0x4fe2d9=0x0;_0x4fe2d9<_0x21d56a[_0x482a23(0xe0)]['length'];_0x4fe2d9++){let _0x2f2272=this['parseFilter'](_0x21d56a[_0x482a23(0xe0)][_0x4fe2d9]);_0xc3094[_0x482a23(0xf3)](_0x2f2272);}return a38_0x5b06b1[_0x482a23(0x100)][_0x482a23(0x102)](null,_0xc3094);case'or':for(let _0x6784ca=0x0;_0x6784ca<_0x21d56a[_0x482a23(0xe0)][_0x482a23(0xe4)];_0x6784ca++){let _0x53bd28=this[_0x482a23(0xe9)](_0x21d56a[_0x482a23(0xe0)][_0x6784ca]);_0xc3094['push'](_0x53bd28);}return a38_0x5b06b1['or'][_0x482a23(0x102)](null,_0xc3094);case _0x482a23(0xdc):for(let _0x299f50=0x0;_0x299f50<_0x21d56a[_0x482a23(0xe0)][_0x482a23(0xe4)];_0x299f50++){let _0x1100dc=this[_0x482a23(0xe9)](_0x21d56a[_0x482a23(0xe0)][_0x299f50]);_0xc3094['push'](_0x1100dc);}return a38_0x5b06b1['not'][_0x482a23(0x102)](null,_0xc3094);case'=':return a38_0x5b06b1[_0x482a23(0x105)](_0x21d56a[_0x482a23(0xe0)][0x0],_0x21d56a[_0x482a23(0xe0)][0x1]);case _0x482a23(0xf7):return a38_0x5b06b1[_0x482a23(0xfb)](_0x21d56a['param'][0x0],_0x21d56a[_0x482a23(0xe0)][0x1]);case'>':return a38_0x5b06b1['greaterThan'](_0x21d56a[_0x482a23(0xe0)][0x0],_0x21d56a[_0x482a23(0xe0)][0x1]);case'<':return a38_0x5b06b1[_0x482a23(0xe3)](_0x21d56a[_0x482a23(0xe0)][0x0],_0x21d56a['param'][0x1]);case'>=':return a38_0x5b06b1[_0x482a23(0xff)](_0x21d56a[_0x482a23(0xe0)][0x0],_0x21d56a['param'][0x1]);case'<=':return a38_0x5b06b1[_0x482a23(0xd4)](_0x21d56a[_0x482a23(0xe0)][0x0],_0x21d56a[_0x482a23(0xe0)][0x1]);case'between':return a38_0x5b06b1[_0x482a23(0xdd)](_0x21d56a['param'][0x0],_0x21d56a[_0x482a23(0xe0)][0x1],_0x21d56a[_0x482a23(0xe0)][0x2]);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a39_0x3ec2be=a39_0x1f78;(function(_0x1ba42c,_0x431df8){const _0xd24e68=a39_0x1f78,_0x21f773=_0x1ba42c();while(!![]){try{const _0x48f8ae=-parseInt(_0xd24e68(0x171))/0x1*(parseInt(_0xd24e68(0x177))/0x2)+parseInt(_0xd24e68(0x175))/0x3*(-parseInt(_0xd24e68(0x174))/0x4)+parseInt(_0xd24e68(0x17c))/0x5+-parseInt(_0xd24e68(0x17a))/0x6+parseInt(_0xd24e68(0x170))/0x7+-parseInt(_0xd24e68(0x172))/0x8*(-parseInt(_0xd24e68(0x17b))/0x9)+parseInt(_0xd24e68(0x185))/0xa;if(_0x48f8ae===_0x431df8)break;else _0x21f773['push'](_0x21f773['shift']());}catch(_0x190048){_0x21f773['push'](_0x21f773['shift']());}}}(a39_0xf268,0x37a51));import{ImageWMS as a39_0x25267d}from'ol/source';function a39_0x1f78(_0x177392,_0x1edf92){const _0xf268c5=a39_0xf268();return a39_0x1f78=function(_0x1f78b1,_0x55657c){_0x1f78b1=_0x1f78b1-0x16f;let _0x3a5ac1=_0xf268c5[_0x1f78b1];return _0x3a5ac1;},a39_0x1f78(_0x177392,_0x1edf92);}import{Image as a39_0x24edab}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';function a39_0xf268(){const _0x19797b=['mapIndex','1028874hBWXLL','19tZjERw','28504chDEwS','projection','4rNzqHb','226146DDkKdU','1.1.0','33772NZczmb','CQL_FILTER','wkid','1271772ebUYjO','225IHrzcL','2125350MXBRJk','updateParams','layerInfo','setFilter','EPSG:','opacity','loadFilter','join','refresh','1749720RRdlJe'];a39_0xf268=function(){return _0x19797b;};return a39_0xf268();}export default class GeoserverWMSLayer extends a39_0x24edab{constructor(_0x16bbf6,_0x24a2c2){const _0x41fb8c=a39_0x1f78;var _0x581b87;let _0x4dbd18=registerProj(_0x41fb8c(0x180)+_0x24a2c2[_0x41fb8c(0x179)]),_0x31cc9e={'LAYERS':(_0x581b87=_0x16bbf6['sublayers'])===null||_0x581b87===void 0x0?void 0x0:_0x581b87[_0x41fb8c(0x183)](','),'VERSION':_0x41fb8c(0x176)};_0x16bbf6[_0x41fb8c(0x182)]&&(_0x31cc9e[_0x41fb8c(0x178)]=_0x16bbf6[_0x41fb8c(0x182)]),super({'opacity':_0x16bbf6[_0x41fb8c(0x181)],'zIndex':_0x16bbf6[_0x41fb8c(0x16f)],'source':new a39_0x25267d({'crossOrigin':'anonymous','url':_0x16bbf6['url'],'params':_0x31cc9e})}),this['id']=_0x16bbf6['id'],this['initialExtent']=_0x24a2c2['initExtent'],this[_0x41fb8c(0x173)]=_0x4dbd18,this[_0x41fb8c(0x17e)]=_0x16bbf6;}[a39_0x3ec2be(0x184)](){}[a39_0x3ec2be(0x17f)](_0x4b1984){const _0x7b732a=a39_0x3ec2be;var _0x198100;(_0x198100=this['getSource']())===null||_0x198100===void 0x0?void 0x0:_0x198100[_0x7b732a(0x17d)]({'CQL_FILTER':_0x4b1984});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x13bad6,_0xc78816){const _0x3bf804=a40_0x31bc,_0x12a076=_0x13bad6();while(!![]){try{const _0x3491c3=-parseInt(_0x3bf804(0x8b))/0x1*(parseInt(_0x3bf804(0x85))/0x2)+parseInt(_0x3bf804(0x83))/0x3+-parseInt(_0x3bf804(0x89))/0x4*(parseInt(_0x3bf804(0x82))/0x5)+parseInt(_0x3bf804(0x8d))/0x6+-parseInt(_0x3bf804(0x95))/0x7*(parseInt(_0x3bf804(0x94))/0x8)+-parseInt(_0x3bf804(0x86))/0x9*(-parseInt(_0x3bf804(0x8c))/0xa)+parseInt(_0x3bf804(0x8a))/0xb;if(_0x3491c3===_0xc78816)break;else _0x12a076['push'](_0x12a076['shift']());}catch(_0x5a9288){_0x12a076['push'](_0x12a076['shift']());}}}(a40_0x59d9,0x7bd13));function a40_0x31bc(_0x192bc0,_0x597876){const _0x59d956=a40_0x59d9();return a40_0x31bc=function(_0x31bc8e,_0x36903d){_0x31bc8e=_0x31bc8e-0x82;let _0x411081=_0x59d956[_0x31bc8e];return _0x411081;},a40_0x31bc(_0x192bc0,_0x597876);}import a40_0x12e11f from'ol/layer/Tile';import a40_0xb4b3f9,{optionsFromCapabilities}from'ol/source/WMTS.js';function a40_0x59d9(){const _0x282750=['EPSG:','image/png','tileMatrixSet','未找到投影信息','initialExtent','解析元数据失败','2671904OIkyQA','7yVufht','10vjtSxz','2383740mtpOdY','boundingBoxExtent','784954fDauBE','607788wBInau','wkid','mapIndex','1741372mEdXSD','17911905fKqarS','2UCrucA','10wCzffv','37896tvVySh'];a40_0x59d9=function(){return _0x282750;};return a40_0x59d9();}import{registerProj}from'../utils/RegisterProjUtil';export default class GeoserverWMTSLayer extends a40_0x12e11f{constructor(_0x3d7b45,_0x52b94f){const _0x24784a=a40_0x31bc;var _0x1bf8c8;const _0x21cc3e=_0x24784a(0x8e)+_0x52b94f[_0x24784a(0x87)];let _0x2ce7c4=registerProj(_0x21cc3e);if(!_0x2ce7c4)throw new Error(_0x24784a(0x91));const _0x2bd3f7=optionsFromCapabilities(_0x52b94f['sourceXml'],{'layer':(_0x1bf8c8=_0x3d7b45['sublayers'])===null||_0x1bf8c8===void 0x0?void 0x0:_0x1bf8c8[0x0],'matrixSet':_0x52b94f[_0x24784a(0x90)],'format':_0x24784a(0x8f)});if(!_0x2bd3f7)throw new Error(_0x24784a(0x93));super({'opacity':_0x3d7b45['opacity'],'zIndex':_0x3d7b45[_0x24784a(0x88)],'source':new a40_0xb4b3f9(_0x2bd3f7)}),this['id']=_0x3d7b45['id'],this[_0x24784a(0x92)]=_0x52b94f[_0x24784a(0x84)],this['projection']=_0x2ce7c4,this['layerInfo']=_0x3d7b45;}}
|
package/layers/LayerManager.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a42_0x5aac32=a42_0x395a;(function(_0x20a5a9,_0x3c7f3b){const _0x8c3811=a42_0x395a,_0x14390c=_0x20a5a9();while(!![]){try{const _0xd37be0=-parseInt(_0x8c3811(0xe1))/0x1*(-parseInt(_0x8c3811(0xe7))/0x2)+-parseInt(_0x8c3811(0xdb))/0x3*(-parseInt(_0x8c3811(0xe6))/0x4)+parseInt(_0x8c3811(0xe4))/0x5*(-parseInt(_0x8c3811(0xec))/0x6)+parseInt(_0x8c3811(0xda))/0x7+parseInt(_0x8c3811(0xe8))/0x8+parseInt(_0x8c3811(0xeb))/0x9*(-parseInt(_0x8c3811(0xe5))/0xa)+-parseInt(_0x8c3811(0xdf))/0xb;if(_0xd37be0===_0x3c7f3b)break;else _0x14390c['push'](_0x14390c['shift']());}catch(_0x5ceb4c){_0x14390c['push'](_0x14390c['shift']());}}}(a42_0xc36b,0xb01f0));function a42_0x395a(_0x2f65e5,_0x1c4139){const _0xc36baf=a42_0xc36b();return a42_0x395a=function(_0x395a8b,_0xc6827){_0x395a8b=_0x395a8b-0xd9;let _0x24227d=_0xc36baf[_0x395a8b];return _0x24227d;},a42_0x395a(_0x2f65e5,_0x1c4139);}import a42_0x43c1e7 from'./ArcgisDynamicLayer';import a42_0x33ec75 from'./ArcgisFeatureLayer';import a42_0x41ecf7 from'./TDTLayer';import{getDynamicLayerInfo,getWMTSLayerCapabilities,getFeatureLayerInfo,getWMSLayerCapabilities,getWFSLayerCapabilities}from'../capabilities';import a42_0x4564c8 from'./ArcgisTileLayer';import a42_0x379ceb from'./GeoserverWMSLayer';import a42_0x30b3bf from'./GeoserverWMTSLayer';import a42_0x1105e2 from'./ArcgisWMSLayer';import a42_0x2d1936 from'./ArcgisWMTSLayer';import a42_0x2b555b from'./GeoserverWFSLayer';import a42_0xad3030 from'./GeoserverVectorTile';function a42_0xc36b(){const _0x13860e=['26582853ZWaNzD','url','194588gBKqKS','getGeoserverVectorTileLayer','getGeoserverWMTSLayer','1700UWfuqq','6349290BCXCVy','4bZFSuF','2dMzdUA','10003712EcSPWs','sublayers','getGeoserverWmsLayer','9rsKOPy','2226WNZbSy','getArcgisWmsLayer','getGeoserverWFSLayer','getDynamicLayer','length','9144667ujqUTm','3442953bRSPmY','getTDTLayer','getArcgisWMTSLayer','push'];a42_0xc36b=function(){return _0x13860e;};return a42_0xc36b();}export default class LayerManagement{static async[a42_0x5aac32(0xef)](_0x536b76){const _0x96053d=a42_0x5aac32,_0xf1eb0d=await getDynamicLayerInfo(_0x536b76[_0x96053d(0xe0)]?_0x536b76[_0x96053d(0xe0)]:'');let _0x54852f=new a42_0x43c1e7(_0x536b76,_0xf1eb0d);return _0x54852f;}static async['getArcgisTileLayer'](_0xe506ef){const _0x154321=a42_0x5aac32,_0x365d45=await getDynamicLayerInfo(_0xe506ef[_0x154321(0xe0)]?_0xe506ef[_0x154321(0xe0)]:'');let _0x717775=new a42_0x4564c8(_0xe506ef,_0x365d45);return _0x717775;}static async['getArcgisFeatureLayer'](_0x42b8a3){const _0x4b88a4=a42_0x5aac32,_0x31c466=await getDynamicLayerInfo(_0x42b8a3[_0x4b88a4(0xe0)]?_0x42b8a3[_0x4b88a4(0xe0)]:'');let _0x445180=[];if(_0x42b8a3[_0x4b88a4(0xe9)])for(let _0x173315=0x0;_0x173315<_0x42b8a3['sublayers'][_0x4b88a4(0xd9)];_0x173315++){const _0x1bb4bb=_0x42b8a3[_0x4b88a4(0xe9)][_0x173315];_0x445180[_0x4b88a4(0xde)](await getFeatureLayerInfo(_0x42b8a3[_0x4b88a4(0xe0)]?_0x42b8a3['url']:'',_0x1bb4bb));}let _0x4662c4=new a42_0x33ec75(_0x42b8a3,_0x31c466,_0x445180);return _0x4662c4;}static async[a42_0x5aac32(0xed)](_0x3290fb){const _0x5c91e0=a42_0x5aac32;var _0x210307;const _0x12164e=(_0x210307=_0x3290fb[_0x5c91e0(0xe9)])===null||_0x210307===void 0x0?void 0x0:_0x210307[0x0],_0x169721=await getWMSLayerCapabilities(_0x3290fb[_0x5c91e0(0xe0)]?_0x3290fb[_0x5c91e0(0xe0)]:'',_0x12164e==null?'':_0x12164e);let _0x57a664=new a42_0x1105e2(_0x3290fb,_0x169721);return _0x57a664;}static async[a42_0x5aac32(0xdd)](_0x5587f0){const _0x2edbaa=a42_0x5aac32;var _0x5226e1;const _0x9cee18=(_0x5226e1=_0x5587f0[_0x2edbaa(0xe9)])===null||_0x5226e1===void 0x0?void 0x0:_0x5226e1[0x0],_0x446af9=await getWMTSLayerCapabilities(_0x5587f0['url']?_0x5587f0[_0x2edbaa(0xe0)]:'',_0x9cee18==null?'':_0x9cee18);let _0x2d168a=new a42_0x2d1936(_0x5587f0,_0x446af9);return _0x2d168a;}static async[a42_0x5aac32(0xea)](_0x8a7eb8){const _0x3ebdb4=a42_0x5aac32;var _0x33e4ea;const _0x5e336c=(_0x33e4ea=_0x8a7eb8[_0x3ebdb4(0xe9)])===null||_0x33e4ea===void 0x0?void 0x0:_0x33e4ea[0x0],_0x5defcf=await getWMSLayerCapabilities(_0x8a7eb8[_0x3ebdb4(0xe0)]?_0x8a7eb8[_0x3ebdb4(0xe0)]:'',_0x5e336c==null?'':_0x5e336c);let _0x462f33=new a42_0x379ceb(_0x8a7eb8,_0x5defcf);return _0x462f33;}static async[a42_0x5aac32(0xe3)](_0x5c1c6a){const _0x407ec0=a42_0x5aac32;var _0x1d80a0;const _0x4980ce=(_0x1d80a0=_0x5c1c6a[_0x407ec0(0xe9)])===null||_0x1d80a0===void 0x0?void 0x0:_0x1d80a0[0x0],_0x302fcc=await getWMTSLayerCapabilities(_0x5c1c6a['url']?_0x5c1c6a[_0x407ec0(0xe0)]:'',_0x4980ce==null?'':_0x4980ce);let _0x2c7643=new a42_0x30b3bf(_0x5c1c6a,_0x302fcc);return _0x2c7643;}static async[a42_0x5aac32(0xee)](_0x53edd9){const _0x2692b4=a42_0x5aac32;var _0x4f85ef;const _0x148da3=(_0x4f85ef=_0x53edd9[_0x2692b4(0xe9)])===null||_0x4f85ef===void 0x0?void 0x0:_0x4f85ef[0x0],_0x1f46a1=await getWFSLayerCapabilities(_0x53edd9[_0x2692b4(0xe0)]?_0x53edd9[_0x2692b4(0xe0)]:'',_0x148da3==null?'':_0x148da3);let _0x475f31=new a42_0x2b555b(_0x53edd9,_0x1f46a1);return _0x475f31;}static async[a42_0x5aac32(0xe2)](_0x417fec){const _0x39dd06=a42_0x5aac32;var _0x58a22e;const _0x507d8d=(_0x58a22e=_0x417fec[_0x39dd06(0xe9)])===null||_0x58a22e===void 0x0?void 0x0:_0x58a22e[0x0],_0x5d884e=await getWMTSLayerCapabilities(_0x417fec[_0x39dd06(0xe0)]?_0x417fec[_0x39dd06(0xe0)]:'',_0x507d8d==null?'':_0x507d8d);let _0x242283=new a42_0xad3030(_0x417fec,_0x5d884e);return _0x242283;}static async[a42_0x5aac32(0xdc)](_0x36cf80){const _0x4c1e77=a42_0x5aac32;var _0xf21aff;const _0x8c269a=(_0xf21aff=_0x36cf80[_0x4c1e77(0xe9)])===null||_0xf21aff===void 0x0?void 0x0:_0xf21aff[0x0],_0x2b3252=await getWMTSLayerCapabilities(_0x36cf80[_0x4c1e77(0xe0)]?_0x36cf80[_0x4c1e77(0xe0)]:'',_0x8c269a==null?'':_0x8c269a);let _0x4c08f8=new a42_0x41ecf7(_0x36cf80,_0x2b3252);return _0x4c08f8;}}
|
package/layers/TDTLayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x455fcc,_0x2ac71a){const _0x16b3f0=a43_0x362b,_0x1e6f15=_0x455fcc();while(!![]){try{const _0x5cc7ce=-parseInt(_0x16b3f0(0xa6))/0x1*(-parseInt(_0x16b3f0(0xa1))/0x2)+-parseInt(_0x16b3f0(0xa5))/0x3*(-parseInt(_0x16b3f0(0xa4))/0x4)+-parseInt(_0x16b3f0(0x8f))/0x5+parseInt(_0x16b3f0(0x9a))/0x6*(parseInt(_0x16b3f0(0x9c))/0x7)+parseInt(_0x16b3f0(0x98))/0x8*(-parseInt(_0x16b3f0(0x9d))/0x9)+parseInt(_0x16b3f0(0x95))/0xa+-parseInt(_0x16b3f0(0x93))/0xb*(-parseInt(_0x16b3f0(0x94))/0xc);if(_0x5cc7ce===_0x2ac71a)break;else _0x1e6f15['push'](_0x1e6f15['shift']());}catch(_0x376130){_0x1e6f15['push'](_0x1e6f15['shift']());}}}(a43_0x4dab,0x4a934));function a43_0x362b(_0x219221,_0x2fb0ee){const _0x4dab01=a43_0x4dab();return a43_0x362b=function(_0x362b3b,_0x2ff91b){_0x362b3b=_0x362b3b-0x8f;let _0x2cdde2=_0x4dab01[_0x362b3b];return _0x2cdde2;},a43_0x362b(_0x219221,_0x2fb0ee);}import a43_0xfce1b8 from'ol/layer/Tile';import{WMTS as a43_0x31cad3}from'ol/source';function a43_0x4dab(){const _0x522838=['125780oikkeL','EPSG:4490','KVP','4196LQajys','1014yjjhkS','2rfjrtE','style','1664495ssPUbg','format','mapIndex','boundingBoxExtent','114389pvZFpI','132NKiNOn','527300rHVkbo','opacity','initialExtent','8GOInAu','projection','6rWCeIy','join','526519uPAgNK','758871llrrNC','sublayers','url','layerInfo'];a43_0x4dab=function(){return _0x522838;};return a43_0x4dab();}import a43_0x53b36e from'ol/tilegrid/WMTS';import{registerProj}from'../utils/RegisterProjUtil';import{getWidth,getTopLeft}from'ol/extent';export default class TDTLayer extends a43_0xfce1b8{constructor(_0x12211b,_0x45f093){const _0x559bef=a43_0x362b;let _0x4df489='';_0x12211b['sublayers']&&_0x12211b[_0x559bef(0x9e)]['length']>0x0&&(_0x4df489=_0x12211b['sublayers'][_0x559bef(0x9b)](','));const _0x33ec8b=_0x559bef(0xa2);let _0x2dc5b8=registerProj(_0x33ec8b);const _0x58a1d6=[],_0xd80e1c=[];for(let _0x18a048=0x1;_0x18a048<0x13;_0x18a048++){_0x58a1d6[_0x18a048]=getWidth(_0x45f093[_0x559bef(0x92)])/(0x100*Math['pow'](0x2,_0x18a048)),_0xd80e1c[_0x18a048]=_0x18a048+'';}super({'opacity':_0x12211b[_0x559bef(0x96)],'zIndex':_0x12211b[_0x559bef(0x91)],'source':new a43_0x31cad3({'style':_0x45f093[_0x559bef(0xa7)],'url':_0x12211b[_0x559bef(0x9f)],'tileGrid':new a43_0x53b36e({'origin':getTopLeft(_0x45f093['boundingBoxExtent']),'resolutions':_0x58a1d6,'matrixIds':_0xd80e1c}),'layer':_0x4df489,'matrixSet':_0x45f093['tileMatrixSet'],'version':'1.0.0','format':_0x45f093[_0x559bef(0x90)][0x0],'projection':_0x33ec8b,'requestEncoding':_0x559bef(0xa3)})}),this['id']=_0x12211b['id'],this[_0x559bef(0x97)]=_0x45f093[_0x559bef(0x92)],this[_0x559bef(0x99)]=_0x2dc5b8,this[_0x559bef(0xa0)]=_0x12211b;}}
|