ym-gis-2d 1.0.42 → 1.0.44

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 (77) 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.js +1 -1
  6. package/conver/kml/geoJSONToKml.js +1 -1
  7. package/conver/kml/index.js +1 -1
  8. package/conver/kml/kmlToGeoJSON.js +1 -1
  9. package/entity/Feature.js +1 -1
  10. package/entity/GeometryType.js +1 -1
  11. package/entity/measure/AreaMeasureUnits.js +1 -1
  12. package/feature/FeatureManager.js +1 -1
  13. package/index.js +1 -1
  14. package/interaction/AreaMeasure.js +1 -1
  15. package/interaction/Difference.js +1 -1
  16. package/interaction/Draw.js +1 -1
  17. package/interaction/InteractionManager.js +1 -1
  18. package/interaction/Modify.js +1 -1
  19. package/interaction/Select.js +1 -1
  20. package/interaction/Split.js +1 -1
  21. package/layers/ArcgisDynamicLayer.js +1 -1
  22. package/layers/ArcgisFeatureLayer.js +1 -1
  23. package/layers/ArcgisTileLayer.js +1 -1
  24. package/layers/ArcgisWMSLayer.js +1 -1
  25. package/layers/ArcgisWMTSLayer.js +1 -1
  26. package/layers/GeoserverVectorTile.js +1 -1
  27. package/layers/GeoserverWFSLayer.js +1 -1
  28. package/layers/GeoserverWMSLayer.js +1 -1
  29. package/layers/GeoserverWMTSLayer.js +1 -1
  30. package/layers/LayerManager.js +1 -1
  31. package/layers/MapTileLayer.js +1 -1
  32. package/layers/TDTLayer.js +1 -1
  33. package/mapView/Map.d.ts +1 -1
  34. package/mapView/Map.d.ts.map +1 -1
  35. package/mapView/Map.js +1 -1
  36. package/mapView/Map.js.map +1 -1
  37. package/mapView/View.js +1 -1
  38. package/package.json +1 -1
  39. package/plot/Plot.js +1 -1
  40. package/plot/geometry/point/Point.js +1 -1
  41. package/plot/geometry/polygon/BasePolygon.js +1 -1
  42. package/plot/geometry/polygon/Circle.js +1 -1
  43. package/plot/geometry/polygon/Polygon.js +1 -1
  44. package/plot/geometry/polygon/RectAngle.js +1 -1
  45. package/plot/geometry/polyline/BaseLine.js +1 -1
  46. package/plot/geometry/polyline/Polyline.js +1 -1
  47. package/style/PointStyleFormat.js +1 -1
  48. package/style/PolygonStyleFormat.js +1 -1
  49. package/style/PolylineStyleFormat.js +1 -1
  50. package/style/StyleManager.js +1 -1
  51. package/style/common.js +1 -1
  52. package/utils/ArrayUtil.js +1 -1
  53. package/utils/AxiosUtil.js +1 -1
  54. package/utils/EsriUtil.js +1 -1
  55. package/utils/GeometryUtil.d.ts.map +1 -1
  56. package/utils/GeometryUtil.js +1 -1
  57. package/utils/GeometryUtil.js.map +1 -1
  58. package/utils/LayerUtil.js +1 -1
  59. package/utils/RegisterProjUtil.js +1 -1
  60. package/utils/ResolutionUtil.js +1 -1
  61. package/utils/StringUtil.js +1 -1
  62. package/utils/StyleUtil.js +1 -1
  63. package/utils/UrlUtil.js +1 -1
  64. package/utils/XmlUtil.js +1 -1
  65. package/utils/format/CQL.js +1 -1
  66. package/utils/format/IsMatchCql.js +1 -1
  67. package/utils/plug/canvas/ImageCache.js +1 -1
  68. package/utils/plug/canvas/PinBuilder.js +1 -1
  69. package/utils/plug/canvas/PinIcon.js +1 -1
  70. package/utils/plug/canvas/writeTextToCanvas.js +1 -1
  71. package/utils/tasks/esri/Identify.js +1 -1
  72. package/utils/tasks/esri/Query.js +1 -1
  73. package/utils/tasks/esri/Task.js +1 -1
  74. package/utils/tasks/geoserver/QueryTask.js +1 -1
  75. package/utils/tasks/index.js +1 -1
  76. package/ym-gis-2d.es.js +1 -1
  77. package/ym-gis-2d.umd.js +1 -1
