ym-gis-2d 1.0.23 → 1.0.24
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.d.ts +2 -2
- package/mapView/Map.d.ts.map +1 -1
- package/mapView/Map.js +1 -1
- package/mapView/Map.js.map +1 -1
- package/mapView/View.js +1 -1
- package/package.json +1 -1
- package/plot/Plot.js +1 -1
- package/plot/geometry/point/Point.js +1 -1
- package/plot/geometry/polygon/BasePolygon.js +1 -1
- package/plot/geometry/polygon/Circle.js +1 -1
- package/plot/geometry/polygon/Polygon.js +1 -1
- package/plot/geometry/polygon/RectAngle.js +1 -1
- package/plot/geometry/polyline/BaseLine.js +1 -1
- package/plot/geometry/polyline/Polyline.js +1 -1
- package/style/PointStyleFormat.js +1 -1
- package/style/PolygonStyleFormat.js +1 -1
- package/style/PolylineStyleFormat.js +1 -1
- package/style/StyleManager.js +1 -1
- package/style/common.js +1 -1
- package/utils/ArrayUtil.js +1 -1
- package/utils/AxiosUtil.js +1 -1
- package/utils/EsriUtil.js +1 -1
- package/utils/GeometryUtil.js +1 -1
- package/utils/LayerUtil.js +1 -1
- package/utils/RegisterProjUtil.js +1 -1
- package/utils/ResolutionUtil.js +1 -1
- package/utils/StringUtil.js +1 -1
- package/utils/StyleUtil.js +1 -1
- package/utils/UrlUtil.js +1 -1
- package/utils/XmlUtil.js +1 -1
- package/utils/format/CQL.js +1 -1
- package/utils/format/IsMatchCql.js +1 -1
- package/utils/plug/canvas/ImageCache.js +1 -1
- package/utils/plug/canvas/PinBuilder.js +1 -1
- package/utils/plug/canvas/PinIcon.js +1 -1
- package/utils/plug/canvas/writeTextToCanvas.js +1 -1
- package/utils/tasks/esri/Identify.js +1 -1
- package/utils/tasks/esri/Query.js +1 -1
- package/utils/tasks/esri/Task.js +1 -1
- package/utils/tasks/geoserver/QueryTask.js +1 -1
- package/utils/tasks/index.js +1 -1
- package/ym-gis-2d.es.js +1 -1
- package/ym-gis-2d.umd.js +1 -1
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a36_0x1cff(){var _0x2b47b8=['5325294kgOQDK','14809392HolPzq','700329cKyDQa','6832644pQXgUj','85FXSanU','1500960LSCtEa','34450KnfuEm','167588LypLzc'];a36_0x1cff=function(){return _0x2b47b8;};return a36_0x1cff();}(function(_0x57cd91,_0x4b3b2f){var _0x51691d=a36_0x2aa8,_0xf82019=_0x57cd91();while(!![]){try{var _0x48f1c4=parseInt(_0x51691d(0xea))/0x1+-parseInt(_0x51691d(0xe9))/0x2+parseInt(_0x51691d(0xe6))/0x3+parseInt(_0x51691d(0xeb))/0x4*(-parseInt(_0x51691d(0xe8))/0x5)+parseInt(_0x51691d(0xec))/0x6+-parseInt(_0x51691d(0xe7))/0x7+parseInt(_0x51691d(0xe5))/0x8;if(_0x48f1c4===_0x4b3b2f)break;else _0xf82019['push'](_0xf82019['shift']());}catch(_0x564aa9){_0xf82019['push'](_0xf82019['shift']());}}}(a36_0x1cff,0x8a9f3));import a36_0x463588 from'./mapView/Map';function a36_0x2aa8(_0x19b650,_0x26b29f){var _0x1cffe2=a36_0x1cff();return a36_0x2aa8=function(_0x2aa8e8,_0x70ee){_0x2aa8e8=_0x2aa8e8-0xe5;var _0x455004=_0x1cffe2[_0x2aa8e8];return _0x455004;},a36_0x2aa8(_0x19b650,_0x26b29f);}export{a36_0x463588 as Map2D};
|
package/interaction/Draw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a37_0x12308e=a37_0x505a;(function(_0x343987,_0xc27c54){const _0x3722e8=a37_0x505a,_0x37ca3a=_0x343987();while(!![]){try{const _0x26e58e=parseInt(_0x3722e8(0x14d))/0x1*(-parseInt(_0x3722e8(0x176))/0x2)+parseInt(_0x3722e8(0x17e))/0x3+-parseInt(_0x3722e8(0x1a1))/0x4+parseInt(_0x3722e8(0x19a))/0x5+-parseInt(_0x3722e8(0x16d))/0x6+-parseInt(_0x3722e8(0x196))/0x7*(parseInt(_0x3722e8(0x15b))/0x8)+parseInt(_0x3722e8(0x19f))/0x9;if(_0x26e58e===_0xc27c54)break;else _0x37ca3a['push'](_0x37ca3a['shift']());}catch(_0x204084){_0x37ca3a['push'](_0x37ca3a['shift']());}}}(a37_0x3e9f,0x8d117));function a37_0x3e9f(){const _0x61e8ab=['87976YwYsPq','left','getType','drawabort','5614465CGeDsB','createMultiPointFeature','length','addPoint','wrapX','10554300pPvyOc','getProjection','1044504Nkafeq','feature','point','_drawingCoordinates','pointermove','handleMoveEvent','DRAWSTART','updateState_','abortDrawing_','_source','style','buildDrawingFeature','_minPoints','_sketchFeature','setText','type','finishDrawing','41hTrwMF','preventDefault','单击结束绘制,右击删除点','updateSketchFeatures_','drawend','MAX_VALUE','pop','drawstart','_features','abortDrawing','originalEvent','once','slice','minPoint','688GVwTiH','getPixelFromCoordinate','setMap','_snapTolerance','_fixPoint','pixel','_overlay','onceInternal','rgba(0,\x200,\x200,\x200.4)','getCode','_showTip','stopDown','tipText','source','_tipFeature','单击拖动绘制','startDrawing_','atFinish_','2702064xmMvqG','features','单击增加点,右击删除点','onInternal','Ellipse','revert','setGeometry','DRAWADDPOINT','_tipOverlay','6118jgRrje','getMap','getView','snapTolerance','push','unInternal','setStyle','_isStayDraw','599877RvLdkC','_style','projection','updateTip_','addChangeListener','coordinate','单击开始绘制','clear','DRAWMOVING','getSource','Circle','dispatchEvent','_type','DRAWABORT','_tipStyle','coordinates','rectangle','getGeometry','showTip','addFeature','sqrt','handleDownEvent','drawaddpoint','drawmoving'];a37_0x3e9f=function(){return _0x61e8ab;};return a37_0x3e9f();}import a37_0x221717 from'ol/events/Event';import a37_0x1e28b5 from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';import a37_0x876cd3 from'ol/Feature';import a37_0x8e9e4d,{createEditingStyle}from'ol/style/Style';import a37_0x3a8d75 from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a37_0x73802b from'ol/style/Text';function a37_0x505a(_0x2cc35e,_0x27fadf){const _0x3e9fb4=a37_0x3e9f();return a37_0x505a=function(_0x505a26,_0x3d379c){_0x505a26=_0x505a26-0x148;let _0x4f3e76=_0x3e9fb4[_0x505a26];return _0x4f3e76;},a37_0x505a(_0x2cc35e,_0x27fadf);}import a37_0x2909d9 from'ol/style/Fill';import a37_0x54be01 from'ol/interaction/Property';import a37_0x1dc28d from'ol/layer/Vector';import a37_0x26af9d from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a37_0x12308e(0x154),'DRAWEND':a37_0x12308e(0x151),'DRAWABORT':a37_0x12308e(0x199),'DRAWADDPOINT':a37_0x12308e(0x194),'DRAWMOVING':a37_0x12308e(0x195)};export class DrawEvent extends a37_0x221717{constructor(_0xecdf09,_0x2cea38,_0x95fd7c){const _0x45bd7b=a37_0x12308e;super(_0xecdf09),this[_0x45bd7b(0x1a2)]=_0x2cea38,this[_0x45bd7b(0x18d)]=_0x95fd7c;}}export class ShEvent extends a37_0x221717{constructor(_0x5d104a,_0x1c91f1,_0x319951,_0x50bea9,_0x10ee92){const _0x1d8024=a37_0x12308e;super(_0x5d104a),this[_0x1d8024(0x180)]=_0x10ee92,this[_0x1d8024(0x14b)]=_0x1c91f1,this['coordinate']=_0x319951,this[_0x1d8024(0x18d)]=_0x50bea9;}}export default class Draw extends a37_0x1e28b5{constructor(_0x17114a,_0x49fdf1){const _0x38c9e0=a37_0x12308e,_0x2c2016=_0x49fdf1?_0x49fdf1:{};!_0x2c2016[_0x38c9e0(0x166)]&&(_0x2c2016[_0x38c9e0(0x166)]=![]);super(_0x49fdf1),this['on']=this[_0x38c9e0(0x170)],this[_0x38c9e0(0x158)]=this[_0x38c9e0(0x162)],this['un']=this[_0x38c9e0(0x17b)],this[_0x38c9e0(0x17d)]=![],this['_type']=_0x17114a,this['_style']=_0x49fdf1===null||_0x49fdf1===void 0x0?void 0x0:_0x49fdf1[_0x38c9e0(0x1ab)],this['_source']=_0x49fdf1===null||_0x49fdf1===void 0x0?void 0x0:_0x49fdf1[_0x38c9e0(0x168)],this[_0x38c9e0(0x155)]=_0x49fdf1===null||_0x49fdf1===void 0x0?void 0x0:_0x49fdf1[_0x38c9e0(0x16e)];const _0x5c5d2f=getPlotCount(this[_0x38c9e0(0x18a)]);this[_0x38c9e0(0x148)]=_0x5c5d2f[_0x38c9e0(0x15a)],this[_0x38c9e0(0x15f)]=_0x5c5d2f['fixPoint'],this['tipText']=_0x49fdf1===null||_0x49fdf1===void 0x0?void 0x0:_0x49fdf1['tipText'],this[_0x38c9e0(0x165)]=(_0x49fdf1===null||_0x49fdf1===void 0x0?void 0x0:_0x49fdf1[_0x38c9e0(0x190)])==![]?![]:!![],this[_0x38c9e0(0x15e)]=_0x2c2016[_0x38c9e0(0x179)]?_0x2c2016[_0x38c9e0(0x179)]:0x6,this[_0x38c9e0(0x169)]=new a37_0x876cd3(),this[_0x38c9e0(0x18c)]=new a37_0x8e9e4d({'text':new a37_0x73802b({'font':'12px\x20Calibre,sans-serif','fill':new a37_0x2909d9({'color':'rgba(255,\x20255,\x20255,\x201)'}),'backgroundFill':new a37_0x2909d9({'color':_0x38c9e0(0x163)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x38c9e0(0x197),'offsetX':0xf})}),this[_0x38c9e0(0x1a4)]=[],this['_tipOverlay']=new a37_0x1dc28d({'source':new a37_0x3a8d75({'useSpatialIndex':![],'wrapX':(_0x49fdf1===null||_0x49fdf1===void 0x0?void 0x0:_0x49fdf1[_0x38c9e0(0x19e)])?_0x49fdf1[_0x38c9e0(0x19e)]:![]})}),this[_0x38c9e0(0x161)]=new a37_0x1dc28d({'source':new a37_0x3a8d75({'useSpatialIndex':![],'wrapX':(_0x49fdf1===null||_0x49fdf1===void 0x0?void 0x0:_0x49fdf1[_0x38c9e0(0x19e)])?_0x49fdf1[_0x38c9e0(0x19e)]:![]}),'updateWhileInteracting':!![]}),this[_0x38c9e0(0x182)](a37_0x54be01['ACTIVE'],this[_0x38c9e0(0x1a8)]);}['updateState_'](){const _0x2ba044=a37_0x12308e,_0x425357=this[_0x2ba044(0x177)](),_0x1ddcd4=this['getActive']();(!_0x425357||!_0x1ddcd4)&&this[_0x2ba044(0x156)](),this[_0x2ba044(0x161)][_0x2ba044(0x15d)](_0x1ddcd4?_0x425357:null),this['_tipOverlay'][_0x2ba044(0x15d)](_0x1ddcd4?_0x425357:null);}[a37_0x12308e(0x15d)](_0x278d20){const _0x4d04e6=a37_0x12308e;super[_0x4d04e6(0x15d)](_0x278d20),this[_0x4d04e6(0x1a8)]();}[a37_0x12308e(0x17c)](_0x529516){const _0x337045=a37_0x12308e;this[_0x337045(0x17f)]=_0x529516?_0x529516:{};}['getOverlay'](){const _0x4388b6=a37_0x12308e;return this[_0x4388b6(0x161)];}[a37_0x12308e(0x193)](_0x1f1a11){const _0x311fe4=a37_0x12308e;if(_0x1f1a11[_0x311fe4(0x157)]['button']===0x2)return _0x1f1a11[_0x311fe4(0x157)][_0x311fe4(0x14e)](),this[_0x311fe4(0x172)](),this[_0x311fe4(0x1a6)](_0x1f1a11),![];return!![];}['handleUpEvent'](_0x319b05){const _0x569cde=a37_0x12308e;var _0x56d035,_0x4717ba;if(this['_type']==_0x569cde(0x18e)&&this[_0x569cde(0x1a4)][_0x569cde(0x19c)]<0x1)return this['dispatchEvent'](new DrawEvent(DrawEventType['DRAWEND'],undefined,[_0x319b05[_0x569cde(0x183)]])),![];if(!this[_0x569cde(0x17d)])this[_0x569cde(0x16b)](_0x319b05['coordinate']),this[_0x569cde(0x189)](new ShEvent(DrawEventType[_0x569cde(0x174)],this[_0x569cde(0x18a)],_0x319b05[_0x569cde(0x183)],this[_0x569cde(0x1a4)],(_0x56d035=this['getMap']())===null||_0x56d035===void 0x0?void 0x0:_0x56d035[_0x569cde(0x178)]()[_0x569cde(0x1a0)]()[_0x569cde(0x164)]())),this[_0x569cde(0x18a)]==_0x569cde(0x1a3)&&this[_0x569cde(0x14c)]();else{if(this[_0x569cde(0x1a4)]&&this[_0x569cde(0x1a4)][_0x569cde(0x19c)]>0x0){if(this[_0x569cde(0x16c)](_0x319b05[_0x569cde(0x160)]))return this[_0x569cde(0x14c)](),_0x319b05[_0x569cde(0x14e)](),![];let _0x3a8166=this[_0x569cde(0x1a4)][_0x569cde(0x19c)]+0x1;_0x3a8166<=this[_0x569cde(0x15f)]&&this[_0x569cde(0x19d)](_0x319b05[_0x569cde(0x183)]),this[_0x569cde(0x189)](new ShEvent(DrawEventType[_0x569cde(0x174)],this[_0x569cde(0x18a)],_0x319b05[_0x569cde(0x183)],this[_0x569cde(0x1a4)],(_0x4717ba=this['getMap']())===null||_0x4717ba===void 0x0?void 0x0:_0x4717ba['getView']()[_0x569cde(0x1a0)]()['getCode']())),_0x3a8166>=this['_minPoints']&&this[_0x569cde(0x1ac)](this[_0x569cde(0x1a4)]),_0x3a8166===this['_fixPoint']&&this[_0x569cde(0x14c)]();}}return _0x319b05[_0x569cde(0x14e)](),![];}['handleDragEvent'](_0x7c80be){const _0x5598fc=a37_0x12308e;var _0x2fe2d5;if(this[_0x5598fc(0x18a)]=='rectangle'&&_0x7c80be['originalEvent'][_0x5598fc(0x14b)]==_0x5598fc(0x1a5)){if(!this[_0x5598fc(0x17d)]){this[_0x5598fc(0x16b)](_0x7c80be[_0x5598fc(0x183)]),this[_0x5598fc(0x189)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x5598fc(0x18a)],_0x7c80be[_0x5598fc(0x183)],this[_0x5598fc(0x1a4)],(_0x2fe2d5=this[_0x5598fc(0x177)]())===null||_0x2fe2d5===void 0x0?void 0x0:_0x2fe2d5[_0x5598fc(0x178)]()[_0x5598fc(0x1a0)]()[_0x5598fc(0x164)]()));return;}let _0x4f25d3=[...this[_0x5598fc(0x1a4)],_0x7c80be[_0x5598fc(0x183)]];this['buildDrawingFeature'](_0x4f25d3),this[_0x5598fc(0x189)](new DrawEvent(DrawEventType[_0x5598fc(0x186)],this[_0x5598fc(0x149)],this['_drawingCoordinates']));}}['handleMoveEvent'](_0x3f9838){const _0x4f0f49=a37_0x12308e;var _0x5baf86,_0x3a10a4,_0xd4d6fb;let _0x38329d='';this[_0x4f0f49(0x18a)]=='pointermove'&&(this['startDrawing_'](_0x3f9838[_0x4f0f49(0x183)]),this['dispatchEvent'](new ShEvent(DrawEventType[_0x4f0f49(0x174)],this[_0x4f0f49(0x18a)],_0x3f9838[_0x4f0f49(0x183)],this[_0x4f0f49(0x1a4)],(_0x5baf86=this['getMap']())===null||_0x5baf86===void 0x0?void 0x0:_0x5baf86[_0x4f0f49(0x178)]()[_0x4f0f49(0x1a0)]()[_0x4f0f49(0x164)]())),this[_0x4f0f49(0x14c)]());!this[_0x4f0f49(0x17d)]?_0x38329d=this[_0x4f0f49(0x18a)]==_0x4f0f49(0x18e)?_0x4f0f49(0x16a):_0x4f0f49(0x184):(_0x38329d=_0x4f0f49(0x16f),((_0x3a10a4=this['_drawingCoordinates'])===null||_0x3a10a4===void 0x0?void 0x0:_0x3a10a4[_0x4f0f49(0x19c)])===this[_0x4f0f49(0x15f)]-0x1&&(_0x38329d=_0x4f0f49(0x14f)),((_0xd4d6fb=this[_0x4f0f49(0x1a4)])===null||_0xd4d6fb===void 0x0?void 0x0:_0xd4d6fb['length'])>=this[_0x4f0f49(0x148)]&&this[_0x4f0f49(0x15f)]===Number['MAX_VALUE']&&(_0x38329d='单击增加点,右击删除点双击完成绘制'));this['tipText']!=undefined&&(_0x38329d=this[_0x4f0f49(0x167)]);this[_0x4f0f49(0x181)](_0x3f9838[_0x4f0f49(0x183)],_0x38329d);if(this[_0x4f0f49(0x17d)]&&this[_0x4f0f49(0x18a)]!=_0x4f0f49(0x18e)){let _0x2136f1=[...this['_drawingCoordinates'],_0x3f9838[_0x4f0f49(0x183)]];this[_0x4f0f49(0x1ac)](_0x2136f1),this[_0x4f0f49(0x189)](new DrawEvent(DrawEventType['DRAWMOVING'],this[_0x4f0f49(0x149)],this[_0x4f0f49(0x1a4)]));}}[a37_0x12308e(0x16c)](_0x234a39){const _0x17d906=a37_0x12308e;var _0x5f006e;let _0x964dcd=![],_0x275394=this[_0x17d906(0x1a4)][_0x17d906(0x19c)];if(_0x275394>this[_0x17d906(0x148)]&&this[_0x17d906(0x15f)]===Number[_0x17d906(0x152)]){const _0x474e9d=this[_0x17d906(0x1a4)][this[_0x17d906(0x1a4)]['length']-0x1],_0x4893f1=(_0x5f006e=this['getMap']())===null||_0x5f006e===void 0x0?void 0x0:_0x5f006e[_0x17d906(0x15c)](_0x474e9d),_0x1af937=_0x234a39[0x0]-(_0x4893f1?_0x4893f1[0x0]:0x0),_0x468f8e=_0x234a39[0x1]-(_0x4893f1?_0x4893f1[0x1]:0x0);_0x964dcd=Math[_0x17d906(0x192)](_0x1af937*_0x1af937+_0x468f8e*_0x468f8e)<=this[_0x17d906(0x15e)];}return _0x964dcd;}['startDrawing_'](_0x1f61ee){const _0x54a631=a37_0x12308e;this['_isStayDraw']=!![],this[_0x54a631(0x1a4)]=[_0x1f61ee[_0x54a631(0x159)]()],this[_0x54a631(0x149)]=this[_0x54a631(0x19b)](),this[_0x54a631(0x150)](),this[_0x54a631(0x189)](new DrawEvent(DrawEventType[_0x54a631(0x1a7)],this[_0x54a631(0x149)],this[_0x54a631(0x1a4)]));}['finishDrawing'](){const _0x4ad03d=a37_0x12308e;if(this[_0x4ad03d(0x1a4)][_0x4ad03d(0x19c)]>this[_0x4ad03d(0x148)]){this['buildDrawingFeature'](this[_0x4ad03d(0x1a4)]);let _0x1b2b85=this[_0x4ad03d(0x1a4)];const _0x5a6ca0=this[_0x4ad03d(0x1a9)]();if(!_0x5a6ca0)return;this[_0x4ad03d(0x189)](new DrawEvent(DrawEventType['DRAWEND'],_0x5a6ca0,_0x1b2b85)),this[_0x4ad03d(0x155)]&&this[_0x4ad03d(0x155)][_0x4ad03d(0x17a)](_0x5a6ca0),this[_0x4ad03d(0x1aa)]&&this['_source'][_0x4ad03d(0x191)](_0x5a6ca0);}}[a37_0x12308e(0x19d)](_0x2ebb9f){const _0x30e919=a37_0x12308e;this[_0x30e919(0x1a4)][_0x30e919(0x17a)](_0x2ebb9f),this[_0x30e919(0x149)]=this[_0x30e919(0x19b)](),this[_0x30e919(0x150)]();}['createMultiPointFeature'](){const _0x12324e=a37_0x12308e,_0x2a3c6f=new MultiPoint(this[_0x12324e(0x1a4)]);let _0x38011d=new a37_0x876cd3();return _0x38011d[_0x12324e(0x173)](_0x2a3c6f),_0x38011d;}[a37_0x12308e(0x1a9)](){const _0x10ba84=a37_0x12308e;var _0x34b1e8,_0x1805c3;this[_0x10ba84(0x17d)]=![];const _0x4c9bf5=this['_sketchFeature'];return this[_0x10ba84(0x149)]=undefined,this['_drawingCoordinates']=[],(_0x34b1e8=this[_0x10ba84(0x161)][_0x10ba84(0x187)]())===null||_0x34b1e8===void 0x0?void 0x0:_0x34b1e8['clear'](!![]),(_0x1805c3=this[_0x10ba84(0x175)][_0x10ba84(0x187)]())===null||_0x1805c3===void 0x0?void 0x0:_0x1805c3['clear'](!![]),_0x4c9bf5;}['abortDrawing'](){const _0x1de7b7=a37_0x12308e,_0x29b72b=this[_0x1de7b7(0x1a9)]();_0x29b72b&&this[_0x1de7b7(0x189)](new DrawEvent(DrawEventType[_0x1de7b7(0x18b)],_0x29b72b,this[_0x1de7b7(0x1a4)]));}[a37_0x12308e(0x1ac)](_0x333b8c){const _0x3265ec=a37_0x12308e;this[_0x3265ec(0x149)]=new a37_0x876cd3();let _0x5e2d88=createPlot(this['_type'],_0x333b8c);if(!_0x5e2d88)return;this[_0x3265ec(0x149)]['setGeometry'](_0x5e2d88);let _0x2c0c99=[a37_0x26af9d[_0x3265ec(0x188)],a37_0x26af9d['Ellipsoid'],a37_0x26af9d[_0x3265ec(0x171)]];if(_0x2c0c99['indexOf'](this[_0x3265ec(0x18a)])>-0x1&&this[_0x3265ec(0x17f)]){}const _0x13b5a3=this[_0x3265ec(0x177)]();this[_0x3265ec(0x149)][_0x3265ec(0x17c)](getStyle(this['_type'],this[_0x3265ec(0x17f)],this[_0x3265ec(0x177)]())),this[_0x3265ec(0x150)]();}[a37_0x12308e(0x150)](){const _0x9bdf4=a37_0x12308e,_0x3f61cd=this[_0x9bdf4(0x161)]['getSource']();_0x3f61cd&&this[_0x9bdf4(0x149)]&&(_0x3f61cd['clear'](!![]),_0x3f61cd['addFeature'](this[_0x9bdf4(0x149)]));}[a37_0x12308e(0x172)](){const _0x59d729=a37_0x12308e;if(this[_0x59d729(0x17d)]){if(this[_0x59d729(0x1a4)]&&this[_0x59d729(0x1a4)][_0x59d729(0x19c)]>0x0){const _0x54f1c1=this[_0x59d729(0x161)][_0x59d729(0x187)]();_0x54f1c1===null||_0x54f1c1===void 0x0?void 0x0:_0x54f1c1[_0x59d729(0x185)](!![]),this[_0x59d729(0x1a4)][_0x59d729(0x153)](),this[_0x59d729(0x1a4)][_0x59d729(0x19c)]>=this['_minPoints']&&this[_0x59d729(0x1ac)](this[_0x59d729(0x1a4)]),this[_0x59d729(0x1a4)][_0x59d729(0x19c)]===0x0&&(this[_0x59d729(0x17d)]=![]);}}}['updateTip_'](_0x38e2e1,_0x960232){const _0x3c58fd=a37_0x12308e;var _0x2dd1c4,_0x2691fc,_0x2e5a35,_0x1f9c71;if(!this[_0x3c58fd(0x165)])return;const _0x48f7de=this[_0x3c58fd(0x175)][_0x3c58fd(0x187)]();_0x48f7de===null||_0x48f7de===void 0x0?void 0x0:_0x48f7de['clear'](!![]),(_0x2dd1c4=this['_tipFeature'])===null||_0x2dd1c4===void 0x0?void 0x0:_0x2dd1c4[_0x3c58fd(0x173)](new Point(_0x38e2e1)),(_0x2e5a35=(_0x2691fc=this[_0x3c58fd(0x18c)])===null||_0x2691fc===void 0x0?void 0x0:_0x2691fc['getText']())===null||_0x2e5a35===void 0x0?void 0x0:_0x2e5a35[_0x3c58fd(0x14a)](_0x960232),(_0x1f9c71=this['_tipFeature'])===null||_0x1f9c71===void 0x0?void 0x0:_0x1f9c71[_0x3c58fd(0x17c)](this[_0x3c58fd(0x18c)]),this['_tipFeature']&&(_0x48f7de===null||_0x48f7de===void 0x0?void 0x0:_0x48f7de['addFeature'](this[_0x3c58fd(0x169)]));}}function getDefaultStyleFunction(){const _0xc59fde=createEditingStyle();return function(_0x87254b,_0x49b312){const _0x14ae28=a37_0x505a,_0x4f6507=_0xc59fde[_0x87254b[_0x14ae28(0x18f)]()[_0x14ae28(0x198)]()];if(_0x4f6507&&'Rectangle'==_0x87254b['getGeometry']()[_0x14ae28(0x198)]()){}};}
|
|
1
|
+
const a37_0x5625a2=a37_0x7101;(function(_0x2a3406,_0x5e8467){const _0x5d229c=a37_0x7101,_0x3a63fa=_0x2a3406();while(!![]){try{const _0x5d44f1=parseInt(_0x5d229c(0xe7))/0x1*(parseInt(_0x5d229c(0xf8))/0x2)+parseInt(_0x5d229c(0x139))/0x3*(parseInt(_0x5d229c(0xed))/0x4)+-parseInt(_0x5d229c(0x11d))/0x5+-parseInt(_0x5d229c(0xde))/0x6+-parseInt(_0x5d229c(0x12d))/0x7*(parseInt(_0x5d229c(0xfe))/0x8)+parseInt(_0x5d229c(0xf4))/0x9*(-parseInt(_0x5d229c(0x104))/0xa)+parseInt(_0x5d229c(0x10c))/0xb;if(_0x5d44f1===_0x5e8467)break;else _0x3a63fa['push'](_0x3a63fa['shift']());}catch(_0x53c608){_0x3a63fa['push'](_0x3a63fa['shift']());}}}(a37_0x279d,0x5230c));import a37_0xda870d from'ol/events/Event';import a37_0x5356e1 from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';import a37_0x24c430 from'ol/Feature';function a37_0x7101(_0x57577a,_0x5bf70c){const _0x279dd5=a37_0x279d();return a37_0x7101=function(_0x71012a,_0x4706f2){_0x71012a=_0x71012a-0xdc;let _0x42b6c2=_0x279dd5[_0x71012a];return _0x42b6c2;},a37_0x7101(_0x57577a,_0x5bf70c);}import a37_0x25332b,{createEditingStyle}from'ol/style/Style';import a37_0x31e6cd from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a37_0x3b08cc from'ol/style/Text';import a37_0xfbde93 from'ol/style/Fill';import a37_0x1aa277 from'ol/interaction/Property';import a37_0x33096e from'ol/layer/Vector';import a37_0x448fa0 from'../entity/GeometryType';function a37_0x279d(){const _0x254816=['298960OZoHXM','_tipStyle','drawaddpoint','_minPoints','once','_type','updateTip_','Ellipsoid','10184515lOtaZz','sqrt','DRAWSTART','minPoint','单击开始绘制','_isStayDraw','addPoint','getCode','_sketchFeature','12px\x20Calibre,sans-serif','Rectangle','createMultiPointFeature','DRAWADDPOINT','_tipFeature','button','单击增加点,右击删除点','point','1135850TSNZaT','abortDrawing_','stopDown','handleUpEvent','_overlay','length','getMap','snapTolerance','coordinates','revert','getOverlay','buildDrawingFeature','updateState_','atFinish_','Ellipse','setMap','10640hXoZje','source','onceInternal','fixPoint','left','rgba(0,\x200,\x200,\x200.4)','abortDrawing','pop','getType','preventDefault','_style','wrapX','1065eAisnN','单击结束绘制,右击删除点','feature','_drawingCoordinates','addChangeListener','updateSketchFeatures_','_source','DRAWMOVING','clear','_snapTolerance','单击拖动绘制','showTip','unInternal','2113746AOgKzi','finishDrawing','handleMoveEvent','MAX_VALUE','tipText','addFeature','type','drawabort','DRAWEND','263379PSPjHc','projection','handleDownEvent','getView','drawmoving','slice','5212RnAZjG','Circle','handleDragEvent','coordinate','rgba(255,\x20255,\x20255,\x201)','originalEvent','getProjection','54PWPHRI','rectangle','setStyle','_features','2iqDevA','DRAWABORT','getSource','dispatchEvent','_fixPoint','_tipOverlay','2928Dhzvim','indexOf','getActive','startDrawing_','push','setGeometry'];a37_0x279d=function(){return _0x254816;};return a37_0x279d();}const DrawEventType={'DRAWSTART':'drawstart','DRAWEND':'drawend','DRAWABORT':a37_0x5625a2(0xe5),'DRAWADDPOINT':a37_0x5625a2(0x106),'DRAWMOVING':a37_0x5625a2(0xeb)};export class DrawEvent extends a37_0xda870d{constructor(_0x3ae8a9,_0x461a69,_0x20b5a2){const _0x45b109=a37_0x5625a2;super(_0x3ae8a9),this[_0x45b109(0x13b)]=_0x461a69,this['coordinates']=_0x20b5a2;}}export class ShEvent extends a37_0xda870d{constructor(_0x343856,_0x5ca3ff,_0x576069,_0xedc33e,_0x5e38f8){const _0x5e36d2=a37_0x5625a2;super(_0x343856),this[_0x5e36d2(0xe8)]=_0x5e38f8,this[_0x5e36d2(0xe4)]=_0x5ca3ff,this[_0x5e36d2(0xf0)]=_0x576069,this[_0x5e36d2(0x125)]=_0xedc33e;}}export default class Draw extends a37_0x5356e1{constructor(_0x106743,_0x4d2c16){const _0x5b913c=a37_0x5625a2,_0x55534b=_0x4d2c16?_0x4d2c16:{};!_0x55534b[_0x5b913c(0x11f)]&&(_0x55534b[_0x5b913c(0x11f)]=![]);super(_0x4d2c16),this['on']=this['onInternal'],this[_0x5b913c(0x108)]=this[_0x5b913c(0x12f)],this['un']=this[_0x5b913c(0xdd)],this['_isStayDraw']=![],this[_0x5b913c(0x109)]=_0x106743,this['_style']=_0x4d2c16===null||_0x4d2c16===void 0x0?void 0x0:_0x4d2c16['style'],this['_source']=_0x4d2c16===null||_0x4d2c16===void 0x0?void 0x0:_0x4d2c16[_0x5b913c(0x12e)],this[_0x5b913c(0xf7)]=_0x4d2c16===null||_0x4d2c16===void 0x0?void 0x0:_0x4d2c16['features'];const _0x3e72b0=getPlotCount(this[_0x5b913c(0x109)]);this[_0x5b913c(0x107)]=_0x3e72b0[_0x5b913c(0x10f)],this[_0x5b913c(0xfc)]=_0x3e72b0[_0x5b913c(0x130)],this[_0x5b913c(0xe2)]=_0x4d2c16===null||_0x4d2c16===void 0x0?void 0x0:_0x4d2c16[_0x5b913c(0xe2)],this['_showTip']=(_0x4d2c16===null||_0x4d2c16===void 0x0?void 0x0:_0x4d2c16[_0x5b913c(0xdc)])==![]?![]:!![],this[_0x5b913c(0x142)]=_0x55534b[_0x5b913c(0x124)]?_0x55534b[_0x5b913c(0x124)]:0x6,this[_0x5b913c(0x119)]=new a37_0x24c430(),this[_0x5b913c(0x105)]=new a37_0x25332b({'text':new a37_0x3b08cc({'font':_0x5b913c(0x115),'fill':new a37_0xfbde93({'color':_0x5b913c(0xf1)}),'backgroundFill':new a37_0xfbde93({'color':_0x5b913c(0x132)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x5b913c(0x131),'offsetX':0xf})}),this[_0x5b913c(0x13c)]=[],this[_0x5b913c(0xfd)]=new a37_0x33096e({'source':new a37_0x31e6cd({'useSpatialIndex':![],'wrapX':(_0x4d2c16===null||_0x4d2c16===void 0x0?void 0x0:_0x4d2c16[_0x5b913c(0x138)])?_0x4d2c16[_0x5b913c(0x138)]:![]})}),this[_0x5b913c(0x121)]=new a37_0x33096e({'source':new a37_0x31e6cd({'useSpatialIndex':![],'wrapX':(_0x4d2c16===null||_0x4d2c16===void 0x0?void 0x0:_0x4d2c16[_0x5b913c(0x138)])?_0x4d2c16[_0x5b913c(0x138)]:![]}),'updateWhileInteracting':!![]}),this[_0x5b913c(0x13d)](a37_0x1aa277['ACTIVE'],this[_0x5b913c(0x129)]);}[a37_0x5625a2(0x129)](){const _0x370426=a37_0x5625a2,_0x2ebf6a=this[_0x370426(0x123)](),_0x38b6c1=this[_0x370426(0x100)]();(!_0x2ebf6a||!_0x38b6c1)&&this['abortDrawing'](),this[_0x370426(0x121)][_0x370426(0x12c)](_0x38b6c1?_0x2ebf6a:null),this['_tipOverlay'][_0x370426(0x12c)](_0x38b6c1?_0x2ebf6a:null);}[a37_0x5625a2(0x12c)](_0x124cd9){const _0xebec7c=a37_0x5625a2;super[_0xebec7c(0x12c)](_0x124cd9),this[_0xebec7c(0x129)]();}[a37_0x5625a2(0xf6)](_0x302886){const _0x430aaa=a37_0x5625a2;this[_0x430aaa(0x137)]=_0x302886?_0x302886:{};}[a37_0x5625a2(0x127)](){const _0x9f85f6=a37_0x5625a2;return this[_0x9f85f6(0x121)];}[a37_0x5625a2(0xe9)](_0x1f1b03){const _0x16d411=a37_0x5625a2;if(_0x1f1b03['originalEvent'][_0x16d411(0x11a)]===0x2)return _0x1f1b03[_0x16d411(0xf2)]['preventDefault'](),this['revert'](),this[_0x16d411(0xe0)](_0x1f1b03),![];return!![];}[a37_0x5625a2(0x120)](_0x1fe5b8){const _0x504db5=a37_0x5625a2;var _0x531906,_0x451f01;if(this[_0x504db5(0x109)]==_0x504db5(0xf5)&&this['_drawingCoordinates'][_0x504db5(0x122)]<0x1)return this['dispatchEvent'](new DrawEvent(DrawEventType[_0x504db5(0xe6)],undefined,[_0x1fe5b8[_0x504db5(0xf0)]])),![];if(!this[_0x504db5(0x111)])this[_0x504db5(0x101)](_0x1fe5b8[_0x504db5(0xf0)]),this[_0x504db5(0xfb)](new ShEvent(DrawEventType[_0x504db5(0x118)],this['_type'],_0x1fe5b8[_0x504db5(0xf0)],this[_0x504db5(0x13c)],(_0x531906=this[_0x504db5(0x123)]())===null||_0x531906===void 0x0?void 0x0:_0x531906[_0x504db5(0xea)]()[_0x504db5(0xf3)]()[_0x504db5(0x113)]())),this['_type']==_0x504db5(0x11c)&&this['finishDrawing']();else{if(this[_0x504db5(0x13c)]&&this['_drawingCoordinates'][_0x504db5(0x122)]>0x0){if(this[_0x504db5(0x12a)](_0x1fe5b8['pixel']))return this[_0x504db5(0xdf)](),_0x1fe5b8[_0x504db5(0x136)](),![];let _0x5693fc=this[_0x504db5(0x13c)][_0x504db5(0x122)]+0x1;_0x5693fc<=this[_0x504db5(0xfc)]&&this[_0x504db5(0x112)](_0x1fe5b8['coordinate']),this[_0x504db5(0xfb)](new ShEvent(DrawEventType[_0x504db5(0x118)],this[_0x504db5(0x109)],_0x1fe5b8[_0x504db5(0xf0)],this['_drawingCoordinates'],(_0x451f01=this[_0x504db5(0x123)]())===null||_0x451f01===void 0x0?void 0x0:_0x451f01[_0x504db5(0xea)]()['getProjection']()['getCode']())),_0x5693fc>=this[_0x504db5(0x107)]&&this['buildDrawingFeature'](this[_0x504db5(0x13c)]),_0x5693fc===this[_0x504db5(0xfc)]&&this[_0x504db5(0xdf)]();}}return _0x1fe5b8['preventDefault'](),![];}[a37_0x5625a2(0xef)](_0x403204){const _0x4a3fbf=a37_0x5625a2;var _0x178cd7;if(this['_type']==_0x4a3fbf(0xf5)&&_0x403204['originalEvent'][_0x4a3fbf(0xe4)]=='pointermove'){if(!this[_0x4a3fbf(0x111)]){this[_0x4a3fbf(0x101)](_0x403204[_0x4a3fbf(0xf0)]),this[_0x4a3fbf(0xfb)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x4a3fbf(0x109)],_0x403204[_0x4a3fbf(0xf0)],this[_0x4a3fbf(0x13c)],(_0x178cd7=this[_0x4a3fbf(0x123)]())===null||_0x178cd7===void 0x0?void 0x0:_0x178cd7[_0x4a3fbf(0xea)]()[_0x4a3fbf(0xf3)]()[_0x4a3fbf(0x113)]()));return;}let _0x3abf3a=[...this['_drawingCoordinates'],_0x403204['coordinate']];this[_0x4a3fbf(0x128)](_0x3abf3a),this[_0x4a3fbf(0xfb)](new DrawEvent(DrawEventType[_0x4a3fbf(0x140)],this[_0x4a3fbf(0x114)],this[_0x4a3fbf(0x13c)]));}}[a37_0x5625a2(0xe0)](_0x3ba586){const _0x3b340c=a37_0x5625a2;var _0x4ed211,_0x133603,_0x120919;let _0x14f128='';this['_type']=='pointermove'&&(this[_0x3b340c(0x101)](_0x3ba586[_0x3b340c(0xf0)]),this[_0x3b340c(0xfb)](new ShEvent(DrawEventType[_0x3b340c(0x118)],this[_0x3b340c(0x109)],_0x3ba586[_0x3b340c(0xf0)],this[_0x3b340c(0x13c)],(_0x4ed211=this[_0x3b340c(0x123)]())===null||_0x4ed211===void 0x0?void 0x0:_0x4ed211['getView']()[_0x3b340c(0xf3)]()['getCode']())),this[_0x3b340c(0xdf)]());!this['_isStayDraw']?_0x14f128=this[_0x3b340c(0x109)]==_0x3b340c(0xf5)?_0x3b340c(0x143):_0x3b340c(0x110):(_0x14f128=_0x3b340c(0x11b),((_0x133603=this[_0x3b340c(0x13c)])===null||_0x133603===void 0x0?void 0x0:_0x133603[_0x3b340c(0x122)])===this[_0x3b340c(0xfc)]-0x1&&(_0x14f128=_0x3b340c(0x13a)),((_0x120919=this[_0x3b340c(0x13c)])===null||_0x120919===void 0x0?void 0x0:_0x120919['length'])>=this['_minPoints']&&this['_fixPoint']===Number['MAX_VALUE']&&(_0x14f128='单击增加点,右击删除点双击完成绘制'));this[_0x3b340c(0xe2)]!=undefined&&(_0x14f128=this[_0x3b340c(0xe2)]);this[_0x3b340c(0x10a)](_0x3ba586[_0x3b340c(0xf0)],_0x14f128);if(this['_isStayDraw']&&this[_0x3b340c(0x109)]!='rectangle'){let _0x36ad7a=[...this['_drawingCoordinates'],_0x3ba586[_0x3b340c(0xf0)]];this[_0x3b340c(0x128)](_0x36ad7a),this[_0x3b340c(0xfb)](new DrawEvent(DrawEventType[_0x3b340c(0x140)],this[_0x3b340c(0x114)],this[_0x3b340c(0x13c)]));}}[a37_0x5625a2(0x12a)](_0x2179e9){const _0x273ac6=a37_0x5625a2;var _0x10cad1;let _0x1a7d37=![],_0x331fbe=this[_0x273ac6(0x13c)][_0x273ac6(0x122)];if(_0x331fbe>this[_0x273ac6(0x107)]&&this['_fixPoint']===Number[_0x273ac6(0xe1)]){const _0x8f8398=this['_drawingCoordinates'][this['_drawingCoordinates']['length']-0x1],_0x21ab0f=(_0x10cad1=this['getMap']())===null||_0x10cad1===void 0x0?void 0x0:_0x10cad1['getPixelFromCoordinate'](_0x8f8398),_0x5009b0=_0x2179e9[0x0]-(_0x21ab0f?_0x21ab0f[0x0]:0x0),_0xb1b47c=_0x2179e9[0x1]-(_0x21ab0f?_0x21ab0f[0x1]:0x0);_0x1a7d37=Math[_0x273ac6(0x10d)](_0x5009b0*_0x5009b0+_0xb1b47c*_0xb1b47c)<=this[_0x273ac6(0x142)];}return _0x1a7d37;}[a37_0x5625a2(0x101)](_0x55239b){const _0x1fb7d5=a37_0x5625a2;this[_0x1fb7d5(0x111)]=!![],this[_0x1fb7d5(0x13c)]=[_0x55239b[_0x1fb7d5(0xec)]()],this[_0x1fb7d5(0x114)]=this['createMultiPointFeature'](),this[_0x1fb7d5(0x13e)](),this['dispatchEvent'](new DrawEvent(DrawEventType[_0x1fb7d5(0x10e)],this[_0x1fb7d5(0x114)],this[_0x1fb7d5(0x13c)]));}[a37_0x5625a2(0xdf)](){const _0x5be700=a37_0x5625a2;if(this['_drawingCoordinates'][_0x5be700(0x122)]>this[_0x5be700(0x107)]){this['buildDrawingFeature'](this[_0x5be700(0x13c)]);let _0x189e8b=this[_0x5be700(0x13c)];const _0x560f61=this[_0x5be700(0x11e)]();if(!_0x560f61)return;this['dispatchEvent'](new DrawEvent(DrawEventType[_0x5be700(0xe6)],_0x560f61,_0x189e8b)),this['_features']&&this['_features']['push'](_0x560f61),this[_0x5be700(0x13f)]&&this['_source']['addFeature'](_0x560f61);}}[a37_0x5625a2(0x112)](_0x16c879){const _0x23e12=a37_0x5625a2;this['_drawingCoordinates'][_0x23e12(0x102)](_0x16c879),this[_0x23e12(0x114)]=this[_0x23e12(0x117)](),this[_0x23e12(0x13e)]();}[a37_0x5625a2(0x117)](){const _0x281a75=a37_0x5625a2,_0x28b022=new MultiPoint(this[_0x281a75(0x13c)]);let _0x19968e=new a37_0x24c430();return _0x19968e[_0x281a75(0x103)](_0x28b022),_0x19968e;}[a37_0x5625a2(0x11e)](){const _0xd073e6=a37_0x5625a2;var _0x1d9030,_0x2a18ea;this[_0xd073e6(0x111)]=![];const _0x434393=this['_sketchFeature'];return this[_0xd073e6(0x114)]=undefined,this[_0xd073e6(0x13c)]=[],(_0x1d9030=this[_0xd073e6(0x121)][_0xd073e6(0xfa)]())===null||_0x1d9030===void 0x0?void 0x0:_0x1d9030[_0xd073e6(0x141)](!![]),(_0x2a18ea=this[_0xd073e6(0xfd)]['getSource']())===null||_0x2a18ea===void 0x0?void 0x0:_0x2a18ea[_0xd073e6(0x141)](!![]),_0x434393;}[a37_0x5625a2(0x133)](){const _0x329421=a37_0x5625a2,_0x1044ad=this['abortDrawing_']();_0x1044ad&&this[_0x329421(0xfb)](new DrawEvent(DrawEventType[_0x329421(0xf9)],_0x1044ad,this[_0x329421(0x13c)]));}[a37_0x5625a2(0x128)](_0x2da9d7){const _0x575d65=a37_0x5625a2;this[_0x575d65(0x114)]=new a37_0x24c430();let _0x3d0bb6=createPlot(this[_0x575d65(0x109)],_0x2da9d7);if(!_0x3d0bb6)return;this[_0x575d65(0x114)][_0x575d65(0x103)](_0x3d0bb6);let _0x2351f3=[a37_0x448fa0[_0x575d65(0xee)],a37_0x448fa0[_0x575d65(0x10b)],a37_0x448fa0[_0x575d65(0x12b)]];if(_0x2351f3[_0x575d65(0xff)](this['_type'])>-0x1&&this[_0x575d65(0x137)]){}const _0x113acb=this[_0x575d65(0x123)]();this[_0x575d65(0x114)]['setStyle'](getStyle(this[_0x575d65(0x109)],this[_0x575d65(0x137)],this[_0x575d65(0x123)]())),this[_0x575d65(0x13e)]();}[a37_0x5625a2(0x13e)](){const _0x47587f=a37_0x5625a2,_0x52cd84=this[_0x47587f(0x121)]['getSource']();_0x52cd84&&this[_0x47587f(0x114)]&&(_0x52cd84[_0x47587f(0x141)](!![]),_0x52cd84[_0x47587f(0xe3)](this['_sketchFeature']));}[a37_0x5625a2(0x126)](){const _0x235c38=a37_0x5625a2;if(this[_0x235c38(0x111)]){if(this[_0x235c38(0x13c)]&&this[_0x235c38(0x13c)][_0x235c38(0x122)]>0x0){const _0xbf5e19=this[_0x235c38(0x121)]['getSource']();_0xbf5e19===null||_0xbf5e19===void 0x0?void 0x0:_0xbf5e19[_0x235c38(0x141)](!![]),this[_0x235c38(0x13c)][_0x235c38(0x134)](),this[_0x235c38(0x13c)][_0x235c38(0x122)]>=this[_0x235c38(0x107)]&&this[_0x235c38(0x128)](this[_0x235c38(0x13c)]),this['_drawingCoordinates']['length']===0x0&&(this['_isStayDraw']=![]);}}}[a37_0x5625a2(0x10a)](_0x28e31c,_0x584375){const _0x383d26=a37_0x5625a2;var _0x2411fb,_0x18a3ed,_0x45a260,_0x7602ff;if(!this['_showTip'])return;const _0x402e81=this[_0x383d26(0xfd)][_0x383d26(0xfa)]();_0x402e81===null||_0x402e81===void 0x0?void 0x0:_0x402e81[_0x383d26(0x141)](!![]),(_0x2411fb=this['_tipFeature'])===null||_0x2411fb===void 0x0?void 0x0:_0x2411fb['setGeometry'](new Point(_0x28e31c)),(_0x45a260=(_0x18a3ed=this[_0x383d26(0x105)])===null||_0x18a3ed===void 0x0?void 0x0:_0x18a3ed['getText']())===null||_0x45a260===void 0x0?void 0x0:_0x45a260['setText'](_0x584375),(_0x7602ff=this[_0x383d26(0x119)])===null||_0x7602ff===void 0x0?void 0x0:_0x7602ff['setStyle'](this[_0x383d26(0x105)]),this[_0x383d26(0x119)]&&(_0x402e81===null||_0x402e81===void 0x0?void 0x0:_0x402e81[_0x383d26(0xe3)](this[_0x383d26(0x119)]));}}function getDefaultStyleFunction(){const _0x4306d9=createEditingStyle();return function(_0x249a66,_0x1f01ac){const _0x47265d=a37_0x7101,_0x11af7f=_0x4306d9[_0x249a66['getGeometry']()[_0x47265d(0x135)]()];if(_0x11af7f&&_0x47265d(0x116)==_0x249a66['getGeometry']()[_0x47265d(0x135)]()){}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38_0x3dc677=a38_0x3f8d;function a38_0x3f8d(_0x5475d9,_0x8ad557){const _0x40a887=a38_0x40a8();return a38_0x3f8d=function(_0x3f8dce,_0x38e206){_0x3f8dce=_0x3f8dce-0x12d;let _0x68f6b8=_0x40a887[_0x3f8dce];return _0x68f6b8;},a38_0x3f8d(_0x5475d9,_0x8ad557);}(function(_0x101280,_0x29e53c){const _0x5eef1d=a38_0x3f8d,_0x5c8a9c=_0x101280();while(!![]){try{const _0x2087b1=parseInt(_0x5eef1d(0x140))/0x1+parseInt(_0x5eef1d(0x132))/0x2*(-parseInt(_0x5eef1d(0x13e))/0x3)+-parseInt(_0x5eef1d(0x13b))/0x4+parseInt(_0x5eef1d(0x13f))/0x5*(-parseInt(_0x5eef1d(0x130))/0x6)+-parseInt(_0x5eef1d(0x12d))/0x7+parseInt(_0x5eef1d(0x13a))/0x8*(parseInt(_0x5eef1d(0x12e))/0x9)+parseInt(_0x5eef1d(0x138))/0xa;if(_0x2087b1===_0x29e53c)break;else _0x5c8a9c['push'](_0x5c8a9c['shift']());}catch(_0x39fdc4){_0x5c8a9c['push'](_0x5c8a9c['shift']());}}}(a38_0x40a8,0x81e8f));export default class InteractionManager{constructor(_0x1c43b2){const _0x110d3a=a38_0x3f8d;this[_0x110d3a(0x136)]=_0x1c43b2,this[_0x110d3a(0x134)]=new Map();}[a38_0x3dc677(0x131)](_0x139d89,_0x4e941a){const _0x154a18=a38_0x3dc677;this[_0x154a18(0x134)][_0x154a18(0x13c)](_0x139d89)&&this['removeInteraction'](_0x139d89),_0x4e941a[_0x154a18(0x13d)](_0x154a18(0x135),_0x139d89),this[_0x154a18(0x134)][_0x154a18(0x13d)](_0x139d89,_0x4e941a),this[_0x154a18(0x136)][_0x154a18(0x131)](_0x4e941a);}['removeInteraction'](_0x298fb2){const _0x39953f=a38_0x3dc677,_0x54435b=this[_0x39953f(0x134)]['get'](_0x298fb2);_0x54435b&&(this['map']['removeInteraction'](_0x54435b),this['interactions'][_0x39953f(0x137)](_0x298fb2));}[a38_0x3dc677(0x139)](){const _0x18ee85=a38_0x3dc677;this[_0x18ee85(0x134)]['forEach'](_0x114c9e=>{const _0x28e627=_0x18ee85;this[_0x28e627(0x136)]['removeInteraction'](_0x114c9e);}),this['interactions']['clear']();}[a38_0x3dc677(0x12f)](_0x12e2e7){const _0x44ae86=a38_0x3dc677;return this[_0x44ae86(0x134)][_0x44ae86(0x133)](_0x12e2e7);}}function a38_0x40a8(){const _0x419cb1=['removeAllInteractions','2836384hmiuPH','4225720pvsyEy','has','set','3SQZCZI','255890hjoUbG','835217EQrvLu','4427150oEHEwB','9iKucyf','getInteraction','18zdhXpk','addInteraction','240094pbVyOy','get','interactions','name','map','delete','13048070dZyGvp'];a38_0x40a8=function(){return _0x419cb1;};return a38_0x40a8();}
|
package/interaction/Select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a39_0x7e0c(){const _0x14c3dc=['selectLayer','getLayers','selectIndex','drawmoving','getVisible','MultiPoint','tempLayer','ctrlKey','MultiPolygon','485SrdmMx','addTempLayer','length','selectedPolygonFeatures','cancePointStyle','layerType','selectedPointFeatures','url','allSelectedFeatures','getCode','lineStyle','holdCtrl','selectLayers','pointFeatures','954760AEymJB','pixelDistance','cut','union','setStyle','onInternal','seletctEditeFeature','selectTempLayer','addEventListener','drawend','coordinates','drawabort','getGeometry','selectstart','getPointTempLayer','polygonFeatures','SELECTED','getArray','dispatchEvent','getSelectedFeatures','layerId','getView','489621fFRUHq','push','193525tfJRYG','loadFilter','未获取到几何','MultiLineString','31026ecuacC','getMap','feature','filter','314790VrqDVR','selectedLineFeatures','setSelectLayers','Point','currentLayers','4152498SnMlIh','getProjection','lineFeatures','tipText','fromType','layerInfo','pointStyle','drawaddpoint','cancePolygonStyle','getType','SELECTSTART','Polygon','getLayerById','2241536JtfoLJ','draw','addFeatures','includes','allFeatures','canceLineStyle','polygonStyle','getSource','error','getPolygonTempLayer','LineString'];a39_0x7e0c=function(){return _0x14c3dc;};return a39_0x7e0c();}const a39_0x41a43b=a39_0x9d93;(function(_0x34952b,_0x2ebb27){const _0x2b0d9e=a39_0x9d93,_0x3c872a=_0x34952b();while(!![]){try{const _0x3bd0c0=parseInt(_0x2b0d9e(0xd6))/0x1+parseInt(_0x2b0d9e(0xde))/0x2+-parseInt(_0x2b0d9e(0xd4))/0x3+-parseInt(_0x2b0d9e(0xbe))/0x4+parseInt(_0x2b0d9e(0xb0))/0x5*(-parseInt(_0x2b0d9e(0xda))/0x6)+parseInt(_0x2b0d9e(0xe3))/0x7+parseInt(_0x2b0d9e(0xf0))/0x8;if(_0x3bd0c0===_0x2ebb27)break;else _0x3c872a['push'](_0x3c872a['shift']());}catch(_0x14c639){_0x3c872a['push'](_0x3c872a['shift']());}}}(a39_0x7e0c,0x4e54a));import a39_0x3659dc from'./Draw';import a39_0x391b7e from'ol/events/Event';function a39_0x9d93(_0x1fa2eb,_0x297148){const _0x7e0c63=a39_0x7e0c();return a39_0x9d93=function(_0x9d93b5,_0x4ad36d){_0x9d93b5=_0x9d93b5-0xa2;let _0x466212=_0x7e0c63[_0x9d93b5];return _0x466212;},a39_0x9d93(_0x1fa2eb,_0x297148);}import{bufferPixel,intersects}from'../utils/GeometryUtil';import{Point}from'ol/geom';import a39_0x428d28 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_0x41a43b(0xc7),'DRAWABORT':a39_0x41a43b(0xc9),'DRAWADDPOINT':a39_0x41a43b(0xea),'DRAWMOVING':a39_0x41a43b(0xaa),'SELECTSTART':a39_0x41a43b(0xcb),'SELECTED':'selected'};export class SelectEvent extends a39_0x391b7e{constructor(_0x429b31,_0xc5b09b,_0x266669,_0x223d08,_0x33890b,_0x3775a7,_0x1f8514,_0x464aa3,_0x274edc){const _0x54d032=a39_0x41a43b;super(_0x429b31),this['selectGeom']=_0x266669,this[_0x54d032(0xc8)]=_0x223d08,this[_0x54d032(0xbd)]=_0x33890b,this[_0x54d032(0xe5)]=_0x3775a7,this[_0x54d032(0xcd)]=_0x1f8514,this[_0x54d032(0xf4)]=_0x464aa3,this[_0x54d032(0xa4)]=_0x274edc,this[_0x54d032(0xbb)]=_0xc5b09b;}}export default class Select extends a39_0x3659dc{constructor(_0x4c287b,_0x560347){const _0x5a38aa=a39_0x41a43b;super(_0x4c287b,{'tipText':_0x560347===null||_0x560347===void 0x0?void 0x0:_0x560347[_0x5a38aa(0xe6)]}),this[_0x5a38aa(0xb6)]=[],this['selectedLineFeatures']=[],this[_0x5a38aa(0xb3)]=[],this['allSelectedFeatures']=[];const _0x3bfa29=_0x560347||{};this[_0x5a38aa(0xb1)]=_0x3bfa29[_0x5a38aa(0xb1)]||![],this[_0x5a38aa(0xe2)]=_0x3bfa29[_0x5a38aa(0xbc)],this[_0x5a38aa(0xc5)]=_0x3bfa29['selectTempLayer']===undefined?!![]:_0x3bfa29['selectTempLayer'],this[_0x5a38aa(0xbf)]=_0x3bfa29['pixelDistance']===undefined?0x5:_0x3bfa29[_0x5a38aa(0xbf)],this[_0x5a38aa(0xe9)]=_0x3bfa29[_0x5a38aa(0xe9)]?getStyle(_0x3bfa29['pointStyle']):getSelectPointStyle(),this[_0x5a38aa(0xb4)]=_0x3bfa29[_0x5a38aa(0xb4)]?getStyle(_0x3bfa29[_0x5a38aa(0xb4)]):getSelectCancePointStyle(),this['lineStyle']=_0x3bfa29[_0x5a38aa(0xba)]?getStyle(_0x3bfa29[_0x5a38aa(0xba)]):getSelectLineStyle(),this[_0x5a38aa(0xf5)]=_0x3bfa29[_0x5a38aa(0xf5)]?getStyle(_0x3bfa29[_0x5a38aa(0xf5)]):getSelectCancelLineStyle(),this[_0x5a38aa(0xa2)]=_0x3bfa29[_0x5a38aa(0xa2)]?getStyle(_0x3bfa29['polygonStyle']):getSelectPolygonStyle(),this[_0x5a38aa(0xeb)]=_0x3bfa29['cancePolygonStyle']?getStyle(_0x3bfa29[_0x5a38aa(0xeb)]):getSelectCancelPolygonStyle(),this[_0x5a38aa(0xbb)]=![];let _0x417e96;this['on']=this[_0x5a38aa(0xc3)],this['on'](_0x5a38aa(0xc7),async _0x59270d=>{const _0x13bd5d=_0x5a38aa,_0x41cc51=this[_0x13bd5d(0xbb)],_0x21985f=this[_0x13bd5d(0xdb)]();if(!_0x21985f)return;try{let _0x44d456=undefined;if(!_0x59270d[_0x13bd5d(0xdc)]&&_0x59270d[_0x13bd5d(0xc8)]&&_0x59270d[_0x13bd5d(0xc8)]['length']==0x1)_0x44d456=bufferPixel(new Point(_0x59270d['coordinates'][0x0]),this[_0x13bd5d(0xbf)],_0x21985f);else _0x59270d[_0x13bd5d(0xdc)]&&(_0x44d456=_0x59270d[_0x13bd5d(0xdc)][_0x13bd5d(0xca)]());if(!_0x44d456)throw new Error(_0x13bd5d(0xd8));this['dispatchEvent'](new SelectEvent(SelectEventType[_0x13bd5d(0xed)],_0x41cc51,_0x44d456)),this[_0x13bd5d(0xb6)]=[],this[_0x13bd5d(0xdf)]=[],this[_0x13bd5d(0xb3)]=[],this[_0x13bd5d(0xb8)]=[],this['selectTempLayer']&&this[_0x13bd5d(0xc4)](_0x44d456),_0x417e96&&clearTimeout(_0x417e96),_0x417e96=setTimeout(async()=>{const _0xdcbd24=_0x13bd5d;await this[_0xdcbd24(0xa7)](_0x44d456),this[_0xdcbd24(0xd0)](new SelectEvent(SelectEventType[_0xdcbd24(0xce)],_0x41cc51,_0x44d456,_0x59270d['coordinates'],this[_0xdcbd24(0xb6)],this['selectedLineFeatures'],this['selectedPolygonFeatures'],this['allSelectedFeatures']));},0x46);}catch(_0x150a4e){this[_0x13bd5d(0xd0)](new SelectEvent(SelectEventType[_0x13bd5d(0xce)],_0x41cc51,undefined,_0x59270d['coordinates'],this['selectedPointFeatures'],this[_0x13bd5d(0xdf)],this[_0x13bd5d(0xb3)],this[_0x13bd5d(0xb8)],_0x150a4e['message']));}}),window['addEventListener']('keydown',_0x25efe1=>{const _0x309196=_0x5a38aa;_0x25efe1[_0x309196(0xae)]&&(this[_0x309196(0xbb)]=!![]);}),window[_0x5a38aa(0xc6)]('keyup',_0x1f5c5d=>{this['holdCtrl']=![];});}[a39_0x41a43b(0xe0)](_0x1f8df3){const _0x4f53ed=a39_0x41a43b;this[_0x4f53ed(0xe2)]=_0x1f8df3;}async[a39_0x41a43b(0xa7)](_0x471c8d){const _0x1a7ad6=a39_0x41a43b;var _0x50a034;const _0x5f38fb=this[_0x1a7ad6(0xdb)]();let _0x377137=[];if(this[_0x1a7ad6(0xe2)]&&this[_0x1a7ad6(0xe2)][_0x1a7ad6(0xb2)]>0x0)_0x377137=this[_0x1a7ad6(0xe2)];else{let _0x40c914=_0x5f38fb[_0x1a7ad6(0xa8)]()[_0x1a7ad6(0xcf)]();_0x40c914=_0x40c914[_0x1a7ad6(0xdd)](_0x3e2c2b=>{const _0x37ba06=_0x1a7ad6,_0x58b75d=_0x3e2c2b[_0x37ba06(0xe8)];if(!_0x58b75d)return![];return _0x3e2c2b[_0x37ba06(0xab)]()==!![]&&_0x58b75d[_0x37ba06(0xa9)]!=undefined&&_0x58b75d['selectIndex']!='';}),_0x377137=_0x40c914['map'](_0x269e6a=>{const _0x5d3fe5=_0x1a7ad6;return _0x269e6a[_0x5d3fe5(0xe8)];});}if(!_0x377137||_0x377137[_0x1a7ad6(0xb2)]==0x0)return;const _0x418d01=_0x5f38fb[_0x1a7ad6(0xd3)]()[_0x1a7ad6(0xe4)]()[_0x1a7ad6(0xb9)]();for(let _0x11e21c=0x0,_0x435ea0=_0x377137[_0x1a7ad6(0xb2)];_0x11e21c<_0x435ea0;_0x11e21c++){const _0x591654=_0x377137[_0x11e21c],_0x54e550=_0x5f38fb[_0x1a7ad6(0xef)](_0x591654['id']);if(!_0x54e550||_0x54e550[_0x1a7ad6(0xab)]()==![]||!_0x591654||!_0x591654[_0x1a7ad6(0xb7)]||!_0x591654[_0x1a7ad6(0xa9)])continue;let _0x5d65b6=await selectFeaturesByGeo(_0x471c8d,_0x418d01,_0x591654[_0x1a7ad6(0xb7)],_0x591654[_0x1a7ad6(0xa9)],_0x591654[_0x1a7ad6(0xb5)],_0x591654[_0x1a7ad6(0xd7)]);if(_0x5d65b6['length']>0x0){this['allSelectedFeatures']['push'](..._0x5d65b6);let _0xe31784=_0x5f38fb[_0x1a7ad6(0xa5)](),_0x3a2c17=this['polygonStyle'];switch((_0x50a034=_0x5d65b6[0x0][_0x1a7ad6(0xca)]())===null||_0x50a034===void 0x0?void 0x0:_0x50a034[_0x1a7ad6(0xec)]()){case'Point':case _0x1a7ad6(0xac):this[_0x1a7ad6(0xb6)][_0x1a7ad6(0xd5)](..._0x5d65b6),_0xe31784=_0x5f38fb[_0x1a7ad6(0xcc)](),_0x3a2c17=this[_0x1a7ad6(0xe9)];break;case _0x1a7ad6(0xa6):case'MultiLineString':this[_0x1a7ad6(0xdf)][_0x1a7ad6(0xd5)](..._0x5d65b6),_0xe31784=_0x5f38fb['getLineTempLayer'](),_0x3a2c17=this[_0x1a7ad6(0xba)];break;case _0x1a7ad6(0xee):case _0x1a7ad6(0xaf):this[_0x1a7ad6(0xb3)][_0x1a7ad6(0xd5)](..._0x5d65b6),_0xe31784=_0x5f38fb[_0x1a7ad6(0xa5)](),_0x3a2c17=this['polygonStyle'];break;default:break;}const _0x2020bc=_0xe31784[_0x1a7ad6(0xa3)]();_0x2020bc&&(_0x5d65b6['forEach'](_0x4d2604=>{const _0x1057b2=_0x1a7ad6;_0x4d2604[_0x1057b2(0xd2)]=_0x591654['id'],_0x4d2604[_0x1057b2(0xad)]=_0xe31784,_0x4d2604[_0x1057b2(0xc2)](_0x3a2c17);}),this[_0x1a7ad6(0xb1)]&&_0x2020bc[_0x1a7ad6(0xf2)](_0x5d65b6));}}}[a39_0x41a43b(0xc4)](_0x1864d6){const _0x1f1781=a39_0x41a43b,_0x4b03a2=new a39_0x428d28(this[_0x1f1781(0xdb)]()),_0xd34466=_0x4b03a2[_0x1f1781(0xd1)]();if(!_0xd34466||_0xd34466[_0x1f1781(0xb2)]===0x0)return[];const _0x151a5a=['copy',_0x1f1781(0xc0),_0x1f1781(0xf1),'import',_0x1f1781(0xc1)],_0x2e842b=[];for(const _0x311964 of _0xd34466){if(!_0x311964||!_0x311964[_0x1f1781(0xe7)]||!_0x151a5a[_0x1f1781(0xf3)](_0x311964['fromType']))continue;const _0x53e135=_0x311964[_0x1f1781(0xca)]();if(!_0x53e135)continue;if(!intersects(_0x53e135,_0x1864d6))continue;let _0x4a630b=this['polygonStyle'];this['allSelectedFeatures'][_0x1f1781(0xd5)](_0x311964);switch(_0x53e135[_0x1f1781(0xec)]()){case _0x1f1781(0xe1):case'MultiPoint':this[_0x1f1781(0xb6)][_0x1f1781(0xd5)](_0x311964),_0x4a630b=this['pointStyle'];break;case'LineString':case _0x1f1781(0xd9):this[_0x1f1781(0xdf)][_0x1f1781(0xd5)](_0x311964),_0x4a630b=this[_0x1f1781(0xba)];break;case _0x1f1781(0xee):case _0x1f1781(0xaf):this[_0x1f1781(0xb3)][_0x1f1781(0xd5)](_0x311964),_0x4a630b=this['polygonStyle'];break;default:break;}_0x311964[_0x1f1781(0xc2)](_0x4a630b);}return _0x2e842b;}}
|
|
1
|
+
function a39_0x2b0f(){const _0x3ce2d4=['getType','dispatchEvent','drawabort','feature','SELECTED','1041lBvmjq','MultiLineString','draw','layerType','holdCtrl','addFeatures','push','currentLayers','copy','13VDMHgD','setSelectLayers','forEach','70ToRtRg','seletctEditeFeature','polygonStyle','556EQrRvM','tipText','2684735hXfzgv','3fKVURk','filter','error','drawmoving','addEventListener','selectedLineFeatures','getVisible','drawaddpoint','selectLayer','MultiPolygon','60248yhnGVW','addTempLayer','pixelDistance','pointStyle','getLayerById','getArray','layerId','getCode','allSelectedFeatures','getProjection','selectTempLayer','keydown','7CloZmX','selectGeom','LineString','selected','getMap','selectIndex','length','import','canceLineStyle','url','2680898jOGFHT','selectLayers','Point','lineStyle','selectedPolygonFeatures','18jqjMfK','lineFeatures','map','layerInfo','getGeometry','13643739UmgdKz','94530YILapQ','71084532FJEXeI','getSelectedFeatures','message','cancePointStyle','setStyle','coordinates','Polygon','getSource','SELECTSTART','drawend','getView','MultiPoint','cancePolygonStyle','getLayers','selectstart','未获取到几何','ctrlKey','allFeatures','onInternal','selectedPointFeatures','union','getLineTempLayer','drawstart','fromType'];a39_0x2b0f=function(){return _0x3ce2d4;};return a39_0x2b0f();}const a39_0x176fe4=a39_0x5dd3;(function(_0x51c30c,_0xb5f739){const _0x45e7a9=a39_0x5dd3,_0x1a1092=_0x51c30c();while(!![]){try{const _0xe1265f=-parseInt(_0x45e7a9(0x1c1))/0x1*(parseInt(_0x45e7a9(0x191))/0x2)+parseInt(_0x45e7a9(0x1af))/0x3*(-parseInt(_0x45e7a9(0x1be))/0x4)+-parseInt(_0x45e7a9(0x1c0))/0x5*(parseInt(_0x45e7a9(0x1e6))/0x6)+parseInt(_0x45e7a9(0x1d7))/0x7*(parseInt(_0x45e7a9(0x1cb))/0x8)+-parseInt(_0x45e7a9(0x1eb))/0x9+-parseInt(_0x45e7a9(0x1bb))/0xa*(parseInt(_0x45e7a9(0x1e1))/0xb)+parseInt(_0x45e7a9(0x192))/0xc*(parseInt(_0x45e7a9(0x1b8))/0xd);if(_0xe1265f===_0xb5f739)break;else _0x1a1092['push'](_0x1a1092['shift']());}catch(_0xef3869){_0x1a1092['push'](_0x1a1092['shift']());}}}(a39_0x2b0f,0xddc58));import a39_0x253f7f from'./Draw';import a39_0x3f2dff from'ol/events/Event';import{bufferPixel,intersects}from'../utils/GeometryUtil';function a39_0x5dd3(_0x5973dd,_0x3fff2e){const _0x2b0ff6=a39_0x2b0f();return a39_0x5dd3=function(_0x5dd387,_0x4de2c2){_0x5dd387=_0x5dd387-0x191;let _0x264cb7=_0x2b0ff6[_0x5dd387];return _0x264cb7;},a39_0x5dd3(_0x5973dd,_0x3fff2e);}import{Point}from'ol/geom';import a39_0x1010e9 from'../feature/FeatureManager';import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';import{selectFeaturesByGeo}from'../utils/tasks';const SelectEventType={'DRAWSTART':a39_0x176fe4(0x1a8),'DRAWEND':a39_0x176fe4(0x19b),'DRAWABORT':a39_0x176fe4(0x1ac),'DRAWADDPOINT':a39_0x176fe4(0x1c8),'DRAWMOVING':a39_0x176fe4(0x1c4),'SELECTSTART':a39_0x176fe4(0x1a0),'SELECTED':a39_0x176fe4(0x1da)};export class SelectEvent extends a39_0x3f2dff{constructor(_0x42cae5,_0x4e828b,_0x477161,_0xe90f9e,_0x1097b5,_0x4827bc,_0x20686b,_0x5c321f,_0x3fcf77){const _0x560f4d=a39_0x176fe4;super(_0x42cae5),this[_0x560f4d(0x1d8)]=_0x477161,this[_0x560f4d(0x197)]=_0xe90f9e,this['pointFeatures']=_0x1097b5,this[_0x560f4d(0x1e7)]=_0x4827bc,this['polygonFeatures']=_0x20686b,this[_0x560f4d(0x1a3)]=_0x5c321f,this[_0x560f4d(0x1c3)]=_0x3fcf77,this[_0x560f4d(0x1b3)]=_0x4e828b;}}export default class Select extends a39_0x253f7f{constructor(_0x2fec43,_0x557f32){const _0x12a43b=a39_0x176fe4;super(_0x2fec43,{'tipText':_0x557f32===null||_0x557f32===void 0x0?void 0x0:_0x557f32[_0x12a43b(0x1bf)]}),this[_0x12a43b(0x1a5)]=[],this[_0x12a43b(0x1c6)]=[],this[_0x12a43b(0x1e5)]=[],this[_0x12a43b(0x1d3)]=[];const _0x1ee8c2=_0x557f32||{};this[_0x12a43b(0x1cc)]=_0x1ee8c2[_0x12a43b(0x1cc)]||![],this[_0x12a43b(0x1b6)]=_0x1ee8c2[_0x12a43b(0x1e2)],this[_0x12a43b(0x1d5)]=_0x1ee8c2[_0x12a43b(0x1d5)]===undefined?!![]:_0x1ee8c2[_0x12a43b(0x1d5)],this['pixelDistance']=_0x1ee8c2[_0x12a43b(0x1cd)]===undefined?0x5:_0x1ee8c2[_0x12a43b(0x1cd)],this[_0x12a43b(0x1ce)]=_0x1ee8c2['pointStyle']?getStyle(_0x1ee8c2['pointStyle']):getSelectPointStyle(),this[_0x12a43b(0x195)]=_0x1ee8c2[_0x12a43b(0x195)]?getStyle(_0x1ee8c2['cancePointStyle']):getSelectCancePointStyle(),this[_0x12a43b(0x1e4)]=_0x1ee8c2[_0x12a43b(0x1e4)]?getStyle(_0x1ee8c2[_0x12a43b(0x1e4)]):getSelectLineStyle(),this[_0x12a43b(0x1df)]=_0x1ee8c2[_0x12a43b(0x1df)]?getStyle(_0x1ee8c2['canceLineStyle']):getSelectCancelLineStyle(),this[_0x12a43b(0x1bd)]=_0x1ee8c2[_0x12a43b(0x1bd)]?getStyle(_0x1ee8c2[_0x12a43b(0x1bd)]):getSelectPolygonStyle(),this[_0x12a43b(0x19e)]=_0x1ee8c2['cancePolygonStyle']?getStyle(_0x1ee8c2[_0x12a43b(0x19e)]):getSelectCancelPolygonStyle(),this['holdCtrl']=![];let _0x3c6ecf;this['on']=this[_0x12a43b(0x1a4)],this['on'](_0x12a43b(0x19b),async _0x301dd0=>{const _0x21b551=_0x12a43b,_0x464afa=this[_0x21b551(0x1b3)],_0x49093c=this[_0x21b551(0x1db)]();if(!_0x49093c)return;try{let _0x5ddf92=undefined;if(!_0x301dd0[_0x21b551(0x1ad)]&&_0x301dd0[_0x21b551(0x197)]&&_0x301dd0[_0x21b551(0x197)]['length']==0x1)_0x5ddf92=bufferPixel(new Point(_0x301dd0[_0x21b551(0x197)][0x0]),this['pixelDistance'],_0x49093c);else _0x301dd0[_0x21b551(0x1ad)]&&(_0x5ddf92=_0x301dd0['feature']['getGeometry']());if(!_0x5ddf92)throw new Error(_0x21b551(0x1a1));this[_0x21b551(0x1ab)](new SelectEvent(SelectEventType[_0x21b551(0x19a)],_0x464afa,_0x5ddf92)),this[_0x21b551(0x1a5)]=[],this[_0x21b551(0x1c6)]=[],this['selectedPolygonFeatures']=[],this[_0x21b551(0x1d3)]=[],this[_0x21b551(0x1d5)]&&this[_0x21b551(0x1bc)](_0x5ddf92),_0x3c6ecf&&clearTimeout(_0x3c6ecf),_0x3c6ecf=setTimeout(async()=>{const _0x422fc8=_0x21b551;await this[_0x422fc8(0x1c9)](_0x5ddf92),this[_0x422fc8(0x1ab)](new SelectEvent(SelectEventType['SELECTED'],_0x464afa,_0x5ddf92,_0x301dd0['coordinates'],this[_0x422fc8(0x1a5)],this[_0x422fc8(0x1c6)],this[_0x422fc8(0x1e5)],this['allSelectedFeatures']));},0x46);}catch(_0x37d3e2){this[_0x21b551(0x1ab)](new SelectEvent(SelectEventType[_0x21b551(0x1ae)],_0x464afa,undefined,_0x301dd0[_0x21b551(0x197)],this['selectedPointFeatures'],this[_0x21b551(0x1c6)],this[_0x21b551(0x1e5)],this[_0x21b551(0x1d3)],_0x37d3e2[_0x21b551(0x194)]));}}),window[_0x12a43b(0x1c5)](_0x12a43b(0x1d6),_0x28618a=>{const _0x109396=_0x12a43b;_0x28618a[_0x109396(0x1a2)]&&(this[_0x109396(0x1b3)]=!![]);}),window[_0x12a43b(0x1c5)]('keyup',_0x369f83=>{this['holdCtrl']=![];});}[a39_0x176fe4(0x1b9)](_0x577827){const _0x5f1e72=a39_0x176fe4;this[_0x5f1e72(0x1b6)]=_0x577827;}async[a39_0x176fe4(0x1c9)](_0x407121){const _0xda0e39=a39_0x176fe4;var _0x4fca1d;const _0x3ea742=this['getMap']();let _0x5788c9=[];if(this['currentLayers']&&this[_0xda0e39(0x1b6)]['length']>0x0)_0x5788c9=this[_0xda0e39(0x1b6)];else{let _0xb2e372=_0x3ea742[_0xda0e39(0x19f)]()[_0xda0e39(0x1d0)]();_0xb2e372=_0xb2e372[_0xda0e39(0x1c2)](_0x4da873=>{const _0x48b407=_0xda0e39,_0x3cc83c=_0x4da873[_0x48b407(0x1e9)];if(!_0x3cc83c)return![];return _0x4da873[_0x48b407(0x1c7)]()==!![]&&_0x3cc83c[_0x48b407(0x1dc)]!=undefined&&_0x3cc83c[_0x48b407(0x1dc)]!='';}),_0x5788c9=_0xb2e372[_0xda0e39(0x1e8)](_0x362574=>{return _0x362574['layerInfo'];});}if(!_0x5788c9||_0x5788c9[_0xda0e39(0x1dd)]==0x0)return;const _0xd4b88a=_0x3ea742[_0xda0e39(0x19c)]()[_0xda0e39(0x1d4)]()[_0xda0e39(0x1d2)]();for(let _0x1f5088=0x0,_0x12ae59=_0x5788c9['length'];_0x1f5088<_0x12ae59;_0x1f5088++){const _0x183099=_0x5788c9[_0x1f5088],_0x30db84=_0x3ea742[_0xda0e39(0x1cf)](_0x183099['id']);if(!_0x30db84||_0x30db84['getVisible']()==![]||!_0x183099||!_0x183099['url']||!_0x183099[_0xda0e39(0x1dc)])continue;let _0x12ceb5=await selectFeaturesByGeo(_0x407121,_0xd4b88a,_0x183099[_0xda0e39(0x1e0)],_0x183099[_0xda0e39(0x1dc)],_0x183099[_0xda0e39(0x1b2)],_0x183099['loadFilter']);if(_0x12ceb5[_0xda0e39(0x1dd)]>0x0){this[_0xda0e39(0x1d3)][_0xda0e39(0x1b5)](..._0x12ceb5);let _0x255bc1=_0x3ea742['getPolygonTempLayer'](),_0x343539=this[_0xda0e39(0x1bd)];switch((_0x4fca1d=_0x12ceb5[0x0][_0xda0e39(0x1ea)]())===null||_0x4fca1d===void 0x0?void 0x0:_0x4fca1d[_0xda0e39(0x1aa)]()){case _0xda0e39(0x1e3):case _0xda0e39(0x19d):this[_0xda0e39(0x1a5)][_0xda0e39(0x1b5)](..._0x12ceb5),_0x255bc1=_0x3ea742['getPointTempLayer'](),_0x343539=this[_0xda0e39(0x1ce)];break;case'LineString':case'MultiLineString':this['selectedLineFeatures'][_0xda0e39(0x1b5)](..._0x12ceb5),_0x255bc1=_0x3ea742[_0xda0e39(0x1a7)](),_0x343539=this['lineStyle'];break;case _0xda0e39(0x198):case _0xda0e39(0x1ca):this['selectedPolygonFeatures'][_0xda0e39(0x1b5)](..._0x12ceb5),_0x255bc1=_0x3ea742['getPolygonTempLayer'](),_0x343539=this[_0xda0e39(0x1bd)];break;default:break;}const _0x5e5cfe=_0x255bc1[_0xda0e39(0x199)]();_0x5e5cfe&&(_0x12ceb5[_0xda0e39(0x1ba)](_0xa11209=>{const _0x9f51a4=_0xda0e39;_0xa11209[_0x9f51a4(0x1d1)]=_0x183099['id'],_0xa11209['tempLayer']=_0x255bc1,_0xa11209[_0x9f51a4(0x196)](_0x343539);}),this[_0xda0e39(0x1cc)]&&_0x5e5cfe[_0xda0e39(0x1b4)](_0x12ceb5));}}}[a39_0x176fe4(0x1bc)](_0x855b28){const _0x225684=a39_0x176fe4,_0x83f400=new a39_0x1010e9(this[_0x225684(0x1db)]()),_0x560e36=_0x83f400[_0x225684(0x193)]();if(!_0x560e36||_0x560e36['length']===0x0)return[];const _0x205078=[_0x225684(0x1b7),'cut',_0x225684(0x1b1),_0x225684(0x1de),_0x225684(0x1a6)],_0x2ff2e9=[];for(const _0x227fe8 of _0x560e36){if(!_0x227fe8||!_0x227fe8[_0x225684(0x1a9)]||!_0x205078['includes'](_0x227fe8[_0x225684(0x1a9)]))continue;const _0x4fc54f=_0x227fe8[_0x225684(0x1ea)]();if(!_0x4fc54f)continue;if(!intersects(_0x4fc54f,_0x855b28))continue;let _0x576318=this[_0x225684(0x1bd)];this[_0x225684(0x1d3)][_0x225684(0x1b5)](_0x227fe8);switch(_0x4fc54f[_0x225684(0x1aa)]()){case _0x225684(0x1e3):case _0x225684(0x19d):this[_0x225684(0x1a5)][_0x225684(0x1b5)](_0x227fe8),_0x576318=this[_0x225684(0x1ce)];break;case _0x225684(0x1d9):case _0x225684(0x1b0):this[_0x225684(0x1c6)][_0x225684(0x1b5)](_0x227fe8),_0x576318=this[_0x225684(0x1e4)];break;case _0x225684(0x198):case _0x225684(0x1ca):this[_0x225684(0x1e5)][_0x225684(0x1b5)](_0x227fe8),_0x576318=this[_0x225684(0x1bd)];break;default:break;}_0x227fe8[_0x225684(0x196)](_0x576318);}return _0x2ff2e9;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a40_0x507b(_0x588f4f,_0x58a7a9){const _0x3e807c=a40_0x3e80();return a40_0x507b=function(_0x507b5c,_0xd26e88){_0x507b5c=_0x507b5c-0x160;let _0x49019a=_0x3e807c[_0x507b5c];return _0x49019a;},a40_0x507b(_0x588f4f,_0x58a7a9);}const a40_0x325e40=a40_0x507b;(function(_0x23149c,_0x752363){const _0x5618cf=a40_0x507b,_0x19d8e7=_0x23149c();while(!![]){try{const _0x4d2b25=-parseInt(_0x5618cf(0x171))/0x1+-parseInt(_0x5618cf(0x17c))/0x2+-parseInt(_0x5618cf(0x163))/0x3+parseInt(_0x5618cf(0x176))/0x4*(parseInt(_0x5618cf(0x17e))/0x5)+parseInt(_0x5618cf(0x160))/0x6+-parseInt(_0x5618cf(0x172))/0x7+parseInt(_0x5618cf(0x17d))/0x8;if(_0x4d2b25===_0x752363)break;else _0x19d8e7['push'](_0x19d8e7['shift']());}catch(_0xd92c45){_0x19d8e7['push'](_0x19d8e7['shift']());}}}(a40_0x3e80,0x96a57));import a40_0x2c9b99 from'ol/source/ImageArcGISRest';import{Image as a40_0x54ae42}from'ol/layer';function a40_0x3e80(){const _0x5ba7d8=['mapIndex','loadFilter','join','initialExtent','164120MMEMhp','4095469QFDwQm','layerDefs','xmin','getSource','26252lvUDQg','spatialReference','EPSG:','stringify','layerInfo','ymin','227258GCuXDX','8029200fMPtwu','735UguzTM','anonymous','2176356QBOjme','selectIndex','setFilter','2553822bTiANw','updateParams','wkid','wkt','fullExtent','opacity','url','xmax','ymax','show:'];a40_0x3e80=function(){return _0x5ba7d8;};return a40_0x3e80();}import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisDynamicLayer extends a40_0x54ae42{constructor(_0x50452d,_0x5b1861){const _0x4abd05=a40_0x507b;var _0x343f68;let _0x67ce97={'LAYERS':_0x4abd05(0x16c)+((_0x343f68=_0x50452d['sublayers'])===null||_0x343f68===void 0x0?void 0x0:_0x343f68[_0x4abd05(0x16f)](','))};if(_0x50452d[_0x4abd05(0x16e)]&&_0x50452d[_0x4abd05(0x161)]){const _0xbb6ec4={};_0xbb6ec4[_0x50452d[_0x4abd05(0x161)]]=_0x50452d[_0x4abd05(0x16e)],_0x67ce97[_0x4abd05(0x173)]=JSON[_0x4abd05(0x179)](_0xbb6ec4);}const _0x18e208=[_0x5b1861[_0x4abd05(0x170)][_0x4abd05(0x174)],_0x5b1861[_0x4abd05(0x170)][_0x4abd05(0x17b)],_0x5b1861[_0x4abd05(0x170)]['xmax'],_0x5b1861[_0x4abd05(0x170)][_0x4abd05(0x16b)]],_0x1e59ad=[_0x5b1861[_0x4abd05(0x167)][_0x4abd05(0x174)],_0x5b1861[_0x4abd05(0x167)][_0x4abd05(0x17b)],_0x5b1861[_0x4abd05(0x167)][_0x4abd05(0x16a)],_0x5b1861[_0x4abd05(0x167)]['ymax']];let _0xceaee2;_0x5b1861[_0x4abd05(0x177)][_0x4abd05(0x165)]?_0xceaee2=registerProj(_0x4abd05(0x178)+_0x5b1861['spatialReference'][_0x4abd05(0x165)],_0x1e59ad):_0xceaee2=registerProj(_0x5b1861[_0x4abd05(0x177)][_0x4abd05(0x166)],_0x1e59ad),super({'opacity':_0x50452d[_0x4abd05(0x168)],'zIndex':_0x50452d[_0x4abd05(0x16d)],'source':new a40_0x2c9b99({'crossOrigin':_0x4abd05(0x17f),'projection':_0xceaee2,'ratio':0x1,'url':_0x50452d[_0x4abd05(0x169)],'params':_0x67ce97})}),this['id']=_0x50452d['id'],this['initialExtent']=_0x18e208,this['projection']=_0xceaee2,this[_0x4abd05(0x17a)]=_0x50452d;}[a40_0x325e40(0x162)](_0x3d82b1){const _0x4618e6=a40_0x325e40;var _0x31187e;const _0x421b79={};this[_0x4618e6(0x17a)][_0x4618e6(0x161)]&&(_0x421b79[this['layerInfo'][_0x4618e6(0x161)]]=_0x3d82b1),(_0x31187e=this[_0x4618e6(0x175)]())===null||_0x31187e===void 0x0?void 0x0:_0x31187e[_0x4618e6(0x164)]({'layerDefs':JSON[_0x4618e6(0x179)](_0x3d82b1)});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41_0xdc13fd=a41_0x49bd;(function(_0x2fb121,_0x622ff7){const _0x1b9197=a41_0x49bd,_0x2c3caf=_0x2fb121();while(!![]){try{const _0x425f46=parseInt(_0x1b9197(0x14a))/0x1+parseInt(_0x1b9197(0x154))/0x2*(-parseInt(_0x1b9197(0x145))/0x3)+-parseInt(_0x1b9197(0x16e))/0x4+-parseInt(_0x1b9197(0x160))/0x5*(parseInt(_0x1b9197(0x168))/0x6)+parseInt(_0x1b9197(0x14b))/0x7+-parseInt(_0x1b9197(0x171))/0x8+-parseInt(_0x1b9197(0x175))/0x9*(-parseInt(_0x1b9197(0x157))/0xa);if(_0x425f46===_0x622ff7)break;else _0x2c3caf['push'](_0x2c3caf['shift']());}catch(_0x23f641){_0x2c3caf['push'](_0x2c3caf['shift']());}}}(a41_0x4ab3,0x7b37b));import a41_0x4b1c81 from'ol/format/EsriJSON';function a41_0x49bd(_0x176b58,_0x4a40fe){const _0x4ab361=a41_0x4ab3();return a41_0x49bd=function(_0x49bdb2,_0x4aa5b9){_0x49bdb2=_0x49bdb2-0x13f;let _0x58bbd2=_0x4ab361[_0x49bdb2];return _0x58bbd2;},a41_0x49bd(_0x176b58,_0x4a40fe);}import a41_0x9e1f42 from'ol/source/Vector';import{Vector as a41_0x58aec7}from'ol/layer';import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';import{tile as a41_0x398ca6}from'ol/loadingstrategy';import a41_0xedf255 from'ol/layer/Group';import{registerProj}from'../utils/RegisterProjUtil';import{transformedEsriStyle}from'../utils/StyleUtil';import a41_0x23496c from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';export default class ArcgisFeatureLayer extends a41_0xedf255{constructor(_0x531b4f,_0x377aeb,_0x68fe13){const _0x140f35=a41_0x49bd,_0x2fb9f7=[_0x377aeb[_0x140f35(0x156)]['xmin'],_0x377aeb[_0x140f35(0x156)]['ymin'],_0x377aeb[_0x140f35(0x156)][_0x140f35(0x13f)],_0x377aeb[_0x140f35(0x156)][_0x140f35(0x159)]],_0x35c513=[_0x377aeb[_0x140f35(0x140)][_0x140f35(0x151)],_0x377aeb[_0x140f35(0x140)]['ymin'],_0x377aeb[_0x140f35(0x140)][_0x140f35(0x13f)],_0x377aeb[_0x140f35(0x140)][_0x140f35(0x159)]];let _0x2badc5;_0x377aeb[_0x140f35(0x144)]['wkid']?_0x2badc5=registerProj(_0x140f35(0x147)+_0x377aeb[_0x140f35(0x144)]['wkid'],_0x35c513):_0x2badc5=registerProj(_0x377aeb[_0x140f35(0x144)][_0x140f35(0x165)],_0x35c513);let _0xc701ec=[];super({'zIndex':_0x531b4f[_0x140f35(0x158)]});for(let _0x5586cc of _0x68fe13){let _0x2740c5=this[_0x140f35(0x172)](_0x531b4f,_0x5586cc);_0xc701ec[_0x140f35(0x141)](_0x2740c5);}this[_0x140f35(0x161)](new a41_0x23496c(_0xc701ec)),this['id']=_0x531b4f['id'],this[_0x140f35(0x156)]=_0x2fb9f7,this[_0x140f35(0x150)]=_0x2badc5,this[_0x140f35(0x16c)]=_0x531b4f;}[a41_0xdc13fd(0x172)](_0x115a8d,_0xc820e3){const _0x3a0795=a41_0xdc13fd;var _0x589692=new a41_0x4b1c81();let _0x31374d=new a41_0x9e1f42({'loader':function(_0xe1e849,_0x10f504,_0x61972c){const _0x42a8bb=a41_0x49bd;let _0x28b0cd=_0x42a8bb(0x142);_0x115a8d[_0x42a8bb(0x167)]&&(_0x28b0cd=typeof _0x115a8d[_0x42a8bb(0x167)]===_0x42a8bb(0x170)?_0x115a8d[_0x42a8bb(0x167)]:JSON[_0x42a8bb(0x163)](_0x115a8d['loadFilter']));let _0x35cfdd=_0x61972c[_0x42a8bb(0x14c)](),_0x2e4a8b=_0x35cfdd['split'](':')[0x1];var _0x58a941=appendPath(_0xc820e3[_0x42a8bb(0x15b)],_0x42a8bb(0x146));_0x58a941=appendParam(_0x58a941,'f\x20=\x20json\x20&\x20'+_0x42a8bb(0x153)+encodeURIComponent(_0x28b0cd)+_0x42a8bb(0x16a)+encodeURIComponent(_0x42a8bb(0x14f)+_0xe1e849[0x0]+',\x22ymin\x22:'+_0xe1e849[0x1]+_0x42a8bb(0x16d)+_0xe1e849[0x2]+_0x42a8bb(0x14d)+_0xe1e849[0x3]+_0x42a8bb(0x164)+_0x2e4a8b+'}}')+_0x42a8bb(0x143)+_0x2e4a8b+'&outFields=*'+_0x42a8bb(0x162)+_0x2e4a8b),jsonp(_0x58a941)[_0x42a8bb(0x177)](_0x1f0be5=>{const _0x1c9f4a=_0x42a8bb;if(_0x1f0be5[_0x1c9f4a(0x16b)])console[_0x1c9f4a(0x155)](_0x1f0be5);else{var _0x22a855=_0x589692[_0x1c9f4a(0x15e)](_0x1f0be5,{'featureProjection':_0x61972c});_0x22a855[_0x1c9f4a(0x152)]>0x0&&(_0xc820e3[_0x1c9f4a(0x14e)][_0x1c9f4a(0x15d)][_0x1c9f4a(0x166)]==_0x1c9f4a(0x15a)&&_0x22a855['forEach'](function(_0x3c7ccc){const _0x1128cd=_0x1c9f4a;var _0x2bba5a=_0x3c7ccc[_0x1128cd(0x176)](_0xc820e3['drawingInfo'][_0x1128cd(0x15d)]['field1']);const _0x1d0ed8=_0xc820e3[_0x1128cd(0x14e)][_0x1128cd(0x15d)][_0x1128cd(0x149)][_0x1128cd(0x174)](_0xca47de=>_0xca47de['value']==_0x2bba5a);let _0x3d2a63;_0x1d0ed8?_0x3d2a63=transformedEsriStyle(_0x1d0ed8[_0x1128cd(0x16f)]):_0x3d2a63=transformedEsriStyle(_0xc820e3[_0x1128cd(0x14e)][_0x1128cd(0x15d)][_0x1128cd(0x15c)]),_0x3c7ccc[_0x1128cd(0x169)](_0x3d2a63);}),_0x31374d[_0x1c9f4a(0x148)](_0x22a855));}});},'strategy':a41_0x398ca6(createXYZ({'tileSize':0x200}))}),_0x1a59fa=new a41_0x58aec7({'source':_0x31374d,'zIndex':_0x115a8d['showIndex']});if(_0xc820e3['drawingInfo'][_0x3a0795(0x15d)]['type']==_0x3a0795(0x15f)&&_0xc820e3['drawingInfo'][_0x3a0795(0x15d)][_0x3a0795(0x16f)]){let _0x5c61ee=transformedEsriStyle(_0xc820e3[_0x3a0795(0x14e)][_0x3a0795(0x15d)]['symbol']);_0x1a59fa[_0x3a0795(0x169)](_0x5c61ee);}return _0x1a59fa;}[a41_0xdc13fd(0x173)](_0x43b510){const _0x23d48e=a41_0xdc13fd;this['layerInfo'][_0x23d48e(0x167)]=_0x43b510;}}function a41_0x4ab3(){const _0x46e987=['setLayers','&outSR=','stringify',',\x22spatialReference\x22:{\x22wkid\x22:','wkt','type','loadFilter','249942CzDqyA','setStyle','returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry=','error','layerInfo',',\x22xmax\x22:','1551244RuHbLq','symbol','string','7225024ZuNlDy','createArcGISFeatureLayer','setFilter','find','1361601pCliKl','get','then','xmax','fullExtent','push','1=1','&geometryType=esriGeometryEnvelope&inSR=','spatialReference','231BLiEKo','/query','EPSG:','addFeatures','uniqueValueInfos','579890ydsEpW','338541SBQRQY','getCode',',\x22ymax\x22:','drawingInfo','{\x22xmin\x22:','projection','xmin','length','where=','24466fAXfPE','log','initialExtent','200hKUdrc','mapIndex','ymax','uniqueValue','url','defaultSymbol','renderer','readFeatures','simple','110YwlzKo'];a41_0x4ab3=function(){return _0x46e987;};return a41_0x4ab3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4c7211,_0x317384){const _0x48b23b=a42_0x4178,_0x12b800=_0x4c7211();while(!![]){try{const _0x51e104=parseInt(_0x48b23b(0x1aa))/0x1*(parseInt(_0x48b23b(0x19e))/0x2)+parseInt(_0x48b23b(0x1a9))/0x3*(parseInt(_0x48b23b(0x1a5))/0x4)+-parseInt(_0x48b23b(0x1ac))/0x5*(-parseInt(_0x48b23b(0x196))/0x6)+parseInt(_0x48b23b(0x19f))/0x7+-parseInt(_0x48b23b(0x1a1))/0x8*(-parseInt(_0x48b23b(0x1af))/0x9)+-parseInt(_0x48b23b(0x1a7))/0xa+parseInt(_0x48b23b(0x1a2))/0xb*(-parseInt(_0x48b23b(0x199))/0xc);if(_0x51e104===_0x317384)break;else _0x12b800['push'](_0x12b800['shift']());}catch(_0x38e57a){_0x12b800['push'](_0x12b800['shift']());}}}(a42_0x1f04,0xc29a5));import a42_0x2f0c0a from'ol/layer/Tile';function a42_0x1f04(){const _0x5e6e21=['EPSG:','4clIKJW','initialExtent','9243160DhsRrm','opacity','1765509EbSfZu','55DBODDQ','origin','28235glzkdn','wkid','xmin','9haSCTu','/tile/{z}/{y}/{x}','tileInfo','url','push','layerInfo','mapIndex','708Tdwfoz','length','spatialReference','12XLdPGX','xmax','ymin','ymax','lods','13646rbLSLY','9486617amIGAQ','cols','258008umflob','14258057nkSRsP','fullExtent'];a42_0x1f04=function(){return _0x5e6e21;};return a42_0x1f04();}import a42_0x4882f3 from'ol/source/XYZ';import a42_0x4f13e0 from'ol/tilegrid/TileGrid';function a42_0x4178(_0x1283e8,_0x19bb95){const _0x1f0472=a42_0x1f04();return a42_0x4178=function(_0x417846,_0x59e1d0){_0x417846=_0x417846-0x190;let _0x1268dc=_0x1f0472[_0x417846];return _0x1268dc;},a42_0x4178(_0x1283e8,_0x19bb95);}import{registerProj}from'../utils/RegisterProjUtil';import{appendPath}from'../utils/UrlUtil';export default class ArcgisTileLayer extends a42_0x2f0c0a{constructor(_0x12e904,_0x382899){const _0x3b4d92=a42_0x4178,_0x1bd26a=_0x12e904[_0x3b4d92(0x192)]?_0x12e904[_0x3b4d92(0x192)]:'',_0x44acba=appendPath(_0x1bd26a,_0x3b4d92(0x190)),_0x1cd962=[_0x382899['initialExtent'][_0x3b4d92(0x1ae)],_0x382899[_0x3b4d92(0x1a6)][_0x3b4d92(0x19b)],_0x382899[_0x3b4d92(0x1a6)][_0x3b4d92(0x19a)],_0x382899['initialExtent'][_0x3b4d92(0x19c)]],_0x2736ff=[_0x382899['fullExtent']['xmin'],_0x382899[_0x3b4d92(0x1a3)]['ymin'],_0x382899[_0x3b4d92(0x1a3)]['xmax'],_0x382899['fullExtent'][_0x3b4d92(0x19c)]];let _0x24086f;_0x382899[_0x3b4d92(0x198)][_0x3b4d92(0x1ad)]?_0x24086f=registerProj(_0x3b4d92(0x1a4)+_0x382899['spatialReference'][_0x3b4d92(0x1ad)],_0x2736ff):_0x24086f=registerProj(_0x382899[_0x3b4d92(0x198)]['wkt'],_0x2736ff);let _0xe78ecc=[];for(let _0x5ce7d8=0x0,_0x4a4820=_0x382899[_0x3b4d92(0x191)][_0x3b4d92(0x19d)][_0x3b4d92(0x197)];_0x5ce7d8<_0x4a4820;_0x5ce7d8++){_0xe78ecc[_0x3b4d92(0x193)](_0x382899[_0x3b4d92(0x191)][_0x3b4d92(0x19d)][_0x5ce7d8]['resolution']);}super({'opacity':_0x12e904[_0x3b4d92(0x1a8)],'zIndex':_0x12e904[_0x3b4d92(0x195)],'maxResolution':_0xe78ecc[0x0]*0x2,'source':new a42_0x4882f3({'url':_0x44acba,'projection':_0x24086f,'crossOrigin':'anonymous','tileGrid':new a42_0x4f13e0({'extent':_0x2736ff,'origin':[_0x382899[_0x3b4d92(0x191)][_0x3b4d92(0x1ab)]['x'],_0x382899['tileInfo'][_0x3b4d92(0x1ab)]['y']],'resolutions':_0xe78ecc,'tileSize':[_0x382899[_0x3b4d92(0x191)]['rows'],_0x382899[_0x3b4d92(0x191)][_0x3b4d92(0x1a0)]]})})}),this['id']=_0x12e904['id'],this[_0x3b4d92(0x1a6)]=_0x1cd962,this['projection']=_0x24086f,this[_0x3b4d92(0x194)]=_0x12e904;}}
|
package/layers/ArcgisWMSLayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a43_0x11f8(){const _0xfbea8=['loadFilter','initExtent','mapIndex','6827520pgHdLY','url','5qdGccI','updateParams','anonymous','sublayers','CQL_FILTER','72429vjXsoU','1.1.0','getSource','1038696ZmopzB','wkid','EPSG:','24FCwJXo','34422BIpgbG','1256969moyWEy','opacity','setFilter','20763edlyMC','layerInfo','initialExtent','48pHOULF','1330047bRZwGI'];a43_0x11f8=function(){return _0xfbea8;};return a43_0x11f8();}const a43_0x12d501=a43_0x4ebf;(function(_0xc2811,_0x1a5f0b){const _0x5e5ecc=a43_0x4ebf,_0x5ac796=_0xc2811();while(!![]){try{const _0x4dce41=-parseInt(_0x5e5ecc(0x111))/0x1+parseInt(_0x5e5ecc(0x114))/0x2+-parseInt(_0x5e5ecc(0x102))/0x3*(parseInt(_0x5e5ecc(0x105))/0x4)+-parseInt(_0x5e5ecc(0x10c))/0x5*(-parseInt(_0x5e5ecc(0x118))/0x6)+parseInt(_0x5e5ecc(0xff))/0x7+-parseInt(_0x5e5ecc(0x117))/0x8*(-parseInt(_0x5e5ecc(0x106))/0x9)+-parseInt(_0x5e5ecc(0x10a))/0xa;if(_0x4dce41===_0x1a5f0b)break;else _0x5ac796['push'](_0x5ac796['shift']());}catch(_0x4595a4){_0x5ac796['push'](_0x5ac796['shift']());}}}(a43_0x11f8,0x4ba08));import{ImageWMS as a43_0xe33744}from'ol/source';import{Image as a43_0x2524bc}from'ol/layer';function a43_0x4ebf(_0x2f958c,_0x5a1a19){const _0x11f868=a43_0x11f8();return a43_0x4ebf=function(_0x4ebf6e,_0xc2733e){_0x4ebf6e=_0x4ebf6e-0xff;let _0x4c45c0=_0x11f868[_0x4ebf6e];return _0x4c45c0;},a43_0x4ebf(_0x2f958c,_0x5a1a19);}import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisWMSLayer extends a43_0x2524bc{constructor(_0x54c7ed,_0x11f33d){const _0x27efd0=a43_0x4ebf;var _0x35bb82;let _0x39a555=registerProj(_0x27efd0(0x116)+_0x11f33d[_0x27efd0(0x115)],undefined),_0x244c36={'LAYERS':(_0x35bb82=_0x54c7ed[_0x27efd0(0x10f)])===null||_0x35bb82===void 0x0?void 0x0:_0x35bb82['join'](','),'VERSION':_0x27efd0(0x112)};_0x54c7ed[_0x27efd0(0x107)]&&(_0x244c36[_0x27efd0(0x110)]=_0x54c7ed[_0x27efd0(0x107)]),super({'opacity':_0x54c7ed[_0x27efd0(0x100)],'zIndex':_0x54c7ed[_0x27efd0(0x109)],'source':new a43_0xe33744({'crossOrigin':_0x27efd0(0x10e),'url':_0x54c7ed[_0x27efd0(0x10b)],'params':_0x244c36})}),this['id']=_0x54c7ed['id'],this[_0x27efd0(0x104)]=_0x11f33d[_0x27efd0(0x108)],this['projection']=_0x39a555,this[_0x27efd0(0x103)]=_0x54c7ed;}['refresh'](){}[a43_0x12d501(0x101)](_0x12fac3){const _0x3a6d19=a43_0x12d501;var _0x78bd44;(_0x78bd44=this[_0x3a6d19(0x113)]())===null||_0x78bd44===void 0x0?void 0x0:_0x78bd44[_0x3a6d19(0x10d)]({'CQL_FILTER':_0x12fac3});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2827c8,_0x5111fe){const _0x18c105=a44_0x4fe7,_0x27bc36=_0x2827c8();while(!![]){try{const _0x1ba58d=-parseInt(_0x18c105(0x125))/0x1*(-parseInt(_0x18c105(0x13e))/0x2)+-parseInt(_0x18c105(0x127))/0x3+parseInt(_0x18c105(0x133))/0x4*(parseInt(_0x18c105(0x135))/0x5)+-parseInt(_0x18c105(0x124))/0x6*(-parseInt(_0x18c105(0x126))/0x7)+parseInt(_0x18c105(0x130))/0x8*(parseInt(_0x18c105(0x140))/0x9)+-parseInt(_0x18c105(0x13c))/0xa*(-parseInt(_0x18c105(0x12d))/0xb)+-parseInt(_0x18c105(0x13d))/0xc;if(_0x1ba58d===_0x5111fe)break;else _0x27bc36['push'](_0x27bc36['shift']());}catch(_0x22a38e){_0x27bc36['push'](_0x27bc36['shift']());}}}(a44_0x26cd,0x3aaa6));function a44_0x26cd(){const _0x6b2c63=['1228876pQvFjs','image/png','projection','1254232aLYqpU','getImage','tileGrid','80GPMjtz','src','111880nOColz','join','wkid','origins_','length','replace','getMatrixIds','20YQLKPC','8923200ocSrkJ','8516XOLLyw','mapIndex','18hjSWQq','value','?http','urls','name','sublayers','4314VfAqjQ','17ilocpT','1477zVjBDG','674133xNbjGr','boundingBoxExtent','indexOf','sourceXml','getResolutions','url'];a44_0x26cd=function(){return _0x6b2c63;};return a44_0x26cd();}import a44_0x1416c5 from'ol/layer/Tile';import a44_0x489557,{optionsFromCapabilities}from'ol/source/WMTS.js';import a44_0x31fe75 from'ol/tilegrid/WMTS';import{registerProj}from'../utils/RegisterProjUtil';import{addArgument,getUrlParams}from'../utils/UrlUtil';function a44_0x4fe7(_0x2b8917,_0x4a0080){const _0x26cdd1=a44_0x26cd();return a44_0x4fe7=function(_0x4fe7b2,_0x12df23){_0x4fe7b2=_0x4fe7b2-0x124;let _0x37884c=_0x26cdd1[_0x4fe7b2];return _0x37884c;},a44_0x4fe7(_0x2b8917,_0x4a0080);}export default class ArcgisWMTSLayer extends a44_0x1416c5{constructor(_0x12c43e,_0x518ab9){const _0xe45b0c=a44_0x4fe7;var _0xa3fc60;let _0x188542='';_0x12c43e[_0xe45b0c(0x145)]&&_0x12c43e[_0xe45b0c(0x145)][_0xe45b0c(0x139)]>0x0&&(_0x188542=_0x12c43e['sublayers'][_0xe45b0c(0x136)](','));const _0x54c586='EPSG:'+_0x518ab9[_0xe45b0c(0x137)];let _0x47bc76=registerProj(_0x54c586);const _0x149c16=optionsFromCapabilities(_0x518ab9[_0xe45b0c(0x12a)],{'layer':(_0xa3fc60=_0x12c43e[_0xe45b0c(0x145)])===null||_0xa3fc60===void 0x0?void 0x0:_0xa3fc60[0x0],'matrixSet':_0x518ab9['tileMatrixSet'],'format':_0xe45b0c(0x12e)});let _0x676bd7=_0x149c16[_0xe45b0c(0x132)][_0xe45b0c(0x138)][0x0];_0x676bd7[0x0]===0x5a&&_0x676bd7[0x1]===-0xb4&&(_0x676bd7=[_0x676bd7[0x1],_0x676bd7[0x0]]),super({'opacity':_0x12c43e['opacity'],'zIndex':_0x12c43e[_0xe45b0c(0x13f)],'source':new a44_0x489557({'urls':_0x149c16[_0xe45b0c(0x143)],'requestEncoding':_0x149c16['requestEncoding'],'layer':_0x149c16['layer'],'tileLoadFunction':function(_0x29e20a,_0x1c75c9){const _0x4397b2=_0xe45b0c,_0x1c558=_0x12c43e['url']?_0x12c43e[_0x4397b2(0x12c)]:'';let _0x52924f=getUrlParams(_0x1c558);if((_0x52924f===null||_0x52924f===void 0x0?void 0x0:_0x52924f['length'])>0x0)for(let _0x5403bc of _0x52924f){_0x1c75c9=addArgument(_0x1c75c9,_0x5403bc[_0x4397b2(0x144)],_0x5403bc[_0x4397b2(0x141)]);}let _0x395c74=_0x1c75c9[_0x4397b2(0x129)](_0x4397b2(0x142));_0x395c74!==-0x1?_0x1c75c9[_0x4397b2(0x129)]('token')===-0x1&&_0x1c75c9['indexOf']('tk')===-0x1?_0x29e20a['getImage']()[_0x4397b2(0x134)]=_0x1c75c9[_0x4397b2(0x13a)]('&','?'):_0x29e20a['getImage']()[_0x4397b2(0x134)]=_0x1c75c9:_0x29e20a[_0x4397b2(0x131)]()[_0x4397b2(0x134)]=_0x1c75c9;},'matrixSet':_0x149c16['matrixSet'],'format':_0x149c16['format'],'projection':_0x149c16[_0xe45b0c(0x12f)],'tileGrid':new a44_0x31fe75({'origin':_0x676bd7,'resolutions':_0x149c16['tileGrid'][_0xe45b0c(0x12b)](),'matrixIds':_0x149c16[_0xe45b0c(0x132)][_0xe45b0c(0x13b)](),'extent':_0x518ab9[_0xe45b0c(0x128)]}),'style':_0x518ab9['style'],'wrapX':!![]})}),this['id']=_0x12c43e['id'],this['initialExtent']=_0x518ab9[_0xe45b0c(0x128)],this[_0xe45b0c(0x12f)]=_0x47bc76,this['layerInfo']=_0x12c43e;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x586039,_0x30f922){const _0x2c0a8=a45_0x2c50,_0x267d0b=_0x586039();while(!![]){try{const _0x13d26f=parseInt(_0x2c0a8(0x1c4))/0x1+-parseInt(_0x2c0a8(0x1c3))/0x2+-parseInt(_0x2c0a8(0x1d4))/0x3+parseInt(_0x2c0a8(0x1d3))/0x4+parseInt(_0x2c0a8(0x1e1))/0x5*(-parseInt(_0x2c0a8(0x1d9))/0x6)+parseInt(_0x2c0a8(0x1d8))/0x7+parseInt(_0x2c0a8(0x1de))/0x8;if(_0x13d26f===_0x30f922)break;else _0x267d0b['push'](_0x267d0b['shift']());}catch(_0x506fdf){_0x267d0b['push'](_0x267d0b['shift']());}}}(a45_0x481b,0x1d712));import a45_0x160257 from'ol/layer/VectorTile';import a45_0x50ddb8 from'ol/source/VectorTile';import a45_0x844a24 from'ol/format/MVT';function a45_0x2c50(_0x5ae099,_0x16665b){const _0x481b3d=a45_0x481b();return a45_0x2c50=function(_0x2c500e,_0x29578c){_0x2c500e=_0x2c500e-0x1c3;let _0x3da557=_0x481b3d[_0x2c500e];return _0x3da557;},a45_0x2c50(_0x5ae099,_0x16665b);}import{registerProj}from'../utils/RegisterProjUtil';function a45_0x481b(){const _0x50de42=['application/vnd.mapbox-vector-tile','length','opacity','WMTS','initialExtent','origins_','getResolutions','layerInfo','tileGrid','28464nHoeur','295188xfNWmF','mapIndex','toString','{x}','1083082JNMRYU','6fkWldB','image/png','projection','url','boundingBoxExtent','1777240hermeV','{y}','wkid','664185ZJcsyO','368974VVaNmc','152317lcSebQ','getMatrixIds','EPSG:','tileMatrixSet','sourceXml','sublayers'];a45_0x481b=function(){return _0x50de42;};return a45_0x481b();}import a45_0x5d3473 from'ol/tilegrid/WMTS';import{optionsFromCapabilities}from'ol/source/WMTS';import{addArgument}from'../utils/UrlUtil';export default class GeoserverVectorTileLayer extends a45_0x160257{constructor(_0x1438aa,_0x415083){const _0x5211e7=a45_0x2c50;var _0x20f891;let _0x35e65e=registerProj(_0x5211e7(0x1c6)+_0x415083[_0x5211e7(0x1e0)]);const _0x2bac04=optionsFromCapabilities(_0x415083[_0x5211e7(0x1c8)],{'layer':(_0x20f891=_0x1438aa['sublayers'])===null||_0x20f891===void 0x0?void 0x0:_0x20f891[0x0],'matrixSet':_0x415083[_0x5211e7(0x1c7)],'format':_0x5211e7(0x1da)});let _0xd6efda=_0x1438aa['sublayers']&&_0x1438aa['sublayers'][_0x5211e7(0x1cb)]>0x0?_0x1438aa[_0x5211e7(0x1c9)][0x0]:'';const _0x4b3540={'REQUEST':'GetTile','SERVICE':_0x5211e7(0x1cd),'VERSION':'1.0.0','LAYER':_0xd6efda,'STYLE':_0x415083['style'][_0x5211e7(0x1d6)](),'TILEMATRIX':_0x415083['tileMatrixSet']+':{z}','TILEMATRIXSET':_0x415083[_0x5211e7(0x1c7)][_0x5211e7(0x1d6)](),'FORMAT':_0x5211e7(0x1ca),'TILECOL':_0x5211e7(0x1d7),'TILEROW':_0x5211e7(0x1df)};let _0x59d16f=_0x1438aa[_0x5211e7(0x1dc)]?_0x1438aa[_0x5211e7(0x1dc)]:'';for(const _0x13f59c in _0x4b3540){_0x59d16f=addArgument(_0x59d16f,_0x13f59c,_0x4b3540[_0x13f59c]);}super({'opacity':_0x1438aa[_0x5211e7(0x1cc)],'zIndex':_0x1438aa[_0x5211e7(0x1d5)],'declutter':!![],'source':new a45_0x50ddb8({'projection':'EPSG:'+_0x415083[_0x5211e7(0x1e0)],'format':new a45_0x844a24(),'wrapX':!![],'extent':_0x415083[_0x5211e7(0x1dd)],'tileGrid':new a45_0x5d3473({'tileSize':_0x2bac04['tileGrid']['tileSizes_'][0x0],'origin':_0x2bac04[_0x5211e7(0x1d2)][_0x5211e7(0x1cf)][0x0],'resolutions':_0x2bac04[_0x5211e7(0x1d2)][_0x5211e7(0x1d0)](),'matrixIds':_0x2bac04[_0x5211e7(0x1d2)][_0x5211e7(0x1c5)]()}),'url':_0x59d16f})}),this['id']=_0x1438aa['id'],this[_0x5211e7(0x1ce)]=_0x415083['boundingBoxExtent'],this[_0x5211e7(0x1db)]=_0x35e65e,this[_0x5211e7(0x1d1)]=_0x1438aa;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2a2c59,_0x2b5366){const _0x4c5486=a46_0x599f,_0x49da99=_0x2a2c59();while(!![]){try{const _0x1d47fe=-parseInt(_0x4c5486(0x169))/0x1*(parseInt(_0x4c5486(0x146))/0x2)+parseInt(_0x4c5486(0x152))/0x3*(-parseInt(_0x4c5486(0x161))/0x4)+parseInt(_0x4c5486(0x148))/0x5+parseInt(_0x4c5486(0x14a))/0x6+parseInt(_0x4c5486(0x14b))/0x7*(-parseInt(_0x4c5486(0x163))/0x8)+parseInt(_0x4c5486(0x14f))/0x9*(parseInt(_0x4c5486(0x14c))/0xa)+-parseInt(_0x4c5486(0x145))/0xb;if(_0x1d47fe===_0x2b5366)break;else _0x49da99['push'](_0x49da99['shift']());}catch(_0x44bc7c){_0x49da99['push'](_0x49da99['shift']());}}}(a46_0x213a,0x35362));function a46_0x599f(_0x44868b,_0x2a3c56){const _0x213aac=a46_0x213a();return a46_0x599f=function(_0x599f85,_0x1dc1ef){_0x599f85=_0x599f85-0x141;let _0xb6155=_0x213aac[_0x599f85];return _0xb6155;},a46_0x599f(_0x44868b,_0x2a3c56);}import a46_0x482dea from'ol/source/Vector';function a46_0x213a(){const _0x432a1f=['readFeatures','equalTo','removeLoadedExtent','url','string','type字段不存在','param','getSource','2108546bHvzDW','186836QdZTVL','not','1373245sqTwDr','push','540132YpgNkZ','1057rLuEnN','360HRmkux','notEqualTo','layerFields','94887uGUKOM','filter','name','18bIhxFQ','json','catch','lessThan','type','getCode','writeGetFeature','EPSG:','initialExtent','length','layerInfo','sublayers','greaterThan','read','loadFilter','66248fzYVGd','wkid','7512eJxOee','warn','and','parseFilter','POST','apply','1DMczCd','initExtent','between','projection'];a46_0x213a=function(){return _0x432a1f;};return a46_0x213a();}import a46_0x4e1fa9 from'ol/format/GeoJSON';import{Vector as a46_0x249e0d}from'ol/layer';import a46_0x5ebe40 from'ol/format/WFS';import{registerProj}from'../utils/RegisterProjUtil';import{bbox}from'ol/loadingstrategy';import a46_0x4a753a from'../utils/format/CQL';import*as a46_0x2e51ea from'ol/format/filter';export default class GeoserverWFSLayer extends a46_0x249e0d{constructor(_0x3ec340,_0x1c1dd1){const _0x165434=a46_0x599f;let _0x1e6da7=registerProj(_0x165434(0x159)+_0x1c1dd1[_0x165434(0x162)]);const _0x126b81=_0x1c1dd1[_0x165434(0x14e)]['find'](_0x1d38de=>_0x1d38de['fieldType']==0x6);super({'zIndex':_0x3ec340['mapIndex'],'source':new a46_0x482dea({'format':new a46_0x4e1fa9(),'loader':(_0x452b6e,_0x170c72,_0x1cd57b,_0x1598b3,_0x30dc46)=>{const _0x14b536=_0x165434;let _0x2cc27b=_0x3ec340[_0x14b536(0x160)],_0x5bc3b7={'srsName':_0x1cd57b[_0x14b536(0x157)](),'featureTypes':_0x3ec340[_0x14b536(0x15d)],'bbox':_0x452b6e,'geometryName':_0x126b81?_0x126b81[_0x14b536(0x151)]:'','outputFormat':'application/json'};_0x2cc27b&&(typeof _0x2cc27b===_0x14b536(0x141)?_0x5bc3b7[_0x14b536(0x150)]=new a46_0x4a753a()[_0x14b536(0x15f)](_0x2cc27b):_0x5bc3b7['filter']=this[_0x14b536(0x166)](_0x2cc27b));var _0x2e99dd=new a46_0x5ebe40()[_0x14b536(0x158)](_0x5bc3b7);let _0x3c9204=_0x3ec340[_0x14b536(0x170)]?_0x3ec340[_0x14b536(0x170)]:'';fetch(_0x3c9204,{'method':_0x14b536(0x167),'body':new XMLSerializer()['serializeToString'](_0x2e99dd)})['then'](_0x215127=>{const _0x4384a5=_0x14b536;return _0x215127[_0x4384a5(0x153)]();})['then'](_0x24dfdd=>{const _0x475cac=_0x14b536,_0x452388=new a46_0x4e1fa9()[_0x475cac(0x16d)](_0x24dfdd);let _0x7df9c4=this['getSource']();_0x7df9c4&&_0x7df9c4['addFeatures'](_0x452388);if(_0x1598b3)_0x1598b3(_0x452388);})[_0x14b536(0x154)](()=>{const _0x1b730f=_0x14b536;let _0x3328c2=this[_0x1b730f(0x144)]();_0x3328c2&&_0x3328c2[_0x1b730f(0x16f)](_0x452b6e);if(_0x30dc46)_0x30dc46();});},'strategy':bbox})}),this['id']=_0x3ec340['id'],this[_0x165434(0x15a)]=_0x1c1dd1[_0x165434(0x16a)],this[_0x165434(0x16c)]=_0x1e6da7,this[_0x165434(0x15c)]=_0x3ec340;}['parseFilter'](_0x4a4e5e){const _0x267614=a46_0x599f;if(!_0x4a4e5e[_0x267614(0x156)]){console[_0x267614(0x164)](_0x267614(0x142));return;}if(!_0x4a4e5e['param']){console['warn']('param字段不存在');return;}let _0x383912=[];switch(_0x4a4e5e[_0x267614(0x156)]['toLowerCase']()){case _0x267614(0x165):for(let _0x36b7a2=0x0;_0x36b7a2<_0x4a4e5e[_0x267614(0x143)][_0x267614(0x15b)];_0x36b7a2++){let _0x5de8f0=this[_0x267614(0x166)](_0x4a4e5e[_0x267614(0x143)][_0x36b7a2]);_0x383912[_0x267614(0x149)](_0x5de8f0);}return a46_0x2e51ea[_0x267614(0x165)][_0x267614(0x168)](null,_0x383912);case'or':for(let _0xcebe58=0x0;_0xcebe58<_0x4a4e5e[_0x267614(0x143)][_0x267614(0x15b)];_0xcebe58++){let _0x3930a2=this[_0x267614(0x166)](_0x4a4e5e[_0x267614(0x143)][_0xcebe58]);_0x383912[_0x267614(0x149)](_0x3930a2);}return a46_0x2e51ea['or']['apply'](null,_0x383912);case'not':for(let _0x2cd941=0x0;_0x2cd941<_0x4a4e5e[_0x267614(0x143)][_0x267614(0x15b)];_0x2cd941++){let _0x60747e=this[_0x267614(0x166)](_0x4a4e5e[_0x267614(0x143)][_0x2cd941]);_0x383912[_0x267614(0x149)](_0x60747e);}return a46_0x2e51ea[_0x267614(0x147)][_0x267614(0x168)](null,_0x383912);case'=':return a46_0x2e51ea[_0x267614(0x16e)](_0x4a4e5e[_0x267614(0x143)][0x0],_0x4a4e5e[_0x267614(0x143)][0x1]);case'!==':return a46_0x2e51ea[_0x267614(0x14d)](_0x4a4e5e[_0x267614(0x143)][0x0],_0x4a4e5e['param'][0x1]);case'>':return a46_0x2e51ea[_0x267614(0x15e)](_0x4a4e5e[_0x267614(0x143)][0x0],_0x4a4e5e[_0x267614(0x143)][0x1]);case'<':return a46_0x2e51ea[_0x267614(0x155)](_0x4a4e5e[_0x267614(0x143)][0x0],_0x4a4e5e[_0x267614(0x143)][0x1]);case'>=':return a46_0x2e51ea['greaterThanOrEqualTo'](_0x4a4e5e[_0x267614(0x143)][0x0],_0x4a4e5e[_0x267614(0x143)][0x1]);case'<=':return a46_0x2e51ea['lessThanOrEqualTo'](_0x4a4e5e['param'][0x0],_0x4a4e5e['param'][0x1]);case _0x267614(0x16b):return a46_0x2e51ea[_0x267614(0x16b)](_0x4a4e5e[_0x267614(0x143)][0x0],_0x4a4e5e[_0x267614(0x143)][0x1],_0x4a4e5e[_0x267614(0x143)][0x2]);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a47_0x2b93(_0x3a536a,_0x3cd45d){const _0xd899ea=a47_0xd899();return a47_0x2b93=function(_0x2b9379,_0x7b8005){_0x2b9379=_0x2b9379-0x1e3;let _0x5c3a43=_0xd899ea[_0x2b9379];return _0x5c3a43;},a47_0x2b93(_0x3a536a,_0x3cd45d);}function a47_0xd899(){const _0x5f23a5=['initialExtent','wkid','layerInfo','1.1.0','56724UvEZdY','sublayers','getSource','updateParams','mapIndex','setFilter','6085240KVTkOV','anonymous','initExtent','CQL_FILTER','4003389GBAanT','EPSG:','join','url','4ZnwNaj','217787hKdApl','532Ewjdyg','3382416KoiJef','1619866SxZDHO','refresh','opacity','1193115LwYsfB'];a47_0xd899=function(){return _0x5f23a5;};return a47_0xd899();}const a47_0x2eb7c6=a47_0x2b93;(function(_0x52c8d2,_0x585b90){const _0x2215e6=a47_0x2b93,_0x2887e2=_0x52c8d2();while(!![]){try{const _0x29e602=parseInt(_0x2215e6(0x1e8))/0x1+-parseInt(_0x2215e6(0x1eb))/0x2+-parseInt(_0x2215e6(0x1ee))/0x3+parseInt(_0x2215e6(0x1e7))/0x4*(parseInt(_0x2215e6(0x1f9))/0x5)+parseInt(_0x2215e6(0x1f3))/0x6*(parseInt(_0x2215e6(0x1e9))/0x7)+parseInt(_0x2215e6(0x1ea))/0x8+-parseInt(_0x2215e6(0x1e3))/0x9;if(_0x29e602===_0x585b90)break;else _0x2887e2['push'](_0x2887e2['shift']());}catch(_0x15d093){_0x2887e2['push'](_0x2887e2['shift']());}}}(a47_0xd899,0xe1822));import{ImageWMS as a47_0x48a42c}from'ol/source';import{Image as a47_0x1dc543}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';export default class GeoserverWMSLayer extends a47_0x1dc543{constructor(_0x458ea7,_0x1fe834){const _0x16f948=a47_0x2b93;var _0x3172c3;let _0x5229ec=registerProj(_0x16f948(0x1e4)+_0x1fe834[_0x16f948(0x1f0)]),_0x4ca30e={'LAYERS':(_0x3172c3=_0x458ea7[_0x16f948(0x1f4)])===null||_0x3172c3===void 0x0?void 0x0:_0x3172c3[_0x16f948(0x1e5)](','),'VERSION':_0x16f948(0x1f2)};_0x458ea7['loadFilter']&&(_0x4ca30e[_0x16f948(0x1fc)]=_0x458ea7['loadFilter']),super({'opacity':_0x458ea7[_0x16f948(0x1ed)],'zIndex':_0x458ea7[_0x16f948(0x1f7)],'source':new a47_0x48a42c({'crossOrigin':_0x16f948(0x1fa),'url':_0x458ea7[_0x16f948(0x1e6)],'params':_0x4ca30e})}),this['id']=_0x458ea7['id'],this[_0x16f948(0x1ef)]=_0x1fe834[_0x16f948(0x1fb)],this['projection']=_0x5229ec,this[_0x16f948(0x1f1)]=_0x458ea7;}[a47_0x2eb7c6(0x1ec)](){}[a47_0x2eb7c6(0x1f8)](_0x3aedca){const _0x3913ca=a47_0x2eb7c6;var _0x10bfb4;(_0x10bfb4=this[_0x3913ca(0x1f5)]())===null||_0x10bfb4===void 0x0?void 0x0:_0x10bfb4[_0x3913ca(0x1f6)]({'CQL_FILTER':_0x3aedca});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x11a150,_0x5e76ff){const _0x548b71=a48_0x1575,_0x18e4d3=_0x11a150();while(!![]){try{const _0x37df5b=-parseInt(_0x548b71(0x89))/0x1+parseInt(_0x548b71(0x80))/0x2*(parseInt(_0x548b71(0x86))/0x3)+-parseInt(_0x548b71(0x90))/0x4*(-parseInt(_0x548b71(0x85))/0x5)+parseInt(_0x548b71(0x8d))/0x6+parseInt(_0x548b71(0x8f))/0x7*(parseInt(_0x548b71(0x8b))/0x8)+parseInt(_0x548b71(0x8c))/0x9+-parseInt(_0x548b71(0x7f))/0xa*(parseInt(_0x548b71(0x92))/0xb);if(_0x37df5b===_0x5e76ff)break;else _0x18e4d3['push'](_0x18e4d3['shift']());}catch(_0x408213){_0x18e4d3['push'](_0x18e4d3['shift']());}}}(a48_0x16e4,0xeaa7b));import a48_0x35efee from'ol/layer/Tile';import a48_0x1323b5,{optionsFromCapabilities}from'ol/source/WMTS.js';import{registerProj}from'../utils/RegisterProjUtil';function a48_0x16e4(){const _0x2fa2cf=['6345MqrpUA','5013vzPttJ','opacity','sublayers','105522ffbGXu','解析元数据失败','8GtdKhl','8055117QQZsnG','6259800BaUwIP','layerInfo','9573851UtDQJC','1524loJFZP','tileMatrixSet','2926319DhsnJq','170AQAuGw','2154YfrYiZ','boundingBoxExtent','未找到投影信息','sourceXml','wkid'];a48_0x16e4=function(){return _0x2fa2cf;};return a48_0x16e4();}function a48_0x1575(_0x562a7f,_0x2f1797){const _0x16e4d7=a48_0x16e4();return a48_0x1575=function(_0x15751e,_0x32954c){_0x15751e=_0x15751e-0x7f;let _0x29bb5a=_0x16e4d7[_0x15751e];return _0x29bb5a;},a48_0x1575(_0x562a7f,_0x2f1797);}export default class GeoserverWMTSLayer extends a48_0x35efee{constructor(_0x4451ef,_0x2a0b67){const _0x387b88=a48_0x1575;var _0x26bffd;const _0x48f5b6='EPSG:'+_0x2a0b67[_0x387b88(0x84)];let _0x3309d1=registerProj(_0x48f5b6);if(!_0x3309d1)throw new Error(_0x387b88(0x82));const _0x5836c4=optionsFromCapabilities(_0x2a0b67[_0x387b88(0x83)],{'layer':(_0x26bffd=_0x4451ef[_0x387b88(0x88)])===null||_0x26bffd===void 0x0?void 0x0:_0x26bffd[0x0],'matrixSet':_0x2a0b67[_0x387b88(0x91)],'format':'image/png'});if(!_0x5836c4)throw new Error(_0x387b88(0x8a));super({'opacity':_0x4451ef[_0x387b88(0x87)],'zIndex':_0x4451ef['mapIndex'],'source':new a48_0x1323b5(_0x5836c4)}),this['id']=_0x4451ef['id'],this['initialExtent']=_0x2a0b67[_0x387b88(0x81)],this['projection']=_0x3309d1,this[_0x387b88(0x8e)]=_0x4451ef;}}
|
package/layers/LayerManager.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a50_0x3ac2c8=a50_0x3cc4;(function(_0x13207e,_0xd421a5){const _0xc815d1=a50_0x3cc4,_0xa92ae1=_0x13207e();while(!![]){try{const _0x23e77a=parseInt(_0xc815d1(0xca))/0x1*(parseInt(_0xc815d1(0xc5))/0x2)+parseInt(_0xc815d1(0xc6))/0x3+-parseInt(_0xc815d1(0xbe))/0x4+-parseInt(_0xc815d1(0xc3))/0x5+parseInt(_0xc815d1(0xbf))/0x6*(-parseInt(_0xc815d1(0xb9))/0x7)+parseInt(_0xc815d1(0xcb))/0x8+parseInt(_0xc815d1(0xc9))/0x9*(parseInt(_0xc815d1(0xbd))/0xa);if(_0x23e77a===_0xd421a5)break;else _0xa92ae1['push'](_0xa92ae1['shift']());}catch(_0x22e762){_0xa92ae1['push'](_0xa92ae1['shift']());}}}(a50_0x5030,0x4c810));import a50_0x4c9fe3 from'./ArcgisDynamicLayer';import a50_0xdd1541 from'./ArcgisFeatureLayer';import a50_0xf73db0 from'./TDTLayer';function a50_0x5030(){const _0x472b94=['549494bsdaUn','596730psEbXr','sublayers','getTDTLayer','144IAIvPC','2OWtNPq','367512kGembd','getArcgisWMTSLayer','getGeoserverVectorTileLayer','440139IjuVvW','getGeoserverWFSLayer','getGeoserverWmsLayer','length','178570pixeXJ','364520AIZILJ','6emPQcv','push','getArcgisWmsLayer','url','3063440lDwkZZ','getArcgisFeatureLayer'];a50_0x5030=function(){return _0x472b94;};return a50_0x5030();}import{getDynamicLayerInfo,getWMTSLayerCapabilities,getFeatureLayerInfo,getWMSLayerCapabilities,getWFSLayerCapabilities}from'../capabilities';import a50_0x59ad64 from'./ArcgisTileLayer';import a50_0x576ebd from'./GeoserverWMSLayer';import a50_0xc59614 from'./GeoserverWMTSLayer';import a50_0x5ee25e from'./ArcgisWMSLayer';function a50_0x3cc4(_0x2efac3,_0x5385ac){const _0x50302b=a50_0x5030();return a50_0x3cc4=function(_0x3cc458,_0x1112f0){_0x3cc458=_0x3cc458-0xb7;let _0x4ed7af=_0x50302b[_0x3cc458];return _0x4ed7af;},a50_0x3cc4(_0x2efac3,_0x5385ac);}import a50_0x1cda1c from'./ArcgisWMTSLayer';import a50_0x1af55a from'./GeoserverWFSLayer';import a50_0x5cc0ad from'./GeoserverVectorTile';export default class LayerManagement{static async['getDynamicLayer'](_0x2c968c){const _0xf5cf8=a50_0x3cc4,_0xd5d759=await getDynamicLayerInfo(_0x2c968c[_0xf5cf8(0xc2)]?_0x2c968c[_0xf5cf8(0xc2)]:'');let _0x1f2882=new a50_0x4c9fe3(_0x2c968c,_0xd5d759);return _0x1f2882;}static async['getArcgisTileLayer'](_0x58156f){const _0x345ae4=a50_0x3cc4,_0x5262f0=await getDynamicLayerInfo(_0x58156f[_0x345ae4(0xc2)]?_0x58156f[_0x345ae4(0xc2)]:'');let _0x34c8fa=new a50_0x59ad64(_0x58156f,_0x5262f0);return _0x34c8fa;}static async[a50_0x3ac2c8(0xc4)](_0x1216c8){const _0x4838b4=a50_0x3ac2c8,_0x55939d=await getDynamicLayerInfo(_0x1216c8[_0x4838b4(0xc2)]?_0x1216c8[_0x4838b4(0xc2)]:'');let _0x5a3ea3=[];if(_0x1216c8[_0x4838b4(0xc7)])for(let _0x2e3240=0x0;_0x2e3240<_0x1216c8[_0x4838b4(0xc7)][_0x4838b4(0xbc)];_0x2e3240++){const _0xf1ba13=_0x1216c8[_0x4838b4(0xc7)][_0x2e3240];_0x5a3ea3[_0x4838b4(0xc0)](await getFeatureLayerInfo(_0x1216c8[_0x4838b4(0xc2)]?_0x1216c8['url']:'',_0xf1ba13));}let _0xae15fd=new a50_0xdd1541(_0x1216c8,_0x55939d,_0x5a3ea3);return _0xae15fd;}static async[a50_0x3ac2c8(0xc1)](_0xcb60a3){const _0x3d3160=a50_0x3ac2c8;var _0x553c19;const _0x5671f4=(_0x553c19=_0xcb60a3[_0x3d3160(0xc7)])===null||_0x553c19===void 0x0?void 0x0:_0x553c19[0x0],_0x4f5a2c=await getWMSLayerCapabilities(_0xcb60a3[_0x3d3160(0xc2)]?_0xcb60a3['url']:'',_0x5671f4==null?'':_0x5671f4);let _0x3434aa=new a50_0x5ee25e(_0xcb60a3,_0x4f5a2c);return _0x3434aa;}static async[a50_0x3ac2c8(0xb7)](_0x53248f){const _0x5880fb=a50_0x3ac2c8;var _0x398604;const _0x57726a=(_0x398604=_0x53248f[_0x5880fb(0xc7)])===null||_0x398604===void 0x0?void 0x0:_0x398604[0x0],_0x16a9e7=await getWMTSLayerCapabilities(_0x53248f[_0x5880fb(0xc2)]?_0x53248f['url']:'',_0x57726a==null?'':_0x57726a);let _0x34304c=new a50_0x1cda1c(_0x53248f,_0x16a9e7);return _0x34304c;}static async[a50_0x3ac2c8(0xbb)](_0x3f954d){const _0x5c6456=a50_0x3ac2c8;var _0x109859;const _0x28e1d9=(_0x109859=_0x3f954d[_0x5c6456(0xc7)])===null||_0x109859===void 0x0?void 0x0:_0x109859[0x0],_0x5cb770=await getWMSLayerCapabilities(_0x3f954d['url']?_0x3f954d[_0x5c6456(0xc2)]:'',_0x28e1d9==null?'':_0x28e1d9);let _0xa404f=new a50_0x576ebd(_0x3f954d,_0x5cb770);return _0xa404f;}static async['getGeoserverWMTSLayer'](_0x51904f){const _0x3e14ae=a50_0x3ac2c8;var _0x982ee7;const _0x38689f=(_0x982ee7=_0x51904f['sublayers'])===null||_0x982ee7===void 0x0?void 0x0:_0x982ee7[0x0],_0x50b3ac=await getWMTSLayerCapabilities(_0x51904f['url']?_0x51904f[_0x3e14ae(0xc2)]:'',_0x38689f==null?'':_0x38689f);let _0x160f80=new a50_0xc59614(_0x51904f,_0x50b3ac);return _0x160f80;}static async[a50_0x3ac2c8(0xba)](_0x12ef17){const _0x5e4ab0=a50_0x3ac2c8;var _0x2e002c;const _0x10ee4d=(_0x2e002c=_0x12ef17[_0x5e4ab0(0xc7)])===null||_0x2e002c===void 0x0?void 0x0:_0x2e002c[0x0],_0x16fb0f=await getWFSLayerCapabilities(_0x12ef17['url']?_0x12ef17[_0x5e4ab0(0xc2)]:'',_0x10ee4d==null?'':_0x10ee4d);let _0x4c57a2=new a50_0x1af55a(_0x12ef17,_0x16fb0f);return _0x4c57a2;}static async[a50_0x3ac2c8(0xb8)](_0x59569a){const _0x1434b7=a50_0x3ac2c8;var _0x20fbc2;const _0x3f1338=(_0x20fbc2=_0x59569a['sublayers'])===null||_0x20fbc2===void 0x0?void 0x0:_0x20fbc2[0x0],_0x105744=await getWMTSLayerCapabilities(_0x59569a[_0x1434b7(0xc2)]?_0x59569a[_0x1434b7(0xc2)]:'',_0x3f1338==null?'':_0x3f1338);let _0x2c80f0=new a50_0x5cc0ad(_0x59569a,_0x105744);return _0x2c80f0;}static async[a50_0x3ac2c8(0xc8)](_0x5c2471){const _0x472c97=a50_0x3ac2c8;var _0x32f3c4;const _0x411873=(_0x32f3c4=_0x5c2471[_0x472c97(0xc7)])===null||_0x32f3c4===void 0x0?void 0x0:_0x32f3c4[0x0],_0x39d54a=await getWMTSLayerCapabilities(_0x5c2471['url']?_0x5c2471['url']:'',_0x411873==null?'':_0x411873);let _0x1ca4e9=new a50_0xf73db0(_0x5c2471,_0x39d54a);return _0x1ca4e9;}}
|
package/layers/TDTLayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x42f6cd,_0x5d9b1a){const _0xa2f1a8=a51_0x247f,_0x3fa0da=_0x42f6cd();while(!![]){try{const _0x49e4ba=-parseInt(_0xa2f1a8(0x163))/0x1*(-parseInt(_0xa2f1a8(0x171))/0x2)+parseInt(_0xa2f1a8(0x176))/0x3*(-parseInt(_0xa2f1a8(0x170))/0x4)+-parseInt(_0xa2f1a8(0x174))/0x5+-parseInt(_0xa2f1a8(0x175))/0x6+parseInt(_0xa2f1a8(0x16b))/0x7+-parseInt(_0xa2f1a8(0x169))/0x8*(-parseInt(_0xa2f1a8(0x179))/0x9)+parseInt(_0xa2f1a8(0x178))/0xa;if(_0x49e4ba===_0x5d9b1a)break;else _0x3fa0da['push'](_0x3fa0da['shift']());}catch(_0x1c1f67){_0x3fa0da['push'](_0x3fa0da['shift']());}}}(a51_0xd3ed,0x24bcf));function a51_0x247f(_0x49bb46,_0x41dbfb){const _0xd3ed60=a51_0xd3ed();return a51_0x247f=function(_0x247f41,_0x33126c){_0x247f41=_0x247f41-0x161;let _0xe881b4=_0xd3ed60[_0x247f41];return _0xe881b4;},a51_0x247f(_0x49bb46,_0x41dbfb);}import a51_0x492baa from'ol/layer/Tile';function a51_0xd3ed(){const _0x5730ce=['pow','41816IkpVIh','1198XRozQb','layerInfo','length','1160510Kvunis','127986MDvzwc','84AqCYEC','KVP','3036570VcnEGG','2646EeznbZ','mapIndex','format','95kCjqJC','tileMatrixSet','sublayers','EPSG:4490','join','style','7496oPOZxB','1.0.0','424088noErbb','url','boundingBoxExtent','projection'];a51_0xd3ed=function(){return _0x5730ce;};return a51_0xd3ed();}import{WMTS as a51_0x28387b}from'ol/source';import a51_0xe61bd7 from'ol/tilegrid/WMTS';import{registerProj}from'../utils/RegisterProjUtil';import{getWidth,getTopLeft}from'ol/extent';export default class TDTLayer extends a51_0x492baa{constructor(_0x36e1cc,_0x3824e4){const _0x3531c0=a51_0x247f;let _0x97db29='';_0x36e1cc['sublayers']&&_0x36e1cc[_0x3531c0(0x165)][_0x3531c0(0x173)]>0x0&&(_0x97db29=_0x36e1cc[_0x3531c0(0x165)][_0x3531c0(0x167)](','));const _0x56fdd4=_0x3531c0(0x166);let _0x514ff1=registerProj(_0x56fdd4);const _0x4b51fc=[],_0x43c76c=[];for(let _0x696a95=0x1;_0x696a95<0x13;_0x696a95++){_0x4b51fc[_0x696a95]=getWidth(_0x3824e4[_0x3531c0(0x16d)])/(0x100*Math[_0x3531c0(0x16f)](0x2,_0x696a95)),_0x43c76c[_0x696a95]=_0x696a95+'';}super({'opacity':_0x36e1cc['opacity'],'zIndex':_0x36e1cc[_0x3531c0(0x161)],'source':new a51_0x28387b({'style':_0x3824e4[_0x3531c0(0x168)],'url':_0x36e1cc[_0x3531c0(0x16c)],'tileGrid':new a51_0xe61bd7({'origin':getTopLeft(_0x3824e4[_0x3531c0(0x16d)]),'resolutions':_0x4b51fc,'matrixIds':_0x43c76c}),'layer':_0x97db29,'matrixSet':_0x3824e4[_0x3531c0(0x164)],'version':_0x3531c0(0x16a),'format':_0x3824e4[_0x3531c0(0x162)][0x0],'projection':_0x56fdd4,'requestEncoding':_0x3531c0(0x177)})}),this['id']=_0x36e1cc['id'],this['initialExtent']=_0x3824e4['boundingBoxExtent'],this[_0x3531c0(0x16e)]=_0x514ff1,this[_0x3531c0(0x172)]=_0x36e1cc;}}
|
package/mapView/Map.d.ts
CHANGED
|
@@ -138,7 +138,7 @@ export default class OLMap extends Map {
|
|
|
138
138
|
* @param strokeColor 边界线颜色
|
|
139
139
|
* @param strokeWidth 边界线宽度
|
|
140
140
|
*/
|
|
141
|
-
addWKT(wkt: string, proj: string, tag?: string, location?: boolean, style?: IStyle):
|
|
141
|
+
addWKT(wkt: string, proj: string, tag?: string, location?: boolean, properties?: any, style?: IStyle): Feature | undefined;
|
|
142
142
|
/**
|
|
143
143
|
*
|
|
144
144
|
* @param wkts wkt数组
|
|
@@ -149,7 +149,7 @@ export default class OLMap extends Map {
|
|
|
149
149
|
* @param strokeColor 边界线颜色
|
|
150
150
|
* @param strokeWidth 边界线宽度
|
|
151
151
|
*/
|
|
152
|
-
addWKTs(wkts: string[], proj: string, tag?: string, location?: boolean, style?: IStyle):
|
|
152
|
+
addWKTs(wkts: string[], proj: string, tag?: string, location?: boolean, style?: IStyle, properties?: any): Feature[] | undefined;
|
|
153
153
|
/**
|
|
154
154
|
* 基于wkt坐标定位
|
|
155
155
|
* @param wkt wkt坐标字符串
|