ym-gis-2d 1.0.37 → 1.0.38

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.
Files changed (74) hide show
  1. package/capabilities/index.js +1 -1
  2. package/controls/ControlManager.js +1 -1
  3. package/controls/LegendControl.js +1 -1
  4. package/controls/MousePositionControl.js +1 -1
  5. package/controls/SwipeLayerControl.d.ts +2 -0
  6. package/controls/SwipeLayerControl.d.ts.map +1 -1
  7. package/controls/SwipeLayerControl.js +1 -1
  8. package/controls/SwipeLayerControl.js.map +1 -1
  9. package/conver/kml/geoJSONToKml.js +1 -1
  10. package/conver/kml/index.js +1 -1
  11. package/conver/kml/kmlToGeoJSON.js +1 -1
  12. package/entity/Feature.js +1 -1
  13. package/entity/GeometryType.js +1 -1
  14. package/entity/measure/AreaMeasureUnits.js +1 -1
  15. package/feature/FeatureManager.js +1 -1
  16. package/index.js +1 -1
  17. package/interaction/AreaMeasure.js +1 -1
  18. package/interaction/Difference.js +1 -1
  19. package/interaction/Draw.js +1 -1
  20. package/interaction/InteractionManager.js +1 -1
  21. package/interaction/Modify.js +1 -1
  22. package/interaction/Select.js +1 -1
  23. package/interaction/Split.js +1 -1
  24. package/layers/ArcgisDynamicLayer.js +1 -1
  25. package/layers/ArcgisFeatureLayer.js +1 -1
  26. package/layers/ArcgisTileLayer.js +1 -1
  27. package/layers/ArcgisWMSLayer.js +1 -1
  28. package/layers/ArcgisWMTSLayer.js +1 -1
  29. package/layers/GeoserverVectorTile.js +1 -1
  30. package/layers/GeoserverWFSLayer.js +1 -1
  31. package/layers/GeoserverWMSLayer.js +1 -1
  32. package/layers/GeoserverWMTSLayer.js +1 -1
  33. package/layers/LayerManager.js +1 -1
  34. package/layers/TDTLayer.js +1 -1
  35. package/mapView/Map.js +1 -1
  36. package/mapView/View.js +1 -1
  37. package/package.json +1 -1
  38. package/plot/Plot.js +1 -1
  39. package/plot/geometry/point/Point.js +1 -1
  40. package/plot/geometry/polygon/BasePolygon.js +1 -1
  41. package/plot/geometry/polygon/Circle.js +1 -1
  42. package/plot/geometry/polygon/Polygon.js +1 -1
  43. package/plot/geometry/polygon/RectAngle.js +1 -1
  44. package/plot/geometry/polyline/BaseLine.js +1 -1
  45. package/plot/geometry/polyline/Polyline.js +1 -1
  46. package/style/PointStyleFormat.js +1 -1
  47. package/style/PolygonStyleFormat.js +1 -1
  48. package/style/PolylineStyleFormat.js +1 -1
  49. package/style/StyleManager.js +1 -1
  50. package/style/common.js +1 -1
  51. package/utils/ArrayUtil.js +1 -1
  52. package/utils/AxiosUtil.js +1 -1
  53. package/utils/EsriUtil.js +1 -1
  54. package/utils/GeometryUtil.js +1 -1
  55. package/utils/LayerUtil.js +1 -1
  56. package/utils/RegisterProjUtil.js +1 -1
  57. package/utils/ResolutionUtil.js +1 -1
  58. package/utils/StringUtil.js +1 -1
  59. package/utils/StyleUtil.js +1 -1
  60. package/utils/UrlUtil.js +1 -1
  61. package/utils/XmlUtil.js +1 -1
  62. package/utils/format/CQL.js +1 -1
  63. package/utils/format/IsMatchCql.js +1 -1
  64. package/utils/plug/canvas/ImageCache.js +1 -1
  65. package/utils/plug/canvas/PinBuilder.js +1 -1
  66. package/utils/plug/canvas/PinIcon.js +1 -1
  67. package/utils/plug/canvas/writeTextToCanvas.js +1 -1
  68. package/utils/tasks/esri/Identify.js +1 -1
  69. package/utils/tasks/esri/Query.js +1 -1
  70. package/utils/tasks/esri/Task.js +1 -1
  71. package/utils/tasks/geoserver/QueryTask.js +1 -1
  72. package/utils/tasks/index.js +1 -1
  73. package/ym-gis-2d.es.js +1 -1
  74. package/ym-gis-2d.umd.js +1 -1