@@ -1 +1 @@
1
- const a43_0x207870=a43_0x2f1c;function a43_0x2f1c(_0x17ba7d,_0x4d8748){const _0x40176a=a43_0x4017();return a43_0x2f1c=function(_0x2f1c91,_0x58d28e){_0x2f1c91=_0x2f1c91-0xcd;let _0x1f21e4=_0x40176a[_0x2f1c91];return _0x1f21e4;},a43_0x2f1c(_0x17ba7d,_0x4d8748);}(function(_0x4b8f9c,_0x38c3ac){const _0x102041=a43_0x2f1c,_0x3cd032=_0x4b8f9c();while(!![]){try{const _0x51d13b=-parseInt(_0x102041(0xe2))/0x1*(-parseInt(_0x102041(0xed))/0x2)+-parseInt(_0x102041(0xdd))/0x3*(-parseInt(_0x102041(0xfb))/0x4)+-parseInt(_0x102041(0xf9))/0x5*(-parseInt(_0x102041(0xd1))/0x6)+parseInt(_0x102041(0xec))/0x7+parseInt(_0x102041(0xf4))/0x8*(parseInt(_0x102041(0xe5))/0x9)+parseInt(_0x102041(0xf3))/0xa*(parseInt(_0x102041(0xeb))/0xb)+-parseInt(_0x102041(0xdb))/0xc*(parseInt(_0x102041(0xde))/0xd);if(_0x51d13b===_0x38c3ac)break;else _0x3cd032['push'](_0x3cd032['shift']());}catch(_0xf199ea){_0x3cd032['push'](_0x3cd032['shift']());}}}(a43_0x4017,0x68444));import a43_0x342369 from'../entity/Feature';import a43_0x1522b2 from'ol/layer/Vector';import a43_0x343b4 from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';import a43_0xd6329f from'ol/format/GeoJSON';import{getSelectStyle}from'../style/StyleManager';function a43_0x4017(){const _0x35181e=['24622481RtvTgj','getTempEditFeatures','isSelected','map','479dDXdPq','get','getLineTempLayer','2363778ajCWhE','flashGeometrys','getTempSelectedFeatures','getPointTempLayer','getLayerById','getSource','2625491yIWNvE','550585amwLCH','1306tPmRDR','getPolygonTempLayer','flashFeatures','setStyle','indexOf','forEach','20nmqRes','8OYDAmv','layerId','push','tempLayer','addLayer','690punUTa','tag','4532rKLoaA','currentEditLayer','kmlImport','filter','getType','addFeatures','setVisible','22710oaPPdI','getSelectedFeatures','length','getVisible','clearTempFeatures','removeFeature','geometryType','getEditFeatures','layerInfo','readFeature','12cBqOmR','flash_layer','1767BrVqDt'];a43_0x4017=function(){return _0x35181e;};return a43_0x4017();}export default class FeatureManager{constructor(_0x384363){this['map']=_0x384363;}[a43_0x207870(0xd8)](_0x303ff7,_0x243f90){const _0x53c203=a43_0x207870;if(!this['map']['currentEditLayer'])return;let _0x5ad4d2;const _0x5c5252=this['map']['getLayerById'](this[_0x53c203(0xe1)][_0x53c203(0xfc)]['id']);if(!_0x5c5252||!_0x5c5252['layerInfo'])return;switch(_0x5c5252['layerInfo'][_0x53c203(0xd7)]){case 0x1:_0x5ad4d2=this[_0x53c203(0xdf)](this[_0x53c203(0xe1)][_0x53c203(0xe8)](),this[_0x53c203(0xe1)][_0x53c203(0xfc)]['id'],_0x303ff7,_0x243f90);break;case 0x2:_0x5ad4d2=this[_0x53c203(0xdf)](this['map'][_0x53c203(0xe4)](),this['map'][_0x53c203(0xfc)]['id'],_0x303ff7,_0x243f90);break;case 0x3:_0x5ad4d2=this['getTempEditFeatures'](this[_0x53c203(0xe1)][_0x53c203(0xee)](),this[_0x53c203(0xe1)][_0x53c203(0xfc)]['id'],_0x303ff7,_0x243f90);break;default:break;}return _0x5ad4d2;}[a43_0x207870(0xd2)](_0x2d26ae,_0x3e429d){const _0x42813d=a43_0x207870;if(_0x2d26ae){const _0x2333f7=this[_0x42813d(0xe1)][_0x42813d(0xe9)](_0x2d26ae);if(!_0x2333f7||!_0x2333f7[_0x42813d(0xd9)])return;let _0xd4f82c;switch(_0x2333f7[_0x42813d(0xd9)][_0x42813d(0xd7)]){case 0x1:_0xd4f82c=this['getTempSelectedFeatures'](this[_0x42813d(0xe1)][_0x42813d(0xe8)](),_0x2d26ae,_0x3e429d);break;case 0x2:_0xd4f82c=this[_0x42813d(0xe7)](this['map'][_0x42813d(0xe4)](),_0x2d26ae,_0x3e429d);break;case 0x3:_0xd4f82c=this[_0x42813d(0xe7)](this[_0x42813d(0xe1)][_0x42813d(0xee)](),_0x2d26ae,_0x3e429d);break;default:break;}return _0xd4f82c;}else{const _0x37b298=this[_0x42813d(0xe7)](this[_0x42813d(0xe1)][_0x42813d(0xe8)](),_0x2d26ae,_0x3e429d),_0x15da94=this[_0x42813d(0xe7)](this[_0x42813d(0xe1)][_0x42813d(0xe4)](),_0x2d26ae,_0x3e429d),_0x804d7=this[_0x42813d(0xe7)](this[_0x42813d(0xe1)][_0x42813d(0xee)](),_0x2d26ae,_0x3e429d);let _0x5073a5=[];return _0x37b298&&(_0x5073a5=[..._0x5073a5,..._0x37b298]),_0x15da94&&(_0x5073a5=[..._0x5073a5,..._0x15da94]),_0x804d7&&(_0x5073a5=[..._0x5073a5,..._0x804d7]),_0x5073a5;}}[a43_0x207870(0xe7)](_0x1fd718,_0x59f589,_0x30246d){const _0x411cfb=a43_0x207870;var _0x530811;let _0x4c68f0=(_0x530811=_0x1fd718[_0x411cfb(0xea)]())===null||_0x530811===void 0x0?void 0x0:_0x530811['getFeatures']();if(!_0x4c68f0)return;_0x4c68f0[_0x411cfb(0xf2)]((_0xb5d959,_0x21dee2,_0x37ce4c)=>{const _0x21c6a3=_0x411cfb;_0xb5d959[_0x21c6a3(0xf7)]=_0x1fd718;});_0x30246d!=undefined&&(_0x4c68f0=_0x4c68f0['filter'](_0x41c608=>_0x41c608[_0x411cfb(0xe0)]==_0x30246d));if(_0x59f589)return _0x4c68f0[_0x411cfb(0xcd)](_0x167bd6=>_0x167bd6[_0x411cfb(0xf5)]==_0x59f589);return _0x4c68f0;}[a43_0x207870(0xdf)](_0x5c213c,_0x23e0b7,_0x28092f,_0x452d27){const _0x4ed09b=a43_0x207870;var _0x283e88;let _0x5a021e=(_0x283e88=_0x5c213c[_0x4ed09b(0xea)]())===null||_0x283e88===void 0x0?void 0x0:_0x283e88['getFeatures']();if(!_0x5a021e)return;return _0x5a021e['forEach']((_0x56149b,_0x17e834,_0x1c37cd)=>{_0x56149b['tempLayer']=_0x5c213c;}),_0x28092f&&_0x452d27&&_0x452d27[_0x4ed09b(0xd3)]>0x0?_0x5a021e=_0x5a021e[_0x4ed09b(0xcd)](_0x5cbb7c=>_0x5cbb7c[_0x4ed09b(0xe0)]==!![]&&(_0x5cbb7c[_0x4ed09b(0xf5)]==_0x23e0b7&&(_0x5cbb7c[_0x4ed09b(0xe3)](_0x28092f)==undefined||_0x452d27[_0x4ed09b(0xf1)](_0x5cbb7c[_0x4ed09b(0xe3)](_0x28092f))>-0x1)||_0x5cbb7c[_0x4ed09b(0xf5)]==undefined)):_0x5a021e=_0x5a021e=_0x5a021e[_0x4ed09b(0xcd)](_0x1637b6=>_0x1637b6[_0x4ed09b(0xe0)]==!![]&&(_0x1637b6[_0x4ed09b(0xf5)]==_0x23e0b7||_0x1637b6[_0x4ed09b(0xf5)]==undefined)),_0x5a021e;}[a43_0x207870(0xef)](_0x3a7012,_0x4a7610=0x3){const _0x9ead93=a43_0x207870;var _0x5a5886;let _0x515cce=new a43_0x1522b2({'zIndex':0x270f,'source':new a43_0x343b4()});_0x515cce['id']=_0x9ead93(0xdc),this[_0x9ead93(0xe1)][_0x9ead93(0xf8)](_0x515cce,![]),(_0x5a5886=_0x515cce['getSource']())===null||_0x5a5886===void 0x0?void 0x0:_0x5a5886[_0x9ead93(0xcf)](_0x3a7012);let _0x7c45ab=0x0,_0x6300c0=setInterval(()=>{const _0x329f34=_0x9ead93;if(_0x7c45ab===_0x4a7610){_0x6300c0&&clearInterval(_0x6300c0);const _0x1c4427=this[_0x329f34(0xe1)][_0x329f34(0xe9)](_0x515cce['id']);_0x1c4427&&this[_0x329f34(0xe1)]['removeLayer'](_0x1c4427);return;}if(_0x515cce[_0x329f34(0xd4)]())_0x515cce['setVisible'](![]);else _0x515cce[_0x329f34(0xd0)](!![]);_0x7c45ab++;},0x190);}[a43_0x207870(0xe6)](_0x1b7e8d,_0x5aac76=0x3){const _0x36f754=a43_0x207870;var _0x5c436b;let _0xbd33bc=new a43_0x1522b2({'zIndex':0x270f,'source':new a43_0x343b4()});_0xbd33bc['id']='flash_layer',this[_0x36f754(0xe1)][_0x36f754(0xf8)](_0xbd33bc,![]);let _0x4d2774=[];_0x1b7e8d[_0x36f754(0xf2)](_0x4da268=>{const _0x4b77c5=_0x36f754;let _0x21f326=new a43_0x342369();const _0x13956b=getSelectStyle(_0x4da268[_0x4b77c5(0xce)]());_0x21f326[_0x4b77c5(0xf0)](_0x13956b),_0x21f326['setGeometry'](_0x4da268),_0x4d2774[_0x4b77c5(0xf6)](_0x21f326);}),(_0x5c436b=_0xbd33bc[_0x36f754(0xea)]())===null||_0x5c436b===void 0x0?void 0x0:_0x5c436b[_0x36f754(0xcf)](_0x4d2774);let _0x58a190=0x0,_0x358955=setInterval(()=>{const _0x237a5c=_0x36f754;if(_0x58a190===_0x5aac76){_0x358955&&clearInterval(_0x358955);const _0x569631=this['map'][_0x237a5c(0xe9)](_0xbd33bc['id']);_0x569631&&this[_0x237a5c(0xe1)]['removeLayer'](_0x569631);return;}if(_0xbd33bc[_0x237a5c(0xd4)]())_0xbd33bc[_0x237a5c(0xd0)](![]);else _0xbd33bc[_0x237a5c(0xd0)](!![]);_0x58a190++;},0x190);}async[a43_0x207870(0xfd)](_0x120831){const _0x13bd8a=a43_0x207870;let _0x1a5b4a=await toGeoJSON(_0x120831,null);if(!_0x1a5b4a)return[];let _0x1a4393=[];var _0x263a8b=new a43_0xd6329f();return _0x1a5b4a['features'][_0x13bd8a(0xf2)](_0x2200f5=>{const _0x3a7e62=_0x13bd8a;_0x1a4393['push'](_0x263a8b[_0x3a7e62(0xda)](_0x2200f5,null));}),_0x1a4393;}[a43_0x207870(0xd5)](_0x55af25){const _0x5d1883=a43_0x207870,_0x4d6303=this[_0x5d1883(0xd2)]();if(_0x4d6303&&_0x4d6303['length']>0x0)for(const _0x3dbb8a of _0x4d6303){if(_0x3dbb8a&&_0x3dbb8a[_0x5d1883(0xf7)]){const _0x405630=_0x3dbb8a[_0x5d1883(0xf7)][_0x5d1883(0xea)]();_0x405630&&(_0x55af25!=undefined?_0x3dbb8a[_0x5d1883(0xfa)]==_0x55af25&&_0x405630[_0x5d1883(0xd6)](_0x3dbb8a):_0x405630[_0x5d1883(0xd6)](_0x3dbb8a));}}}}
1
+ const a43_0x24bfce=a43_0x158b;(function(_0x2a5434,_0xf6ba1d){const _0x110806=a43_0x158b,_0x511a20=_0x2a5434();while(!![]){try{const _0x2bfdd5=-parseInt(_0x110806(0xc3))/0x1+-parseInt(_0x110806(0xa5))/0x2*(parseInt(_0x110806(0xcb))/0x3)+parseInt(_0x110806(0xac))/0x4+parseInt(_0x110806(0xb6))/0x5+parseInt(_0x110806(0xaa))/0x6+parseInt(_0x110806(0xa6))/0x7*(-parseInt(_0x110806(0xba))/0x8)+parseInt(_0x110806(0xc1))/0x9;if(_0x2bfdd5===_0xf6ba1d)break;else _0x511a20['push'](_0x511a20['shift']());}catch(_0x5be59a){_0x511a20['push'](_0x511a20['shift']());}}}(a43_0x7988,0x6c38f));import a43_0x1f3c6d from'../entity/Feature';import a43_0x1a8e74 from'ol/layer/Vector';function a43_0x7988(){const _0x2795bb=['push','getLayerById','removeFeature','getTempEditFeatures','layerInfo','1346315hVkxOa','tempLayer','setStyle','currentEditLayer','19648QZiBiH','getEditFeatures','filter','setGeometry','get','getType','map','1261134ZAWZJv','getPolygonTempLayer','287869UsRHOn','getLineTempLayer','setVisible','flashFeatures','layerId','addLayer','getSelectedFeatures','getFeatures','74496rVjnUH','geometryType','removeLayer','flashGeometrys','forEach','kmlImport','isSelected','getPointTempLayer','16oRkgSC','504APPSHy','length','getVisible','features','1239234plFptg','flash_layer','1962832viikuW','addFeatures','getTempSelectedFeatures','readFeature','getSource'];a43_0x7988=function(){return _0x2795bb;};return a43_0x7988();}function a43_0x158b(_0x4017b7,_0x3b027a){const _0x798816=a43_0x7988();return a43_0x158b=function(_0x158bb8,_0x40b3e7){_0x158bb8=_0x158bb8-0xa4;let _0x4e14fb=_0x798816[_0x158bb8];return _0x4e14fb;},a43_0x158b(_0x4017b7,_0x3b027a);}import a43_0xda966d from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';import a43_0x2de848 from'ol/format/GeoJSON';import{getSelectStyle}from'../style/StyleManager';export default class FeatureManager{constructor(_0x1eb72d){const _0x198ed9=a43_0x158b;this[_0x198ed9(0xc0)]=_0x1eb72d;}[a43_0x24bfce(0xbb)](_0x555e3c,_0x1bfa41){const _0x3670da=a43_0x24bfce;if(!this[_0x3670da(0xc0)][_0x3670da(0xb9)])return;let _0x1cab1f;const _0xbadd57=this[_0x3670da(0xc0)][_0x3670da(0xb2)](this[_0x3670da(0xc0)][_0x3670da(0xb9)]['id']);if(!_0xbadd57||!_0xbadd57[_0x3670da(0xb5)])return;switch(_0xbadd57[_0x3670da(0xb5)][_0x3670da(0xcc)]){case 0x1:_0x1cab1f=this[_0x3670da(0xb4)](this[_0x3670da(0xc0)][_0x3670da(0xa4)](),this[_0x3670da(0xc0)]['currentEditLayer']['id'],_0x555e3c,_0x1bfa41);break;case 0x2:_0x1cab1f=this[_0x3670da(0xb4)](this[_0x3670da(0xc0)][_0x3670da(0xc4)](),this[_0x3670da(0xc0)][_0x3670da(0xb9)]['id'],_0x555e3c,_0x1bfa41);break;case 0x3:_0x1cab1f=this[_0x3670da(0xb4)](this[_0x3670da(0xc0)]['getPolygonTempLayer'](),this[_0x3670da(0xc0)]['currentEditLayer']['id'],_0x555e3c,_0x1bfa41);break;default:break;}return _0x1cab1f;}[a43_0x24bfce(0xc9)](_0x39340d,_0x1f495b){const _0x53c34e=a43_0x24bfce;if(_0x39340d){const _0x1ea6e4=this[_0x53c34e(0xc0)]['getLayerById'](_0x39340d);if(!_0x1ea6e4||!_0x1ea6e4[_0x53c34e(0xb5)])return;let _0x3f9992;switch(_0x1ea6e4[_0x53c34e(0xb5)][_0x53c34e(0xcc)]){case 0x1:_0x3f9992=this['getTempSelectedFeatures'](this[_0x53c34e(0xc0)][_0x53c34e(0xa4)](),_0x39340d,_0x1f495b);break;case 0x2:_0x3f9992=this[_0x53c34e(0xae)](this[_0x53c34e(0xc0)][_0x53c34e(0xc4)](),_0x39340d,_0x1f495b);break;case 0x3:_0x3f9992=this['getTempSelectedFeatures'](this[_0x53c34e(0xc0)][_0x53c34e(0xc2)](),_0x39340d,_0x1f495b);break;default:break;}return _0x3f9992;}else{const _0x11b0ec=this[_0x53c34e(0xae)](this[_0x53c34e(0xc0)][_0x53c34e(0xa4)](),_0x39340d,_0x1f495b),_0x110fb5=this[_0x53c34e(0xae)](this['map'][_0x53c34e(0xc4)](),_0x39340d,_0x1f495b),_0x56677e=this[_0x53c34e(0xae)](this['map'][_0x53c34e(0xc2)](),_0x39340d,_0x1f495b);let _0x896247=[];return _0x11b0ec&&(_0x896247=[..._0x896247,..._0x11b0ec]),_0x110fb5&&(_0x896247=[..._0x896247,..._0x110fb5]),_0x56677e&&(_0x896247=[..._0x896247,..._0x56677e]),_0x896247;}}[a43_0x24bfce(0xae)](_0x522fb4,_0x245e5b,_0x449c80){const _0xaff79f=a43_0x24bfce;var _0x5ecb81;let _0x20fd60=(_0x5ecb81=_0x522fb4[_0xaff79f(0xb0)]())===null||_0x5ecb81===void 0x0?void 0x0:_0x5ecb81['getFeatures']();if(!_0x20fd60)return;_0x20fd60['forEach']((_0x4471c8,_0x40d40b,_0x2d9245)=>{_0x4471c8['tempLayer']=_0x522fb4;});_0x449c80!=undefined&&(_0x20fd60=_0x20fd60[_0xaff79f(0xbc)](_0x1aacfe=>_0x1aacfe[_0xaff79f(0xd1)]==_0x449c80));if(_0x245e5b)return _0x20fd60[_0xaff79f(0xbc)](_0x28d0e5=>_0x28d0e5['layerId']==_0x245e5b);return _0x20fd60;}[a43_0x24bfce(0xb4)](_0x4d8b30,_0x34163b,_0x597682,_0x2b1a32){const _0x4295a2=a43_0x24bfce;var _0x2cc701;let _0x49c808=(_0x2cc701=_0x4d8b30[_0x4295a2(0xb0)]())===null||_0x2cc701===void 0x0?void 0x0:_0x2cc701[_0x4295a2(0xca)]();if(!_0x49c808)return;return _0x49c808[_0x4295a2(0xcf)]((_0x624dab,_0x4f8153,_0x4810c1)=>{_0x624dab['tempLayer']=_0x4d8b30;}),_0x597682&&_0x2b1a32&&_0x2b1a32['length']>0x0?_0x49c808=_0x49c808[_0x4295a2(0xbc)](_0x10335b=>_0x10335b[_0x4295a2(0xd1)]==!![]&&(_0x10335b[_0x4295a2(0xc7)]==_0x34163b&&(_0x10335b[_0x4295a2(0xbe)](_0x597682)==undefined||_0x2b1a32['indexOf'](_0x10335b[_0x4295a2(0xbe)](_0x597682))>-0x1)||_0x10335b[_0x4295a2(0xc7)]==undefined)):_0x49c808=_0x49c808=_0x49c808[_0x4295a2(0xbc)](_0x3c30bb=>_0x3c30bb[_0x4295a2(0xd1)]==!![]&&(_0x3c30bb[_0x4295a2(0xc7)]==_0x34163b||_0x3c30bb[_0x4295a2(0xc7)]==undefined)),_0x49c808;}[a43_0x24bfce(0xc6)](_0x5f0add,_0x6bedbd=0x3){const _0x897be0=a43_0x24bfce;var _0x205eb7;let _0x1a9454=new a43_0x1a8e74({'zIndex':0x270f,'source':new a43_0xda966d()});_0x1a9454['id']=_0x897be0(0xab),this[_0x897be0(0xc0)][_0x897be0(0xc8)](_0x1a9454,![]),(_0x205eb7=_0x1a9454[_0x897be0(0xb0)]())===null||_0x205eb7===void 0x0?void 0x0:_0x205eb7[_0x897be0(0xad)](_0x5f0add);let _0x176a59=0x0,_0xf7fe35=setInterval(()=>{const _0xe4a32d=_0x897be0;if(_0x176a59===_0x6bedbd){_0xf7fe35&&clearInterval(_0xf7fe35);const _0x4e1e2d=this[_0xe4a32d(0xc0)]['getLayerById'](_0x1a9454['id']);_0x4e1e2d&&this[_0xe4a32d(0xc0)]['removeLayer'](_0x4e1e2d);return;}if(_0x1a9454[_0xe4a32d(0xa8)]())_0x1a9454[_0xe4a32d(0xc5)](![]);else _0x1a9454[_0xe4a32d(0xc5)](!![]);_0x176a59++;},0x190);}[a43_0x24bfce(0xce)](_0x2390ae,_0x1f3b1a=0x3){const _0xa79169=a43_0x24bfce;var _0xad3989;let _0x43b7f3=new a43_0x1a8e74({'zIndex':0x270f,'source':new a43_0xda966d()});_0x43b7f3['id']=_0xa79169(0xab),this[_0xa79169(0xc0)][_0xa79169(0xc8)](_0x43b7f3,![]);let _0x3c6dec=[];_0x2390ae[_0xa79169(0xcf)](_0x6c83f3=>{const _0xaf510a=_0xa79169;let _0x514228=new a43_0x1f3c6d();const _0x17007d=getSelectStyle(_0x6c83f3[_0xaf510a(0xbf)]());_0x514228[_0xaf510a(0xb8)](_0x17007d),_0x514228[_0xaf510a(0xbd)](_0x6c83f3),_0x3c6dec['push'](_0x514228);}),(_0xad3989=_0x43b7f3['getSource']())===null||_0xad3989===void 0x0?void 0x0:_0xad3989[_0xa79169(0xad)](_0x3c6dec);let _0x562500=0x0,_0x24efae=setInterval(()=>{const _0x34f323=_0xa79169;if(_0x562500===_0x1f3b1a){_0x24efae&&clearInterval(_0x24efae);const _0x92af93=this[_0x34f323(0xc0)][_0x34f323(0xb2)](_0x43b7f3['id']);_0x92af93&&this[_0x34f323(0xc0)][_0x34f323(0xcd)](_0x92af93);return;}if(_0x43b7f3[_0x34f323(0xa8)]())_0x43b7f3[_0x34f323(0xc5)](![]);else _0x43b7f3[_0x34f323(0xc5)](!![]);_0x562500++;},0x190);}async[a43_0x24bfce(0xd0)](_0x391b74){const _0x2b436b=a43_0x24bfce;let _0x16e555=await toGeoJSON(_0x391b74,null);if(!_0x16e555)return[];let _0x430820=[];var _0x153e71=new a43_0x2de848();return _0x16e555[_0x2b436b(0xa9)][_0x2b436b(0xcf)](_0x124876=>{const _0x3491b=_0x2b436b;_0x430820[_0x3491b(0xb1)](_0x153e71[_0x3491b(0xaf)](_0x124876,null));}),_0x430820;}['clearTempFeatures'](_0x44d617){const _0x24bf51=a43_0x24bfce,_0x5e3ceb=this[_0x24bf51(0xc9)]();if(_0x5e3ceb&&_0x5e3ceb[_0x24bf51(0xa7)]>0x0)for(const _0x5d722b of _0x5e3ceb){if(_0x5d722b&&_0x5d722b[_0x24bf51(0xb7)]){const _0x276c17=_0x5d722b['tempLayer'][_0x24bf51(0xb0)]();_0x276c17&&(_0x44d617!=undefined?_0x5d722b['tag']==_0x44d617&&_0x276c17[_0x24bf51(0xb3)](_0x5d722b):_0x276c17[_0x24bf51(0xb3)](_0x5d722b));}}}}
package/index.js CHANGED
@@ -1 +1 @@
1
- function a44_0x176d(){var _0x1be7f5=['14194587ChjSnM','1247469wsyWvJ','1086398Ybnmnr','156780RRleQO','30nKIpaY','8LIrAJO','1043664ZtfYur','4LgLjFp','6xeLEWR','5532885lsNgiv','151928ONjxaP','24dzzDJm'];a44_0x176d=function(){return _0x1be7f5;};return a44_0x176d();}(function(_0x1d56e3,_0x3a9d88){var _0x47dfe7=a44_0x3248,_0x387b89=_0x1d56e3();while(!![]){try{var _0x550360=parseInt(_0x47dfe7(0x1cb))/0x1+parseInt(_0x47dfe7(0x1d1))/0x2*(parseInt(_0x47dfe7(0x1ca))/0x3)+-parseInt(_0x47dfe7(0x1d0))/0x4*(-parseInt(_0x47dfe7(0x1d2))/0x5)+-parseInt(_0x47dfe7(0x1cf))/0x6+-parseInt(_0x47dfe7(0x1c7))/0x7*(-parseInt(_0x47dfe7(0x1ce))/0x8)+parseInt(_0x47dfe7(0x1cc))/0x9*(-parseInt(_0x47dfe7(0x1cd))/0xa)+-parseInt(_0x47dfe7(0x1c9))/0xb*(parseInt(_0x47dfe7(0x1c8))/0xc);if(_0x550360===_0x3a9d88)break;else _0x387b89['push'](_0x387b89['shift']());}catch(_0x47a5cc){_0x387b89['push'](_0x387b89['shift']());}}}(a44_0x176d,0x9ff06));function a44_0x3248(_0xcc7b75,_0x267247){var _0x176de5=a44_0x176d();return a44_0x3248=function(_0x324893,_0x5678f5){_0x324893=_0x324893-0x1c7;var _0x1ac199=_0x176de5[_0x324893];return _0x1ac199;},a44_0x3248(_0xcc7b75,_0x267247);}import a44_0x493e00 from'./mapView/Map';export{a44_0x493e00 as Map2D};
1
+ function a44_0x3d59(_0x2db319,_0x4b7aac){var _0x19b8e1=a44_0x19b8();return a44_0x3d59=function(_0x3d59ef,_0x57a15b){_0x3d59ef=_0x3d59ef-0x1d8;var _0x3f9c1a=_0x19b8e1[_0x3d59ef];return _0x3f9c1a;},a44_0x3d59(_0x2db319,_0x4b7aac);}(function(_0x55e302,_0x4c750b){var _0x2e5605=a44_0x3d59,_0x524129=_0x55e302();while(!![]){try{var _0x172e8c=-parseInt(_0x2e5605(0x1d9))/0x1*(parseInt(_0x2e5605(0x1d8))/0x2)+-parseInt(_0x2e5605(0x1dc))/0x3*(parseInt(_0x2e5605(0x1db))/0x4)+parseInt(_0x2e5605(0x1df))/0x5*(parseInt(_0x2e5605(0x1de))/0x6)+-parseInt(_0x2e5605(0x1e3))/0x7*(parseInt(_0x2e5605(0x1e1))/0x8)+-parseInt(_0x2e5605(0x1e0))/0x9+parseInt(_0x2e5605(0x1e2))/0xa*(-parseInt(_0x2e5605(0x1da))/0xb)+parseInt(_0x2e5605(0x1e4))/0xc*(parseInt(_0x2e5605(0x1dd))/0xd);if(_0x172e8c===_0x4c750b)break;else _0x524129['push'](_0x524129['shift']());}catch(_0x5db588){_0x524129['push'](_0x524129['shift']());}}}(a44_0x19b8,0x1bc46));function a44_0x19b8(){var _0xb121af=['6305HEFVYo','6xJjvBM','308380tpedOT','667881dBguQm','16Crekzx','410rRSWGI','12019bdweyI','7740nJQYsT','288AzTFPV','366SxrkKJ','25399YeFzpL','47668oHprpB','9LdYnIh'];a44_0x19b8=function(){return _0xb121af;};return a44_0x19b8();}import a44_0x250a60 from'./mapView/Map';export{a44_0x250a60 as Map2D};
@@ -1 +1 @@
1
- const a45_0x5ed744=a45_0x4661;(function(_0x7d8d3e,_0x3d682a){const _0x496d9a=a45_0x4661,_0x492389=_0x7d8d3e();while(!![]){try{const _0xbc4f42=-parseInt(_0x496d9a(0xf0))/0x1+-parseInt(_0x496d9a(0xd3))/0x2+-parseInt(_0x496d9a(0xe8))/0x3+parseInt(_0x496d9a(0xc9))/0x4*(-parseInt(_0x496d9a(0xe5))/0x5)+-parseInt(_0x496d9a(0xf4))/0x6+parseInt(_0x496d9a(0xe1))/0x7+parseInt(_0x496d9a(0xea))/0x8;if(_0xbc4f42===_0x3d682a)break;else _0x492389['push'](_0x492389['shift']());}catch(_0x3c9839){_0x492389['push'](_0x492389['shift']());}}}(a45_0x5007,0x1e3ab));import a45_0x255090 from'./Draw';import a45_0x405eb2 from'ol/events/Event';import{getArea}from'../utils/GeometryUtil';import{getStyle}from'../plot/Plot';import a45_0x366248 from'../entity/measure/AreaMeasureUnits';import a45_0x4246ba from'ol/Collection';function a45_0x5007(){const _0x2f265c=['area','measure','483644pgdgfY','forEach','length','getMap','_spheroid','type','getSource','square-meters','clearMeasure','filter','setFeatureAreaStyle','toFixed','dispatchEvent','unit','17339UhyDKH','measureEnd','coordinates','polygon','115PTulFM','feature','label','224622yGeDoQ','fromEntries','6992656OyntRX','geom','find','entries','#f03437','setStyle','149614khCGik','_style','getText','setMap','792048wiSZgp','measureMoving','text','log','点击开始测量,双击结束测量','_showLabel','_precision','_features','hectare','getLength','26856YrSoYs','getGeometry','clear','getPolygonTempLayer','assign','onInternal','_unit','drawMoving'];a45_0x5007=function(){return _0x2f265c;};return a45_0x5007();}const defaultOptions={'color':a45_0x5ed744(0xee),'fill':!![],'opacity':0.6,'outline':!![],'outlineColor':[0xff,0x0,0x0,0x0],'outlineOpacity':0.6,'outlineWidth':0x2,'font':{},'unit':a45_0x5ed744(0xda),'precision':0x2,'showLabel':!![],'spheroid':![]},MeasureEventType={'measureMoving':a45_0x5ed744(0xf5),'measureEnd':a45_0x5ed744(0xe2)};export class AreaMeasureEvent extends a45_0x405eb2{constructor(_0x135099,_0x26f7c1,_0x5c1e77){const _0x5ae3e8=a45_0x5ed744;super(_0x135099),this[_0x5ae3e8(0xd1)]=_0x26f7c1,this[_0x5ae3e8(0xeb)]=_0x5c1e77;}}function a45_0x4661(_0x4b18fe,_0x576761){const _0x5007b4=a45_0x5007();return a45_0x4661=function(_0x466141,_0x136559){_0x466141=_0x466141-0xc1;let _0x314d15=_0x5007b4[_0x466141];return _0x314d15;},a45_0x4661(_0x4b18fe,_0x576761);}export default class AreaMeasure extends a45_0x255090{constructor(_0x5797eb){const _0x30adda=a45_0x5ed744;_0x5797eb=_0x5797eb||{},console[_0x30adda(0xc2)](_0x5797eb);const _0x5b45d4=Object[_0x30adda(0xcd)](Object['assign']({},defaultOptions),Object[_0x30adda(0xe9)](Object[_0x30adda(0xed)](_0x5797eb)[_0x30adda(0xdc)](([_0x5b2291,_0x5b3855])=>_0x5b3855!=null)));super(_0x30adda(0xe4),{'tipText':_0x30adda(0xc3),'style':_0x5b45d4,'features':new a45_0x4246ba()}),this['_style']=_0x5b45d4,this[_0x30adda(0xcf)]=_0x5b45d4[_0x30adda(0xe0)],this['_precision']=_0x5b45d4['precision'],this[_0x30adda(0xc4)]=_0x5b45d4['showLabel'],this['_spheroid']=_0x5b45d4['spheroid'],this['on']=this[_0x30adda(0xce)],this['on']('drawEnd',_0x3712b0=>{const _0x157175=_0x30adda,_0x575663=this[_0x157175(0xd6)]();if(!_0x575663)return;if(_0x3712b0[_0x157175(0xe6)]){const _0x5786aa=this['setFeatureAreaStyle'](_0x3712b0[_0x157175(0xe6)],_0x5b45d4);this[_0x157175(0xdf)](new AreaMeasureEvent(MeasureEventType[_0x157175(0xe2)],_0x5786aa,_0x3712b0['feature'][_0x157175(0xca)]()));}this[_0x157175(0xf1)]['text']='';}),this['on']('drawAddPoint',_0x491619=>{const _0x1e40d5=_0x30adda,_0xbfd610=this[_0x1e40d5(0xd6)]();if(!_0xbfd610)return;if(_0x491619[_0x1e40d5(0xe6)]){const _0x3187b2=this[_0x1e40d5(0xdd)](_0x491619[_0x1e40d5(0xe6)],_0x5b45d4);this[_0x1e40d5(0xdf)](new AreaMeasureEvent(MeasureEventType[_0x1e40d5(0xf5)],_0x3187b2,_0x491619[_0x1e40d5(0xe6)]['getGeometry']()));}}),this['on'](_0x30adda(0xd0),_0x97bdfc=>{const _0x4b3418=_0x30adda,_0x3459b4=this['getMap']();if(!_0x3459b4)return;if(!_0x97bdfc[_0x4b3418(0xe3)]||_0x97bdfc[_0x4b3418(0xe3)][_0x4b3418(0xd5)]<0x2)return;if(_0x97bdfc[_0x4b3418(0xe6)]){const _0x58483a=this[_0x4b3418(0xdd)](_0x97bdfc[_0x4b3418(0xe6)],_0x5b45d4);this['dispatchEvent'](new AreaMeasureEvent(MeasureEventType[_0x4b3418(0xf5)],_0x58483a,_0x97bdfc[_0x4b3418(0xe6)]['getGeometry']()));}});}[a45_0x5ed744(0xf3)](_0x3b74ac){const _0x41150c=a45_0x5ed744;super['setMap'](_0x3b74ac);if(_0x3b74ac){const _0x5c50d0=_0x3b74ac[_0x41150c(0xcc)](),_0x2a0315=_0x5c50d0===null||_0x5c50d0===void 0x0?void 0x0:_0x5c50d0[_0x41150c(0xd9)]();_0x2a0315&&(this['_source']=_0x2a0315);}}[a45_0x5ed744(0xf2)](_0x2cdcd9){const _0x1c2036=a45_0x5ed744,_0x1cb0da=a45_0x366248[_0x1c2036(0xec)](_0x1f5496=>_0x1f5496[_0x1c2036(0xd8)]===this[_0x1c2036(0xcf)]);switch(_0x1cb0da===null||_0x1cb0da===void 0x0?void 0x0:_0x1cb0da[_0x1c2036(0xd8)]){case _0x1c2036(0xda):return''+(_0x2cdcd9['toFixed'](this[_0x1c2036(0xc5)])+_0x1cb0da[_0x1c2036(0xe7)]);case'square-kilometers':return''+((_0x2cdcd9*0.000001)['toFixed'](this[_0x1c2036(0xc5)])+_0x1cb0da[_0x1c2036(0xe7)]);case'mu':return''+((_0x2cdcd9*0.0015)[_0x1c2036(0xde)](this[_0x1c2036(0xc5)])+_0x1cb0da['label']);case _0x1c2036(0xc7):return''+((_0x2cdcd9*0.0001)['toFixed'](this[_0x1c2036(0xc5)])+_0x1cb0da[_0x1c2036(0xe7)]);default:return _0x2cdcd9[_0x1c2036(0xde)](this['_precision'])+'平方米';}}[a45_0x5ed744(0xdd)](_0x343c41,_0x332244){const _0x3eb6b0=a45_0x5ed744,_0x2c4a31=this[_0x3eb6b0(0xd6)]();if(!_0x2c4a31)return 0x0;const _0x2368ff=_0x343c41[_0x3eb6b0(0xca)](),_0x1ec6cc=getArea(_0x2368ff,_0x2c4a31['getView']()['getProjection'](),this[_0x3eb6b0(0xd7)]);return _0x343c41['fromType']=_0x3eb6b0(0xd2),this[_0x3eb6b0(0xc4)]&&(_0x332244[_0x3eb6b0(0xc1)]=this['getText'](_0x1ec6cc),_0x343c41[_0x3eb6b0(0xef)](getStyle(_0x3eb6b0(0xe4),_0x332244,_0x2c4a31))),_0x1ec6cc;}['setUnit'](_0xf548c3){const _0x4a5d64=a45_0x5ed744;this['_unit']=_0xf548c3,this['_features']&&this['_features'][_0x4a5d64(0xc8)]()>0x0&&this[_0x4a5d64(0xc6)]['forEach'](_0x5d3926=>{const _0x272308=_0x4a5d64;this[_0x272308(0xdd)](_0x5d3926,this[_0x272308(0xf1)]);});}[a45_0x5ed744(0xdb)](){const _0x7ad88f=a45_0x5ed744,_0x33cc71=this['getMap']();if(!_0x33cc71)return;const _0x48254a=_0x33cc71[_0x7ad88f(0xcc)](),_0x1b9329=_0x48254a===null||_0x48254a===void 0x0?void 0x0:_0x48254a[_0x7ad88f(0xd9)]();_0x1b9329&&this[_0x7ad88f(0xc6)]&&this[_0x7ad88f(0xc6)]['getLength']()>0x0&&(this[_0x7ad88f(0xc6)][_0x7ad88f(0xd4)](_0x4e93df=>{_0x1b9329['removeFeature'](_0x4e93df);}),this[_0x7ad88f(0xc6)][_0x7ad88f(0xcb)]());}}
1
+ const a45_0x1aab9f=a45_0x3e55;(function(_0x524a95,_0x58d985){const _0x250bbb=a45_0x3e55,_0x5674f5=_0x524a95();while(!![]){try{const _0x258b0e=parseInt(_0x250bbb(0x1ae))/0x1*(-parseInt(_0x250bbb(0x1c1))/0x2)+parseInt(_0x250bbb(0x1c2))/0x3*(parseInt(_0x250bbb(0x197))/0x4)+parseInt(_0x250bbb(0x19d))/0x5+parseInt(_0x250bbb(0x191))/0x6+parseInt(_0x250bbb(0x1b7))/0x7*(parseInt(_0x250bbb(0x1b5))/0x8)+-parseInt(_0x250bbb(0x1bf))/0x9+-parseInt(_0x250bbb(0x19f))/0xa*(-parseInt(_0x250bbb(0x1c3))/0xb);if(_0x258b0e===_0x58d985)break;else _0x5674f5['push'](_0x5674f5['shift']());}catch(_0x3a222d){_0x5674f5['push'](_0x5674f5['shift']());}}}(a45_0x511f,0x39c14));import a45_0xd87275 from'./Draw';import a45_0x132df7 from'ol/events/Event';import{getArea}from'../utils/GeometryUtil';import{getStyle}from'../plot/Plot';import a45_0x410d26 from'../entity/measure/AreaMeasureUnits';import a45_0x4a1ceb from'ol/Collection';const defaultOptions={'color':a45_0x1aab9f(0x198),'fill':!![],'opacity':0.6,'outline':!![],'outlineColor':[0xff,0x0,0x0,0x0],'outlineOpacity':0.6,'outlineWidth':0x2,'font':{},'unit':a45_0x1aab9f(0x1c6),'precision':0x2,'showLabel':!![],'spheroid':![]},MeasureEventType={'measureMoving':'measureMoving','measureEnd':a45_0x1aab9f(0x18b)};function a45_0x3e55(_0x33140b,_0xdc287e){const _0x511f0e=a45_0x511f();return a45_0x3e55=function(_0x3e555c,_0x1d1c15){_0x3e555c=_0x3e555c-0x18b;let _0x58ac2f=_0x511f0e[_0x3e555c];return _0x58ac2f;},a45_0x3e55(_0x33140b,_0xdc287e);}export class AreaMeasureEvent extends a45_0x132df7{constructor(_0x2b808c,_0x25ceaa,_0x4a2dc3){const _0x41b917=a45_0x1aab9f;super(_0x2b808c),this[_0x41b917(0x1c0)]=_0x25ceaa,this[_0x41b917(0x18c)]=_0x4a2dc3;}}export default class AreaMeasure extends a45_0xd87275{constructor(_0x668fc2){const _0x30692d=a45_0x1aab9f;_0x668fc2=_0x668fc2||{},console['log'](_0x668fc2);const _0x23fe19=Object[_0x30692d(0x1a6)](Object['assign']({},defaultOptions),Object[_0x30692d(0x1a0)](Object[_0x30692d(0x190)](_0x668fc2)[_0x30692d(0x1a9)](([_0xbfaae6,_0x5cec82])=>_0x5cec82!=null)));super(_0x30692d(0x1ab),{'tipText':_0x30692d(0x19c),'style':_0x23fe19,'features':new a45_0x4a1ceb()}),this[_0x30692d(0x1ba)]=_0x23fe19,this['_unit']=_0x23fe19[_0x30692d(0x1c4)],this[_0x30692d(0x1aa)]=_0x23fe19[_0x30692d(0x1b8)],this[_0x30692d(0x1b1)]=_0x23fe19[_0x30692d(0x18f)],this['_spheroid']=_0x23fe19['spheroid'],this['on']=this[_0x30692d(0x1ac)],this['on'](_0x30692d(0x1bb),_0x96ff3a=>{const _0x3ccfc4=_0x30692d,_0x346ce0=this[_0x3ccfc4(0x193)]();if(!_0x346ce0)return;if(_0x96ff3a[_0x3ccfc4(0x18d)]){const _0x1d1bd1=this[_0x3ccfc4(0x19a)](_0x96ff3a[_0x3ccfc4(0x18d)],_0x23fe19);this['dispatchEvent'](new AreaMeasureEvent(MeasureEventType[_0x3ccfc4(0x18b)],_0x1d1bd1,_0x96ff3a['feature']['getGeometry']()));}this['_style']['text']='';}),this['on'](_0x30692d(0x1bc),_0x460fbe=>{const _0xd9e1e2=_0x30692d,_0x5c4700=this[_0xd9e1e2(0x193)]();if(!_0x5c4700)return;if(_0x460fbe[_0xd9e1e2(0x18d)]){const _0x1a1279=this[_0xd9e1e2(0x19a)](_0x460fbe[_0xd9e1e2(0x18d)],_0x23fe19);this[_0xd9e1e2(0x196)](new AreaMeasureEvent(MeasureEventType[_0xd9e1e2(0x19b)],_0x1a1279,_0x460fbe['feature'][_0xd9e1e2(0x1a7)]()));}}),this['on'](_0x30692d(0x199),_0x36363f=>{const _0x13aa9a=_0x30692d,_0x9a2192=this[_0x13aa9a(0x193)]();if(!_0x9a2192)return;if(!_0x36363f[_0x13aa9a(0x1a1)]||_0x36363f[_0x13aa9a(0x1a1)][_0x13aa9a(0x195)]<0x2)return;if(_0x36363f['feature']){const _0x25cb83=this['setFeatureAreaStyle'](_0x36363f[_0x13aa9a(0x18d)],_0x23fe19);this[_0x13aa9a(0x196)](new AreaMeasureEvent(MeasureEventType['measureMoving'],_0x25cb83,_0x36363f['feature'][_0x13aa9a(0x1a7)]()));}});}['setMap'](_0x4bb2fc){const _0x934386=a45_0x1aab9f;super['setMap'](_0x4bb2fc);if(_0x4bb2fc){const _0x55ad02=_0x4bb2fc['getPolygonTempLayer'](),_0x314d7f=_0x55ad02===null||_0x55ad02===void 0x0?void 0x0:_0x55ad02['getSource']();_0x314d7f&&(this[_0x934386(0x1af)]=_0x314d7f);}}[a45_0x1aab9f(0x1bd)](_0x3109f8){const _0xd07562=a45_0x1aab9f,_0x2ff661=a45_0x410d26['find'](_0x4d6139=>_0x4d6139[_0xd07562(0x18e)]===this['_unit']);switch(_0x2ff661===null||_0x2ff661===void 0x0?void 0x0:_0x2ff661[_0xd07562(0x18e)]){case'square-meters':return''+(_0x3109f8['toFixed'](this['_precision'])+_0x2ff661[_0xd07562(0x1a5)]);case _0xd07562(0x1ad):return''+((_0x3109f8*0.000001)[_0xd07562(0x1a8)](this[_0xd07562(0x1aa)])+_0x2ff661[_0xd07562(0x1a5)]);case'mu':return''+((_0x3109f8*0.0015)[_0xd07562(0x1a8)](this[_0xd07562(0x1aa)])+_0x2ff661[_0xd07562(0x1a5)]);case _0xd07562(0x192):return''+((_0x3109f8*0.0001)['toFixed'](this[_0xd07562(0x1aa)])+_0x2ff661['label']);default:return _0x3109f8[_0xd07562(0x1a8)](this[_0xd07562(0x1aa)])+'平方米';}}['setFeatureAreaStyle'](_0x35c50e,_0x158dfe){const _0x47e520=a45_0x1aab9f,_0x179734=this[_0x47e520(0x193)]();if(!_0x179734)return 0x0;const _0x188046=_0x35c50e[_0x47e520(0x1a7)](),_0x391812=getArea(_0x188046,_0x179734['getView']()[_0x47e520(0x1b4)](),this[_0x47e520(0x1a2)]);return _0x35c50e['fromType']=_0x47e520(0x1c5),this[_0x47e520(0x1b1)]&&(_0x158dfe[_0x47e520(0x1b0)]=this['getText'](_0x391812),_0x35c50e[_0x47e520(0x1b2)](getStyle(_0x47e520(0x1ab),_0x158dfe,_0x179734))),_0x391812;}['setUnit'](_0x2f55bd){const _0x173fd3=a45_0x1aab9f;this[_0x173fd3(0x1a4)]=_0x2f55bd,this['_features']&&this[_0x173fd3(0x1b3)]['getLength']()>0x0&&this[_0x173fd3(0x1b3)]['forEach'](_0x3c9c89=>{const _0x276e50=_0x173fd3;this['setFeatureAreaStyle'](_0x3c9c89,this[_0x276e50(0x1ba)]);});}[a45_0x1aab9f(0x19e)](){const _0x1d06ff=a45_0x1aab9f,_0x3049ea=this['getMap']();if(!_0x3049ea)return;const _0x49d613=_0x3049ea[_0x1d06ff(0x194)](),_0x44de79=_0x49d613===null||_0x49d613===void 0x0?void 0x0:_0x49d613[_0x1d06ff(0x1be)]();_0x44de79&&this[_0x1d06ff(0x1b3)]&&this[_0x1d06ff(0x1b3)]['getLength']()>0x0&&(this['_features'][_0x1d06ff(0x1b6)](_0x59b8b3=>{const _0x4cc049=_0x1d06ff;_0x44de79[_0x4cc049(0x1a3)](_0x59b8b3);}),this['_features'][_0x1d06ff(0x1b9)]());}}function a45_0x511f(){const _0x4c5d23=['hectare','getMap','getPolygonTempLayer','length','dispatchEvent','340XWsQOF','#f03437','drawMoving','setFeatureAreaStyle','measureMoving','点击开始测量,双击结束测量','1274735pncnRp','clearMeasure','1030nXaJfH','fromEntries','coordinates','_spheroid','removeFeature','_unit','label','assign','getGeometry','toFixed','filter','_precision','polygon','onInternal','square-kilometers','1163wiuEZC','_source','text','_showLabel','setStyle','_features','getProjection','88gIHSIR','forEach','107737kzvitE','precision','clear','_style','drawEnd','drawAddPoint','getText','getSource','2870622VxnDhS','area','716WDjOoV','1680NGrKED','19162mFHugT','unit','measure','square-meters','measureEnd','geom','feature','type','showLabel','entries','1923612HcVjiu'];a45_0x511f=function(){return _0x4c5d23;};return a45_0x511f();}
@@ -1 +1 @@
1
- function a46_0x57b0(_0x5b6e47,_0x25dc02){const _0x13fc23=a46_0x13fc();return a46_0x57b0=function(_0x57b0e2,_0x345ed8){_0x57b0e2=_0x57b0e2-0xfb;let _0x1cb5ed=_0x13fc23[_0x57b0e2];return _0x1cb5ed;},a46_0x57b0(_0x5b6e47,_0x25dc02);}function a46_0x13fc(){const _0x4da898=['getMap','2232jGcQZe','120339CZoWIW','58586YvyqFH','2020UyVfOq','61MDoDAe','features','未获取到地图对象','2268336NYjOJh','dispatchEvent','516922ICIGNx','drawEnd','261qzvBTQ','HOLED','setGeometry','addTempLayer','error','rgba(255,\x200,\x200,\x201)','10PXtYUD','onInternal','getGeometry','未获取到擦除要素','holeStyle','length','holePolygon','24148TyHguY','setFeatures','holeFeatures','splitStart','2480628TXyxfi','splited'];a46_0x13fc=function(){return _0x4da898;};return a46_0x13fc();}const a46_0x46ac31=a46_0x57b0;(function(_0x1aacbd,_0x360520){const _0x4d64ec=a46_0x57b0,_0x539e51=_0x1aacbd();while(!![]){try{const _0x5dbcf3=parseInt(_0x4d64ec(0x10a))/0x1*(parseInt(_0x4d64ec(0xff))/0x2)+-parseInt(_0x4d64ec(0x107))/0x3+-parseInt(_0x4d64ec(0x103))/0x4+parseInt(_0x4d64ec(0x117))/0x5*(-parseInt(_0x4d64ec(0x10d))/0x6)+parseInt(_0x4d64ec(0x10f))/0x7+-parseInt(_0x4d64ec(0x106))/0x8*(-parseInt(_0x4d64ec(0x111))/0x9)+-parseInt(_0x4d64ec(0x109))/0xa*(-parseInt(_0x4d64ec(0x108))/0xb);if(_0x5dbcf3===_0x360520)break;else _0x539e51['push'](_0x539e51['shift']());}catch(_0x5826d9){_0x539e51['push'](_0x539e51['shift']());}}}(a46_0x13fc,0x74ae1));import a46_0x41952d from'./Draw';import a46_0x3a2770 from'ol/events/Event';import{difference}from'../utils/GeometryUtil';const HoleEventType={'HOLESTART':a46_0x46ac31(0x102),'HOLED':a46_0x46ac31(0x104)};export class HoleEvent extends a46_0x3a2770{constructor(_0x4b2ee3,_0x13df13,_0x343060,_0x3da4a9){const _0x20ae0f=a46_0x46ac31;super(_0x4b2ee3),this[_0x20ae0f(0xfe)]=_0x13df13,this[_0x20ae0f(0x10b)]=_0x343060,this[_0x20ae0f(0x115)]=_0x3da4a9;}}export default class Difference extends a46_0x41952d{constructor(_0x138b3b,_0x22b893){const _0x2f592a=a46_0x46ac31,_0x47c5e7=(_0x22b893===null||_0x22b893===void 0x0?void 0x0:_0x22b893[_0x2f592a(0xfc)])||{'outlineColor':_0x2f592a(0x116),'outlineWidth':0x2,'opacity':0.2,'color':'rgba(255,\x200,\x200,\x201)'};super('polygon',{'tipText':_0x22b893===null||_0x22b893===void 0x0?void 0x0:_0x22b893['tipText'],'style':_0x47c5e7}),this[_0x2f592a(0x10b)]=_0x138b3b;const _0x53ab19=_0x22b893||{};this['addTempLayer']=_0x53ab19[_0x2f592a(0x114)]||![],this['on']=this[_0x2f592a(0x118)],this['on'](_0x2f592a(0x110),async _0xb7f02a=>{const _0x159632=_0x2f592a;var _0x7666e;const _0x2a326f=this[_0x159632(0x105)]();let _0x29eece=(_0x7666e=_0xb7f02a['feature'])===null||_0x7666e===void 0x0?void 0x0:_0x7666e['getGeometry']();!_0x29eece&&this[_0x159632(0x10e)](new HoleEvent(HoleEventType[_0x159632(0x112)],undefined,undefined,'未获取到挖除的面'));let _0xa6d9f8=_0x29eece;!_0x2a326f&&this[_0x159632(0x10e)](new HoleEvent(HoleEventType[_0x159632(0x112)],_0xa6d9f8,undefined,_0x159632(0x10c)));(!this[_0x159632(0x10b)]||this[_0x159632(0x10b)][_0x159632(0xfd)]===0x0)&&this['dispatchEvent'](new HoleEvent(HoleEventType[_0x159632(0x112)],_0xa6d9f8,undefined,_0x159632(0xfb)));try{this['dispatchEvent'](new HoleEvent(HoleEventType['HOLESTART'],_0xa6d9f8));const _0x527750=this[_0x159632(0x101)](_0xa6d9f8);this[_0x159632(0x10e)](new HoleEvent(HoleEventType[_0x159632(0x112)],_0xa6d9f8,_0x527750));}catch(_0x31d5a7){this[_0x159632(0x10e)](new HoleEvent(HoleEventType[_0x159632(0x112)],_0xa6d9f8,undefined,_0x31d5a7['message']));}});}[a46_0x46ac31(0x101)](_0x1706c2){const _0x49f714=a46_0x46ac31,_0x3bfa70=[];for(let _0x53b51d=0x0;_0x53b51d<this[_0x49f714(0x10b)][_0x49f714(0xfd)];_0x53b51d++){const _0x27eba1=this['features'][_0x53b51d],_0x4168c2=_0x27eba1[_0x49f714(0x119)]();if(!_0x4168c2)continue;const _0x18b8ec=difference(_0x4168c2,_0x1706c2);_0x27eba1[_0x49f714(0x113)](_0x18b8ec),_0x3bfa70['push'](_0x27eba1);}return _0x3bfa70;}[a46_0x46ac31(0x100)](_0x5f1b65){this['features']=_0x5f1b65;}}
1
+ const a46_0x5def89=a46_0x3a18;function a46_0x3a18(_0x438fda,_0x266caf){const _0x40393b=a46_0x4039();return a46_0x3a18=function(_0x3a18c6,_0x37fd98){_0x3a18c6=_0x3a18c6-0x197;let _0xf7cead=_0x40393b[_0x3a18c6];return _0xf7cead;},a46_0x3a18(_0x438fda,_0x266caf);}(function(_0x2ccd5a,_0x6b90f6){const _0x1e4974=a46_0x3a18,_0x215ed8=_0x2ccd5a();while(!![]){try{const _0x585f3c=-parseInt(_0x1e4974(0x1a8))/0x1+parseInt(_0x1e4974(0x1ab))/0x2*(-parseInt(_0x1e4974(0x1a3))/0x3)+-parseInt(_0x1e4974(0x1a0))/0x4*(-parseInt(_0x1e4974(0x1aa))/0x5)+parseInt(_0x1e4974(0x19b))/0x6*(parseInt(_0x1e4974(0x1a1))/0x7)+parseInt(_0x1e4974(0x19d))/0x8*(-parseInt(_0x1e4974(0x1a5))/0x9)+-parseInt(_0x1e4974(0x1b9))/0xa+parseInt(_0x1e4974(0x198))/0xb;if(_0x585f3c===_0x6b90f6)break;else _0x215ed8['push'](_0x215ed8['shift']());}catch(_0x17a439){_0x215ed8['push'](_0x215ed8['shift']());}}}(a46_0x4039,0x2f59c));import a46_0x2e52ae from'./Draw';import a46_0x5dc56b from'ol/events/Event';import{difference}from'../utils/GeometryUtil';const HoleEventType={'HOLESTART':a46_0x5def89(0x1a7),'HOLED':'splited'};function a46_0x4039(){const _0x412b12=['10bZhExb','2DgULnI','HOLESTART','holeStyle','未获取到地图对象','rgba(255,\x200,\x200,\x201)','polygon','getGeometry','onInternal','未获取到擦除要素','length','holeFeatures','holePolygon','addTempLayer','dispatchEvent','1569350HgHQFq','push','4754365CnTkKY','tipText','setGeometry','735258ZTwsGq','drawEnd','26552CxVPFx','HOLED','getMap','449444JcNpyX','14nhRejT','message','262911SSFXdR','未获取到挖除的面','603uUPiNx','features','splitStart','241130TYHoLM','error'];a46_0x4039=function(){return _0x412b12;};return a46_0x4039();}export class HoleEvent extends a46_0x5dc56b{constructor(_0x215977,_0x226c26,_0x359e19,_0x450e85){const _0x4c5f7e=a46_0x5def89;super(_0x215977),this[_0x4c5f7e(0x1b6)]=_0x226c26,this[_0x4c5f7e(0x1a6)]=_0x359e19,this[_0x4c5f7e(0x1a9)]=_0x450e85;}}export default class Difference extends a46_0x2e52ae{constructor(_0x5a06b6,_0x5da38e){const _0x5384b5=a46_0x5def89,_0x2be96d=(_0x5da38e===null||_0x5da38e===void 0x0?void 0x0:_0x5da38e[_0x5384b5(0x1ad)])||{'outlineColor':'rgba(255,\x200,\x200,\x201)','outlineWidth':0x2,'opacity':0.2,'color':_0x5384b5(0x1af)};super(_0x5384b5(0x1b0),{'tipText':_0x5da38e===null||_0x5da38e===void 0x0?void 0x0:_0x5da38e[_0x5384b5(0x199)],'style':_0x2be96d}),this[_0x5384b5(0x1a6)]=_0x5a06b6;const _0x265446=_0x5da38e||{};this[_0x5384b5(0x1b7)]=_0x265446[_0x5384b5(0x1b7)]||![],this['on']=this[_0x5384b5(0x1b2)],this['on'](_0x5384b5(0x19c),async _0x130795=>{const _0x586ab2=_0x5384b5;var _0x3ba5d8;const _0x1b262d=this[_0x586ab2(0x19f)]();let _0x53a54c=(_0x3ba5d8=_0x130795['feature'])===null||_0x3ba5d8===void 0x0?void 0x0:_0x3ba5d8[_0x586ab2(0x1b1)]();!_0x53a54c&&this[_0x586ab2(0x1b8)](new HoleEvent(HoleEventType[_0x586ab2(0x19e)],undefined,undefined,_0x586ab2(0x1a4)));let _0xc37df5=_0x53a54c;!_0x1b262d&&this[_0x586ab2(0x1b8)](new HoleEvent(HoleEventType[_0x586ab2(0x19e)],_0xc37df5,undefined,_0x586ab2(0x1ae)));(!this[_0x586ab2(0x1a6)]||this['features'][_0x586ab2(0x1b4)]===0x0)&&this[_0x586ab2(0x1b8)](new HoleEvent(HoleEventType['HOLED'],_0xc37df5,undefined,_0x586ab2(0x1b3)));try{this[_0x586ab2(0x1b8)](new HoleEvent(HoleEventType[_0x586ab2(0x1ac)],_0xc37df5));const _0x4cfbb6=this[_0x586ab2(0x1b5)](_0xc37df5);this['dispatchEvent'](new HoleEvent(HoleEventType[_0x586ab2(0x19e)],_0xc37df5,_0x4cfbb6));}catch(_0x56cfd8){this[_0x586ab2(0x1b8)](new HoleEvent(HoleEventType[_0x586ab2(0x19e)],_0xc37df5,undefined,_0x56cfd8[_0x586ab2(0x1a2)]));}});}[a46_0x5def89(0x1b5)](_0x2f6f8f){const _0x5ceea0=a46_0x5def89,_0xde38a=[];for(let _0x31381e=0x0;_0x31381e<this[_0x5ceea0(0x1a6)][_0x5ceea0(0x1b4)];_0x31381e++){const _0x514b3f=this['features'][_0x31381e],_0x19e961=_0x514b3f[_0x5ceea0(0x1b1)]();if(!_0x19e961)continue;const _0x2deb8a=difference(_0x19e961,_0x2f6f8f);_0x514b3f[_0x5ceea0(0x19a)](_0x2deb8a),_0xde38a[_0x5ceea0(0x197)](_0x514b3f);}return _0xde38a;}['setFeatures'](_0x107ec5){const _0x5b064c=a46_0x5def89;this[_0x5b064c(0x1a6)]=_0x107ec5;}}
@@ -1 +1 @@
1
- const a47_0x3cf73f=a47_0x4138;(function(_0x37ac9f,_0x2adff4){const _0xe182af=a47_0x4138,_0x1c2189=_0x37ac9f();while(!![]){try{const _0x5b1fa4=parseInt(_0xe182af(0xfa))/0x1+parseInt(_0xe182af(0xef))/0x2*(-parseInt(_0xe182af(0x10d))/0x3)+-parseInt(_0xe182af(0x10b))/0x4+-parseInt(_0xe182af(0x107))/0x5+parseInt(_0xe182af(0xfc))/0x6*(parseInt(_0xe182af(0x14e))/0x7)+parseInt(_0xe182af(0xf9))/0x8*(-parseInt(_0xe182af(0x137))/0x9)+parseInt(_0xe182af(0x105))/0xa*(parseInt(_0xe182af(0xfe))/0xb);if(_0x5b1fa4===_0x2adff4)break;else _0x1c2189['push'](_0x1c2189['shift']());}catch(_0x45ccec){_0x1c2189['push'](_0x1c2189['shift']());}}}(a47_0x36c3,0x62d24));import a47_0x3509c5 from'ol/events/Event';import a47_0x181395 from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';function a47_0x36c3(){const _0x4bec16=['preventDefault','_tipOverlay','_fixPoint','pointermove','_tipFeature','getActive','单击拖动绘制','updateSketchFeatures_','originalEvent','addFeature','handleDragEvent','Ellipsoid','18CaYZhV','updateTip_','atFinish_','once','getPixelFromCoordinate','handleUpEvent','addPoint','rgba(255,\x20255,\x20255,\x201)','getType','setGeometry','12px\x20Calibre,sans-serif','drawStart','button','length','getView','source','handleDownEvent','coordinate','Rectangle','DRAWADDPOINT','_isStayDraw','addChangeListener','buildDrawingFeature','441BMQuny','coordinates','_snapTolerance','setText','createMultiPointFeature','单击增加点,右击删除点','_source','292126aczddb','abortDrawing_','单击开始绘制','getMap','updateState_','stopDown','revert','_style','DRAWEND','clear','2418064VNPGrj','802245sIGykl','MAX_VALUE','1578jmwssZ','startDrawing_','7082339cRUwXi','单击增加点,右击删除点双击完成绘制','_features','unInternal','point','_tipStyle','handleMoveEvent','30LEaIyU','_showTip','1873130DCTXBZ','type','getSource','_type','2544528RRgxbH','pixel','15fjZiFm','getText','setMap','getProjection','_sketchFeature','abortDrawing','minPoint','rectangle','DRAWABORT','_minPoints','sqrt','setStyle','wrapX','_drawingCoordinates','rgba(0,\x200,\x200,\x200.4)','dispatchEvent','getOverlay','features','tipText','snapTolerance','finishDrawing','showTip','pop','getGeometry','_overlay','push','getCode','left','indexOf','DRAWMOVING'];a47_0x36c3=function(){return _0x4bec16;};return a47_0x36c3();}import a47_0x3a7721 from'ol/Feature';import a47_0x5ba098,{createEditingStyle}from'ol/style/Style';import a47_0x50a4d1 from'ol/source/Vector';function a47_0x4138(_0x15b9b7,_0x2cda52){const _0x36c3b8=a47_0x36c3();return a47_0x4138=function(_0x4138e8,_0x20ba95){_0x4138e8=_0x4138e8-0xe9;let _0x13e054=_0x36c3b8[_0x4138e8];return _0x13e054;},a47_0x4138(_0x15b9b7,_0x2cda52);}import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a47_0x16279f from'ol/style/Text';import a47_0x4cb24e from'ol/style/Fill';import a47_0x58fc25 from'ol/interaction/Property';import a47_0x3bbd7a from'ol/layer/Vector';import a47_0x11b907 from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a47_0x3cf73f(0x142),'DRAWEND':'drawEnd','DRAWABORT':'drawAbort','DRAWADDPOINT':'drawAddPoint','DRAWMOVING':'drawMoving'};export class DrawEvent extends a47_0x3509c5{constructor(_0x5a68e0,_0x2ad018,_0x5d3160){const _0x19f7ac=a47_0x3cf73f;super(_0x5a68e0),this['feature']=_0x2ad018,this[_0x19f7ac(0xe9)]=_0x5d3160;}}export class ShEvent extends a47_0x3509c5{constructor(_0x1a3211,_0xc21b41,_0x2ccbf7,_0x2354c4,_0x478eec){const _0x1231e6=a47_0x3cf73f;super(_0x1a3211),this['projection']=_0x478eec,this[_0x1231e6(0x108)]=_0xc21b41,this[_0x1231e6(0x148)]=_0x2ccbf7,this[_0x1231e6(0xe9)]=_0x2354c4;}}export default class Draw extends a47_0x181395{constructor(_0x48c4f1,_0x432e65){const _0x3a034f=a47_0x3cf73f,_0x11fff7=_0x432e65?_0x432e65:{};!_0x11fff7[_0x3a034f(0xf4)]&&(_0x11fff7[_0x3a034f(0xf4)]=![]);super(_0x432e65),this['on']=this['onInternal'],this[_0x3a034f(0x13a)]=this['onceInternal'],this['un']=this[_0x3a034f(0x101)],this[_0x3a034f(0x14b)]=![],this[_0x3a034f(0x10a)]=_0x48c4f1,this[_0x3a034f(0xf6)]=_0x432e65===null||_0x432e65===void 0x0?void 0x0:_0x432e65['style'],this[_0x3a034f(0xee)]=_0x432e65===null||_0x432e65===void 0x0?void 0x0:_0x432e65[_0x3a034f(0x146)],this[_0x3a034f(0x100)]=_0x432e65===null||_0x432e65===void 0x0?void 0x0:_0x432e65[_0x3a034f(0x11e)];const _0x55f052=getPlotCount(this[_0x3a034f(0x10a)]);this[_0x3a034f(0x116)]=_0x55f052[_0x3a034f(0x113)],this[_0x3a034f(0x12d)]=_0x55f052['fixPoint'],this[_0x3a034f(0x11f)]=_0x432e65===null||_0x432e65===void 0x0?void 0x0:_0x432e65[_0x3a034f(0x11f)],this[_0x3a034f(0x106)]=(_0x432e65===null||_0x432e65===void 0x0?void 0x0:_0x432e65[_0x3a034f(0x122)])==![]?![]:!![],this[_0x3a034f(0xea)]=_0x11fff7['snapTolerance']?_0x11fff7[_0x3a034f(0x120)]:0x6,this['_tipFeature']=new a47_0x3a7721(),this[_0x3a034f(0x103)]=new a47_0x5ba098({'text':new a47_0x16279f({'font':_0x3a034f(0x141),'fill':new a47_0x4cb24e({'color':_0x3a034f(0x13e)}),'backgroundFill':new a47_0x4cb24e({'color':_0x3a034f(0x11b)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x3a034f(0x128),'offsetX':0xf})}),this[_0x3a034f(0x11a)]=[],this[_0x3a034f(0x12c)]=new a47_0x3bbd7a({'source':new a47_0x50a4d1({'useSpatialIndex':![],'wrapX':(_0x432e65===null||_0x432e65===void 0x0?void 0x0:_0x432e65[_0x3a034f(0x119)])?_0x432e65[_0x3a034f(0x119)]:![]})}),this[_0x3a034f(0x125)]=new a47_0x3bbd7a({'source':new a47_0x50a4d1({'useSpatialIndex':![],'wrapX':(_0x432e65===null||_0x432e65===void 0x0?void 0x0:_0x432e65[_0x3a034f(0x119)])?_0x432e65[_0x3a034f(0x119)]:![]}),'updateWhileInteracting':!![]}),this[_0x3a034f(0x14c)](a47_0x58fc25['ACTIVE'],this[_0x3a034f(0xf3)]);}['updateState_'](){const _0x196de0=a47_0x3cf73f,_0x16fc89=this[_0x196de0(0xf2)](),_0x378f48=this[_0x196de0(0x130)]();(!_0x16fc89||!_0x378f48)&&this[_0x196de0(0x112)](),this[_0x196de0(0x125)][_0x196de0(0x10f)](_0x378f48?_0x16fc89:null),this[_0x196de0(0x12c)]['setMap'](_0x378f48?_0x16fc89:null);}[a47_0x3cf73f(0x10f)](_0x55d71f){const _0x37e491=a47_0x3cf73f;super[_0x37e491(0x10f)](_0x55d71f),this[_0x37e491(0xf3)]();}['setStyle'](_0x1d05db){const _0x3c471b=a47_0x3cf73f;this[_0x3c471b(0xf6)]=_0x1d05db?_0x1d05db:{};}[a47_0x3cf73f(0x11d)](){const _0x66a501=a47_0x3cf73f;return this[_0x66a501(0x125)];}[a47_0x3cf73f(0x147)](_0x2684c9){const _0x232e9b=a47_0x3cf73f;if(_0x2684c9['originalEvent'][_0x232e9b(0x143)]===0x2)return _0x2684c9[_0x232e9b(0x133)]['preventDefault'](),this[_0x232e9b(0xf5)](),this[_0x232e9b(0x104)](_0x2684c9),![];return!![];}[a47_0x3cf73f(0x13c)](_0x23d648){const _0x17bdca=a47_0x3cf73f;var _0x1961f5,_0x225027;if(this[_0x17bdca(0x10a)]=='rectangle'&&this[_0x17bdca(0x11a)][_0x17bdca(0x144)]<0x1)return this[_0x17bdca(0x11c)](new DrawEvent(DrawEventType['DRAWEND'],undefined,[_0x23d648['coordinate']])),![];if(!this[_0x17bdca(0x14b)])this[_0x17bdca(0xfd)](_0x23d648[_0x17bdca(0x148)]),this[_0x17bdca(0x11c)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x17bdca(0x10a)],_0x23d648[_0x17bdca(0x148)],this[_0x17bdca(0x11a)],(_0x1961f5=this['getMap']())===null||_0x1961f5===void 0x0?void 0x0:_0x1961f5[_0x17bdca(0x145)]()['getProjection']()[_0x17bdca(0x127)]())),this[_0x17bdca(0x10a)]==_0x17bdca(0x102)&&this['finishDrawing']();else{if(this['_drawingCoordinates']&&this[_0x17bdca(0x11a)]['length']>0x0){if(this[_0x17bdca(0x139)](_0x23d648[_0x17bdca(0x10c)]))return this[_0x17bdca(0x121)](),_0x23d648[_0x17bdca(0x12b)](),![];let _0x56a903=this['_drawingCoordinates']['length']+0x1;_0x56a903<=this[_0x17bdca(0x12d)]&&this['addPoint'](_0x23d648['coordinate']),this['dispatchEvent'](new ShEvent(DrawEventType[_0x17bdca(0x14a)],this['_type'],_0x23d648['coordinate'],this[_0x17bdca(0x11a)],(_0x225027=this['getMap']())===null||_0x225027===void 0x0?void 0x0:_0x225027[_0x17bdca(0x145)]()['getProjection']()[_0x17bdca(0x127)]())),_0x56a903>=this[_0x17bdca(0x116)]&&this[_0x17bdca(0x14d)](this[_0x17bdca(0x11a)]),_0x56a903===this[_0x17bdca(0x12d)]&&this[_0x17bdca(0x121)]();}}return _0x23d648[_0x17bdca(0x12b)](),![];}[a47_0x3cf73f(0x135)](_0x24d032){const _0x1b8e9d=a47_0x3cf73f;var _0x5bc52a;if(this['_type']==_0x1b8e9d(0x114)&&_0x24d032[_0x1b8e9d(0x133)][_0x1b8e9d(0x108)]=='pointermove'){if(!this[_0x1b8e9d(0x14b)]){this[_0x1b8e9d(0xfd)](_0x24d032[_0x1b8e9d(0x148)]),this[_0x1b8e9d(0x11c)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0x1b8e9d(0x10a)],_0x24d032[_0x1b8e9d(0x148)],this[_0x1b8e9d(0x11a)],(_0x5bc52a=this[_0x1b8e9d(0xf2)]())===null||_0x5bc52a===void 0x0?void 0x0:_0x5bc52a['getView']()[_0x1b8e9d(0x110)]()[_0x1b8e9d(0x127)]()));return;}let _0x58aac8=[...this[_0x1b8e9d(0x11a)],_0x24d032[_0x1b8e9d(0x148)]];this[_0x1b8e9d(0x14d)](_0x58aac8),this[_0x1b8e9d(0x11c)](new DrawEvent(DrawEventType[_0x1b8e9d(0x12a)],this['_sketchFeature'],this[_0x1b8e9d(0x11a)]));}}[a47_0x3cf73f(0x104)](_0x361e32){const _0xdb7f2c=a47_0x3cf73f;var _0x121b4c,_0x2a1e9f,_0x3e3bf0;let _0x4e76be='';this[_0xdb7f2c(0x10a)]==_0xdb7f2c(0x12e)&&(this['startDrawing_'](_0x361e32['coordinate']),this[_0xdb7f2c(0x11c)](new ShEvent(DrawEventType['DRAWADDPOINT'],this[_0xdb7f2c(0x10a)],_0x361e32['coordinate'],this[_0xdb7f2c(0x11a)],(_0x121b4c=this['getMap']())===null||_0x121b4c===void 0x0?void 0x0:_0x121b4c[_0xdb7f2c(0x145)]()['getProjection']()['getCode']())),this['finishDrawing']());!this[_0xdb7f2c(0x14b)]?_0x4e76be=this[_0xdb7f2c(0x10a)]==_0xdb7f2c(0x114)?_0xdb7f2c(0x131):_0xdb7f2c(0xf1):(_0x4e76be=_0xdb7f2c(0xed),((_0x2a1e9f=this[_0xdb7f2c(0x11a)])===null||_0x2a1e9f===void 0x0?void 0x0:_0x2a1e9f[_0xdb7f2c(0x144)])===this[_0xdb7f2c(0x12d)]-0x1&&(_0x4e76be='单击结束绘制,右击删除点'),((_0x3e3bf0=this[_0xdb7f2c(0x11a)])===null||_0x3e3bf0===void 0x0?void 0x0:_0x3e3bf0['length'])>=this['_minPoints']&&this[_0xdb7f2c(0x12d)]===Number[_0xdb7f2c(0xfb)]&&(_0x4e76be=_0xdb7f2c(0xff)));this[_0xdb7f2c(0x11f)]!=undefined&&(_0x4e76be=this[_0xdb7f2c(0x11f)]);this[_0xdb7f2c(0x138)](_0x361e32['coordinate'],_0x4e76be);if(this[_0xdb7f2c(0x14b)]&&this['_type']!=_0xdb7f2c(0x114)){let _0xa9afd3=[...this['_drawingCoordinates'],_0x361e32['coordinate']];this['buildDrawingFeature'](_0xa9afd3);}this['dispatchEvent'](new DrawEvent(DrawEventType[_0xdb7f2c(0x12a)],this[_0xdb7f2c(0x111)],this[_0xdb7f2c(0x11a)]));}[a47_0x3cf73f(0x139)](_0xce6144){const _0x450d7c=a47_0x3cf73f;var _0x1e3d5a;let _0x8bf079=![],_0x65703c=this[_0x450d7c(0x11a)][_0x450d7c(0x144)];if(_0x65703c>this[_0x450d7c(0x116)]&&this[_0x450d7c(0x12d)]===Number[_0x450d7c(0xfb)]){const _0x4608ea=this[_0x450d7c(0x11a)][this['_drawingCoordinates'][_0x450d7c(0x144)]-0x1],_0x314dd0=(_0x1e3d5a=this[_0x450d7c(0xf2)]())===null||_0x1e3d5a===void 0x0?void 0x0:_0x1e3d5a[_0x450d7c(0x13b)](_0x4608ea),_0x2d794b=_0xce6144[0x0]-(_0x314dd0?_0x314dd0[0x0]:0x0),_0x43145c=_0xce6144[0x1]-(_0x314dd0?_0x314dd0[0x1]:0x0);_0x8bf079=Math[_0x450d7c(0x117)](_0x2d794b*_0x2d794b+_0x43145c*_0x43145c)<=this[_0x450d7c(0xea)];}return _0x8bf079;}[a47_0x3cf73f(0xfd)](_0xf97992){const _0x305336=a47_0x3cf73f;this[_0x305336(0x14b)]=!![],this[_0x305336(0x11a)]=[_0xf97992['slice']()],this[_0x305336(0x111)]=this['createMultiPointFeature'](),this[_0x305336(0x132)](),this[_0x305336(0x11c)](new DrawEvent(DrawEventType['DRAWSTART'],this[_0x305336(0x111)],this[_0x305336(0x11a)]));}['finishDrawing'](){const _0x4f5eb6=a47_0x3cf73f;if(this['_drawingCoordinates'][_0x4f5eb6(0x144)]>this[_0x4f5eb6(0x116)]){this['buildDrawingFeature'](this[_0x4f5eb6(0x11a)]);let _0x2811e5=this[_0x4f5eb6(0x11a)];const _0x84438f=this[_0x4f5eb6(0xf0)]();if(!_0x84438f)return;this[_0x4f5eb6(0x11c)](new DrawEvent(DrawEventType[_0x4f5eb6(0xf7)],_0x84438f,_0x2811e5)),this['_features']&&this['_features'][_0x4f5eb6(0x126)](_0x84438f),this[_0x4f5eb6(0xee)]&&this[_0x4f5eb6(0xee)]['addFeature'](_0x84438f);}}[a47_0x3cf73f(0x13d)](_0x39c637){const _0x48cd75=a47_0x3cf73f;this['_drawingCoordinates'][_0x48cd75(0x126)](_0x39c637),this['_sketchFeature']=this[_0x48cd75(0xec)](),this[_0x48cd75(0x132)]();}[a47_0x3cf73f(0xec)](){const _0x577c98=a47_0x3cf73f,_0x456fa0=new MultiPoint(this[_0x577c98(0x11a)]);let _0x345c7c=new a47_0x3a7721();return _0x345c7c[_0x577c98(0x140)](_0x456fa0),_0x345c7c;}[a47_0x3cf73f(0xf0)](){const _0xffd77f=a47_0x3cf73f;var _0x1ef123,_0x420792;this[_0xffd77f(0x14b)]=![];const _0x5a26fc=this[_0xffd77f(0x111)];return this[_0xffd77f(0x111)]=undefined,this[_0xffd77f(0x11a)]=[],(_0x1ef123=this[_0xffd77f(0x125)][_0xffd77f(0x109)]())===null||_0x1ef123===void 0x0?void 0x0:_0x1ef123[_0xffd77f(0xf8)](!![]),(_0x420792=this[_0xffd77f(0x12c)][_0xffd77f(0x109)]())===null||_0x420792===void 0x0?void 0x0:_0x420792[_0xffd77f(0xf8)](!![]),_0x5a26fc;}[a47_0x3cf73f(0x112)](){const _0x24230f=a47_0x3cf73f,_0x30d2ce=this[_0x24230f(0xf0)]();_0x30d2ce&&this[_0x24230f(0x11c)](new DrawEvent(DrawEventType[_0x24230f(0x115)],_0x30d2ce,this[_0x24230f(0x11a)]));}['buildDrawingFeature'](_0x4afd35){const _0x53f7ed=a47_0x3cf73f;this[_0x53f7ed(0x111)]=new a47_0x3a7721();let _0x2c2e05=createPlot(this[_0x53f7ed(0x10a)],_0x4afd35);if(!_0x2c2e05)return;this['_sketchFeature'][_0x53f7ed(0x140)](_0x2c2e05);let _0x51bc18=[a47_0x11b907['Circle'],a47_0x11b907[_0x53f7ed(0x136)],a47_0x11b907['Ellipse']];if(_0x51bc18[_0x53f7ed(0x129)](this[_0x53f7ed(0x10a)])>-0x1&&this[_0x53f7ed(0xf6)]){}const _0x159bc0=this[_0x53f7ed(0xf2)]();this['_sketchFeature']['setStyle'](getStyle(this[_0x53f7ed(0x10a)],this[_0x53f7ed(0xf6)],this[_0x53f7ed(0xf2)]())),this[_0x53f7ed(0x132)]();}[a47_0x3cf73f(0x132)](){const _0x5baf89=a47_0x3cf73f,_0xc2238d=this['_overlay'][_0x5baf89(0x109)]();_0xc2238d&&this[_0x5baf89(0x111)]&&(_0xc2238d[_0x5baf89(0xf8)](!![]),_0xc2238d[_0x5baf89(0x134)](this[_0x5baf89(0x111)]));}[a47_0x3cf73f(0xf5)](){const _0x38ddf5=a47_0x3cf73f;if(this[_0x38ddf5(0x14b)]){if(this[_0x38ddf5(0x11a)]&&this['_drawingCoordinates']['length']>0x0){const _0x2f5e7a=this[_0x38ddf5(0x125)]['getSource']();_0x2f5e7a===null||_0x2f5e7a===void 0x0?void 0x0:_0x2f5e7a[_0x38ddf5(0xf8)](!![]),this['_drawingCoordinates'][_0x38ddf5(0x123)](),this[_0x38ddf5(0x11a)]['length']>=this[_0x38ddf5(0x116)]&&this[_0x38ddf5(0x14d)](this[_0x38ddf5(0x11a)]),this[_0x38ddf5(0x11a)][_0x38ddf5(0x144)]===0x0&&(this['_isStayDraw']=![]);}}}[a47_0x3cf73f(0x138)](_0x2024bf,_0x54d9f9){const _0x2ebe10=a47_0x3cf73f;var _0x52c83a,_0x5ae696,_0x1987a2,_0x295f42;if(!this[_0x2ebe10(0x106)])return;const _0x461f10=this[_0x2ebe10(0x12c)][_0x2ebe10(0x109)]();_0x461f10===null||_0x461f10===void 0x0?void 0x0:_0x461f10[_0x2ebe10(0xf8)](!![]),(_0x52c83a=this[_0x2ebe10(0x12f)])===null||_0x52c83a===void 0x0?void 0x0:_0x52c83a['setGeometry'](new Point(_0x2024bf)),(_0x1987a2=(_0x5ae696=this['_tipStyle'])===null||_0x5ae696===void 0x0?void 0x0:_0x5ae696[_0x2ebe10(0x10e)]())===null||_0x1987a2===void 0x0?void 0x0:_0x1987a2[_0x2ebe10(0xeb)](_0x54d9f9),(_0x295f42=this[_0x2ebe10(0x12f)])===null||_0x295f42===void 0x0?void 0x0:_0x295f42[_0x2ebe10(0x118)](this[_0x2ebe10(0x103)]),this[_0x2ebe10(0x12f)]&&(_0x461f10===null||_0x461f10===void 0x0?void 0x0:_0x461f10[_0x2ebe10(0x134)](this['_tipFeature']));}}function getDefaultStyleFunction(){const _0x658475=createEditingStyle();return function(_0xaecf73,_0x299704){const _0x2120f4=a47_0x4138,_0x584b4b=_0x658475[_0xaecf73[_0x2120f4(0x124)]()[_0x2120f4(0x13f)]()];if(_0x584b4b&&_0x2120f4(0x149)==_0xaecf73[_0x2120f4(0x124)]()[_0x2120f4(0x13f)]()){}};}
1
+ const a47_0x2e1821=a47_0x5550;(function(_0xc082b,_0x183d88){const _0x44770f=a47_0x5550,_0x1f754d=_0xc082b();while(!![]){try{const _0x2c5cfd=-parseInt(_0x44770f(0x19e))/0x1+parseInt(_0x44770f(0x174))/0x2+-parseInt(_0x44770f(0x16f))/0x3*(parseInt(_0x44770f(0x196))/0x4)+-parseInt(_0x44770f(0x186))/0x5+parseInt(_0x44770f(0x154))/0x6*(-parseInt(_0x44770f(0x182))/0x7)+-parseInt(_0x44770f(0x158))/0x8*(parseInt(_0x44770f(0x15e))/0x9)+parseInt(_0x44770f(0x19a))/0xa;if(_0x2c5cfd===_0x183d88)break;else _0x1f754d['push'](_0x1f754d['shift']());}catch(_0x51ef0e){_0x1f754d['push'](_0x1f754d['shift']());}}}(a47_0x24c4,0x31236));import a47_0x246844 from'ol/events/Event';import a47_0x2c087b from'ol/interaction/Pointer';function a47_0x24c4(){const _0x2a314a=['features','_type','1752srSljg','type','stopDown','startDrawing_','1128BdqTrX','ACTIVE','12px\x20Calibre,sans-serif','单击增加点,右击删除点双击完成绘制','handleDownEvent','coordinate','23733sHbmgY','DRAWSTART','getView','_sketchFeature','单击增加点,右击删除点','rgba(255,\x20255,\x20255,\x201)','getSource','drawStart','setMap','preventDefault','coordinates','Ellipsoid','_minPoints','showTip','_overlay','getMap','MAX_VALUE','3YVyVDk','originalEvent','push','getProjection','length','376026pRSBtL','revert','button','updateSketchFeatures_','rgba(0,\x200,\x200,\x200.4)','getActive','pop','drawEnd','handleDragEvent','indexOf','wrapX','sqrt','finishDrawing','DRAWMOVING','8351BbaVZj','onInternal','_tipOverlay','minPoint','739485dDTbRS','addPoint','snapTolerance','_showTip','getText','setStyle','Circle','_isStayDraw','DRAWADDPOINT','单击拖动绘制','setGeometry','buildDrawingFeature','getPixelFromCoordinate','tipText','_drawingCoordinates','_features','562244lPMJbl','_style','_tipStyle','rectangle','10774840zLhFfn','getCode','handleMoveEvent','getGeometry','55596oNDqjC','abortDrawing_','updateState_','style','updateTip_','createMultiPointFeature','_tipFeature','pixel','once','pointermove','handleUpEvent','slice','abortDrawing','drawAddPoint','单击结束绘制,右击删除点','getType','_fixPoint','dispatchEvent','_source','setText','addChangeListener','_snapTolerance','addFeature','unInternal','onceInternal','DRAWEND','clear'];a47_0x24c4=function(){return _0x2a314a;};return a47_0x24c4();}import{MultiPoint,Point}from'ol/geom';import a47_0x22da78 from'ol/Feature';import a47_0xeaf166,{createEditingStyle}from'ol/style/Style';import a47_0x11c05d from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a47_0x14491a from'ol/style/Text';import a47_0xbda954 from'ol/style/Fill';function a47_0x5550(_0x521ad1,_0x2ac674){const _0x24c426=a47_0x24c4();return a47_0x5550=function(_0x5550a4,_0x1183d6){_0x5550a4=_0x5550a4-0x13b;let _0xdfc091=_0x24c426[_0x5550a4];return _0xdfc091;},a47_0x5550(_0x521ad1,_0x2ac674);}import a47_0x295880 from'ol/interaction/Property';import a47_0x53b9f2 from'ol/layer/Vector';import a47_0x4c5bf0 from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a47_0x2e1821(0x165),'DRAWEND':a47_0x2e1821(0x17b),'DRAWABORT':'drawAbort','DRAWADDPOINT':a47_0x2e1821(0x144),'DRAWMOVING':'drawMoving'};export class DrawEvent extends a47_0x246844{constructor(_0x515f2a,_0x391c14,_0x1b9b9e){super(_0x515f2a),this['feature']=_0x391c14,this['coordinates']=_0x1b9b9e;}}export class ShEvent extends a47_0x246844{constructor(_0x283087,_0x575fec,_0x2364c0,_0x2b9e8f,_0x38776f){const _0x395fa6=a47_0x2e1821;super(_0x283087),this['projection']=_0x38776f,this[_0x395fa6(0x155)]=_0x575fec,this[_0x395fa6(0x15d)]=_0x2364c0,this[_0x395fa6(0x168)]=_0x2b9e8f;}}export default class Draw extends a47_0x2c087b{constructor(_0x106e3b,_0x21e8bc){const _0x38a6ba=a47_0x2e1821,_0x4f4a73=_0x21e8bc?_0x21e8bc:{};!_0x4f4a73['stopDown']&&(_0x4f4a73[_0x38a6ba(0x156)]=![]);super(_0x21e8bc),this['on']=this[_0x38a6ba(0x183)],this[_0x38a6ba(0x13f)]=this[_0x38a6ba(0x14f)],this['un']=this[_0x38a6ba(0x14e)],this[_0x38a6ba(0x18d)]=![],this[_0x38a6ba(0x153)]=_0x106e3b,this[_0x38a6ba(0x197)]=_0x21e8bc===null||_0x21e8bc===void 0x0?void 0x0:_0x21e8bc[_0x38a6ba(0x1a1)],this['_source']=_0x21e8bc===null||_0x21e8bc===void 0x0?void 0x0:_0x21e8bc['source'],this[_0x38a6ba(0x195)]=_0x21e8bc===null||_0x21e8bc===void 0x0?void 0x0:_0x21e8bc[_0x38a6ba(0x152)];const _0x222971=getPlotCount(this[_0x38a6ba(0x153)]);this['_minPoints']=_0x222971[_0x38a6ba(0x185)],this[_0x38a6ba(0x147)]=_0x222971['fixPoint'],this[_0x38a6ba(0x193)]=_0x21e8bc===null||_0x21e8bc===void 0x0?void 0x0:_0x21e8bc[_0x38a6ba(0x193)],this['_showTip']=(_0x21e8bc===null||_0x21e8bc===void 0x0?void 0x0:_0x21e8bc[_0x38a6ba(0x16b)])==![]?![]:!![],this[_0x38a6ba(0x14c)]=_0x4f4a73[_0x38a6ba(0x188)]?_0x4f4a73[_0x38a6ba(0x188)]:0x6,this[_0x38a6ba(0x13d)]=new a47_0x22da78(),this[_0x38a6ba(0x198)]=new a47_0xeaf166({'text':new a47_0x14491a({'font':_0x38a6ba(0x15a),'fill':new a47_0xbda954({'color':_0x38a6ba(0x163)}),'backgroundFill':new a47_0xbda954({'color':_0x38a6ba(0x178)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':'left','offsetX':0xf})}),this[_0x38a6ba(0x194)]=[],this[_0x38a6ba(0x184)]=new a47_0x53b9f2({'source':new a47_0x11c05d({'useSpatialIndex':![],'wrapX':(_0x21e8bc===null||_0x21e8bc===void 0x0?void 0x0:_0x21e8bc['wrapX'])?_0x21e8bc[_0x38a6ba(0x17e)]:![]})}),this[_0x38a6ba(0x16c)]=new a47_0x53b9f2({'source':new a47_0x11c05d({'useSpatialIndex':![],'wrapX':(_0x21e8bc===null||_0x21e8bc===void 0x0?void 0x0:_0x21e8bc[_0x38a6ba(0x17e)])?_0x21e8bc[_0x38a6ba(0x17e)]:![]}),'updateWhileInteracting':!![]}),this[_0x38a6ba(0x14b)](a47_0x295880[_0x38a6ba(0x159)],this[_0x38a6ba(0x1a0)]);}[a47_0x2e1821(0x1a0)](){const _0x57cc95=a47_0x2e1821,_0x18bae1=this['getMap'](),_0x245d8e=this[_0x57cc95(0x179)]();(!_0x18bae1||!_0x245d8e)&&this['abortDrawing'](),this[_0x57cc95(0x16c)][_0x57cc95(0x166)](_0x245d8e?_0x18bae1:null),this[_0x57cc95(0x184)][_0x57cc95(0x166)](_0x245d8e?_0x18bae1:null);}['setMap'](_0x5129b9){const _0x436dfb=a47_0x2e1821;super[_0x436dfb(0x166)](_0x5129b9),this[_0x436dfb(0x1a0)]();}[a47_0x2e1821(0x18b)](_0x474fec){this['_style']=_0x474fec?_0x474fec:{};}['getOverlay'](){return this['_overlay'];}[a47_0x2e1821(0x15c)](_0x5cb4b3){const _0x42414f=a47_0x2e1821;if(_0x5cb4b3[_0x42414f(0x170)][_0x42414f(0x176)]===0x2)return _0x5cb4b3[_0x42414f(0x170)][_0x42414f(0x167)](),this[_0x42414f(0x175)](),this[_0x42414f(0x19c)](_0x5cb4b3),![];return!![];}[a47_0x2e1821(0x141)](_0x20aa2b){const _0x3b956b=a47_0x2e1821;var _0x5e1aa0,_0x166e08;if(this[_0x3b956b(0x153)]==_0x3b956b(0x199)&&this['_drawingCoordinates'][_0x3b956b(0x173)]<0x1)return this[_0x3b956b(0x148)](new DrawEvent(DrawEventType[_0x3b956b(0x150)],undefined,[_0x20aa2b[_0x3b956b(0x15d)]])),![];if(!this['_isStayDraw'])this[_0x3b956b(0x157)](_0x20aa2b[_0x3b956b(0x15d)]),this[_0x3b956b(0x148)](new ShEvent(DrawEventType[_0x3b956b(0x18e)],this[_0x3b956b(0x153)],_0x20aa2b[_0x3b956b(0x15d)],this[_0x3b956b(0x194)],(_0x5e1aa0=this['getMap']())===null||_0x5e1aa0===void 0x0?void 0x0:_0x5e1aa0[_0x3b956b(0x160)]()['getProjection']()['getCode']())),this[_0x3b956b(0x153)]=='point'&&this[_0x3b956b(0x180)]();else{if(this['_drawingCoordinates']&&this['_drawingCoordinates']['length']>0x0){if(this['atFinish_'](_0x20aa2b[_0x3b956b(0x13e)]))return this['finishDrawing'](),_0x20aa2b[_0x3b956b(0x167)](),![];let _0x5e5214=this['_drawingCoordinates'][_0x3b956b(0x173)]+0x1;_0x5e5214<=this[_0x3b956b(0x147)]&&this[_0x3b956b(0x187)](_0x20aa2b[_0x3b956b(0x15d)]),this['dispatchEvent'](new ShEvent(DrawEventType[_0x3b956b(0x18e)],this['_type'],_0x20aa2b[_0x3b956b(0x15d)],this[_0x3b956b(0x194)],(_0x166e08=this[_0x3b956b(0x16d)]())===null||_0x166e08===void 0x0?void 0x0:_0x166e08['getView']()[_0x3b956b(0x172)]()[_0x3b956b(0x19b)]())),_0x5e5214>=this[_0x3b956b(0x16a)]&&this[_0x3b956b(0x191)](this['_drawingCoordinates']),_0x5e5214===this['_fixPoint']&&this[_0x3b956b(0x180)]();}}return _0x20aa2b[_0x3b956b(0x167)](),![];}[a47_0x2e1821(0x17c)](_0x3f7186){const _0x15ff9b=a47_0x2e1821;var _0x2d0d41;if(this[_0x15ff9b(0x153)]==_0x15ff9b(0x199)&&_0x3f7186[_0x15ff9b(0x170)][_0x15ff9b(0x155)]==_0x15ff9b(0x140)){if(!this[_0x15ff9b(0x18d)]){this[_0x15ff9b(0x157)](_0x3f7186[_0x15ff9b(0x15d)]),this['dispatchEvent'](new ShEvent(DrawEventType['DRAWADDPOINT'],this['_type'],_0x3f7186[_0x15ff9b(0x15d)],this['_drawingCoordinates'],(_0x2d0d41=this[_0x15ff9b(0x16d)]())===null||_0x2d0d41===void 0x0?void 0x0:_0x2d0d41[_0x15ff9b(0x160)]()[_0x15ff9b(0x172)]()[_0x15ff9b(0x19b)]()));return;}let _0x1342b9=[...this['_drawingCoordinates'],_0x3f7186['coordinate']];this['buildDrawingFeature'](_0x1342b9),this[_0x15ff9b(0x148)](new DrawEvent(DrawEventType['DRAWMOVING'],this[_0x15ff9b(0x161)],this[_0x15ff9b(0x194)]));}}[a47_0x2e1821(0x19c)](_0x4cd5f9){const _0x4311d9=a47_0x2e1821;var _0x4bb36e,_0x362908,_0x3c4430;let _0x1276f1='';this['_type']==_0x4311d9(0x140)&&(this[_0x4311d9(0x157)](_0x4cd5f9[_0x4311d9(0x15d)]),this[_0x4311d9(0x148)](new ShEvent(DrawEventType[_0x4311d9(0x18e)],this[_0x4311d9(0x153)],_0x4cd5f9['coordinate'],this[_0x4311d9(0x194)],(_0x4bb36e=this[_0x4311d9(0x16d)]())===null||_0x4bb36e===void 0x0?void 0x0:_0x4bb36e[_0x4311d9(0x160)]()[_0x4311d9(0x172)]()[_0x4311d9(0x19b)]())),this[_0x4311d9(0x180)]());!this[_0x4311d9(0x18d)]?_0x1276f1=this[_0x4311d9(0x153)]==_0x4311d9(0x199)?_0x4311d9(0x18f):'单击开始绘制':(_0x1276f1=_0x4311d9(0x162),((_0x362908=this[_0x4311d9(0x194)])===null||_0x362908===void 0x0?void 0x0:_0x362908['length'])===this[_0x4311d9(0x147)]-0x1&&(_0x1276f1=_0x4311d9(0x145)),((_0x3c4430=this[_0x4311d9(0x194)])===null||_0x3c4430===void 0x0?void 0x0:_0x3c4430['length'])>=this[_0x4311d9(0x16a)]&&this['_fixPoint']===Number['MAX_VALUE']&&(_0x1276f1=_0x4311d9(0x15b)));this[_0x4311d9(0x193)]!=undefined&&(_0x1276f1=this['tipText']);this[_0x4311d9(0x13b)](_0x4cd5f9[_0x4311d9(0x15d)],_0x1276f1);if(this[_0x4311d9(0x18d)]&&this[_0x4311d9(0x153)]!=_0x4311d9(0x199)){let _0x499c23=[...this[_0x4311d9(0x194)],_0x4cd5f9['coordinate']];this[_0x4311d9(0x191)](_0x499c23);}this[_0x4311d9(0x148)](new DrawEvent(DrawEventType[_0x4311d9(0x181)],this['_sketchFeature'],this[_0x4311d9(0x194)]));}['atFinish_'](_0x5396a3){const _0x226596=a47_0x2e1821;var _0x1f5253;let _0x1ec752=![],_0x3cd7d6=this[_0x226596(0x194)][_0x226596(0x173)];if(_0x3cd7d6>this[_0x226596(0x16a)]&&this[_0x226596(0x147)]===Number[_0x226596(0x16e)]){const _0x68a209=this[_0x226596(0x194)][this[_0x226596(0x194)][_0x226596(0x173)]-0x1],_0x3363e2=(_0x1f5253=this[_0x226596(0x16d)]())===null||_0x1f5253===void 0x0?void 0x0:_0x1f5253[_0x226596(0x192)](_0x68a209),_0xc4ba14=_0x5396a3[0x0]-(_0x3363e2?_0x3363e2[0x0]:0x0),_0x317da5=_0x5396a3[0x1]-(_0x3363e2?_0x3363e2[0x1]:0x0);_0x1ec752=Math[_0x226596(0x17f)](_0xc4ba14*_0xc4ba14+_0x317da5*_0x317da5)<=this['_snapTolerance'];}return _0x1ec752;}[a47_0x2e1821(0x157)](_0x7ddf39){const _0x2b1f5d=a47_0x2e1821;this[_0x2b1f5d(0x18d)]=!![],this['_drawingCoordinates']=[_0x7ddf39[_0x2b1f5d(0x142)]()],this[_0x2b1f5d(0x161)]=this[_0x2b1f5d(0x13c)](),this['updateSketchFeatures_'](),this[_0x2b1f5d(0x148)](new DrawEvent(DrawEventType[_0x2b1f5d(0x15f)],this[_0x2b1f5d(0x161)],this[_0x2b1f5d(0x194)]));}[a47_0x2e1821(0x180)](){const _0x44ee06=a47_0x2e1821;if(this[_0x44ee06(0x194)]['length']>this['_minPoints']){this[_0x44ee06(0x191)](this[_0x44ee06(0x194)]);let _0x52669f=this[_0x44ee06(0x194)];const _0xa8ec0a=this[_0x44ee06(0x19f)]();if(!_0xa8ec0a)return;this['dispatchEvent'](new DrawEvent(DrawEventType[_0x44ee06(0x150)],_0xa8ec0a,_0x52669f)),this['_features']&&this['_features'][_0x44ee06(0x171)](_0xa8ec0a),this['_source']&&this[_0x44ee06(0x149)][_0x44ee06(0x14d)](_0xa8ec0a);}}[a47_0x2e1821(0x187)](_0x4de6f3){const _0x1a1d6c=a47_0x2e1821;this[_0x1a1d6c(0x194)][_0x1a1d6c(0x171)](_0x4de6f3),this['_sketchFeature']=this[_0x1a1d6c(0x13c)](),this['updateSketchFeatures_']();}['createMultiPointFeature'](){const _0x1dc428=a47_0x2e1821,_0x54fde4=new MultiPoint(this[_0x1dc428(0x194)]);let _0x511671=new a47_0x22da78();return _0x511671['setGeometry'](_0x54fde4),_0x511671;}['abortDrawing_'](){const _0x27c6ea=a47_0x2e1821;var _0x442b8d,_0x2c30a1;this[_0x27c6ea(0x18d)]=![];const _0x3a9c94=this[_0x27c6ea(0x161)];return this[_0x27c6ea(0x161)]=undefined,this['_drawingCoordinates']=[],(_0x442b8d=this[_0x27c6ea(0x16c)]['getSource']())===null||_0x442b8d===void 0x0?void 0x0:_0x442b8d[_0x27c6ea(0x151)](!![]),(_0x2c30a1=this['_tipOverlay']['getSource']())===null||_0x2c30a1===void 0x0?void 0x0:_0x2c30a1['clear'](!![]),_0x3a9c94;}[a47_0x2e1821(0x143)](){const _0x322b86=a47_0x2e1821,_0x3b2a8a=this[_0x322b86(0x19f)]();_0x3b2a8a&&this[_0x322b86(0x148)](new DrawEvent(DrawEventType['DRAWABORT'],_0x3b2a8a,this[_0x322b86(0x194)]));}[a47_0x2e1821(0x191)](_0x4077a6){const _0x56ff1c=a47_0x2e1821;this[_0x56ff1c(0x161)]=new a47_0x22da78();let _0x9db936=createPlot(this[_0x56ff1c(0x153)],_0x4077a6);if(!_0x9db936)return;this[_0x56ff1c(0x161)][_0x56ff1c(0x190)](_0x9db936);let _0x33c92e=[a47_0x4c5bf0[_0x56ff1c(0x18c)],a47_0x4c5bf0[_0x56ff1c(0x169)],a47_0x4c5bf0['Ellipse']];if(_0x33c92e[_0x56ff1c(0x17d)](this[_0x56ff1c(0x153)])>-0x1&&this[_0x56ff1c(0x197)]){}const _0x578ccc=this['getMap']();this[_0x56ff1c(0x161)][_0x56ff1c(0x18b)](getStyle(this[_0x56ff1c(0x153)],this['_style'],this[_0x56ff1c(0x16d)]())),this['updateSketchFeatures_']();}[a47_0x2e1821(0x177)](){const _0x6fd995=a47_0x2e1821,_0x5a1f3c=this[_0x6fd995(0x16c)]['getSource']();_0x5a1f3c&&this['_sketchFeature']&&(_0x5a1f3c[_0x6fd995(0x151)](!![]),_0x5a1f3c[_0x6fd995(0x14d)](this[_0x6fd995(0x161)]));}[a47_0x2e1821(0x175)](){const _0x5656fc=a47_0x2e1821;if(this[_0x5656fc(0x18d)]){if(this[_0x5656fc(0x194)]&&this['_drawingCoordinates']['length']>0x0){const _0x2c970a=this[_0x5656fc(0x16c)][_0x5656fc(0x164)]();_0x2c970a===null||_0x2c970a===void 0x0?void 0x0:_0x2c970a['clear'](!![]),this['_drawingCoordinates'][_0x5656fc(0x17a)](),this[_0x5656fc(0x194)][_0x5656fc(0x173)]>=this[_0x5656fc(0x16a)]&&this['buildDrawingFeature'](this['_drawingCoordinates']),this[_0x5656fc(0x194)][_0x5656fc(0x173)]===0x0&&(this['_isStayDraw']=![]);}}}['updateTip_'](_0x5ae203,_0xe6fb4a){const _0x4daee6=a47_0x2e1821;var _0x25f7ea,_0x2211f1,_0x1c299e,_0x5cc048;if(!this[_0x4daee6(0x189)])return;const _0xaab087=this[_0x4daee6(0x184)][_0x4daee6(0x164)]();_0xaab087===null||_0xaab087===void 0x0?void 0x0:_0xaab087[_0x4daee6(0x151)](!![]),(_0x25f7ea=this['_tipFeature'])===null||_0x25f7ea===void 0x0?void 0x0:_0x25f7ea[_0x4daee6(0x190)](new Point(_0x5ae203)),(_0x1c299e=(_0x2211f1=this[_0x4daee6(0x198)])===null||_0x2211f1===void 0x0?void 0x0:_0x2211f1[_0x4daee6(0x18a)]())===null||_0x1c299e===void 0x0?void 0x0:_0x1c299e[_0x4daee6(0x14a)](_0xe6fb4a),(_0x5cc048=this[_0x4daee6(0x13d)])===null||_0x5cc048===void 0x0?void 0x0:_0x5cc048[_0x4daee6(0x18b)](this[_0x4daee6(0x198)]),this[_0x4daee6(0x13d)]&&(_0xaab087===null||_0xaab087===void 0x0?void 0x0:_0xaab087[_0x4daee6(0x14d)](this[_0x4daee6(0x13d)]));}}function getDefaultStyleFunction(){const _0xed26f0=createEditingStyle();return function(_0x16e8cc,_0x2abf36){const _0x6b1b3e=a47_0x5550,_0x23fb2a=_0xed26f0[_0x16e8cc[_0x6b1b3e(0x19d)]()[_0x6b1b3e(0x146)]()];if(_0x23fb2a&&'Rectangle'==_0x16e8cc[_0x6b1b3e(0x19d)]()[_0x6b1b3e(0x146)]()){}};}
@@ -1 +1 @@
1
- const a48_0x1011fd=a48_0x43ee;(function(_0x2413ea,_0xa29e51){const _0x3e9db3=a48_0x43ee,_0x468e32=_0x2413ea();while(!![]){try{const _0x4d9a7b=-parseInt(_0x3e9db3(0x91))/0x1*(-parseInt(_0x3e9db3(0x88))/0x2)+-parseInt(_0x3e9db3(0x87))/0x3+-parseInt(_0x3e9db3(0x82))/0x4+-parseInt(_0x3e9db3(0x93))/0x5*(-parseInt(_0x3e9db3(0x8f))/0x6)+-parseInt(_0x3e9db3(0x85))/0x7+parseInt(_0x3e9db3(0x8b))/0x8+parseInt(_0x3e9db3(0x94))/0x9*(-parseInt(_0x3e9db3(0x89))/0xa);if(_0x4d9a7b===_0xa29e51)break;else _0x468e32['push'](_0x468e32['shift']());}catch(_0x5d9e5a){_0x468e32['push'](_0x468e32['shift']());}}}(a48_0x47a8,0xb25bd));function a48_0x47a8(){const _0x551712=['map','4831664izuSwV','clear','set','6770120sqnLHr','removeAllInteractions','1768500NumfWt','217590EtPRcv','140XmFJow','interactions','10587024vILqXF','name','removeInteraction','get','914142dFQERJ','has','12FXcUDC','delete','35QqLHJx','128754pVzdIm','addInteraction'];a48_0x47a8=function(){return _0x551712;};return a48_0x47a8();}function a48_0x43ee(_0x1a6128,_0x383bd8){const _0x47a814=a48_0x47a8();return a48_0x43ee=function(_0x43ee3f,_0x366d37){_0x43ee3f=_0x43ee3f-0x80;let _0x38d7c4=_0x47a814[_0x43ee3f];return _0x38d7c4;},a48_0x43ee(_0x1a6128,_0x383bd8);}export default class InteractionManager{constructor(_0x4d85e3){const _0x3e2d09=a48_0x43ee;this[_0x3e2d09(0x81)]=_0x4d85e3,this['interactions']=new Map();}[a48_0x1011fd(0x80)](_0x24c01f,_0xba714d){const _0x320ff2=a48_0x1011fd;this[_0x320ff2(0x8a)][_0x320ff2(0x90)](_0x24c01f)&&this['removeInteraction'](_0x24c01f),_0xba714d['set'](_0x320ff2(0x8c),_0x24c01f),this['interactions'][_0x320ff2(0x84)](_0x24c01f,_0xba714d),this['map'][_0x320ff2(0x80)](_0xba714d);}['removeInteraction'](_0x4a989e){const _0x49ee4e=a48_0x1011fd,_0x56decf=this[_0x49ee4e(0x8a)][_0x49ee4e(0x8e)](_0x4a989e);_0x56decf&&(this[_0x49ee4e(0x81)][_0x49ee4e(0x8d)](_0x56decf),this[_0x49ee4e(0x8a)][_0x49ee4e(0x92)](_0x4a989e));}[a48_0x1011fd(0x86)](){const _0x7098b=a48_0x1011fd;this[_0x7098b(0x8a)]['forEach'](_0x1c777d=>{const _0x589aa1=_0x7098b;this[_0x589aa1(0x81)]['removeInteraction'](_0x1c777d);}),this[_0x7098b(0x8a)][_0x7098b(0x83)]();}['getInteraction'](_0x40f853){const _0x1d6b70=a48_0x1011fd;return this['interactions'][_0x1d6b70(0x8e)](_0x40f853);}}
1
+ const a48_0x417c25=a48_0x5784;(function(_0x289d97,_0x53c4ea){const _0xe3f481=a48_0x5784,_0x345f80=_0x289d97();while(!![]){try{const _0x10214c=parseInt(_0xe3f481(0xf9))/0x1+-parseInt(_0xe3f481(0xf2))/0x2+-parseInt(_0xe3f481(0xf6))/0x3+parseInt(_0xe3f481(0xf4))/0x4*(parseInt(_0xe3f481(0xfe))/0x5)+parseInt(_0xe3f481(0xf0))/0x6*(-parseInt(_0xe3f481(0xfb))/0x7)+parseInt(_0xe3f481(0xeb))/0x8+-parseInt(_0xe3f481(0xf5))/0x9*(-parseInt(_0xe3f481(0xed))/0xa);if(_0x10214c===_0x53c4ea)break;else _0x345f80['push'](_0x345f80['shift']());}catch(_0x39be57){_0x345f80['push'](_0x345f80['shift']());}}}(a48_0x5ee0,0xd8d2e));export default class InteractionManager{constructor(_0xb915e){const _0x4ec2da=a48_0x5784;this['map']=_0xb915e,this[_0x4ec2da(0xf1)]=new Map();}['addInteraction'](_0x30b881,_0x263c27){const _0x316b55=a48_0x5784;this['interactions'][_0x316b55(0xfc)](_0x30b881)&&this[_0x316b55(0xea)](_0x30b881),_0x263c27[_0x316b55(0xf8)]('name',_0x30b881),this[_0x316b55(0xf1)]['set'](_0x30b881,_0x263c27),this['map'][_0x316b55(0xee)](_0x263c27);}[a48_0x417c25(0xea)](_0x4249a1){const _0x5774c7=a48_0x417c25,_0x283c1c=this[_0x5774c7(0xf1)][_0x5774c7(0xef)](_0x4249a1);_0x283c1c&&(this['map']['removeInteraction'](_0x283c1c),this[_0x5774c7(0xf1)][_0x5774c7(0xf3)](_0x4249a1));}[a48_0x417c25(0xfd)](){const _0x2942d7=a48_0x417c25;this[_0x2942d7(0xf1)][_0x2942d7(0xec)](_0x4def5e=>{const _0x5a523c=_0x2942d7;this[_0x5a523c(0xf7)][_0x5a523c(0xea)](_0x4def5e);}),this[_0x2942d7(0xf1)]['clear']();}[a48_0x417c25(0xfa)](_0x4ab6d3){const _0x1e88dc=a48_0x417c25;return this[_0x1e88dc(0xf1)][_0x1e88dc(0xef)](_0x4ab6d3);}}function a48_0x5784(_0x58ef4c,_0x4d967e){const _0x5ee0b2=a48_0x5ee0();return a48_0x5784=function(_0x5784c3,_0xe1e655){_0x5784c3=_0x5784c3-0xea;let _0x7a92ba=_0x5ee0b2[_0x5784c3];return _0x7a92ba;},a48_0x5784(_0x58ef4c,_0x4d967e);}function a48_0x5ee0(){const _0x5c8368=['get','168UmicSW','interactions','2303286IzVFSa','delete','4yQaMWo','4130226BfdYqO','379620vrOsKf','map','set','983182MvXlVa','getInteraction','404110IYAkpk','has','removeAllInteractions','1174610Mcvzbk','removeInteraction','2160472oyrrSz','forEach','50VQzIBm','addInteraction'];a48_0x5ee0=function(){return _0x5c8368;};return a48_0x5ee0();}
@@ -1 +1 @@
1
- function a49_0x5cf7(){var _0x2015f=['push','sourceFeatures','rgba(0,255,255,0.2)','length','19212ojkiYE','modifyInteraction','removeInteraction','15146397KzIMNn','getFeatures','map','some','11aQlWsM','assign','740aPzWVk','MultiPolygon','43045QBNiFB','getId','10019884ADeEqu','getCoordinates','42959130OTftuU','1346576WQoDdv','getType','310PfYHeI','refresh','getMap','rgba(255,255,255,0.6)','editFeatures','translate','6056394miqykL','setMap','LineString','getGeometry','8kGjorT','addInteraction','forEach'];a49_0x5cf7=function(){return _0x2015f;};return a49_0x5cf7();}function a49_0xac8c(_0xaaa1e3,_0x49a3ea){var _0x5cf7b4=a49_0x5cf7();return a49_0xac8c=function(_0xac8cf4,_0x468961){_0xac8cf4=_0xac8cf4-0x158;var _0x500a0a=_0x5cf7b4[_0xac8cf4];return _0x500a0a;},a49_0xac8c(_0xaaa1e3,_0x49a3ea);}var a49_0x168d5c=a49_0xac8c;(function(_0x35eb4f,_0xe3d26e){var _0x453724=a49_0xac8c,_0x4266b5=_0x35eb4f();while(!![]){try{var _0x5cfcfc=parseInt(_0x453724(0x15b))/0x1+-parseInt(_0x453724(0x15d))/0x2*(-parseInt(_0x453724(0x16e))/0x3)+-parseInt(_0x453724(0x177))/0x4*(parseInt(_0x453724(0x179))/0x5)+-parseInt(_0x453724(0x163))/0x6+-parseInt(_0x453724(0x158))/0x7+-parseInt(_0x453724(0x167))/0x8*(parseInt(_0x453724(0x171))/0x9)+-parseInt(_0x453724(0x15a))/0xa*(-parseInt(_0x453724(0x175))/0xb);if(_0x5cfcfc===_0xe3d26e)break;else _0x4266b5['push'](_0x4266b5['shift']());}catch(_0x35f29d){_0x4266b5['push'](_0x4266b5['shift']());}}}(a49_0x5cf7,0xe04ac));import{Modify as a49_0xc3f0f0,Select,Translate as a49_0x21c70b}from'ol/interaction';import a49_0xc10320 from'ol/geom/GeometryCollection';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_0x168d5c(0x160),'width':0x2})}),'stroke':new Stroke({'color':'rgba(0,255,255,0.6)','width':0x2}),'fill':new Fill({'color':a49_0x168d5c(0x16c)}),'geometry':_0x4f76ec=>{var _0x372ead=a49_0x168d5c,_0x41e6b5,_0x4eadfc,_0x1250a8,_0x25f7f8,_0x54fffd;let _0x339718=[];if(((_0x41e6b5=_0x4f76ec['getGeometry']())===null||_0x41e6b5===void 0x0?void 0x0:_0x41e6b5[_0x372ead(0x15c)]())==='Polygon')(_0x4eadfc=_0x4f76ec['getGeometry']())===null||_0x4eadfc===void 0x0?void 0x0:_0x4eadfc['getCoordinates']()[0x0][_0x372ead(0x169)](_0x239ad4=>{var _0x9e3b54=_0x372ead;_0x339718[_0x9e3b54(0x16a)](_0x239ad4);});else{if(((_0x1250a8=_0x4f76ec['getGeometry']())===null||_0x1250a8===void 0x0?void 0x0:_0x1250a8[_0x372ead(0x15c)]())===_0x372ead(0x178))_0x4f76ec['getGeometry']()[_0x372ead(0x159)]()[0x0]['forEach'](_0x2e7c58=>{var _0x1bdb02=_0x372ead;_0x2e7c58[_0x1bdb02(0x169)](_0x43042f=>{_0x339718['push'](_0x43042f);}),_0x339718['push'](_0x2e7c58);});else((_0x25f7f8=_0x4f76ec[_0x372ead(0x166)]())===null||_0x25f7f8===void 0x0?void 0x0:_0x25f7f8['getType']())===_0x372ead(0x165)?_0x339718=_0x4f76ec[_0x372ead(0x166)]()[_0x372ead(0x159)]():_0x339718=[(_0x54fffd=_0x4f76ec['getGeometry']())===null||_0x54fffd===void 0x0?void 0x0:_0x54fffd[_0x372ead(0x159)]()];}return new a49_0xc10320([_0x4f76ec['getGeometry'](),new MultiPoint(_0x339718)]);}});export default class Modify extends Select{constructor(_0x5d3289){var _0x46a6df=a49_0x168d5c;_0x5d3289=_0x5d3289||{};const _0x2842b0=Object[_0x46a6df(0x176)]({},_0x5d3289);_0x2842b0['style']=selectModifyStyle,_0x2842b0['filter']=_0x20bcb3=>{var _0x2ea04c=_0x46a6df;if(!_0x20bcb3['isSelected'])return![];if(this[_0x2ea04c(0x16b)]==undefined||this['sourceFeatures'][_0x2ea04c(0x16d)]==0x0)return![];return this['sourceFeatures'][_0x2ea04c(0x174)](_0x4da474=>_0x4da474[_0x2ea04c(0x17a)]()===_0x20bcb3[_0x2ea04c(0x17a)]());},super(_0x2842b0),this[_0x46a6df(0x173)]=null,this['sourceFeatures']=_0x5d3289[_0x46a6df(0x161)],this[_0x46a6df(0x16f)]=new a49_0xc3f0f0({'features':this[_0x46a6df(0x172)]()}),this[_0x46a6df(0x162)]=new a49_0x21c70b({'features':this[_0x46a6df(0x172)](),'condition':platformModifierKeyOnly}),this['getFeatures']()['on']('add',_0x3a0b8d=>{var _0x1b3b43=_0x46a6df,_0x5b7bac,_0x3914c7;this[_0x1b3b43(0x173)]=this[_0x1b3b43(0x15f)](),(_0x5b7bac=this[_0x1b3b43(0x15f)]())===null||_0x5b7bac===void 0x0?void 0x0:_0x5b7bac[_0x1b3b43(0x168)](this[_0x1b3b43(0x16f)]),(_0x3914c7=this[_0x1b3b43(0x15f)]())===null||_0x3914c7===void 0x0?void 0x0:_0x3914c7[_0x1b3b43(0x168)](this[_0x1b3b43(0x162)]);}),this[_0x46a6df(0x172)]()['on']('remove',_0x49d05b=>{var _0x10d237=_0x46a6df,_0xa0cb93,_0x36aca3;(_0xa0cb93=this[_0x10d237(0x15f)]())===null||_0xa0cb93===void 0x0?void 0x0:_0xa0cb93[_0x10d237(0x170)](this[_0x10d237(0x16f)]),(_0x36aca3=this[_0x10d237(0x15f)]())===null||_0x36aca3===void 0x0?void 0x0:_0x36aca3[_0x10d237(0x170)](this[_0x10d237(0x162)]),this[_0x10d237(0x15f)]()[_0x10d237(0x15e)]();});}[a49_0x168d5c(0x164)](_0xe7a554){var _0x3bb6f6=a49_0x168d5c;super['setMap'](_0xe7a554),!_0xe7a554&&this[_0x3bb6f6(0x173)]&&(this['map'][_0x3bb6f6(0x170)](this[_0x3bb6f6(0x16f)]),this[_0x3bb6f6(0x173)][_0x3bb6f6(0x170)](this[_0x3bb6f6(0x162)]));}}
1
+ var a49_0x152ed0=a49_0x52d7;(function(_0x16d572,_0x1147db){var _0x4a234b=a49_0x52d7,_0x1290a0=_0x16d572();while(!![]){try{var _0x207c50=parseInt(_0x4a234b(0x9d))/0x1+-parseInt(_0x4a234b(0x8a))/0x2+-parseInt(_0x4a234b(0x9a))/0x3*(parseInt(_0x4a234b(0x98))/0x4)+parseInt(_0x4a234b(0x9e))/0x5*(-parseInt(_0x4a234b(0x90))/0x6)+parseInt(_0x4a234b(0x82))/0x7*(-parseInt(_0x4a234b(0x92))/0x8)+-parseInt(_0x4a234b(0x89))/0x9*(parseInt(_0x4a234b(0xa3))/0xa)+parseInt(_0x4a234b(0x9b))/0xb;if(_0x207c50===_0x1147db)break;else _0x1290a0['push'](_0x1290a0['shift']());}catch(_0x5d9a02){_0x1290a0['push'](_0x1290a0['shift']());}}}(a49_0x2034,0x8a07b));import{Modify as a49_0x42a580,Select,Translate as a49_0xdb2e2e}from'ol/interaction';import a49_0x1ee4b0 from'ol/geom/GeometryCollection';import{MultiPoint}from'ol/geom';import{platformModifierKeyOnly}from'ol/events/condition';import{Style,Circle,Fill,Stroke}from'ol/style';function a49_0x2034(){var _0x4c2de1=['66lvHRjl','rgba(255,255,255,0.6)','6137752yewOOG','getId','addInteraction','rgba(0,255,255,0.2)','sourceFeatures','getFeatures','8kwyvRd','forEach','1370481NSAFBD','35611532CbHoFZ','filter','340882cniRLu','67730alWWIM','getType','LineString','getCoordinates','push','473630nsDxNG','getMap','remove','map','MultiPolygon','setMap','7HyQybH','modifyInteraction','rgba(0,255,255,0.6)','isSelected','getGeometry','Polygon','translate','99fLboQN','1324102eTqwQt','editFeatures','assign','add','removeInteraction','refresh'];a49_0x2034=function(){return _0x4c2de1;};return a49_0x2034();}const selectModifyStyle=new Style({'image':new Circle({'radius':0x5,'fill':new Fill({'color':'rgba(25,25,125,0.8)'}),'stroke':new Stroke({'color':a49_0x152ed0(0x91),'width':0x2})}),'stroke':new Stroke({'color':a49_0x152ed0(0x84),'width':0x2}),'fill':new Fill({'color':a49_0x152ed0(0x95)}),'geometry':_0x4650dd=>{var _0x17e54a=a49_0x152ed0,_0x597cd0,_0x379424,_0x3b47da,_0x26617f,_0x143e04;let _0x2d0427=[];if(((_0x597cd0=_0x4650dd[_0x17e54a(0x86)]())===null||_0x597cd0===void 0x0?void 0x0:_0x597cd0[_0x17e54a(0x9f)]())===_0x17e54a(0x87))(_0x379424=_0x4650dd['getGeometry']())===null||_0x379424===void 0x0?void 0x0:_0x379424[_0x17e54a(0xa1)]()[0x0][_0x17e54a(0x99)](_0x32bf8c=>{var _0x570e63=_0x17e54a;_0x2d0427[_0x570e63(0xa2)](_0x32bf8c);});else{if(((_0x3b47da=_0x4650dd[_0x17e54a(0x86)]())===null||_0x3b47da===void 0x0?void 0x0:_0x3b47da[_0x17e54a(0x9f)]())===_0x17e54a(0xa7))_0x4650dd[_0x17e54a(0x86)]()[_0x17e54a(0xa1)]()[0x0][_0x17e54a(0x99)](_0x2715fa=>{var _0x10f95a=_0x17e54a;_0x2715fa[_0x10f95a(0x99)](_0x2812c5=>{_0x2d0427['push'](_0x2812c5);}),_0x2d0427[_0x10f95a(0xa2)](_0x2715fa);});else((_0x26617f=_0x4650dd[_0x17e54a(0x86)]())===null||_0x26617f===void 0x0?void 0x0:_0x26617f[_0x17e54a(0x9f)]())===_0x17e54a(0xa0)?_0x2d0427=_0x4650dd[_0x17e54a(0x86)]()['getCoordinates']():_0x2d0427=[(_0x143e04=_0x4650dd[_0x17e54a(0x86)]())===null||_0x143e04===void 0x0?void 0x0:_0x143e04[_0x17e54a(0xa1)]()];}return new a49_0x1ee4b0([_0x4650dd['getGeometry'](),new MultiPoint(_0x2d0427)]);}});function a49_0x52d7(_0x51c27e,_0x569911){var _0x2034f=a49_0x2034();return a49_0x52d7=function(_0x52d70e,_0x3232dc){_0x52d70e=_0x52d70e-0x82;var _0x290e64=_0x2034f[_0x52d70e];return _0x290e64;},a49_0x52d7(_0x51c27e,_0x569911);}export default class Modify extends Select{constructor(_0x200a7e){var _0x5837a3=a49_0x152ed0;_0x200a7e=_0x200a7e||{};const _0x13fe63=Object[_0x5837a3(0x8c)]({},_0x200a7e);_0x13fe63['style']=selectModifyStyle,_0x13fe63[_0x5837a3(0x9c)]=_0x26f4a2=>{var _0x498c97=_0x5837a3;if(!_0x26f4a2[_0x498c97(0x85)])return![];if(this[_0x498c97(0x96)]==undefined||this[_0x498c97(0x96)]['length']==0x0)return![];return this[_0x498c97(0x96)]['some'](_0xf6a104=>_0xf6a104[_0x498c97(0x93)]()===_0x26f4a2[_0x498c97(0x93)]());},super(_0x13fe63),this[_0x5837a3(0xa6)]=null,this[_0x5837a3(0x96)]=_0x200a7e[_0x5837a3(0x8b)],this[_0x5837a3(0x83)]=new a49_0x42a580({'features':this['getFeatures']()}),this[_0x5837a3(0x88)]=new a49_0xdb2e2e({'features':this[_0x5837a3(0x97)](),'condition':platformModifierKeyOnly}),this[_0x5837a3(0x97)]()['on'](_0x5837a3(0x8d),_0x5bac64=>{var _0xcdcc23=_0x5837a3,_0x5d855e,_0x5e8cd7;this[_0xcdcc23(0xa6)]=this[_0xcdcc23(0xa4)](),(_0x5d855e=this[_0xcdcc23(0xa4)]())===null||_0x5d855e===void 0x0?void 0x0:_0x5d855e[_0xcdcc23(0x94)](this['modifyInteraction']),(_0x5e8cd7=this[_0xcdcc23(0xa4)]())===null||_0x5e8cd7===void 0x0?void 0x0:_0x5e8cd7[_0xcdcc23(0x94)](this[_0xcdcc23(0x88)]);}),this[_0x5837a3(0x97)]()['on'](_0x5837a3(0xa5),_0x898293=>{var _0x140d3d=_0x5837a3,_0x19372f,_0x440f8e;(_0x19372f=this[_0x140d3d(0xa4)]())===null||_0x19372f===void 0x0?void 0x0:_0x19372f['removeInteraction'](this['modifyInteraction']),(_0x440f8e=this[_0x140d3d(0xa4)]())===null||_0x440f8e===void 0x0?void 0x0:_0x440f8e['removeInteraction'](this[_0x140d3d(0x88)]),this[_0x140d3d(0xa4)]()[_0x140d3d(0x8f)]();});}[a49_0x152ed0(0xa8)](_0x3ec0ab){var _0x1dbe6e=a49_0x152ed0;super[_0x1dbe6e(0xa8)](_0x3ec0ab),!_0x3ec0ab&&this[_0x1dbe6e(0xa6)]&&(this[_0x1dbe6e(0xa6)][_0x1dbe6e(0x8e)](this['modifyInteraction']),this[_0x1dbe6e(0xa6)][_0x1dbe6e(0x8e)](this[_0x1dbe6e(0x88)]));}}
@@ -1 +1 @@
1
- function a50_0x2da0(_0xda5d16,_0x3bb5ce){const _0x38c884=a50_0x38c8();return a50_0x2da0=function(_0x2da032,_0x2701f0){_0x2da032=_0x2da032-0x75;let _0x11e185=_0x38c884[_0x2da032];return _0x11e185;},a50_0x2da0(_0xda5d16,_0x3bb5ce);}const a50_0x303de2=a50_0x2da0;(function(_0x1f7a35,_0x1d2c1f){const _0xc8dccd=a50_0x2da0,_0x1e47ec=_0x1f7a35();while(!![]){try{const _0x190f28=parseInt(_0xc8dccd(0xb9))/0x1+parseInt(_0xc8dccd(0xbe))/0x2+parseInt(_0xc8dccd(0xc7))/0x3+parseInt(_0xc8dccd(0x8e))/0x4*(parseInt(_0xc8dccd(0x91))/0x5)+parseInt(_0xc8dccd(0x8c))/0x6+-parseInt(_0xc8dccd(0xb2))/0x7*(parseInt(_0xc8dccd(0xa5))/0x8)+-parseInt(_0xc8dccd(0x90))/0x9;if(_0x190f28===_0x1d2c1f)break;else _0x1e47ec['push'](_0x1e47ec['shift']());}catch(_0x260edc){_0x1e47ec['push'](_0x1e47ec['shift']());}}}(a50_0x38c8,0xa59c6));import a50_0xbaf559 from'./Draw';import a50_0x270e32 from'ol/events/Event';import{bufferPixel,intersects}from'../utils/GeometryUtil';import{Point}from'ol/geom';import a50_0x3a617c from'../feature/FeatureManager';import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';import{selectFeaturesByGeo}from'../utils/tasks';function a50_0x38c8(){const _0x7f3a40=['getLayerById','getSelectedFeatures','getArray','url','holdCtrl','addTempLayer','MultiLineString','ctrlKey','SELECTSTART','selectTempLayer','MultiPoint','push','onInternal','Point','message','1322010OojaAE','drawEnd','187368qtNiFt','seletctEditeFeature','1879722hfMMTm','65OnOvxD','selectGeom','currentLayers','selectedPolygonFeatures','getType','pointStyle','cancePointStyle','fromType','filter','copy','layerInfo','pixelDistance','selectLayer','union','addEventListener','polygonStyle','setSelectLayers','selectedLineFeatures','getPolygonTempLayer','getView','8dqOAoS','allSelectedFeatures','selectedPointFeatures','map','selectStart','length','feature','selected','layerType','polygonFeatures','getCode','getProjection','Polygon','9164967LhVrfX','tipText','pointFeatures','error','selectIndex','dispatchEvent','forEach','396224CNHVoE','getMap','lineStyle','getPointTempLayer','getGeometry','27060eLwGib','import','lineFeatures','keydown','setStyle','MultiPolygon','canceLineStyle','getVisible','addFeatures','2872338OogNke','cancePolygonStyle','LineString','selectLayers','getLineTempLayer','layerId','SELECTED','coordinates','draw'];a50_0x38c8=function(){return _0x7f3a40;};return a50_0x38c8();}const SelectEventType={'SELECTSTART':a50_0x303de2(0xa9),'SELECTED':a50_0x303de2(0xac)};export class SelectEvent extends a50_0x270e32{constructor(_0x5669d1,_0x21ae24,_0x41ba5c,_0x1d9645,_0x38a3a,_0x1f6d86,_0x3b4519,_0x5592b3,_0x2674b7){const _0x573767=a50_0x303de2;super(_0x5669d1),this[_0x573767(0x92)]=_0x41ba5c,this[_0x573767(0x7b)]=_0x1d9645,this[_0x573767(0xb4)]=_0x38a3a,this[_0x573767(0xc0)]=_0x1f6d86,this[_0x573767(0xae)]=_0x3b4519,this['allFeatures']=_0x5592b3,this[_0x573767(0xb5)]=_0x2674b7,this[_0x573767(0x81)]=_0x21ae24;}}export default class Select extends a50_0xbaf559{constructor(_0x22d833,_0x439cab){const _0x1bf3d0=a50_0x303de2;super(_0x22d833,{'tipText':_0x439cab===null||_0x439cab===void 0x0?void 0x0:_0x439cab[_0x1bf3d0(0xb3)]}),this[_0x1bf3d0(0xa7)]=[],this[_0x1bf3d0(0xa2)]=[],this[_0x1bf3d0(0x94)]=[],this[_0x1bf3d0(0xa6)]=[];const _0xde145d=_0x439cab||{};this[_0x1bf3d0(0x82)]=_0xde145d[_0x1bf3d0(0x82)]||![],this[_0x1bf3d0(0x93)]=_0xde145d[_0x1bf3d0(0x77)],this['selectTempLayer']=_0xde145d['selectTempLayer']===undefined?!![]:_0xde145d[_0x1bf3d0(0x86)],this[_0x1bf3d0(0x9c)]=_0xde145d[_0x1bf3d0(0x9c)]===undefined?0x5:_0xde145d['pixelDistance'],this['pointStyle']=_0xde145d['pointStyle']?getStyle(_0xde145d[_0x1bf3d0(0x96)]):getSelectPointStyle(),this[_0x1bf3d0(0x97)]=_0xde145d[_0x1bf3d0(0x97)]?getStyle(_0xde145d[_0x1bf3d0(0x97)]):getSelectCancePointStyle(),this['lineStyle']=_0xde145d[_0x1bf3d0(0xbb)]?getStyle(_0xde145d[_0x1bf3d0(0xbb)]):getSelectLineStyle(),this[_0x1bf3d0(0xc4)]=_0xde145d['canceLineStyle']?getStyle(_0xde145d[_0x1bf3d0(0xc4)]):getSelectCancelLineStyle(),this[_0x1bf3d0(0xa0)]=_0xde145d[_0x1bf3d0(0xa0)]?getStyle(_0xde145d[_0x1bf3d0(0xa0)]):getSelectPolygonStyle(),this[_0x1bf3d0(0x75)]=_0xde145d[_0x1bf3d0(0x75)]?getStyle(_0xde145d[_0x1bf3d0(0x75)]):getSelectCancelPolygonStyle(),this[_0x1bf3d0(0x81)]=![];let _0x5d4a81;this['on']=this[_0x1bf3d0(0x89)],this['on'](_0x1bf3d0(0x8d),async _0xda0d09=>{const _0x11be6f=_0x1bf3d0,_0x38cbd1=this[_0x11be6f(0x81)],_0x2e0fbb=this[_0x11be6f(0xba)]();if(!_0x2e0fbb)return;try{let _0x1d31f0=undefined;if(!_0xda0d09[_0x11be6f(0xab)]&&_0xda0d09['coordinates']&&_0xda0d09[_0x11be6f(0x7b)][_0x11be6f(0xaa)]==0x1)_0x1d31f0=bufferPixel(new Point(_0xda0d09[_0x11be6f(0x7b)][0x0]),this['pixelDistance'],_0x2e0fbb);else _0xda0d09[_0x11be6f(0xab)]&&(_0x1d31f0=_0xda0d09['feature'][_0x11be6f(0xbd)]());if(!_0x1d31f0)throw new Error('未获取到几何');this[_0x11be6f(0xb7)](new SelectEvent(SelectEventType[_0x11be6f(0x85)],_0x38cbd1,_0x1d31f0)),this['selectedPointFeatures']=[],this[_0x11be6f(0xa2)]=[],this[_0x11be6f(0x94)]=[],this[_0x11be6f(0xa6)]=[],this[_0x11be6f(0x86)]&&this[_0x11be6f(0x8f)](_0x1d31f0),_0x5d4a81&&clearTimeout(_0x5d4a81),_0x5d4a81=setTimeout(async()=>{const _0x12aa7b=_0x11be6f;await this[_0x12aa7b(0x9d)](_0x1d31f0),this[_0x12aa7b(0xb7)](new SelectEvent(SelectEventType['SELECTED'],_0x38cbd1,_0x1d31f0,_0xda0d09[_0x12aa7b(0x7b)],this[_0x12aa7b(0xa7)],this[_0x12aa7b(0xa2)],this[_0x12aa7b(0x94)],this[_0x12aa7b(0xa6)]));},0x46);}catch(_0x3ccbc2){this['dispatchEvent'](new SelectEvent(SelectEventType[_0x11be6f(0x7a)],_0x38cbd1,undefined,_0xda0d09['coordinates'],this[_0x11be6f(0xa7)],this['selectedLineFeatures'],this['selectedPolygonFeatures'],this[_0x11be6f(0xa6)],_0x3ccbc2[_0x11be6f(0x8b)]));}}),window[_0x1bf3d0(0x9f)](_0x1bf3d0(0xc1),_0x502a14=>{const _0x2cbdda=_0x1bf3d0;_0x502a14[_0x2cbdda(0x84)]&&(this[_0x2cbdda(0x81)]=!![]);}),window['addEventListener']('keyup',_0x4685b2=>{const _0x366866=_0x1bf3d0;this[_0x366866(0x81)]=![];});}[a50_0x303de2(0xa1)](_0x1472e8){this['currentLayers']=_0x1472e8;}async[a50_0x303de2(0x9d)](_0x5305eb){const _0x412647=a50_0x303de2;var _0x3c8bdb;const _0x3efa00=this[_0x412647(0xba)]();let _0x3b2ccb=[];if(this[_0x412647(0x93)]&&this[_0x412647(0x93)][_0x412647(0xaa)]>0x0)_0x3b2ccb=this['currentLayers'];else{let _0xd2fd5e=_0x3efa00['getLayers']()[_0x412647(0x7f)]();_0xd2fd5e=_0xd2fd5e[_0x412647(0x99)](_0x8380ec=>{const _0x1f824f=_0x412647,_0x313fe4=_0x8380ec['layerInfo'];if(!_0x313fe4)return![];return _0x8380ec['getVisible']()==!![]&&_0x313fe4[_0x1f824f(0xb6)]!=undefined&&_0x313fe4['selectIndex']!='';}),_0x3b2ccb=_0xd2fd5e[_0x412647(0xa8)](_0x3dac81=>{const _0x2b7b09=_0x412647;return _0x3dac81[_0x2b7b09(0x9b)];});}if(!_0x3b2ccb||_0x3b2ccb[_0x412647(0xaa)]==0x0)return;const _0x5bbddc=_0x3efa00[_0x412647(0xa4)]()[_0x412647(0xb0)]()[_0x412647(0xaf)](),_0x18e33f=_0x3efa00[_0x412647(0xa4)]()['getResolution']();for(let _0x1a92f2=0x0,_0x1e374b=_0x3b2ccb[_0x412647(0xaa)];_0x1a92f2<_0x1e374b;_0x1a92f2++){const _0x296648=_0x3b2ccb[_0x1a92f2],_0x369f94=_0x3efa00[_0x412647(0x7d)](_0x296648['id']);if(!_0x369f94||_0x369f94[_0x412647(0xc5)]()==![]||!_0x296648||!_0x296648[_0x412647(0x80)]||!_0x296648[_0x412647(0xb6)])continue;let _0x192731=await selectFeaturesByGeo(_0x5305eb,_0x5bbddc,_0x296648[_0x412647(0x80)],_0x296648['selectIndex'],_0x296648[_0x412647(0xad)],_0x296648['loadFilter'],_0x18e33f);if(_0x192731[_0x412647(0xaa)]>0x0){this[_0x412647(0xa6)][_0x412647(0x88)](..._0x192731);let _0x496b53=_0x3efa00[_0x412647(0xa3)](),_0x56c7fc=this[_0x412647(0xa0)];switch((_0x3c8bdb=_0x192731[0x0][_0x412647(0xbd)]())===null||_0x3c8bdb===void 0x0?void 0x0:_0x3c8bdb[_0x412647(0x95)]()){case _0x412647(0x8a):case _0x412647(0x87):this['selectedPointFeatures']['push'](..._0x192731),_0x496b53=_0x3efa00[_0x412647(0xbc)](),_0x56c7fc=this['pointStyle'];break;case'LineString':case'MultiLineString':this[_0x412647(0xa2)][_0x412647(0x88)](..._0x192731),_0x496b53=_0x3efa00[_0x412647(0x78)](),_0x56c7fc=this[_0x412647(0xbb)];break;case _0x412647(0xb1):case'MultiPolygon':this[_0x412647(0x94)][_0x412647(0x88)](..._0x192731),_0x496b53=_0x3efa00['getPolygonTempLayer'](),_0x56c7fc=this[_0x412647(0xa0)];break;default:break;}const _0xd1d09=_0x496b53['getSource']();_0xd1d09&&(_0x192731[_0x412647(0xb8)](_0x48ab01=>{const _0x3bb3ad=_0x412647;_0x48ab01[_0x3bb3ad(0x79)]=_0x296648['id'],_0x48ab01['tempLayer']=_0x496b53,_0x48ab01[_0x3bb3ad(0xc2)](_0x56c7fc);}),this[_0x412647(0x82)]&&_0xd1d09[_0x412647(0xc6)](_0x192731));}}}[a50_0x303de2(0x8f)](_0x17a472){const _0x5a5483=a50_0x303de2,_0x29a07d=new a50_0x3a617c(this[_0x5a5483(0xba)]()),_0x2f3cdd=_0x29a07d[_0x5a5483(0x7e)]();if(!_0x2f3cdd||_0x2f3cdd[_0x5a5483(0xaa)]===0x0)return[];const _0x129e23=[_0x5a5483(0x9a),'cut',_0x5a5483(0x7c),_0x5a5483(0xbf),_0x5a5483(0x9e)],_0x5da909=[];for(const _0x2cb6e1 of _0x2f3cdd){if(!_0x2cb6e1||!_0x2cb6e1[_0x5a5483(0x98)]||!_0x129e23['includes'](_0x2cb6e1[_0x5a5483(0x98)]))continue;const _0x1a0cd0=_0x2cb6e1[_0x5a5483(0xbd)]();if(!_0x1a0cd0)continue;if(!intersects(_0x1a0cd0,_0x17a472))continue;let _0x3d46e0=this[_0x5a5483(0xa0)];this[_0x5a5483(0xa6)][_0x5a5483(0x88)](_0x2cb6e1);switch(_0x1a0cd0[_0x5a5483(0x95)]()){case _0x5a5483(0x8a):case _0x5a5483(0x87):this[_0x5a5483(0xa7)][_0x5a5483(0x88)](_0x2cb6e1),_0x3d46e0=this[_0x5a5483(0x96)];break;case _0x5a5483(0x76):case _0x5a5483(0x83):this['selectedLineFeatures'][_0x5a5483(0x88)](_0x2cb6e1),_0x3d46e0=this['lineStyle'];break;case _0x5a5483(0xb1):case _0x5a5483(0xc3):this[_0x5a5483(0x94)][_0x5a5483(0x88)](_0x2cb6e1),_0x3d46e0=this['polygonStyle'];break;default:break;}_0x2cb6e1[_0x5a5483(0xc2)](_0x3d46e0);}return _0x5da909;}}
1
+ const a50_0x1ad97f=a50_0x4ac9;(function(_0x52de17,_0x4881a5){const _0x2e5df9=a50_0x4ac9,_0x30ab63=_0x52de17();while(!![]){try{const _0x3930d3=-parseInt(_0x2e5df9(0x12e))/0x1*(-parseInt(_0x2e5df9(0xe7))/0x2)+parseInt(_0x2e5df9(0xfb))/0x3+-parseInt(_0x2e5df9(0xf2))/0x4+parseInt(_0x2e5df9(0x121))/0x5+-parseInt(_0x2e5df9(0xe5))/0x6+-parseInt(_0x2e5df9(0x119))/0x7*(parseInt(_0x2e5df9(0xf5))/0x8)+parseInt(_0x2e5df9(0x116))/0x9;if(_0x3930d3===_0x4881a5)break;else _0x30ab63['push'](_0x30ab63['shift']());}catch(_0x20b03a){_0x30ab63['push'](_0x30ab63['shift']());}}}(a50_0x172a,0x2c9cb));import a50_0x3980c3 from'./Draw';import a50_0x6599ca from'ol/events/Event';import{bufferPixel,intersects}from'../utils/GeometryUtil';import{Point}from'ol/geom';import a50_0x30358b from'../feature/FeatureManager';function a50_0x4ac9(_0x2f50b4,_0x91359b){const _0x172af0=a50_0x172a();return a50_0x4ac9=function(_0x4ac9ca,_0x19cbfd){_0x4ac9ca=_0x4ac9ca-0xdb;let _0xe0913d=_0x172af0[_0x4ac9ca];return _0xe0913d;},a50_0x4ac9(_0x2f50b4,_0x91359b);}function a50_0x172a(){const _0x22ca42=['selectTempLayer','currentLayers','keydown','getLayers','未获取到几何','cancePointStyle','931460qxNYTX','map','addEventListener','ctrlKey','includes','selectedLineFeatures','LineString','layerId','loadFilter','seletctEditeFeature','SELECTED','error','canceLineStyle','57542vWKSVU','forEach','lineFeatures','cut','lineStyle','cancePolygonStyle','selected','getSelectedFeatures','union','push','selectLayer','1429032zcmLpm','Polygon','2EBXLaP','import','coordinates','selectedPointFeatures','MultiPolygon','message','getLayerById','tipText','drawEnd','setStyle','getLineTempLayer','846852UflPsl','getCode','setSelectLayers','252776rMQnRy','getMap','getGeometry','dispatchEvent','tempLayer','getVisible','757272mQKcdP','getProjection','allFeatures','filter','pointFeatures','MultiLineString','allSelectedFeatures','getResolution','layerInfo','pointStyle','fromType','selectedPolygonFeatures','selectGeom','addTempLayer','layerType','MultiPoint','length','polygonFeatures','pixelDistance','SELECTSTART','getType','selectIndex','polygonStyle','selectStart','Point','getPolygonTempLayer','feature','1511595MMECcF','getSource','getPointTempLayer','7TPPebI','url'];a50_0x172a=function(){return _0x22ca42;};return a50_0x172a();}import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';import{selectFeaturesByGeo}from'../utils/tasks';const SelectEventType={'SELECTSTART':a50_0x1ad97f(0x112),'SELECTED':a50_0x1ad97f(0xe0)};export class SelectEvent extends a50_0x6599ca{constructor(_0x2dcf45,_0x8b07dd,_0x1744c1,_0xcc18ca,_0x1a7195,_0x29d698,_0x16387e,_0x40accb,_0x1a0533){const _0x1b4eff=a50_0x1ad97f;super(_0x2dcf45),this[_0x1b4eff(0x107)]=_0x1744c1,this[_0x1b4eff(0xe9)]=_0xcc18ca,this[_0x1b4eff(0xff)]=_0x1a7195,this[_0x1b4eff(0xdc)]=_0x29d698,this[_0x1b4eff(0x10c)]=_0x16387e,this[_0x1b4eff(0xfd)]=_0x40accb,this[_0x1b4eff(0x12c)]=_0x1a0533,this['holdCtrl']=_0x8b07dd;}}export default class Select extends a50_0x3980c3{constructor(_0x31b841,_0x2404c0){const _0x1d9392=a50_0x1ad97f;super(_0x31b841,{'tipText':_0x2404c0===null||_0x2404c0===void 0x0?void 0x0:_0x2404c0[_0x1d9392(0xee)]}),this[_0x1d9392(0xea)]=[],this[_0x1d9392(0x126)]=[],this[_0x1d9392(0x106)]=[],this[_0x1d9392(0x101)]=[];const _0x3c4297=_0x2404c0||{};this[_0x1d9392(0x108)]=_0x3c4297[_0x1d9392(0x108)]||![],this[_0x1d9392(0x11c)]=_0x3c4297['selectLayers'],this[_0x1d9392(0x11b)]=_0x3c4297['selectTempLayer']===undefined?!![]:_0x3c4297[_0x1d9392(0x11b)],this['pixelDistance']=_0x3c4297['pixelDistance']===undefined?0x5:_0x3c4297[_0x1d9392(0x10d)],this[_0x1d9392(0x104)]=_0x3c4297[_0x1d9392(0x104)]?getStyle(_0x3c4297['pointStyle']):getSelectPointStyle(),this['cancePointStyle']=_0x3c4297['cancePointStyle']?getStyle(_0x3c4297[_0x1d9392(0x120)]):getSelectCancePointStyle(),this['lineStyle']=_0x3c4297[_0x1d9392(0xde)]?getStyle(_0x3c4297[_0x1d9392(0xde)]):getSelectLineStyle(),this[_0x1d9392(0x12d)]=_0x3c4297['canceLineStyle']?getStyle(_0x3c4297[_0x1d9392(0x12d)]):getSelectCancelLineStyle(),this['polygonStyle']=_0x3c4297[_0x1d9392(0x111)]?getStyle(_0x3c4297['polygonStyle']):getSelectPolygonStyle(),this['cancePolygonStyle']=_0x3c4297[_0x1d9392(0xdf)]?getStyle(_0x3c4297[_0x1d9392(0xdf)]):getSelectCancelPolygonStyle(),this['holdCtrl']=![];let _0x34e2ba;this['on']=this['onInternal'],this['on'](_0x1d9392(0xef),async _0x4f7113=>{const _0x1aac64=_0x1d9392,_0x4ddb24=this['holdCtrl'],_0x31d5a5=this[_0x1aac64(0xf6)]();if(!_0x31d5a5)return;try{let _0x5b637f=undefined;if(!_0x4f7113['feature']&&_0x4f7113[_0x1aac64(0xe9)]&&_0x4f7113[_0x1aac64(0xe9)]['length']==0x1)_0x5b637f=bufferPixel(new Point(_0x4f7113['coordinates'][0x0]),this[_0x1aac64(0x10d)],_0x31d5a5);else _0x4f7113[_0x1aac64(0x115)]&&(_0x5b637f=_0x4f7113[_0x1aac64(0x115)]['getGeometry']());if(!_0x5b637f)throw new Error(_0x1aac64(0x11f));this[_0x1aac64(0xf8)](new SelectEvent(SelectEventType[_0x1aac64(0x10e)],_0x4ddb24,_0x5b637f)),this[_0x1aac64(0xea)]=[],this[_0x1aac64(0x126)]=[],this['selectedPolygonFeatures']=[],this[_0x1aac64(0x101)]=[],this[_0x1aac64(0x11b)]&&this['seletctEditeFeature'](_0x5b637f),_0x34e2ba&&clearTimeout(_0x34e2ba),_0x34e2ba=setTimeout(async()=>{const _0x1b5c0b=_0x1aac64;await this[_0x1b5c0b(0xe4)](_0x5b637f),this[_0x1b5c0b(0xf8)](new SelectEvent(SelectEventType['SELECTED'],_0x4ddb24,_0x5b637f,_0x4f7113[_0x1b5c0b(0xe9)],this[_0x1b5c0b(0xea)],this[_0x1b5c0b(0x126)],this[_0x1b5c0b(0x106)],this[_0x1b5c0b(0x101)]));},0x46);}catch(_0xa448db){this['dispatchEvent'](new SelectEvent(SelectEventType[_0x1aac64(0x12b)],_0x4ddb24,undefined,_0x4f7113['coordinates'],this['selectedPointFeatures'],this[_0x1aac64(0x126)],this['selectedPolygonFeatures'],this[_0x1aac64(0x101)],_0xa448db[_0x1aac64(0xec)]));}}),window['addEventListener'](_0x1d9392(0x11d),_0x594c6a=>{const _0x2ec94e=_0x1d9392;_0x594c6a[_0x2ec94e(0x124)]&&(this['holdCtrl']=!![]);}),window[_0x1d9392(0x123)]('keyup',_0x2e1b08=>{this['holdCtrl']=![];});}[a50_0x1ad97f(0xf4)](_0x185939){const _0x34dc59=a50_0x1ad97f;this[_0x34dc59(0x11c)]=_0x185939;}async[a50_0x1ad97f(0xe4)](_0x34476b){const _0x5a59a2=a50_0x1ad97f;var _0x15ae02;const _0x241821=this[_0x5a59a2(0xf6)]();let _0x225b23=[];if(this[_0x5a59a2(0x11c)]&&this[_0x5a59a2(0x11c)][_0x5a59a2(0x10b)]>0x0)_0x225b23=this['currentLayers'];else{let _0x4687a5=_0x241821[_0x5a59a2(0x11e)]()['getArray']();_0x4687a5=_0x4687a5[_0x5a59a2(0xfe)](_0x45bc6a=>{const _0x2ff311=_0x5a59a2,_0x2e561b=_0x45bc6a[_0x2ff311(0x103)];if(!_0x2e561b)return![];return _0x45bc6a[_0x2ff311(0xfa)]()==!![]&&_0x2e561b['selectIndex']!=undefined&&_0x2e561b[_0x2ff311(0x110)]!='';}),_0x225b23=_0x4687a5[_0x5a59a2(0x122)](_0xc38b3c=>{const _0x2bc4af=_0x5a59a2;return _0xc38b3c[_0x2bc4af(0x103)];});}if(!_0x225b23||_0x225b23[_0x5a59a2(0x10b)]==0x0)return;const _0x538843=_0x241821['getView']()[_0x5a59a2(0xfc)]()[_0x5a59a2(0xf3)](),_0x48f61b=_0x241821['getView']()[_0x5a59a2(0x102)]();for(let _0x111746=0x0,_0x4ea671=_0x225b23[_0x5a59a2(0x10b)];_0x111746<_0x4ea671;_0x111746++){const _0x1769e9=_0x225b23[_0x111746],_0x1e2d15=_0x241821[_0x5a59a2(0xed)](_0x1769e9['id']);if(!_0x1e2d15||_0x1e2d15[_0x5a59a2(0xfa)]()==![]||!_0x1769e9||!_0x1769e9[_0x5a59a2(0x11a)]||!_0x1769e9[_0x5a59a2(0x110)])continue;let _0x4b1517=await selectFeaturesByGeo(_0x34476b,_0x538843,_0x1769e9[_0x5a59a2(0x11a)],_0x1769e9[_0x5a59a2(0x110)],_0x1769e9[_0x5a59a2(0x109)],_0x1769e9[_0x5a59a2(0x129)],_0x48f61b);if(_0x4b1517[_0x5a59a2(0x10b)]>0x0){this[_0x5a59a2(0x101)][_0x5a59a2(0xe3)](..._0x4b1517);let _0x18ce5c=_0x241821[_0x5a59a2(0x114)](),_0x5446a0=this[_0x5a59a2(0x111)];switch((_0x15ae02=_0x4b1517[0x0][_0x5a59a2(0xf7)]())===null||_0x15ae02===void 0x0?void 0x0:_0x15ae02[_0x5a59a2(0x10f)]()){case'Point':case _0x5a59a2(0x10a):this[_0x5a59a2(0xea)][_0x5a59a2(0xe3)](..._0x4b1517),_0x18ce5c=_0x241821[_0x5a59a2(0x118)](),_0x5446a0=this[_0x5a59a2(0x104)];break;case _0x5a59a2(0x127):case'MultiLineString':this[_0x5a59a2(0x126)][_0x5a59a2(0xe3)](..._0x4b1517),_0x18ce5c=_0x241821[_0x5a59a2(0xf1)](),_0x5446a0=this[_0x5a59a2(0xde)];break;case _0x5a59a2(0xe6):case _0x5a59a2(0xeb):this[_0x5a59a2(0x106)][_0x5a59a2(0xe3)](..._0x4b1517),_0x18ce5c=_0x241821[_0x5a59a2(0x114)](),_0x5446a0=this[_0x5a59a2(0x111)];break;default:break;}const _0xf92549=_0x18ce5c[_0x5a59a2(0x117)]();_0xf92549&&(_0x4b1517[_0x5a59a2(0xdb)](_0x14687c=>{const _0x5bd641=_0x5a59a2;_0x14687c[_0x5bd641(0x128)]=_0x1769e9['id'],_0x14687c[_0x5bd641(0xf9)]=_0x18ce5c,_0x14687c[_0x5bd641(0xf0)](_0x5446a0);}),this[_0x5a59a2(0x108)]&&_0xf92549['addFeatures'](_0x4b1517));}}}[a50_0x1ad97f(0x12a)](_0x883212){const _0x13545d=a50_0x1ad97f,_0x1ac126=new a50_0x30358b(this['getMap']()),_0x140d25=_0x1ac126[_0x13545d(0xe1)]();if(!_0x140d25||_0x140d25[_0x13545d(0x10b)]===0x0)return[];const _0x416ce0=['copy',_0x13545d(0xdd),'draw',_0x13545d(0xe8),_0x13545d(0xe2)],_0x54a880=[];for(const _0x432fe3 of _0x140d25){if(!_0x432fe3||!_0x432fe3[_0x13545d(0x105)]||!_0x416ce0[_0x13545d(0x125)](_0x432fe3['fromType']))continue;const _0xab781a=_0x432fe3[_0x13545d(0xf7)]();if(!_0xab781a)continue;if(!intersects(_0xab781a,_0x883212))continue;let _0x5bd1b8=this[_0x13545d(0x111)];this[_0x13545d(0x101)]['push'](_0x432fe3);switch(_0xab781a[_0x13545d(0x10f)]()){case _0x13545d(0x113):case _0x13545d(0x10a):this[_0x13545d(0xea)][_0x13545d(0xe3)](_0x432fe3),_0x5bd1b8=this[_0x13545d(0x104)];break;case _0x13545d(0x127):case _0x13545d(0x100):this['selectedLineFeatures']['push'](_0x432fe3),_0x5bd1b8=this['lineStyle'];break;case _0x13545d(0xe6):case _0x13545d(0xeb):this[_0x13545d(0x106)][_0x13545d(0xe3)](_0x432fe3),_0x5bd1b8=this[_0x13545d(0x111)];break;default:break;}_0x432fe3[_0x13545d(0xf0)](_0x5bd1b8);}return _0x54a880;}}
@@ -1 +1 @@
1
- const a51_0x1ba904=a51_0x4fbb;(function(_0x7fa2e1,_0xfbd638){const _0x2748de=a51_0x4fbb,_0x212390=_0x7fa2e1();while(!![]){try{const _0x366352=-parseInt(_0x2748de(0x1de))/0x1*(parseInt(_0x2748de(0x1d6))/0x2)+-parseInt(_0x2748de(0x1c2))/0x3*(parseInt(_0x2748de(0x1ce))/0x4)+-parseInt(_0x2748de(0x1bd))/0x5*(parseInt(_0x2748de(0x1d7))/0x6)+-parseInt(_0x2748de(0x1d5))/0x7+-parseInt(_0x2748de(0x1c1))/0x8+parseInt(_0x2748de(0x1c5))/0x9*(parseInt(_0x2748de(0x1cd))/0xa)+parseInt(_0x2748de(0x1bc))/0xb;if(_0x366352===_0xfbd638)break;else _0x212390['push'](_0x212390['shift']());}catch(_0x4887e3){_0x212390['push'](_0x212390['shift']());}}}(a51_0x3cef,0x8345e));import a51_0x4896b6 from'./Draw';function a51_0x3cef(){const _0x5eb8d8=['setGeometry','369qDckgL','getSource','未获取到绘制的分割线','length','SPLITSTART','onInternal','message','tempLayer','17140GxGjye','8CJRtDj','未获取到地图对象','drawEnd','getMap','error','splited','splitFeatures','6913088pWODir','1410820tFUnCq','66sYzmMq','getGeometry','未获取到分割要素','cut','clone','polyline','dispatchEvent','1XOoyBE','tipText','setFeatures','addTempLayer','44166793LQAaPW','381675ttSQkr','sourceFeatures','push','splitLine','1687744FvdDvu','1206144XsmJWE','SPLITED'];a51_0x3cef=function(){return _0x5eb8d8;};return a51_0x3cef();}import a51_0x5d7670 from'ol/events/Event';import{LineString,Polygon,MultiPolygon,MultiLineString}from'ol/geom';function a51_0x4fbb(_0xe8346,_0x50f6ac){const _0x3cef8e=a51_0x3cef();return a51_0x4fbb=function(_0x4fbb46,_0x1dc276){_0x4fbb46=_0x4fbb46-0x1ba;let _0x3d909e=_0x3cef8e[_0x4fbb46];return _0x3d909e;},a51_0x4fbb(_0xe8346,_0x50f6ac);}import{jstlSplit,splitLineByLine}from'../utils/GeometryUtil';const SplitEventType={'SPLITSTART':'splitStart','SPLITED':a51_0x1ba904(0x1d3)};export class SplitEvent extends a51_0x5d7670{constructor(_0x2d30b3,_0x55b261,_0x356c4d,_0x561547){const _0x1f5814=a51_0x1ba904;super(_0x2d30b3),this[_0x1f5814(0x1c0)]=_0x55b261,this['features']=_0x356c4d,this[_0x1f5814(0x1d2)]=_0x561547;}}export default class Split extends a51_0x4896b6{constructor(_0x5b48f0,_0x26de4d){const _0x1d9e94=a51_0x1ba904,_0x358e1a=(_0x26de4d===null||_0x26de4d===void 0x0?void 0x0:_0x26de4d['splitLineStyle'])||{'outlineColor':'rgba(255,\x200,\x200,\x201)','outlineWidth':0x2};super(_0x1d9e94(0x1dc),{'tipText':_0x26de4d===null||_0x26de4d===void 0x0?void 0x0:_0x26de4d[_0x1d9e94(0x1df)],'style':_0x358e1a}),this[_0x1d9e94(0x1be)]=_0x5b48f0;const _0x12480b=_0x26de4d||{};this['addTempLayer']=_0x12480b[_0x1d9e94(0x1bb)]||![],this['on']=this[_0x1d9e94(0x1ca)],this['on'](_0x1d9e94(0x1d0),async _0x37bb41=>{const _0x29b8d4=_0x1d9e94;var _0x165898;const _0xe98af9=this[_0x29b8d4(0x1d1)]();let _0x2060ff=(_0x165898=_0x37bb41['feature'])===null||_0x165898===void 0x0?void 0x0:_0x165898['getGeometry']();!_0x2060ff&&this[_0x29b8d4(0x1dd)](new SplitEvent(SplitEventType['SPLITED'],undefined,undefined,_0x29b8d4(0x1c7)));let _0x2016c8=_0x2060ff;!_0xe98af9&&this['dispatchEvent'](new SplitEvent(SplitEventType[_0x29b8d4(0x1c3)],_0x2016c8,undefined,_0x29b8d4(0x1cf)));(!this[_0x29b8d4(0x1be)]||this[_0x29b8d4(0x1be)][_0x29b8d4(0x1c8)]===0x0)&&this[_0x29b8d4(0x1dd)](new SplitEvent(SplitEventType[_0x29b8d4(0x1c3)],_0x2016c8,undefined,_0x29b8d4(0x1d9)));try{this[_0x29b8d4(0x1dd)](new SplitEvent(SplitEventType[_0x29b8d4(0x1c9)],_0x2016c8));const _0x4b6b6=this[_0x29b8d4(0x1d4)](_0x2016c8);this[_0x29b8d4(0x1dd)](new SplitEvent(SplitEventType[_0x29b8d4(0x1c3)],_0x2016c8,_0x4b6b6));}catch(_0x20d293){this[_0x29b8d4(0x1dd)](new SplitEvent(SplitEventType[_0x29b8d4(0x1c3)],_0x2016c8,undefined,_0x20d293[_0x29b8d4(0x1cb)]));}});}[a51_0x1ba904(0x1d4)](_0x54bbaf){const _0x4a7818=a51_0x1ba904;var _0x55c7ca;const _0x3b7ee6=[],_0x1aa07e=(_0x55c7ca=this[_0x4a7818(0x1be)][0x0][_0x4a7818(0x1cc)])===null||_0x55c7ca===void 0x0?void 0x0:_0x55c7ca[_0x4a7818(0x1c6)]();for(let _0x12daba=0x0;_0x12daba<this[_0x4a7818(0x1be)][_0x4a7818(0x1c8)];_0x12daba++){const _0x3514a7=this[_0x4a7818(0x1be)][_0x12daba],_0x1d8ec2=_0x3514a7[_0x4a7818(0x1d8)]();let _0x4bcca7=[];if(_0x1d8ec2 instanceof Polygon||_0x1d8ec2 instanceof MultiPolygon)_0x4bcca7=jstlSplit(_0x1d8ec2,_0x54bbaf);else(_0x1d8ec2 instanceof LineString||_0x1d8ec2 instanceof MultiLineString)&&(_0x4bcca7=splitLineByLine(_0x1d8ec2,_0x54bbaf));if(_0x4bcca7[_0x4a7818(0x1c8)]>0x1){_0x3514a7[_0x4a7818(0x1c4)](_0x4bcca7[0x0]),_0x3b7ee6[_0x4a7818(0x1bf)](_0x3514a7);for(let _0x4eb4eb=0x1;_0x4eb4eb<_0x4bcca7['length'];_0x4eb4eb++){const _0x249e98=_0x3514a7[_0x4a7818(0x1db)]();_0x249e98['layerId']=undefined,_0x249e98['fromType']=_0x4a7818(0x1da),_0x249e98[_0x4a7818(0x1cc)]=_0x3514a7[_0x4a7818(0x1cc)],_0x249e98[_0x4a7818(0x1c4)](_0x4bcca7[_0x4eb4eb]),this[_0x4a7818(0x1bb)]&&(_0x1aa07e===null||_0x1aa07e===void 0x0?void 0x0:_0x1aa07e['addFeature'](_0x249e98)),_0x3b7ee6[_0x4a7818(0x1bf)](_0x249e98);}}}return _0x3b7ee6;}[a51_0x1ba904(0x1ba)](_0x20d79d){this['sourceFeatures']=_0x20d79d;}}
1
+ const a51_0x3c3f91=a51_0x3e43;function a51_0x243c(){const _0x31cf65=['5BdNeAq','SPLITED','splitFeatures','5413950RPPZQa','fromType','2286228CfeOrl','未获取到绘制的分割线','splited','setGeometry','3208184wNYFIO','clone','dispatchEvent','addTempLayer','addFeature','未获取到分割要素','getMap','64DSAnay','24PffzVF','error','149715cknvZc','tipText','sourceFeatures','setFeatures','length','SPLITSTART','drawEnd','getGeometry','749368Bhwbnl','421947DwPpFX','push','cut','getSource','features','tempLayer','307790rNOOwj','message','onInternal'];a51_0x243c=function(){return _0x31cf65;};return a51_0x243c();}(function(_0x5501c2,_0x57c344){const _0x101669=a51_0x3e43,_0x2ef039=_0x5501c2();while(!![]){try{const _0x514bb5=parseInt(_0x101669(0x1ff))/0x1+-parseInt(_0x101669(0x1f8))/0x2+-parseInt(_0x101669(0x1f0))/0x3*(-parseInt(_0x101669(0x1ee))/0x4)+parseInt(_0x101669(0x202))/0x5*(parseInt(_0x101669(0x1e2))/0x6)+-parseInt(_0x101669(0x1e6))/0x7+-parseInt(_0x101669(0x1ed))/0x8*(parseInt(_0x101669(0x1f9))/0x9)+parseInt(_0x101669(0x1e0))/0xa;if(_0x514bb5===_0x57c344)break;else _0x2ef039['push'](_0x2ef039['shift']());}catch(_0x12890d){_0x2ef039['push'](_0x2ef039['shift']());}}}(a51_0x243c,0x4e839));import a51_0xde2d55 from'./Draw';import a51_0x4765d4 from'ol/events/Event';function a51_0x3e43(_0xf97aa8,_0x3e7283){const _0x243c02=a51_0x243c();return a51_0x3e43=function(_0x3e43de,_0x4a6f32){_0x3e43de=_0x3e43de-0x1e0;let _0x4ac27b=_0x243c02[_0x3e43de];return _0x4ac27b;},a51_0x3e43(_0xf97aa8,_0x3e7283);}import{LineString,Polygon,MultiPolygon,MultiLineString}from'ol/geom';import{jstlSplit,splitLineByLine}from'../utils/GeometryUtil';const SplitEventType={'SPLITSTART':'splitStart','SPLITED':a51_0x3c3f91(0x1e4)};export class SplitEvent extends a51_0x4765d4{constructor(_0xa97e13,_0x2958cc,_0x45ad5c,_0x34a0f2){const _0x21e483=a51_0x3c3f91;super(_0xa97e13),this['splitLine']=_0x2958cc,this[_0x21e483(0x1fd)]=_0x45ad5c,this[_0x21e483(0x1ef)]=_0x34a0f2;}}export default class Split extends a51_0xde2d55{constructor(_0x224254,_0x4a32a8){const _0x56e46e=a51_0x3c3f91,_0x2282ab=(_0x4a32a8===null||_0x4a32a8===void 0x0?void 0x0:_0x4a32a8['splitLineStyle'])||{'outlineColor':'rgba(255,\x200,\x200,\x201)','outlineWidth':0x2};super('polyline',{'tipText':_0x4a32a8===null||_0x4a32a8===void 0x0?void 0x0:_0x4a32a8[_0x56e46e(0x1f1)],'style':_0x2282ab}),this[_0x56e46e(0x1f2)]=_0x224254;const _0x1513e8=_0x4a32a8||{};this[_0x56e46e(0x1e9)]=_0x1513e8[_0x56e46e(0x1e9)]||![],this['on']=this[_0x56e46e(0x201)],this['on'](_0x56e46e(0x1f6),async _0x39856a=>{const _0x4a1301=_0x56e46e;var _0x247db0;const _0x156d36=this[_0x4a1301(0x1ec)]();let _0x13630e=(_0x247db0=_0x39856a['feature'])===null||_0x247db0===void 0x0?void 0x0:_0x247db0[_0x4a1301(0x1f7)]();!_0x13630e&&this['dispatchEvent'](new SplitEvent(SplitEventType[_0x4a1301(0x203)],undefined,undefined,_0x4a1301(0x1e3)));let _0x4e019c=_0x13630e;!_0x156d36&&this[_0x4a1301(0x1e8)](new SplitEvent(SplitEventType[_0x4a1301(0x203)],_0x4e019c,undefined,'未获取到地图对象'));(!this[_0x4a1301(0x1f2)]||this[_0x4a1301(0x1f2)][_0x4a1301(0x1f4)]===0x0)&&this[_0x4a1301(0x1e8)](new SplitEvent(SplitEventType[_0x4a1301(0x203)],_0x4e019c,undefined,_0x4a1301(0x1eb)));try{this[_0x4a1301(0x1e8)](new SplitEvent(SplitEventType[_0x4a1301(0x1f5)],_0x4e019c));const _0x4d573f=this[_0x4a1301(0x204)](_0x4e019c);this[_0x4a1301(0x1e8)](new SplitEvent(SplitEventType[_0x4a1301(0x203)],_0x4e019c,_0x4d573f));}catch(_0x5632f5){this[_0x4a1301(0x1e8)](new SplitEvent(SplitEventType[_0x4a1301(0x203)],_0x4e019c,undefined,_0x5632f5[_0x4a1301(0x200)]));}});}[a51_0x3c3f91(0x204)](_0x3a6189){const _0x57ed16=a51_0x3c3f91;var _0x2cec9d;const _0x230f9d=[],_0x3fe080=(_0x2cec9d=this['sourceFeatures'][0x0][_0x57ed16(0x1fe)])===null||_0x2cec9d===void 0x0?void 0x0:_0x2cec9d[_0x57ed16(0x1fc)]();for(let _0x1be602=0x0;_0x1be602<this['sourceFeatures']['length'];_0x1be602++){const _0x430d5c=this[_0x57ed16(0x1f2)][_0x1be602],_0x133dbd=_0x430d5c['getGeometry']();let _0x3054d2=[];if(_0x133dbd instanceof Polygon||_0x133dbd instanceof MultiPolygon)_0x3054d2=jstlSplit(_0x133dbd,_0x3a6189);else(_0x133dbd instanceof LineString||_0x133dbd instanceof MultiLineString)&&(_0x3054d2=splitLineByLine(_0x133dbd,_0x3a6189));if(_0x3054d2[_0x57ed16(0x1f4)]>0x1){_0x430d5c[_0x57ed16(0x1e5)](_0x3054d2[0x0]),_0x230f9d[_0x57ed16(0x1fa)](_0x430d5c);for(let _0x32c711=0x1;_0x32c711<_0x3054d2['length'];_0x32c711++){const _0x426a67=_0x430d5c[_0x57ed16(0x1e7)]();_0x426a67['layerId']=undefined,_0x426a67[_0x57ed16(0x1e1)]=_0x57ed16(0x1fb),_0x426a67[_0x57ed16(0x1fe)]=_0x430d5c[_0x57ed16(0x1fe)],_0x426a67['setGeometry'](_0x3054d2[_0x32c711]),this[_0x57ed16(0x1e9)]&&(_0x3fe080===null||_0x3fe080===void 0x0?void 0x0:_0x3fe080[_0x57ed16(0x1ea)](_0x426a67)),_0x230f9d[_0x57ed16(0x1fa)](_0x426a67);}}}return _0x230f9d;}[a51_0x3c3f91(0x1f3)](_0x4234){this['sourceFeatures']=_0x4234;}}
@@ -1 +1 @@
1
- (function(_0x4d70b7,_0x173b90){const _0xf93e0d=a52_0x2075,_0x35fda1=_0x4d70b7();while(!![]){try{const _0x2e7a45=-parseInt(_0xf93e0d(0xc7))/0x1+parseInt(_0xf93e0d(0xc3))/0x2+parseInt(_0xf93e0d(0xb8))/0x3+parseInt(_0xf93e0d(0xb9))/0x4*(-parseInt(_0xf93e0d(0xaa))/0x5)+parseInt(_0xf93e0d(0xbf))/0x6+parseInt(_0xf93e0d(0xb0))/0x7+-parseInt(_0xf93e0d(0xba))/0x8*(parseInt(_0xf93e0d(0xc4))/0x9);if(_0x2e7a45===_0x173b90)break;else _0x35fda1['push'](_0x35fda1['shift']());}catch(_0x31e124){_0x35fda1['push'](_0x35fda1['shift']());}}}(a52_0x4298,0x8518c));import a52_0x4d38d1 from'ol/source/ImageArcGISRest';function a52_0x2075(_0x5a6f12,_0x2f5656){const _0x42986d=a52_0x4298();return a52_0x2075=function(_0x207589,_0x4a3f37){_0x207589=_0x207589-0xa9;let _0x27fb6b=_0x42986d[_0x207589];return _0x27fb6b;},a52_0x2075(_0x5a6f12,_0x2f5656);}import{Image as a52_0x25e892}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisDynamicLayer extends a52_0x25e892{constructor(_0x33969b,_0x3785a5){const _0x1d3ea5=a52_0x2075;var _0x2d4ba0;let _0x20d283={'LAYERS':_0x1d3ea5(0xc6)+((_0x2d4ba0=_0x33969b[_0x1d3ea5(0xb5)])===null||_0x2d4ba0===void 0x0?void 0x0:_0x2d4ba0[_0x1d3ea5(0xb2)](','))};if(_0x33969b[_0x1d3ea5(0xad)]&&_0x33969b[_0x1d3ea5(0xbd)]){const _0x1681e4={};_0x1681e4[_0x33969b[_0x1d3ea5(0xbd)]]=_0x33969b[_0x1d3ea5(0xad)],_0x20d283[_0x1d3ea5(0xbe)]=JSON[_0x1d3ea5(0xc2)](_0x1681e4);}const _0x4ccffa=[_0x3785a5[_0x1d3ea5(0xc1)][_0x1d3ea5(0xbb)],_0x3785a5['initialExtent'][_0x1d3ea5(0xc5)],_0x3785a5[_0x1d3ea5(0xc1)][_0x1d3ea5(0xbc)],_0x3785a5[_0x1d3ea5(0xc1)][_0x1d3ea5(0xb6)]],_0x1c931d=[_0x3785a5[_0x1d3ea5(0xb1)][_0x1d3ea5(0xbb)],_0x3785a5[_0x1d3ea5(0xb1)][_0x1d3ea5(0xc5)],_0x3785a5[_0x1d3ea5(0xb1)][_0x1d3ea5(0xbc)],_0x3785a5['fullExtent'][_0x1d3ea5(0xb6)]];let _0x5a014b;_0x3785a5[_0x1d3ea5(0xb7)][_0x1d3ea5(0xaf)]?_0x5a014b=registerProj('EPSG:'+_0x3785a5[_0x1d3ea5(0xb7)][_0x1d3ea5(0xaf)],_0x1c931d):_0x5a014b=registerProj(_0x3785a5['spatialReference']['wkt'],_0x1c931d),super({'opacity':_0x33969b[_0x1d3ea5(0xa9)],'zIndex':_0x33969b[_0x1d3ea5(0xc0)],'source':new a52_0x4d38d1({'crossOrigin':_0x1d3ea5(0xb3),'projection':_0x5a014b,'ratio':0x1,'url':_0x33969b[_0x1d3ea5(0xac)],'params':_0x20d283})}),this['id']=_0x33969b['id'],this[_0x1d3ea5(0xc1)]=_0x4ccffa,this[_0x1d3ea5(0xae)]=_0x5a014b,this['layerInfo']=_0x33969b;}['setFilter'](_0x1d45d7){const _0x4c3410=a52_0x2075;var _0x1897be;const _0xfd3f47={};this['layerInfo'][_0x4c3410(0xbd)]&&(_0xfd3f47[this[_0x4c3410(0xb4)][_0x4c3410(0xbd)]]=_0x1d45d7),(_0x1897be=this[_0x4c3410(0xab)]())===null||_0x1897be===void 0x0?void 0x0:_0x1897be['updateParams']({'layerDefs':JSON[_0x4c3410(0xc2)](_0x1d45d7)});}}function a52_0x4298(){const _0x126ec6=['initialExtent','stringify','2089890ENFJYA','45702Azmfcu','ymin','show:','226648uLLtEi','opacity','359365eHKlRl','getSource','url','loadFilter','projection','wkid','4178496tnJMPi','fullExtent','join','anonymous','layerInfo','sublayers','ymax','spatialReference','2177382tQBLFS','36TWaPGD','3176cpjPtY','xmin','xmax','selectIndex','layerDefs','6401808PhCSKr','mapIndex'];a52_0x4298=function(){return _0x126ec6;};return a52_0x4298();}
1
+ function a52_0x53be(_0x63fefd,_0x16cd38){const _0x4028f6=a52_0x4028();return a52_0x53be=function(_0x53be01,_0x4f997f){_0x53be01=_0x53be01-0xcd;let _0x536319=_0x4028f6[_0x53be01];return _0x536319;},a52_0x53be(_0x63fefd,_0x16cd38);}const a52_0x205f5=a52_0x53be;(function(_0x4ca541,_0x26789a){const _0x483922=a52_0x53be,_0x58913b=_0x4ca541();while(!![]){try{const _0x5e00cd=-parseInt(_0x483922(0xd1))/0x1+parseInt(_0x483922(0xd4))/0x2*(-parseInt(_0x483922(0xcf))/0x3)+parseInt(_0x483922(0xdc))/0x4+-parseInt(_0x483922(0xd6))/0x5*(parseInt(_0x483922(0xe9))/0x6)+-parseInt(_0x483922(0xe1))/0x7*(parseInt(_0x483922(0xdd))/0x8)+-parseInt(_0x483922(0xde))/0x9+parseInt(_0x483922(0xeb))/0xa;if(_0x5e00cd===_0x26789a)break;else _0x58913b['push'](_0x58913b['shift']());}catch(_0x787853){_0x58913b['push'](_0x58913b['shift']());}}}(a52_0x4028,0x50c44));import a52_0x2ff22f from'ol/source/ImageArcGISRest';import{Image as a52_0x370269}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';function a52_0x4028(){const _0x3d80a9=['layerDefs','18xwQaBJ','join','13112740KdVgDd','EPSG:','ymax','53478ERPUxK','ymin','203692TyjImd','setFilter','url','4MlvWBA','spatialReference','928495WnCvKj','loadFilter','initialExtent','layerInfo','xmax','stringify','667612AVmdSY','8moLOgr','409518yHxRpE','sublayers','projection','2137898nMQZMp','fullExtent','selectIndex','opacity','xmin','show:','wkid'];a52_0x4028=function(){return _0x3d80a9;};return a52_0x4028();}export default class ArcgisDynamicLayer extends a52_0x370269{constructor(_0x439441,_0x2f5df0){const _0x56569f=a52_0x53be;var _0x22ffa1;let _0x565c87={'LAYERS':_0x56569f(0xe6)+((_0x22ffa1=_0x439441[_0x56569f(0xdf)])===null||_0x22ffa1===void 0x0?void 0x0:_0x22ffa1[_0x56569f(0xea)](','))};if(_0x439441[_0x56569f(0xd7)]&&_0x439441['selectIndex']){const _0x249c8f={};_0x249c8f[_0x439441[_0x56569f(0xe3)]]=_0x439441[_0x56569f(0xd7)],_0x565c87[_0x56569f(0xe8)]=JSON[_0x56569f(0xdb)](_0x249c8f);}const _0x2429c1=[_0x2f5df0[_0x56569f(0xd8)][_0x56569f(0xe5)],_0x2f5df0['initialExtent'][_0x56569f(0xd0)],_0x2f5df0[_0x56569f(0xd8)][_0x56569f(0xda)],_0x2f5df0['initialExtent'][_0x56569f(0xce)]],_0x404b69=[_0x2f5df0[_0x56569f(0xe2)]['xmin'],_0x2f5df0[_0x56569f(0xe2)]['ymin'],_0x2f5df0[_0x56569f(0xe2)][_0x56569f(0xda)],_0x2f5df0['fullExtent'][_0x56569f(0xce)]];let _0x865a25;_0x2f5df0[_0x56569f(0xd5)][_0x56569f(0xe7)]?_0x865a25=registerProj(_0x56569f(0xcd)+_0x2f5df0[_0x56569f(0xd5)][_0x56569f(0xe7)],_0x404b69):_0x865a25=registerProj(_0x2f5df0[_0x56569f(0xd5)]['wkt'],_0x404b69),super({'opacity':_0x439441[_0x56569f(0xe4)],'zIndex':_0x439441['mapIndex'],'source':new a52_0x2ff22f({'crossOrigin':'anonymous','projection':_0x865a25,'ratio':0x1,'url':_0x439441[_0x56569f(0xd3)],'params':_0x565c87})}),this['id']=_0x439441['id'],this[_0x56569f(0xd8)]=_0x2429c1,this[_0x56569f(0xe0)]=_0x865a25,this[_0x56569f(0xd9)]=_0x439441;}[a52_0x205f5(0xd2)](_0xf93446){const _0x4afe63=a52_0x205f5;var _0x26394c;const _0x58c022={};this[_0x4afe63(0xd9)][_0x4afe63(0xe3)]&&(_0x58c022[this[_0x4afe63(0xd9)]['selectIndex']]=_0xf93446),(_0x26394c=this['getSource']())===null||_0x26394c===void 0x0?void 0x0:_0x26394c['updateParams']({'layerDefs':JSON[_0x4afe63(0xdb)](_0xf93446)});}}
@@ -1 +1 @@
1
- const a53_0x2d100b=a53_0x10e1;(function(_0x35a185,_0x59e69e){const _0x2c3081=a53_0x10e1,_0x113db3=_0x35a185();while(!![]){try{const _0x2efc2d=-parseInt(_0x2c3081(0xda))/0x1*(-parseInt(_0x2c3081(0xde))/0x2)+parseInt(_0x2c3081(0xf7))/0x3*(-parseInt(_0x2c3081(0xe9))/0x4)+parseInt(_0x2c3081(0xd0))/0x5*(parseInt(_0x2c3081(0x107))/0x6)+-parseInt(_0x2c3081(0xd5))/0x7+-parseInt(_0x2c3081(0xed))/0x8*(parseInt(_0x2c3081(0x105))/0x9)+parseInt(_0x2c3081(0xd2))/0xa+parseInt(_0x2c3081(0x101))/0xb*(parseInt(_0x2c3081(0xee))/0xc);if(_0x2efc2d===_0x59e69e)break;else _0x113db3['push'](_0x113db3['shift']());}catch(_0x56face){_0x113db3['push'](_0x113db3['shift']());}}}(a53_0x77c5,0x19d9d));import a53_0x43eec0 from'ol/format/EsriJSON';import a53_0x48d8a8 from'ol/source/Vector';function a53_0x10e1(_0xadf7,_0x128f46){const _0x77c56e=a53_0x77c5();return a53_0x10e1=function(_0x10e1ac,_0x1966a5){_0x10e1ac=_0x10e1ac-0xcd;let _0x11dfb7=_0x77c56e[_0x10e1ac];return _0x11dfb7;},a53_0x10e1(_0xadf7,_0x128f46);}function a53_0x77c5(){const _0x4df89b=['/query','loadFilter','setStyle','wkid','url','mapIndex','501876AsSnQq','ymax','setLayers','defaultSymbol','5912MuBZHx','264780lxPbAo',',\x22ymax\x22:','field1','{\x22xmin\x22:','EPSG:','forEach','setFilter','xmax','xmin','3OpPOzH','createArcGISFeatureLayer','fullExtent','&outSR=','where=','layerInfo','error','push','stringify','then','77AwkTgI',',\x22xmax\x22:','spatialReference','readFeatures','927XSMixC','drawingInfo','6mLVcfQ','showIndex','renderer','projection','getCode','899600ndDnkB','1=1','324510GtWSkz','addFeatures','uniqueValue','1275806vuWMGz','&geometryType=esriGeometryEnvelope&inSR=','uniqueValueInfos','simple','returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry=','122903INxasA','find','f\x20=\x20json\x20&\x20','initialExtent','2jGszyz','symbol','ymin','split','type'];a53_0x77c5=function(){return _0x4df89b;};return a53_0x77c5();}import{Vector as a53_0x999d43}from'ol/layer';import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';import{tile as a53_0x26d020}from'ol/loadingstrategy';import a53_0x2095c9 from'ol/layer/Group';import{registerProj}from'../utils/RegisterProjUtil';import{transformedEsriStyle}from'../utils/StyleUtil';import a53_0x1bd9de from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';export default class ArcgisFeatureLayer extends a53_0x2095c9{constructor(_0x49ba54,_0x539993,_0x5c02d2){const _0x5bd648=a53_0x10e1,_0x398c6d=[_0x539993[_0x5bd648(0xdd)][_0x5bd648(0xf6)],_0x539993[_0x5bd648(0xdd)][_0x5bd648(0xe0)],_0x539993['initialExtent'][_0x5bd648(0xf5)],_0x539993[_0x5bd648(0xdd)][_0x5bd648(0xea)]],_0x40265e=[_0x539993[_0x5bd648(0xf9)][_0x5bd648(0xf6)],_0x539993[_0x5bd648(0xf9)][_0x5bd648(0xe0)],_0x539993['fullExtent'][_0x5bd648(0xf5)],_0x539993[_0x5bd648(0xf9)][_0x5bd648(0xea)]];let _0x16b6b1;_0x539993[_0x5bd648(0x103)]['wkid']?_0x16b6b1=registerProj(_0x5bd648(0xf2)+_0x539993[_0x5bd648(0x103)][_0x5bd648(0xe6)],_0x40265e):_0x16b6b1=registerProj(_0x539993[_0x5bd648(0x103)]['wkt'],_0x40265e);let _0x26850b=[];super({'zIndex':_0x49ba54[_0x5bd648(0xe8)]});for(let _0x659455 of _0x5c02d2){let _0x234370=this[_0x5bd648(0xf8)](_0x49ba54,_0x659455);_0x26850b[_0x5bd648(0xfe)](_0x234370);}this[_0x5bd648(0xeb)](new a53_0x1bd9de(_0x26850b)),this['id']=_0x49ba54['id'],this['initialExtent']=_0x398c6d,this[_0x5bd648(0xce)]=_0x16b6b1,this['layerInfo']=_0x49ba54;}['createArcGISFeatureLayer'](_0x11efd1,_0x4adc99){const _0x221bad=a53_0x10e1;var _0x1545bd=new a53_0x43eec0();let _0x327f19=new a53_0x48d8a8({'loader':function(_0x5965e9,_0x402ae,_0x4c5762){const _0x9527f0=a53_0x10e1;let _0x3e27b0=_0x9527f0(0xd1);_0x11efd1[_0x9527f0(0xe4)]&&(_0x3e27b0=typeof _0x11efd1['loadFilter']==='string'?_0x11efd1[_0x9527f0(0xe4)]:JSON[_0x9527f0(0xff)](_0x11efd1[_0x9527f0(0xe4)]));let _0x1986bd=_0x4c5762[_0x9527f0(0xcf)](),_0x3f0e6c=_0x1986bd[_0x9527f0(0xe1)](':')[0x1];var _0x9b9040=appendPath(_0x4adc99[_0x9527f0(0xe7)],_0x9527f0(0xe3));_0x9b9040=appendParam(_0x9b9040,_0x9527f0(0xdc)+_0x9527f0(0xfb)+encodeURIComponent(_0x3e27b0)+_0x9527f0(0xd9)+encodeURIComponent(_0x9527f0(0xf1)+_0x5965e9[0x0]+',\x22ymin\x22:'+_0x5965e9[0x1]+_0x9527f0(0x102)+_0x5965e9[0x2]+_0x9527f0(0xef)+_0x5965e9[0x3]+',\x22spatialReference\x22:{\x22wkid\x22:'+_0x3f0e6c+'}}')+_0x9527f0(0xd6)+_0x3f0e6c+'&outFields=*'+_0x9527f0(0xfa)+_0x3f0e6c),jsonp(_0x9b9040)[_0x9527f0(0x100)](_0x141b62=>{const _0x214f56=_0x9527f0;if(_0x141b62[_0x214f56(0xfd)])console['log'](_0x141b62);else{var _0x168501=_0x1545bd[_0x214f56(0x104)](_0x141b62,{'featureProjection':_0x4c5762});_0x168501['length']>0x0&&(_0x4adc99['drawingInfo'][_0x214f56(0xcd)][_0x214f56(0xe2)]==_0x214f56(0xd4)&&_0x168501[_0x214f56(0xf3)](function(_0x3fc948){const _0x5a4a77=_0x214f56;var _0x30d002=_0x3fc948['get'](_0x4adc99['drawingInfo']['renderer'][_0x5a4a77(0xf0)]);const _0x25c33a=_0x4adc99[_0x5a4a77(0x106)][_0x5a4a77(0xcd)][_0x5a4a77(0xd7)][_0x5a4a77(0xdb)](_0x3be2b1=>_0x3be2b1['value']==_0x30d002);let _0x4be78e;_0x25c33a?_0x4be78e=transformedEsriStyle(_0x25c33a['symbol']):_0x4be78e=transformedEsriStyle(_0x4adc99['drawingInfo'][_0x5a4a77(0xcd)][_0x5a4a77(0xec)]),_0x3fc948[_0x5a4a77(0xe5)](_0x4be78e);}),_0x327f19[_0x214f56(0xd3)](_0x168501));}});},'strategy':a53_0x26d020(createXYZ({'tileSize':0x200}))}),_0x55e136=new a53_0x999d43({'source':_0x327f19,'zIndex':_0x11efd1[_0x221bad(0x108)]});if(_0x4adc99[_0x221bad(0x106)][_0x221bad(0xcd)][_0x221bad(0xe2)]==_0x221bad(0xd8)&&_0x4adc99[_0x221bad(0x106)]['renderer'][_0x221bad(0xdf)]){let _0x24e2ff=transformedEsriStyle(_0x4adc99[_0x221bad(0x106)]['renderer'][_0x221bad(0xdf)]);_0x55e136[_0x221bad(0xe5)](_0x24e2ff);}return _0x55e136;}[a53_0x2d100b(0xf4)](_0x303e8c){const _0x58a667=a53_0x2d100b;this[_0x58a667(0xfc)][_0x58a667(0xe4)]=_0x303e8c;}}
1
+ const a53_0xc02e5b=a53_0x1f3f;(function(_0x1977fb,_0x3bb999){const _0x1b4b61=a53_0x1f3f,_0x4df7df=_0x1977fb();while(!![]){try{const _0x52b940=parseInt(_0x1b4b61(0x18b))/0x1+parseInt(_0x1b4b61(0x1a0))/0x2*(parseInt(_0x1b4b61(0x1a6))/0x3)+-parseInt(_0x1b4b61(0x1af))/0x4+parseInt(_0x1b4b61(0x19d))/0x5+-parseInt(_0x1b4b61(0x1b7))/0x6*(-parseInt(_0x1b4b61(0x1b2))/0x7)+-parseInt(_0x1b4b61(0x187))/0x8+-parseInt(_0x1b4b61(0x19c))/0x9;if(_0x52b940===_0x3bb999)break;else _0x4df7df['push'](_0x4df7df['shift']());}catch(_0x4fe129){_0x4df7df['push'](_0x4df7df['shift']());}}}(a53_0x33d8,0xd24a0));import a53_0x43ddef from'ol/format/EsriJSON';import a53_0x1a71cd from'ol/source/Vector';import{Vector as a53_0x5bd08c}from'ol/layer';function a53_0x33d8(){const _0x49554e=['error','uniqueValueInfos','2534816KFzpkm','drawingInfo','createArcGISFeatureLayer','readFeatures','353792GKHrBU','layerInfo','addFeatures','ymax','setLayers','/query','log',',\x22ymax\x22:','initialExtent','spatialReference','forEach','field1',',\x22xmax\x22:',',\x22spatialReference\x22:{\x22wkid\x22:','mapIndex','defaultSymbol','value','10513890kZrJrW','1702165cNzSxn','symbol','{\x22xmin\x22:','44832KmluMd','stringify','xmax','projection','1=1','setStyle','219QRIvnS','length','uniqueValue','push','renderer','simple','f\x20=\x20json\x20&\x20','loadFilter','fullExtent','84564cdlsjK','get','split','14jqVyFQ','ymin','where=','type','setFilter','110862orspRc','showIndex',',\x22ymin\x22:','then'];a53_0x33d8=function(){return _0x49554e;};return a53_0x33d8();}import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';import{tile as a53_0x143ecd}from'ol/loadingstrategy';function a53_0x1f3f(_0x202e04,_0x7f1ac3){const _0x33d873=a53_0x33d8();return a53_0x1f3f=function(_0x1f3fd3,_0x30063e){_0x1f3fd3=_0x1f3fd3-0x184;let _0x2e6fd0=_0x33d873[_0x1f3fd3];return _0x2e6fd0;},a53_0x1f3f(_0x202e04,_0x7f1ac3);}import a53_0x48a110 from'ol/layer/Group';import{registerProj}from'../utils/RegisterProjUtil';import{transformedEsriStyle}from'../utils/StyleUtil';import a53_0x34efcd from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';export default class ArcgisFeatureLayer extends a53_0x48a110{constructor(_0x136d44,_0xd27d7b,_0x163926){const _0x1ac02d=a53_0x1f3f,_0x410878=[_0xd27d7b[_0x1ac02d(0x193)]['xmin'],_0xd27d7b[_0x1ac02d(0x193)][_0x1ac02d(0x1b3)],_0xd27d7b[_0x1ac02d(0x193)][_0x1ac02d(0x1a2)],_0xd27d7b['initialExtent'][_0x1ac02d(0x18e)]],_0x585104=[_0xd27d7b[_0x1ac02d(0x1ae)]['xmin'],_0xd27d7b[_0x1ac02d(0x1ae)]['ymin'],_0xd27d7b['fullExtent']['xmax'],_0xd27d7b[_0x1ac02d(0x1ae)][_0x1ac02d(0x18e)]];let _0x55c46a;_0xd27d7b['spatialReference']['wkid']?_0x55c46a=registerProj('EPSG:'+_0xd27d7b[_0x1ac02d(0x194)]['wkid'],_0x585104):_0x55c46a=registerProj(_0xd27d7b[_0x1ac02d(0x194)]['wkt'],_0x585104);let _0x1b23a4=[];super({'zIndex':_0x136d44[_0x1ac02d(0x199)]});for(let _0x4511bb of _0x163926){let _0x33e5ef=this[_0x1ac02d(0x189)](_0x136d44,_0x4511bb);_0x1b23a4[_0x1ac02d(0x1a9)](_0x33e5ef);}this[_0x1ac02d(0x18f)](new a53_0x34efcd(_0x1b23a4)),this['id']=_0x136d44['id'],this[_0x1ac02d(0x193)]=_0x410878,this[_0x1ac02d(0x1a3)]=_0x55c46a,this['layerInfo']=_0x136d44;}['createArcGISFeatureLayer'](_0x3f3634,_0x291115){const _0x561792=a53_0x1f3f;var _0x3471e5=new a53_0x43ddef();let _0x17fb7d=new a53_0x1a71cd({'loader':function(_0x259f6c,_0x3191fe,_0x45a024){const _0x11d6cd=a53_0x1f3f;let _0x337bc1=_0x11d6cd(0x1a4);_0x3f3634['loadFilter']&&(_0x337bc1=typeof _0x3f3634[_0x11d6cd(0x1ad)]==='string'?_0x3f3634[_0x11d6cd(0x1ad)]:JSON[_0x11d6cd(0x1a1)](_0x3f3634[_0x11d6cd(0x1ad)]));let _0x40ac41=_0x45a024['getCode'](),_0x511786=_0x40ac41[_0x11d6cd(0x1b1)](':')[0x1];var _0xb8fa83=appendPath(_0x291115['url'],_0x11d6cd(0x190));_0xb8fa83=appendParam(_0xb8fa83,_0x11d6cd(0x1ac)+_0x11d6cd(0x1b4)+encodeURIComponent(_0x337bc1)+'returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry='+encodeURIComponent(_0x11d6cd(0x19f)+_0x259f6c[0x0]+_0x11d6cd(0x1b9)+_0x259f6c[0x1]+_0x11d6cd(0x197)+_0x259f6c[0x2]+_0x11d6cd(0x192)+_0x259f6c[0x3]+_0x11d6cd(0x198)+_0x511786+'}}')+'&geometryType=esriGeometryEnvelope&inSR='+_0x511786+'&outFields=*'+'&outSR='+_0x511786),jsonp(_0xb8fa83)[_0x11d6cd(0x184)](_0x1deb97=>{const _0x45d10a=_0x11d6cd;if(_0x1deb97[_0x45d10a(0x185)])console[_0x45d10a(0x191)](_0x1deb97);else{var _0x540b03=_0x3471e5[_0x45d10a(0x18a)](_0x1deb97,{'featureProjection':_0x45a024});_0x540b03[_0x45d10a(0x1a7)]>0x0&&(_0x291115[_0x45d10a(0x188)]['renderer'][_0x45d10a(0x1b5)]==_0x45d10a(0x1a8)&&_0x540b03[_0x45d10a(0x195)](function(_0x353a45){const _0x3f6b4c=_0x45d10a;var _0x43b22d=_0x353a45[_0x3f6b4c(0x1b0)](_0x291115[_0x3f6b4c(0x188)][_0x3f6b4c(0x1aa)][_0x3f6b4c(0x196)]);const _0x49069a=_0x291115[_0x3f6b4c(0x188)][_0x3f6b4c(0x1aa)][_0x3f6b4c(0x186)]['find'](_0x16a5a3=>_0x16a5a3[_0x3f6b4c(0x19b)]==_0x43b22d);let _0x1dae99;_0x49069a?_0x1dae99=transformedEsriStyle(_0x49069a['symbol']):_0x1dae99=transformedEsriStyle(_0x291115[_0x3f6b4c(0x188)][_0x3f6b4c(0x1aa)][_0x3f6b4c(0x19a)]),_0x353a45['setStyle'](_0x1dae99);}),_0x17fb7d[_0x45d10a(0x18d)](_0x540b03));}});},'strategy':a53_0x143ecd(createXYZ({'tileSize':0x200}))}),_0x215c33=new a53_0x5bd08c({'source':_0x17fb7d,'zIndex':_0x3f3634[_0x561792(0x1b8)]});if(_0x291115[_0x561792(0x188)]['renderer'][_0x561792(0x1b5)]==_0x561792(0x1ab)&&_0x291115[_0x561792(0x188)][_0x561792(0x1aa)]['symbol']){let _0x3c6d1e=transformedEsriStyle(_0x291115[_0x561792(0x188)][_0x561792(0x1aa)][_0x561792(0x19e)]);_0x215c33[_0x561792(0x1a5)](_0x3c6d1e);}return _0x215c33;}[a53_0xc02e5b(0x1b6)](_0x336a4c){const _0x53cdbe=a53_0xc02e5b;this[_0x53cdbe(0x18c)][_0x53cdbe(0x1ad)]=_0x336a4c;}}
@@ -1 +1 @@
1
- (function(_0x4b808b,_0x38b930){const _0x2fa12d=a54_0x44d3,_0x4df85=_0x4b808b();while(!![]){try{const _0x193c01=-parseInt(_0x2fa12d(0x18c))/0x1*(-parseInt(_0x2fa12d(0x180))/0x2)+parseInt(_0x2fa12d(0x181))/0x3*(parseInt(_0x2fa12d(0x190))/0x4)+-parseInt(_0x2fa12d(0x183))/0x5+parseInt(_0x2fa12d(0x17d))/0x6+-parseInt(_0x2fa12d(0x18d))/0x7+-parseInt(_0x2fa12d(0x192))/0x8+parseInt(_0x2fa12d(0x182))/0x9;if(_0x193c01===_0x38b930)break;else _0x4df85['push'](_0x4df85['shift']());}catch(_0x366c9b){_0x4df85['push'](_0x4df85['shift']());}}}(a54_0x5f42,0x7f630));import a54_0x112516 from'ol/layer/Tile';function a54_0x44d3(_0x2662c3,_0x140013){const _0x5f4279=a54_0x5f42();return a54_0x44d3=function(_0x44d3f5,_0x24de31){_0x44d3f5=_0x44d3f5-0x17d;let _0x58eab2=_0x5f4279[_0x44d3f5];return _0x58eab2;},a54_0x44d3(_0x2662c3,_0x140013);}import a54_0x1314c3 from'ol/source/XYZ';import a54_0x2653c8 from'ol/tilegrid/TileGrid';import{registerProj}from'../utils/RegisterProjUtil';import{appendPath}from'../utils/UrlUtil';function a54_0x5f42(){const _0x11c6ec=['2202282DYuNiE','url','initialExtent','8xRRRlW','59526CowMPC','6847713LYQJCp','2824135QcYHKk','cols','length','push','origin','xmax','mapIndex','lods','rows','47739rLSYgF','966322zlribc','fullExtent','ymax','156zeSgXP','EPSG:','6944392tlxUoT','projection','/tile/{z}/{y}/{x}','tileInfo','spatialReference','xmin','opacity','ymin'];a54_0x5f42=function(){return _0x11c6ec;};return a54_0x5f42();}export default class ArcgisTileLayer extends a54_0x112516{constructor(_0xabb79,_0x5b642f){const _0x288352=a54_0x44d3,_0x5535a2=_0xabb79['url']?_0xabb79[_0x288352(0x17e)]:'',_0x33ae39=appendPath(_0x5535a2,_0x288352(0x194)),_0xb33ea7=[_0x5b642f[_0x288352(0x17f)][_0x288352(0x197)],_0x5b642f[_0x288352(0x17f)][_0x288352(0x199)],_0x5b642f[_0x288352(0x17f)][_0x288352(0x188)],_0x5b642f['initialExtent'][_0x288352(0x18f)]],_0x38d794=[_0x5b642f[_0x288352(0x18e)]['xmin'],_0x5b642f[_0x288352(0x18e)][_0x288352(0x199)],_0x5b642f[_0x288352(0x18e)][_0x288352(0x188)],_0x5b642f['fullExtent'][_0x288352(0x18f)]];let _0x4b0719;_0x5b642f['spatialReference']['wkid']?_0x4b0719=registerProj(_0x288352(0x191)+_0x5b642f[_0x288352(0x196)]['wkid'],_0x38d794):_0x4b0719=registerProj(_0x5b642f[_0x288352(0x196)]['wkt'],_0x38d794);let _0x7e4c3b=[];for(let _0x1b03f2=0x0,_0x513b25=_0x5b642f[_0x288352(0x195)][_0x288352(0x18a)][_0x288352(0x185)];_0x1b03f2<_0x513b25;_0x1b03f2++){_0x7e4c3b[_0x288352(0x186)](_0x5b642f[_0x288352(0x195)]['lods'][_0x1b03f2]['resolution']);}super({'opacity':_0xabb79[_0x288352(0x198)],'zIndex':_0xabb79[_0x288352(0x189)],'maxResolution':_0x7e4c3b[0x0]*0x2,'source':new a54_0x1314c3({'url':_0x33ae39,'projection':_0x4b0719,'crossOrigin':'anonymous','tileGrid':new a54_0x2653c8({'extent':_0x38d794,'origin':[_0x5b642f['tileInfo'][_0x288352(0x187)]['x'],_0x5b642f[_0x288352(0x195)][_0x288352(0x187)]['y']],'resolutions':_0x7e4c3b,'tileSize':[_0x5b642f['tileInfo'][_0x288352(0x18b)],_0x5b642f[_0x288352(0x195)][_0x288352(0x184)]]})})}),this['id']=_0xabb79['id'],this[_0x288352(0x17f)]=_0xb33ea7,this[_0x288352(0x193)]=_0x4b0719,this['layerInfo']=_0xabb79;}}
1
+ (function(_0x194662,_0x42890b){const _0x9ab8db=a54_0x4a3b,_0x605ef2=_0x194662();while(!![]){try{const _0x2ff9bc=parseInt(_0x9ab8db(0x1c6))/0x1+-parseInt(_0x9ab8db(0x1c9))/0x2*(parseInt(_0x9ab8db(0x1c7))/0x3)+-parseInt(_0x9ab8db(0x1bc))/0x4+parseInt(_0x9ab8db(0x1c1))/0x5+parseInt(_0x9ab8db(0x1cd))/0x6*(-parseInt(_0x9ab8db(0x1d1))/0x7)+parseInt(_0x9ab8db(0x1d5))/0x8+-parseInt(_0x9ab8db(0x1c8))/0x9*(parseInt(_0x9ab8db(0x1cb))/0xa);if(_0x2ff9bc===_0x42890b)break;else _0x605ef2['push'](_0x605ef2['shift']());}catch(_0x16898f){_0x605ef2['push'](_0x605ef2['shift']());}}}(a54_0xa7e7,0x2e668));import a54_0x5a546a from'ol/layer/Tile';function a54_0x4a3b(_0x42b8d8,_0x3a71fb){const _0xa7e7c8=a54_0xa7e7();return a54_0x4a3b=function(_0x4a3be3,_0x5b8468){_0x4a3be3=_0x4a3be3-0x1ba;let _0x1ab240=_0xa7e7c8[_0x4a3be3];return _0x1ab240;},a54_0x4a3b(_0x42b8d8,_0x3a71fb);}import a54_0x25ba34 from'ol/source/XYZ';function a54_0xa7e7(){const _0x1f2ca3=['wkid','ymin','projection','273368CCzzct','spatialReference','origin','fullExtent','lods','306650JRVSVH','ymax','cols','url','EPSG:','222223bFKUlG','210810jENpqN','90Xjooja','6LIOlZF','xmax','97370xZzBym','initialExtent','4662MCvznk','tileInfo','resolution','anonymous','665ZrCKSh','layerInfo','mapIndex','length','2854720ciTZju'];a54_0xa7e7=function(){return _0x1f2ca3;};return a54_0xa7e7();}import a54_0x1127e8 from'ol/tilegrid/TileGrid';import{registerProj}from'../utils/RegisterProjUtil';import{appendPath}from'../utils/UrlUtil';export default class ArcgisTileLayer extends a54_0x5a546a{constructor(_0x310645,_0x5f19bf){const _0x9c648b=a54_0x4a3b,_0x1bdc30=_0x310645['url']?_0x310645[_0x9c648b(0x1c4)]:'',_0x2bb291=appendPath(_0x1bdc30,'/tile/{z}/{y}/{x}'),_0x555997=[_0x5f19bf[_0x9c648b(0x1cc)]['xmin'],_0x5f19bf['initialExtent'][_0x9c648b(0x1ba)],_0x5f19bf[_0x9c648b(0x1cc)][_0x9c648b(0x1ca)],_0x5f19bf[_0x9c648b(0x1cc)][_0x9c648b(0x1c2)]],_0x2f2fb5=[_0x5f19bf['fullExtent']['xmin'],_0x5f19bf[_0x9c648b(0x1bf)][_0x9c648b(0x1ba)],_0x5f19bf[_0x9c648b(0x1bf)][_0x9c648b(0x1ca)],_0x5f19bf[_0x9c648b(0x1bf)]['ymax']];let _0x425224;_0x5f19bf[_0x9c648b(0x1bd)][_0x9c648b(0x1d6)]?_0x425224=registerProj(_0x9c648b(0x1c5)+_0x5f19bf[_0x9c648b(0x1bd)][_0x9c648b(0x1d6)],_0x2f2fb5):_0x425224=registerProj(_0x5f19bf[_0x9c648b(0x1bd)]['wkt'],_0x2f2fb5);let _0x11165b=[];for(let _0x6f2bc4=0x0,_0x360a57=_0x5f19bf[_0x9c648b(0x1ce)][_0x9c648b(0x1c0)][_0x9c648b(0x1d4)];_0x6f2bc4<_0x360a57;_0x6f2bc4++){_0x11165b['push'](_0x5f19bf['tileInfo']['lods'][_0x6f2bc4][_0x9c648b(0x1cf)]);}super({'opacity':_0x310645['opacity'],'zIndex':_0x310645[_0x9c648b(0x1d3)],'maxResolution':_0x11165b[0x0]*0x2,'source':new a54_0x25ba34({'url':_0x2bb291,'projection':_0x425224,'crossOrigin':_0x9c648b(0x1d0),'tileGrid':new a54_0x1127e8({'extent':_0x2f2fb5,'origin':[_0x5f19bf[_0x9c648b(0x1ce)][_0x9c648b(0x1be)]['x'],_0x5f19bf['tileInfo'][_0x9c648b(0x1be)]['y']],'resolutions':_0x11165b,'tileSize':[_0x5f19bf[_0x9c648b(0x1ce)]['rows'],_0x5f19bf[_0x9c648b(0x1ce)][_0x9c648b(0x1c3)]]})})}),this['id']=_0x310645['id'],this[_0x9c648b(0x1cc)]=_0x555997,this[_0x9c648b(0x1bb)]=_0x425224,this[_0x9c648b(0x1d2)]=_0x310645;}}