ym-gis-2d 1.0.23 → 1.0.25
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/LegendControl.js.map +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
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a35_0xf1d5f3=a35_0x1721;(function(_0x940f32,_0x57e823){const _0x3fa656=a35_0x1721,_0x37c8ed=_0x940f32();while(!![]){try{const _0x5b1aec=parseInt(_0x3fa656(0xc3))/0x1+-parseInt(_0x3fa656(0xad))/0x2+-parseInt(_0x3fa656(0xc2))/0x3+parseInt(_0x3fa656(0xaf))/0x4+parseInt(_0x3fa656(0xa8))/0x5*(parseInt(_0x3fa656(0xc1))/0x6)+-parseInt(_0x3fa656(0xa5))/0x7+-parseInt(_0x3fa656(0xc7))/0x8*(parseInt(_0x3fa656(0xbe))/0x9);if(_0x5b1aec===_0x57e823)break;else _0x37c8ed['push'](_0x37c8ed['shift']());}catch(_0x1e4cba){_0x37c8ed['push'](_0x37c8ed['shift']());}}}(a35_0x3977,0xb74c6));import a35_0x1288eb from'../entity/Feature';function a35_0x1721(_0x3bfea0,_0x3c65b1){const _0x3977de=a35_0x3977();return a35_0x1721=function(_0x1721ac,_0x457b67){_0x1721ac=_0x1721ac-0xa3;let _0x2a8e31=_0x3977de[_0x1721ac];return _0x2a8e31;},a35_0x1721(_0x3bfea0,_0x3c65b1);}import a35_0x490d0e from'ol/layer/Vector';import a35_0x2a09bc from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';import a35_0x193e97 from'ol/format/GeoJSON';import{getSelectStyle}from'../style/StyleManager';export default class FeatureManager{constructor(_0x4ee178){const _0x563aa6=a35_0x1721;this[_0x563aa6(0xb1)]=_0x4ee178;}[a35_0xf1d5f3(0xb8)](_0x2dae55,_0x2fc868){const _0xff52c3=a35_0xf1d5f3;if(_0x2dae55){const _0x2c1d81=this[_0xff52c3(0xb1)][_0xff52c3(0xbb)](_0x2dae55);if(!_0x2c1d81||!_0x2c1d81[_0xff52c3(0xc4)])return;let _0x2a9d4f;switch(_0x2c1d81[_0xff52c3(0xc4)][_0xff52c3(0xaa)]){case 0x1:_0x2a9d4f=this[_0xff52c3(0xb7)](this[_0xff52c3(0xb1)][_0xff52c3(0xb3)](),_0x2dae55,_0x2fc868);break;case 0x2:_0x2a9d4f=this[_0xff52c3(0xb7)](this[_0xff52c3(0xb1)][_0xff52c3(0xc0)](),_0x2dae55,_0x2fc868);break;case 0x3:_0x2a9d4f=this[_0xff52c3(0xb7)](this[_0xff52c3(0xb1)][_0xff52c3(0xc9)](),_0x2dae55,_0x2fc868);break;default:break;}return _0x2a9d4f;}else{const _0x3b6324=this[_0xff52c3(0xb7)](this[_0xff52c3(0xb1)][_0xff52c3(0xb3)](),_0x2dae55,_0x2fc868),_0x4bc91e=this[_0xff52c3(0xb7)](this[_0xff52c3(0xb1)]['getLineTempLayer'](),_0x2dae55,_0x2fc868),_0x2e8e71=this['getTempSelectedFeatures'](this[_0xff52c3(0xb1)][_0xff52c3(0xc9)](),_0x2dae55,_0x2fc868);let _0x54898d=[];return _0x3b6324&&(_0x54898d=[..._0x54898d,..._0x3b6324]),_0x4bc91e&&(_0x54898d=[..._0x54898d,..._0x4bc91e]),_0x2e8e71&&(_0x54898d=[..._0x54898d,..._0x2e8e71]),_0x54898d;}}[a35_0xf1d5f3(0xb7)](_0x2eab25,_0x5976a3,_0x506851){const _0x3915f7=a35_0xf1d5f3;var _0x3ee73d;let _0x3f9a81=(_0x3ee73d=_0x2eab25['getSource']())===null||_0x3ee73d===void 0x0?void 0x0:_0x3ee73d[_0x3915f7(0xa4)]();if(!_0x3f9a81)return;_0x3f9a81[_0x3915f7(0xcb)]((_0x10756d,_0xcefd7e,_0x4944af)=>{_0x10756d['tempLayer']=_0x2eab25;});_0x506851!=undefined&&(_0x3f9a81=_0x3f9a81['filter'](_0x18f151=>_0x18f151[_0x3915f7(0xb5)]==_0x506851));if(_0x5976a3)return _0x3f9a81[_0x3915f7(0xb2)](_0x592578=>_0x592578[_0x3915f7(0xb4)]==_0x5976a3);return _0x3f9a81;}['flashFeatures'](_0xde4042,_0x23f447=0x3){const _0x4c0b64=a35_0xf1d5f3;var _0x3e4ac7;let _0xca1d85=new a35_0x490d0e({'zIndex':0x270f,'source':new a35_0x2a09bc()});_0xca1d85['id']=_0x4c0b64(0xb0),this[_0x4c0b64(0xb1)]['addLayer'](_0xca1d85,![]),(_0x3e4ac7=_0xca1d85[_0x4c0b64(0xb9)]())===null||_0x3e4ac7===void 0x0?void 0x0:_0x3e4ac7[_0x4c0b64(0xa9)](_0xde4042);let _0xf4b18a=0x0,_0x118b73=setInterval(()=>{const _0x2569cb=_0x4c0b64;if(_0xf4b18a===_0x23f447){_0x118b73&&clearInterval(_0x118b73);const _0x26437d=this['map'][_0x2569cb(0xbb)](_0xca1d85['id']);_0x26437d&&this['map'][_0x2569cb(0xb6)](_0x26437d);return;}if(_0xca1d85[_0x2569cb(0xa3)]())_0xca1d85[_0x2569cb(0xac)](![]);else _0xca1d85['setVisible'](!![]);_0xf4b18a++;},0x190);}[a35_0xf1d5f3(0xab)](_0x149481,_0x53667f=0x3){const _0x29fe9b=a35_0xf1d5f3;var _0x3d0c42;let _0x400f1e=new a35_0x490d0e({'zIndex':0x270f,'source':new a35_0x2a09bc()});_0x400f1e['id']=_0x29fe9b(0xb0),this[_0x29fe9b(0xb1)][_0x29fe9b(0xcc)](_0x400f1e,![]);let _0x14dfff=[];_0x149481[_0x29fe9b(0xcb)](_0x31018b=>{const _0x391fcd=_0x29fe9b;let _0x1deb05=new a35_0x1288eb();const _0x77e795=getSelectStyle(_0x31018b[_0x391fcd(0xc5)]());_0x1deb05[_0x391fcd(0xbf)](_0x77e795),_0x1deb05[_0x391fcd(0xc8)](_0x31018b),_0x14dfff['push'](_0x1deb05);}),(_0x3d0c42=_0x400f1e[_0x29fe9b(0xb9)]())===null||_0x3d0c42===void 0x0?void 0x0:_0x3d0c42[_0x29fe9b(0xa9)](_0x14dfff);let _0x26f4f9=0x0,_0x4fed0f=setInterval(()=>{const _0x1182f0=_0x29fe9b;if(_0x26f4f9===_0x53667f){_0x4fed0f&&clearInterval(_0x4fed0f);const _0xa37126=this['map'][_0x1182f0(0xbb)](_0x400f1e['id']);_0xa37126&&this['map']['removeLayer'](_0xa37126);return;}if(_0x400f1e[_0x1182f0(0xa3)]())_0x400f1e[_0x1182f0(0xac)](![]);else _0x400f1e[_0x1182f0(0xac)](!![]);_0x26f4f9++;},0x190);}async[a35_0xf1d5f3(0xae)](_0x349824){const _0x14765e=a35_0xf1d5f3;let _0x25f573=await toGeoJSON(_0x349824,null);if(!_0x25f573)return[];let _0xfb5d07=[];var _0x510175=new a35_0x193e97();return _0x25f573[_0x14765e(0xbc)][_0x14765e(0xcb)](_0x1a3ad0=>{const _0xf3f33f=_0x14765e;_0xfb5d07[_0xf3f33f(0xca)](_0x510175['readFeature'](_0x1a3ad0,null));}),_0xfb5d07;}[a35_0xf1d5f3(0xbd)](_0x112089){const _0x2e5607=a35_0xf1d5f3,_0x7c3b42=this[_0x2e5607(0xb8)]();if(_0x7c3b42&&_0x7c3b42[_0x2e5607(0xc6)]>0x0)for(const _0x8c3d33 of _0x7c3b42){if(_0x8c3d33&&_0x8c3d33[_0x2e5607(0xa6)]){const _0x1df6fb=_0x8c3d33['tempLayer'][_0x2e5607(0xb9)]();_0x1df6fb&&(_0x112089!=undefined?_0x8c3d33[_0x2e5607(0xba)]==_0x112089&&_0x1df6fb[_0x2e5607(0xa7)](_0x8c3d33):_0x1df6fb['removeFeature'](_0x8c3d33));}}}}function a35_0x3977(){const _0x5dd47b=['setVisible','372870eWcJux','kmlImport','2481964dualXH','flash_layer','map','filter','getPointTempLayer','layerId','isSelected','removeLayer','getTempSelectedFeatures','getSelectedFeatures','getSource','tag','getLayerById','features','clearTempFeatures','1962EybHqv','setStyle','getLineTempLayer','51396pFiDgC','126762XKDNce','1309831TuxXbv','layerInfo','getType','length','84944oYIFEv','setGeometry','getPolygonTempLayer','push','forEach','addLayer','getVisible','getFeatures','106715QeJFIK','tempLayer','removeFeature','805vnZBmd','addFeatures','geometryType','flashGeometrys'];a35_0x3977=function(){return _0x5dd47b;};return a35_0x3977();}
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a36_0x4927(_0x1822fc,_0x1dbd15){var _0x5e2f7a=a36_0x5e2f();return a36_0x4927=function(_0x4927df,_0x270b52){_0x4927df=_0x4927df-0x18b;var _0x29f6dd=_0x5e2f7a[_0x4927df];return _0x29f6dd;},a36_0x4927(_0x1822fc,_0x1dbd15);}(function(_0x4c3c49,_0x4017a3){var _0x12b77b=a36_0x4927,_0x19a8d8=_0x4c3c49();while(!![]){try{var _0x291c1a=-parseInt(_0x12b77b(0x193))/0x1+-parseInt(_0x12b77b(0x192))/0x2+-parseInt(_0x12b77b(0x190))/0x3*(-parseInt(_0x12b77b(0x195))/0x4)+parseInt(_0x12b77b(0x194))/0x5*(-parseInt(_0x12b77b(0x18c))/0x6)+-parseInt(_0x12b77b(0x18f))/0x7+parseInt(_0x12b77b(0x18b))/0x8*(-parseInt(_0x12b77b(0x18e))/0x9)+-parseInt(_0x12b77b(0x18d))/0xa*(-parseInt(_0x12b77b(0x191))/0xb);if(_0x291c1a===_0x4017a3)break;else _0x19a8d8['push'](_0x19a8d8['shift']());}catch(_0x925f44){_0x19a8d8['push'](_0x19a8d8['shift']());}}}(a36_0x5e2f,0xd1f30));import a36_0x5f4948 from'./mapView/Map';export{a36_0x5f4948 as Map2D};function a36_0x5e2f(){var _0x4b7773=['550810DtGzzm','3330ILaLki','59828OIfSPc','824MKcLlT','1782WDJZzJ','145420tqYZcg','129879EXlmWT','6851012ejWfYT','201VKBhUi','2827SiDYOS','1331480SZWfmw'];a36_0x5e2f=function(){return _0x4b7773;};return a36_0x5e2f();}
|
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_0x2d6008=a37_0x3ff7;function a37_0x1b64(){const _0x44db=['getActive','_snapTolerance','features','_overlay','updateState_','preventDefault','12px\x20Calibre,sans-serif','968qGurlt','getText','slice','setMap','358750mnrXsd','Ellipse','drawmoving','DRAWABORT','pixel','rgba(0,\x200,\x200,\x200.4)','push','drawabort','_type','DRAWEND','setText','startDrawing_','单击结束绘制,右击删除点','getSource','addFeature','dispatchEvent','onInternal','handleMoveEvent','tipText','drawend','snapTolerance','revert','abortDrawing','once','getOverlay','addChangeListener','rectangle','_source','type','updateTip_','单击拖动绘制','fixPoint','atFinish_','MAX_VALUE','getType','_showTip','originalEvent','finishDrawing','abortDrawing_','source','890262PQLJXd','单击增加点,右击删除点','_drawingCoordinates','length','_features','unInternal','_minPoints','getCode','170wjqJXR','getPixelFromCoordinate','setGeometry','sqrt','getProjection','left','clear','setStyle','3110iHmllc','feature','DRAWADDPOINT','coordinates','1557531fYUnbc','drawstart','createMultiPointFeature','stopDown','getMap','单击增加点,右击删除点双击完成绘制','_tipOverlay','DRAWMOVING','getView','_tipFeature','showTip','wrapX','_isStayDraw','addPoint','_fixPoint','updateSketchFeatures_','7JaFdli','button','drawaddpoint','style','getGeometry','_sketchFeature','rgba(255,\x20255,\x20255,\x201)','handleDragEvent','buildDrawingFeature','279433XLeWag','8lkEBJh','projection','Circle','211599CXMutB','pointermove','coordinate','_style','1220580WyhdiC','_tipStyle'];a37_0x1b64=function(){return _0x44db;};return a37_0x1b64();}(function(_0x581212,_0x5d1be1){const _0x339073=a37_0x3ff7,_0x3eb79d=_0x581212();while(!![]){try{const _0x3231da=-parseInt(_0x339073(0x1d4))/0x1+-parseInt(_0x339073(0x1e5))/0x2+parseInt(_0x339073(0x20d))/0x3+-parseInt(_0x339073(0x1e1))/0x4*(parseInt(_0x339073(0x21d))/0x5)+parseInt(_0x339073(0x1d8))/0x6*(-parseInt(_0x339073(0x1c7))/0x7)+-parseInt(_0x339073(0x1d1))/0x8*(-parseInt(_0x339073(0x1b7))/0x9)+parseInt(_0x339073(0x215))/0xa*(parseInt(_0x339073(0x1d0))/0xb);if(_0x3231da===_0x5d1be1)break;else _0x3eb79d['push'](_0x3eb79d['shift']());}catch(_0x2a85f9){_0x3eb79d['push'](_0x3eb79d['shift']());}}}(a37_0x1b64,0x26440));import a37_0x563ed2 from'ol/events/Event';import a37_0x27fdd2 from'ol/interaction/Pointer';function a37_0x3ff7(_0x32cc39,_0x12246e){const _0x1b64ae=a37_0x1b64();return a37_0x3ff7=function(_0x3ff7e6,_0x2c529e){_0x3ff7e6=_0x3ff7e6-0x1b6;let _0x27f567=_0x1b64ae[_0x3ff7e6];return _0x27f567;},a37_0x3ff7(_0x32cc39,_0x12246e);}import{MultiPoint,Point}from'ol/geom';import a37_0x521d95 from'ol/Feature';import a37_0x14de00,{createEditingStyle}from'ol/style/Style';import a37_0x22848b from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a37_0x4fbff1 from'ol/style/Text';import a37_0x2e3250 from'ol/style/Fill';import a37_0xaad4e3 from'ol/interaction/Property';import a37_0x597c2a from'ol/layer/Vector';import a37_0x5bf60e from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a37_0x2d6008(0x1b8),'DRAWEND':a37_0x2d6008(0x1f8),'DRAWABORT':a37_0x2d6008(0x1ec),'DRAWADDPOINT':a37_0x2d6008(0x1c9),'DRAWMOVING':a37_0x2d6008(0x1e7)};export class DrawEvent extends a37_0x563ed2{constructor(_0x151779,_0xdf5539,_0x3d979b){const _0x1f746c=a37_0x2d6008;super(_0x151779),this[_0x1f746c(0x21e)]=_0xdf5539,this[_0x1f746c(0x1b6)]=_0x3d979b;}}export class ShEvent extends a37_0x563ed2{constructor(_0x355375,_0x1506e0,_0x744bdc,_0x27c5b3,_0x299b0c){const _0x18d712=a37_0x2d6008;super(_0x355375),this[_0x18d712(0x1d2)]=_0x299b0c,this[_0x18d712(0x201)]=_0x1506e0,this[_0x18d712(0x1d6)]=_0x744bdc,this[_0x18d712(0x1b6)]=_0x27c5b3;}}export default class Draw extends a37_0x27fdd2{constructor(_0x1ee312,_0x567af1){const _0xa95d4e=a37_0x2d6008,_0x117c84=_0x567af1?_0x567af1:{};!_0x117c84[_0xa95d4e(0x1ba)]&&(_0x117c84[_0xa95d4e(0x1ba)]=![]);super(_0x567af1),this['on']=this[_0xa95d4e(0x1f5)],this[_0xa95d4e(0x1fc)]=this['onceInternal'],this['un']=this[_0xa95d4e(0x212)],this['_isStayDraw']=![],this[_0xa95d4e(0x1ed)]=_0x1ee312,this['_style']=_0x567af1===null||_0x567af1===void 0x0?void 0x0:_0x567af1[_0xa95d4e(0x1ca)],this['_source']=_0x567af1===null||_0x567af1===void 0x0?void 0x0:_0x567af1[_0xa95d4e(0x20c)],this[_0xa95d4e(0x211)]=_0x567af1===null||_0x567af1===void 0x0?void 0x0:_0x567af1[_0xa95d4e(0x1dc)];const _0x35c88b=getPlotCount(this[_0xa95d4e(0x1ed)]);this[_0xa95d4e(0x213)]=_0x35c88b['minPoint'],this['_fixPoint']=_0x35c88b[_0xa95d4e(0x204)],this['tipText']=_0x567af1===null||_0x567af1===void 0x0?void 0x0:_0x567af1[_0xa95d4e(0x1f7)],this[_0xa95d4e(0x208)]=(_0x567af1===null||_0x567af1===void 0x0?void 0x0:_0x567af1[_0xa95d4e(0x1c1)])==![]?![]:!![],this[_0xa95d4e(0x1db)]=_0x117c84[_0xa95d4e(0x1f9)]?_0x117c84[_0xa95d4e(0x1f9)]:0x6,this['_tipFeature']=new a37_0x521d95(),this[_0xa95d4e(0x1d9)]=new a37_0x14de00({'text':new a37_0x4fbff1({'font':_0xa95d4e(0x1e0),'fill':new a37_0x2e3250({'color':_0xa95d4e(0x1cd)}),'backgroundFill':new a37_0x2e3250({'color':_0xa95d4e(0x1ea)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0xa95d4e(0x21a),'offsetX':0xf})}),this['_drawingCoordinates']=[],this['_tipOverlay']=new a37_0x597c2a({'source':new a37_0x22848b({'useSpatialIndex':![],'wrapX':(_0x567af1===null||_0x567af1===void 0x0?void 0x0:_0x567af1[_0xa95d4e(0x1c2)])?_0x567af1[_0xa95d4e(0x1c2)]:![]})}),this[_0xa95d4e(0x1dd)]=new a37_0x597c2a({'source':new a37_0x22848b({'useSpatialIndex':![],'wrapX':(_0x567af1===null||_0x567af1===void 0x0?void 0x0:_0x567af1[_0xa95d4e(0x1c2)])?_0x567af1['wrapX']:![]}),'updateWhileInteracting':!![]}),this[_0xa95d4e(0x1fe)](a37_0xaad4e3['ACTIVE'],this[_0xa95d4e(0x1de)]);}['updateState_'](){const _0x6f0d09=a37_0x2d6008,_0x3b274e=this[_0x6f0d09(0x1bb)](),_0x5de681=this[_0x6f0d09(0x1da)]();(!_0x3b274e||!_0x5de681)&&this[_0x6f0d09(0x1fb)](),this[_0x6f0d09(0x1dd)][_0x6f0d09(0x1e4)](_0x5de681?_0x3b274e:null),this['_tipOverlay']['setMap'](_0x5de681?_0x3b274e:null);}[a37_0x2d6008(0x1e4)](_0x428722){const _0xb3522=a37_0x2d6008;super[_0xb3522(0x1e4)](_0x428722),this[_0xb3522(0x1de)]();}[a37_0x2d6008(0x21c)](_0x337233){const _0x5db573=a37_0x2d6008;this[_0x5db573(0x1d7)]=_0x337233?_0x337233:{};}[a37_0x2d6008(0x1fd)](){const _0x33969a=a37_0x2d6008;return this[_0x33969a(0x1dd)];}['handleDownEvent'](_0x53ebad){const _0x3cf8b8=a37_0x2d6008;if(_0x53ebad['originalEvent'][_0x3cf8b8(0x1c8)]===0x2)return _0x53ebad[_0x3cf8b8(0x209)][_0x3cf8b8(0x1df)](),this[_0x3cf8b8(0x1fa)](),this[_0x3cf8b8(0x1f6)](_0x53ebad),![];return!![];}['handleUpEvent'](_0x4ff89c){const _0x59edb2=a37_0x2d6008;var _0x3eb9e6,_0x20c26a;if(this[_0x59edb2(0x1ed)]=='rectangle'&&this[_0x59edb2(0x20f)][_0x59edb2(0x210)]<0x1)return this[_0x59edb2(0x1f4)](new DrawEvent(DrawEventType[_0x59edb2(0x1ee)],undefined,[_0x4ff89c['coordinate']])),![];if(!this['_isStayDraw'])this[_0x59edb2(0x1f0)](_0x4ff89c[_0x59edb2(0x1d6)]),this[_0x59edb2(0x1f4)](new ShEvent(DrawEventType[_0x59edb2(0x21f)],this['_type'],_0x4ff89c[_0x59edb2(0x1d6)],this['_drawingCoordinates'],(_0x3eb9e6=this[_0x59edb2(0x1bb)]())===null||_0x3eb9e6===void 0x0?void 0x0:_0x3eb9e6[_0x59edb2(0x1bf)]()[_0x59edb2(0x219)]()[_0x59edb2(0x214)]())),this[_0x59edb2(0x1ed)]=='point'&&this[_0x59edb2(0x20a)]();else{if(this[_0x59edb2(0x20f)]&&this[_0x59edb2(0x20f)][_0x59edb2(0x210)]>0x0){if(this['atFinish_'](_0x4ff89c[_0x59edb2(0x1e9)]))return this[_0x59edb2(0x20a)](),_0x4ff89c[_0x59edb2(0x1df)](),![];let _0x5f2706=this[_0x59edb2(0x20f)]['length']+0x1;_0x5f2706<=this[_0x59edb2(0x1c5)]&&this[_0x59edb2(0x1c4)](_0x4ff89c[_0x59edb2(0x1d6)]),this['dispatchEvent'](new ShEvent(DrawEventType[_0x59edb2(0x21f)],this[_0x59edb2(0x1ed)],_0x4ff89c[_0x59edb2(0x1d6)],this[_0x59edb2(0x20f)],(_0x20c26a=this['getMap']())===null||_0x20c26a===void 0x0?void 0x0:_0x20c26a[_0x59edb2(0x1bf)]()['getProjection']()[_0x59edb2(0x214)]())),_0x5f2706>=this[_0x59edb2(0x213)]&&this[_0x59edb2(0x1cf)](this['_drawingCoordinates']),_0x5f2706===this[_0x59edb2(0x1c5)]&&this['finishDrawing']();}}return _0x4ff89c[_0x59edb2(0x1df)](),![];}[a37_0x2d6008(0x1ce)](_0x391a5a){const _0x2ddf5b=a37_0x2d6008;var _0x48e4ae;if(this[_0x2ddf5b(0x1ed)]==_0x2ddf5b(0x1ff)&&_0x391a5a[_0x2ddf5b(0x209)][_0x2ddf5b(0x201)]==_0x2ddf5b(0x1d5)){if(!this[_0x2ddf5b(0x1c3)]){this[_0x2ddf5b(0x1f0)](_0x391a5a[_0x2ddf5b(0x1d6)]),this[_0x2ddf5b(0x1f4)](new ShEvent(DrawEventType[_0x2ddf5b(0x21f)],this['_type'],_0x391a5a[_0x2ddf5b(0x1d6)],this[_0x2ddf5b(0x20f)],(_0x48e4ae=this['getMap']())===null||_0x48e4ae===void 0x0?void 0x0:_0x48e4ae[_0x2ddf5b(0x1bf)]()['getProjection']()[_0x2ddf5b(0x214)]()));return;}let _0x1c66d0=[...this['_drawingCoordinates'],_0x391a5a[_0x2ddf5b(0x1d6)]];this['buildDrawingFeature'](_0x1c66d0),this['dispatchEvent'](new DrawEvent(DrawEventType[_0x2ddf5b(0x1be)],this[_0x2ddf5b(0x1cc)],this[_0x2ddf5b(0x20f)]));}}[a37_0x2d6008(0x1f6)](_0x1310e3){const _0x43af5b=a37_0x2d6008;var _0x5d61a9,_0x4366c7,_0x55ff5f;let _0xb34e84='';this[_0x43af5b(0x1ed)]==_0x43af5b(0x1d5)&&(this['startDrawing_'](_0x1310e3[_0x43af5b(0x1d6)]),this[_0x43af5b(0x1f4)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x43af5b(0x1ed)],_0x1310e3[_0x43af5b(0x1d6)],this[_0x43af5b(0x20f)],(_0x5d61a9=this[_0x43af5b(0x1bb)]())===null||_0x5d61a9===void 0x0?void 0x0:_0x5d61a9['getView']()['getProjection']()[_0x43af5b(0x214)]())),this['finishDrawing']());!this[_0x43af5b(0x1c3)]?_0xb34e84=this[_0x43af5b(0x1ed)]==_0x43af5b(0x1ff)?_0x43af5b(0x203):'单击开始绘制':(_0xb34e84=_0x43af5b(0x20e),((_0x4366c7=this[_0x43af5b(0x20f)])===null||_0x4366c7===void 0x0?void 0x0:_0x4366c7['length'])===this[_0x43af5b(0x1c5)]-0x1&&(_0xb34e84=_0x43af5b(0x1f1)),((_0x55ff5f=this[_0x43af5b(0x20f)])===null||_0x55ff5f===void 0x0?void 0x0:_0x55ff5f['length'])>=this['_minPoints']&&this[_0x43af5b(0x1c5)]===Number[_0x43af5b(0x206)]&&(_0xb34e84=_0x43af5b(0x1bc)));this[_0x43af5b(0x1f7)]!=undefined&&(_0xb34e84=this['tipText']);this['updateTip_'](_0x1310e3[_0x43af5b(0x1d6)],_0xb34e84);if(this[_0x43af5b(0x1c3)]&&this[_0x43af5b(0x1ed)]!=_0x43af5b(0x1ff)){let _0x294d29=[...this[_0x43af5b(0x20f)],_0x1310e3[_0x43af5b(0x1d6)]];this['buildDrawingFeature'](_0x294d29),this[_0x43af5b(0x1f4)](new DrawEvent(DrawEventType['DRAWMOVING'],this[_0x43af5b(0x1cc)],this[_0x43af5b(0x20f)]));}}[a37_0x2d6008(0x205)](_0x52294f){const _0x51138d=a37_0x2d6008;var _0x1303b0;let _0xd0d92d=![],_0x1b9944=this[_0x51138d(0x20f)]['length'];if(_0x1b9944>this['_minPoints']&&this[_0x51138d(0x1c5)]===Number[_0x51138d(0x206)]){const _0x4fcae5=this[_0x51138d(0x20f)][this[_0x51138d(0x20f)]['length']-0x1],_0x527db1=(_0x1303b0=this[_0x51138d(0x1bb)]())===null||_0x1303b0===void 0x0?void 0x0:_0x1303b0[_0x51138d(0x216)](_0x4fcae5),_0x1340ff=_0x52294f[0x0]-(_0x527db1?_0x527db1[0x0]:0x0),_0x21782b=_0x52294f[0x1]-(_0x527db1?_0x527db1[0x1]:0x0);_0xd0d92d=Math[_0x51138d(0x218)](_0x1340ff*_0x1340ff+_0x21782b*_0x21782b)<=this[_0x51138d(0x1db)];}return _0xd0d92d;}[a37_0x2d6008(0x1f0)](_0x11d3d9){const _0x5822ed=a37_0x2d6008;this[_0x5822ed(0x1c3)]=!![],this[_0x5822ed(0x20f)]=[_0x11d3d9[_0x5822ed(0x1e3)]()],this[_0x5822ed(0x1cc)]=this[_0x5822ed(0x1b9)](),this[_0x5822ed(0x1c6)](),this[_0x5822ed(0x1f4)](new DrawEvent(DrawEventType['DRAWSTART'],this[_0x5822ed(0x1cc)],this[_0x5822ed(0x20f)]));}['finishDrawing'](){const _0x3dba01=a37_0x2d6008;if(this['_drawingCoordinates'][_0x3dba01(0x210)]>this['_minPoints']){this[_0x3dba01(0x1cf)](this[_0x3dba01(0x20f)]);let _0x45533e=this[_0x3dba01(0x20f)];const _0x202944=this[_0x3dba01(0x20b)]();if(!_0x202944)return;this['dispatchEvent'](new DrawEvent(DrawEventType[_0x3dba01(0x1ee)],_0x202944,_0x45533e)),this[_0x3dba01(0x211)]&&this[_0x3dba01(0x211)][_0x3dba01(0x1eb)](_0x202944),this[_0x3dba01(0x200)]&&this[_0x3dba01(0x200)][_0x3dba01(0x1f3)](_0x202944);}}[a37_0x2d6008(0x1c4)](_0x2c2796){const _0x145526=a37_0x2d6008;this[_0x145526(0x20f)][_0x145526(0x1eb)](_0x2c2796),this[_0x145526(0x1cc)]=this[_0x145526(0x1b9)](),this['updateSketchFeatures_']();}['createMultiPointFeature'](){const _0x5f4c72=a37_0x2d6008,_0x27ed8a=new MultiPoint(this[_0x5f4c72(0x20f)]);let _0x475eea=new a37_0x521d95();return _0x475eea['setGeometry'](_0x27ed8a),_0x475eea;}[a37_0x2d6008(0x20b)](){const _0x41a008=a37_0x2d6008;var _0x18cb39,_0x1158cb;this[_0x41a008(0x1c3)]=![];const _0x583ab0=this[_0x41a008(0x1cc)];return this[_0x41a008(0x1cc)]=undefined,this[_0x41a008(0x20f)]=[],(_0x18cb39=this[_0x41a008(0x1dd)][_0x41a008(0x1f2)]())===null||_0x18cb39===void 0x0?void 0x0:_0x18cb39[_0x41a008(0x21b)](!![]),(_0x1158cb=this[_0x41a008(0x1bd)][_0x41a008(0x1f2)]())===null||_0x1158cb===void 0x0?void 0x0:_0x1158cb[_0x41a008(0x21b)](!![]),_0x583ab0;}[a37_0x2d6008(0x1fb)](){const _0x9b85d5=a37_0x2d6008,_0x3c7049=this['abortDrawing_']();_0x3c7049&&this[_0x9b85d5(0x1f4)](new DrawEvent(DrawEventType[_0x9b85d5(0x1e8)],_0x3c7049,this[_0x9b85d5(0x20f)]));}[a37_0x2d6008(0x1cf)](_0x3c4e4b){const _0x379b6f=a37_0x2d6008;this['_sketchFeature']=new a37_0x521d95();let _0x922faf=createPlot(this[_0x379b6f(0x1ed)],_0x3c4e4b);if(!_0x922faf)return;this[_0x379b6f(0x1cc)][_0x379b6f(0x217)](_0x922faf);let _0xa09d31=[a37_0x5bf60e[_0x379b6f(0x1d3)],a37_0x5bf60e['Ellipsoid'],a37_0x5bf60e[_0x379b6f(0x1e6)]];if(_0xa09d31['indexOf'](this[_0x379b6f(0x1ed)])>-0x1&&this[_0x379b6f(0x1d7)]){}const _0x1066ee=this[_0x379b6f(0x1bb)]();this[_0x379b6f(0x1cc)]['setStyle'](getStyle(this[_0x379b6f(0x1ed)],this[_0x379b6f(0x1d7)],this[_0x379b6f(0x1bb)]())),this[_0x379b6f(0x1c6)]();}[a37_0x2d6008(0x1c6)](){const _0xa140cc=a37_0x2d6008,_0x40d9ec=this[_0xa140cc(0x1dd)][_0xa140cc(0x1f2)]();_0x40d9ec&&this[_0xa140cc(0x1cc)]&&(_0x40d9ec[_0xa140cc(0x21b)](!![]),_0x40d9ec[_0xa140cc(0x1f3)](this[_0xa140cc(0x1cc)]));}[a37_0x2d6008(0x1fa)](){const _0x2098c9=a37_0x2d6008;if(this['_isStayDraw']){if(this[_0x2098c9(0x20f)]&&this[_0x2098c9(0x20f)][_0x2098c9(0x210)]>0x0){const _0x2ae68e=this['_overlay']['getSource']();_0x2ae68e===null||_0x2ae68e===void 0x0?void 0x0:_0x2ae68e['clear'](!![]),this[_0x2098c9(0x20f)]['pop'](),this[_0x2098c9(0x20f)][_0x2098c9(0x210)]>=this[_0x2098c9(0x213)]&&this[_0x2098c9(0x1cf)](this['_drawingCoordinates']),this[_0x2098c9(0x20f)][_0x2098c9(0x210)]===0x0&&(this[_0x2098c9(0x1c3)]=![]);}}}[a37_0x2d6008(0x202)](_0x489750,_0x51148e){const _0x523351=a37_0x2d6008;var _0x56ab75,_0x12b2d2,_0x1b0311,_0x50407c;if(!this[_0x523351(0x208)])return;const _0x29ac86=this[_0x523351(0x1bd)]['getSource']();_0x29ac86===null||_0x29ac86===void 0x0?void 0x0:_0x29ac86[_0x523351(0x21b)](!![]),(_0x56ab75=this[_0x523351(0x1c0)])===null||_0x56ab75===void 0x0?void 0x0:_0x56ab75[_0x523351(0x217)](new Point(_0x489750)),(_0x1b0311=(_0x12b2d2=this[_0x523351(0x1d9)])===null||_0x12b2d2===void 0x0?void 0x0:_0x12b2d2[_0x523351(0x1e2)]())===null||_0x1b0311===void 0x0?void 0x0:_0x1b0311[_0x523351(0x1ef)](_0x51148e),(_0x50407c=this['_tipFeature'])===null||_0x50407c===void 0x0?void 0x0:_0x50407c[_0x523351(0x21c)](this['_tipStyle']),this[_0x523351(0x1c0)]&&(_0x29ac86===null||_0x29ac86===void 0x0?void 0x0:_0x29ac86['addFeature'](this[_0x523351(0x1c0)]));}}function getDefaultStyleFunction(){const _0x59dc39=createEditingStyle();return function(_0x2e2b82,_0x432700){const _0xb8a2ca=a37_0x3ff7,_0x5f35d4=_0x59dc39[_0x2e2b82['getGeometry']()['getType']()];if(_0x5f35d4&&'Rectangle'==_0x2e2b82[_0xb8a2ca(0x1cb)]()[_0xb8a2ca(0x207)]()){}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38_0x535205=a38_0x2301;function a38_0x2301(_0x3f257e,_0x4a169a){const _0x4924a8=a38_0x4924();return a38_0x2301=function(_0x230129,_0x390d85){_0x230129=_0x230129-0x8f;let _0x28bb69=_0x4924a8[_0x230129];return _0x28bb69;},a38_0x2301(_0x3f257e,_0x4a169a);}function a38_0x4924(){const _0x524af7=['addInteraction','1511482EOVFqj','getInteraction','9inzpLk','7195235nKALiN','get','forEach','has','map','6546RXvrJu','516DQZuSK','interactions','18HFOPnF','422LORBPi','delete','set','52292427lkgjys','6687040ElShsS','removeInteraction','5202808YXsSAf','4312jmBJVO'];a38_0x4924=function(){return _0x524af7;};return a38_0x4924();}(function(_0x399871,_0x80a39d){const _0x285b5a=a38_0x2301,_0x35302e=_0x399871();while(!![]){try{const _0x23a9d3=-parseInt(_0x285b5a(0x9c))/0x1*(parseInt(_0x285b5a(0xa3))/0x2)+parseInt(_0x285b5a(0x98))/0x3*(parseInt(_0x285b5a(0x99))/0x4)+-parseInt(_0x285b5a(0x93))/0x5+-parseInt(_0x285b5a(0x9b))/0x6*(parseInt(_0x285b5a(0x90))/0x7)+-parseInt(_0x285b5a(0xa2))/0x8*(parseInt(_0x285b5a(0x92))/0x9)+-parseInt(_0x285b5a(0xa0))/0xa+parseInt(_0x285b5a(0x9f))/0xb;if(_0x23a9d3===_0x80a39d)break;else _0x35302e['push'](_0x35302e['shift']());}catch(_0x206898){_0x35302e['push'](_0x35302e['shift']());}}}(a38_0x4924,0xafb07));export default class InteractionManager{constructor(_0x3453f0){const _0x2545c6=a38_0x2301;this[_0x2545c6(0x97)]=_0x3453f0,this[_0x2545c6(0x9a)]=new Map();}['addInteraction'](_0x52e304,_0x3fab2e){const _0x133623=a38_0x2301;this[_0x133623(0x9a)][_0x133623(0x96)](_0x52e304)&&this['removeInteraction'](_0x52e304),_0x3fab2e[_0x133623(0x9e)]('name',_0x52e304),this[_0x133623(0x9a)][_0x133623(0x9e)](_0x52e304,_0x3fab2e),this[_0x133623(0x97)][_0x133623(0x8f)](_0x3fab2e);}['removeInteraction'](_0x3ee906){const _0xe849fd=a38_0x2301,_0x954351=this[_0xe849fd(0x9a)][_0xe849fd(0x94)](_0x3ee906);_0x954351&&(this[_0xe849fd(0x97)]['removeInteraction'](_0x954351),this[_0xe849fd(0x9a)][_0xe849fd(0x9d)](_0x3ee906));}['removeAllInteractions'](){const _0x34796a=a38_0x2301;this[_0x34796a(0x9a)][_0x34796a(0x95)](_0x34ddf6=>{const _0x19c180=_0x34796a;this[_0x19c180(0x97)][_0x19c180(0xa1)](_0x34ddf6);}),this[_0x34796a(0x9a)]['clear']();}[a38_0x535205(0x91)](_0x20c61a){const _0x1abec1=a38_0x535205;return this[_0x1abec1(0x9a)][_0x1abec1(0x94)](_0x20c61a);}}
|
package/interaction/Select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a39_0x5b29d7=a39_0x5ebf;(function(_0x1b8ed9,_0x1411aa){const _0x518ab3=a39_0x5ebf,_0x32e6bb=_0x1b8ed9();while(!![]){try{const _0x42d65d=-parseInt(_0x518ab3(0x1c7))/0x1*(parseInt(_0x518ab3(0x1be))/0x2)+-parseInt(_0x518ab3(0x1fd))/0x3*(parseInt(_0x518ab3(0x1bd))/0x4)+-parseInt(_0x518ab3(0x1e9))/0x5*(-parseInt(_0x518ab3(0x205))/0x6)+-parseInt(_0x518ab3(0x1d2))/0x7+-parseInt(_0x518ab3(0x1f0))/0x8*(parseInt(_0x518ab3(0x1da))/0x9)+-parseInt(_0x518ab3(0x1c3))/0xa+parseInt(_0x518ab3(0x1ce))/0xb;if(_0x42d65d===_0x1411aa)break;else _0x32e6bb['push'](_0x32e6bb['shift']());}catch(_0x3192f7){_0x32e6bb['push'](_0x32e6bb['shift']());}}}(a39_0x3a05,0xca0a7));import a39_0x419a7a from'./Draw';function a39_0x5ebf(_0x48d851,_0x50c010){const _0x3a0509=a39_0x3a05();return a39_0x5ebf=function(_0x5ebf5b,_0x5804d2){_0x5ebf5b=_0x5ebf5b-0x1bb;let _0x23bd4d=_0x3a0509[_0x5ebf5b];return _0x23bd4d;},a39_0x5ebf(_0x48d851,_0x50c010);}import a39_0x6cdfcb from'ol/events/Event';import{bufferPixel,intersects}from'../utils/GeometryUtil';import{Point}from'ol/geom';import a39_0x52bf1d from'../feature/FeatureManager';import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';function a39_0x3a05(){const _0x15ea50=['includes','addTempLayer','selectLayers','loadFilter','getSelectedFeatures','selectTempLayer','66978TxybYk','pointFeatures','SELECTED','drawaddpoint','drawend','lineFeatures','selectIndex','Point','4VVeVPe','13010SBvKyw','lineStyle','filter','getMap','seletctEditeFeature','1996870NHBElg','canceLineStyle','push','import','172ErlNDX','MultiPolygon','drawstart','getView','getGeometry','tempLayer','drawmoving','35690083MKeyTt','onInternal','getVisible','selectLayer','5438461mJVUJO','keydown','dispatchEvent','LineString','selectedPointFeatures','layerInfo','getCode','Polygon','11389527MgHdHe','drawabort','url','selectedPolygonFeatures','length','selectedLineFeatures','fromType','allSelectedFeatures','holdCtrl','MultiPoint','keyup','setStyle','coordinates','feature','未获取到几何','730EKPGWK','addEventListener','map','cancePointStyle','layerType','pixelDistance','pointStyle','8kNxpNG','SELECTSTART','draw','getPolygonTempLayer','selectstart','message','polygonFeatures','getSource','selectGeom','cancePolygonStyle','polygonStyle','getPointTempLayer','currentLayers','2057457yCoeRg','getArray'];a39_0x3a05=function(){return _0x15ea50;};return a39_0x3a05();}import{selectFeaturesByGeo}from'../utils/tasks';const SelectEventType={'DRAWSTART':a39_0x5b29d7(0x1c9),'DRAWEND':a39_0x5b29d7(0x209),'DRAWABORT':a39_0x5b29d7(0x1db),'DRAWADDPOINT':a39_0x5b29d7(0x208),'DRAWMOVING':a39_0x5b29d7(0x1cd),'SELECTSTART':a39_0x5b29d7(0x1f4),'SELECTED':'selected'};export class SelectEvent extends a39_0x6cdfcb{constructor(_0x347205,_0x692337,_0x4749d7,_0x1ffd77,_0x15a503,_0x4c3d57,_0x2f1322,_0x555728,_0x589c24){const _0x2cfc72=a39_0x5b29d7;super(_0x347205),this[_0x2cfc72(0x1f8)]=_0x4749d7,this['coordinates']=_0x1ffd77,this[_0x2cfc72(0x206)]=_0x15a503,this[_0x2cfc72(0x20a)]=_0x4c3d57,this[_0x2cfc72(0x1f6)]=_0x2f1322,this['allFeatures']=_0x555728,this['error']=_0x589c24,this[_0x2cfc72(0x1e2)]=_0x692337;}}export default class Select extends a39_0x419a7a{constructor(_0x12261b,_0x222b26){const _0x43cc2e=a39_0x5b29d7;super(_0x12261b,{'tipText':_0x222b26===null||_0x222b26===void 0x0?void 0x0:_0x222b26['tipText']}),this['selectedPointFeatures']=[],this['selectedLineFeatures']=[],this[_0x43cc2e(0x1dd)]=[],this[_0x43cc2e(0x1e1)]=[];const _0xb72551=_0x222b26||{};this[_0x43cc2e(0x200)]=_0xb72551[_0x43cc2e(0x200)]||![],this[_0x43cc2e(0x1fc)]=_0xb72551[_0x43cc2e(0x201)],this[_0x43cc2e(0x204)]=_0xb72551['selectTempLayer']===undefined?!![]:_0xb72551[_0x43cc2e(0x204)],this[_0x43cc2e(0x1ee)]=_0xb72551[_0x43cc2e(0x1ee)]===undefined?0x5:_0xb72551[_0x43cc2e(0x1ee)],this['pointStyle']=_0xb72551[_0x43cc2e(0x1ef)]?getStyle(_0xb72551[_0x43cc2e(0x1ef)]):getSelectPointStyle(),this[_0x43cc2e(0x1ec)]=_0xb72551[_0x43cc2e(0x1ec)]?getStyle(_0xb72551[_0x43cc2e(0x1ec)]):getSelectCancePointStyle(),this[_0x43cc2e(0x1bf)]=_0xb72551[_0x43cc2e(0x1bf)]?getStyle(_0xb72551[_0x43cc2e(0x1bf)]):getSelectLineStyle(),this[_0x43cc2e(0x1c4)]=_0xb72551[_0x43cc2e(0x1c4)]?getStyle(_0xb72551[_0x43cc2e(0x1c4)]):getSelectCancelLineStyle(),this[_0x43cc2e(0x1fa)]=_0xb72551[_0x43cc2e(0x1fa)]?getStyle(_0xb72551['polygonStyle']):getSelectPolygonStyle(),this['cancePolygonStyle']=_0xb72551['cancePolygonStyle']?getStyle(_0xb72551[_0x43cc2e(0x1f9)]):getSelectCancelPolygonStyle(),this[_0x43cc2e(0x1e2)]=![];let _0x553928;this['on']=this[_0x43cc2e(0x1cf)],this['on'](_0x43cc2e(0x209),async _0x1d76ba=>{const _0x5113d7=_0x43cc2e,_0x450239=this[_0x5113d7(0x1e2)],_0xb5a0d7=this[_0x5113d7(0x1c1)]();if(!_0xb5a0d7)return;try{let _0x44bfd9=undefined;if(!_0x1d76ba[_0x5113d7(0x1e7)]&&_0x1d76ba[_0x5113d7(0x1e6)]&&_0x1d76ba[_0x5113d7(0x1e6)]['length']==0x1)_0x44bfd9=bufferPixel(new Point(_0x1d76ba[_0x5113d7(0x1e6)][0x0]),this['pixelDistance'],_0xb5a0d7);else _0x1d76ba[_0x5113d7(0x1e7)]&&(_0x44bfd9=_0x1d76ba[_0x5113d7(0x1e7)][_0x5113d7(0x1cb)]());if(!_0x44bfd9)throw new Error(_0x5113d7(0x1e8));this[_0x5113d7(0x1d4)](new SelectEvent(SelectEventType[_0x5113d7(0x1f1)],_0x450239,_0x44bfd9)),this['selectedPointFeatures']=[],this[_0x5113d7(0x1df)]=[],this['selectedPolygonFeatures']=[],this['allSelectedFeatures']=[],this[_0x5113d7(0x204)]&&this[_0x5113d7(0x1c2)](_0x44bfd9),_0x553928&&clearTimeout(_0x553928),_0x553928=setTimeout(async()=>{const _0xc4bfbb=_0x5113d7;await this['selectLayer'](_0x44bfd9),this[_0xc4bfbb(0x1d4)](new SelectEvent(SelectEventType['SELECTED'],_0x450239,_0x44bfd9,_0x1d76ba[_0xc4bfbb(0x1e6)],this[_0xc4bfbb(0x1d6)],this[_0xc4bfbb(0x1df)],this[_0xc4bfbb(0x1dd)],this[_0xc4bfbb(0x1e1)]));},0x46);}catch(_0x335f0a){this[_0x5113d7(0x1d4)](new SelectEvent(SelectEventType[_0x5113d7(0x207)],_0x450239,undefined,_0x1d76ba[_0x5113d7(0x1e6)],this[_0x5113d7(0x1d6)],this[_0x5113d7(0x1df)],this[_0x5113d7(0x1dd)],this['allSelectedFeatures'],_0x335f0a[_0x5113d7(0x1f5)]));}}),window[_0x43cc2e(0x1ea)](_0x43cc2e(0x1d3),_0x32118f=>{const _0x47f45f=_0x43cc2e;_0x32118f['ctrlKey']&&(this[_0x47f45f(0x1e2)]=!![]);}),window[_0x43cc2e(0x1ea)](_0x43cc2e(0x1e4),_0x26da43=>{this['holdCtrl']=![];});}['setSelectLayers'](_0x33a39c){const _0x22c4ac=a39_0x5b29d7;this[_0x22c4ac(0x1fc)]=_0x33a39c;}async[a39_0x5b29d7(0x1d1)](_0x22656e){const _0x379155=a39_0x5b29d7;var _0x403fdf;const _0x52d0e1=this[_0x379155(0x1c1)]();let _0x51a7f8=[];if(this[_0x379155(0x1fc)]&&this[_0x379155(0x1fc)][_0x379155(0x1de)]>0x0)_0x51a7f8=this[_0x379155(0x1fc)];else{let _0x129b2e=_0x52d0e1['getLayers']()[_0x379155(0x1fe)]();_0x129b2e=_0x129b2e[_0x379155(0x1c0)](_0x5e8bd8=>{const _0x200823=_0x379155,_0x64fa9a=_0x5e8bd8[_0x200823(0x1d7)];if(!_0x64fa9a)return![];return _0x5e8bd8['getVisible']()==!![]&&_0x64fa9a[_0x200823(0x1bb)]!=undefined&&_0x64fa9a[_0x200823(0x1bb)]!='';}),_0x51a7f8=_0x129b2e[_0x379155(0x1eb)](_0x45d76b=>{return _0x45d76b['layerInfo'];});}if(!_0x51a7f8||_0x51a7f8['length']==0x0)return;const _0xfc76dd=_0x52d0e1[_0x379155(0x1ca)]()['getProjection']()[_0x379155(0x1d8)]();for(let _0xaa069e=0x0,_0x4418ab=_0x51a7f8[_0x379155(0x1de)];_0xaa069e<_0x4418ab;_0xaa069e++){const _0x5c3f64=_0x51a7f8[_0xaa069e],_0x3b183c=_0x52d0e1['getLayerById'](_0x5c3f64['id']);if(!_0x3b183c||_0x3b183c[_0x379155(0x1d0)]()==![]||!_0x5c3f64||!_0x5c3f64[_0x379155(0x1dc)]||!_0x5c3f64[_0x379155(0x1bb)])continue;let _0x581b50=await selectFeaturesByGeo(_0x22656e,_0xfc76dd,_0x5c3f64[_0x379155(0x1dc)],_0x5c3f64[_0x379155(0x1bb)],_0x5c3f64[_0x379155(0x1ed)],_0x5c3f64[_0x379155(0x202)]);if(_0x581b50[_0x379155(0x1de)]>0x0){this[_0x379155(0x1e1)][_0x379155(0x1c5)](..._0x581b50);let _0x3dc183=_0x52d0e1[_0x379155(0x1f3)](),_0x3e52fb=this['polygonStyle'];switch((_0x403fdf=_0x581b50[0x0][_0x379155(0x1cb)]())===null||_0x403fdf===void 0x0?void 0x0:_0x403fdf['getType']()){case _0x379155(0x1bc):case _0x379155(0x1e3):this['selectedPointFeatures']['push'](..._0x581b50),_0x3dc183=_0x52d0e1[_0x379155(0x1fb)](),_0x3e52fb=this[_0x379155(0x1ef)];break;case _0x379155(0x1d5):case'MultiLineString':this['selectedLineFeatures'][_0x379155(0x1c5)](..._0x581b50),_0x3dc183=_0x52d0e1['getLineTempLayer'](),_0x3e52fb=this[_0x379155(0x1bf)];break;case _0x379155(0x1d9):case _0x379155(0x1c8):this[_0x379155(0x1dd)][_0x379155(0x1c5)](..._0x581b50),_0x3dc183=_0x52d0e1[_0x379155(0x1f3)](),_0x3e52fb=this[_0x379155(0x1fa)];break;default:break;}const _0x435a53=_0x3dc183[_0x379155(0x1f7)]();_0x435a53&&(_0x581b50['forEach'](_0x389fe5=>{const _0x544c22=_0x379155;_0x389fe5['layerId']=_0x5c3f64['id'],_0x389fe5[_0x544c22(0x1cc)]=_0x3dc183,_0x389fe5[_0x544c22(0x1e5)](_0x3e52fb);}),this[_0x379155(0x200)]&&_0x435a53['addFeatures'](_0x581b50));}}}[a39_0x5b29d7(0x1c2)](_0xa211eb){const _0x331334=a39_0x5b29d7,_0x35b914=new a39_0x52bf1d(this['getMap']()),_0x1fdcd5=_0x35b914[_0x331334(0x203)]();if(!_0x1fdcd5||_0x1fdcd5[_0x331334(0x1de)]===0x0)return[];const _0x3423e5=['copy','cut',_0x331334(0x1f2),_0x331334(0x1c6),'union'],_0x4979bc=[];for(const _0x57c0d8 of _0x1fdcd5){if(!_0x57c0d8||!_0x57c0d8[_0x331334(0x1e0)]||!_0x3423e5[_0x331334(0x1ff)](_0x57c0d8['fromType']))continue;const _0xdd43f9=_0x57c0d8[_0x331334(0x1cb)]();if(!_0xdd43f9)continue;if(!intersects(_0xdd43f9,_0xa211eb))continue;let _0x3b2ede=this[_0x331334(0x1fa)];this[_0x331334(0x1e1)][_0x331334(0x1c5)](_0x57c0d8);switch(_0xdd43f9['getType']()){case _0x331334(0x1bc):case _0x331334(0x1e3):this[_0x331334(0x1d6)][_0x331334(0x1c5)](_0x57c0d8),_0x3b2ede=this['pointStyle'];break;case _0x331334(0x1d5):case'MultiLineString':this[_0x331334(0x1df)][_0x331334(0x1c5)](_0x57c0d8),_0x3b2ede=this[_0x331334(0x1bf)];break;case'Polygon':case _0x331334(0x1c8):this[_0x331334(0x1dd)][_0x331334(0x1c5)](_0x57c0d8),_0x3b2ede=this[_0x331334(0x1fa)];break;default:break;}_0x57c0d8[_0x331334(0x1e5)](_0x3b2ede);}return _0x4979bc;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a40_0x287175=a40_0x1865;(function(_0xa1b485,_0x132a2b){const _0x58b5e2=a40_0x1865,_0x2f12b5=_0xa1b485();while(!![]){try{const _0x41977f=parseInt(_0x58b5e2(0xac))/0x1*(parseInt(_0x58b5e2(0xae))/0x2)+-parseInt(_0x58b5e2(0xc5))/0x3*(-parseInt(_0x58b5e2(0xbe))/0x4)+parseInt(_0x58b5e2(0xb6))/0x5*(-parseInt(_0x58b5e2(0xc2))/0x6)+-parseInt(_0x58b5e2(0xb8))/0x7*(parseInt(_0x58b5e2(0xb3))/0x8)+parseInt(_0x58b5e2(0xc3))/0x9*(-parseInt(_0x58b5e2(0xba))/0xa)+-parseInt(_0x58b5e2(0xb5))/0xb*(parseInt(_0x58b5e2(0xad))/0xc)+parseInt(_0x58b5e2(0xbd))/0xd;if(_0x41977f===_0x132a2b)break;else _0x2f12b5['push'](_0x2f12b5['shift']());}catch(_0x2f9e0a){_0x2f12b5['push'](_0x2f12b5['shift']());}}}(a40_0x48db,0xd0697));import a40_0x145610 from'ol/source/ImageArcGISRest';import{Image as a40_0x5b52ad}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';function a40_0x1865(_0x3985ec,_0x5020b5){const _0x48dbeb=a40_0x48db();return a40_0x1865=function(_0x18659,_0x4dbe7b){_0x18659=_0x18659-0xaa;let _0x444b7e=_0x48dbeb[_0x18659];return _0x444b7e;},a40_0x1865(_0x3985ec,_0x5020b5);}export default class ArcgisDynamicLayer extends a40_0x5b52ad{constructor(_0x1efd46,_0x2ab778){const _0x5c1fd4=a40_0x1865;var _0x2668cc;let _0x5d1f63={'LAYERS':_0x5c1fd4(0xbb)+((_0x2668cc=_0x1efd46[_0x5c1fd4(0xc6)])===null||_0x2668cc===void 0x0?void 0x0:_0x2668cc['join'](','))};if(_0x1efd46['loadFilter']&&_0x1efd46[_0x5c1fd4(0xc9)]){const _0x535d18={};_0x535d18[_0x1efd46[_0x5c1fd4(0xc9)]]=_0x1efd46['loadFilter'],_0x5d1f63['layerDefs']=JSON[_0x5c1fd4(0xb7)](_0x535d18);}const _0x219274=[_0x2ab778['initialExtent'][_0x5c1fd4(0xbc)],_0x2ab778[_0x5c1fd4(0xb9)]['ymin'],_0x2ab778['initialExtent'][_0x5c1fd4(0xb2)],_0x2ab778[_0x5c1fd4(0xb9)][_0x5c1fd4(0xb4)]],_0x5ebebc=[_0x2ab778['fullExtent'][_0x5c1fd4(0xbc)],_0x2ab778[_0x5c1fd4(0xc1)]['ymin'],_0x2ab778[_0x5c1fd4(0xc1)][_0x5c1fd4(0xb2)],_0x2ab778[_0x5c1fd4(0xc1)][_0x5c1fd4(0xb4)]];let _0x1d0bd9;_0x2ab778[_0x5c1fd4(0xaa)][_0x5c1fd4(0xb0)]?_0x1d0bd9=registerProj(_0x5c1fd4(0xbf)+_0x2ab778[_0x5c1fd4(0xaa)][_0x5c1fd4(0xb0)],_0x5ebebc):_0x1d0bd9=registerProj(_0x2ab778[_0x5c1fd4(0xaa)][_0x5c1fd4(0xab)],_0x5ebebc),super({'opacity':_0x1efd46['opacity'],'zIndex':_0x1efd46[_0x5c1fd4(0xc7)],'source':new a40_0x145610({'crossOrigin':'anonymous','projection':_0x1d0bd9,'ratio':0x1,'url':_0x1efd46[_0x5c1fd4(0xaf)],'params':_0x5d1f63})}),this['id']=_0x1efd46['id'],this[_0x5c1fd4(0xb9)]=_0x219274,this[_0x5c1fd4(0xc4)]=_0x1d0bd9,this['layerInfo']=_0x1efd46;}[a40_0x287175(0xb1)](_0x3b0a37){const _0x394efc=a40_0x287175;var _0x483b94;const _0x143d52={};this[_0x394efc(0xc0)]['selectIndex']&&(_0x143d52[this[_0x394efc(0xc0)][_0x394efc(0xc9)]]=_0x3b0a37),(_0x483b94=this[_0x394efc(0xc8)]())===null||_0x483b94===void 0x0?void 0x0:_0x483b94['updateParams']({'layerDefs':JSON[_0x394efc(0xb7)](_0x3b0a37)});}}function a40_0x48db(){const _0x2a0040=['spatialReference','wkt','2fCzdpn','636NFdTlf','158788OOyeOd','url','wkid','setFilter','xmax','928nbIZNi','ymax','62183giesGP','5qHPoNN','stringify','39403TACfYw','initialExtent','1357000TwjvrP','show:','xmin','41257762DDoNqC','4USMkzQ','EPSG:','layerInfo','fullExtent','9073182qHotFM','90eDToeZ','projection','4028889jswXGD','sublayers','mapIndex','getSource','selectIndex'];a40_0x48db=function(){return _0x2a0040;};return a40_0x48db();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41_0x1aae84=a41_0x2521;function a41_0x4829(){const _0x2f54bc=['setStyle','2795639ZAAGsS','mapIndex','loadFilter','type','uniqueValueInfos','spatialReference','11049jBaIpp','then','1=1','stringify',',\x22spatialReference\x22:{\x22wkid\x22:','setFilter','returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry=','push','length','log','wkt','xmax','simple','2466310bnjsUf','url','getCode','value','split','defaultSymbol','94171loSbNL','forEach','find','readFeatures','createArcGISFeatureLayer','ymax','projection','{\x22xmin\x22:','string','f\x20=\x20json\x20&\x20','initialExtent','setLayers','addFeatures','renderer','showIndex','1096782TVeptZ','/query','5vzlNAF','118vOEELf','ymin',',\x22ymin\x22:','xmin','symbol','get','fullExtent','257400arEkry','1380IOpPXh','424xmBBbe','field1','&geometryType=esriGeometryEnvelope&inSR=','120ZjdXJE','layerInfo','uniqueValue','7263EClpVs','drawingInfo'];a41_0x4829=function(){return _0x2f54bc;};return a41_0x4829();}(function(_0x5c358d,_0x3e8aae){const _0x4d410a=a41_0x2521,_0x439a06=_0x5c358d();while(!![]){try{const _0x1a7114=-parseInt(_0x4d410a(0x13f))/0x1*(parseInt(_0x4d410a(0x130))/0x2)+parseInt(_0x4d410a(0x10b))/0x3*(parseInt(_0x4d410a(0x139))/0x4)+-parseInt(_0x4d410a(0x12f))/0x5*(-parseInt(_0x4d410a(0x12d))/0x6)+parseInt(_0x4d410a(0x105))/0x7+-parseInt(_0x4d410a(0x13c))/0x8*(-parseInt(_0x4d410a(0x137))/0x9)+parseInt(_0x4d410a(0x118))/0xa+-parseInt(_0x4d410a(0x11e))/0xb*(parseInt(_0x4d410a(0x138))/0xc);if(_0x1a7114===_0x3e8aae)break;else _0x439a06['push'](_0x439a06['shift']());}catch(_0x3c615a){_0x439a06['push'](_0x439a06['shift']());}}}(a41_0x4829,0x396a3));import a41_0x3dad82 from'ol/format/EsriJSON';import a41_0x46717f from'ol/source/Vector';import{Vector as a41_0x3f737d}from'ol/layer';import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';import{tile as a41_0x18f3db}from'ol/loadingstrategy';import a41_0x4a20f4 from'ol/layer/Group';function a41_0x2521(_0x315a72,_0x454f80){const _0x4829a6=a41_0x4829();return a41_0x2521=function(_0x2521dc,_0x1632a3){_0x2521dc=_0x2521dc-0x103;let _0xcf2a8c=_0x4829a6[_0x2521dc];return _0xcf2a8c;},a41_0x2521(_0x315a72,_0x454f80);}import{registerProj}from'../utils/RegisterProjUtil';import{transformedEsriStyle}from'../utils/StyleUtil';import a41_0x1b581f from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';export default class ArcgisFeatureLayer extends a41_0x4a20f4{constructor(_0xf28e92,_0x4dc46b,_0x272034){const _0x264de4=a41_0x2521,_0x24b4d1=[_0x4dc46b[_0x264de4(0x128)]['xmin'],_0x4dc46b[_0x264de4(0x128)][_0x264de4(0x131)],_0x4dc46b['initialExtent'][_0x264de4(0x116)],_0x4dc46b[_0x264de4(0x128)][_0x264de4(0x123)]],_0x31f5fb=[_0x4dc46b[_0x264de4(0x136)][_0x264de4(0x133)],_0x4dc46b[_0x264de4(0x136)][_0x264de4(0x131)],_0x4dc46b[_0x264de4(0x136)][_0x264de4(0x116)],_0x4dc46b[_0x264de4(0x136)][_0x264de4(0x123)]];let _0x54fad8;_0x4dc46b['spatialReference']['wkid']?_0x54fad8=registerProj('EPSG:'+_0x4dc46b[_0x264de4(0x10a)]['wkid'],_0x31f5fb):_0x54fad8=registerProj(_0x4dc46b[_0x264de4(0x10a)][_0x264de4(0x115)],_0x31f5fb);let _0xd59e70=[];super({'zIndex':_0xf28e92[_0x264de4(0x106)]});for(let _0x5e65eb of _0x272034){let _0x416724=this[_0x264de4(0x122)](_0xf28e92,_0x5e65eb);_0xd59e70[_0x264de4(0x112)](_0x416724);}this[_0x264de4(0x129)](new a41_0x1b581f(_0xd59e70)),this['id']=_0xf28e92['id'],this['initialExtent']=_0x24b4d1,this[_0x264de4(0x124)]=_0x54fad8,this[_0x264de4(0x13d)]=_0xf28e92;}[a41_0x1aae84(0x122)](_0x19af97,_0x16c52d){const _0x53b480=a41_0x1aae84;var _0xb1de27=new a41_0x3dad82();let _0x128ed1=new a41_0x46717f({'loader':function(_0x3a728f,_0xac6311,_0x16b5e3){const _0x8dad53=a41_0x2521;let _0x3f9588=_0x8dad53(0x10d);_0x19af97[_0x8dad53(0x107)]&&(_0x3f9588=typeof _0x19af97[_0x8dad53(0x107)]===_0x8dad53(0x126)?_0x19af97[_0x8dad53(0x107)]:JSON[_0x8dad53(0x10e)](_0x19af97['loadFilter']));let _0x3bbc45=_0x16b5e3[_0x8dad53(0x11a)](),_0x552d3b=_0x3bbc45[_0x8dad53(0x11c)](':')[0x1];var _0x59e6fc=appendPath(_0x16c52d[_0x8dad53(0x119)],_0x8dad53(0x12e));_0x59e6fc=appendParam(_0x59e6fc,_0x8dad53(0x127)+'where='+encodeURIComponent(_0x3f9588)+_0x8dad53(0x111)+encodeURIComponent(_0x8dad53(0x125)+_0x3a728f[0x0]+_0x8dad53(0x132)+_0x3a728f[0x1]+',\x22xmax\x22:'+_0x3a728f[0x2]+',\x22ymax\x22:'+_0x3a728f[0x3]+_0x8dad53(0x10f)+_0x552d3b+'}}')+_0x8dad53(0x13b)+_0x552d3b+'&outFields=*'+'&outSR='+_0x552d3b),jsonp(_0x59e6fc)[_0x8dad53(0x10c)](_0x12a878=>{const _0x414560=_0x8dad53;if(_0x12a878['error'])console[_0x414560(0x114)](_0x12a878);else{var _0x22f5f4=_0xb1de27[_0x414560(0x121)](_0x12a878,{'featureProjection':_0x16b5e3});_0x22f5f4[_0x414560(0x113)]>0x0&&(_0x16c52d['drawingInfo'][_0x414560(0x12b)][_0x414560(0x108)]==_0x414560(0x13e)&&_0x22f5f4[_0x414560(0x11f)](function(_0x32f261){const _0x1bd025=_0x414560;var _0x1fc2c1=_0x32f261[_0x1bd025(0x135)](_0x16c52d[_0x1bd025(0x103)][_0x1bd025(0x12b)][_0x1bd025(0x13a)]);const _0x18f1b1=_0x16c52d[_0x1bd025(0x103)]['renderer'][_0x1bd025(0x109)][_0x1bd025(0x120)](_0x34955b=>_0x34955b[_0x1bd025(0x11b)]==_0x1fc2c1);let _0x25ecc5;_0x18f1b1?_0x25ecc5=transformedEsriStyle(_0x18f1b1[_0x1bd025(0x134)]):_0x25ecc5=transformedEsriStyle(_0x16c52d[_0x1bd025(0x103)][_0x1bd025(0x12b)][_0x1bd025(0x11d)]),_0x32f261['setStyle'](_0x25ecc5);}),_0x128ed1[_0x414560(0x12a)](_0x22f5f4));}});},'strategy':a41_0x18f3db(createXYZ({'tileSize':0x200}))}),_0x1e3b87=new a41_0x3f737d({'source':_0x128ed1,'zIndex':_0x19af97[_0x53b480(0x12c)]});if(_0x16c52d[_0x53b480(0x103)]['renderer'][_0x53b480(0x108)]==_0x53b480(0x117)&&_0x16c52d[_0x53b480(0x103)][_0x53b480(0x12b)]['symbol']){let _0x13f0af=transformedEsriStyle(_0x16c52d[_0x53b480(0x103)][_0x53b480(0x12b)][_0x53b480(0x134)]);_0x1e3b87[_0x53b480(0x104)](_0x13f0af);}return _0x1e3b87;}[a41_0x1aae84(0x110)](_0x40e089){this['layerInfo']['loadFilter']=_0x40e089;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x59ae89,_0x42143e){const _0x25cbd4=a42_0x3e56,_0x16b3be=_0x59ae89();while(!![]){try{const _0x167d40=parseInt(_0x25cbd4(0x178))/0x1*(parseInt(_0x25cbd4(0x176))/0x2)+-parseInt(_0x25cbd4(0x190))/0x3*(-parseInt(_0x25cbd4(0x181))/0x4)+-parseInt(_0x25cbd4(0x182))/0x5*(-parseInt(_0x25cbd4(0x18b))/0x6)+-parseInt(_0x25cbd4(0x187))/0x7+parseInt(_0x25cbd4(0x186))/0x8+-parseInt(_0x25cbd4(0x183))/0x9+parseInt(_0x25cbd4(0x193))/0xa;if(_0x167d40===_0x42143e)break;else _0x16b3be['push'](_0x16b3be['shift']());}catch(_0x3914ba){_0x16b3be['push'](_0x16b3be['shift']());}}}(a42_0x434e,0xc80fa));import a42_0x185fd0 from'ol/layer/Tile';import a42_0x21df88 from'ol/source/XYZ';import a42_0x433e05 from'ol/tilegrid/TileGrid';function a42_0x434e(){const _0x157c36=['396FDsufD','123665GZhmSC','12422214ojDBks','mapIndex','layerInfo','2487040hgbheM','9596643UwRHtz','projection','xmin','initialExtent','36VQdTEj','tileInfo','xmax','wkid','length','32328OIEHeI','rows','anonymous','11324190XuFCPu','resolution','lods','origin','49304czfPIv','ymax','37TigLZm','fullExtent','/tile/{z}/{y}/{x}','url','spatialReference','cols','push','ymin','wkt'];a42_0x434e=function(){return _0x157c36;};return a42_0x434e();}function a42_0x3e56(_0x310da8,_0x32f6dc){const _0x434efc=a42_0x434e();return a42_0x3e56=function(_0x3e56f1,_0x44b6bf){_0x3e56f1=_0x3e56f1-0x175;let _0x165c3b=_0x434efc[_0x3e56f1];return _0x165c3b;},a42_0x3e56(_0x310da8,_0x32f6dc);}import{registerProj}from'../utils/RegisterProjUtil';import{appendPath}from'../utils/UrlUtil';export default class ArcgisTileLayer extends a42_0x185fd0{constructor(_0x45c5b8,_0x39bc9d){const _0xcd34be=a42_0x3e56,_0x123ec7=_0x45c5b8[_0xcd34be(0x17b)]?_0x45c5b8[_0xcd34be(0x17b)]:'',_0x72148c=appendPath(_0x123ec7,_0xcd34be(0x17a)),_0x3c9cb9=[_0x39bc9d[_0xcd34be(0x18a)][_0xcd34be(0x189)],_0x39bc9d[_0xcd34be(0x18a)][_0xcd34be(0x17f)],_0x39bc9d[_0xcd34be(0x18a)]['xmax'],_0x39bc9d['initialExtent']['ymax']],_0x853c05=[_0x39bc9d[_0xcd34be(0x179)][_0xcd34be(0x189)],_0x39bc9d['fullExtent']['ymin'],_0x39bc9d[_0xcd34be(0x179)][_0xcd34be(0x18d)],_0x39bc9d[_0xcd34be(0x179)][_0xcd34be(0x177)]];let _0x4c854f;_0x39bc9d[_0xcd34be(0x17c)][_0xcd34be(0x18e)]?_0x4c854f=registerProj('EPSG:'+_0x39bc9d[_0xcd34be(0x17c)]['wkid'],_0x853c05):_0x4c854f=registerProj(_0x39bc9d[_0xcd34be(0x17c)][_0xcd34be(0x180)],_0x853c05);let _0x5c709c=[];for(let _0x55ce88=0x0,_0x5bcee1=_0x39bc9d[_0xcd34be(0x18c)][_0xcd34be(0x195)][_0xcd34be(0x18f)];_0x55ce88<_0x5bcee1;_0x55ce88++){_0x5c709c[_0xcd34be(0x17e)](_0x39bc9d[_0xcd34be(0x18c)][_0xcd34be(0x195)][_0x55ce88][_0xcd34be(0x194)]);}super({'opacity':_0x45c5b8['opacity'],'zIndex':_0x45c5b8[_0xcd34be(0x184)],'maxResolution':_0x5c709c[0x0]*0x2,'source':new a42_0x21df88({'url':_0x72148c,'projection':_0x4c854f,'crossOrigin':_0xcd34be(0x192),'tileGrid':new a42_0x433e05({'extent':_0x853c05,'origin':[_0x39bc9d['tileInfo'][_0xcd34be(0x175)]['x'],_0x39bc9d[_0xcd34be(0x18c)]['origin']['y']],'resolutions':_0x5c709c,'tileSize':[_0x39bc9d[_0xcd34be(0x18c)][_0xcd34be(0x191)],_0x39bc9d[_0xcd34be(0x18c)][_0xcd34be(0x17d)]]})})}),this['id']=_0x45c5b8['id'],this[_0xcd34be(0x18a)]=_0x3c9cb9,this[_0xcd34be(0x188)]=_0x4c854f,this[_0xcd34be(0x185)]=_0x45c5b8;}}
|
package/layers/ArcgisWMSLayer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a43_0x26bc3c=a43_0x1c62;function a43_0x1c62(_0x2f7c45,_0x33dd82){const _0x1f2b66=a43_0x1f2b();return a43_0x1c62=function(_0x1c620d,_0x4e096e){_0x1c620d=_0x1c620d-0x158;let _0x5d264c=_0x1f2b66[_0x1c620d];return _0x5d264c;},a43_0x1c62(_0x2f7c45,_0x33dd82);}(function(_0x29c866,_0x39a800){const _0x290a25=a43_0x1c62,_0x234e6b=_0x29c866();while(!![]){try{const _0x446ca7=-parseInt(_0x290a25(0x15d))/0x1*(-parseInt(_0x290a25(0x15a))/0x2)+parseInt(_0x290a25(0x165))/0x3+-parseInt(_0x290a25(0x16d))/0x4+-parseInt(_0x290a25(0x16a))/0x5*(parseInt(_0x290a25(0x167))/0x6)+-parseInt(_0x290a25(0x16c))/0x7+parseInt(_0x290a25(0x164))/0x8*(-parseInt(_0x290a25(0x159))/0x9)+parseInt(_0x290a25(0x160))/0xa;if(_0x446ca7===_0x39a800)break;else _0x234e6b['push'](_0x234e6b['shift']());}catch(_0xaad853){_0x234e6b['push'](_0x234e6b['shift']());}}}(a43_0x1f2b,0x233fe));import{ImageWMS as a43_0x47879b}from'ol/source';import{Image as a43_0x742de3}from'ol/layer';function a43_0x1f2b(){const _0x571e69=['15TkiMFH','sublayers','updateParams','3165680SHRJkU','refresh','wkid','initExtent','16eYtUqN','35790DBDuAG','url','1182ApmthH','join','opacity','1810WpGBhB','layerInfo','134302hXcnmg','387152syioAe','setFilter','593091ZQshQv','17996DyOuyQ','EPSG:','anonymous'];a43_0x1f2b=function(){return _0x571e69;};return a43_0x1f2b();}import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisWMSLayer extends a43_0x742de3{constructor(_0x5df364,_0x2136e6){const _0x17e2ea=a43_0x1c62;var _0x3a6930;let _0x2649f5=registerProj(_0x17e2ea(0x15b)+_0x2136e6[_0x17e2ea(0x162)],undefined),_0x570ab5={'LAYERS':(_0x3a6930=_0x5df364[_0x17e2ea(0x15e)])===null||_0x3a6930===void 0x0?void 0x0:_0x3a6930[_0x17e2ea(0x168)](','),'VERSION':'1.1.0'};_0x5df364['loadFilter']&&(_0x570ab5['CQL_FILTER']=_0x5df364['loadFilter']),super({'opacity':_0x5df364[_0x17e2ea(0x169)],'zIndex':_0x5df364['mapIndex'],'source':new a43_0x47879b({'crossOrigin':_0x17e2ea(0x15c),'url':_0x5df364[_0x17e2ea(0x166)],'params':_0x570ab5})}),this['id']=_0x5df364['id'],this['initialExtent']=_0x2136e6[_0x17e2ea(0x163)],this['projection']=_0x2649f5,this[_0x17e2ea(0x16b)]=_0x5df364;}[a43_0x26bc3c(0x161)](){}[a43_0x26bc3c(0x158)](_0x17abaf){const _0x3f29e0=a43_0x26bc3c;var _0x448d6f;(_0x448d6f=this['getSource']())===null||_0x448d6f===void 0x0?void 0x0:_0x448d6f[_0x3f29e0(0x15f)]({'CQL_FILTER':_0x17abaf});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5b650d,_0x338c5c){const _0x456fb9=a44_0x3cf2,_0x39eda6=_0x5b650d();while(!![]){try{const _0x294310=-parseInt(_0x456fb9(0x1df))/0x1+parseInt(_0x456fb9(0x1cd))/0x2+-parseInt(_0x456fb9(0x1e5))/0x3+parseInt(_0x456fb9(0x1d5))/0x4*(parseInt(_0x456fb9(0x1cb))/0x5)+parseInt(_0x456fb9(0x1d4))/0x6*(parseInt(_0x456fb9(0x1d1))/0x7)+parseInt(_0x456fb9(0x1dc))/0x8+-parseInt(_0x456fb9(0x1cf))/0x9;if(_0x294310===_0x338c5c)break;else _0x39eda6['push'](_0x39eda6['shift']());}catch(_0x4338fa){_0x39eda6['push'](_0x39eda6['shift']());}}}(a44_0xd5a8,0xb23e0));import a44_0x2482bc from'ol/layer/Tile';function a44_0xd5a8(){const _0xd3e2e6=['101392ZrPoyJ','token','url','tileGrid','wkid','src','tileMatrixSet','9999104XchxQD','?http','getResolutions','871367OQipFZ','value','sublayers','layer','layerInfo','mapIndex','2730570gXFFde','boundingBoxExtent','length','matrixSet','replace','initialExtent','EPSG:','requestEncoding','105DGvelK','getImage','650814crQxha','indexOf','8654310MMLBRc','opacity','9559368VDVKOG','projection','origins_','6ZfefDd'];a44_0xd5a8=function(){return _0xd3e2e6;};return a44_0xd5a8();}import a44_0x26c1ea,{optionsFromCapabilities}from'ol/source/WMTS.js';import a44_0x5d05f3 from'ol/tilegrid/WMTS';import{registerProj}from'../utils/RegisterProjUtil';function a44_0x3cf2(_0x2231b4,_0x39e3d6){const _0xd5a87b=a44_0xd5a8();return a44_0x3cf2=function(_0x3cf2b5,_0x55ba3d){_0x3cf2b5=_0x3cf2b5-0x1c6;let _0x331b2f=_0xd5a87b[_0x3cf2b5];return _0x331b2f;},a44_0x3cf2(_0x2231b4,_0x39e3d6);}import{addArgument,getUrlParams}from'../utils/UrlUtil';export default class ArcgisWMTSLayer extends a44_0x2482bc{constructor(_0x3fb3a1,_0x489c7f){const _0x125a1e=a44_0x3cf2;var _0x10bbac;let _0x81a423='';_0x3fb3a1['sublayers']&&_0x3fb3a1[_0x125a1e(0x1e1)][_0x125a1e(0x1e7)]>0x0&&(_0x81a423=_0x3fb3a1['sublayers']['join'](','));const _0x481820=_0x125a1e(0x1c9)+_0x489c7f[_0x125a1e(0x1d9)];let _0x39b6f6=registerProj(_0x481820);const _0x1c660d=optionsFromCapabilities(_0x489c7f['sourceXml'],{'layer':(_0x10bbac=_0x3fb3a1['sublayers'])===null||_0x10bbac===void 0x0?void 0x0:_0x10bbac[0x0],'matrixSet':_0x489c7f[_0x125a1e(0x1db)],'format':'image/png'});let _0x3b6748=_0x1c660d[_0x125a1e(0x1d8)][_0x125a1e(0x1d3)][0x0];_0x3b6748[0x0]===0x5a&&_0x3b6748[0x1]===-0xb4&&(_0x3b6748=[_0x3b6748[0x1],_0x3b6748[0x0]]),super({'opacity':_0x3fb3a1[_0x125a1e(0x1d0)],'zIndex':_0x3fb3a1[_0x125a1e(0x1e4)],'source':new a44_0x26c1ea({'urls':_0x1c660d['urls'],'requestEncoding':_0x1c660d[_0x125a1e(0x1ca)],'layer':_0x1c660d[_0x125a1e(0x1e2)],'tileLoadFunction':function(_0x590346,_0x5cb4aa){const _0x9635f2=_0x125a1e,_0x3e3d81=_0x3fb3a1[_0x9635f2(0x1d7)]?_0x3fb3a1[_0x9635f2(0x1d7)]:'';let _0x4b54ed=getUrlParams(_0x3e3d81);if((_0x4b54ed===null||_0x4b54ed===void 0x0?void 0x0:_0x4b54ed[_0x9635f2(0x1e7)])>0x0)for(let _0x413af2 of _0x4b54ed){_0x5cb4aa=addArgument(_0x5cb4aa,_0x413af2['name'],_0x413af2[_0x9635f2(0x1e0)]);}let _0x435317=_0x5cb4aa[_0x9635f2(0x1ce)](_0x9635f2(0x1dd));_0x435317!==-0x1?_0x5cb4aa[_0x9635f2(0x1ce)](_0x9635f2(0x1d6))===-0x1&&_0x5cb4aa['indexOf']('tk')===-0x1?_0x590346[_0x9635f2(0x1cc)]()[_0x9635f2(0x1da)]=_0x5cb4aa[_0x9635f2(0x1c7)]('&','?'):_0x590346[_0x9635f2(0x1cc)]()[_0x9635f2(0x1da)]=_0x5cb4aa:_0x590346[_0x9635f2(0x1cc)]()[_0x9635f2(0x1da)]=_0x5cb4aa;},'matrixSet':_0x1c660d[_0x125a1e(0x1c6)],'format':_0x1c660d['format'],'projection':_0x1c660d[_0x125a1e(0x1d2)],'tileGrid':new a44_0x5d05f3({'origin':_0x3b6748,'resolutions':_0x1c660d[_0x125a1e(0x1d8)][_0x125a1e(0x1de)](),'matrixIds':_0x1c660d[_0x125a1e(0x1d8)]['getMatrixIds'](),'extent':_0x489c7f[_0x125a1e(0x1e6)]}),'style':_0x489c7f['style'],'wrapX':!![]})}),this['id']=_0x3fb3a1['id'],this[_0x125a1e(0x1c8)]=_0x489c7f['boundingBoxExtent'],this['projection']=_0x39b6f6,this[_0x125a1e(0x1e3)]=_0x3fb3a1;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a45_0x3b1e(){const _0x106edb=['mapIndex','origins_','tileMatrixSet','url','getResolutions','EPSG:','7788eIogsi','258jlkZCc','style','3384056GnKEKh','459TLPxZI','{y}','layerInfo','WMTS','opacity','6216231IpWkJs','241736ijOMDj','1.0.0','1045jmHnMK','length','boundingBoxExtent','wkid','initialExtent','210040fGxeDk','{x}','projection','68652uIcTgt','sourceXml',':{z}','sublayers','tileGrid','9109RtmLJD','application/vnd.mapbox-vector-tile','toString','165lfQROG','24ppKNNL'];a45_0x3b1e=function(){return _0x106edb;};return a45_0x3b1e();}(function(_0x21ad1b,_0x380a7e){const _0x566e82=a45_0x1a78,_0x184158=_0x21ad1b();while(!![]){try{const _0x5ba835=parseInt(_0x566e82(0x169))/0x1*(parseInt(_0x566e82(0x151))/0x2)+parseInt(_0x566e82(0x16d))/0x3*(parseInt(_0x566e82(0x15a))/0x4)+parseInt(_0x566e82(0x16c))/0x5*(-parseInt(_0x566e82(0x164))/0x6)+parseInt(_0x566e82(0x159))/0x7+-parseInt(_0x566e82(0x153))/0x8+parseInt(_0x566e82(0x154))/0x9*(-parseInt(_0x566e82(0x161))/0xa)+-parseInt(_0x566e82(0x15c))/0xb*(parseInt(_0x566e82(0x150))/0xc);if(_0x5ba835===_0x380a7e)break;else _0x184158['push'](_0x184158['shift']());}catch(_0x80bbbd){_0x184158['push'](_0x184158['shift']());}}}(a45_0x3b1e,0x95afa));import a45_0x511629 from'ol/layer/VectorTile';import a45_0x4b27b4 from'ol/source/VectorTile';function a45_0x1a78(_0x51ef74,_0xc57e7d){const _0x3b1e45=a45_0x3b1e();return a45_0x1a78=function(_0x1a7863,_0x1a75c9){_0x1a7863=_0x1a7863-0x14d;let _0x1fc5b2=_0x3b1e45[_0x1a7863];return _0x1fc5b2;},a45_0x1a78(_0x51ef74,_0xc57e7d);}import a45_0x6ff717 from'ol/format/MVT';import{registerProj}from'../utils/RegisterProjUtil';import a45_0x2bc487 from'ol/tilegrid/WMTS';import{optionsFromCapabilities}from'ol/source/WMTS';import{addArgument}from'../utils/UrlUtil';export default class GeoserverVectorTileLayer extends a45_0x511629{constructor(_0x4503d2,_0x2414b6){const _0x5a560d=a45_0x1a78;var _0x3187d8;let _0x1b6108=registerProj(_0x5a560d(0x14f)+_0x2414b6[_0x5a560d(0x15f)]);const _0x17b658=optionsFromCapabilities(_0x2414b6[_0x5a560d(0x165)],{'layer':(_0x3187d8=_0x4503d2['sublayers'])===null||_0x3187d8===void 0x0?void 0x0:_0x3187d8[0x0],'matrixSet':_0x2414b6[_0x5a560d(0x170)],'format':'image/png'});let _0x88895e=_0x4503d2[_0x5a560d(0x167)]&&_0x4503d2[_0x5a560d(0x167)][_0x5a560d(0x15d)]>0x0?_0x4503d2[_0x5a560d(0x167)][0x0]:'';const _0x1f5955={'REQUEST':'GetTile','SERVICE':_0x5a560d(0x157),'VERSION':_0x5a560d(0x15b),'LAYER':_0x88895e,'STYLE':_0x2414b6[_0x5a560d(0x152)][_0x5a560d(0x16b)](),'TILEMATRIX':_0x2414b6['tileMatrixSet']+_0x5a560d(0x166),'TILEMATRIXSET':_0x2414b6['tileMatrixSet'][_0x5a560d(0x16b)](),'FORMAT':_0x5a560d(0x16a),'TILECOL':_0x5a560d(0x162),'TILEROW':_0x5a560d(0x155)};let _0x7b10b9=_0x4503d2[_0x5a560d(0x14d)]?_0x4503d2[_0x5a560d(0x14d)]:'';for(const _0x363250 in _0x1f5955){_0x7b10b9=addArgument(_0x7b10b9,_0x363250,_0x1f5955[_0x363250]);}super({'opacity':_0x4503d2[_0x5a560d(0x158)],'zIndex':_0x4503d2[_0x5a560d(0x16e)],'declutter':!![],'source':new a45_0x4b27b4({'projection':_0x5a560d(0x14f)+_0x2414b6[_0x5a560d(0x15f)],'format':new a45_0x6ff717(),'wrapX':!![],'extent':_0x2414b6[_0x5a560d(0x15e)],'tileGrid':new a45_0x2bc487({'tileSize':_0x17b658[_0x5a560d(0x168)]['tileSizes_'][0x0],'origin':_0x17b658[_0x5a560d(0x168)][_0x5a560d(0x16f)][0x0],'resolutions':_0x17b658[_0x5a560d(0x168)][_0x5a560d(0x14e)](),'matrixIds':_0x17b658['tileGrid']['getMatrixIds']()}),'url':_0x7b10b9})}),this['id']=_0x4503d2['id'],this[_0x5a560d(0x160)]=_0x2414b6[_0x5a560d(0x15e)],this[_0x5a560d(0x163)]=_0x1b6108,this[_0x5a560d(0x156)]=_0x4503d2;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a46_0x4e7a22=a46_0x43e5;(function(_0x530231,_0x268ed1){const _0x44a2bc=a46_0x43e5,_0x58c45d=_0x530231();while(!![]){try{const _0x1541aa=parseInt(_0x44a2bc(0x1fb))/0x1+-parseInt(_0x44a2bc(0x1da))/0x2*(-parseInt(_0x44a2bc(0x1d2))/0x3)+-parseInt(_0x44a2bc(0x1ff))/0x4*(parseInt(_0x44a2bc(0x1e6))/0x5)+parseInt(_0x44a2bc(0x1eb))/0x6*(parseInt(_0x44a2bc(0x1f4))/0x7)+-parseInt(_0x44a2bc(0x1fe))/0x8*(-parseInt(_0x44a2bc(0x1df))/0x9)+parseInt(_0x44a2bc(0x202))/0xa+-parseInt(_0x44a2bc(0x1de))/0xb*(parseInt(_0x44a2bc(0x1dd))/0xc);if(_0x1541aa===_0x268ed1)break;else _0x58c45d['push'](_0x58c45d['shift']());}catch(_0x3e9ae4){_0x58c45d['push'](_0x58c45d['shift']());}}}(a46_0x1203,0x19a1b));import a46_0x4585af from'ol/source/Vector';import a46_0x3f0334 from'ol/format/GeoJSON';import{Vector as a46_0x3a5a83}from'ol/layer';function a46_0x1203(){const _0x4de790=['toLowerCase','serializeToString','mapIndex','41882fSEwGH','lessThan','and','2090412EFbVmO','33fiHwSJ','1049562fwOTeW','between','apply','notEqualTo','layerInfo','lessThanOrEqualTo','!==','208740FYJMPs','POST','param','wkid','readFeatures','629478vqjqNA','EPSG:','filter','catch','getSource','getCode','push','layerFields','fieldType','7LJEvQR','writeGetFeature','length','projection','url','addFeatures','string','160048eRWvcs','read','initialExtent','8iakvia','12EtLAFV','greaterThanOrEqualTo','json','1618450uHUhmZ','then','parseFilter','param字段不存在','30wYbMeI','not','initExtent','type','type字段不存在'];a46_0x1203=function(){return _0x4de790;};return a46_0x1203();}import a46_0x4505fb from'ol/format/WFS';function a46_0x43e5(_0x35f19e,_0x149315){const _0x120356=a46_0x1203();return a46_0x43e5=function(_0x43e5bf,_0x220a83){_0x43e5bf=_0x43e5bf-0x1d2;let _0xed069a=_0x120356[_0x43e5bf];return _0xed069a;},a46_0x43e5(_0x35f19e,_0x149315);}import{registerProj}from'../utils/RegisterProjUtil';import{bbox}from'ol/loadingstrategy';import a46_0x1a93f9 from'../utils/format/CQL';import*as a46_0x58e9a9 from'ol/format/filter';export default class GeoserverWFSLayer extends a46_0x3a5a83{constructor(_0x245078,_0x2fe4dc){const _0x3618af=a46_0x43e5;let _0x2792d5=registerProj(_0x3618af(0x1ec)+_0x2fe4dc[_0x3618af(0x1e9)]);const _0x1c3e85=_0x2fe4dc[_0x3618af(0x1f2)]['find'](_0x347b43=>_0x347b43[_0x3618af(0x1f3)]==0x6);super({'zIndex':_0x245078[_0x3618af(0x1d9)],'source':new a46_0x4585af({'format':new a46_0x3f0334(),'loader':(_0x430939,_0x10592e,_0x4ae942,_0x3f543b,_0x4d5972)=>{const _0xda073=_0x3618af;let _0x595c22=_0x245078['loadFilter'],_0x184196={'srsName':_0x4ae942[_0xda073(0x1f0)](),'featureTypes':_0x245078['sublayers'],'bbox':_0x430939,'geometryName':_0x1c3e85?_0x1c3e85['name']:'','outputFormat':'application/json'};_0x595c22&&(typeof _0x595c22===_0xda073(0x1fa)?_0x184196[_0xda073(0x1ed)]=new a46_0x1a93f9()[_0xda073(0x1fc)](_0x595c22):_0x184196['filter']=this['parseFilter'](_0x595c22));var _0x33981e=new a46_0x4505fb()[_0xda073(0x1f5)](_0x184196);let _0x3a7f86=_0x245078[_0xda073(0x1f8)]?_0x245078[_0xda073(0x1f8)]:'';fetch(_0x3a7f86,{'method':_0xda073(0x1e7),'body':new XMLSerializer()[_0xda073(0x1d8)](_0x33981e)})[_0xda073(0x203)](_0x48144c=>{const _0x5392c4=_0xda073;return _0x48144c[_0x5392c4(0x201)]();})[_0xda073(0x203)](_0x201918=>{const _0x2c9008=_0xda073,_0x1332ae=new a46_0x3f0334()[_0x2c9008(0x1ea)](_0x201918);let _0x243f59=this[_0x2c9008(0x1ef)]();_0x243f59&&_0x243f59[_0x2c9008(0x1f9)](_0x1332ae);if(_0x3f543b)_0x3f543b(_0x1332ae);})[_0xda073(0x1ee)](()=>{const _0x2a1245=_0xda073;let _0x3a9a3d=this[_0x2a1245(0x1ef)]();_0x3a9a3d&&_0x3a9a3d['removeLoadedExtent'](_0x430939);if(_0x4d5972)_0x4d5972();});},'strategy':bbox})}),this['id']=_0x245078['id'],this[_0x3618af(0x1fd)]=_0x2fe4dc[_0x3618af(0x1d4)],this[_0x3618af(0x1f7)]=_0x2792d5,this[_0x3618af(0x1e3)]=_0x245078;}[a46_0x4e7a22(0x204)](_0x416c10){const _0x53937e=a46_0x4e7a22;if(!_0x416c10[_0x53937e(0x1d5)]){console['warn'](_0x53937e(0x1d6));return;}if(!_0x416c10[_0x53937e(0x1e8)]){console['warn'](_0x53937e(0x205));return;}let _0x48c070=[];switch(_0x416c10[_0x53937e(0x1d5)][_0x53937e(0x1d7)]()){case _0x53937e(0x1dc):for(let _0x9f4a94=0x0;_0x9f4a94<_0x416c10['param'][_0x53937e(0x1f6)];_0x9f4a94++){let _0x183506=this[_0x53937e(0x204)](_0x416c10[_0x53937e(0x1e8)][_0x9f4a94]);_0x48c070[_0x53937e(0x1f1)](_0x183506);}return a46_0x58e9a9[_0x53937e(0x1dc)][_0x53937e(0x1e1)](null,_0x48c070);case'or':for(let _0x1b75ec=0x0;_0x1b75ec<_0x416c10[_0x53937e(0x1e8)][_0x53937e(0x1f6)];_0x1b75ec++){let _0x9bc8e4=this[_0x53937e(0x204)](_0x416c10[_0x53937e(0x1e8)][_0x1b75ec]);_0x48c070[_0x53937e(0x1f1)](_0x9bc8e4);}return a46_0x58e9a9['or'][_0x53937e(0x1e1)](null,_0x48c070);case _0x53937e(0x1d3):for(let _0x32bf53=0x0;_0x32bf53<_0x416c10[_0x53937e(0x1e8)][_0x53937e(0x1f6)];_0x32bf53++){let _0x51d1fd=this['parseFilter'](_0x416c10[_0x53937e(0x1e8)][_0x32bf53]);_0x48c070[_0x53937e(0x1f1)](_0x51d1fd);}return a46_0x58e9a9[_0x53937e(0x1d3)][_0x53937e(0x1e1)](null,_0x48c070);case'=':return a46_0x58e9a9['equalTo'](_0x416c10[_0x53937e(0x1e8)][0x0],_0x416c10['param'][0x1]);case _0x53937e(0x1e5):return a46_0x58e9a9[_0x53937e(0x1e2)](_0x416c10['param'][0x0],_0x416c10[_0x53937e(0x1e8)][0x1]);case'>':return a46_0x58e9a9['greaterThan'](_0x416c10[_0x53937e(0x1e8)][0x0],_0x416c10['param'][0x1]);case'<':return a46_0x58e9a9[_0x53937e(0x1db)](_0x416c10[_0x53937e(0x1e8)][0x0],_0x416c10[_0x53937e(0x1e8)][0x1]);case'>=':return a46_0x58e9a9[_0x53937e(0x200)](_0x416c10[_0x53937e(0x1e8)][0x0],_0x416c10[_0x53937e(0x1e8)][0x1]);case'<=':return a46_0x58e9a9[_0x53937e(0x1e4)](_0x416c10[_0x53937e(0x1e8)][0x0],_0x416c10[_0x53937e(0x1e8)][0x1]);case'between':return a46_0x58e9a9[_0x53937e(0x1e0)](_0x416c10[_0x53937e(0x1e8)][0x0],_0x416c10[_0x53937e(0x1e8)][0x1],_0x416c10[_0x53937e(0x1e8)][0x2]);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a47_0x1dd4(_0x537176,_0x161d9b){const _0x5e36cf=a47_0x5e36();return a47_0x1dd4=function(_0x1dd4ab,_0x3d4cd7){_0x1dd4ab=_0x1dd4ab-0x1ab;let _0x450750=_0x5e36cf[_0x1dd4ab];return _0x450750;},a47_0x1dd4(_0x537176,_0x161d9b);}const a47_0x514224=a47_0x1dd4;function a47_0x5e36(){const _0x32fd3d=['49512PNmtPG','2926LmiYAs','loadFilter','2186555GGzCav','2fBLBsI','380pUJjgN','sublayers','667590MShQGx','join','416hGbFJY','486898QYMdYC','anonymous','layerInfo','updateParams','3WNXRQQ','EPSG:','wkid','url','CQL_FILTER','setFilter','refresh','initExtent','6QKqENZ','23824tsJqvZ','3039728cnxlXG','268101AkWtIy'];a47_0x5e36=function(){return _0x32fd3d;};return a47_0x5e36();}(function(_0x3a378a,_0x1fac93){const _0x58952d=a47_0x1dd4,_0x370a76=_0x3a378a();while(!![]){try{const _0x531a34=parseInt(_0x58952d(0x1b6))/0x1*(-parseInt(_0x58952d(0x1b0))/0x2)+parseInt(_0x58952d(0x1ba))/0x3*(parseInt(_0x58952d(0x1c4))/0x4)+parseInt(_0x58952d(0x1af))/0x5*(parseInt(_0x58952d(0x1c2))/0x6)+parseInt(_0x58952d(0x1ad))/0x7*(-parseInt(_0x58952d(0x1c3))/0x8)+parseInt(_0x58952d(0x1ab))/0x9*(parseInt(_0x58952d(0x1b1))/0xa)+parseInt(_0x58952d(0x1b3))/0xb+parseInt(_0x58952d(0x1ac))/0xc*(parseInt(_0x58952d(0x1b5))/0xd);if(_0x531a34===_0x1fac93)break;else _0x370a76['push'](_0x370a76['shift']());}catch(_0x22343c){_0x370a76['push'](_0x370a76['shift']());}}}(a47_0x5e36,0xc0ee5));import{ImageWMS as a47_0xba4550}from'ol/source';import{Image as a47_0x47683d}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';export default class GeoserverWMSLayer extends a47_0x47683d{constructor(_0x1d8915,_0x1cb6a8){const _0x5159ac=a47_0x1dd4;var _0x41c392;let _0x19b781=registerProj(_0x5159ac(0x1bb)+_0x1cb6a8[_0x5159ac(0x1bc)]),_0x7dbc14={'LAYERS':(_0x41c392=_0x1d8915[_0x5159ac(0x1b2)])===null||_0x41c392===void 0x0?void 0x0:_0x41c392[_0x5159ac(0x1b4)](','),'VERSION':'1.1.0'};_0x1d8915[_0x5159ac(0x1ae)]&&(_0x7dbc14[_0x5159ac(0x1be)]=_0x1d8915['loadFilter']),super({'opacity':_0x1d8915['opacity'],'zIndex':_0x1d8915['mapIndex'],'source':new a47_0xba4550({'crossOrigin':_0x5159ac(0x1b7),'url':_0x1d8915[_0x5159ac(0x1bd)],'params':_0x7dbc14})}),this['id']=_0x1d8915['id'],this['initialExtent']=_0x1cb6a8[_0x5159ac(0x1c1)],this['projection']=_0x19b781,this[_0x5159ac(0x1b8)]=_0x1d8915;}[a47_0x514224(0x1c0)](){}[a47_0x514224(0x1bf)](_0x5919c5){const _0x54358c=a47_0x514224;var _0x3770eb;(_0x3770eb=this['getSource']())===null||_0x3770eb===void 0x0?void 0x0:_0x3770eb[_0x54358c(0x1b9)]({'CQL_FILTER':_0x5919c5});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a48_0x5110(_0xa3316f,_0x12a775){const _0x5ef6e8=a48_0x5ef6();return a48_0x5110=function(_0x511062,_0x1054f4){_0x511062=_0x511062-0x163;let _0x56af5a=_0x5ef6e8[_0x511062];return _0x56af5a;},a48_0x5110(_0xa3316f,_0x12a775);}(function(_0x4c0ff3,_0x321420){const _0x441c8c=a48_0x5110,_0x15d4b6=_0x4c0ff3();while(!![]){try{const _0x5cd3b1=parseInt(_0x441c8c(0x16d))/0x1*(-parseInt(_0x441c8c(0x179))/0x2)+parseInt(_0x441c8c(0x175))/0x3+-parseInt(_0x441c8c(0x176))/0x4*(parseInt(_0x441c8c(0x16c))/0x5)+parseInt(_0x441c8c(0x16e))/0x6*(-parseInt(_0x441c8c(0x163))/0x7)+parseInt(_0x441c8c(0x177))/0x8*(parseInt(_0x441c8c(0x167))/0x9)+-parseInt(_0x441c8c(0x170))/0xa+parseInt(_0x441c8c(0x16f))/0xb;if(_0x5cd3b1===_0x321420)break;else _0x15d4b6['push'](_0x15d4b6['shift']());}catch(_0x9082f5){_0x15d4b6['push'](_0x15d4b6['shift']());}}}(a48_0x5ef6,0x41df5));import a48_0x52fa79 from'ol/layer/Tile';import a48_0x5510fa,{optionsFromCapabilities}from'ol/source/WMTS.js';import{registerProj}from'../utils/RegisterProjUtil';export default class GeoserverWMTSLayer extends a48_0x52fa79{constructor(_0x43cd81,_0x4365fb){const _0x316d9c=a48_0x5110;var _0x5af925;const _0x3e79d2=_0x316d9c(0x164)+_0x4365fb[_0x316d9c(0x16b)];let _0x1b0a61=registerProj(_0x3e79d2);if(!_0x1b0a61)throw new Error(_0x316d9c(0x174));const _0x5648ce=optionsFromCapabilities(_0x4365fb[_0x316d9c(0x17a)],{'layer':(_0x5af925=_0x43cd81[_0x316d9c(0x169)])===null||_0x5af925===void 0x0?void 0x0:_0x5af925[0x0],'matrixSet':_0x4365fb[_0x316d9c(0x178)],'format':_0x316d9c(0x173)});if(!_0x5648ce)throw new Error(_0x316d9c(0x172));super({'opacity':_0x43cd81[_0x316d9c(0x168)],'zIndex':_0x43cd81[_0x316d9c(0x171)],'source':new a48_0x5510fa(_0x5648ce)}),this['id']=_0x43cd81['id'],this[_0x316d9c(0x16a)]=_0x4365fb[_0x316d9c(0x166)],this['projection']=_0x1b0a61,this[_0x316d9c(0x165)]=_0x43cd81;}}function a48_0x5ef6(){const _0x4e626a=['41992QqoUBB','tileMatrixSet','2jhXJph','sourceXml','1911nJhoUp','EPSG:','layerInfo','boundingBoxExtent','423pGZgjc','opacity','sublayers','initialExtent','wkid','10RrSIWr','526254GDcuZZ','7926giskWv','12846218ofnyAx','3068910RPdZUz','mapIndex','解析元数据失败','image/png','未找到投影信息','1289028nQzGdU','761252bWqtCk'];a48_0x5ef6=function(){return _0x4e626a;};return a48_0x5ef6();}
|