@@ -1 +1 @@
1
- const a43_0x31f2fe=a43_0x2af5;(function(_0x10fb7a,_0x3ed318){const _0x2efc79=a43_0x2af5,_0x30dffd=_0x10fb7a();while(!![]){try{const _0x49d442=parseInt(_0x2efc79(0xe8))/0x1+-parseInt(_0x2efc79(0xf5))/0x2*(-parseInt(_0x2efc79(0xf1))/0x3)+-parseInt(_0x2efc79(0xfc))/0x4+-parseInt(_0x2efc79(0x101))/0x5*(parseInt(_0x2efc79(0xfe))/0x6)+parseInt(_0x2efc79(0x105))/0x7*(-parseInt(_0x2efc79(0xeb))/0x8)+parseInt(_0x2efc79(0xe0))/0x9*(parseInt(_0x2efc79(0xf7))/0xa)+parseInt(_0x2efc79(0x107))/0xb;if(_0x49d442===_0x3ed318)break;else _0x30dffd['push'](_0x30dffd['shift']());}catch(_0x3d99ff){_0x30dffd['push'](_0x30dffd['shift']());}}}(a43_0x5b97,0x9e6c5));import a43_0x26e2c7 from'../entity/Feature';import a43_0x34b02e from'ol/layer/Vector';function a43_0x2af5(_0x5d2d7e,_0x30321c){const _0x5b971d=a43_0x5b97();return a43_0x2af5=function(_0x2af555,_0x562806){_0x2af555=_0x2af555-0xda;let _0xdde71d=_0x5b971d[_0x2af555];return _0xdde71d;},a43_0x2af5(_0x5d2d7e,_0x30321c);}import a43_0x4259a2 from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';import a43_0x34fafc from'ol/format/GeoJSON';function a43_0x5b97(){const _0x320bd3=['81kUauJJ','map','getPointTempLayer','indexOf','getFeatures','geometryType','flash_layer','getEditFeatures','626654jRJLCP','length','getTempEditFeatures','88iteJOn','filter','removeLayer','getSource','getLayerById','setVisible','3bkNAot','flashGeometrys','push','get','2145314kJIRqa','getPolygonTempLayer','139310YHiGpg','layerId','currentEditLayer','setStyle','kmlImport','5038868Kncpjs','forEach','2556066hezwRD','removeFeature','layerInfo','5xKYNre','getTempSelectedFeatures','tag','addFeatures','2387lzthPV','getLineTempLayer','5650590CVbRwb','tempLayer','setGeometry','isSelected','getSelectedFeatures','getVisible','clearTempFeatures'];a43_0x5b97=function(){return _0x320bd3;};return a43_0x5b97();}import{getSelectStyle}from'../style/StyleManager';export default class FeatureManager{constructor(_0xb1cb51){const _0x4025fa=a43_0x2af5;this[_0x4025fa(0xe1)]=_0xb1cb51;}[a43_0x31f2fe(0xe7)](_0x590808,_0x3c96ac){const _0x4c3d87=a43_0x31f2fe;if(!this['map'][_0x4c3d87(0xf9)])return;let _0x2633b4;const _0x4fdf9f=this[_0x4c3d87(0xe1)][_0x4c3d87(0xef)](this[_0x4c3d87(0xe1)][_0x4c3d87(0xf9)]['id']);if(!_0x4fdf9f||!_0x4fdf9f['layerInfo'])return;switch(_0x4fdf9f[_0x4c3d87(0x100)][_0x4c3d87(0xe5)]){case 0x1:_0x2633b4=this['getTempEditFeatures'](this[_0x4c3d87(0xe1)][_0x4c3d87(0xe2)](),this['map'][_0x4c3d87(0xf9)]['id'],_0x590808,_0x3c96ac);break;case 0x2:_0x2633b4=this[_0x4c3d87(0xea)](this[_0x4c3d87(0xe1)][_0x4c3d87(0x106)](),this[_0x4c3d87(0xe1)]['currentEditLayer']['id'],_0x590808,_0x3c96ac);break;case 0x3:_0x2633b4=this[_0x4c3d87(0xea)](this[_0x4c3d87(0xe1)][_0x4c3d87(0xf6)](),this[_0x4c3d87(0xe1)]['currentEditLayer']['id'],_0x590808,_0x3c96ac);break;default:break;}return _0x2633b4;}[a43_0x31f2fe(0xdd)](_0x5b4582,_0x3b12ee){const _0x520609=a43_0x31f2fe;if(_0x5b4582){const _0x5a2d5b=this['map'][_0x520609(0xef)](_0x5b4582);if(!_0x5a2d5b||!_0x5a2d5b[_0x520609(0x100)])return;let _0xd39a6d;switch(_0x5a2d5b[_0x520609(0x100)][_0x520609(0xe5)]){case 0x1:_0xd39a6d=this[_0x520609(0x102)](this[_0x520609(0xe1)][_0x520609(0xe2)](),_0x5b4582,_0x3b12ee);break;case 0x2:_0xd39a6d=this[_0x520609(0x102)](this['map'][_0x520609(0x106)](),_0x5b4582,_0x3b12ee);break;case 0x3:_0xd39a6d=this[_0x520609(0x102)](this['map'][_0x520609(0xf6)](),_0x5b4582,_0x3b12ee);break;default:break;}return _0xd39a6d;}else{const _0x1e7cda=this[_0x520609(0x102)](this[_0x520609(0xe1)]['getPointTempLayer'](),_0x5b4582,_0x3b12ee),_0x3fbfe0=this[_0x520609(0x102)](this[_0x520609(0xe1)][_0x520609(0x106)](),_0x5b4582,_0x3b12ee),_0x490b6b=this[_0x520609(0x102)](this[_0x520609(0xe1)]['getPolygonTempLayer'](),_0x5b4582,_0x3b12ee);let _0x2e231b=[];return _0x1e7cda&&(_0x2e231b=[..._0x2e231b,..._0x1e7cda]),_0x3fbfe0&&(_0x2e231b=[..._0x2e231b,..._0x3fbfe0]),_0x490b6b&&(_0x2e231b=[..._0x2e231b,..._0x490b6b]),_0x2e231b;}}[a43_0x31f2fe(0x102)](_0x4530f8,_0x369d63,_0x24f4ea){const _0x3b75e2=a43_0x31f2fe;var _0x2f1b5e;let _0x5cd42c=(_0x2f1b5e=_0x4530f8[_0x3b75e2(0xee)]())===null||_0x2f1b5e===void 0x0?void 0x0:_0x2f1b5e[_0x3b75e2(0xe4)]();if(!_0x5cd42c)return;_0x5cd42c[_0x3b75e2(0xfd)]((_0x675e2c,_0x4eedf9,_0x3b0d3c)=>{const _0x4a0f0e=_0x3b75e2;_0x675e2c[_0x4a0f0e(0xda)]=_0x4530f8;});_0x24f4ea!=undefined&&(_0x5cd42c=_0x5cd42c[_0x3b75e2(0xec)](_0x19f220=>_0x19f220[_0x3b75e2(0xdc)]==_0x24f4ea));if(_0x369d63)return _0x5cd42c['filter'](_0x12780b=>_0x12780b['layerId']==_0x369d63);return _0x5cd42c;}[a43_0x31f2fe(0xea)](_0x2ee510,_0xdc966,_0x26c097,_0x59774a){const _0x495509=a43_0x31f2fe;var _0x2237f4;let _0x2fbb6b=(_0x2237f4=_0x2ee510['getSource']())===null||_0x2237f4===void 0x0?void 0x0:_0x2237f4[_0x495509(0xe4)]();if(!_0x2fbb6b)return;return _0x2fbb6b[_0x495509(0xfd)]((_0x4f74f7,_0x198ed8,_0x413cc4)=>{_0x4f74f7['tempLayer']=_0x2ee510;}),_0x26c097&&_0x59774a&&_0x59774a[_0x495509(0xe9)]>0x0?_0x2fbb6b=_0x2fbb6b[_0x495509(0xec)](_0x224239=>_0x224239['isSelected']==!![]&&(_0x224239[_0x495509(0xf8)]==_0xdc966&&(_0x224239['get'](_0x26c097)==undefined||_0x59774a[_0x495509(0xe3)](_0x224239[_0x495509(0xf4)](_0x26c097))>-0x1)||_0x224239[_0x495509(0xf8)]==undefined)):_0x2fbb6b=_0x2fbb6b=_0x2fbb6b['filter'](_0x334071=>_0x334071[_0x495509(0xdc)]==!![]&&(_0x334071[_0x495509(0xf8)]==_0xdc966||_0x334071['layerId']==undefined)),_0x2fbb6b;}['flashFeatures'](_0x19d541,_0x22c5e8=0x3){const _0x40a2fa=a43_0x31f2fe;var _0x5f3263;let _0xf29b02=new a43_0x34b02e({'zIndex':0x270f,'source':new a43_0x4259a2()});_0xf29b02['id']=_0x40a2fa(0xe6),this[_0x40a2fa(0xe1)]['addLayer'](_0xf29b02,![]),(_0x5f3263=_0xf29b02['getSource']())===null||_0x5f3263===void 0x0?void 0x0:_0x5f3263[_0x40a2fa(0x104)](_0x19d541);let _0x30393e=0x0,_0x5345f1=setInterval(()=>{const _0x16df1b=_0x40a2fa;if(_0x30393e===_0x22c5e8){_0x5345f1&&clearInterval(_0x5345f1);const _0x31cd72=this[_0x16df1b(0xe1)]['getLayerById'](_0xf29b02['id']);_0x31cd72&&this['map'][_0x16df1b(0xed)](_0x31cd72);return;}if(_0xf29b02[_0x16df1b(0xde)]())_0xf29b02[_0x16df1b(0xf0)](![]);else _0xf29b02[_0x16df1b(0xf0)](!![]);_0x30393e++;},0x190);}[a43_0x31f2fe(0xf2)](_0x452154,_0xfbe83f=0x3){const _0x59757f=a43_0x31f2fe;var _0x192e07;let _0x2fac76=new a43_0x34b02e({'zIndex':0x270f,'source':new a43_0x4259a2()});_0x2fac76['id']=_0x59757f(0xe6),this['map']['addLayer'](_0x2fac76,![]);let _0x4a14eb=[];_0x452154['forEach'](_0x3fca0b=>{const _0x57ca15=_0x59757f;let _0x16a92f=new a43_0x26e2c7();const _0x34f032=getSelectStyle(_0x3fca0b['getType']());_0x16a92f[_0x57ca15(0xfa)](_0x34f032),_0x16a92f[_0x57ca15(0xdb)](_0x3fca0b),_0x4a14eb[_0x57ca15(0xf3)](_0x16a92f);}),(_0x192e07=_0x2fac76[_0x59757f(0xee)]())===null||_0x192e07===void 0x0?void 0x0:_0x192e07['addFeatures'](_0x4a14eb);let _0x56cd13=0x0,_0x53e972=setInterval(()=>{const _0x755214=_0x59757f;if(_0x56cd13===_0xfbe83f){_0x53e972&&clearInterval(_0x53e972);const _0x570e7e=this[_0x755214(0xe1)][_0x755214(0xef)](_0x2fac76['id']);_0x570e7e&&this['map']['removeLayer'](_0x570e7e);return;}if(_0x2fac76[_0x755214(0xde)]())_0x2fac76[_0x755214(0xf0)](![]);else _0x2fac76['setVisible'](!![]);_0x56cd13++;},0x190);}async[a43_0x31f2fe(0xfb)](_0x5d0bcd){let _0x164229=await toGeoJSON(_0x5d0bcd,null);if(!_0x164229)return[];let _0x551e71=[];var _0x2d48a1=new a43_0x34fafc();return _0x164229['features']['forEach'](_0x18330d=>{const _0x240a21=a43_0x2af5;_0x551e71[_0x240a21(0xf3)](_0x2d48a1['readFeature'](_0x18330d,null));}),_0x551e71;}[a43_0x31f2fe(0xdf)](_0x3a6701){const _0xe0623b=a43_0x31f2fe,_0x2d3229=this[_0xe0623b(0xdd)]();if(_0x2d3229&&_0x2d3229[_0xe0623b(0xe9)]>0x0)for(const _0x1c523b of _0x2d3229){if(_0x1c523b&&_0x1c523b['tempLayer']){const _0x3d6df7=_0x1c523b[_0xe0623b(0xda)][_0xe0623b(0xee)]();_0x3d6df7&&(_0x3a6701!=undefined?_0x1c523b[_0xe0623b(0x103)]==_0x3a6701&&_0x3d6df7[_0xe0623b(0xff)](_0x1c523b):_0x3d6df7['removeFeature'](_0x1c523b));}}}}
1
+ function a43_0x319a(_0x450341,_0x154417){const _0x5e9199=a43_0x5e91();return a43_0x319a=function(_0x319a80,_0xd6560f){_0x319a80=_0x319a80-0xbf;let _0x4c37f2=_0x5e9199[_0x319a80];return _0x4c37f2;},a43_0x319a(_0x450341,_0x154417);}const a43_0x1c4e13=a43_0x319a;(function(_0x59ad85,_0x24e981){const _0x1a87fc=a43_0x319a,_0x467b34=_0x59ad85();while(!![]){try{const _0x511fb0=parseInt(_0x1a87fc(0xdc))/0x1*(-parseInt(_0x1a87fc(0xdf))/0x2)+-parseInt(_0x1a87fc(0xc9))/0x3*(parseInt(_0x1a87fc(0xc3))/0x4)+-parseInt(_0x1a87fc(0xc2))/0x5+parseInt(_0x1a87fc(0xe9))/0x6+parseInt(_0x1a87fc(0xdd))/0x7+parseInt(_0x1a87fc(0xc8))/0x8+parseInt(_0x1a87fc(0xcd))/0x9;if(_0x511fb0===_0x24e981)break;else _0x467b34['push'](_0x467b34['shift']());}catch(_0x4402c8){_0x467b34['push'](_0x467b34['shift']());}}}(a43_0x5e91,0x79fee));import a43_0xb88ccf from'../entity/Feature';import a43_0x20e05a from'ol/layer/Vector';import a43_0x4daf81 from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';function a43_0x5e91(){const _0x1b3871=['removeLayer','currentEditLayer','flashGeometrys','geometryType','getSelectedFeatures','addLayer','filter','flash_layer','get','setVisible','isSelected','527179XAhDIl','5428437pkggho','getLineTempLayer','2AwKljT','getTempSelectedFeatures','getFeatures','kmlImport','length','readFeature','forEach','map','setStyle','push','182934RHDnkC','getPolygonTempLayer','getVisible','indexOf','getPointTempLayer','setGeometry','866090SDdGGq','32dASyST','flashFeatures','getSource','getLayerById','addFeatures','2268904JLBCeS','231369QWhlkw','layerInfo','features','layerId','6547338ToSsXw','tempLayer','getTempEditFeatures','removeFeature'];a43_0x5e91=function(){return _0x1b3871;};return a43_0x5e91();}import a43_0x4d13ff from'ol/format/GeoJSON';import{getSelectStyle}from'../style/StyleManager';export default class FeatureManager{constructor(_0x16a9f4){const _0x55c38d=a43_0x319a;this[_0x55c38d(0xe6)]=_0x16a9f4;}['getEditFeatures'](_0x4b31c5,_0x5bd790){const _0x44c1f3=a43_0x319a;if(!this[_0x44c1f3(0xe6)]['currentEditLayer'])return;let _0x3d3a06;const _0x30e84e=this[_0x44c1f3(0xe6)][_0x44c1f3(0xc6)](this[_0x44c1f3(0xe6)][_0x44c1f3(0xd2)]['id']);if(!_0x30e84e||!_0x30e84e['layerInfo'])return;switch(_0x30e84e['layerInfo']['geometryType']){case 0x1:_0x3d3a06=this[_0x44c1f3(0xcf)](this[_0x44c1f3(0xe6)][_0x44c1f3(0xc0)](),this[_0x44c1f3(0xe6)][_0x44c1f3(0xd2)]['id'],_0x4b31c5,_0x5bd790);break;case 0x2:_0x3d3a06=this[_0x44c1f3(0xcf)](this['map'][_0x44c1f3(0xde)](),this['map'][_0x44c1f3(0xd2)]['id'],_0x4b31c5,_0x5bd790);break;case 0x3:_0x3d3a06=this[_0x44c1f3(0xcf)](this[_0x44c1f3(0xe6)][_0x44c1f3(0xea)](),this[_0x44c1f3(0xe6)][_0x44c1f3(0xd2)]['id'],_0x4b31c5,_0x5bd790);break;default:break;}return _0x3d3a06;}[a43_0x1c4e13(0xd5)](_0x420e03,_0x1b6773){const _0x1fa944=a43_0x1c4e13;if(_0x420e03){const _0x197cc9=this[_0x1fa944(0xe6)][_0x1fa944(0xc6)](_0x420e03);if(!_0x197cc9||!_0x197cc9[_0x1fa944(0xca)])return;let _0x160f5c;switch(_0x197cc9[_0x1fa944(0xca)][_0x1fa944(0xd4)]){case 0x1:_0x160f5c=this['getTempSelectedFeatures'](this[_0x1fa944(0xe6)][_0x1fa944(0xc0)](),_0x420e03,_0x1b6773);break;case 0x2:_0x160f5c=this[_0x1fa944(0xe0)](this[_0x1fa944(0xe6)]['getLineTempLayer'](),_0x420e03,_0x1b6773);break;case 0x3:_0x160f5c=this[_0x1fa944(0xe0)](this[_0x1fa944(0xe6)][_0x1fa944(0xea)](),_0x420e03,_0x1b6773);break;default:break;}return _0x160f5c;}else{const _0x5bc695=this[_0x1fa944(0xe0)](this[_0x1fa944(0xe6)][_0x1fa944(0xc0)](),_0x420e03,_0x1b6773),_0x493805=this[_0x1fa944(0xe0)](this[_0x1fa944(0xe6)]['getLineTempLayer'](),_0x420e03,_0x1b6773),_0x3f4d6c=this[_0x1fa944(0xe0)](this[_0x1fa944(0xe6)][_0x1fa944(0xea)](),_0x420e03,_0x1b6773);let _0x3a2926=[];return _0x5bc695&&(_0x3a2926=[..._0x3a2926,..._0x5bc695]),_0x493805&&(_0x3a2926=[..._0x3a2926,..._0x493805]),_0x3f4d6c&&(_0x3a2926=[..._0x3a2926,..._0x3f4d6c]),_0x3a2926;}}['getTempSelectedFeatures'](_0x156147,_0x278115,_0x3ab906){const _0x25bfb8=a43_0x1c4e13;var _0x3f742e;let _0x5444d4=(_0x3f742e=_0x156147[_0x25bfb8(0xc5)]())===null||_0x3f742e===void 0x0?void 0x0:_0x3f742e['getFeatures']();if(!_0x5444d4)return;_0x5444d4[_0x25bfb8(0xe5)]((_0x229e27,_0x573fc8,_0x121aff)=>{const _0x543fd6=_0x25bfb8;_0x229e27[_0x543fd6(0xce)]=_0x156147;});_0x3ab906!=undefined&&(_0x5444d4=_0x5444d4['filter'](_0x2706a0=>_0x2706a0['isSelected']==_0x3ab906));if(_0x278115)return _0x5444d4[_0x25bfb8(0xd7)](_0x102a70=>_0x102a70[_0x25bfb8(0xcc)]==_0x278115);return _0x5444d4;}[a43_0x1c4e13(0xcf)](_0x4fa8c2,_0x1f3142,_0x2c75de,_0x4cb82e){const _0x1b2a71=a43_0x1c4e13;var _0x3955ce;let _0x986d31=(_0x3955ce=_0x4fa8c2['getSource']())===null||_0x3955ce===void 0x0?void 0x0:_0x3955ce[_0x1b2a71(0xe1)]();if(!_0x986d31)return;return _0x986d31[_0x1b2a71(0xe5)]((_0x569033,_0x37f280,_0x45a10f)=>{_0x569033['tempLayer']=_0x4fa8c2;}),_0x2c75de&&_0x4cb82e&&_0x4cb82e[_0x1b2a71(0xe3)]>0x0?_0x986d31=_0x986d31['filter'](_0x3800ff=>_0x3800ff[_0x1b2a71(0xdb)]==!![]&&(_0x3800ff[_0x1b2a71(0xcc)]==_0x1f3142&&(_0x3800ff[_0x1b2a71(0xd9)](_0x2c75de)==undefined||_0x4cb82e[_0x1b2a71(0xbf)](_0x3800ff[_0x1b2a71(0xd9)](_0x2c75de))>-0x1)||_0x3800ff[_0x1b2a71(0xcc)]==undefined)):_0x986d31=_0x986d31=_0x986d31[_0x1b2a71(0xd7)](_0x15783c=>_0x15783c[_0x1b2a71(0xdb)]==!![]&&(_0x15783c[_0x1b2a71(0xcc)]==_0x1f3142||_0x15783c['layerId']==undefined)),_0x986d31;}[a43_0x1c4e13(0xc4)](_0x4b27fc,_0x53bca9=0x3){const _0xa808b6=a43_0x1c4e13;var _0x17612f;let _0x1fcb55=new a43_0x20e05a({'zIndex':0x270f,'source':new a43_0x4daf81()});_0x1fcb55['id']=_0xa808b6(0xd8),this[_0xa808b6(0xe6)]['addLayer'](_0x1fcb55,![]),(_0x17612f=_0x1fcb55[_0xa808b6(0xc5)]())===null||_0x17612f===void 0x0?void 0x0:_0x17612f[_0xa808b6(0xc7)](_0x4b27fc);let _0x455493=0x0,_0xe493c4=setInterval(()=>{const _0x593b71=_0xa808b6;if(_0x455493===_0x53bca9){_0xe493c4&&clearInterval(_0xe493c4);const _0x5f4ce0=this[_0x593b71(0xe6)][_0x593b71(0xc6)](_0x1fcb55['id']);_0x5f4ce0&&this[_0x593b71(0xe6)]['removeLayer'](_0x5f4ce0);return;}if(_0x1fcb55[_0x593b71(0xeb)]())_0x1fcb55['setVisible'](![]);else _0x1fcb55[_0x593b71(0xda)](!![]);_0x455493++;},0x190);}[a43_0x1c4e13(0xd3)](_0x2f8832,_0x292fce=0x3){const _0xc94a08=a43_0x1c4e13;var _0x460bdd;let _0x32a614=new a43_0x20e05a({'zIndex':0x270f,'source':new a43_0x4daf81()});_0x32a614['id']='flash_layer',this[_0xc94a08(0xe6)][_0xc94a08(0xd6)](_0x32a614,![]);let _0x778453=[];_0x2f8832['forEach'](_0x24b756=>{const _0x2f4a1b=_0xc94a08;let _0x5bf1a0=new a43_0xb88ccf();const _0x5689d3=getSelectStyle(_0x24b756['getType']());_0x5bf1a0[_0x2f4a1b(0xe7)](_0x5689d3),_0x5bf1a0[_0x2f4a1b(0xc1)](_0x24b756),_0x778453[_0x2f4a1b(0xe8)](_0x5bf1a0);}),(_0x460bdd=_0x32a614['getSource']())===null||_0x460bdd===void 0x0?void 0x0:_0x460bdd['addFeatures'](_0x778453);let _0x4d019c=0x0,_0x3ef905=setInterval(()=>{const _0x10978f=_0xc94a08;if(_0x4d019c===_0x292fce){_0x3ef905&&clearInterval(_0x3ef905);const _0x3a9b0b=this[_0x10978f(0xe6)][_0x10978f(0xc6)](_0x32a614['id']);_0x3a9b0b&&this[_0x10978f(0xe6)][_0x10978f(0xd1)](_0x3a9b0b);return;}if(_0x32a614[_0x10978f(0xeb)]())_0x32a614[_0x10978f(0xda)](![]);else _0x32a614[_0x10978f(0xda)](!![]);_0x4d019c++;},0x190);}async[a43_0x1c4e13(0xe2)](_0x363e46){const _0x164066=a43_0x1c4e13;let _0x417612=await toGeoJSON(_0x363e46,null);if(!_0x417612)return[];let _0x2c0059=[];var _0x371376=new a43_0x4d13ff();return _0x417612[_0x164066(0xcb)][_0x164066(0xe5)](_0xc19882=>{const _0x53eff4=_0x164066;_0x2c0059['push'](_0x371376[_0x53eff4(0xe4)](_0xc19882,null));}),_0x2c0059;}['clearTempFeatures'](_0x5d4c42){const _0x4ed07f=a43_0x1c4e13,_0x3c2272=this[_0x4ed07f(0xd5)]();if(_0x3c2272&&_0x3c2272[_0x4ed07f(0xe3)]>0x0)for(const _0x5bc461 of _0x3c2272){if(_0x5bc461&&_0x5bc461['tempLayer']){const _0x4f1feb=_0x5bc461[_0x4ed07f(0xce)][_0x4ed07f(0xc5)]();_0x4f1feb&&(_0x5d4c42!=undefined?_0x5bc461['tag']==_0x5d4c42&&_0x4f1feb[_0x4ed07f(0xd0)](_0x5bc461):_0x4f1feb[_0x4ed07f(0xd0)](_0x5bc461));}}}}
package/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x18aeea,_0x14d3c6){var _0x4af86f=a44_0x89cb,_0x4f0df7=_0x18aeea();while(!![]){try{var _0x3dd49d=-parseInt(_0x4af86f(0x11e))/0x1+parseInt(_0x4af86f(0x11b))/0x2*(-parseInt(_0x4af86f(0x11a))/0x3)+-parseInt(_0x4af86f(0x11d))/0x4+parseInt(_0x4af86f(0x11f))/0x5+-parseInt(_0x4af86f(0x119))/0x6*(-parseInt(_0x4af86f(0x121))/0x7)+-parseInt(_0x4af86f(0x120))/0x8*(parseInt(_0x4af86f(0x11c))/0x9)+parseInt(_0x4af86f(0x122))/0xa;if(_0x3dd49d===_0x14d3c6)break;else _0x4f0df7['push'](_0x4f0df7['shift']());}catch(_0x291378){_0x4f0df7['push'](_0x4f0df7['shift']());}}}(a44_0xdb3c,0xd8216));import a44_0x22b2ce from'./mapView/Map';function a44_0x89cb(_0x45e60a,_0x5eb9b0){var _0xdb3c98=a44_0xdb3c();return a44_0x89cb=function(_0x89cb30,_0x21f2e3){_0x89cb30=_0x89cb30-0x119;var _0x2e980e=_0xdb3c98[_0x89cb30];return _0x2e980e;},a44_0x89cb(_0x45e60a,_0x5eb9b0);}function a44_0xdb3c(){var _0x26dcd3=['1464095NWDxcO','728EQGWuJ','7olUGPn','39722220BvcHAq','3235788CxAeth','1632531jBBAbI','6EjKAKR','18045NrZMnV','6782096XtTcoP','408559ItIFAL'];a44_0xdb3c=function(){return _0x26dcd3;};return a44_0xdb3c();}export{a44_0x22b2ce as Map2D};
1
+ (function(_0x70c165,_0x4f9b25){var _0x1aae1e=a44_0x5ede,_0x211064=_0x70c165();while(!![]){try{var _0x591f6a=-parseInt(_0x1aae1e(0x181))/0x1+parseInt(_0x1aae1e(0x17f))/0x2+parseInt(_0x1aae1e(0x17d))/0x3*(-parseInt(_0x1aae1e(0x17a))/0x4)+parseInt(_0x1aae1e(0x17e))/0x5+parseInt(_0x1aae1e(0x17c))/0x6*(parseInt(_0x1aae1e(0x184))/0x7)+parseInt(_0x1aae1e(0x183))/0x8*(parseInt(_0x1aae1e(0x182))/0x9)+-parseInt(_0x1aae1e(0x180))/0xa*(-parseInt(_0x1aae1e(0x17b))/0xb);if(_0x591f6a===_0x4f9b25)break;else _0x211064['push'](_0x211064['shift']());}catch(_0x545327){_0x211064['push'](_0x211064['shift']());}}}(a44_0x5073,0x48965));function a44_0x5ede(_0x4347b3,_0x21bb4c){var _0x5073e4=a44_0x5073();return a44_0x5ede=function(_0x5ede8d,_0x540da0){_0x5ede8d=_0x5ede8d-0x17a;var _0x2e491f=_0x5073e4[_0x5ede8d];return _0x2e491f;},a44_0x5ede(_0x4347b3,_0x21bb4c);}import a44_0x32a68b from'./mapView/Map';function a44_0x5073(){var _0x4a6099=['4626NHTpHQ','2577kLreHs','1116005IeiwFP','701546qFgVSK','5650WosjUO','454988RYuNtI','1127331JNnzJt','8dAYWjH','2345cqwMKy','1908hsjrxo','3982vBGYYq'];a44_0x5073=function(){return _0x4a6099;};return a44_0x5073();}export{a44_0x32a68b as Map2D};
@@ -1 +1 @@
1
- const a45_0x33fd30=a45_0x2db8;(function(_0x6bf4c4,_0x15e494){const _0x419d45=a45_0x2db8,_0x29497c=_0x6bf4c4();while(!![]){try{const _0x2e7213=parseInt(_0x419d45(0xa9))/0x1*(parseInt(_0x419d45(0x9c))/0x2)+parseInt(_0x419d45(0xa1))/0x3*(parseInt(_0x419d45(0xc0))/0x4)+parseInt(_0x419d45(0xbd))/0x5+-parseInt(_0x419d45(0xb7))/0x6*(parseInt(_0x419d45(0xba))/0x7)+parseInt(_0x419d45(0x99))/0x8*(-parseInt(_0x419d45(0xbc))/0x9)+parseInt(_0x419d45(0xc6))/0xa*(-parseInt(_0x419d45(0xb6))/0xb)+parseInt(_0x419d45(0xc4))/0xc*(parseInt(_0x419d45(0xaa))/0xd);if(_0x2e7213===_0x15e494)break;else _0x29497c['push'](_0x29497c['shift']());}catch(_0xc581ea){_0x29497c['push'](_0x29497c['shift']());}}}(a45_0x458c,0xd208c));import a45_0x332465 from'./Draw';import a45_0xbead80 from'ol/events/Event';import{getArea}from'../utils/GeometryUtil';import{getStyle}from'../plot/Plot';import a45_0x5c645c from'../entity/measure/AreaMeasureUnits';function a45_0x2db8(_0x5b014e,_0x176b65){const _0x458c0a=a45_0x458c();return a45_0x2db8=function(_0x2db84f,_0x7872f){_0x2db84f=_0x2db84f-0x93;let _0x44b91e=_0x458c0a[_0x2db84f];return _0x44b91e;},a45_0x2db8(_0x5b014e,_0x176b65);}function a45_0x458c(){const _0x47d365=['平方米','measureMoving','precision','spheroid','toFixed','getMap','square-meters','_style','307813VvvUMp','4500954IPJoRR','coordinates','dispatchEvent','7eNidLl','measure','1026hAWnlc','7560975FntuRP','_features','polygon','4WRpsEA','find','_spheroid','_precision','36936qFtCuw','getText','200rTUoMl','assign','drawAddPoint','forEach','removeFeature','fromEntries','getView','geom','text','setFeatureAreaStyle','getSource','32624myyNsZ','label','getPolygonTempLayer','45462SPRVUW','_showLabel','#f03437','log','setMap','1245231RAEDdI','feature','getGeometry','getProjection','entries','_unit','fromType','measureEnd','31EASeLO','13AfHhPs','showLabel','setStyle','getLength'];a45_0x458c=function(){return _0x47d365;};return a45_0x458c();}import a45_0x1ae92e from'ol/Collection';const defaultOptions={'color':a45_0x33fd30(0x9e),'fill':!![],'opacity':0.6,'outline':!![],'outlineColor':[0xff,0x0,0x0,0x0],'outlineOpacity':0.6,'outlineWidth':0x2,'font':{},'unit':'square-meters','precision':0x2,'showLabel':!![],'spheroid':![]},MeasureEventType={'measureMoving':a45_0x33fd30(0xaf),'measureEnd':a45_0x33fd30(0xa8)};export class AreaMeasureEvent extends a45_0xbead80{constructor(_0x48b0f5,_0x4d8335,_0x2c2bce){const _0x151d38=a45_0x33fd30;super(_0x48b0f5),this['area']=_0x4d8335,this[_0x151d38(0x95)]=_0x2c2bce;}}export default class AreaMeasure extends a45_0x332465{constructor(_0x1f9197){const _0x34e8a5=a45_0x33fd30;_0x1f9197=_0x1f9197||{},console[_0x34e8a5(0x9f)](_0x1f9197);const _0x1c23a1=Object[_0x34e8a5(0xc7)](Object[_0x34e8a5(0xc7)]({},defaultOptions),Object[_0x34e8a5(0x93)](Object[_0x34e8a5(0xa5)](_0x1f9197)['filter'](([_0x230f37,_0x363f9e])=>_0x363f9e!=null)));super('polygon',{'tipText':'点击开始测量,双击结束测量','style':_0x1c23a1,'features':new a45_0x1ae92e()}),this[_0x34e8a5(0xb5)]=_0x1c23a1,this[_0x34e8a5(0xa6)]=_0x1c23a1['unit'],this[_0x34e8a5(0xc3)]=_0x1c23a1[_0x34e8a5(0xb0)],this['_showLabel']=_0x1c23a1[_0x34e8a5(0xab)],this[_0x34e8a5(0xc2)]=_0x1c23a1[_0x34e8a5(0xb1)],this['on']=this['onInternal'],this['on']('drawEnd',_0x19e195=>{const _0x56ba64=_0x34e8a5,_0x4e199a=this['getMap']();if(!_0x4e199a)return;if(_0x19e195['feature']){const _0x49a581=this['setFeatureAreaStyle'](_0x19e195[_0x56ba64(0xa2)],_0x1c23a1);this['dispatchEvent'](new AreaMeasureEvent(MeasureEventType[_0x56ba64(0xa8)],_0x49a581,_0x19e195['feature'][_0x56ba64(0xa3)]()));}this[_0x56ba64(0xb5)][_0x56ba64(0x96)]='';}),this['on'](_0x34e8a5(0xc8),_0x388032=>{const _0x37ee90=_0x34e8a5,_0x191d83=this[_0x37ee90(0xb3)]();if(!_0x191d83)return;if(_0x388032[_0x37ee90(0xa2)]){const _0x1ac956=this[_0x37ee90(0x97)](_0x388032[_0x37ee90(0xa2)],_0x1c23a1);this[_0x37ee90(0xb9)](new AreaMeasureEvent(MeasureEventType[_0x37ee90(0xaf)],_0x1ac956,_0x388032[_0x37ee90(0xa2)]['getGeometry']()));}}),this['on']('drawMoving',_0x226bd9=>{const _0x1119ed=_0x34e8a5,_0x18caf4=this[_0x1119ed(0xb3)]();if(!_0x18caf4)return;if(!_0x226bd9[_0x1119ed(0xb8)]||_0x226bd9[_0x1119ed(0xb8)]['length']<0x2)return;if(_0x226bd9[_0x1119ed(0xa2)]){const _0x323d7d=this['setFeatureAreaStyle'](_0x226bd9[_0x1119ed(0xa2)],_0x1c23a1);this[_0x1119ed(0xb9)](new AreaMeasureEvent(MeasureEventType[_0x1119ed(0xaf)],_0x323d7d,_0x226bd9[_0x1119ed(0xa2)][_0x1119ed(0xa3)]()));}});}[a45_0x33fd30(0xa0)](_0x45e3d0){const _0x329504=a45_0x33fd30;super[_0x329504(0xa0)](_0x45e3d0);if(_0x45e3d0){const _0x1c75c0=_0x45e3d0[_0x329504(0x9b)](),_0x1978ba=_0x1c75c0===null||_0x1c75c0===void 0x0?void 0x0:_0x1c75c0['getSource']();_0x1978ba&&(this['_source']=_0x1978ba);}}[a45_0x33fd30(0xc5)](_0x3be8da){const _0x6ed3bb=a45_0x33fd30,_0x216eb6=a45_0x5c645c[_0x6ed3bb(0xc1)](_0x32ae89=>_0x32ae89['type']===this[_0x6ed3bb(0xa6)]);switch(_0x216eb6===null||_0x216eb6===void 0x0?void 0x0:_0x216eb6['type']){case _0x6ed3bb(0xb4):return''+(_0x3be8da[_0x6ed3bb(0xb2)](this[_0x6ed3bb(0xc3)])+_0x216eb6[_0x6ed3bb(0x9a)]);case'square-kilometers':return''+((_0x3be8da*0.000001)[_0x6ed3bb(0xb2)](this[_0x6ed3bb(0xc3)])+_0x216eb6[_0x6ed3bb(0x9a)]);case'mu':return''+((_0x3be8da*0.0015)[_0x6ed3bb(0xb2)](this[_0x6ed3bb(0xc3)])+_0x216eb6['label']);case'hectare':return''+((_0x3be8da*0.0001)['toFixed'](this[_0x6ed3bb(0xc3)])+_0x216eb6[_0x6ed3bb(0x9a)]);default:return _0x3be8da[_0x6ed3bb(0xb2)](this[_0x6ed3bb(0xc3)])+_0x6ed3bb(0xae);}}['setFeatureAreaStyle'](_0x4059e5,_0x3154db){const _0x472b63=a45_0x33fd30,_0x454752=this['getMap']();if(!_0x454752)return 0x0;const _0x103ead=_0x4059e5[_0x472b63(0xa3)](),_0x18894d=getArea(_0x103ead,_0x454752[_0x472b63(0x94)]()[_0x472b63(0xa4)](),this[_0x472b63(0xc2)]);return _0x4059e5[_0x472b63(0xa7)]=_0x472b63(0xbb),this[_0x472b63(0x9d)]&&(_0x3154db[_0x472b63(0x96)]=this['getText'](_0x18894d),_0x4059e5[_0x472b63(0xac)](getStyle(_0x472b63(0xbf),_0x3154db,_0x454752))),_0x18894d;}['setUnit'](_0x15d9b5){const _0x3d8f9f=a45_0x33fd30;this['_unit']=_0x15d9b5,this[_0x3d8f9f(0xbe)]&&this[_0x3d8f9f(0xbe)][_0x3d8f9f(0xad)]()>0x0&&this[_0x3d8f9f(0xbe)][_0x3d8f9f(0xc9)](_0x387b04=>{const _0x253e46=_0x3d8f9f;this[_0x253e46(0x97)](_0x387b04,this['_style']);});}['clearMeasure'](){const _0x345ef4=a45_0x33fd30,_0x1c275f=this['getMap']();if(!_0x1c275f)return;const _0x3a3ab5=_0x1c275f[_0x345ef4(0x9b)](),_0x291939=_0x3a3ab5===null||_0x3a3ab5===void 0x0?void 0x0:_0x3a3ab5[_0x345ef4(0x98)]();_0x291939&&this[_0x345ef4(0xbe)]&&this[_0x345ef4(0xbe)][_0x345ef4(0xad)]()>0x0&&(this['_features'][_0x345ef4(0xc9)](_0x4421f6=>{const _0x2540f1=_0x345ef4;_0x291939[_0x2540f1(0xca)](_0x4421f6);}),this[_0x345ef4(0xbe)]['clear']());}}
1
+ const a45_0x4400a2=a45_0x3f23;(function(_0x198240,_0x5eb11e){const _0x32378c=a45_0x3f23,_0x2a0ba9=_0x198240();while(!![]){try{const _0x87a062=parseInt(_0x32378c(0x179))/0x1+-parseInt(_0x32378c(0x16c))/0x2+parseInt(_0x32378c(0x163))/0x3+-parseInt(_0x32378c(0x158))/0x4+-parseInt(_0x32378c(0x15a))/0x5+-parseInt(_0x32378c(0x16f))/0x6*(-parseInt(_0x32378c(0x15d))/0x7)+-parseInt(_0x32378c(0x14a))/0x8*(-parseInt(_0x32378c(0x160))/0x9);if(_0x87a062===_0x5eb11e)break;else _0x2a0ba9['push'](_0x2a0ba9['shift']());}catch(_0x2db653){_0x2a0ba9['push'](_0x2a0ba9['shift']());}}}(a45_0x4d35,0xb39b9));import a45_0x1cd834 from'./Draw';import a45_0x5b30e0 from'ol/events/Event';import{getArea}from'../utils/GeometryUtil';import{getStyle}from'../plot/Plot';import a45_0x5408b3 from'../entity/measure/AreaMeasureUnits';import a45_0x289c9f from'ol/Collection';function a45_0x4d35(){const _0x2671e7=['1609332EITESF','spheroid','geom','12nplyQx','label','area','polygon','clear','dispatchEvent','#f03437','setFeatureAreaStyle','drawEnd','_features','21878IQmtuX','getView','square-meters','clearMeasure','measure','getPolygonTempLayer','forEach','152KWKpTJ','measureMoving','getLength','_unit','_spheroid','feature','drawAddPoint','filter','_precision','_showLabel','setMap','fromType','getGeometry','hectare','3684412sxJVFB','getProjection','6606380jKAzSX','measureEnd','平方米','10003CEgcEK','coordinates','drawMoving','1568583JQgskJ','find','getMap','1339587UISadG','fromEntries','getSource','type','toFixed','assign','_style','square-kilometers','entries'];a45_0x4d35=function(){return _0x2671e7;};return a45_0x4d35();}const defaultOptions={'color':a45_0x4400a2(0x175),'fill':!![],'opacity':0.6,'outline':!![],'outlineColor':[0xff,0x0,0x0,0x0],'outlineOpacity':0.6,'outlineWidth':0x2,'font':{},'unit':a45_0x4400a2(0x145),'precision':0x2,'showLabel':!![],'spheroid':![]},MeasureEventType={'measureMoving':a45_0x4400a2(0x14b),'measureEnd':a45_0x4400a2(0x15b)};export class AreaMeasureEvent extends a45_0x5b30e0{constructor(_0x3ee90a,_0x26d17e,_0x181104){const _0x4a4854=a45_0x4400a2;super(_0x3ee90a),this[_0x4a4854(0x171)]=_0x26d17e,this[_0x4a4854(0x16e)]=_0x181104;}}function a45_0x3f23(_0x33f866,_0x149d7a){const _0x4d3534=a45_0x4d35();return a45_0x3f23=function(_0x3f23a1,_0x2990a5){_0x3f23a1=_0x3f23a1-0x145;let _0x2c9849=_0x4d3534[_0x3f23a1];return _0x2c9849;},a45_0x3f23(_0x33f866,_0x149d7a);}export default class AreaMeasure extends a45_0x1cd834{constructor(_0x7d2df2){const _0x50cf3a=a45_0x4400a2;_0x7d2df2=_0x7d2df2||{},console['log'](_0x7d2df2);const _0x4ef1ae=Object[_0x50cf3a(0x168)](Object[_0x50cf3a(0x168)]({},defaultOptions),Object[_0x50cf3a(0x164)](Object[_0x50cf3a(0x16b)](_0x7d2df2)[_0x50cf3a(0x151)](([_0x253c6c,_0x1495a9])=>_0x1495a9!=null)));super('polygon',{'tipText':'点击开始测量,双击结束测量','style':_0x4ef1ae,'features':new a45_0x289c9f()}),this[_0x50cf3a(0x169)]=_0x4ef1ae,this[_0x50cf3a(0x14d)]=_0x4ef1ae['unit'],this[_0x50cf3a(0x152)]=_0x4ef1ae['precision'],this[_0x50cf3a(0x153)]=_0x4ef1ae['showLabel'],this[_0x50cf3a(0x14e)]=_0x4ef1ae[_0x50cf3a(0x16d)],this['on']=this['onInternal'],this['on'](_0x50cf3a(0x177),_0x2f1921=>{const _0x2cc219=_0x50cf3a,_0x503484=this[_0x2cc219(0x162)]();if(!_0x503484)return;if(_0x2f1921[_0x2cc219(0x14f)]){const _0x243f28=this[_0x2cc219(0x176)](_0x2f1921['feature'],_0x4ef1ae);this['dispatchEvent'](new AreaMeasureEvent(MeasureEventType[_0x2cc219(0x15b)],_0x243f28,_0x2f1921['feature'][_0x2cc219(0x156)]()));}this[_0x2cc219(0x169)]['text']='';}),this['on'](_0x50cf3a(0x150),_0xe0ca6f=>{const _0x5aef89=_0x50cf3a,_0x4ae8a8=this['getMap']();if(!_0x4ae8a8)return;if(_0xe0ca6f['feature']){const _0x33ac0a=this['setFeatureAreaStyle'](_0xe0ca6f[_0x5aef89(0x14f)],_0x4ef1ae);this[_0x5aef89(0x174)](new AreaMeasureEvent(MeasureEventType[_0x5aef89(0x14b)],_0x33ac0a,_0xe0ca6f[_0x5aef89(0x14f)][_0x5aef89(0x156)]()));}}),this['on'](_0x50cf3a(0x15f),_0x14d2c7=>{const _0x52971d=_0x50cf3a,_0x25c96a=this[_0x52971d(0x162)]();if(!_0x25c96a)return;if(!_0x14d2c7[_0x52971d(0x15e)]||_0x14d2c7['coordinates']['length']<0x2)return;if(_0x14d2c7[_0x52971d(0x14f)]){const _0x5aaff9=this['setFeatureAreaStyle'](_0x14d2c7[_0x52971d(0x14f)],_0x4ef1ae);this[_0x52971d(0x174)](new AreaMeasureEvent(MeasureEventType['measureMoving'],_0x5aaff9,_0x14d2c7[_0x52971d(0x14f)][_0x52971d(0x156)]()));}});}[a45_0x4400a2(0x154)](_0x1011c8){const _0x3497b4=a45_0x4400a2;super['setMap'](_0x1011c8);if(_0x1011c8){const _0x2541a2=_0x1011c8[_0x3497b4(0x148)](),_0x2e2f93=_0x2541a2===null||_0x2541a2===void 0x0?void 0x0:_0x2541a2[_0x3497b4(0x165)]();_0x2e2f93&&(this['_source']=_0x2e2f93);}}['getText'](_0x48c4a5){const _0x4944ba=a45_0x4400a2,_0x511271=a45_0x5408b3[_0x4944ba(0x161)](_0x423f2d=>_0x423f2d[_0x4944ba(0x166)]===this[_0x4944ba(0x14d)]);switch(_0x511271===null||_0x511271===void 0x0?void 0x0:_0x511271['type']){case _0x4944ba(0x145):return''+(_0x48c4a5[_0x4944ba(0x167)](this[_0x4944ba(0x152)])+_0x511271['label']);case _0x4944ba(0x16a):return''+((_0x48c4a5*0.000001)[_0x4944ba(0x167)](this[_0x4944ba(0x152)])+_0x511271[_0x4944ba(0x170)]);case'mu':return''+((_0x48c4a5*0.0015)['toFixed'](this['_precision'])+_0x511271[_0x4944ba(0x170)]);case _0x4944ba(0x157):return''+((_0x48c4a5*0.0001)[_0x4944ba(0x167)](this[_0x4944ba(0x152)])+_0x511271['label']);default:return _0x48c4a5[_0x4944ba(0x167)](this[_0x4944ba(0x152)])+_0x4944ba(0x15c);}}[a45_0x4400a2(0x176)](_0x34d32a,_0x4689ab){const _0x21d4b8=a45_0x4400a2,_0x5217ba=this[_0x21d4b8(0x162)]();if(!_0x5217ba)return 0x0;const _0x287415=_0x34d32a['getGeometry'](),_0x2f3091=getArea(_0x287415,_0x5217ba[_0x21d4b8(0x17a)]()[_0x21d4b8(0x159)](),this[_0x21d4b8(0x14e)]);return _0x34d32a[_0x21d4b8(0x155)]=_0x21d4b8(0x147),this[_0x21d4b8(0x153)]&&(_0x4689ab['text']=this['getText'](_0x2f3091),_0x34d32a['setStyle'](getStyle(_0x21d4b8(0x172),_0x4689ab,_0x5217ba))),_0x2f3091;}['setUnit'](_0x2a3a5f){const _0x2430a7=a45_0x4400a2;this[_0x2430a7(0x14d)]=_0x2a3a5f,this[_0x2430a7(0x178)]&&this['_features'][_0x2430a7(0x14c)]()>0x0&&this[_0x2430a7(0x178)][_0x2430a7(0x149)](_0x53408e=>{const _0x1b2404=_0x2430a7;this[_0x1b2404(0x176)](_0x53408e,this[_0x1b2404(0x169)]);});}[a45_0x4400a2(0x146)](){const _0x545fc7=a45_0x4400a2,_0x4df08e=this[_0x545fc7(0x162)]();if(!_0x4df08e)return;const _0x5ae524=_0x4df08e['getPolygonTempLayer'](),_0x1b073e=_0x5ae524===null||_0x5ae524===void 0x0?void 0x0:_0x5ae524[_0x545fc7(0x165)]();_0x1b073e&&this['_features']&&this['_features']['getLength']()>0x0&&(this[_0x545fc7(0x178)][_0x545fc7(0x149)](_0x42341e=>{_0x1b073e['removeFeature'](_0x42341e);}),this[_0x545fc7(0x178)][_0x545fc7(0x173)]());}}
@@ -1 +1 @@
1
- const a46_0x168769=a46_0x760d;(function(_0x303422,_0x1e63de){const _0x2d4000=a46_0x760d,_0x3d5b1b=_0x303422();while(!![]){try{const _0x51793c=-parseInt(_0x2d4000(0xaa))/0x1+parseInt(_0x2d4000(0xa8))/0x2*(parseInt(_0x2d4000(0xaf))/0x3)+-parseInt(_0x2d4000(0xb3))/0x4*(-parseInt(_0x2d4000(0xbf))/0x5)+-parseInt(_0x2d4000(0xc4))/0x6+-parseInt(_0x2d4000(0xc6))/0x7*(-parseInt(_0x2d4000(0xb1))/0x8)+-parseInt(_0x2d4000(0xb2))/0x9+parseInt(_0x2d4000(0xba))/0xa;if(_0x51793c===_0x1e63de)break;else _0x3d5b1b['push'](_0x3d5b1b['shift']());}catch(_0x25c930){_0x3d5b1b['push'](_0x3d5b1b['shift']());}}}(a46_0x1887,0xf17b0));function a46_0x1887(){const _0x1be473=['31854oYmQIl','holePolygon','9944PcUFay','11265651QiMKxB','4OCbdCc','holeFeatures','HOLED','splitStart','addTempLayer','rgba(255,\x200,\x200,\x201)','drawEnd','28491070BQbEbo','error','holeStyle','HOLESTART','未获取到挖除的面','4634790edUCKF','dispatchEvent','未获取到地图对象','message','length','2630352dXqcHl','getGeometry','3612oAPgkQ','12qkHVdc','splited','1801926mlFXoA','feature','未获取到擦除要素','features','getMap'];a46_0x1887=function(){return _0x1be473;};return a46_0x1887();}import a46_0x32ae84 from'./Draw';import a46_0x297652 from'ol/events/Event';import{difference}from'../utils/GeometryUtil';const HoleEventType={'HOLESTART':a46_0x168769(0xb6),'HOLED':a46_0x168769(0xa9)};export class HoleEvent extends a46_0x297652{constructor(_0x1ed2c4,_0x4a54ed,_0x5ef510,_0x5988dc){const _0x372801=a46_0x168769;super(_0x1ed2c4),this[_0x372801(0xb0)]=_0x4a54ed,this[_0x372801(0xad)]=_0x5ef510,this[_0x372801(0xbb)]=_0x5988dc;}}function a46_0x760d(_0x263cf8,_0x19fe31){const _0x18879d=a46_0x1887();return a46_0x760d=function(_0x760d7c,_0x390015){_0x760d7c=_0x760d7c-0xa8;let _0x1a9942=_0x18879d[_0x760d7c];return _0x1a9942;},a46_0x760d(_0x263cf8,_0x19fe31);}export default class Difference extends a46_0x32ae84{constructor(_0xc7c100,_0x2b0433){const _0x3d0856=a46_0x168769,_0x3ae64f=(_0x2b0433===null||_0x2b0433===void 0x0?void 0x0:_0x2b0433[_0x3d0856(0xbc)])||{'outlineColor':'rgba(255,\x200,\x200,\x201)','outlineWidth':0x2,'opacity':0.2,'color':_0x3d0856(0xb8)};super('polygon',{'tipText':_0x2b0433===null||_0x2b0433===void 0x0?void 0x0:_0x2b0433['tipText'],'style':_0x3ae64f}),this[_0x3d0856(0xad)]=_0xc7c100;const _0x5509b9=_0x2b0433||{};this[_0x3d0856(0xb7)]=_0x5509b9[_0x3d0856(0xb7)]||![],this['on']=this['onInternal'],this['on'](_0x3d0856(0xb9),async _0x30663c=>{const _0x2c15ea=_0x3d0856;var _0x455e3b;const _0x43d3c7=this[_0x2c15ea(0xae)]();let _0x3bd13c=(_0x455e3b=_0x30663c[_0x2c15ea(0xab)])===null||_0x455e3b===void 0x0?void 0x0:_0x455e3b[_0x2c15ea(0xc5)]();!_0x3bd13c&&this[_0x2c15ea(0xc0)](new HoleEvent(HoleEventType['HOLED'],undefined,undefined,_0x2c15ea(0xbe)));let _0x3d659a=_0x3bd13c;!_0x43d3c7&&this['dispatchEvent'](new HoleEvent(HoleEventType[_0x2c15ea(0xb5)],_0x3d659a,undefined,_0x2c15ea(0xc1)));(!this['features']||this[_0x2c15ea(0xad)][_0x2c15ea(0xc3)]===0x0)&&this[_0x2c15ea(0xc0)](new HoleEvent(HoleEventType[_0x2c15ea(0xb5)],_0x3d659a,undefined,_0x2c15ea(0xac)));try{this['dispatchEvent'](new HoleEvent(HoleEventType[_0x2c15ea(0xbd)],_0x3d659a));const _0x39d56=this[_0x2c15ea(0xb4)](_0x3d659a);this[_0x2c15ea(0xc0)](new HoleEvent(HoleEventType[_0x2c15ea(0xb5)],_0x3d659a,_0x39d56));}catch(_0x36ab96){this[_0x2c15ea(0xc0)](new HoleEvent(HoleEventType[_0x2c15ea(0xb5)],_0x3d659a,undefined,_0x36ab96[_0x2c15ea(0xc2)]));}});}[a46_0x168769(0xb4)](_0x30a7ab){const _0x34b442=a46_0x168769,_0x12fcda=[];for(let _0xa36b19=0x0;_0xa36b19<this[_0x34b442(0xad)][_0x34b442(0xc3)];_0xa36b19++){const _0x3dc1d9=this[_0x34b442(0xad)][_0xa36b19],_0xc8ffc0=_0x3dc1d9[_0x34b442(0xc5)]();if(!_0xc8ffc0)continue;const _0x5db548=difference(_0xc8ffc0,_0x30a7ab);_0x3dc1d9['setGeometry'](_0x5db548),_0x12fcda['push'](_0x3dc1d9);}return _0x12fcda;}['setFeatures'](_0xeae7d6){this['features']=_0xeae7d6;}}
1
+ const a46_0x3cac10=a46_0x5497;function a46_0x5497(_0x21b48c,_0xb8d44d){const _0x562ce0=a46_0x562c();return a46_0x5497=function(_0x54976f,_0x26a6ca){_0x54976f=_0x54976f-0x131;let _0x5d4bb3=_0x562ce0[_0x54976f];return _0x5d4bb3;},a46_0x5497(_0x21b48c,_0xb8d44d);}(function(_0x37839c,_0x1d8b2e){const _0x2ca72a=a46_0x5497,_0x5d3856=_0x37839c();while(!![]){try{const _0x3e6214=parseInt(_0x2ca72a(0x14f))/0x1*(parseInt(_0x2ca72a(0x135))/0x2)+-parseInt(_0x2ca72a(0x13f))/0x3*(-parseInt(_0x2ca72a(0x146))/0x4)+-parseInt(_0x2ca72a(0x14e))/0x5+-parseInt(_0x2ca72a(0x136))/0x6+-parseInt(_0x2ca72a(0x14a))/0x7*(parseInt(_0x2ca72a(0x132))/0x8)+-parseInt(_0x2ca72a(0x14d))/0x9*(-parseInt(_0x2ca72a(0x143))/0xa)+parseInt(_0x2ca72a(0x151))/0xb*(parseInt(_0x2ca72a(0x144))/0xc);if(_0x3e6214===_0x1d8b2e)break;else _0x5d3856['push'](_0x5d3856['shift']());}catch(_0x4c5020){_0x5d3856['push'](_0x5d3856['shift']());}}}(a46_0x562c,0x6c2eb));import a46_0x121654 from'./Draw';import a46_0x394e9e from'ol/events/Event';import{difference}from'../utils/GeometryUtil';const HoleEventType={'HOLESTART':a46_0x3cac10(0x137),'HOLED':a46_0x3cac10(0x13e)};export class HoleEvent extends a46_0x394e9e{constructor(_0x1e0144,_0x383a34,_0x479fa2,_0x509ca0){const _0x3ce53d=a46_0x3cac10;super(_0x1e0144),this[_0x3ce53d(0x149)]=_0x383a34,this[_0x3ce53d(0x145)]=_0x479fa2,this['error']=_0x509ca0;}}export default class Difference extends a46_0x121654{constructor(_0x3006b9,_0x1848ab){const _0x4752a3=a46_0x3cac10,_0x3ae97f=(_0x1848ab===null||_0x1848ab===void 0x0?void 0x0:_0x1848ab['holeStyle'])||{'outlineColor':_0x4752a3(0x139),'outlineWidth':0x2,'opacity':0.2,'color':_0x4752a3(0x139)};super('polygon',{'tipText':_0x1848ab===null||_0x1848ab===void 0x0?void 0x0:_0x1848ab[_0x4752a3(0x13b)],'style':_0x3ae97f}),this[_0x4752a3(0x145)]=_0x3006b9;const _0x1aa6ba=_0x1848ab||{};this[_0x4752a3(0x13a)]=_0x1aa6ba['addTempLayer']||![],this['on']=this[_0x4752a3(0x138)],this['on'](_0x4752a3(0x147),async _0x59deab=>{const _0x361519=_0x4752a3;var _0x2742e8;const _0x5a5273=this[_0x361519(0x134)]();let _0x4125fa=(_0x2742e8=_0x59deab[_0x361519(0x150)])===null||_0x2742e8===void 0x0?void 0x0:_0x2742e8[_0x361519(0x13c)]();!_0x4125fa&&this[_0x361519(0x14b)](new HoleEvent(HoleEventType[_0x361519(0x141)],undefined,undefined,_0x361519(0x14c)));let _0x3c068c=_0x4125fa;!_0x5a5273&&this[_0x361519(0x14b)](new HoleEvent(HoleEventType[_0x361519(0x141)],_0x3c068c,undefined,'未获取到地图对象'));(!this[_0x361519(0x145)]||this[_0x361519(0x145)]['length']===0x0)&&this[_0x361519(0x14b)](new HoleEvent(HoleEventType[_0x361519(0x141)],_0x3c068c,undefined,_0x361519(0x140)));try{this[_0x361519(0x14b)](new HoleEvent(HoleEventType[_0x361519(0x13d)],_0x3c068c));const _0x21e9d1=this[_0x361519(0x142)](_0x3c068c);this[_0x361519(0x14b)](new HoleEvent(HoleEventType['HOLED'],_0x3c068c,_0x21e9d1));}catch(_0x2236fc){this[_0x361519(0x14b)](new HoleEvent(HoleEventType[_0x361519(0x141)],_0x3c068c,undefined,_0x2236fc[_0x361519(0x133)]));}});}[a46_0x3cac10(0x142)](_0x4b9544){const _0x2060c0=a46_0x3cac10,_0x535090=[];for(let _0x1f93e2=0x0;_0x1f93e2<this[_0x2060c0(0x145)][_0x2060c0(0x148)];_0x1f93e2++){const _0x3094e8=this['features'][_0x1f93e2],_0x3ea61f=_0x3094e8[_0x2060c0(0x13c)]();if(!_0x3ea61f)continue;const _0xd75b7c=difference(_0x3ea61f,_0x4b9544);_0x3094e8['setGeometry'](_0xd75b7c),_0x535090[_0x2060c0(0x131)](_0x3094e8);}return _0x535090;}['setFeatures'](_0x1e2697){const _0x23a1d8=a46_0x3cac10;this[_0x23a1d8(0x145)]=_0x1e2697;}}function a46_0x562c(){const _0x505795=['features','948NwtCUi','drawEnd','length','holePolygon','5600035LnGCAE','dispatchEvent','未获取到挖除的面','4903785yVhhqV','3263670AJywrl','4VVaifl','feature','856625txnkel','push','8aOksJn','message','getMap','86110QFiyjL','2213250HXfCnw','splitStart','onInternal','rgba(255,\x200,\x200,\x201)','addTempLayer','tipText','getGeometry','HOLESTART','splited','861DcTqHm','未获取到擦除要素','HOLED','holeFeatures','10OkwAwe','228ffuFcL'];a46_0x562c=function(){return _0x505795;};return a46_0x562c();}
@@ -1 +1 @@
1
- const a47_0x22bff5=a47_0x3177;(function(_0x24595f,_0x14ca92){const _0x485ca3=a47_0x3177,_0x393e23=_0x24595f();while(!![]){try{const _0x17930a=-parseInt(_0x485ca3(0xe9))/0x1+-parseInt(_0x485ca3(0x97))/0x2*(parseInt(_0x485ca3(0xc5))/0x3)+-parseInt(_0x485ca3(0xbd))/0x4+-parseInt(_0x485ca3(0xf8))/0x5+-parseInt(_0x485ca3(0xd2))/0x6*(-parseInt(_0x485ca3(0x95))/0x7)+parseInt(_0x485ca3(0xcd))/0x8+-parseInt(_0x485ca3(0xaf))/0x9*(-parseInt(_0x485ca3(0xe1))/0xa);if(_0x17930a===_0x14ca92)break;else _0x393e23['push'](_0x393e23['shift']());}catch(_0x43e222){_0x393e23['push'](_0x393e23['shift']());}}}(a47_0x141e,0xd5144));import a47_0x2a7d8b from'ol/events/Event';function a47_0x141e(){const _0x48ad41=['getView','wrapX','type','单击增加点,右击删除点双击完成绘制','单击结束绘制,右击删除点','indexOf','stopDown','218682cWNiAM','getGeometry','feature','ACTIVE','setMap','createMultiPointFeature','Ellipsoid','_tipStyle','9337288WCUqxj','projection','atFinish_','button','originalEvent','633228KtXFkX','pointermove','buildDrawingFeature','Rectangle','_features','addPoint','getType','DRAWABORT','tipText','_style','dispatchEvent','length','_source','getText','_drawingCoordinates','310iadPUv','push','fixPoint','rgba(255,\x20255,\x20255,\x201)','DRAWADDPOINT','handleMoveEvent','MAX_VALUE','handleDragEvent','1539799SQwIrg','point','getCode','_tipFeature','_isStayDraw','startDrawing_','features','onceInternal','_minPoints','onInternal','setStyle','sqrt','abortDrawing_','finishDrawing','abortDrawing','1079955mqWUpo','minPoint','updateTip_','_overlay','单击拖动绘制','_sketchFeature','35OmnXry','addFeature','32vUEjWO','addChangeListener','revert','_snapTolerance','_fixPoint','12px\x20Calibre,sans-serif','slice','Ellipse','preventDefault','drawMoving','rgba(0,\x200,\x200,\x200.4)','handleUpEvent','getSource','getProjection','rectangle','updateSketchFeatures_','setGeometry','once','getActive','handleDownEvent','style','Circle','getPixelFromCoordinate','getMap','1085247wgEADC','snapTolerance','clear','_type','DRAWEND','drawStart','coordinates','setText','pixel','_showTip','_tipOverlay','updateState_','DRAWMOVING','coordinate','6552232QjksMN'];a47_0x141e=function(){return _0x48ad41;};return a47_0x141e();}import a47_0x7f166 from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';import a47_0xfd01be from'ol/Feature';import a47_0x39a0e1,{createEditingStyle}from'ol/style/Style';import a47_0x593152 from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a47_0x403fb1 from'ol/style/Text';import a47_0x24562d from'ol/style/Fill';import a47_0x11e524 from'ol/interaction/Property';import a47_0x31c585 from'ol/layer/Vector';import a47_0x404b21 from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a47_0x22bff5(0xb4),'DRAWEND':'drawEnd','DRAWABORT':'drawAbort','DRAWADDPOINT':'drawAddPoint','DRAWMOVING':a47_0x22bff5(0xa0)};function a47_0x3177(_0x5e24fe,_0x4856a5){const _0x141e8c=a47_0x141e();return a47_0x3177=function(_0x3177d5,_0x4c47e1){_0x3177d5=_0x3177d5-0x90;let _0x1e982e=_0x141e8c[_0x3177d5];return _0x1e982e;},a47_0x3177(_0x5e24fe,_0x4856a5);}export class DrawEvent extends a47_0x2a7d8b{constructor(_0x572871,_0x390537,_0x1b3ba2){const _0x27b79c=a47_0x22bff5;super(_0x572871),this[_0x27b79c(0xc7)]=_0x390537,this[_0x27b79c(0xb5)]=_0x1b3ba2;}}export class ShEvent extends a47_0x2a7d8b{constructor(_0x526b60,_0x13042e,_0x54f962,_0x2dfc42,_0x51d0b1){const _0x1fe0ef=a47_0x22bff5;super(_0x526b60),this[_0x1fe0ef(0xce)]=_0x51d0b1,this[_0x1fe0ef(0xc0)]=_0x13042e,this['coordinate']=_0x54f962,this[_0x1fe0ef(0xb5)]=_0x2dfc42;}}export default class Draw extends a47_0x7f166{constructor(_0x7b01ef,_0x33ef47){const _0x64decb=a47_0x22bff5,_0x25b01e=_0x33ef47?_0x33ef47:{};!_0x25b01e[_0x64decb(0xc4)]&&(_0x25b01e[_0x64decb(0xc4)]=![]);super(_0x33ef47),this['on']=this[_0x64decb(0xf2)],this[_0x64decb(0xa8)]=this[_0x64decb(0xf0)],this['un']=this['unInternal'],this[_0x64decb(0xed)]=![],this[_0x64decb(0xb2)]=_0x7b01ef,this[_0x64decb(0xdb)]=_0x33ef47===null||_0x33ef47===void 0x0?void 0x0:_0x33ef47[_0x64decb(0xab)],this[_0x64decb(0xde)]=_0x33ef47===null||_0x33ef47===void 0x0?void 0x0:_0x33ef47['source'],this[_0x64decb(0xd6)]=_0x33ef47===null||_0x33ef47===void 0x0?void 0x0:_0x33ef47[_0x64decb(0xef)];const _0x360204=getPlotCount(this['_type']);this[_0x64decb(0xf1)]=_0x360204[_0x64decb(0x90)],this[_0x64decb(0x9b)]=_0x360204[_0x64decb(0xe3)],this[_0x64decb(0xda)]=_0x33ef47===null||_0x33ef47===void 0x0?void 0x0:_0x33ef47[_0x64decb(0xda)],this[_0x64decb(0xb8)]=(_0x33ef47===null||_0x33ef47===void 0x0?void 0x0:_0x33ef47['showTip'])==![]?![]:!![],this[_0x64decb(0x9a)]=_0x25b01e[_0x64decb(0xb0)]?_0x25b01e['snapTolerance']:0x6,this[_0x64decb(0xec)]=new a47_0xfd01be(),this['_tipStyle']=new a47_0x39a0e1({'text':new a47_0x403fb1({'font':_0x64decb(0x9c),'fill':new a47_0x24562d({'color':_0x64decb(0xe4)}),'backgroundFill':new a47_0x24562d({'color':_0x64decb(0xa1)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':'left','offsetX':0xf})}),this['_drawingCoordinates']=[],this[_0x64decb(0xb9)]=new a47_0x31c585({'source':new a47_0x593152({'useSpatialIndex':![],'wrapX':(_0x33ef47===null||_0x33ef47===void 0x0?void 0x0:_0x33ef47[_0x64decb(0xbf)])?_0x33ef47[_0x64decb(0xbf)]:![]})}),this['_overlay']=new a47_0x31c585({'source':new a47_0x593152({'useSpatialIndex':![],'wrapX':(_0x33ef47===null||_0x33ef47===void 0x0?void 0x0:_0x33ef47[_0x64decb(0xbf)])?_0x33ef47['wrapX']:![]}),'updateWhileInteracting':!![]}),this[_0x64decb(0x98)](a47_0x11e524[_0x64decb(0xc8)],this['updateState_']);}[a47_0x22bff5(0xba)](){const _0x31f835=a47_0x22bff5,_0x151bee=this['getMap'](),_0x2dcdd4=this[_0x31f835(0xa9)]();(!_0x151bee||!_0x2dcdd4)&&this[_0x31f835(0xf7)](),this['_overlay'][_0x31f835(0xc9)](_0x2dcdd4?_0x151bee:null),this[_0x31f835(0xb9)][_0x31f835(0xc9)](_0x2dcdd4?_0x151bee:null);}[a47_0x22bff5(0xc9)](_0x5cad36){const _0x1b481b=a47_0x22bff5;super[_0x1b481b(0xc9)](_0x5cad36),this['updateState_']();}[a47_0x22bff5(0xf3)](_0x2d1c48){this['_style']=_0x2d1c48?_0x2d1c48:{};}['getOverlay'](){const _0xb9bc6e=a47_0x22bff5;return this[_0xb9bc6e(0x92)];}[a47_0x22bff5(0xaa)](_0x49f57b){const _0xb6fef5=a47_0x22bff5;if(_0x49f57b['originalEvent'][_0xb6fef5(0xd0)]===0x2)return _0x49f57b['originalEvent'][_0xb6fef5(0x9f)](),this[_0xb6fef5(0x99)](),this['handleMoveEvent'](_0x49f57b),![];return!![];}[a47_0x22bff5(0xa2)](_0xd3863c){const _0x1e138a=a47_0x22bff5;var _0x580a7c,_0x40c332;if(this[_0x1e138a(0xb2)]==_0x1e138a(0xa5)&&this[_0x1e138a(0xe0)][_0x1e138a(0xdd)]<0x1)return this['dispatchEvent'](new DrawEvent(DrawEventType[_0x1e138a(0xb3)],undefined,[_0xd3863c['coordinate']])),![];if(!this[_0x1e138a(0xed)])this[_0x1e138a(0xee)](_0xd3863c[_0x1e138a(0xbc)]),this[_0x1e138a(0xdc)](new ShEvent(DrawEventType[_0x1e138a(0xe5)],this[_0x1e138a(0xb2)],_0xd3863c[_0x1e138a(0xbc)],this[_0x1e138a(0xe0)],(_0x580a7c=this[_0x1e138a(0xae)]())===null||_0x580a7c===void 0x0?void 0x0:_0x580a7c[_0x1e138a(0xbe)]()[_0x1e138a(0xa4)]()[_0x1e138a(0xeb)]())),this[_0x1e138a(0xb2)]==_0x1e138a(0xea)&&this['finishDrawing']();else{if(this[_0x1e138a(0xe0)]&&this[_0x1e138a(0xe0)]['length']>0x0){if(this[_0x1e138a(0xcf)](_0xd3863c[_0x1e138a(0xb7)]))return this[_0x1e138a(0xf6)](),_0xd3863c[_0x1e138a(0x9f)](),![];let _0x5a7da8=this[_0x1e138a(0xe0)][_0x1e138a(0xdd)]+0x1;_0x5a7da8<=this[_0x1e138a(0x9b)]&&this[_0x1e138a(0xd7)](_0xd3863c[_0x1e138a(0xbc)]),this['dispatchEvent'](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x1e138a(0xb2)],_0xd3863c[_0x1e138a(0xbc)],this[_0x1e138a(0xe0)],(_0x40c332=this['getMap']())===null||_0x40c332===void 0x0?void 0x0:_0x40c332[_0x1e138a(0xbe)]()[_0x1e138a(0xa4)]()[_0x1e138a(0xeb)]())),_0x5a7da8>=this[_0x1e138a(0xf1)]&&this['buildDrawingFeature'](this[_0x1e138a(0xe0)]),_0x5a7da8===this[_0x1e138a(0x9b)]&&this[_0x1e138a(0xf6)]();}}return _0xd3863c[_0x1e138a(0x9f)](),![];}[a47_0x22bff5(0xe8)](_0x1e546f){const _0x14a588=a47_0x22bff5;var _0x219cc9;if(this['_type']==_0x14a588(0xa5)&&_0x1e546f[_0x14a588(0xd1)][_0x14a588(0xc0)]==_0x14a588(0xd3)){if(!this['_isStayDraw']){this[_0x14a588(0xee)](_0x1e546f['coordinate']),this[_0x14a588(0xdc)](new ShEvent(DrawEventType[_0x14a588(0xe5)],this[_0x14a588(0xb2)],_0x1e546f[_0x14a588(0xbc)],this[_0x14a588(0xe0)],(_0x219cc9=this[_0x14a588(0xae)]())===null||_0x219cc9===void 0x0?void 0x0:_0x219cc9[_0x14a588(0xbe)]()['getProjection']()[_0x14a588(0xeb)]()));return;}let _0x570d64=[...this[_0x14a588(0xe0)],_0x1e546f[_0x14a588(0xbc)]];this[_0x14a588(0xd4)](_0x570d64),this[_0x14a588(0xdc)](new DrawEvent(DrawEventType['DRAWMOVING'],this['_sketchFeature'],this[_0x14a588(0xe0)]));}}[a47_0x22bff5(0xe6)](_0x559512){const _0x3f8521=a47_0x22bff5;var _0x41845b,_0x1ab8b4,_0x245076;let _0xd9d1f9='';this[_0x3f8521(0xb2)]==_0x3f8521(0xd3)&&(this['startDrawing_'](_0x559512['coordinate']),this[_0x3f8521(0xdc)](new ShEvent(DrawEventType[_0x3f8521(0xe5)],this[_0x3f8521(0xb2)],_0x559512[_0x3f8521(0xbc)],this['_drawingCoordinates'],(_0x41845b=this[_0x3f8521(0xae)]())===null||_0x41845b===void 0x0?void 0x0:_0x41845b[_0x3f8521(0xbe)]()[_0x3f8521(0xa4)]()[_0x3f8521(0xeb)]())),this['finishDrawing']());!this[_0x3f8521(0xed)]?_0xd9d1f9=this[_0x3f8521(0xb2)]=='rectangle'?_0x3f8521(0x93):'单击开始绘制':(_0xd9d1f9='单击增加点,右击删除点',((_0x1ab8b4=this[_0x3f8521(0xe0)])===null||_0x1ab8b4===void 0x0?void 0x0:_0x1ab8b4['length'])===this[_0x3f8521(0x9b)]-0x1&&(_0xd9d1f9=_0x3f8521(0xc2)),((_0x245076=this[_0x3f8521(0xe0)])===null||_0x245076===void 0x0?void 0x0:_0x245076[_0x3f8521(0xdd)])>=this[_0x3f8521(0xf1)]&&this[_0x3f8521(0x9b)]===Number[_0x3f8521(0xe7)]&&(_0xd9d1f9=_0x3f8521(0xc1)));this[_0x3f8521(0xda)]!=undefined&&(_0xd9d1f9=this['tipText']);this[_0x3f8521(0x91)](_0x559512[_0x3f8521(0xbc)],_0xd9d1f9);if(this[_0x3f8521(0xed)]&&this[_0x3f8521(0xb2)]!=_0x3f8521(0xa5)){let _0x36b800=[...this[_0x3f8521(0xe0)],_0x559512[_0x3f8521(0xbc)]];this[_0x3f8521(0xd4)](_0x36b800);}this[_0x3f8521(0xdc)](new DrawEvent(DrawEventType[_0x3f8521(0xbb)],this['_sketchFeature'],this['_drawingCoordinates']));}['atFinish_'](_0x225a58){const _0x3cda6c=a47_0x22bff5;var _0x2ec7ae;let _0x10f97e=![],_0x359a52=this[_0x3cda6c(0xe0)]['length'];if(_0x359a52>this[_0x3cda6c(0xf1)]&&this[_0x3cda6c(0x9b)]===Number['MAX_VALUE']){const _0x1d0da3=this['_drawingCoordinates'][this[_0x3cda6c(0xe0)][_0x3cda6c(0xdd)]-0x1],_0x30faf3=(_0x2ec7ae=this[_0x3cda6c(0xae)]())===null||_0x2ec7ae===void 0x0?void 0x0:_0x2ec7ae[_0x3cda6c(0xad)](_0x1d0da3),_0x20e67d=_0x225a58[0x0]-(_0x30faf3?_0x30faf3[0x0]:0x0),_0x5cc352=_0x225a58[0x1]-(_0x30faf3?_0x30faf3[0x1]:0x0);_0x10f97e=Math[_0x3cda6c(0xf4)](_0x20e67d*_0x20e67d+_0x5cc352*_0x5cc352)<=this[_0x3cda6c(0x9a)];}return _0x10f97e;}['startDrawing_'](_0x2d566d){const _0x4068bd=a47_0x22bff5;this[_0x4068bd(0xed)]=!![],this[_0x4068bd(0xe0)]=[_0x2d566d[_0x4068bd(0x9d)]()],this[_0x4068bd(0x94)]=this[_0x4068bd(0xca)](),this[_0x4068bd(0xa6)](),this[_0x4068bd(0xdc)](new DrawEvent(DrawEventType['DRAWSTART'],this[_0x4068bd(0x94)],this[_0x4068bd(0xe0)]));}[a47_0x22bff5(0xf6)](){const _0xe77c8f=a47_0x22bff5;if(this[_0xe77c8f(0xe0)][_0xe77c8f(0xdd)]>this[_0xe77c8f(0xf1)]){this[_0xe77c8f(0xd4)](this[_0xe77c8f(0xe0)]);let _0x1a999f=this[_0xe77c8f(0xe0)];const _0x155031=this[_0xe77c8f(0xf5)]();if(!_0x155031)return;this[_0xe77c8f(0xdc)](new DrawEvent(DrawEventType[_0xe77c8f(0xb3)],_0x155031,_0x1a999f)),this[_0xe77c8f(0xd6)]&&this[_0xe77c8f(0xd6)]['push'](_0x155031),this[_0xe77c8f(0xde)]&&this[_0xe77c8f(0xde)][_0xe77c8f(0x96)](_0x155031);}}[a47_0x22bff5(0xd7)](_0x48cb48){const _0x2b515f=a47_0x22bff5;this[_0x2b515f(0xe0)][_0x2b515f(0xe2)](_0x48cb48),this[_0x2b515f(0x94)]=this[_0x2b515f(0xca)](),this['updateSketchFeatures_']();}[a47_0x22bff5(0xca)](){const _0x39a1f6=a47_0x22bff5,_0x4e5346=new MultiPoint(this[_0x39a1f6(0xe0)]);let _0x16314f=new a47_0xfd01be();return _0x16314f[_0x39a1f6(0xa7)](_0x4e5346),_0x16314f;}[a47_0x22bff5(0xf5)](){const _0xfee042=a47_0x22bff5;var _0x1d2f1b,_0x9bddb1;this[_0xfee042(0xed)]=![];const _0x45a8e3=this[_0xfee042(0x94)];return this[_0xfee042(0x94)]=undefined,this[_0xfee042(0xe0)]=[],(_0x1d2f1b=this[_0xfee042(0x92)][_0xfee042(0xa3)]())===null||_0x1d2f1b===void 0x0?void 0x0:_0x1d2f1b['clear'](!![]),(_0x9bddb1=this[_0xfee042(0xb9)][_0xfee042(0xa3)]())===null||_0x9bddb1===void 0x0?void 0x0:_0x9bddb1[_0xfee042(0xb1)](!![]),_0x45a8e3;}['abortDrawing'](){const _0x2f26a7=a47_0x22bff5,_0x40ea8f=this[_0x2f26a7(0xf5)]();_0x40ea8f&&this['dispatchEvent'](new DrawEvent(DrawEventType[_0x2f26a7(0xd9)],_0x40ea8f,this['_drawingCoordinates']));}[a47_0x22bff5(0xd4)](_0x404e69){const _0x21f653=a47_0x22bff5;this[_0x21f653(0x94)]=new a47_0xfd01be();let _0x21573e=createPlot(this[_0x21f653(0xb2)],_0x404e69);if(!_0x21573e)return;this[_0x21f653(0x94)]['setGeometry'](_0x21573e);let _0x584221=[a47_0x404b21[_0x21f653(0xac)],a47_0x404b21[_0x21f653(0xcb)],a47_0x404b21[_0x21f653(0x9e)]];if(_0x584221[_0x21f653(0xc3)](this[_0x21f653(0xb2)])>-0x1&&this['_style']){}const _0x249d56=this['getMap']();this[_0x21f653(0x94)][_0x21f653(0xf3)](getStyle(this['_type'],this[_0x21f653(0xdb)],this['getMap']())),this[_0x21f653(0xa6)]();}['updateSketchFeatures_'](){const _0xbc811a=a47_0x22bff5,_0x12b367=this[_0xbc811a(0x92)][_0xbc811a(0xa3)]();_0x12b367&&this[_0xbc811a(0x94)]&&(_0x12b367[_0xbc811a(0xb1)](!![]),_0x12b367[_0xbc811a(0x96)](this[_0xbc811a(0x94)]));}[a47_0x22bff5(0x99)](){const _0x300bbf=a47_0x22bff5;if(this[_0x300bbf(0xed)]){if(this[_0x300bbf(0xe0)]&&this['_drawingCoordinates'][_0x300bbf(0xdd)]>0x0){const _0x47e4d6=this['_overlay'][_0x300bbf(0xa3)]();_0x47e4d6===null||_0x47e4d6===void 0x0?void 0x0:_0x47e4d6[_0x300bbf(0xb1)](!![]),this[_0x300bbf(0xe0)]['pop'](),this['_drawingCoordinates'][_0x300bbf(0xdd)]>=this['_minPoints']&&this['buildDrawingFeature'](this[_0x300bbf(0xe0)]),this['_drawingCoordinates'][_0x300bbf(0xdd)]===0x0&&(this[_0x300bbf(0xed)]=![]);}}}[a47_0x22bff5(0x91)](_0x377c86,_0x18f655){const _0x21901b=a47_0x22bff5;var _0x1c2557,_0x55d794,_0x54a813,_0x400d71;if(!this[_0x21901b(0xb8)])return;const _0x4e353e=this[_0x21901b(0xb9)][_0x21901b(0xa3)]();_0x4e353e===null||_0x4e353e===void 0x0?void 0x0:_0x4e353e['clear'](!![]),(_0x1c2557=this[_0x21901b(0xec)])===null||_0x1c2557===void 0x0?void 0x0:_0x1c2557[_0x21901b(0xa7)](new Point(_0x377c86)),(_0x54a813=(_0x55d794=this[_0x21901b(0xcc)])===null||_0x55d794===void 0x0?void 0x0:_0x55d794[_0x21901b(0xdf)]())===null||_0x54a813===void 0x0?void 0x0:_0x54a813[_0x21901b(0xb6)](_0x18f655),(_0x400d71=this[_0x21901b(0xec)])===null||_0x400d71===void 0x0?void 0x0:_0x400d71[_0x21901b(0xf3)](this[_0x21901b(0xcc)]),this['_tipFeature']&&(_0x4e353e===null||_0x4e353e===void 0x0?void 0x0:_0x4e353e[_0x21901b(0x96)](this[_0x21901b(0xec)]));}}function getDefaultStyleFunction(){const _0x2c438b=createEditingStyle();return function(_0x2e01d0,_0x357715){const _0x326910=a47_0x3177,_0x80569f=_0x2c438b[_0x2e01d0[_0x326910(0xc6)]()[_0x326910(0xd8)]()];if(_0x80569f&&_0x326910(0xd5)==_0x2e01d0[_0x326910(0xc6)]()['getType']()){}};}
1
+ const a47_0x385dad=a47_0x26ab;(function(_0x59b211,_0x147639){const _0x44e184=a47_0x26ab,_0x3cce51=_0x59b211();while(!![]){try{const _0xf59834=-parseInt(_0x44e184(0x10c))/0x1+-parseInt(_0x44e184(0x134))/0x2*(parseInt(_0x44e184(0x110))/0x3)+parseInt(_0x44e184(0xee))/0x4*(parseInt(_0x44e184(0x124))/0x5)+-parseInt(_0x44e184(0x120))/0x6+-parseInt(_0x44e184(0x11e))/0x7+parseInt(_0x44e184(0x132))/0x8*(parseInt(_0x44e184(0x131))/0x9)+parseInt(_0x44e184(0xff))/0xa*(parseInt(_0x44e184(0x12b))/0xb);if(_0xf59834===_0x147639)break;else _0x3cce51['push'](_0x3cce51['shift']());}catch(_0x1e0729){_0x3cce51['push'](_0x3cce51['shift']());}}}(a47_0x570c,0xdc7d9));function a47_0x26ab(_0x23e28e,_0x25084d){const _0x570cc2=a47_0x570c();return a47_0x26ab=function(_0x26ab05,_0x46634d){_0x26ab05=_0x26ab05-0xe2;let _0x421440=_0x570cc2[_0x26ab05];return _0x421440;},a47_0x26ab(_0x23e28e,_0x25084d);}function a47_0x570c(){const _0x3f999d=['单击结束绘制,右击删除点','pointermove','189CLASqn','216472GzIKzh','buildDrawingFeature','2fIlWVp','startDrawing_','MAX_VALUE','_type','getMap','_minPoints','type','drawStart','handleMoveEvent','_sketchFeature','_tipOverlay','handleDownEvent','coordinate','finishDrawing','setGeometry','_fixPoint','单击拖动绘制','rgba(0,\x200,\x200,\x200.4)','Ellipse','_showTip','12px\x20Calibre,sans-serif','feature','clear','getText','_overlay','setText','getActive','drawMoving','stopDown','_style','_snapTolerance','handleUpEvent','updateState_','push','pixel','单击增加点,右击删除点','getOverlay','4488VspQiO','unInternal','addChangeListener','button','left','onInternal','DRAWADDPOINT','_features','_source','preventDefault','snapTolerance','wrapX','dispatchEvent','minPoint','getProjection','drawEnd','updateSketchFeatures_','20bGqxoD','DRAWEND','once','setStyle','getGeometry','tipText','point','abortDrawing','length','_tipFeature','setMap','drawAddPoint','addFeature','1267177gItpfc','revert','indexOf','getSource','5322849nTFPKv','DRAWSTART','updateTip_','style','coordinates','DRAWMOVING','slice','onceInternal','单击增加点,右击删除点双击完成绘制','projection','source','getPixelFromCoordinate','getType','addPoint','7929348IAyQyI','getCode','6230184JSodFa','createMultiPointFeature','originalEvent','getView','3790BMukXO','handleDragEvent','DRAWABORT','drawAbort','_drawingCoordinates','abortDrawing_','rectangle','25833511NHOJxM','pop','_isStayDraw','_tipStyle'];a47_0x570c=function(){return _0x3f999d;};return a47_0x570c();}import a47_0x25281a from'ol/events/Event';import a47_0x3bbea4 from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';import a47_0x5ea314 from'ol/Feature';import a47_0x497403,{createEditingStyle}from'ol/style/Style';import a47_0x1cac20 from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a47_0x3fe3e9 from'ol/style/Text';import a47_0x50a70c from'ol/style/Fill';import a47_0x1b562e from'ol/interaction/Property';import a47_0x2f7ce1 from'ol/layer/Vector';import a47_0x4a6d59 from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a47_0x385dad(0x13b),'DRAWEND':a47_0x385dad(0xfd),'DRAWABORT':a47_0x385dad(0x127),'DRAWADDPOINT':a47_0x385dad(0x10a),'DRAWMOVING':a47_0x385dad(0xe4)};export class DrawEvent extends a47_0x25281a{constructor(_0x3e3752,_0x188eb6,_0x3788bf){const _0x2a2192=a47_0x385dad;super(_0x3e3752),this[_0x2a2192(0x149)]=_0x188eb6,this[_0x2a2192(0x114)]=_0x3788bf;}}export class ShEvent extends a47_0x25281a{constructor(_0x5f989e,_0xf6083c,_0x58ed7b,_0x4fc918,_0x5ee207){const _0x5d7493=a47_0x385dad;super(_0x5f989e),this[_0x5d7493(0x119)]=_0x5ee207,this['type']=_0xf6083c,this[_0x5d7493(0x140)]=_0x58ed7b,this['coordinates']=_0x4fc918;}}export default class Draw extends a47_0x3bbea4{constructor(_0x4b803b,_0x2ffd78){const _0x5633a5=a47_0x385dad,_0xcd05f2=_0x2ffd78?_0x2ffd78:{};!_0xcd05f2[_0x5633a5(0xe5)]&&(_0xcd05f2['stopDown']=![]);super(_0x2ffd78),this['on']=this[_0x5633a5(0xf3)],this[_0x5633a5(0x101)]=this[_0x5633a5(0x117)],this['un']=this[_0x5633a5(0xef)],this['_isStayDraw']=![],this['_type']=_0x4b803b,this[_0x5633a5(0xe6)]=_0x2ffd78===null||_0x2ffd78===void 0x0?void 0x0:_0x2ffd78[_0x5633a5(0x113)],this[_0x5633a5(0xf6)]=_0x2ffd78===null||_0x2ffd78===void 0x0?void 0x0:_0x2ffd78[_0x5633a5(0x11a)],this[_0x5633a5(0xf5)]=_0x2ffd78===null||_0x2ffd78===void 0x0?void 0x0:_0x2ffd78['features'];const _0x7fa835=getPlotCount(this[_0x5633a5(0x137)]);this[_0x5633a5(0x139)]=_0x7fa835[_0x5633a5(0xfb)],this[_0x5633a5(0x143)]=_0x7fa835['fixPoint'],this[_0x5633a5(0x104)]=_0x2ffd78===null||_0x2ffd78===void 0x0?void 0x0:_0x2ffd78[_0x5633a5(0x104)],this[_0x5633a5(0x147)]=(_0x2ffd78===null||_0x2ffd78===void 0x0?void 0x0:_0x2ffd78['showTip'])==![]?![]:!![],this['_snapTolerance']=_0xcd05f2[_0x5633a5(0xf8)]?_0xcd05f2['snapTolerance']:0x6,this[_0x5633a5(0x108)]=new a47_0x5ea314(),this[_0x5633a5(0x12e)]=new a47_0x497403({'text':new a47_0x3fe3e9({'font':_0x5633a5(0x148),'fill':new a47_0x50a70c({'color':'rgba(255,\x20255,\x20255,\x201)'}),'backgroundFill':new a47_0x50a70c({'color':_0x5633a5(0x145)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x5633a5(0xf2),'offsetX':0xf})}),this['_drawingCoordinates']=[],this[_0x5633a5(0x13e)]=new a47_0x2f7ce1({'source':new a47_0x1cac20({'useSpatialIndex':![],'wrapX':(_0x2ffd78===null||_0x2ffd78===void 0x0?void 0x0:_0x2ffd78[_0x5633a5(0xf9)])?_0x2ffd78[_0x5633a5(0xf9)]:![]})}),this[_0x5633a5(0x14c)]=new a47_0x2f7ce1({'source':new a47_0x1cac20({'useSpatialIndex':![],'wrapX':(_0x2ffd78===null||_0x2ffd78===void 0x0?void 0x0:_0x2ffd78[_0x5633a5(0xf9)])?_0x2ffd78['wrapX']:![]}),'updateWhileInteracting':!![]}),this[_0x5633a5(0xf0)](a47_0x1b562e['ACTIVE'],this[_0x5633a5(0xe9)]);}['updateState_'](){const _0x614079=a47_0x385dad,_0x4374e8=this['getMap'](),_0x8ba4d6=this[_0x614079(0xe3)]();(!_0x4374e8||!_0x8ba4d6)&&this[_0x614079(0x106)](),this[_0x614079(0x14c)][_0x614079(0x109)](_0x8ba4d6?_0x4374e8:null),this['_tipOverlay']['setMap'](_0x8ba4d6?_0x4374e8:null);}[a47_0x385dad(0x109)](_0xc85b42){super['setMap'](_0xc85b42),this['updateState_']();}['setStyle'](_0x4de499){const _0x1eff10=a47_0x385dad;this[_0x1eff10(0xe6)]=_0x4de499?_0x4de499:{};}[a47_0x385dad(0xed)](){const _0x4c1174=a47_0x385dad;return this[_0x4c1174(0x14c)];}[a47_0x385dad(0x13f)](_0x5d10de){const _0x2f78f0=a47_0x385dad;if(_0x5d10de[_0x2f78f0(0x122)][_0x2f78f0(0xf1)]===0x2)return _0x5d10de[_0x2f78f0(0x122)]['preventDefault'](),this[_0x2f78f0(0x10d)](),this[_0x2f78f0(0x13c)](_0x5d10de),![];return!![];}[a47_0x385dad(0xe8)](_0x3b9445){const _0x36d9fe=a47_0x385dad;var _0x1cf7f3,_0xbf2e58;if(this['_type']==_0x36d9fe(0x12a)&&this[_0x36d9fe(0x128)][_0x36d9fe(0x107)]<0x1)return this['dispatchEvent'](new DrawEvent(DrawEventType[_0x36d9fe(0x100)],undefined,[_0x3b9445[_0x36d9fe(0x140)]])),![];if(!this[_0x36d9fe(0x12d)])this[_0x36d9fe(0x135)](_0x3b9445['coordinate']),this[_0x36d9fe(0xfa)](new ShEvent(DrawEventType[_0x36d9fe(0xf4)],this[_0x36d9fe(0x137)],_0x3b9445[_0x36d9fe(0x140)],this[_0x36d9fe(0x128)],(_0x1cf7f3=this[_0x36d9fe(0x138)]())===null||_0x1cf7f3===void 0x0?void 0x0:_0x1cf7f3[_0x36d9fe(0x123)]()['getProjection']()[_0x36d9fe(0x11f)]())),this[_0x36d9fe(0x137)]==_0x36d9fe(0x105)&&this[_0x36d9fe(0x141)]();else{if(this[_0x36d9fe(0x128)]&&this[_0x36d9fe(0x128)][_0x36d9fe(0x107)]>0x0){if(this['atFinish_'](_0x3b9445[_0x36d9fe(0xeb)]))return this[_0x36d9fe(0x141)](),_0x3b9445[_0x36d9fe(0xf7)](),![];let _0x56e9c6=this[_0x36d9fe(0x128)][_0x36d9fe(0x107)]+0x1;_0x56e9c6<=this[_0x36d9fe(0x143)]&&this['addPoint'](_0x3b9445['coordinate']),this[_0x36d9fe(0xfa)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x36d9fe(0x137)],_0x3b9445[_0x36d9fe(0x140)],this['_drawingCoordinates'],(_0xbf2e58=this[_0x36d9fe(0x138)]())===null||_0xbf2e58===void 0x0?void 0x0:_0xbf2e58['getView']()[_0x36d9fe(0xfc)]()[_0x36d9fe(0x11f)]())),_0x56e9c6>=this[_0x36d9fe(0x139)]&&this[_0x36d9fe(0x133)](this['_drawingCoordinates']),_0x56e9c6===this[_0x36d9fe(0x143)]&&this['finishDrawing']();}}return _0x3b9445[_0x36d9fe(0xf7)](),![];}[a47_0x385dad(0x125)](_0x4d7b91){const _0x21d606=a47_0x385dad;var _0x24682b;if(this[_0x21d606(0x137)]==_0x21d606(0x12a)&&_0x4d7b91[_0x21d606(0x122)][_0x21d606(0x13a)]==_0x21d606(0x130)){if(!this[_0x21d606(0x12d)]){this['startDrawing_'](_0x4d7b91['coordinate']),this[_0x21d606(0xfa)](new ShEvent(DrawEventType[_0x21d606(0xf4)],this['_type'],_0x4d7b91[_0x21d606(0x140)],this[_0x21d606(0x128)],(_0x24682b=this[_0x21d606(0x138)]())===null||_0x24682b===void 0x0?void 0x0:_0x24682b['getView']()[_0x21d606(0xfc)]()[_0x21d606(0x11f)]()));return;}let _0x2abfb7=[...this[_0x21d606(0x128)],_0x4d7b91[_0x21d606(0x140)]];this[_0x21d606(0x133)](_0x2abfb7),this[_0x21d606(0xfa)](new DrawEvent(DrawEventType[_0x21d606(0x115)],this[_0x21d606(0x13d)],this[_0x21d606(0x128)]));}}[a47_0x385dad(0x13c)](_0x9955ef){const _0x7ab948=a47_0x385dad;var _0x3dced1,_0x32772b,_0x473da5;let _0x1e4cbf='';this['_type']==_0x7ab948(0x130)&&(this['startDrawing_'](_0x9955ef[_0x7ab948(0x140)]),this[_0x7ab948(0xfa)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x7ab948(0x137)],_0x9955ef[_0x7ab948(0x140)],this[_0x7ab948(0x128)],(_0x3dced1=this['getMap']())===null||_0x3dced1===void 0x0?void 0x0:_0x3dced1[_0x7ab948(0x123)]()[_0x7ab948(0xfc)]()[_0x7ab948(0x11f)]())),this[_0x7ab948(0x141)]());!this[_0x7ab948(0x12d)]?_0x1e4cbf=this[_0x7ab948(0x137)]==_0x7ab948(0x12a)?_0x7ab948(0x144):'单击开始绘制':(_0x1e4cbf=_0x7ab948(0xec),((_0x32772b=this[_0x7ab948(0x128)])===null||_0x32772b===void 0x0?void 0x0:_0x32772b[_0x7ab948(0x107)])===this[_0x7ab948(0x143)]-0x1&&(_0x1e4cbf=_0x7ab948(0x12f)),((_0x473da5=this['_drawingCoordinates'])===null||_0x473da5===void 0x0?void 0x0:_0x473da5[_0x7ab948(0x107)])>=this[_0x7ab948(0x139)]&&this['_fixPoint']===Number['MAX_VALUE']&&(_0x1e4cbf=_0x7ab948(0x118)));this['tipText']!=undefined&&(_0x1e4cbf=this[_0x7ab948(0x104)]);this[_0x7ab948(0x112)](_0x9955ef[_0x7ab948(0x140)],_0x1e4cbf);if(this[_0x7ab948(0x12d)]&&this['_type']!='rectangle'){let _0x5d4451=[...this[_0x7ab948(0x128)],_0x9955ef['coordinate']];this['buildDrawingFeature'](_0x5d4451);}this['dispatchEvent'](new DrawEvent(DrawEventType[_0x7ab948(0x115)],this[_0x7ab948(0x13d)],this['_drawingCoordinates']));}['atFinish_'](_0x4f413e){const _0x76e4c9=a47_0x385dad;var _0x4e984c;let _0x1a5b49=![],_0x4be299=this[_0x76e4c9(0x128)][_0x76e4c9(0x107)];if(_0x4be299>this[_0x76e4c9(0x139)]&&this[_0x76e4c9(0x143)]===Number[_0x76e4c9(0x136)]){const _0x598152=this['_drawingCoordinates'][this[_0x76e4c9(0x128)]['length']-0x1],_0x226f46=(_0x4e984c=this[_0x76e4c9(0x138)]())===null||_0x4e984c===void 0x0?void 0x0:_0x4e984c[_0x76e4c9(0x11b)](_0x598152),_0x202ce6=_0x4f413e[0x0]-(_0x226f46?_0x226f46[0x0]:0x0),_0x1538e3=_0x4f413e[0x1]-(_0x226f46?_0x226f46[0x1]:0x0);_0x1a5b49=Math['sqrt'](_0x202ce6*_0x202ce6+_0x1538e3*_0x1538e3)<=this[_0x76e4c9(0xe7)];}return _0x1a5b49;}[a47_0x385dad(0x135)](_0x47d899){const _0x40bf5e=a47_0x385dad;this[_0x40bf5e(0x12d)]=!![],this[_0x40bf5e(0x128)]=[_0x47d899[_0x40bf5e(0x116)]()],this['_sketchFeature']=this['createMultiPointFeature'](),this[_0x40bf5e(0xfe)](),this['dispatchEvent'](new DrawEvent(DrawEventType[_0x40bf5e(0x111)],this[_0x40bf5e(0x13d)],this[_0x40bf5e(0x128)]));}[a47_0x385dad(0x141)](){const _0x2fd53e=a47_0x385dad;if(this['_drawingCoordinates']['length']>this[_0x2fd53e(0x139)]){this[_0x2fd53e(0x133)](this['_drawingCoordinates']);let _0x2e63b4=this[_0x2fd53e(0x128)];const _0x250d3e=this[_0x2fd53e(0x129)]();if(!_0x250d3e)return;this['dispatchEvent'](new DrawEvent(DrawEventType[_0x2fd53e(0x100)],_0x250d3e,_0x2e63b4)),this[_0x2fd53e(0xf5)]&&this[_0x2fd53e(0xf5)]['push'](_0x250d3e),this['_source']&&this[_0x2fd53e(0xf6)]['addFeature'](_0x250d3e);}}[a47_0x385dad(0x11d)](_0x8996f3){const _0x2f5393=a47_0x385dad;this[_0x2f5393(0x128)][_0x2f5393(0xea)](_0x8996f3),this[_0x2f5393(0x13d)]=this[_0x2f5393(0x121)](),this['updateSketchFeatures_']();}[a47_0x385dad(0x121)](){const _0x268ac8=a47_0x385dad,_0x247f4f=new MultiPoint(this['_drawingCoordinates']);let _0x15e6f5=new a47_0x5ea314();return _0x15e6f5[_0x268ac8(0x142)](_0x247f4f),_0x15e6f5;}[a47_0x385dad(0x129)](){const _0x318021=a47_0x385dad;var _0x2ef566,_0x25c450;this[_0x318021(0x12d)]=![];const _0x5b02f5=this[_0x318021(0x13d)];return this['_sketchFeature']=undefined,this[_0x318021(0x128)]=[],(_0x2ef566=this[_0x318021(0x14c)][_0x318021(0x10f)]())===null||_0x2ef566===void 0x0?void 0x0:_0x2ef566[_0x318021(0x14a)](!![]),(_0x25c450=this['_tipOverlay'][_0x318021(0x10f)]())===null||_0x25c450===void 0x0?void 0x0:_0x25c450[_0x318021(0x14a)](!![]),_0x5b02f5;}[a47_0x385dad(0x106)](){const _0x1e77ca=a47_0x385dad,_0x119cb8=this['abortDrawing_']();_0x119cb8&&this[_0x1e77ca(0xfa)](new DrawEvent(DrawEventType[_0x1e77ca(0x126)],_0x119cb8,this[_0x1e77ca(0x128)]));}['buildDrawingFeature'](_0x32f59a){const _0x5cff6d=a47_0x385dad;this[_0x5cff6d(0x13d)]=new a47_0x5ea314();let _0x1727c1=createPlot(this[_0x5cff6d(0x137)],_0x32f59a);if(!_0x1727c1)return;this[_0x5cff6d(0x13d)]['setGeometry'](_0x1727c1);let _0x574636=[a47_0x4a6d59['Circle'],a47_0x4a6d59['Ellipsoid'],a47_0x4a6d59[_0x5cff6d(0x146)]];if(_0x574636[_0x5cff6d(0x10e)](this[_0x5cff6d(0x137)])>-0x1&&this['_style']){}const _0x191171=this[_0x5cff6d(0x138)]();this['_sketchFeature'][_0x5cff6d(0x102)](getStyle(this[_0x5cff6d(0x137)],this[_0x5cff6d(0xe6)],this[_0x5cff6d(0x138)]())),this[_0x5cff6d(0xfe)]();}[a47_0x385dad(0xfe)](){const _0x44aa5f=a47_0x385dad,_0x56bef2=this[_0x44aa5f(0x14c)][_0x44aa5f(0x10f)]();_0x56bef2&&this[_0x44aa5f(0x13d)]&&(_0x56bef2[_0x44aa5f(0x14a)](!![]),_0x56bef2[_0x44aa5f(0x10b)](this['_sketchFeature']));}['revert'](){const _0x56c30e=a47_0x385dad;if(this['_isStayDraw']){if(this[_0x56c30e(0x128)]&&this['_drawingCoordinates']['length']>0x0){const _0x2c9c05=this['_overlay']['getSource']();_0x2c9c05===null||_0x2c9c05===void 0x0?void 0x0:_0x2c9c05[_0x56c30e(0x14a)](!![]),this[_0x56c30e(0x128)][_0x56c30e(0x12c)](),this[_0x56c30e(0x128)][_0x56c30e(0x107)]>=this[_0x56c30e(0x139)]&&this['buildDrawingFeature'](this[_0x56c30e(0x128)]),this['_drawingCoordinates'][_0x56c30e(0x107)]===0x0&&(this[_0x56c30e(0x12d)]=![]);}}}[a47_0x385dad(0x112)](_0x51b32c,_0x1147d6){const _0x5a2443=a47_0x385dad;var _0x4f9426,_0x5744f1,_0x11e700,_0x3f4db2;if(!this[_0x5a2443(0x147)])return;const _0x2bef94=this[_0x5a2443(0x13e)][_0x5a2443(0x10f)]();_0x2bef94===null||_0x2bef94===void 0x0?void 0x0:_0x2bef94[_0x5a2443(0x14a)](!![]),(_0x4f9426=this[_0x5a2443(0x108)])===null||_0x4f9426===void 0x0?void 0x0:_0x4f9426[_0x5a2443(0x142)](new Point(_0x51b32c)),(_0x11e700=(_0x5744f1=this[_0x5a2443(0x12e)])===null||_0x5744f1===void 0x0?void 0x0:_0x5744f1[_0x5a2443(0x14b)]())===null||_0x11e700===void 0x0?void 0x0:_0x11e700[_0x5a2443(0xe2)](_0x1147d6),(_0x3f4db2=this[_0x5a2443(0x108)])===null||_0x3f4db2===void 0x0?void 0x0:_0x3f4db2[_0x5a2443(0x102)](this[_0x5a2443(0x12e)]),this[_0x5a2443(0x108)]&&(_0x2bef94===null||_0x2bef94===void 0x0?void 0x0:_0x2bef94[_0x5a2443(0x10b)](this['_tipFeature']));}}function getDefaultStyleFunction(){const _0x58a709=createEditingStyle();return function(_0x3a3817,_0x53795e){const _0x7b5ec8=a47_0x26ab,_0x2ec2d2=_0x58a709[_0x3a3817['getGeometry']()[_0x7b5ec8(0x11c)]()];if(_0x2ec2d2&&'Rectangle'==_0x3a3817[_0x7b5ec8(0x103)]()['getType']()){}};}
@@ -1 +1 @@
1
- function a48_0x5790(){const _0x167c41=['4270600zDdFUV','459941tSdNfs','removeInteraction','set','321881AGdaKn','210AfQXWr','904096xTzsNe','interactions','3685041hAniEe','getInteraction','get','has','28846csshIA','addInteraction','map','890mJDfUX','111aiTknJ','18868NTHOhw','clear','name'];a48_0x5790=function(){return _0x167c41;};return a48_0x5790();}const a48_0x4c66ce=a48_0x3972;function a48_0x3972(_0x171ecd,_0xa3cdba){const _0x57905a=a48_0x5790();return a48_0x3972=function(_0x39723c,_0x509752){_0x39723c=_0x39723c-0x149;let _0x580aa2=_0x57905a[_0x39723c];return _0x580aa2;},a48_0x3972(_0x171ecd,_0xa3cdba);}(function(_0xc90c68,_0x50a020){const _0x30a1be=a48_0x3972,_0x1af671=_0xc90c68();while(!![]){try{const _0x3451f1=parseInt(_0x30a1be(0x154))/0x1+-parseInt(_0x30a1be(0x14b))/0x2*(-parseInt(_0x30a1be(0x14f))/0x3)+parseInt(_0x30a1be(0x150))/0x4*(-parseInt(_0x30a1be(0x14e))/0x5)+parseInt(_0x30a1be(0x158))/0x6*(parseInt(_0x30a1be(0x157))/0x7)+-parseInt(_0x30a1be(0x159))/0x8+-parseInt(_0x30a1be(0x15b))/0x9+-parseInt(_0x30a1be(0x153))/0xa;if(_0x3451f1===_0x50a020)break;else _0x1af671['push'](_0x1af671['shift']());}catch(_0x40e3e7){_0x1af671['push'](_0x1af671['shift']());}}}(a48_0x5790,0xc6b1a));export default class InteractionManager{constructor(_0x1726e6){const _0x44186a=a48_0x3972;this[_0x44186a(0x14d)]=_0x1726e6,this[_0x44186a(0x15a)]=new Map();}[a48_0x4c66ce(0x14c)](_0x3dc59c,_0x1316ad){const _0x585752=a48_0x4c66ce;this[_0x585752(0x15a)][_0x585752(0x14a)](_0x3dc59c)&&this[_0x585752(0x155)](_0x3dc59c),_0x1316ad[_0x585752(0x156)](_0x585752(0x152),_0x3dc59c),this[_0x585752(0x15a)][_0x585752(0x156)](_0x3dc59c,_0x1316ad),this['map'][_0x585752(0x14c)](_0x1316ad);}[a48_0x4c66ce(0x155)](_0x35c2bd){const _0x1ad7d6=a48_0x4c66ce,_0x2ebe5b=this[_0x1ad7d6(0x15a)][_0x1ad7d6(0x149)](_0x35c2bd);_0x2ebe5b&&(this[_0x1ad7d6(0x14d)][_0x1ad7d6(0x155)](_0x2ebe5b),this[_0x1ad7d6(0x15a)]['delete'](_0x35c2bd));}['removeAllInteractions'](){const _0x4aea64=a48_0x4c66ce;this['interactions']['forEach'](_0x4acf89=>{const _0x5c7940=a48_0x3972;this[_0x5c7940(0x14d)][_0x5c7940(0x155)](_0x4acf89);}),this[_0x4aea64(0x15a)][_0x4aea64(0x151)]();}[a48_0x4c66ce(0x15c)](_0x3181f5){const _0x388b83=a48_0x4c66ce;return this[_0x388b83(0x15a)][_0x388b83(0x149)](_0x3181f5);}}
1
+ const a48_0x114f66=a48_0x5172;(function(_0x36da9f,_0x5302ba){const _0x1a0d13=a48_0x5172,_0x1c62c0=_0x36da9f();while(!![]){try{const _0x39b377=parseInt(_0x1a0d13(0xfb))/0x1+parseInt(_0x1a0d13(0x100))/0x2*(parseInt(_0x1a0d13(0x10c))/0x3)+parseInt(_0x1a0d13(0x101))/0x4*(-parseInt(_0x1a0d13(0x10b))/0x5)+-parseInt(_0x1a0d13(0x10a))/0x6*(parseInt(_0x1a0d13(0x10e))/0x7)+-parseInt(_0x1a0d13(0x104))/0x8*(parseInt(_0x1a0d13(0xfc))/0x9)+-parseInt(_0x1a0d13(0x108))/0xa+parseInt(_0x1a0d13(0x109))/0xb*(parseInt(_0x1a0d13(0xfe))/0xc);if(_0x39b377===_0x5302ba)break;else _0x1c62c0['push'](_0x1c62c0['shift']());}catch(_0x49b44c){_0x1c62c0['push'](_0x1c62c0['shift']());}}}(a48_0x4fa5,0x7ceb3));function a48_0x5172(_0x2abe83,_0x1bfcc1){const _0x4fa5bc=a48_0x4fa5();return a48_0x5172=function(_0x5172f1,_0x45c75e){_0x5172f1=_0x5172f1-0xfb;let _0x284907=_0x4fa5bc[_0x5172f1];return _0x284907;},a48_0x5172(_0x2abe83,_0x1bfcc1);}function a48_0x4fa5(){const _0x46b296=['set','removeInteraction','clear','8740070WYdkxx','170885fZWUSg','6XwCxco','2195tIlYaB','991275ycUehP','delete','5399709NymgHY','forEach','621171gOTnwq','35595UtURbS','map','828NTRtUX','interactions','6FgihFI','300ykEyFH','addInteraction','get','1000Iuikjt'];a48_0x4fa5=function(){return _0x46b296;};return a48_0x4fa5();}export default class InteractionManager{constructor(_0x6cba7d){const _0x3cefb5=a48_0x5172;this[_0x3cefb5(0xfd)]=_0x6cba7d,this['interactions']=new Map();}[a48_0x114f66(0x102)](_0x4353cf,_0x53b46b){const _0x38602f=a48_0x114f66;this['interactions']['has'](_0x4353cf)&&this['removeInteraction'](_0x4353cf),_0x53b46b['set']('name',_0x4353cf),this[_0x38602f(0xff)][_0x38602f(0x105)](_0x4353cf,_0x53b46b),this[_0x38602f(0xfd)][_0x38602f(0x102)](_0x53b46b);}[a48_0x114f66(0x106)](_0x1a8b1a){const _0x3e2e6a=a48_0x114f66,_0x69b535=this[_0x3e2e6a(0xff)][_0x3e2e6a(0x103)](_0x1a8b1a);_0x69b535&&(this[_0x3e2e6a(0xfd)][_0x3e2e6a(0x106)](_0x69b535),this['interactions'][_0x3e2e6a(0x10d)](_0x1a8b1a));}['removeAllInteractions'](){const _0x5bb16f=a48_0x114f66;this[_0x5bb16f(0xff)][_0x5bb16f(0x10f)](_0xd66f20=>{const _0x1e1dc0=_0x5bb16f;this[_0x1e1dc0(0xfd)][_0x1e1dc0(0x106)](_0xd66f20);}),this['interactions'][_0x5bb16f(0x107)]();}['getInteraction'](_0x3daa81){const _0x592508=a48_0x114f66;return this[_0x592508(0xff)][_0x592508(0x103)](_0x3daa81);}}
@@ -1 +1 @@
1
- var a49_0xc3fec2=a49_0x1d83;(function(_0x3004b6,_0x1c44a0){var _0x496f3a=a49_0x1d83,_0x5da9ce=_0x3004b6();while(!![]){try{var _0x48a774=parseInt(_0x496f3a(0xa0))/0x1*(-parseInt(_0x496f3a(0xc0))/0x2)+-parseInt(_0x496f3a(0xaf))/0x3*(-parseInt(_0x496f3a(0xb2))/0x4)+-parseInt(_0x496f3a(0xaa))/0x5*(-parseInt(_0x496f3a(0xab))/0x6)+parseInt(_0x496f3a(0xbc))/0x7+parseInt(_0x496f3a(0xb1))/0x8*(-parseInt(_0x496f3a(0xb0))/0x9)+-parseInt(_0x496f3a(0xba))/0xa*(-parseInt(_0x496f3a(0x9d))/0xb)+parseInt(_0x496f3a(0xa6))/0xc*(parseInt(_0x496f3a(0xbb))/0xd);if(_0x48a774===_0x1c44a0)break;else _0x5da9ce['push'](_0x5da9ce['shift']());}catch(_0x2b6d7d){_0x5da9ce['push'](_0x5da9ce['shift']());}}}(a49_0x2044,0xa258e));function a49_0x1d83(_0x199683,_0x53fdda){var _0x2044b1=a49_0x2044();return a49_0x1d83=function(_0x1d8368,_0x4daebc){_0x1d8368=_0x1d8368-0x9b;var _0x18133c=_0x2044b1[_0x1d8368];return _0x18133c;},a49_0x1d83(_0x199683,_0x53fdda);}import{Modify as a49_0x5e7688,Select,Translate as a49_0x145e26}from'ol/interaction';import a49_0x90004 from'ol/geom/GeometryCollection';import{MultiPoint}from'ol/geom';import{platformModifierKeyOnly}from'ol/events/condition';function a49_0x2044(){var _0x5b2cfd=['Polygon','setMap','rgba(0,255,255,0.2)','12RseEtO','some','getCoordinates','editFeatures','20kPmlYg','1943490XMDFwy','getGeometry','rgba(255,255,255,0.6)','translate','246XzwRjG','9yMJKbb','9746600EwhTby','2828poYGhm','getId','sourceFeatures','refresh','filter','push','MultiPolygon','removeInteraction','190gJlTCw','4506437xsCCKK','771799zoHiJX','getType','remove','getFeatures','2GZMKuP','rgba(25,25,125,0.8)','forEach','434368ouuXxI','map','style','677513tGnhXy','getMap','modifyInteraction'];a49_0x2044=function(){return _0x5b2cfd;};return a49_0x2044();}import{Style,Circle,Fill,Stroke}from'ol/style';const selectModifyStyle=new Style({'image':new Circle({'radius':0x5,'fill':new Fill({'color':a49_0xc3fec2(0x9b)}),'stroke':new Stroke({'color':a49_0xc3fec2(0xad),'width':0x2})}),'stroke':new Stroke({'color':'rgba(0,255,255,0.6)','width':0x2}),'fill':new Fill({'color':a49_0xc3fec2(0xa5)}),'geometry':_0xcc30fe=>{var _0x553348=a49_0xc3fec2,_0x2bdb77,_0x31b70d,_0x5c890d,_0x4a940d,_0x2fd48a;let _0x5228ae=[];if(((_0x2bdb77=_0xcc30fe[_0x553348(0xac)]())===null||_0x2bdb77===void 0x0?void 0x0:_0x2bdb77[_0x553348(0xbd)]())===_0x553348(0xa3))(_0x31b70d=_0xcc30fe[_0x553348(0xac)]())===null||_0x31b70d===void 0x0?void 0x0:_0x31b70d[_0x553348(0xa8)]()[0x0][_0x553348(0x9c)](_0xd603a=>{_0x5228ae['push'](_0xd603a);});else{if(((_0x5c890d=_0xcc30fe['getGeometry']())===null||_0x5c890d===void 0x0?void 0x0:_0x5c890d[_0x553348(0xbd)]())===_0x553348(0xb8))_0xcc30fe[_0x553348(0xac)]()[_0x553348(0xa8)]()[0x0]['forEach'](_0x5147bf=>{var _0x3cd0ca=_0x553348;_0x5147bf[_0x3cd0ca(0x9c)](_0x508bd5=>{var _0x55aaa0=_0x3cd0ca;_0x5228ae[_0x55aaa0(0xb7)](_0x508bd5);}),_0x5228ae[_0x3cd0ca(0xb7)](_0x5147bf);});else((_0x4a940d=_0xcc30fe[_0x553348(0xac)]())===null||_0x4a940d===void 0x0?void 0x0:_0x4a940d[_0x553348(0xbd)]())==='LineString'?_0x5228ae=_0xcc30fe[_0x553348(0xac)]()[_0x553348(0xa8)]():_0x5228ae=[(_0x2fd48a=_0xcc30fe[_0x553348(0xac)]())===null||_0x2fd48a===void 0x0?void 0x0:_0x2fd48a[_0x553348(0xa8)]()];}return new a49_0x90004([_0xcc30fe['getGeometry'](),new MultiPoint(_0x5228ae)]);}});export default class Modify extends Select{constructor(_0x357598){var _0x4fe2b3=a49_0xc3fec2;_0x357598=_0x357598||{};const _0x4707af=Object['assign']({},_0x357598);_0x4707af[_0x4fe2b3(0x9f)]=selectModifyStyle,_0x4707af[_0x4fe2b3(0xb6)]=_0x1b4ad3=>{var _0x5aba66=_0x4fe2b3;if(!_0x1b4ad3['isSelected'])return![];if(this[_0x5aba66(0xb4)]==undefined||this[_0x5aba66(0xb4)]['length']==0x0)return![];return this[_0x5aba66(0xb4)][_0x5aba66(0xa7)](_0x1a8d87=>_0x1a8d87[_0x5aba66(0xb3)]()===_0x1b4ad3[_0x5aba66(0xb3)]());},super(_0x4707af),this[_0x4fe2b3(0x9e)]=null,this['sourceFeatures']=_0x357598[_0x4fe2b3(0xa9)],this[_0x4fe2b3(0xa2)]=new a49_0x5e7688({'features':this[_0x4fe2b3(0xbf)]()}),this[_0x4fe2b3(0xae)]=new a49_0x145e26({'features':this[_0x4fe2b3(0xbf)](),'condition':platformModifierKeyOnly}),this[_0x4fe2b3(0xbf)]()['on']('add',_0x3a16a5=>{var _0x3afda7=_0x4fe2b3,_0xb97045,_0x2082aa;this[_0x3afda7(0x9e)]=this[_0x3afda7(0xa1)](),(_0xb97045=this[_0x3afda7(0xa1)]())===null||_0xb97045===void 0x0?void 0x0:_0xb97045['addInteraction'](this[_0x3afda7(0xa2)]),(_0x2082aa=this[_0x3afda7(0xa1)]())===null||_0x2082aa===void 0x0?void 0x0:_0x2082aa['addInteraction'](this[_0x3afda7(0xae)]);}),this[_0x4fe2b3(0xbf)]()['on'](_0x4fe2b3(0xbe),_0x474e9f=>{var _0xb30326=_0x4fe2b3,_0x305386,_0x3df292;(_0x305386=this[_0xb30326(0xa1)]())===null||_0x305386===void 0x0?void 0x0:_0x305386[_0xb30326(0xb9)](this[_0xb30326(0xa2)]),(_0x3df292=this[_0xb30326(0xa1)]())===null||_0x3df292===void 0x0?void 0x0:_0x3df292[_0xb30326(0xb9)](this[_0xb30326(0xae)]),this[_0xb30326(0xa1)]()[_0xb30326(0xb5)]();});}[a49_0xc3fec2(0xa4)](_0x1f66ff){var _0x3d80c9=a49_0xc3fec2;super[_0x3d80c9(0xa4)](_0x1f66ff),!_0x1f66ff&&this[_0x3d80c9(0x9e)]&&(this[_0x3d80c9(0x9e)][_0x3d80c9(0xb9)](this[_0x3d80c9(0xa2)]),this[_0x3d80c9(0x9e)][_0x3d80c9(0xb9)](this[_0x3d80c9(0xae)]));}}
1
+ var a49_0xcb56ac=a49_0x427c;(function(_0x37ad9b,_0x5d131e){var _0x3469cf=a49_0x427c,_0xe87286=_0x37ad9b();while(!![]){try{var _0x1b5b7e=parseInt(_0x3469cf(0x1b6))/0x1+parseInt(_0x3469cf(0x1be))/0x2*(parseInt(_0x3469cf(0x19f))/0x3)+parseInt(_0x3469cf(0x1a8))/0x4+parseInt(_0x3469cf(0x1b2))/0x5+parseInt(_0x3469cf(0x1a2))/0x6*(parseInt(_0x3469cf(0x1aa))/0x7)+parseInt(_0x3469cf(0x1b8))/0x8+parseInt(_0x3469cf(0x1a1))/0x9*(-parseInt(_0x3469cf(0x1b0))/0xa);if(_0x1b5b7e===_0x5d131e)break;else _0xe87286['push'](_0xe87286['shift']());}catch(_0x35ee51){_0xe87286['push'](_0xe87286['shift']());}}}(a49_0x4eff,0x291a3));function a49_0x4eff(){var _0x4e654e=['isSelected','1236bkkWGd','modifyInteraction','1030968jDstlf','133446ekrnOb','filter','map','translate','push','getMap','249788foXfPF','MultiPolygon','49kThsvS','getCoordinates','rgba(0,255,255,0.6)','getGeometry','forEach','rgba(0,255,255,0.2)','70fZZTAq','LineString','1141415XzkNyA','some','addInteraction','getFeatures','288286jFmkrY','editFeatures','1564416GAQqtd','rgba(255,255,255,0.6)','add','getType','assign','removeInteraction','194lAilts','getId','sourceFeatures','remove','setMap','refresh'];a49_0x4eff=function(){return _0x4e654e;};return a49_0x4eff();}import{Modify as a49_0x49a0e1,Select,Translate as a49_0x254a77}from'ol/interaction';import a49_0x54c0d9 from'ol/geom/GeometryCollection';function a49_0x427c(_0x4ac42c,_0x157b11){var _0x4effb5=a49_0x4eff();return a49_0x427c=function(_0x427c67,_0x1aab25){_0x427c67=_0x427c67-0x19d;var _0x58e35a=_0x4effb5[_0x427c67];return _0x58e35a;},a49_0x427c(_0x4ac42c,_0x157b11);}import{MultiPoint}from'ol/geom';import{platformModifierKeyOnly}from'ol/events/condition';import{Style,Circle,Fill,Stroke}from'ol/style';const selectModifyStyle=new Style({'image':new Circle({'radius':0x5,'fill':new Fill({'color':'rgba(25,25,125,0.8)'}),'stroke':new Stroke({'color':a49_0xcb56ac(0x1b9),'width':0x2})}),'stroke':new Stroke({'color':a49_0xcb56ac(0x1ac),'width':0x2}),'fill':new Fill({'color':a49_0xcb56ac(0x1af)}),'geometry':_0x5be5e7=>{var _0x359a59=a49_0xcb56ac,_0x42f74e,_0x24cdd4,_0x2fff83,_0x523ec7,_0x1859c0;let _0xc6b096=[];if(((_0x42f74e=_0x5be5e7[_0x359a59(0x1ad)]())===null||_0x42f74e===void 0x0?void 0x0:_0x42f74e[_0x359a59(0x1bb)]())==='Polygon')(_0x24cdd4=_0x5be5e7[_0x359a59(0x1ad)]())===null||_0x24cdd4===void 0x0?void 0x0:_0x24cdd4[_0x359a59(0x1ab)]()[0x0]['forEach'](_0x48f9bd=>{var _0x2e8c16=_0x359a59;_0xc6b096[_0x2e8c16(0x1a6)](_0x48f9bd);});else{if(((_0x2fff83=_0x5be5e7['getGeometry']())===null||_0x2fff83===void 0x0?void 0x0:_0x2fff83[_0x359a59(0x1bb)]())===_0x359a59(0x1a9))_0x5be5e7[_0x359a59(0x1ad)]()[_0x359a59(0x1ab)]()[0x0][_0x359a59(0x1ae)](_0x47c65a=>{_0x47c65a['forEach'](_0x1fe263=>{var _0x473022=a49_0x427c;_0xc6b096[_0x473022(0x1a6)](_0x1fe263);}),_0xc6b096['push'](_0x47c65a);});else((_0x523ec7=_0x5be5e7[_0x359a59(0x1ad)]())===null||_0x523ec7===void 0x0?void 0x0:_0x523ec7[_0x359a59(0x1bb)]())===_0x359a59(0x1b1)?_0xc6b096=_0x5be5e7[_0x359a59(0x1ad)]()[_0x359a59(0x1ab)]():_0xc6b096=[(_0x1859c0=_0x5be5e7[_0x359a59(0x1ad)]())===null||_0x1859c0===void 0x0?void 0x0:_0x1859c0['getCoordinates']()];}return new a49_0x54c0d9([_0x5be5e7['getGeometry'](),new MultiPoint(_0xc6b096)]);}});export default class Modify extends Select{constructor(_0x44de42){var _0x22df0a=a49_0xcb56ac;_0x44de42=_0x44de42||{};const _0x33d04c=Object[_0x22df0a(0x1bc)]({},_0x44de42);_0x33d04c['style']=selectModifyStyle,_0x33d04c[_0x22df0a(0x1a3)]=_0xec060=>{var _0x2bbab2=_0x22df0a;if(!_0xec060[_0x2bbab2(0x19e)])return![];if(this[_0x2bbab2(0x1c0)]==undefined||this[_0x2bbab2(0x1c0)]['length']==0x0)return![];return this[_0x2bbab2(0x1c0)][_0x2bbab2(0x1b3)](_0x32e291=>_0x32e291[_0x2bbab2(0x1bf)]()===_0xec060[_0x2bbab2(0x1bf)]());},super(_0x33d04c),this['map']=null,this[_0x22df0a(0x1c0)]=_0x44de42[_0x22df0a(0x1b7)],this['modifyInteraction']=new a49_0x49a0e1({'features':this[_0x22df0a(0x1b5)]()}),this[_0x22df0a(0x1a5)]=new a49_0x254a77({'features':this[_0x22df0a(0x1b5)](),'condition':platformModifierKeyOnly}),this[_0x22df0a(0x1b5)]()['on'](_0x22df0a(0x1ba),_0x3e513f=>{var _0x22165c=_0x22df0a,_0x4a5249,_0x447ea8;this[_0x22165c(0x1a4)]=this[_0x22165c(0x1a7)](),(_0x4a5249=this[_0x22165c(0x1a7)]())===null||_0x4a5249===void 0x0?void 0x0:_0x4a5249['addInteraction'](this[_0x22165c(0x1a0)]),(_0x447ea8=this[_0x22165c(0x1a7)]())===null||_0x447ea8===void 0x0?void 0x0:_0x447ea8[_0x22165c(0x1b4)](this[_0x22165c(0x1a5)]);}),this[_0x22df0a(0x1b5)]()['on'](_0x22df0a(0x1c1),_0x23fc91=>{var _0x3fb3e4=_0x22df0a,_0xda4a37,_0x5460f6;(_0xda4a37=this[_0x3fb3e4(0x1a7)]())===null||_0xda4a37===void 0x0?void 0x0:_0xda4a37['removeInteraction'](this[_0x3fb3e4(0x1a0)]),(_0x5460f6=this[_0x3fb3e4(0x1a7)]())===null||_0x5460f6===void 0x0?void 0x0:_0x5460f6[_0x3fb3e4(0x1bd)](this[_0x3fb3e4(0x1a5)]),this[_0x3fb3e4(0x1a7)]()[_0x3fb3e4(0x19d)]();});}[a49_0xcb56ac(0x1c2)](_0xca010d){var _0x275ca9=a49_0xcb56ac;super[_0x275ca9(0x1c2)](_0xca010d),!_0xca010d&&this[_0x275ca9(0x1a4)]&&(this[_0x275ca9(0x1a4)][_0x275ca9(0x1bd)](this[_0x275ca9(0x1a0)]),this[_0x275ca9(0x1a4)][_0x275ca9(0x1bd)](this['translate']));}}
@@ -1 +1 @@
1
- const a50_0x4002ec=a50_0x85b8;(function(_0x1537d9,_0x39d474){const _0xc2fff1=a50_0x85b8,_0x439d2e=_0x1537d9();while(!![]){try{const _0x4d1e5f=-parseInt(_0xc2fff1(0x15c))/0x1+parseInt(_0xc2fff1(0x155))/0x2*(parseInt(_0xc2fff1(0x171))/0x3)+-parseInt(_0xc2fff1(0x157))/0x4+-parseInt(_0xc2fff1(0x141))/0x5+-parseInt(_0xc2fff1(0x15d))/0x6+-parseInt(_0xc2fff1(0x146))/0x7*(-parseInt(_0xc2fff1(0x17c))/0x8)+parseInt(_0xc2fff1(0x140))/0x9;if(_0x4d1e5f===_0x39d474)break;else _0x439d2e['push'](_0x439d2e['shift']());}catch(_0x356eba){_0x439d2e['push'](_0x439d2e['shift']());}}}(a50_0x3e2f,0x481d2));import a50_0xe1763b from'./Draw';function a50_0x3e2f(){const _0x2e7448=['getGeometry','push','11258226rkFgIK','1393410DMnMGt','selectLayer','selected','pointFeatures','tempLayer','539YxgJZx','ctrlKey','layerId','getSelectedFeatures','fromType','selectedPolygonFeatures','tipText','LineString','cancePolygonStyle','selectTempLayer','selectLayers','length','union','setSelectLayers','selectIndex','2akVDWM','dispatchEvent','2141864PPuYAk','addFeatures','forEach','holdCtrl','currentLayers','387481dpmuqF','268278lCuSon','getMap','copy','Point','getLayerById','getType','getProjection','seletctEditeFeature','polygonStyle','setStyle','getVisible','getResolution','getView','cancePointStyle','selectedLineFeatures','feature','addTempLayer','cut','includes','getLayers','865257SvTqQe','SELECTED','keyup','addEventListener','pointStyle','Polygon','lineFeatures','getArray','canceLineStyle','keydown','MultiPolygon','248wcRuOg','SELECTSTART','coordinates','pixelDistance','allSelectedFeatures','lineStyle','import','url','filter','draw','MultiPoint','polygonFeatures','drawEnd','MultiLineString','selectedPointFeatures','selectGeom','loadFilter'];a50_0x3e2f=function(){return _0x2e7448;};return a50_0x3e2f();}import a50_0x4b229b from'ol/events/Event';import{bufferPixel,intersects}from'../utils/GeometryUtil';import{Point}from'ol/geom';function a50_0x85b8(_0x362bf7,_0x253fd4){const _0x3e2f46=a50_0x3e2f();return a50_0x85b8=function(_0x85b80c,_0x168adf){_0x85b80c=_0x85b80c-0x131;let _0x2fba10=_0x3e2f46[_0x85b80c];return _0x2fba10;},a50_0x85b8(_0x362bf7,_0x253fd4);}import a50_0x500717 from'../feature/FeatureManager';import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';import{selectFeaturesByGeo}from'../utils/tasks';const SelectEventType={'SELECTSTART':'selectStart','SELECTED':a50_0x4002ec(0x143)};export class SelectEvent extends a50_0x4b229b{constructor(_0x15e2e0,_0x500ed8,_0x637a31,_0x2a940b,_0x274434,_0x1586fc,_0x6b4be8,_0x4b3acb,_0xa33a33){const _0x2efb96=a50_0x4002ec;super(_0x15e2e0),this[_0x2efb96(0x13c)]=_0x637a31,this[_0x2efb96(0x17e)]=_0x2a940b,this[_0x2efb96(0x144)]=_0x274434,this[_0x2efb96(0x177)]=_0x1586fc,this[_0x2efb96(0x138)]=_0x6b4be8,this['allFeatures']=_0x4b3acb,this['error']=_0xa33a33,this[_0x2efb96(0x15a)]=_0x500ed8;}}export default class Select extends a50_0xe1763b{constructor(_0x4b9891,_0x26148e){const _0x5182c0=a50_0x4002ec;super(_0x4b9891,{'tipText':_0x26148e===null||_0x26148e===void 0x0?void 0x0:_0x26148e[_0x5182c0(0x14c)]}),this[_0x5182c0(0x13b)]=[],this['selectedLineFeatures']=[],this[_0x5182c0(0x14b)]=[],this[_0x5182c0(0x131)]=[];const _0x4e3320=_0x26148e||{};this[_0x5182c0(0x16d)]=_0x4e3320['addTempLayer']||![],this['currentLayers']=_0x4e3320[_0x5182c0(0x150)],this[_0x5182c0(0x14f)]=_0x4e3320[_0x5182c0(0x14f)]===undefined?!![]:_0x4e3320[_0x5182c0(0x14f)],this[_0x5182c0(0x17f)]=_0x4e3320[_0x5182c0(0x17f)]===undefined?0x5:_0x4e3320['pixelDistance'],this[_0x5182c0(0x175)]=_0x4e3320['pointStyle']?getStyle(_0x4e3320[_0x5182c0(0x175)]):getSelectPointStyle(),this[_0x5182c0(0x16a)]=_0x4e3320[_0x5182c0(0x16a)]?getStyle(_0x4e3320['cancePointStyle']):getSelectCancePointStyle(),this[_0x5182c0(0x132)]=_0x4e3320[_0x5182c0(0x132)]?getStyle(_0x4e3320[_0x5182c0(0x132)]):getSelectLineStyle(),this[_0x5182c0(0x179)]=_0x4e3320[_0x5182c0(0x179)]?getStyle(_0x4e3320[_0x5182c0(0x179)]):getSelectCancelLineStyle(),this['polygonStyle']=_0x4e3320[_0x5182c0(0x165)]?getStyle(_0x4e3320[_0x5182c0(0x165)]):getSelectPolygonStyle(),this['cancePolygonStyle']=_0x4e3320[_0x5182c0(0x14e)]?getStyle(_0x4e3320[_0x5182c0(0x14e)]):getSelectCancelPolygonStyle(),this['holdCtrl']=![];let _0x40b3e6;this['on']=this['onInternal'],this['on'](_0x5182c0(0x139),async _0x24da39=>{const _0x576bc6=_0x5182c0,_0x4060e8=this[_0x576bc6(0x15a)],_0x3c1ecd=this['getMap']();if(!_0x3c1ecd)return;try{let _0x2d59f2=undefined;if(!_0x24da39[_0x576bc6(0x16c)]&&_0x24da39[_0x576bc6(0x17e)]&&_0x24da39[_0x576bc6(0x17e)][_0x576bc6(0x151)]==0x1)_0x2d59f2=bufferPixel(new Point(_0x24da39['coordinates'][0x0]),this[_0x576bc6(0x17f)],_0x3c1ecd);else _0x24da39[_0x576bc6(0x16c)]&&(_0x2d59f2=_0x24da39[_0x576bc6(0x16c)][_0x576bc6(0x13e)]());if(!_0x2d59f2)throw new Error('未获取到几何');this[_0x576bc6(0x156)](new SelectEvent(SelectEventType[_0x576bc6(0x17d)],_0x4060e8,_0x2d59f2)),this[_0x576bc6(0x13b)]=[],this[_0x576bc6(0x16b)]=[],this[_0x576bc6(0x14b)]=[],this['allSelectedFeatures']=[],this[_0x576bc6(0x14f)]&&this[_0x576bc6(0x164)](_0x2d59f2),_0x40b3e6&&clearTimeout(_0x40b3e6),_0x40b3e6=setTimeout(async()=>{const _0x2e6ac3=_0x576bc6;await this[_0x2e6ac3(0x142)](_0x2d59f2),this[_0x2e6ac3(0x156)](new SelectEvent(SelectEventType[_0x2e6ac3(0x172)],_0x4060e8,_0x2d59f2,_0x24da39[_0x2e6ac3(0x17e)],this['selectedPointFeatures'],this[_0x2e6ac3(0x16b)],this[_0x2e6ac3(0x14b)],this[_0x2e6ac3(0x131)]));},0x46);}catch(_0x2e6051){this['dispatchEvent'](new SelectEvent(SelectEventType[_0x576bc6(0x172)],_0x4060e8,undefined,_0x24da39[_0x576bc6(0x17e)],this[_0x576bc6(0x13b)],this[_0x576bc6(0x16b)],this['selectedPolygonFeatures'],this['allSelectedFeatures'],_0x2e6051['message']));}}),window[_0x5182c0(0x174)](_0x5182c0(0x17a),_0x9723a9=>{const _0xe7c909=_0x5182c0;_0x9723a9[_0xe7c909(0x147)]&&(this[_0xe7c909(0x15a)]=!![]);}),window[_0x5182c0(0x174)](_0x5182c0(0x173),_0x653a28=>{const _0x15bfc9=_0x5182c0;this[_0x15bfc9(0x15a)]=![];});}[a50_0x4002ec(0x153)](_0xa5a8c0){const _0x342d29=a50_0x4002ec;this[_0x342d29(0x15b)]=_0xa5a8c0;}async[a50_0x4002ec(0x142)](_0xbbf8d7){const _0x42f138=a50_0x4002ec;var _0x1fdd4b;const _0x1ab9e9=this[_0x42f138(0x15e)]();let _0x109b04=[];if(this['currentLayers']&&this[_0x42f138(0x15b)][_0x42f138(0x151)]>0x0)_0x109b04=this[_0x42f138(0x15b)];else{let _0xfd8a04=_0x1ab9e9[_0x42f138(0x170)]()[_0x42f138(0x178)]();_0xfd8a04=_0xfd8a04[_0x42f138(0x135)](_0xcbdb42=>{const _0x514dfc=_0x42f138,_0x465656=_0xcbdb42['layerInfo'];if(!_0x465656)return![];return _0xcbdb42[_0x514dfc(0x167)]()==!![]&&_0x465656[_0x514dfc(0x154)]!=undefined&&_0x465656['selectIndex']!='';}),_0x109b04=_0xfd8a04['map'](_0x5b6acf=>{return _0x5b6acf['layerInfo'];});}if(!_0x109b04||_0x109b04[_0x42f138(0x151)]==0x0)return;const _0xd022b7=_0x1ab9e9[_0x42f138(0x169)]()[_0x42f138(0x163)]()['getCode'](),_0x4d9a13=_0x1ab9e9[_0x42f138(0x169)]()[_0x42f138(0x168)]();for(let _0x3393d1=0x0,_0x19b14a=_0x109b04[_0x42f138(0x151)];_0x3393d1<_0x19b14a;_0x3393d1++){const _0x532c78=_0x109b04[_0x3393d1],_0x4d44a8=_0x1ab9e9[_0x42f138(0x161)](_0x532c78['id']);if(!_0x4d44a8||_0x4d44a8[_0x42f138(0x167)]()==![]||!_0x532c78||!_0x532c78['url']||!_0x532c78[_0x42f138(0x154)])continue;let _0x3c94f0=await selectFeaturesByGeo(_0xbbf8d7,_0xd022b7,_0x532c78[_0x42f138(0x134)],_0x532c78[_0x42f138(0x154)],_0x532c78['layerType'],_0x532c78[_0x42f138(0x13d)],_0x4d9a13);if(_0x3c94f0[_0x42f138(0x151)]>0x0){this['allSelectedFeatures'][_0x42f138(0x13f)](..._0x3c94f0);let _0xa51e04=_0x1ab9e9['getPolygonTempLayer'](),_0x230412=this[_0x42f138(0x165)];switch((_0x1fdd4b=_0x3c94f0[0x0]['getGeometry']())===null||_0x1fdd4b===void 0x0?void 0x0:_0x1fdd4b[_0x42f138(0x162)]()){case _0x42f138(0x160):case _0x42f138(0x137):this['selectedPointFeatures'][_0x42f138(0x13f)](..._0x3c94f0),_0xa51e04=_0x1ab9e9['getPointTempLayer'](),_0x230412=this[_0x42f138(0x175)];break;case _0x42f138(0x14d):case _0x42f138(0x13a):this[_0x42f138(0x16b)][_0x42f138(0x13f)](..._0x3c94f0),_0xa51e04=_0x1ab9e9['getLineTempLayer'](),_0x230412=this[_0x42f138(0x132)];break;case _0x42f138(0x176):case _0x42f138(0x17b):this[_0x42f138(0x14b)]['push'](..._0x3c94f0),_0xa51e04=_0x1ab9e9['getPolygonTempLayer'](),_0x230412=this['polygonStyle'];break;default:break;}const _0x279610=_0xa51e04['getSource']();_0x279610&&(_0x3c94f0[_0x42f138(0x159)](_0x49ac5=>{const _0x538752=_0x42f138;_0x49ac5[_0x538752(0x148)]=_0x532c78['id'],_0x49ac5[_0x538752(0x145)]=_0xa51e04,_0x49ac5[_0x538752(0x166)](_0x230412);}),this[_0x42f138(0x16d)]&&_0x279610[_0x42f138(0x158)](_0x3c94f0));}}}[a50_0x4002ec(0x164)](_0x15f2eb){const _0x5b9c6f=a50_0x4002ec,_0x48ac03=new a50_0x500717(this[_0x5b9c6f(0x15e)]()),_0x18b068=_0x48ac03[_0x5b9c6f(0x149)]();if(!_0x18b068||_0x18b068['length']===0x0)return[];const _0x1f5ef9=[_0x5b9c6f(0x15f),_0x5b9c6f(0x16e),_0x5b9c6f(0x136),_0x5b9c6f(0x133),_0x5b9c6f(0x152)],_0x97b550=[];for(const _0x50f1ee of _0x18b068){if(!_0x50f1ee||!_0x50f1ee[_0x5b9c6f(0x14a)]||!_0x1f5ef9[_0x5b9c6f(0x16f)](_0x50f1ee['fromType']))continue;const _0x46ebf5=_0x50f1ee[_0x5b9c6f(0x13e)]();if(!_0x46ebf5)continue;if(!intersects(_0x46ebf5,_0x15f2eb))continue;let _0x37f6ec=this[_0x5b9c6f(0x165)];this[_0x5b9c6f(0x131)]['push'](_0x50f1ee);switch(_0x46ebf5[_0x5b9c6f(0x162)]()){case _0x5b9c6f(0x160):case'MultiPoint':this[_0x5b9c6f(0x13b)][_0x5b9c6f(0x13f)](_0x50f1ee),_0x37f6ec=this[_0x5b9c6f(0x175)];break;case _0x5b9c6f(0x14d):case'MultiLineString':this['selectedLineFeatures'][_0x5b9c6f(0x13f)](_0x50f1ee),_0x37f6ec=this[_0x5b9c6f(0x132)];break;case _0x5b9c6f(0x176):case'MultiPolygon':this[_0x5b9c6f(0x14b)][_0x5b9c6f(0x13f)](_0x50f1ee),_0x37f6ec=this[_0x5b9c6f(0x165)];break;default:break;}_0x50f1ee[_0x5b9c6f(0x166)](_0x37f6ec);}return _0x97b550;}}
1
+ const a50_0x216ff5=a50_0x3c84;(function(_0x5b32c9,_0x38fd23){const _0x493e08=a50_0x3c84,_0x581cb6=_0x5b32c9();while(!![]){try{const _0x48c32c=-parseInt(_0x493e08(0xe0))/0x1+parseInt(_0x493e08(0xb7))/0x2+parseInt(_0x493e08(0xb3))/0x3+parseInt(_0x493e08(0xc2))/0x4*(-parseInt(_0x493e08(0xd7))/0x5)+parseInt(_0x493e08(0xcc))/0x6+parseInt(_0x493e08(0xba))/0x7+-parseInt(_0x493e08(0xee))/0x8;if(_0x48c32c===_0x38fd23)break;else _0x581cb6['push'](_0x581cb6['shift']());}catch(_0x220107){_0x581cb6['push'](_0x581cb6['shift']());}}}(a50_0x5cb9,0x9b46e));import a50_0x1d2afc from'./Draw';import a50_0x3a24c7 from'ol/events/Event';import{bufferPixel,intersects}from'../utils/GeometryUtil';import{Point}from'ol/geom';import a50_0x42c68d from'../feature/FeatureManager';import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';import{selectFeaturesByGeo}from'../utils/tasks';const SelectEventType={'SELECTSTART':'selectStart','SELECTED':a50_0x216ff5(0xfa)};function a50_0x3c84(_0x347a6f,_0x50bcc3){const _0x5cb987=a50_0x5cb9();return a50_0x3c84=function(_0x3c8464,_0x1e21be){_0x3c8464=_0x3c8464-0xad;let _0x4d7d87=_0x5cb987[_0x3c8464];return _0x4d7d87;},a50_0x3c84(_0x347a6f,_0x50bcc3);}export class SelectEvent extends a50_0x3a24c7{constructor(_0x5b0f92,_0x6b2e05,_0x528445,_0x5acf87,_0x575dc3,_0x2601db,_0x80258d,_0x184246,_0x46aac7){const _0x25de25=a50_0x216ff5;super(_0x5b0f92),this['selectGeom']=_0x528445,this[_0x25de25(0xc6)]=_0x5acf87,this[_0x25de25(0xc9)]=_0x575dc3,this['lineFeatures']=_0x2601db,this[_0x25de25(0xd8)]=_0x80258d,this[_0x25de25(0xc4)]=_0x184246,this[_0x25de25(0xf1)]=_0x46aac7,this[_0x25de25(0xd0)]=_0x6b2e05;}}export default class Select extends a50_0x1d2afc{constructor(_0xf4c26d,_0x2ada76){const _0x57eedd=a50_0x216ff5;super(_0xf4c26d,{'tipText':_0x2ada76===null||_0x2ada76===void 0x0?void 0x0:_0x2ada76[_0x57eedd(0xc1)]}),this[_0x57eedd(0xc5)]=[],this['selectedLineFeatures']=[],this[_0x57eedd(0xfb)]=[],this[_0x57eedd(0xb1)]=[];const _0xe06a55=_0x2ada76||{};this['addTempLayer']=_0xe06a55[_0x57eedd(0xb9)]||![],this[_0x57eedd(0xec)]=_0xe06a55[_0x57eedd(0xd6)],this['selectTempLayer']=_0xe06a55['selectTempLayer']===undefined?!![]:_0xe06a55['selectTempLayer'],this[_0x57eedd(0xcb)]=_0xe06a55[_0x57eedd(0xcb)]===undefined?0x5:_0xe06a55[_0x57eedd(0xcb)],this[_0x57eedd(0xae)]=_0xe06a55[_0x57eedd(0xae)]?getStyle(_0xe06a55[_0x57eedd(0xae)]):getSelectPointStyle(),this[_0x57eedd(0xdc)]=_0xe06a55[_0x57eedd(0xdc)]?getStyle(_0xe06a55['cancePointStyle']):getSelectCancePointStyle(),this['lineStyle']=_0xe06a55[_0x57eedd(0xe9)]?getStyle(_0xe06a55[_0x57eedd(0xe9)]):getSelectLineStyle(),this[_0x57eedd(0xf4)]=_0xe06a55[_0x57eedd(0xf4)]?getStyle(_0xe06a55[_0x57eedd(0xf4)]):getSelectCancelLineStyle(),this[_0x57eedd(0xb8)]=_0xe06a55['polygonStyle']?getStyle(_0xe06a55[_0x57eedd(0xb8)]):getSelectPolygonStyle(),this[_0x57eedd(0xaf)]=_0xe06a55[_0x57eedd(0xaf)]?getStyle(_0xe06a55[_0x57eedd(0xaf)]):getSelectCancelPolygonStyle(),this[_0x57eedd(0xd0)]=![];let _0x1b9077;this['on']=this[_0x57eedd(0xde)],this['on'](_0x57eedd(0xcd),async _0x46d195=>{const _0x3e325a=_0x57eedd,_0x29eb63=this[_0x3e325a(0xd0)],_0x2c6a44=this[_0x3e325a(0xe7)]();if(!_0x2c6a44)return;try{let _0x3e78c9=undefined;if(!_0x46d195[_0x3e325a(0xd9)]&&_0x46d195[_0x3e325a(0xc6)]&&_0x46d195[_0x3e325a(0xc6)][_0x3e325a(0xdf)]==0x1)_0x3e78c9=bufferPixel(new Point(_0x46d195['coordinates'][0x0]),this['pixelDistance'],_0x2c6a44);else _0x46d195[_0x3e325a(0xd9)]&&(_0x3e78c9=_0x46d195[_0x3e325a(0xd9)][_0x3e325a(0xb6)]());if(!_0x3e78c9)throw new Error(_0x3e325a(0xf7));this[_0x3e325a(0xef)](new SelectEvent(SelectEventType[_0x3e325a(0xd2)],_0x29eb63,_0x3e78c9)),this[_0x3e325a(0xc5)]=[],this[_0x3e325a(0xfc)]=[],this[_0x3e325a(0xfb)]=[],this[_0x3e325a(0xb1)]=[],this[_0x3e325a(0xe6)]&&this['seletctEditeFeature'](_0x3e78c9),_0x1b9077&&clearTimeout(_0x1b9077),_0x1b9077=setTimeout(async()=>{const _0x21a37c=_0x3e325a;await this[_0x21a37c(0xd1)](_0x3e78c9),this[_0x21a37c(0xef)](new SelectEvent(SelectEventType['SELECTED'],_0x29eb63,_0x3e78c9,_0x46d195[_0x21a37c(0xc6)],this['selectedPointFeatures'],this['selectedLineFeatures'],this[_0x21a37c(0xfb)],this[_0x21a37c(0xb1)]));},0x46);}catch(_0x1642cb){this[_0x3e325a(0xef)](new SelectEvent(SelectEventType[_0x3e325a(0xf2)],_0x29eb63,undefined,_0x46d195[_0x3e325a(0xc6)],this[_0x3e325a(0xc5)],this[_0x3e325a(0xfc)],this['selectedPolygonFeatures'],this['allSelectedFeatures'],_0x1642cb[_0x3e325a(0xeb)]));}}),window[_0x57eedd(0xbd)]('keydown',_0xfe35e1=>{const _0x27a706=_0x57eedd;_0xfe35e1[_0x27a706(0xf3)]&&(this['holdCtrl']=!![]);}),window[_0x57eedd(0xbd)](_0x57eedd(0xbf),_0x2c49e7=>{const _0x38d830=_0x57eedd;this[_0x38d830(0xd0)]=![];});}['setSelectLayers'](_0x3d30a3){const _0x4db3eb=a50_0x216ff5;this[_0x4db3eb(0xec)]=_0x3d30a3;}async['selectLayer'](_0x310c5d){const _0x140459=a50_0x216ff5;var _0x18c476;const _0x399e4e=this[_0x140459(0xe7)]();let _0x425bf6=[];if(this['currentLayers']&&this[_0x140459(0xec)][_0x140459(0xdf)]>0x0)_0x425bf6=this['currentLayers'];else{let _0x2df82e=_0x399e4e[_0x140459(0xd3)]()[_0x140459(0xdd)]();_0x2df82e=_0x2df82e['filter'](_0x7b867f=>{const _0x4fc9e7=_0x140459,_0x50d258=_0x7b867f['layerInfo'];if(!_0x50d258)return![];return _0x7b867f[_0x4fc9e7(0xed)]()==!![]&&_0x50d258[_0x4fc9e7(0xf0)]!=undefined&&_0x50d258[_0x4fc9e7(0xf0)]!='';}),_0x425bf6=_0x2df82e['map'](_0x3d9438=>{const _0x333252=_0x140459;return _0x3d9438[_0x333252(0xca)];});}if(!_0x425bf6||_0x425bf6[_0x140459(0xdf)]==0x0)return;const _0x1a555e=_0x399e4e[_0x140459(0xe5)]()['getProjection']()[_0x140459(0xc3)](),_0x3d1bcb=_0x399e4e[_0x140459(0xe5)]()[_0x140459(0xf8)]();for(let _0x595354=0x0,_0x1ea6bb=_0x425bf6['length'];_0x595354<_0x1ea6bb;_0x595354++){const _0x2d92ef=_0x425bf6[_0x595354],_0x3bdb00=_0x399e4e[_0x140459(0xe8)](_0x2d92ef['id']);if(!_0x3bdb00||_0x3bdb00[_0x140459(0xed)]()==![]||!_0x2d92ef||!_0x2d92ef[_0x140459(0xb2)]||!_0x2d92ef[_0x140459(0xf0)])continue;let _0xf3ca16=await selectFeaturesByGeo(_0x310c5d,_0x1a555e,_0x2d92ef[_0x140459(0xb2)],_0x2d92ef[_0x140459(0xf0)],_0x2d92ef[_0x140459(0xb5)],_0x2d92ef[_0x140459(0xdb)],_0x3d1bcb);if(_0xf3ca16[_0x140459(0xdf)]>0x0){this[_0x140459(0xb1)][_0x140459(0xb4)](..._0xf3ca16);let _0x4170d0=_0x399e4e[_0x140459(0xf9)](),_0x1be530=this['polygonStyle'];switch((_0x18c476=_0xf3ca16[0x0][_0x140459(0xb6)]())===null||_0x18c476===void 0x0?void 0x0:_0x18c476[_0x140459(0xd5)]()){case _0x140459(0xe2):case _0x140459(0xd4):this['selectedPointFeatures'][_0x140459(0xb4)](..._0xf3ca16),_0x4170d0=_0x399e4e[_0x140459(0xf6)](),_0x1be530=this[_0x140459(0xae)];break;case _0x140459(0xc8):case _0x140459(0xb0):this[_0x140459(0xfc)][_0x140459(0xb4)](..._0xf3ca16),_0x4170d0=_0x399e4e['getLineTempLayer'](),_0x1be530=this[_0x140459(0xe9)];break;case'Polygon':case _0x140459(0xf5):this[_0x140459(0xfb)][_0x140459(0xb4)](..._0xf3ca16),_0x4170d0=_0x399e4e[_0x140459(0xf9)](),_0x1be530=this[_0x140459(0xb8)];break;default:break;}const _0xdc9aff=_0x4170d0[_0x140459(0xbc)]();_0xdc9aff&&(_0xf3ca16[_0x140459(0xcf)](_0x8f47f6=>{const _0x213d8c=_0x140459;_0x8f47f6[_0x213d8c(0xea)]=_0x2d92ef['id'],_0x8f47f6[_0x213d8c(0xc7)]=_0x4170d0,_0x8f47f6['setStyle'](_0x1be530);}),this['addTempLayer']&&_0xdc9aff[_0x140459(0xbe)](_0xf3ca16));}}}[a50_0x216ff5(0xbb)](_0x241a0e){const _0x48be02=a50_0x216ff5,_0xbd4dd5=new a50_0x42c68d(this['getMap']()),_0x313b85=_0xbd4dd5['getSelectedFeatures']();if(!_0x313b85||_0x313b85[_0x48be02(0xdf)]===0x0)return[];const _0x546ee7=[_0x48be02(0xc0),_0x48be02(0xe4),_0x48be02(0xda),_0x48be02(0xe3),_0x48be02(0xce)],_0x52f4cd=[];for(const _0x29ebd1 of _0x313b85){if(!_0x29ebd1||!_0x29ebd1[_0x48be02(0xad)]||!_0x546ee7[_0x48be02(0xe1)](_0x29ebd1['fromType']))continue;const _0xd4f493=_0x29ebd1[_0x48be02(0xb6)]();if(!_0xd4f493)continue;if(!intersects(_0xd4f493,_0x241a0e))continue;let _0x264e6f=this[_0x48be02(0xb8)];this[_0x48be02(0xb1)]['push'](_0x29ebd1);switch(_0xd4f493['getType']()){case _0x48be02(0xe2):case _0x48be02(0xd4):this['selectedPointFeatures'][_0x48be02(0xb4)](_0x29ebd1),_0x264e6f=this[_0x48be02(0xae)];break;case'LineString':case _0x48be02(0xb0):this['selectedLineFeatures'][_0x48be02(0xb4)](_0x29ebd1),_0x264e6f=this[_0x48be02(0xe9)];break;case'Polygon':case _0x48be02(0xf5):this[_0x48be02(0xfb)][_0x48be02(0xb4)](_0x29ebd1),_0x264e6f=this[_0x48be02(0xb8)];break;default:break;}_0x29ebd1['setStyle'](_0x264e6f);}return _0x52f4cd;}}function a50_0x5cb9(){const _0x5416e1=['allSelectedFeatures','url','3178776OWpAux','push','layerType','getGeometry','954504EVQQGc','polygonStyle','addTempLayer','5529650erXqkS','seletctEditeFeature','getSource','addEventListener','addFeatures','keyup','copy','tipText','1525912ThyQgF','getCode','allFeatures','selectedPointFeatures','coordinates','tempLayer','LineString','pointFeatures','layerInfo','pixelDistance','363354dyoyQE','drawEnd','union','forEach','holdCtrl','selectLayer','SELECTSTART','getLayers','MultiPoint','getType','selectLayers','5HCwKno','polygonFeatures','feature','draw','loadFilter','cancePointStyle','getArray','onInternal','length','6969aelYlI','includes','Point','import','cut','getView','selectTempLayer','getMap','getLayerById','lineStyle','layerId','message','currentLayers','getVisible','10903136oUXndW','dispatchEvent','selectIndex','error','SELECTED','ctrlKey','canceLineStyle','MultiPolygon','getPointTempLayer','未获取到几何','getResolution','getPolygonTempLayer','selected','selectedPolygonFeatures','selectedLineFeatures','fromType','pointStyle','cancePolygonStyle','MultiLineString'];a50_0x5cb9=function(){return _0x5416e1;};return a50_0x5cb9();}
@@ -1 +1 @@
1
- function a51_0x558c(_0xed8d8a,_0x226a9c){const _0x552f7f=a51_0x552f();return a51_0x558c=function(_0x558c2c,_0x349d90){_0x558c2c=_0x558c2c-0x176;let _0x380d59=_0x552f7f[_0x558c2c];return _0x380d59;},a51_0x558c(_0xed8d8a,_0x226a9c);}const a51_0xe2735d=a51_0x558c;(function(_0xeed394,_0x653a71){const _0x3bb6ef=a51_0x558c,_0x392ced=_0xeed394();while(!![]){try{const _0x5d345a=-parseInt(_0x3bb6ef(0x17a))/0x1+-parseInt(_0x3bb6ef(0x180))/0x2+parseInt(_0x3bb6ef(0x18f))/0x3*(parseInt(_0x3bb6ef(0x196))/0x4)+-parseInt(_0x3bb6ef(0x1a0))/0x5*(parseInt(_0x3bb6ef(0x184))/0x6)+parseInt(_0x3bb6ef(0x188))/0x7*(parseInt(_0x3bb6ef(0x18a))/0x8)+-parseInt(_0x3bb6ef(0x19a))/0x9*(-parseInt(_0x3bb6ef(0x19b))/0xa)+parseInt(_0x3bb6ef(0x190))/0xb*(parseInt(_0x3bb6ef(0x181))/0xc);if(_0x5d345a===_0x653a71)break;else _0x392ced['push'](_0x392ced['shift']());}catch(_0x195d91){_0x392ced['push'](_0x392ced['shift']());}}}(a51_0x552f,0x8b017));import a51_0x1fc974 from'./Draw';import a51_0x1557e2 from'ol/events/Event';import{LineString,Polygon,MultiPolygon,MultiLineString}from'ol/geom';import{jstlSplit,splitLineByLine}from'../utils/GeometryUtil';function a51_0x552f(){const _0x420a8d=['863828jWykFN','setFeatures','SPLITSTART','splitFeatures','5384088hggiHR','10SPkvAu','layerId','getMap','sourceFeatures','clone','5444955rUlNLr','SPLITED','polyline','splitLine','getGeometry','1110447DugTJO','splitStart','features','addTempLayer','splitLineStyle','未获取到分割要素','2010438nXzaxJ','664716ylmpFs','未获取到地图对象','dispatchEvent','6ZwQIsr','tipText','setGeometry','tempLayer','56JhUMWz','drawEnd','577936GPuzMU','feature','getSource','onInternal','push','3jOMwcs','473mVizKX','message','rgba(255,\x200,\x200,\x201)','fromType','error','length'];a51_0x552f=function(){return _0x420a8d;};return a51_0x552f();}const SplitEventType={'SPLITSTART':a51_0xe2735d(0x17b),'SPLITED':'splited'};export class SplitEvent extends a51_0x1557e2{constructor(_0x437948,_0x94dc0c,_0x51ea66,_0x5c476f){const _0x46e298=a51_0xe2735d;super(_0x437948),this[_0x46e298(0x178)]=_0x94dc0c,this[_0x46e298(0x17c)]=_0x51ea66,this[_0x46e298(0x194)]=_0x5c476f;}}export default class Split extends a51_0x1fc974{constructor(_0x3b1de6,_0x578c13){const _0x4024f1=a51_0xe2735d,_0x280e41=(_0x578c13===null||_0x578c13===void 0x0?void 0x0:_0x578c13[_0x4024f1(0x17e)])||{'outlineColor':_0x4024f1(0x192),'outlineWidth':0x2};super(_0x4024f1(0x177),{'tipText':_0x578c13===null||_0x578c13===void 0x0?void 0x0:_0x578c13[_0x4024f1(0x185)],'style':_0x280e41}),this['sourceFeatures']=_0x3b1de6;const _0x49068c=_0x578c13||{};this['addTempLayer']=_0x49068c[_0x4024f1(0x17d)]||![],this['on']=this[_0x4024f1(0x18d)],this['on'](_0x4024f1(0x189),async _0x112741=>{const _0x3a627b=_0x4024f1;var _0x9ecec5;const _0x1501c6=this[_0x3a627b(0x19d)]();let _0x28fc1e=(_0x9ecec5=_0x112741[_0x3a627b(0x18b)])===null||_0x9ecec5===void 0x0?void 0x0:_0x9ecec5[_0x3a627b(0x179)]();!_0x28fc1e&&this[_0x3a627b(0x183)](new SplitEvent(SplitEventType[_0x3a627b(0x176)],undefined,undefined,'未获取到绘制的分割线'));let _0x164a0a=_0x28fc1e;!_0x1501c6&&this[_0x3a627b(0x183)](new SplitEvent(SplitEventType['SPLITED'],_0x164a0a,undefined,_0x3a627b(0x182)));(!this['sourceFeatures']||this[_0x3a627b(0x19e)]['length']===0x0)&&this[_0x3a627b(0x183)](new SplitEvent(SplitEventType[_0x3a627b(0x176)],_0x164a0a,undefined,_0x3a627b(0x17f)));try{this[_0x3a627b(0x183)](new SplitEvent(SplitEventType[_0x3a627b(0x198)],_0x164a0a));const _0x161600=this[_0x3a627b(0x199)](_0x164a0a);this[_0x3a627b(0x183)](new SplitEvent(SplitEventType[_0x3a627b(0x176)],_0x164a0a,_0x161600));}catch(_0x3be3f2){this[_0x3a627b(0x183)](new SplitEvent(SplitEventType[_0x3a627b(0x176)],_0x164a0a,undefined,_0x3be3f2[_0x3a627b(0x191)]));}});}[a51_0xe2735d(0x199)](_0x3fff42){const _0xbb72b2=a51_0xe2735d;var _0x12e5f5;const _0x49a2d7=[],_0x3ec2f3=(_0x12e5f5=this[_0xbb72b2(0x19e)][0x0][_0xbb72b2(0x187)])===null||_0x12e5f5===void 0x0?void 0x0:_0x12e5f5[_0xbb72b2(0x18c)]();for(let _0xea6037=0x0;_0xea6037<this[_0xbb72b2(0x19e)][_0xbb72b2(0x195)];_0xea6037++){const _0x10e354=this['sourceFeatures'][_0xea6037],_0x1930e1=_0x10e354[_0xbb72b2(0x179)]();let _0x5e001a=[];if(_0x1930e1 instanceof Polygon||_0x1930e1 instanceof MultiPolygon)_0x5e001a=jstlSplit(_0x1930e1,_0x3fff42);else(_0x1930e1 instanceof LineString||_0x1930e1 instanceof MultiLineString)&&(_0x5e001a=splitLineByLine(_0x1930e1,_0x3fff42));if(_0x5e001a['length']>0x1){_0x10e354[_0xbb72b2(0x186)](_0x5e001a[0x0]),_0x49a2d7['push'](_0x10e354);for(let _0x168ef6=0x1;_0x168ef6<_0x5e001a[_0xbb72b2(0x195)];_0x168ef6++){const _0x74b509=_0x10e354[_0xbb72b2(0x19f)]();_0x74b509[_0xbb72b2(0x19c)]=undefined,_0x74b509[_0xbb72b2(0x193)]='cut',_0x74b509[_0xbb72b2(0x187)]=_0x10e354[_0xbb72b2(0x187)],_0x74b509[_0xbb72b2(0x186)](_0x5e001a[_0x168ef6]),this[_0xbb72b2(0x17d)]&&(_0x3ec2f3===null||_0x3ec2f3===void 0x0?void 0x0:_0x3ec2f3['addFeature'](_0x74b509)),_0x49a2d7[_0xbb72b2(0x18e)](_0x74b509);}}}return _0x49a2d7;}[a51_0xe2735d(0x197)](_0x5bc1ec){const _0x30ec38=a51_0xe2735d;this[_0x30ec38(0x19e)]=_0x5bc1ec;}}
1
+ const a51_0x10d482=a51_0x54d0;function a51_0x54d0(_0x1401ac,_0x365d48){const _0xabfde5=a51_0xabfd();return a51_0x54d0=function(_0x54d0f7,_0x17d375){_0x54d0f7=_0x54d0f7-0x171;let _0x4cbf43=_0xabfde5[_0x54d0f7];return _0x4cbf43;},a51_0x54d0(_0x1401ac,_0x365d48);}(function(_0x12c5d4,_0xfcad7c){const _0x4ca176=a51_0x54d0,_0x1856fe=_0x12c5d4();while(!![]){try{const _0x539497=-parseInt(_0x4ca176(0x179))/0x1+-parseInt(_0x4ca176(0x17b))/0x2+-parseInt(_0x4ca176(0x17c))/0x3*(parseInt(_0x4ca176(0x17e))/0x4)+-parseInt(_0x4ca176(0x18d))/0x5*(parseInt(_0x4ca176(0x187))/0x6)+parseInt(_0x4ca176(0x196))/0x7*(parseInt(_0x4ca176(0x195))/0x8)+parseInt(_0x4ca176(0x172))/0x9+parseInt(_0x4ca176(0x176))/0xa;if(_0x539497===_0xfcad7c)break;else _0x1856fe['push'](_0x1856fe['shift']());}catch(_0x297b2d){_0x1856fe['push'](_0x1856fe['shift']());}}}(a51_0xabfd,0x204d7));import a51_0x581132 from'./Draw';import a51_0xf6f589 from'ol/events/Event';import{LineString,Polygon,MultiPolygon,MultiLineString}from'ol/geom';function a51_0xabfd(){const _0x12bceb=['splitLine','error','setFeatures','1103958mYWbLi','未获取到分割要素','getGeometry','message','splitStart','fromType','5FgNPzq','setGeometry','getMap','push','polyline','SPLITED','SPLITSTART','cut','24xZSarB','412867hjexxd','clone','964251ViEfpV','addTempLayer','features','onInternal','6110380cyZWRs','splited','tempLayer','139168bmPLPp','sourceFeatures','445912MtUkao','2289SJByEh','dispatchEvent','1136RWLIaj','feature','length','addFeature','drawEnd','splitFeatures'];a51_0xabfd=function(){return _0x12bceb;};return a51_0xabfd();}import{jstlSplit,splitLineByLine}from'../utils/GeometryUtil';const SplitEventType={'SPLITSTART':a51_0x10d482(0x18b),'SPLITED':a51_0x10d482(0x177)};export class SplitEvent extends a51_0xf6f589{constructor(_0x40454a,_0x11b3d9,_0x189fef,_0x3ed2dc){const _0x36a65a=a51_0x10d482;super(_0x40454a),this[_0x36a65a(0x184)]=_0x11b3d9,this[_0x36a65a(0x174)]=_0x189fef,this[_0x36a65a(0x185)]=_0x3ed2dc;}}export default class Split extends a51_0x581132{constructor(_0x57bb02,_0x250597){const _0x48332b=a51_0x10d482,_0x17b319=(_0x250597===null||_0x250597===void 0x0?void 0x0:_0x250597['splitLineStyle'])||{'outlineColor':'rgba(255,\x200,\x200,\x201)','outlineWidth':0x2};super(_0x48332b(0x191),{'tipText':_0x250597===null||_0x250597===void 0x0?void 0x0:_0x250597['tipText'],'style':_0x17b319}),this[_0x48332b(0x17a)]=_0x57bb02;const _0x4022dc=_0x250597||{};this[_0x48332b(0x173)]=_0x4022dc[_0x48332b(0x173)]||![],this['on']=this[_0x48332b(0x175)],this['on'](_0x48332b(0x182),async _0x2da9a7=>{const _0x2031dc=_0x48332b;var _0x2ac189;const _0x4b0cfa=this[_0x2031dc(0x18f)]();let _0x292536=(_0x2ac189=_0x2da9a7[_0x2031dc(0x17f)])===null||_0x2ac189===void 0x0?void 0x0:_0x2ac189[_0x2031dc(0x189)]();!_0x292536&&this['dispatchEvent'](new SplitEvent(SplitEventType[_0x2031dc(0x192)],undefined,undefined,'未获取到绘制的分割线'));let _0x453478=_0x292536;!_0x4b0cfa&&this[_0x2031dc(0x17d)](new SplitEvent(SplitEventType[_0x2031dc(0x192)],_0x453478,undefined,'未获取到地图对象'));(!this[_0x2031dc(0x17a)]||this[_0x2031dc(0x17a)]['length']===0x0)&&this[_0x2031dc(0x17d)](new SplitEvent(SplitEventType[_0x2031dc(0x192)],_0x453478,undefined,_0x2031dc(0x188)));try{this['dispatchEvent'](new SplitEvent(SplitEventType[_0x2031dc(0x193)],_0x453478));const _0x231c07=this[_0x2031dc(0x183)](_0x453478);this[_0x2031dc(0x17d)](new SplitEvent(SplitEventType[_0x2031dc(0x192)],_0x453478,_0x231c07));}catch(_0x551c3d){this[_0x2031dc(0x17d)](new SplitEvent(SplitEventType[_0x2031dc(0x192)],_0x453478,undefined,_0x551c3d[_0x2031dc(0x18a)]));}});}[a51_0x10d482(0x183)](_0x50da63){const _0x30fd2a=a51_0x10d482;var _0x5efa68;const _0x57c926=[],_0x1b3e3d=(_0x5efa68=this[_0x30fd2a(0x17a)][0x0][_0x30fd2a(0x178)])===null||_0x5efa68===void 0x0?void 0x0:_0x5efa68['getSource']();for(let _0x2e1d6d=0x0;_0x2e1d6d<this[_0x30fd2a(0x17a)][_0x30fd2a(0x180)];_0x2e1d6d++){const _0x3b4196=this[_0x30fd2a(0x17a)][_0x2e1d6d],_0x50f00f=_0x3b4196['getGeometry']();let _0xb1f5e6=[];if(_0x50f00f instanceof Polygon||_0x50f00f instanceof MultiPolygon)_0xb1f5e6=jstlSplit(_0x50f00f,_0x50da63);else(_0x50f00f instanceof LineString||_0x50f00f instanceof MultiLineString)&&(_0xb1f5e6=splitLineByLine(_0x50f00f,_0x50da63));if(_0xb1f5e6[_0x30fd2a(0x180)]>0x1){_0x3b4196[_0x30fd2a(0x18e)](_0xb1f5e6[0x0]),_0x57c926[_0x30fd2a(0x190)](_0x3b4196);for(let _0x22bf81=0x1;_0x22bf81<_0xb1f5e6['length'];_0x22bf81++){const _0x1fb34e=_0x3b4196[_0x30fd2a(0x171)]();_0x1fb34e['layerId']=undefined,_0x1fb34e[_0x30fd2a(0x18c)]=_0x30fd2a(0x194),_0x1fb34e[_0x30fd2a(0x178)]=_0x3b4196['tempLayer'],_0x1fb34e[_0x30fd2a(0x18e)](_0xb1f5e6[_0x22bf81]),this[_0x30fd2a(0x173)]&&(_0x1b3e3d===null||_0x1b3e3d===void 0x0?void 0x0:_0x1b3e3d[_0x30fd2a(0x181)](_0x1fb34e)),_0x57c926[_0x30fd2a(0x190)](_0x1fb34e);}}}return _0x57c926;}[a51_0x10d482(0x186)](_0x5b6fcf){const _0x5b552d=a51_0x10d482;this[_0x5b552d(0x17a)]=_0x5b6fcf;}}
@@ -1 +1 @@
1
- const a52_0x335583=a52_0x5ace;(function(_0x251c58,_0x9970bb){const _0x1e764b=a52_0x5ace,_0x19f527=_0x251c58();while(!![]){try{const _0x361a53=-parseInt(_0x1e764b(0x196))/0x1+parseInt(_0x1e764b(0x1a1))/0x2+-parseInt(_0x1e764b(0x1ae))/0x3+parseInt(_0x1e764b(0x1ab))/0x4+-parseInt(_0x1e764b(0x1a7))/0x5*(parseInt(_0x1e764b(0x1a8))/0x6)+-parseInt(_0x1e764b(0x193))/0x7*(-parseInt(_0x1e764b(0x1a6))/0x8)+-parseInt(_0x1e764b(0x1b1))/0x9*(-parseInt(_0x1e764b(0x1af))/0xa);if(_0x361a53===_0x9970bb)break;else _0x19f527['push'](_0x19f527['shift']());}catch(_0x35398f){_0x19f527['push'](_0x19f527['shift']());}}}(a52_0x170d,0x96211));import a52_0x52dbf7 from'ol/source/ImageArcGISRest';import{Image as a52_0x23fc4c}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';function a52_0x5ace(_0x58e015,_0x57c02e){const _0x170da1=a52_0x170d();return a52_0x5ace=function(_0x5ace5a,_0x5d3985){_0x5ace5a=_0x5ace5a-0x193;let _0x1f3ab7=_0x170da1[_0x5ace5a];return _0x1f3ab7;},a52_0x5ace(_0x58e015,_0x57c02e);}function a52_0x170d(){const _0x36fd5b=['anonymous','xmin','3451756ixuGkE','xmax','ymax','1261158pAhNjh','10XuEZEd','setFilter','706518tlmYuU','7TkCjmV','initialExtent','layerInfo','675608HUqaVa','url','getSource','EPSG:','fullExtent','spatialReference','join','sublayers','updateParams','loadFilter','projection','1902078qYZmNm','selectIndex','show:','wkid','mapIndex','4404208YBDVSh','5JmoYvp','4392498NDPSXX'];a52_0x170d=function(){return _0x36fd5b;};return a52_0x170d();}export default class ArcgisDynamicLayer extends a52_0x23fc4c{constructor(_0x539528,_0x1d56b1){const _0x317475=a52_0x5ace;var _0x33e02e;let _0x2bc3dc={'LAYERS':_0x317475(0x1a3)+((_0x33e02e=_0x539528[_0x317475(0x19d)])===null||_0x33e02e===void 0x0?void 0x0:_0x33e02e[_0x317475(0x19c)](','))};if(_0x539528['loadFilter']&&_0x539528[_0x317475(0x1a2)]){const _0x5a6323={};_0x5a6323[_0x539528[_0x317475(0x1a2)]]=_0x539528[_0x317475(0x19f)],_0x2bc3dc['layerDefs']=JSON['stringify'](_0x5a6323);}const _0x143557=[_0x1d56b1['initialExtent']['xmin'],_0x1d56b1[_0x317475(0x194)]['ymin'],_0x1d56b1[_0x317475(0x194)][_0x317475(0x1ac)],_0x1d56b1[_0x317475(0x194)][_0x317475(0x1ad)]],_0x3de69c=[_0x1d56b1[_0x317475(0x19a)][_0x317475(0x1aa)],_0x1d56b1[_0x317475(0x19a)]['ymin'],_0x1d56b1[_0x317475(0x19a)][_0x317475(0x1ac)],_0x1d56b1[_0x317475(0x19a)][_0x317475(0x1ad)]];let _0x26f6e7;_0x1d56b1['spatialReference'][_0x317475(0x1a4)]?_0x26f6e7=registerProj(_0x317475(0x199)+_0x1d56b1[_0x317475(0x19b)][_0x317475(0x1a4)],_0x3de69c):_0x26f6e7=registerProj(_0x1d56b1[_0x317475(0x19b)]['wkt'],_0x3de69c),super({'opacity':_0x539528['opacity'],'zIndex':_0x539528[_0x317475(0x1a5)],'source':new a52_0x52dbf7({'crossOrigin':_0x317475(0x1a9),'projection':_0x26f6e7,'ratio':0x1,'url':_0x539528[_0x317475(0x197)],'params':_0x2bc3dc})}),this['id']=_0x539528['id'],this['initialExtent']=_0x143557,this[_0x317475(0x1a0)]=_0x26f6e7,this[_0x317475(0x195)]=_0x539528;}[a52_0x335583(0x1b0)](_0xcb63b){const _0x4419d6=a52_0x335583;var _0x277ef8;const _0x551876={};this[_0x4419d6(0x195)]['selectIndex']&&(_0x551876[this[_0x4419d6(0x195)][_0x4419d6(0x1a2)]]=_0xcb63b),(_0x277ef8=this[_0x4419d6(0x198)]())===null||_0x277ef8===void 0x0?void 0x0:_0x277ef8[_0x4419d6(0x19e)]({'layerDefs':JSON['stringify'](_0xcb63b)});}}
1
+ function a52_0x2d2b(_0xd01a80,_0x430216){const _0x388a44=a52_0x388a();return a52_0x2d2b=function(_0x2d2b62,_0x1d23a0){_0x2d2b62=_0x2d2b62-0x109;let _0x1dc596=_0x388a44[_0x2d2b62];return _0x1dc596;},a52_0x2d2b(_0xd01a80,_0x430216);}const a52_0x98a531=a52_0x2d2b;(function(_0x5ebff2,_0x22d42c){const _0x317e4d=a52_0x2d2b,_0x2e2c45=_0x5ebff2();while(!![]){try{const _0x27597e=-parseInt(_0x317e4d(0x10b))/0x1+-parseInt(_0x317e4d(0x11d))/0x2*(parseInt(_0x317e4d(0x125))/0x3)+-parseInt(_0x317e4d(0x11c))/0x4+parseInt(_0x317e4d(0x11b))/0x5*(parseInt(_0x317e4d(0x118))/0x6)+-parseInt(_0x317e4d(0x117))/0x7*(-parseInt(_0x317e4d(0x116))/0x8)+parseInt(_0x317e4d(0x121))/0x9*(parseInt(_0x317e4d(0x124))/0xa)+-parseInt(_0x317e4d(0x111))/0xb*(-parseInt(_0x317e4d(0x129))/0xc);if(_0x27597e===_0x22d42c)break;else _0x2e2c45['push'](_0x2e2c45['shift']());}catch(_0x478f8f){_0x2e2c45['push'](_0x2e2c45['shift']());}}}(a52_0x388a,0x702f4));import a52_0xb8a48f from'ol/source/ImageArcGISRest';import{Image as a52_0x367ac5}from'ol/layer';function a52_0x388a(){const _0xf42ffb=['2500074sRvAox','url','updateParams','5Ilypau','1694824dlWMew','4566HuwjZV','ymin','fullExtent','initialExtent','27CVecnO','wkt','xmax','2141510RlOMtN','57OVVRXd','layerDefs','layerInfo','getSource','6600Udxqwe','ymax','mapIndex','opacity','639172pBhzjy','setFilter','spatialReference','selectIndex','sublayers','anonymous','9020jLEYbt','projection','stringify','xmin','wkid','8MsQbsR','389417oStRyH'];a52_0x388a=function(){return _0xf42ffb;};return a52_0x388a();}import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisDynamicLayer extends a52_0x367ac5{constructor(_0x16e5ad,_0x9122b1){const _0x5f55b7=a52_0x2d2b;var _0xc574de;let _0x4fb5e0={'LAYERS':'show:'+((_0xc574de=_0x16e5ad[_0x5f55b7(0x10f)])===null||_0xc574de===void 0x0?void 0x0:_0xc574de['join'](','))};if(_0x16e5ad['loadFilter']&&_0x16e5ad[_0x5f55b7(0x10e)]){const _0x255bd3={};_0x255bd3[_0x16e5ad[_0x5f55b7(0x10e)]]=_0x16e5ad['loadFilter'],_0x4fb5e0[_0x5f55b7(0x126)]=JSON[_0x5f55b7(0x113)](_0x255bd3);}const _0x5e91aa=[_0x9122b1[_0x5f55b7(0x120)][_0x5f55b7(0x114)],_0x9122b1['initialExtent'][_0x5f55b7(0x11e)],_0x9122b1[_0x5f55b7(0x120)][_0x5f55b7(0x123)],_0x9122b1['initialExtent'][_0x5f55b7(0x12a)]],_0x2ab397=[_0x9122b1['fullExtent'][_0x5f55b7(0x114)],_0x9122b1[_0x5f55b7(0x11f)]['ymin'],_0x9122b1['fullExtent'][_0x5f55b7(0x123)],_0x9122b1[_0x5f55b7(0x11f)][_0x5f55b7(0x12a)]];let _0x594022;_0x9122b1[_0x5f55b7(0x10d)][_0x5f55b7(0x115)]?_0x594022=registerProj('EPSG:'+_0x9122b1[_0x5f55b7(0x10d)][_0x5f55b7(0x115)],_0x2ab397):_0x594022=registerProj(_0x9122b1[_0x5f55b7(0x10d)][_0x5f55b7(0x122)],_0x2ab397),super({'opacity':_0x16e5ad[_0x5f55b7(0x10a)],'zIndex':_0x16e5ad[_0x5f55b7(0x109)],'source':new a52_0xb8a48f({'crossOrigin':_0x5f55b7(0x110),'projection':_0x594022,'ratio':0x1,'url':_0x16e5ad[_0x5f55b7(0x119)],'params':_0x4fb5e0})}),this['id']=_0x16e5ad['id'],this[_0x5f55b7(0x120)]=_0x5e91aa,this[_0x5f55b7(0x112)]=_0x594022,this[_0x5f55b7(0x127)]=_0x16e5ad;}[a52_0x98a531(0x10c)](_0x513f15){const _0x4aae5f=a52_0x98a531;var _0x5841f3;const _0x49e70d={};this['layerInfo'][_0x4aae5f(0x10e)]&&(_0x49e70d[this[_0x4aae5f(0x127)][_0x4aae5f(0x10e)]]=_0x513f15),(_0x5841f3=this[_0x4aae5f(0x128)]())===null||_0x5841f3===void 0x0?void 0x0:_0x5841f3[_0x4aae5f(0x11a)]({'layerDefs':JSON[_0x4aae5f(0x113)](_0x513f15)});}}
@@ -1 +1 @@
1
- const a53_0x2314e0=a53_0x5822;(function(_0x1a2baf,_0x5ad125){const _0x4aaa57=a53_0x5822,_0x12e9ae=_0x1a2baf();while(!![]){try{const _0x2ffc85=parseInt(_0x4aaa57(0x148))/0x1+-parseInt(_0x4aaa57(0x13a))/0x2*(-parseInt(_0x4aaa57(0x129))/0x3)+-parseInt(_0x4aaa57(0x14e))/0x4*(parseInt(_0x4aaa57(0x138))/0x5)+-parseInt(_0x4aaa57(0x13c))/0x6+-parseInt(_0x4aaa57(0x11f))/0x7*(parseInt(_0x4aaa57(0x12a))/0x8)+parseInt(_0x4aaa57(0x117))/0x9+-parseInt(_0x4aaa57(0x122))/0xa*(parseInt(_0x4aaa57(0x115))/0xb);if(_0x2ffc85===_0x5ad125)break;else _0x12e9ae['push'](_0x12e9ae['shift']());}catch(_0x50776b){_0x12e9ae['push'](_0x12e9ae['shift']());}}}(a53_0x5195,0xa55ae));import a53_0xa54b2c from'ol/format/EsriJSON';import a53_0x233c66 from'ol/source/Vector';import{Vector as a53_0x51cf36}from'ol/layer';import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';import{tile as a53_0x74e589}from'ol/loadingstrategy';import a53_0x8f22cc from'ol/layer/Group';function a53_0x5822(_0x3f6886,_0x5f3675){const _0x5195f0=a53_0x5195();return a53_0x5822=function(_0x58220a,_0x3e8557){_0x58220a=_0x58220a-0x113;let _0x857789=_0x5195f0[_0x58220a];return _0x857789;},a53_0x5822(_0x3f6886,_0x5f3675);}import{registerProj}from'../utils/RegisterProjUtil';import{transformedEsriStyle}from'../utils/StyleUtil';function a53_0x5195(){const _0x156587=['drawingInfo','find','renderer','fullExtent','1149405fjLvST','uniqueValue','wkt','field1','string','xmax','299216MCriAs','1=1',',\x22xmax\x22:','wkid','forEach','11bASeip','f\x20=\x20json\x20&\x20','9287082oOlJAq','log','xmin','createArcGISFeatureLayer','readFeatures','uniqueValueInfos','stringify','ymin','59220AmNxYx','projection','addFeatures','6297410FLIkoA','&outFields=*','type',',\x22ymin\x22:','/query','ymax','mapIndex','248034MTVbBT','840Hgudfz','then','split','where=','&geometryType=esriGeometryEnvelope&inSR=','error','get','push','spatialReference','length','value',',\x22spatialReference\x22:{\x22wkid\x22:','setLayers','EPSG:','5xESkAp','{\x22xmin\x22:','28DhYgGs','symbol','6411936oOriHP','url','simple','getCode','layerInfo','loadFilter','initialExtent','setStyle'];a53_0x5195=function(){return _0x156587;};return a53_0x5195();}import a53_0x110517 from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';export default class ArcgisFeatureLayer extends a53_0x8f22cc{constructor(_0x2fde6d,_0x309436,_0x1c4228){const _0x3d5b79=a53_0x5822,_0x5986d2=[_0x309436['initialExtent']['xmin'],_0x309436[_0x3d5b79(0x142)][_0x3d5b79(0x11e)],_0x309436[_0x3d5b79(0x142)][_0x3d5b79(0x14d)],_0x309436[_0x3d5b79(0x142)][_0x3d5b79(0x127)]],_0x49df81=[_0x309436['fullExtent'][_0x3d5b79(0x119)],_0x309436[_0x3d5b79(0x147)][_0x3d5b79(0x11e)],_0x309436[_0x3d5b79(0x147)]['xmax'],_0x309436[_0x3d5b79(0x147)][_0x3d5b79(0x127)]];let _0x5b67d9;_0x309436[_0x3d5b79(0x132)][_0x3d5b79(0x113)]?_0x5b67d9=registerProj(_0x3d5b79(0x137)+_0x309436[_0x3d5b79(0x132)]['wkid'],_0x49df81):_0x5b67d9=registerProj(_0x309436['spatialReference'][_0x3d5b79(0x14a)],_0x49df81);let _0x556791=[];super({'zIndex':_0x2fde6d[_0x3d5b79(0x128)]});for(let _0x40a7e6 of _0x1c4228){let _0x326841=this[_0x3d5b79(0x11a)](_0x2fde6d,_0x40a7e6);_0x556791[_0x3d5b79(0x131)](_0x326841);}this[_0x3d5b79(0x136)](new a53_0x110517(_0x556791)),this['id']=_0x2fde6d['id'],this[_0x3d5b79(0x142)]=_0x5986d2,this[_0x3d5b79(0x120)]=_0x5b67d9,this[_0x3d5b79(0x140)]=_0x2fde6d;}[a53_0x2314e0(0x11a)](_0x30022c,_0x59240e){const _0xddb95e=a53_0x2314e0;var _0x52d8c9=new a53_0xa54b2c();let _0x99419=new a53_0x233c66({'loader':function(_0x4a1e76,_0x218675,_0x35a223){const _0x357fa0=a53_0x5822;let _0x2f0222=_0x357fa0(0x14f);_0x30022c[_0x357fa0(0x141)]&&(_0x2f0222=typeof _0x30022c[_0x357fa0(0x141)]===_0x357fa0(0x14c)?_0x30022c[_0x357fa0(0x141)]:JSON[_0x357fa0(0x11d)](_0x30022c[_0x357fa0(0x141)]));let _0xf9202=_0x35a223[_0x357fa0(0x13f)](),_0x127029=_0xf9202[_0x357fa0(0x12c)](':')[0x1];var _0x1e8440=appendPath(_0x59240e[_0x357fa0(0x13d)],_0x357fa0(0x126));_0x1e8440=appendParam(_0x1e8440,_0x357fa0(0x116)+_0x357fa0(0x12d)+encodeURIComponent(_0x2f0222)+'returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry='+encodeURIComponent(_0x357fa0(0x139)+_0x4a1e76[0x0]+_0x357fa0(0x125)+_0x4a1e76[0x1]+_0x357fa0(0x150)+_0x4a1e76[0x2]+',\x22ymax\x22:'+_0x4a1e76[0x3]+_0x357fa0(0x135)+_0x127029+'}}')+_0x357fa0(0x12e)+_0x127029+_0x357fa0(0x123)+'&outSR='+_0x127029),jsonp(_0x1e8440)[_0x357fa0(0x12b)](_0xaf750=>{const _0x55175b=_0x357fa0;if(_0xaf750[_0x55175b(0x12f)])console[_0x55175b(0x118)](_0xaf750);else{var _0x2dd18f=_0x52d8c9[_0x55175b(0x11b)](_0xaf750,{'featureProjection':_0x35a223});_0x2dd18f[_0x55175b(0x133)]>0x0&&(_0x59240e[_0x55175b(0x144)][_0x55175b(0x146)][_0x55175b(0x124)]==_0x55175b(0x149)&&_0x2dd18f[_0x55175b(0x114)](function(_0x5d8586){const _0x31a04f=_0x55175b;var _0x4bd26f=_0x5d8586[_0x31a04f(0x130)](_0x59240e['drawingInfo'][_0x31a04f(0x146)][_0x31a04f(0x14b)]);const _0x3f7da3=_0x59240e['drawingInfo'][_0x31a04f(0x146)][_0x31a04f(0x11c)][_0x31a04f(0x145)](_0x2b244a=>_0x2b244a[_0x31a04f(0x134)]==_0x4bd26f);let _0x40c6b1;_0x3f7da3?_0x40c6b1=transformedEsriStyle(_0x3f7da3['symbol']):_0x40c6b1=transformedEsriStyle(_0x59240e[_0x31a04f(0x144)][_0x31a04f(0x146)]['defaultSymbol']),_0x5d8586[_0x31a04f(0x143)](_0x40c6b1);}),_0x99419[_0x55175b(0x121)](_0x2dd18f));}});},'strategy':a53_0x74e589(createXYZ({'tileSize':0x200}))}),_0x264978=new a53_0x51cf36({'source':_0x99419,'zIndex':_0x30022c['showIndex']});if(_0x59240e[_0xddb95e(0x144)][_0xddb95e(0x146)][_0xddb95e(0x124)]==_0xddb95e(0x13e)&&_0x59240e['drawingInfo'][_0xddb95e(0x146)][_0xddb95e(0x13b)]){let _0x197e05=transformedEsriStyle(_0x59240e[_0xddb95e(0x144)][_0xddb95e(0x146)][_0xddb95e(0x13b)]);_0x264978[_0xddb95e(0x143)](_0x197e05);}return _0x264978;}['setFilter'](_0x592627){const _0x39d006=a53_0x2314e0;this[_0x39d006(0x140)][_0x39d006(0x141)]=_0x592627;}}
1
+ function a53_0x2adf(){const _0x233429=['setStyle','xmax','getCode','1=1','defaultSymbol','initialExtent',',\x22ymin\x22:','582066yRFwpd','xmin','split','mapIndex','url','1AvAsrh','f\x20=\x20json\x20&\x20','3197630rlcfWw','ymax','116GtIGSr','9uPOKno','fullExtent','drawingInfo','spatialReference','338434STutTK','2623344GgNwYN','setLayers',',\x22ymax\x22:','forEach','wkt','layerInfo','/query','projection','uniqueValueInfos','createArcGISFeatureLayer','field1',',\x22spatialReference\x22:{\x22wkid\x22:',',\x22xmax\x22:','ymin','length','loadFilter','where=','value','wkid','stringify','error','uniqueValue','type','172698KAAwaF','993790pfGPVo','returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry=','find','symbol','&geometryType=esriGeometryEnvelope&inSR=','setFilter','then','37235QHKRqG','renderer'];a53_0x2adf=function(){return _0x233429;};return a53_0x2adf();}const a53_0x2eb8a5=a53_0x34b1;function a53_0x34b1(_0x1715d4,_0x388b2e){const _0x2adf83=a53_0x2adf();return a53_0x34b1=function(_0x34b116,_0x5c5d5d){_0x34b116=_0x34b116-0x96;let _0x305415=_0x2adf83[_0x34b116];return _0x305415;},a53_0x34b1(_0x1715d4,_0x388b2e);}(function(_0x1d4a17,_0x1b28e4){const _0x5acb53=a53_0x34b1,_0x5b0226=_0x1d4a17();while(!![]){try{const _0x111af9=-parseInt(_0x5acb53(0xa4))/0x1*(-parseInt(_0x5acb53(0xad))/0x2)+parseInt(_0x5acb53(0xc5))/0x3+parseInt(_0x5acb53(0xa8))/0x4*(parseInt(_0x5acb53(0x96))/0x5)+-parseInt(_0x5acb53(0x9f))/0x6+-parseInt(_0x5acb53(0xc6))/0x7+parseInt(_0x5acb53(0xae))/0x8+-parseInt(_0x5acb53(0xa9))/0x9*(parseInt(_0x5acb53(0xa6))/0xa);if(_0x111af9===_0x1b28e4)break;else _0x5b0226['push'](_0x5b0226['shift']());}catch(_0x32efc1){_0x5b0226['push'](_0x5b0226['shift']());}}}(a53_0x2adf,0x33bd0));import a53_0xed95e7 from'ol/format/EsriJSON';import a53_0x3d2c60 from'ol/source/Vector';import{Vector as a53_0x129c2f}from'ol/layer';import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';import{tile as a53_0x1ed0bc}from'ol/loadingstrategy';import a53_0x57e777 from'ol/layer/Group';import{registerProj}from'../utils/RegisterProjUtil';import{transformedEsriStyle}from'../utils/StyleUtil';import a53_0x407ab7 from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';export default class ArcgisFeatureLayer extends a53_0x57e777{constructor(_0x43ded9,_0x4def2b,_0xd8d8e4){const _0x3fb2ef=a53_0x34b1,_0x5ebc9f=[_0x4def2b[_0x3fb2ef(0x9d)]['xmin'],_0x4def2b['initialExtent'][_0x3fb2ef(0xbb)],_0x4def2b[_0x3fb2ef(0x9d)][_0x3fb2ef(0x99)],_0x4def2b['initialExtent'][_0x3fb2ef(0xa7)]],_0x203f67=[_0x4def2b[_0x3fb2ef(0xaa)][_0x3fb2ef(0xa0)],_0x4def2b['fullExtent'][_0x3fb2ef(0xbb)],_0x4def2b[_0x3fb2ef(0xaa)]['xmax'],_0x4def2b[_0x3fb2ef(0xaa)]['ymax']];let _0x3e63ed;_0x4def2b[_0x3fb2ef(0xac)][_0x3fb2ef(0xc0)]?_0x3e63ed=registerProj('EPSG:'+_0x4def2b[_0x3fb2ef(0xac)]['wkid'],_0x203f67):_0x3e63ed=registerProj(_0x4def2b['spatialReference'][_0x3fb2ef(0xb2)],_0x203f67);let _0x3d6086=[];super({'zIndex':_0x43ded9[_0x3fb2ef(0xa2)]});for(let _0x5841e3 of _0xd8d8e4){let _0x22f73a=this[_0x3fb2ef(0xb7)](_0x43ded9,_0x5841e3);_0x3d6086['push'](_0x22f73a);}this[_0x3fb2ef(0xaf)](new a53_0x407ab7(_0x3d6086)),this['id']=_0x43ded9['id'],this[_0x3fb2ef(0x9d)]=_0x5ebc9f,this[_0x3fb2ef(0xb5)]=_0x3e63ed,this['layerInfo']=_0x43ded9;}['createArcGISFeatureLayer'](_0xdf0104,_0x593304){const _0x596eb7=a53_0x34b1;var _0x510f6e=new a53_0xed95e7();let _0xc545dc=new a53_0x3d2c60({'loader':function(_0x3b63e2,_0x5bc104,_0x3e5942){const _0x3aad69=a53_0x34b1;let _0x1de93e=_0x3aad69(0x9b);_0xdf0104['loadFilter']&&(_0x1de93e=typeof _0xdf0104['loadFilter']==='string'?_0xdf0104[_0x3aad69(0xbd)]:JSON[_0x3aad69(0xc1)](_0xdf0104['loadFilter']));let _0x4f99ae=_0x3e5942[_0x3aad69(0x9a)](),_0x19b38a=_0x4f99ae[_0x3aad69(0xa1)](':')[0x1];var _0x39bb10=appendPath(_0x593304[_0x3aad69(0xa3)],_0x3aad69(0xb4));_0x39bb10=appendParam(_0x39bb10,_0x3aad69(0xa5)+_0x3aad69(0xbe)+encodeURIComponent(_0x1de93e)+_0x3aad69(0xc7)+encodeURIComponent('{\x22xmin\x22:'+_0x3b63e2[0x0]+_0x3aad69(0x9e)+_0x3b63e2[0x1]+_0x3aad69(0xba)+_0x3b63e2[0x2]+_0x3aad69(0xb0)+_0x3b63e2[0x3]+_0x3aad69(0xb9)+_0x19b38a+'}}')+_0x3aad69(0xca)+_0x19b38a+'&outFields=*'+'&outSR='+_0x19b38a),jsonp(_0x39bb10)[_0x3aad69(0xcc)](_0x3068ec=>{const _0x412c4b=_0x3aad69;if(_0x3068ec[_0x412c4b(0xc2)])console['log'](_0x3068ec);else{var _0x58508b=_0x510f6e['readFeatures'](_0x3068ec,{'featureProjection':_0x3e5942});_0x58508b[_0x412c4b(0xbc)]>0x0&&(_0x593304[_0x412c4b(0xab)][_0x412c4b(0x97)][_0x412c4b(0xc4)]==_0x412c4b(0xc3)&&_0x58508b[_0x412c4b(0xb1)](function(_0x2e1ed0){const _0x56d8cd=_0x412c4b;var _0x8edfed=_0x2e1ed0['get'](_0x593304[_0x56d8cd(0xab)][_0x56d8cd(0x97)][_0x56d8cd(0xb8)]);const _0x37fbd8=_0x593304[_0x56d8cd(0xab)][_0x56d8cd(0x97)][_0x56d8cd(0xb6)][_0x56d8cd(0xc8)](_0x1962bb=>_0x1962bb[_0x56d8cd(0xbf)]==_0x8edfed);let _0x3634c8;_0x37fbd8?_0x3634c8=transformedEsriStyle(_0x37fbd8[_0x56d8cd(0xc9)]):_0x3634c8=transformedEsriStyle(_0x593304[_0x56d8cd(0xab)][_0x56d8cd(0x97)][_0x56d8cd(0x9c)]),_0x2e1ed0[_0x56d8cd(0x98)](_0x3634c8);}),_0xc545dc['addFeatures'](_0x58508b));}});},'strategy':a53_0x1ed0bc(createXYZ({'tileSize':0x200}))}),_0x22fb68=new a53_0x129c2f({'source':_0xc545dc,'zIndex':_0xdf0104['showIndex']});if(_0x593304['drawingInfo'][_0x596eb7(0x97)][_0x596eb7(0xc4)]=='simple'&&_0x593304[_0x596eb7(0xab)][_0x596eb7(0x97)]['symbol']){let _0x42762a=transformedEsriStyle(_0x593304[_0x596eb7(0xab)][_0x596eb7(0x97)][_0x596eb7(0xc9)]);_0x22fb68[_0x596eb7(0x98)](_0x42762a);}return _0x22fb68;}[a53_0x2eb8a5(0xcb)](_0x32dcdb){const _0x1793eb=a53_0x2eb8a5;this[_0x1793eb(0xb3)][_0x1793eb(0xbd)]=_0x32dcdb;}}
@@ -1 +1 @@
1
- (function(_0x24febb,_0x8ca0d7){const _0x258884=a54_0x37dc,_0xdf598a=_0x24febb();while(!![]){try{const _0x317521=-parseInt(_0x258884(0xc9))/0x1+parseInt(_0x258884(0xc2))/0x2+parseInt(_0x258884(0xe0))/0x3*(-parseInt(_0x258884(0xc7))/0x4)+parseInt(_0x258884(0xd1))/0x5*(-parseInt(_0x258884(0xc1))/0x6)+-parseInt(_0x258884(0xd7))/0x7+-parseInt(_0x258884(0xcb))/0x8*(-parseInt(_0x258884(0xca))/0x9)+-parseInt(_0x258884(0xc4))/0xa*(-parseInt(_0x258884(0xdd))/0xb);if(_0x317521===_0x8ca0d7)break;else _0xdf598a['push'](_0xdf598a['shift']());}catch(_0x1fe97e){_0xdf598a['push'](_0xdf598a['shift']());}}}(a54_0x3e68,0x3d665));import a54_0x38cb05 from'ol/layer/Tile';function a54_0x37dc(_0x51991f,_0x522b57){const _0x3e686e=a54_0x3e68();return a54_0x37dc=function(_0x37dc50,_0x3cd2cf){_0x37dc50=_0x37dc50-0xc1;let _0x47fb9c=_0x3e686e[_0x37dc50];return _0x47fb9c;},a54_0x37dc(_0x51991f,_0x522b57);}import a54_0x15fc7c from'ol/source/XYZ';import a54_0x139dee from'ol/tilegrid/TileGrid';function a54_0x3e68(){const _0x480075=['79718BLStsh','95031tsNBcH','296VBypCO','xmax','wkt','initialExtent','cols','length','10IAoKrH','tileInfo','/tile/{z}/{y}/{x}','spatialReference','xmin','ymin','3409994oYsDeo','url','layerInfo','ymax','fullExtent','origin','155199NrrctP','anonymous','lods','2019UcyQVr','1026036gHayAb','330796hEKqWb','EPSG:','590cgAIBG','push','opacity','1356GHXMqB','rows'];a54_0x3e68=function(){return _0x480075;};return a54_0x3e68();}import{registerProj}from'../utils/RegisterProjUtil';import{appendPath}from'../utils/UrlUtil';export default class ArcgisTileLayer extends a54_0x38cb05{constructor(_0x1d568a,_0x5f0936){const _0x4540b8=a54_0x37dc,_0x576d32=_0x1d568a[_0x4540b8(0xd8)]?_0x1d568a[_0x4540b8(0xd8)]:'',_0x24040c=appendPath(_0x576d32,_0x4540b8(0xd3)),_0x464c83=[_0x5f0936['initialExtent'][_0x4540b8(0xd5)],_0x5f0936['initialExtent'][_0x4540b8(0xd6)],_0x5f0936[_0x4540b8(0xce)][_0x4540b8(0xcc)],_0x5f0936[_0x4540b8(0xce)][_0x4540b8(0xda)]],_0x1764d1=[_0x5f0936[_0x4540b8(0xdb)][_0x4540b8(0xd5)],_0x5f0936[_0x4540b8(0xdb)][_0x4540b8(0xd6)],_0x5f0936['fullExtent'][_0x4540b8(0xcc)],_0x5f0936[_0x4540b8(0xdb)][_0x4540b8(0xda)]];let _0x39b24d;_0x5f0936[_0x4540b8(0xd4)]['wkid']?_0x39b24d=registerProj(_0x4540b8(0xc3)+_0x5f0936[_0x4540b8(0xd4)]['wkid'],_0x1764d1):_0x39b24d=registerProj(_0x5f0936[_0x4540b8(0xd4)][_0x4540b8(0xcd)],_0x1764d1);let _0x247a03=[];for(let _0x2445fb=0x0,_0x5cfee4=_0x5f0936[_0x4540b8(0xd2)][_0x4540b8(0xdf)][_0x4540b8(0xd0)];_0x2445fb<_0x5cfee4;_0x2445fb++){_0x247a03[_0x4540b8(0xc5)](_0x5f0936['tileInfo'][_0x4540b8(0xdf)][_0x2445fb]['resolution']);}super({'opacity':_0x1d568a[_0x4540b8(0xc6)],'zIndex':_0x1d568a['mapIndex'],'maxResolution':_0x247a03[0x0]*0x2,'source':new a54_0x15fc7c({'url':_0x24040c,'projection':_0x39b24d,'crossOrigin':_0x4540b8(0xde),'tileGrid':new a54_0x139dee({'extent':_0x1764d1,'origin':[_0x5f0936[_0x4540b8(0xd2)][_0x4540b8(0xdc)]['x'],_0x5f0936[_0x4540b8(0xd2)][_0x4540b8(0xdc)]['y']],'resolutions':_0x247a03,'tileSize':[_0x5f0936[_0x4540b8(0xd2)][_0x4540b8(0xc8)],_0x5f0936['tileInfo'][_0x4540b8(0xcf)]]})})}),this['id']=_0x1d568a['id'],this[_0x4540b8(0xce)]=_0x464c83,this['projection']=_0x39b24d,this[_0x4540b8(0xd9)]=_0x1d568a;}}
1
+ function a54_0x1ce2(_0xf2955e,_0x45ff28){const _0x31020e=a54_0x3102();return a54_0x1ce2=function(_0x1ce260,_0x325027){_0x1ce260=_0x1ce260-0x1c5;let _0x30bf79=_0x31020e[_0x1ce260];return _0x30bf79;},a54_0x1ce2(_0xf2955e,_0x45ff28);}function a54_0x3102(){const _0x5e879f=['ymin','ymax','layerInfo','14oopxdg','cols','initialExtent','37026BTrIWf','32992TvYAHo','490672euchCq','1730VuImqk','mapIndex','wkid','908320yUBAig','push','117JDgZkg','tileInfo','fullExtent','projection','spatialReference','/tile/{z}/{y}/{x}','rows','xmin','3pnmzvG','xmax','resolution','lods','origin','51227xLHvXW','url','opacity','1316270SQpKwC','1452288XqfzEr','length'];a54_0x3102=function(){return _0x5e879f;};return a54_0x3102();}(function(_0x242cd7,_0x96ee3f){const _0x11abb1=a54_0x1ce2,_0xaa89e0=_0x242cd7();while(!![]){try{const _0x15fdaa=parseInt(_0x11abb1(0x1ce))/0x1*(-parseInt(_0x11abb1(0x1cb))/0x2)+-parseInt(_0x11abb1(0x1de))/0x3*(-parseInt(_0x11abb1(0x1d4))/0x4)+-parseInt(_0x11abb1(0x1c5))/0x5+-parseInt(_0x11abb1(0x1c6))/0x6+-parseInt(_0x11abb1(0x1d0))/0x7+parseInt(_0x11abb1(0x1cf))/0x8*(-parseInt(_0x11abb1(0x1d6))/0x9)+-parseInt(_0x11abb1(0x1d1))/0xa*(-parseInt(_0x11abb1(0x1e3))/0xb);if(_0x15fdaa===_0x96ee3f)break;else _0xaa89e0['push'](_0xaa89e0['shift']());}catch(_0x4bc902){_0xaa89e0['push'](_0xaa89e0['shift']());}}}(a54_0x3102,0x234a5));import a54_0x102690 from'ol/layer/Tile';import a54_0x89cbac from'ol/source/XYZ';import a54_0x4c3477 from'ol/tilegrid/TileGrid';import{registerProj}from'../utils/RegisterProjUtil';import{appendPath}from'../utils/UrlUtil';export default class ArcgisTileLayer extends a54_0x102690{constructor(_0x267a69,_0x1c5c10){const _0x1a0e62=a54_0x1ce2,_0x25f1f3=_0x267a69[_0x1a0e62(0x1e4)]?_0x267a69[_0x1a0e62(0x1e4)]:'',_0x2dc16c=appendPath(_0x25f1f3,_0x1a0e62(0x1db)),_0x293ea7=[_0x1c5c10['initialExtent']['xmin'],_0x1c5c10[_0x1a0e62(0x1cd)][_0x1a0e62(0x1c8)],_0x1c5c10[_0x1a0e62(0x1cd)][_0x1a0e62(0x1df)],_0x1c5c10['initialExtent'][_0x1a0e62(0x1c9)]],_0x33f0c3=[_0x1c5c10[_0x1a0e62(0x1d8)][_0x1a0e62(0x1dd)],_0x1c5c10[_0x1a0e62(0x1d8)][_0x1a0e62(0x1c8)],_0x1c5c10[_0x1a0e62(0x1d8)]['xmax'],_0x1c5c10[_0x1a0e62(0x1d8)]['ymax']];let _0x2a315a;_0x1c5c10[_0x1a0e62(0x1da)][_0x1a0e62(0x1d3)]?_0x2a315a=registerProj('EPSG:'+_0x1c5c10[_0x1a0e62(0x1da)][_0x1a0e62(0x1d3)],_0x33f0c3):_0x2a315a=registerProj(_0x1c5c10[_0x1a0e62(0x1da)]['wkt'],_0x33f0c3);let _0xf24feb=[];for(let _0x5b260d=0x0,_0xd1cdf3=_0x1c5c10[_0x1a0e62(0x1d7)]['lods'][_0x1a0e62(0x1c7)];_0x5b260d<_0xd1cdf3;_0x5b260d++){_0xf24feb[_0x1a0e62(0x1d5)](_0x1c5c10['tileInfo'][_0x1a0e62(0x1e1)][_0x5b260d][_0x1a0e62(0x1e0)]);}super({'opacity':_0x267a69[_0x1a0e62(0x1e5)],'zIndex':_0x267a69[_0x1a0e62(0x1d2)],'maxResolution':_0xf24feb[0x0]*0x2,'source':new a54_0x89cbac({'url':_0x2dc16c,'projection':_0x2a315a,'crossOrigin':'anonymous','tileGrid':new a54_0x4c3477({'extent':_0x33f0c3,'origin':[_0x1c5c10[_0x1a0e62(0x1d7)][_0x1a0e62(0x1e2)]['x'],_0x1c5c10[_0x1a0e62(0x1d7)][_0x1a0e62(0x1e2)]['y']],'resolutions':_0xf24feb,'tileSize':[_0x1c5c10[_0x1a0e62(0x1d7)][_0x1a0e62(0x1dc)],_0x1c5c10[_0x1a0e62(0x1d7)][_0x1a0e62(0x1cc)]]})})}),this['id']=_0x267a69['id'],this[_0x1a0e62(0x1cd)]=_0x293ea7,this[_0x1a0e62(0x1d9)]=_0x2a315a,this[_0x1a0e62(0x1ca)]=_0x267a69;}}