ym-gis-2d 1.0.40 → 1.0.42

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 (81) 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.d.ts +2 -0
  31. package/layers/LayerManager.d.ts.map +1 -1
  32. package/layers/LayerManager.js +1 -1
  33. package/layers/LayerManager.js.map +1 -1
  34. package/layers/MapTileLayer.d.ts +17 -0
  35. package/layers/MapTileLayer.d.ts.map +1 -0
  36. package/layers/MapTileLayer.js +1 -0
  37. package/layers/MapTileLayer.js.map +1 -0
  38. package/layers/TDTLayer.js +1 -1
  39. package/mapView/Map.d.ts.map +1 -1
  40. package/mapView/Map.js +1 -1
  41. package/mapView/Map.js.map +1 -1
  42. package/mapView/View.js +1 -1
  43. package/package.json +1 -1
  44. package/plot/Plot.js +1 -1
  45. package/plot/geometry/point/Point.js +1 -1
  46. package/plot/geometry/polygon/BasePolygon.js +1 -1
  47. package/plot/geometry/polygon/Circle.js +1 -1
  48. package/plot/geometry/polygon/Polygon.js +1 -1
  49. package/plot/geometry/polygon/RectAngle.js +1 -1
  50. package/plot/geometry/polyline/BaseLine.js +1 -1
  51. package/plot/geometry/polyline/Polyline.js +1 -1
  52. package/style/PointStyleFormat.js +1 -1
  53. package/style/PointStyleFormat.js.map +1 -1
  54. package/style/PolygonStyleFormat.js +1 -1
  55. package/style/PolylineStyleFormat.js +1 -1
  56. package/style/StyleManager.js +1 -1
  57. package/style/common.js +1 -1
  58. package/utils/ArrayUtil.js +1 -1
  59. package/utils/AxiosUtil.js +1 -1
  60. package/utils/EsriUtil.js +1 -1
  61. package/utils/GeometryUtil.js +1 -1
  62. package/utils/LayerUtil.js +1 -1
  63. package/utils/RegisterProjUtil.js +1 -1
  64. package/utils/ResolutionUtil.js +1 -1
  65. package/utils/StringUtil.js +1 -1
  66. package/utils/StyleUtil.js +1 -1
  67. package/utils/UrlUtil.js +1 -1
  68. package/utils/XmlUtil.js +1 -1
  69. package/utils/format/CQL.js +1 -1
  70. package/utils/format/IsMatchCql.js +1 -1
  71. package/utils/plug/canvas/ImageCache.js +1 -1
  72. package/utils/plug/canvas/PinBuilder.js +1 -1
  73. package/utils/plug/canvas/PinIcon.js +1 -1
  74. package/utils/plug/canvas/writeTextToCanvas.js +1 -1
  75. package/utils/tasks/esri/Identify.js +1 -1
  76. package/utils/tasks/esri/Query.js +1 -1
  77. package/utils/tasks/esri/Task.js +1 -1
  78. package/utils/tasks/geoserver/QueryTask.js +1 -1
  79. package/utils/tasks/index.js +1 -1
  80. package/ym-gis-2d.es.js +1 -1
  81. package/ym-gis-2d.umd.js +1 -1
@@ -1 +1 @@
1
- const a43_0x10ec5c=a43_0x150f;(function(_0x27b606,_0x49be99){const _0x5e3603=a43_0x150f,_0x50a28c=_0x27b606();while(!![]){try{const _0x332fba=parseInt(_0x5e3603(0x19c))/0x1*(parseInt(_0x5e3603(0x1a7))/0x2)+-parseInt(_0x5e3603(0x19e))/0x3+parseInt(_0x5e3603(0x1c4))/0x4+parseInt(_0x5e3603(0x1c5))/0x5+-parseInt(_0x5e3603(0x1ad))/0x6+-parseInt(_0x5e3603(0x1b8))/0x7+parseInt(_0x5e3603(0x19a))/0x8*(parseInt(_0x5e3603(0x1c6))/0x9);if(_0x332fba===_0x49be99)break;else _0x50a28c['push'](_0x50a28c['shift']());}catch(_0x1f35a2){_0x50a28c['push'](_0x50a28c['shift']());}}}(a43_0x1d72,0x2c7b6));import a43_0x344a3f from'../entity/Feature';function a43_0x1d72(){const _0x135bae=['getPointTempLayer','filter','flash_layer','isSelected','indexOf','529552ZIRQYR','279395rcQNFI','4059ZArgJY','features','getTempSelectedFeatures','length','currentEditLayer','7144XcJlVg','getTempEditFeatures','581AMpgsY','geometryType','544500ETetCZ','getFeatures','getEditFeatures','getSource','getVisible','readFeature','push','setVisible','layerInfo','98dyYhNV','getPolygonTempLayer','forEach','getSelectedFeatures','tempLayer','clearTempFeatures','1317426LyAoOL','removeLayer','layerId','addFeatures','addLayer','setGeometry','map','getLayerById','getLineTempLayer','getType','get','253470IDUiOl','kmlImport','tag','setStyle','removeFeature','flashFeatures','flashGeometrys'];a43_0x1d72=function(){return _0x135bae;};return a43_0x1d72();}import a43_0x1fba26 from'ol/layer/Vector';function a43_0x150f(_0x918585,_0xdb216c){const _0x1d7285=a43_0x1d72();return a43_0x150f=function(_0x150f33,_0x556d70){_0x150f33=_0x150f33-0x198;let _0x2508ac=_0x1d7285[_0x150f33];return _0x2508ac;},a43_0x150f(_0x918585,_0xdb216c);}import a43_0x25b4b5 from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';import a43_0x200e47 from'ol/format/GeoJSON';import{getSelectStyle}from'../style/StyleManager';export default class FeatureManager{constructor(_0x272535){const _0x35e5d5=a43_0x150f;this[_0x35e5d5(0x1b3)]=_0x272535;}[a43_0x10ec5c(0x1a0)](_0x19e461,_0x26f7d4){const _0x2b5716=a43_0x10ec5c;if(!this['map'][_0x2b5716(0x199)])return;let _0x5b46d0;const _0x470d20=this['map'][_0x2b5716(0x1b4)](this[_0x2b5716(0x1b3)][_0x2b5716(0x199)]['id']);if(!_0x470d20||!_0x470d20['layerInfo'])return;switch(_0x470d20['layerInfo'][_0x2b5716(0x19d)]){case 0x1:_0x5b46d0=this['getTempEditFeatures'](this[_0x2b5716(0x1b3)][_0x2b5716(0x1bf)](),this[_0x2b5716(0x1b3)][_0x2b5716(0x199)]['id'],_0x19e461,_0x26f7d4);break;case 0x2:_0x5b46d0=this[_0x2b5716(0x19b)](this[_0x2b5716(0x1b3)]['getLineTempLayer'](),this[_0x2b5716(0x1b3)]['currentEditLayer']['id'],_0x19e461,_0x26f7d4);break;case 0x3:_0x5b46d0=this['getTempEditFeatures'](this[_0x2b5716(0x1b3)][_0x2b5716(0x1a8)](),this[_0x2b5716(0x1b3)]['currentEditLayer']['id'],_0x19e461,_0x26f7d4);break;default:break;}return _0x5b46d0;}[a43_0x10ec5c(0x1aa)](_0x267bd1,_0x132c5d){const _0x1225dc=a43_0x10ec5c;if(_0x267bd1){const _0x258c9e=this[_0x1225dc(0x1b3)][_0x1225dc(0x1b4)](_0x267bd1);if(!_0x258c9e||!_0x258c9e[_0x1225dc(0x1a6)])return;let _0x42bc73;switch(_0x258c9e['layerInfo'][_0x1225dc(0x19d)]){case 0x1:_0x42bc73=this[_0x1225dc(0x1c8)](this['map'][_0x1225dc(0x1bf)](),_0x267bd1,_0x132c5d);break;case 0x2:_0x42bc73=this[_0x1225dc(0x1c8)](this[_0x1225dc(0x1b3)][_0x1225dc(0x1b5)](),_0x267bd1,_0x132c5d);break;case 0x3:_0x42bc73=this[_0x1225dc(0x1c8)](this[_0x1225dc(0x1b3)]['getPolygonTempLayer'](),_0x267bd1,_0x132c5d);break;default:break;}return _0x42bc73;}else{const _0x28faec=this[_0x1225dc(0x1c8)](this[_0x1225dc(0x1b3)][_0x1225dc(0x1bf)](),_0x267bd1,_0x132c5d),_0x227a0c=this[_0x1225dc(0x1c8)](this[_0x1225dc(0x1b3)][_0x1225dc(0x1b5)](),_0x267bd1,_0x132c5d),_0x367adc=this[_0x1225dc(0x1c8)](this['map']['getPolygonTempLayer'](),_0x267bd1,_0x132c5d);let _0x1d6637=[];return _0x28faec&&(_0x1d6637=[..._0x1d6637,..._0x28faec]),_0x227a0c&&(_0x1d6637=[..._0x1d6637,..._0x227a0c]),_0x367adc&&(_0x1d6637=[..._0x1d6637,..._0x367adc]),_0x1d6637;}}[a43_0x10ec5c(0x1c8)](_0x5e2709,_0x50d97f,_0x533c24){const _0x36b817=a43_0x10ec5c;var _0x544d8d;let _0x399d3a=(_0x544d8d=_0x5e2709[_0x36b817(0x1a1)]())===null||_0x544d8d===void 0x0?void 0x0:_0x544d8d[_0x36b817(0x19f)]();if(!_0x399d3a)return;_0x399d3a[_0x36b817(0x1a9)]((_0x11ba80,_0x3b6349,_0x37bc99)=>{_0x11ba80['tempLayer']=_0x5e2709;});_0x533c24!=undefined&&(_0x399d3a=_0x399d3a[_0x36b817(0x1c0)](_0xa1da73=>_0xa1da73[_0x36b817(0x1c2)]==_0x533c24));if(_0x50d97f)return _0x399d3a[_0x36b817(0x1c0)](_0x532e14=>_0x532e14[_0x36b817(0x1af)]==_0x50d97f);return _0x399d3a;}['getTempEditFeatures'](_0x11e1f8,_0x414296,_0x12fa71,_0x5ec2b4){const _0x5c8650=a43_0x10ec5c;var _0x2480a9;let _0x1cf860=(_0x2480a9=_0x11e1f8[_0x5c8650(0x1a1)]())===null||_0x2480a9===void 0x0?void 0x0:_0x2480a9[_0x5c8650(0x19f)]();if(!_0x1cf860)return;return _0x1cf860[_0x5c8650(0x1a9)]((_0x1aae0a,_0x19cafc,_0x617805)=>{const _0x3d4eee=_0x5c8650;_0x1aae0a[_0x3d4eee(0x1ab)]=_0x11e1f8;}),_0x12fa71&&_0x5ec2b4&&_0x5ec2b4[_0x5c8650(0x198)]>0x0?_0x1cf860=_0x1cf860[_0x5c8650(0x1c0)](_0x456a24=>_0x456a24[_0x5c8650(0x1c2)]==!![]&&(_0x456a24[_0x5c8650(0x1af)]==_0x414296&&(_0x456a24['get'](_0x12fa71)==undefined||_0x5ec2b4[_0x5c8650(0x1c3)](_0x456a24[_0x5c8650(0x1b7)](_0x12fa71))>-0x1)||_0x456a24[_0x5c8650(0x1af)]==undefined)):_0x1cf860=_0x1cf860=_0x1cf860['filter'](_0xfeb72a=>_0xfeb72a['isSelected']==!![]&&(_0xfeb72a[_0x5c8650(0x1af)]==_0x414296||_0xfeb72a[_0x5c8650(0x1af)]==undefined)),_0x1cf860;}[a43_0x10ec5c(0x1bd)](_0x578aa7,_0x135c5b=0x3){const _0x5bf812=a43_0x10ec5c;var _0x4d4b46;let _0x55d6fe=new a43_0x1fba26({'zIndex':0x270f,'source':new a43_0x25b4b5()});_0x55d6fe['id']=_0x5bf812(0x1c1),this['map'][_0x5bf812(0x1b1)](_0x55d6fe,![]),(_0x4d4b46=_0x55d6fe[_0x5bf812(0x1a1)]())===null||_0x4d4b46===void 0x0?void 0x0:_0x4d4b46[_0x5bf812(0x1b0)](_0x578aa7);let _0x105280=0x0,_0x18039d=setInterval(()=>{const _0x531146=_0x5bf812;if(_0x105280===_0x135c5b){_0x18039d&&clearInterval(_0x18039d);const _0x5444fd=this[_0x531146(0x1b3)][_0x531146(0x1b4)](_0x55d6fe['id']);_0x5444fd&&this['map'][_0x531146(0x1ae)](_0x5444fd);return;}if(_0x55d6fe[_0x531146(0x1a2)]())_0x55d6fe[_0x531146(0x1a5)](![]);else _0x55d6fe[_0x531146(0x1a5)](!![]);_0x105280++;},0x190);}[a43_0x10ec5c(0x1be)](_0x222a7c,_0x24685b=0x3){const _0x18b0c2=a43_0x10ec5c;var _0x235041;let _0x34a6af=new a43_0x1fba26({'zIndex':0x270f,'source':new a43_0x25b4b5()});_0x34a6af['id']='flash_layer',this[_0x18b0c2(0x1b3)][_0x18b0c2(0x1b1)](_0x34a6af,![]);let _0x103b5c=[];_0x222a7c['forEach'](_0x2046e2=>{const _0x74bf4a=_0x18b0c2;let _0x30ba8a=new a43_0x344a3f();const _0xa95445=getSelectStyle(_0x2046e2[_0x74bf4a(0x1b6)]());_0x30ba8a[_0x74bf4a(0x1bb)](_0xa95445),_0x30ba8a[_0x74bf4a(0x1b2)](_0x2046e2),_0x103b5c[_0x74bf4a(0x1a4)](_0x30ba8a);}),(_0x235041=_0x34a6af['getSource']())===null||_0x235041===void 0x0?void 0x0:_0x235041['addFeatures'](_0x103b5c);let _0x1cf1e1=0x0,_0x15429e=setInterval(()=>{const _0x36415f=_0x18b0c2;if(_0x1cf1e1===_0x24685b){_0x15429e&&clearInterval(_0x15429e);const _0xd8d830=this[_0x36415f(0x1b3)][_0x36415f(0x1b4)](_0x34a6af['id']);_0xd8d830&&this[_0x36415f(0x1b3)]['removeLayer'](_0xd8d830);return;}if(_0x34a6af[_0x36415f(0x1a2)]())_0x34a6af[_0x36415f(0x1a5)](![]);else _0x34a6af[_0x36415f(0x1a5)](!![]);_0x1cf1e1++;},0x190);}async[a43_0x10ec5c(0x1b9)](_0x1c9a4d){const _0x1a914a=a43_0x10ec5c;let _0x59062c=await toGeoJSON(_0x1c9a4d,null);if(!_0x59062c)return[];let _0x377bee=[];var _0x11e8b5=new a43_0x200e47();return _0x59062c[_0x1a914a(0x1c7)][_0x1a914a(0x1a9)](_0x3d98e7=>{const _0x5a365e=_0x1a914a;_0x377bee['push'](_0x11e8b5[_0x5a365e(0x1a3)](_0x3d98e7,null));}),_0x377bee;}[a43_0x10ec5c(0x1ac)](_0x2e29bd){const _0x3255c5=a43_0x10ec5c,_0x34c90c=this[_0x3255c5(0x1aa)]();if(_0x34c90c&&_0x34c90c[_0x3255c5(0x198)]>0x0)for(const _0x37be27 of _0x34c90c){if(_0x37be27&&_0x37be27[_0x3255c5(0x1ab)]){const _0x49410c=_0x37be27['tempLayer'][_0x3255c5(0x1a1)]();_0x49410c&&(_0x2e29bd!=undefined?_0x37be27[_0x3255c5(0x1ba)]==_0x2e29bd&&_0x49410c[_0x3255c5(0x1bc)](_0x37be27):_0x49410c['removeFeature'](_0x37be27));}}}}
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));}}}}
package/index.js CHANGED
@@ -1 +1 @@
1
- function a44_0xba0e(){var _0x5191ac=['472yvwhAc','3738504viymKt','516450EMpnQj','6660950schCOM','64840bkIlAH','809524ztsfLs','1063086sOwCRE','39851lscWGD'];a44_0xba0e=function(){return _0x5191ac;};return a44_0xba0e();}function a44_0x5807(_0x437098,_0x13625c){var _0xba0e9a=a44_0xba0e();return a44_0x5807=function(_0x580788,_0x385260){_0x580788=_0x580788-0xfc;var _0x585b54=_0xba0e9a[_0x580788];return _0x585b54;},a44_0x5807(_0x437098,_0x13625c);}(function(_0x1875db,_0x28d0ef){var _0x474a1f=a44_0x5807,_0x56389c=_0x1875db();while(!![]){try{var _0x3b9c70=parseInt(_0x474a1f(0xff))/0x1+-parseInt(_0x474a1f(0xfe))/0x2+-parseInt(_0x474a1f(0xfc))/0x3+-parseInt(_0x474a1f(0x103))/0x4+parseInt(_0x474a1f(0xfd))/0x5+parseInt(_0x474a1f(0x100))/0x6+-parseInt(_0x474a1f(0x101))/0x7*(parseInt(_0x474a1f(0x102))/0x8);if(_0x3b9c70===_0x28d0ef)break;else _0x56389c['push'](_0x56389c['shift']());}catch(_0x394522){_0x56389c['push'](_0x56389c['shift']());}}}(a44_0xba0e,0xce024));import a44_0xba671e from'./mapView/Map';export{a44_0xba671e as Map2D};
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 +1 @@
1
- const a45_0x5aad08=a45_0xddb0;(function(_0x2b5ec2,_0x4bb8d5){const _0x3d91b5=a45_0xddb0,_0x3fb1b5=_0x2b5ec2();while(!![]){try{const _0x3d6678=-parseInt(_0x3d91b5(0xd4))/0x1+parseInt(_0x3d91b5(0xeb))/0x2*(-parseInt(_0x3d91b5(0xcc))/0x3)+parseInt(_0x3d91b5(0xe8))/0x4*(parseInt(_0x3d91b5(0xee))/0x5)+-parseInt(_0x3d91b5(0xf6))/0x6+parseInt(_0x3d91b5(0xf3))/0x7+-parseInt(_0x3d91b5(0xe0))/0x8+-parseInt(_0x3d91b5(0xf9))/0x9*(-parseInt(_0x3d91b5(0xf8))/0xa);if(_0x3d6678===_0x4bb8d5)break;else _0x3fb1b5['push'](_0x3fb1b5['shift']());}catch(_0x5ed90b){_0x3fb1b5['push'](_0x3fb1b5['shift']());}}}(a45_0x57c4,0xae801));import a45_0x295f5f from'./Draw';import a45_0x598ff5 from'ol/events/Event';import{getArea}from'../utils/GeometryUtil';import{getStyle}from'../plot/Plot';import a45_0x1e8c6f from'../entity/measure/AreaMeasureUnits';function a45_0x57c4(){const _0x697801=['polygon','feature','getMap','drawAddPoint','_showLabel','setMap','104913mmBtpd','type','fromType','getSource','log','#f03437','square-kilometers','_style','995635rEUwQb','geom','_precision','unit','label','_features','coordinates','spheroid','_unit','onInternal','measureMoving','dispatchEvent','1264816bYwjWW','hectare','clear','_source','setFeatureAreaStyle','getGeometry','removeFeature','getProjection','4331988JHMQNV','entries','点击开始测量,双击结束测量','50JBMQOP','平方米','setStyle','5TXSMAR','drawMoving','measureEnd','text','toFixed','5889429DjTGBT','precision','length','1523868vqcueX','_spheroid','10iibQfx','9651591YUkVHW','square-meters','getView','fromEntries','assign','forEach','filter','showLabel'];a45_0x57c4=function(){return _0x697801;};return a45_0x57c4();}import a45_0x43fef8 from'ol/Collection';function a45_0xddb0(_0x2bdf35,_0x289f3b){const _0x57c4d3=a45_0x57c4();return a45_0xddb0=function(_0xddb087,_0x55512a){_0xddb087=_0xddb087-0xca;let _0x502cfc=_0x57c4d3[_0xddb087];return _0x502cfc;},a45_0xddb0(_0x2bdf35,_0x289f3b);}const defaultOptions={'color':a45_0x5aad08(0xd1),'fill':!![],'opacity':0.6,'outline':!![],'outlineColor':[0xff,0x0,0x0,0x0],'outlineOpacity':0.6,'outlineWidth':0x2,'font':{},'unit':a45_0x5aad08(0xfa),'precision':0x2,'showLabel':!![],'spheroid':![]},MeasureEventType={'measureMoving':'measureMoving','measureEnd':'measureEnd'};export class AreaMeasureEvent extends a45_0x598ff5{constructor(_0x5be1f8,_0x50ef8c,_0x9c7d42){const _0x155709=a45_0x5aad08;super(_0x5be1f8),this['area']=_0x50ef8c,this[_0x155709(0xd5)]=_0x9c7d42;}}export default class AreaMeasure extends a45_0x295f5f{constructor(_0xc8f4c1){const _0x1fbff5=a45_0x5aad08;_0xc8f4c1=_0xc8f4c1||{},console[_0x1fbff5(0xd0)](_0xc8f4c1);const _0x105dc2=Object[_0x1fbff5(0xfd)](Object['assign']({},defaultOptions),Object[_0x1fbff5(0xfc)](Object[_0x1fbff5(0xe9)](_0xc8f4c1)[_0x1fbff5(0xff)](([_0x2fdf1a,_0x5b1449])=>_0x5b1449!=null)));super('polygon',{'tipText':_0x1fbff5(0xea),'style':_0x105dc2,'features':new a45_0x43fef8()}),this[_0x1fbff5(0xd3)]=_0x105dc2,this[_0x1fbff5(0xdc)]=_0x105dc2[_0x1fbff5(0xd7)],this['_precision']=_0x105dc2[_0x1fbff5(0xf4)],this[_0x1fbff5(0xca)]=_0x105dc2[_0x1fbff5(0x100)],this['_spheroid']=_0x105dc2[_0x1fbff5(0xdb)],this['on']=this[_0x1fbff5(0xdd)],this['on']('drawEnd',_0x16ed3a=>{const _0x395854=_0x1fbff5,_0x354e6e=this[_0x395854(0x103)]();if(!_0x354e6e)return;if(_0x16ed3a[_0x395854(0x102)]){const _0x3591c7=this[_0x395854(0xe4)](_0x16ed3a[_0x395854(0x102)],_0x105dc2);this[_0x395854(0xdf)](new AreaMeasureEvent(MeasureEventType[_0x395854(0xf0)],_0x3591c7,_0x16ed3a['feature'][_0x395854(0xe5)]()));}this[_0x395854(0xd3)][_0x395854(0xf1)]='';}),this['on'](_0x1fbff5(0x104),_0x451064=>{const _0xcb9e6c=_0x1fbff5,_0x33460a=this[_0xcb9e6c(0x103)]();if(!_0x33460a)return;if(_0x451064[_0xcb9e6c(0x102)]){const _0x3cdb9b=this[_0xcb9e6c(0xe4)](_0x451064[_0xcb9e6c(0x102)],_0x105dc2);this[_0xcb9e6c(0xdf)](new AreaMeasureEvent(MeasureEventType[_0xcb9e6c(0xde)],_0x3cdb9b,_0x451064[_0xcb9e6c(0x102)]['getGeometry']()));}}),this['on'](_0x1fbff5(0xef),_0x2416b3=>{const _0x2ba3f6=_0x1fbff5,_0x5c72f2=this[_0x2ba3f6(0x103)]();if(!_0x5c72f2)return;if(!_0x2416b3[_0x2ba3f6(0xda)]||_0x2416b3[_0x2ba3f6(0xda)][_0x2ba3f6(0xf5)]<0x2)return;if(_0x2416b3[_0x2ba3f6(0x102)]){const _0x554298=this[_0x2ba3f6(0xe4)](_0x2416b3[_0x2ba3f6(0x102)],_0x105dc2);this['dispatchEvent'](new AreaMeasureEvent(MeasureEventType[_0x2ba3f6(0xde)],_0x554298,_0x2416b3[_0x2ba3f6(0x102)][_0x2ba3f6(0xe5)]()));}});}[a45_0x5aad08(0xcb)](_0x3b21dd){const _0xcb962=a45_0x5aad08;super[_0xcb962(0xcb)](_0x3b21dd);if(_0x3b21dd){const _0x403990=_0x3b21dd['getPolygonTempLayer'](),_0x3fab78=_0x403990===null||_0x403990===void 0x0?void 0x0:_0x403990['getSource']();_0x3fab78&&(this[_0xcb962(0xe3)]=_0x3fab78);}}['getText'](_0x235bf6){const _0x5abb95=a45_0x5aad08,_0x421b5e=a45_0x1e8c6f['find'](_0x5cd647=>_0x5cd647['type']===this[_0x5abb95(0xdc)]);switch(_0x421b5e===null||_0x421b5e===void 0x0?void 0x0:_0x421b5e[_0x5abb95(0xcd)]){case _0x5abb95(0xfa):return''+(_0x235bf6['toFixed'](this[_0x5abb95(0xd6)])+_0x421b5e[_0x5abb95(0xd8)]);case _0x5abb95(0xd2):return''+((_0x235bf6*0.000001)['toFixed'](this[_0x5abb95(0xd6)])+_0x421b5e[_0x5abb95(0xd8)]);case'mu':return''+((_0x235bf6*0.0015)[_0x5abb95(0xf2)](this[_0x5abb95(0xd6)])+_0x421b5e[_0x5abb95(0xd8)]);case _0x5abb95(0xe1):return''+((_0x235bf6*0.0001)[_0x5abb95(0xf2)](this[_0x5abb95(0xd6)])+_0x421b5e['label']);default:return _0x235bf6[_0x5abb95(0xf2)](this[_0x5abb95(0xd6)])+_0x5abb95(0xec);}}[a45_0x5aad08(0xe4)](_0x352855,_0x40e256){const _0x415955=a45_0x5aad08,_0x2f6c69=this[_0x415955(0x103)]();if(!_0x2f6c69)return 0x0;const _0x2abef0=_0x352855[_0x415955(0xe5)](),_0x2db534=getArea(_0x2abef0,_0x2f6c69[_0x415955(0xfb)]()[_0x415955(0xe7)](),this[_0x415955(0xf7)]);return _0x352855[_0x415955(0xce)]='measure',this[_0x415955(0xca)]&&(_0x40e256[_0x415955(0xf1)]=this['getText'](_0x2db534),_0x352855[_0x415955(0xed)](getStyle(_0x415955(0x101),_0x40e256,_0x2f6c69))),_0x2db534;}['setUnit'](_0x500935){const _0x2ecf98=a45_0x5aad08;this['_unit']=_0x500935,this[_0x2ecf98(0xd9)]&&this['_features']['getLength']()>0x0&&this[_0x2ecf98(0xd9)][_0x2ecf98(0xfe)](_0x220284=>{const _0x359975=_0x2ecf98;this[_0x359975(0xe4)](_0x220284,this[_0x359975(0xd3)]);});}['clearMeasure'](){const _0x1e3e69=a45_0x5aad08,_0x30f590=this[_0x1e3e69(0x103)]();if(!_0x30f590)return;const _0x242b29=_0x30f590['getPolygonTempLayer'](),_0x1a0f5f=_0x242b29===null||_0x242b29===void 0x0?void 0x0:_0x242b29[_0x1e3e69(0xcf)]();_0x1a0f5f&&this['_features']&&this[_0x1e3e69(0xd9)]['getLength']()>0x0&&(this['_features'][_0x1e3e69(0xfe)](_0x4486a3=>{const _0x11b946=_0x1e3e69;_0x1a0f5f[_0x11b946(0xe6)](_0x4486a3);}),this['_features'][_0x1e3e69(0xe2)]());}}
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 +1 @@
1
- const a46_0x1de10f=a46_0x1ce5;(function(_0x12b73d,_0x238b4f){const _0x14b953=a46_0x1ce5,_0x43181c=_0x12b73d();while(!![]){try{const _0x5c32cb=-parseInt(_0x14b953(0xf1))/0x1+parseInt(_0x14b953(0xfb))/0x2+-parseInt(_0x14b953(0xf2))/0x3+parseInt(_0x14b953(0xfa))/0x4+parseInt(_0x14b953(0xfd))/0x5*(-parseInt(_0x14b953(0x105))/0x6)+parseInt(_0x14b953(0xf4))/0x7+parseInt(_0x14b953(0xf5))/0x8;if(_0x5c32cb===_0x238b4f)break;else _0x43181c['push'](_0x43181c['shift']());}catch(_0x47721e){_0x43181c['push'](_0x43181c['shift']());}}}(a46_0x1123,0x63e3d));import a46_0x24a03f from'./Draw';import a46_0x1a7b1a from'ol/events/Event';function a46_0x1ce5(_0x26437a,_0x4a572a){const _0x11235b=a46_0x1123();return a46_0x1ce5=function(_0x1ce537,_0x15133d){_0x1ce537=_0x1ce537-0xef;let _0x2bffee=_0x11235b[_0x1ce537];return _0x2bffee;},a46_0x1ce5(_0x26437a,_0x4a572a);}import{difference}from'../utils/GeometryUtil';const HoleEventType={'HOLESTART':a46_0x1de10f(0x100),'HOLED':a46_0x1de10f(0x106)};export class HoleEvent extends a46_0x1a7b1a{constructor(_0x49944a,_0x25d19f,_0x2a67ce,_0xb24f2b){const _0x179110=a46_0x1de10f;super(_0x49944a),this['holePolygon']=_0x25d19f,this[_0x179110(0x109)]=_0x2a67ce,this[_0x179110(0x102)]=_0xb24f2b;}}function a46_0x1123(){const _0x56f22e=['6ZWzOof','splited','未获取到地图对象','HOLESTART','features','rgba(255,\x200,\x200,\x201)','onInternal','polygon','holeFeatures','getGeometry','length','794702eGNKKI','1629495CcgyCY','dispatchEvent','929712pDhMko','9795968qPzrDG','HOLED','未获取到擦除要素','getMap','addTempLayer','2222840DATGWQ','71376AiqChK','setFeatures','1008470nCnavJ','feature','tipText','splitStart','push','error','holeStyle','未获取到挖除的面'];a46_0x1123=function(){return _0x56f22e;};return a46_0x1123();}export default class Difference extends a46_0x24a03f{constructor(_0x5690b9,_0x15dd02){const _0x190b9a=a46_0x1de10f,_0x443c50=(_0x15dd02===null||_0x15dd02===void 0x0?void 0x0:_0x15dd02[_0x190b9a(0x103)])||{'outlineColor':_0x190b9a(0x10a),'outlineWidth':0x2,'opacity':0.2,'color':_0x190b9a(0x10a)};super(_0x190b9a(0x10c),{'tipText':_0x15dd02===null||_0x15dd02===void 0x0?void 0x0:_0x15dd02[_0x190b9a(0xff)],'style':_0x443c50}),this[_0x190b9a(0x109)]=_0x5690b9;const _0x46b432=_0x15dd02||{};this[_0x190b9a(0xf9)]=_0x46b432[_0x190b9a(0xf9)]||![],this['on']=this[_0x190b9a(0x10b)],this['on']('drawEnd',async _0x1da212=>{const _0x153ed1=_0x190b9a;var _0x2b612c;const _0x16d5ae=this[_0x153ed1(0xf8)]();let _0x19c90=(_0x2b612c=_0x1da212[_0x153ed1(0xfe)])===null||_0x2b612c===void 0x0?void 0x0:_0x2b612c[_0x153ed1(0xef)]();!_0x19c90&&this[_0x153ed1(0xf3)](new HoleEvent(HoleEventType[_0x153ed1(0xf6)],undefined,undefined,_0x153ed1(0x104)));let _0x512eca=_0x19c90;!_0x16d5ae&&this[_0x153ed1(0xf3)](new HoleEvent(HoleEventType[_0x153ed1(0xf6)],_0x512eca,undefined,_0x153ed1(0x107)));(!this[_0x153ed1(0x109)]||this[_0x153ed1(0x109)]['length']===0x0)&&this[_0x153ed1(0xf3)](new HoleEvent(HoleEventType[_0x153ed1(0xf6)],_0x512eca,undefined,_0x153ed1(0xf7)));try{this[_0x153ed1(0xf3)](new HoleEvent(HoleEventType[_0x153ed1(0x108)],_0x512eca));const _0x49fa17=this['holeFeatures'](_0x512eca);this[_0x153ed1(0xf3)](new HoleEvent(HoleEventType[_0x153ed1(0xf6)],_0x512eca,_0x49fa17));}catch(_0x36ce61){this['dispatchEvent'](new HoleEvent(HoleEventType[_0x153ed1(0xf6)],_0x512eca,undefined,_0x36ce61['message']));}});}[a46_0x1de10f(0x10d)](_0x429425){const _0x247e2f=a46_0x1de10f,_0x3c390f=[];for(let _0x26d48e=0x0;_0x26d48e<this[_0x247e2f(0x109)][_0x247e2f(0xf0)];_0x26d48e++){const _0x383a54=this[_0x247e2f(0x109)][_0x26d48e],_0x5d5667=_0x383a54[_0x247e2f(0xef)]();if(!_0x5d5667)continue;const _0xe4b044=difference(_0x5d5667,_0x429425);_0x383a54['setGeometry'](_0xe4b044),_0x3c390f[_0x247e2f(0x101)](_0x383a54);}return _0x3c390f;}[a46_0x1de10f(0xfc)](_0x3a5d67){this['features']=_0x3a5d67;}}
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 +1 @@
1
- const a47_0x17043a=a47_0x2324;(function(_0x2d9fe3,_0x1d28b1){const _0x5594f0=a47_0x2324,_0x1ab87e=_0x2d9fe3();while(!![]){try{const _0xc4f7f8=parseInt(_0x5594f0(0x1af))/0x1*(-parseInt(_0x5594f0(0x181))/0x2)+-parseInt(_0x5594f0(0x1bb))/0x3*(parseInt(_0x5594f0(0x1ca))/0x4)+parseInt(_0x5594f0(0x1bd))/0x5*(-parseInt(_0x5594f0(0x1a8))/0x6)+parseInt(_0x5594f0(0x1cb))/0x7+-parseInt(_0x5594f0(0x1c5))/0x8+parseInt(_0x5594f0(0x1e1))/0x9*(parseInt(_0x5594f0(0x18c))/0xa)+-parseInt(_0x5594f0(0x1ba))/0xb*(-parseInt(_0x5594f0(0x196))/0xc);if(_0xc4f7f8===_0x1d28b1)break;else _0x1ab87e['push'](_0x1ab87e['shift']());}catch(_0x298723){_0x1ab87e['push'](_0x1ab87e['shift']());}}}(a47_0x4ceb,0x41fd7));import a47_0x2d3a9c from'ol/events/Event';import a47_0xdfb18 from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';import a47_0x24e73a from'ol/Feature';import a47_0x2eb7c0,{createEditingStyle}from'ol/style/Style';function a47_0x2324(_0x3e0c57,_0x4a5f1c){const _0x4ceb9a=a47_0x4ceb();return a47_0x2324=function(_0x232406,_0x3b5555){_0x232406=_0x232406-0x180;let _0x2f1523=_0x4ceb9a[_0x232406];return _0x2f1523;},a47_0x2324(_0x3e0c57,_0x4a5f1c);}import a47_0x5c366b from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a47_0x43e487 from'ol/style/Text';import a47_0x1a929c from'ol/style/Fill';import a47_0x581032 from'ol/interaction/Property';import a47_0x242b98 from'ol/layer/Vector';function a47_0x4ceb(){const _0x2bc509=['getGeometry','6072hMkpBC','point','slice','length','tipText','getCode','Rectangle','46726kfdnCL','updateState_','setText','finishDrawing','originalEvent','preventDefault','getText','Ellipse','handleDragEvent','button','getProjection','11naegAH','1041609RZmHhL','source','1005pdJeMv','coordinates','wrapX','style','单击开始绘制','_sketchFeature','_overlay','onInternal','1780240sdcrye','once','addFeature','atFinish_','Ellipsoid','4JVuPFD','1827147VskqxP','addPoint','drawAddPoint','setGeometry','_fixPoint','setMap','_tipStyle','drawStart','_style','rgba(0,\x200,\x200,\x200.4)','getView','pop','单击增加点,右击删除点','unInternal','Circle','createMultiPointFeature','projection','dispatchEvent','getSource','stopDown','startDrawing_','单击增加点,右击删除点双击完成绘制','9uUrwsW','push','clear','abortDrawing','feature','type','DRAWADDPOINT','MAX_VALUE','_showTip','handleMoveEvent','22JFxuog','DRAWMOVING','indexOf','rectangle','pointermove','buildDrawingFeature','left','getOverlay','revert','rgba(255,\x20255,\x20255,\x201)','_snapTolerance','349510QOTRCI','snapTolerance','_tipFeature','updateSketchFeatures_','updateTip_','drawEnd','abortDrawing_','coordinate','handleDownEvent','_isStayDraw','15137448gPlNcx','features','_drawingCoordinates','单击拖动绘制','addChangeListener','_source','_tipOverlay','drawAbort','_features','getMap','DRAWSTART','DRAWEND','单击结束绘制,右击删除点','getType','_minPoints','minPoint','_type'];a47_0x4ceb=function(){return _0x2bc509;};return a47_0x4ceb();}import a47_0x1e0e32 from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a47_0x17043a(0x1d2),'DRAWEND':a47_0x17043a(0x191),'DRAWABORT':a47_0x17043a(0x19d),'DRAWADDPOINT':a47_0x17043a(0x1cd),'DRAWMOVING':'drawMoving'};export class DrawEvent extends a47_0x2d3a9c{constructor(_0x530ded,_0x38f409,_0x4ddf56){const _0x3f75fd=a47_0x17043a;super(_0x530ded),this[_0x3f75fd(0x1e5)]=_0x38f409,this[_0x3f75fd(0x1be)]=_0x4ddf56;}}export class ShEvent extends a47_0x2d3a9c{constructor(_0x2969ca,_0x2e214c,_0x26a3eb,_0x5586e6,_0x19d0df){const _0x3bfea9=a47_0x17043a;super(_0x2969ca),this[_0x3bfea9(0x1db)]=_0x19d0df,this[_0x3bfea9(0x1e6)]=_0x2e214c,this[_0x3bfea9(0x193)]=_0x26a3eb,this[_0x3bfea9(0x1be)]=_0x5586e6;}}export default class Draw extends a47_0xdfb18{constructor(_0xee8b5f,_0x24279d){const _0x1466f7=a47_0x17043a,_0x28749e=_0x24279d?_0x24279d:{};!_0x28749e[_0x1466f7(0x1de)]&&(_0x28749e['stopDown']=![]);super(_0x24279d),this['on']=this[_0x1466f7(0x1c4)],this[_0x1466f7(0x1c6)]=this['onceInternal'],this['un']=this[_0x1466f7(0x1d8)],this[_0x1466f7(0x195)]=![],this[_0x1466f7(0x1a6)]=_0xee8b5f,this['_style']=_0x24279d===null||_0x24279d===void 0x0?void 0x0:_0x24279d[_0x1466f7(0x1c0)],this[_0x1466f7(0x19b)]=_0x24279d===null||_0x24279d===void 0x0?void 0x0:_0x24279d[_0x1466f7(0x1bc)],this['_features']=_0x24279d===null||_0x24279d===void 0x0?void 0x0:_0x24279d[_0x1466f7(0x197)];const _0x2cb38b=getPlotCount(this[_0x1466f7(0x1a6)]);this[_0x1466f7(0x1a4)]=_0x2cb38b[_0x1466f7(0x1a5)],this[_0x1466f7(0x1cf)]=_0x2cb38b['fixPoint'],this['tipText']=_0x24279d===null||_0x24279d===void 0x0?void 0x0:_0x24279d[_0x1466f7(0x1ac)],this[_0x1466f7(0x1e9)]=(_0x24279d===null||_0x24279d===void 0x0?void 0x0:_0x24279d['showTip'])==![]?![]:!![],this[_0x1466f7(0x18b)]=_0x28749e[_0x1466f7(0x18d)]?_0x28749e[_0x1466f7(0x18d)]:0x6,this['_tipFeature']=new a47_0x24e73a(),this['_tipStyle']=new a47_0x2eb7c0({'text':new a47_0x43e487({'font':'12px\x20Calibre,sans-serif','fill':new a47_0x1a929c({'color':_0x1466f7(0x18a)}),'backgroundFill':new a47_0x1a929c({'color':_0x1466f7(0x1d4)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':_0x1466f7(0x187),'offsetX':0xf})}),this[_0x1466f7(0x198)]=[],this[_0x1466f7(0x19c)]=new a47_0x242b98({'source':new a47_0x5c366b({'useSpatialIndex':![],'wrapX':(_0x24279d===null||_0x24279d===void 0x0?void 0x0:_0x24279d[_0x1466f7(0x1bf)])?_0x24279d['wrapX']:![]})}),this['_overlay']=new a47_0x242b98({'source':new a47_0x5c366b({'useSpatialIndex':![],'wrapX':(_0x24279d===null||_0x24279d===void 0x0?void 0x0:_0x24279d['wrapX'])?_0x24279d[_0x1466f7(0x1bf)]:![]}),'updateWhileInteracting':!![]}),this[_0x1466f7(0x19a)](a47_0x581032['ACTIVE'],this[_0x1466f7(0x1b0)]);}[a47_0x17043a(0x1b0)](){const _0x44b062=a47_0x17043a,_0x3361ab=this[_0x44b062(0x19f)](),_0x4cda8f=this['getActive']();(!_0x3361ab||!_0x4cda8f)&&this[_0x44b062(0x1e4)](),this['_overlay']['setMap'](_0x4cda8f?_0x3361ab:null),this['_tipOverlay'][_0x44b062(0x1d0)](_0x4cda8f?_0x3361ab:null);}[a47_0x17043a(0x1d0)](_0x31cb36){const _0x392d32=a47_0x17043a;super[_0x392d32(0x1d0)](_0x31cb36),this[_0x392d32(0x1b0)]();}['setStyle'](_0x27ff4e){const _0x23bf70=a47_0x17043a;this[_0x23bf70(0x1d3)]=_0x27ff4e?_0x27ff4e:{};}[a47_0x17043a(0x188)](){const _0x329914=a47_0x17043a;return this[_0x329914(0x1c3)];}[a47_0x17043a(0x194)](_0xce1945){const _0x231908=a47_0x17043a;if(_0xce1945[_0x231908(0x1b3)][_0x231908(0x1b8)]===0x2)return _0xce1945[_0x231908(0x1b3)]['preventDefault'](),this['revert'](),this[_0x231908(0x180)](_0xce1945),![];return!![];}['handleUpEvent'](_0x468a3b){const _0x36ed54=a47_0x17043a;var _0x3945de,_0x2fbaf2;if(this['_type']==_0x36ed54(0x184)&&this[_0x36ed54(0x198)][_0x36ed54(0x1ab)]<0x1)return this[_0x36ed54(0x1dc)](new DrawEvent(DrawEventType['DRAWEND'],undefined,[_0x468a3b[_0x36ed54(0x193)]])),![];if(!this[_0x36ed54(0x195)])this[_0x36ed54(0x1df)](_0x468a3b['coordinate']),this[_0x36ed54(0x1dc)](new ShEvent(DrawEventType[_0x36ed54(0x1e7)],this['_type'],_0x468a3b[_0x36ed54(0x193)],this[_0x36ed54(0x198)],(_0x3945de=this[_0x36ed54(0x19f)]())===null||_0x3945de===void 0x0?void 0x0:_0x3945de[_0x36ed54(0x1d5)]()[_0x36ed54(0x1b9)]()[_0x36ed54(0x1ad)]())),this[_0x36ed54(0x1a6)]==_0x36ed54(0x1a9)&&this[_0x36ed54(0x1b2)]();else{if(this[_0x36ed54(0x198)]&&this[_0x36ed54(0x198)]['length']>0x0){if(this[_0x36ed54(0x1c8)](_0x468a3b['pixel']))return this[_0x36ed54(0x1b2)](),_0x468a3b['preventDefault'](),![];let _0x33b172=this[_0x36ed54(0x198)]['length']+0x1;_0x33b172<=this[_0x36ed54(0x1cf)]&&this[_0x36ed54(0x1cc)](_0x468a3b[_0x36ed54(0x193)]),this[_0x36ed54(0x1dc)](new ShEvent(DrawEventType[_0x36ed54(0x1e7)],this[_0x36ed54(0x1a6)],_0x468a3b[_0x36ed54(0x193)],this['_drawingCoordinates'],(_0x2fbaf2=this[_0x36ed54(0x19f)]())===null||_0x2fbaf2===void 0x0?void 0x0:_0x2fbaf2[_0x36ed54(0x1d5)]()[_0x36ed54(0x1b9)]()[_0x36ed54(0x1ad)]())),_0x33b172>=this[_0x36ed54(0x1a4)]&&this[_0x36ed54(0x186)](this[_0x36ed54(0x198)]),_0x33b172===this[_0x36ed54(0x1cf)]&&this[_0x36ed54(0x1b2)]();}}return _0x468a3b[_0x36ed54(0x1b4)](),![];}[a47_0x17043a(0x1b7)](_0x23bb4f){const _0x52eb13=a47_0x17043a;var _0x1c5aad;if(this['_type']==_0x52eb13(0x184)&&_0x23bb4f[_0x52eb13(0x1b3)][_0x52eb13(0x1e6)]==_0x52eb13(0x185)){if(!this[_0x52eb13(0x195)]){this[_0x52eb13(0x1df)](_0x23bb4f[_0x52eb13(0x193)]),this[_0x52eb13(0x1dc)](new ShEvent(DrawEventType[_0x52eb13(0x1e7)],this[_0x52eb13(0x1a6)],_0x23bb4f[_0x52eb13(0x193)],this[_0x52eb13(0x198)],(_0x1c5aad=this[_0x52eb13(0x19f)]())===null||_0x1c5aad===void 0x0?void 0x0:_0x1c5aad[_0x52eb13(0x1d5)]()['getProjection']()[_0x52eb13(0x1ad)]()));return;}let _0x322d6f=[...this['_drawingCoordinates'],_0x23bb4f[_0x52eb13(0x193)]];this['buildDrawingFeature'](_0x322d6f),this[_0x52eb13(0x1dc)](new DrawEvent(DrawEventType[_0x52eb13(0x182)],this[_0x52eb13(0x1c2)],this[_0x52eb13(0x198)]));}}[a47_0x17043a(0x180)](_0x5a371e){const _0xef5e30=a47_0x17043a;var _0x58ada7,_0x59b3cb,_0x589c09;let _0x2113f8='';this[_0xef5e30(0x1a6)]=='pointermove'&&(this[_0xef5e30(0x1df)](_0x5a371e['coordinate']),this[_0xef5e30(0x1dc)](new ShEvent(DrawEventType[_0xef5e30(0x1e7)],this[_0xef5e30(0x1a6)],_0x5a371e[_0xef5e30(0x193)],this[_0xef5e30(0x198)],(_0x58ada7=this['getMap']())===null||_0x58ada7===void 0x0?void 0x0:_0x58ada7[_0xef5e30(0x1d5)]()[_0xef5e30(0x1b9)]()[_0xef5e30(0x1ad)]())),this[_0xef5e30(0x1b2)]());!this[_0xef5e30(0x195)]?_0x2113f8=this[_0xef5e30(0x1a6)]==_0xef5e30(0x184)?_0xef5e30(0x199):_0xef5e30(0x1c1):(_0x2113f8=_0xef5e30(0x1d7),((_0x59b3cb=this[_0xef5e30(0x198)])===null||_0x59b3cb===void 0x0?void 0x0:_0x59b3cb[_0xef5e30(0x1ab)])===this[_0xef5e30(0x1cf)]-0x1&&(_0x2113f8=_0xef5e30(0x1a2)),((_0x589c09=this[_0xef5e30(0x198)])===null||_0x589c09===void 0x0?void 0x0:_0x589c09[_0xef5e30(0x1ab)])>=this[_0xef5e30(0x1a4)]&&this[_0xef5e30(0x1cf)]===Number[_0xef5e30(0x1e8)]&&(_0x2113f8=_0xef5e30(0x1e0)));this[_0xef5e30(0x1ac)]!=undefined&&(_0x2113f8=this[_0xef5e30(0x1ac)]);this[_0xef5e30(0x190)](_0x5a371e['coordinate'],_0x2113f8);if(this['_isStayDraw']&&this['_type']!='rectangle'){let _0x165343=[...this[_0xef5e30(0x198)],_0x5a371e[_0xef5e30(0x193)]];this[_0xef5e30(0x186)](_0x165343);}this['dispatchEvent'](new DrawEvent(DrawEventType['DRAWMOVING'],this[_0xef5e30(0x1c2)],this[_0xef5e30(0x198)]));}[a47_0x17043a(0x1c8)](_0x269581){const _0x10cb87=a47_0x17043a;var _0x3b8b51;let _0xc4a25b=![],_0xb39654=this[_0x10cb87(0x198)][_0x10cb87(0x1ab)];if(_0xb39654>this['_minPoints']&&this['_fixPoint']===Number['MAX_VALUE']){const _0x42036e=this['_drawingCoordinates'][this['_drawingCoordinates']['length']-0x1],_0x362e8d=(_0x3b8b51=this[_0x10cb87(0x19f)]())===null||_0x3b8b51===void 0x0?void 0x0:_0x3b8b51['getPixelFromCoordinate'](_0x42036e),_0x4ccc97=_0x269581[0x0]-(_0x362e8d?_0x362e8d[0x0]:0x0),_0x52ecee=_0x269581[0x1]-(_0x362e8d?_0x362e8d[0x1]:0x0);_0xc4a25b=Math['sqrt'](_0x4ccc97*_0x4ccc97+_0x52ecee*_0x52ecee)<=this[_0x10cb87(0x18b)];}return _0xc4a25b;}[a47_0x17043a(0x1df)](_0x53f98e){const _0x39d708=a47_0x17043a;this[_0x39d708(0x195)]=!![],this['_drawingCoordinates']=[_0x53f98e[_0x39d708(0x1aa)]()],this[_0x39d708(0x1c2)]=this[_0x39d708(0x1da)](),this[_0x39d708(0x18f)](),this[_0x39d708(0x1dc)](new DrawEvent(DrawEventType[_0x39d708(0x1a0)],this[_0x39d708(0x1c2)],this[_0x39d708(0x198)]));}[a47_0x17043a(0x1b2)](){const _0x330d67=a47_0x17043a;if(this[_0x330d67(0x198)]['length']>this[_0x330d67(0x1a4)]){this[_0x330d67(0x186)](this['_drawingCoordinates']);let _0x2abca5=this[_0x330d67(0x198)];const _0x42febb=this[_0x330d67(0x192)]();if(!_0x42febb)return;this[_0x330d67(0x1dc)](new DrawEvent(DrawEventType[_0x330d67(0x1a1)],_0x42febb,_0x2abca5)),this[_0x330d67(0x19e)]&&this[_0x330d67(0x19e)][_0x330d67(0x1e2)](_0x42febb),this[_0x330d67(0x19b)]&&this[_0x330d67(0x19b)][_0x330d67(0x1c7)](_0x42febb);}}[a47_0x17043a(0x1cc)](_0x5cd0fb){const _0x4a6149=a47_0x17043a;this[_0x4a6149(0x198)]['push'](_0x5cd0fb),this[_0x4a6149(0x1c2)]=this['createMultiPointFeature'](),this[_0x4a6149(0x18f)]();}[a47_0x17043a(0x1da)](){const _0x330730=a47_0x17043a,_0x540bf2=new MultiPoint(this[_0x330730(0x198)]);let _0x384ded=new a47_0x24e73a();return _0x384ded[_0x330730(0x1ce)](_0x540bf2),_0x384ded;}['abortDrawing_'](){const _0x39ec88=a47_0x17043a;var _0x1180e2,_0x5b38d3;this['_isStayDraw']=![];const _0x265030=this[_0x39ec88(0x1c2)];return this[_0x39ec88(0x1c2)]=undefined,this['_drawingCoordinates']=[],(_0x1180e2=this[_0x39ec88(0x1c3)][_0x39ec88(0x1dd)]())===null||_0x1180e2===void 0x0?void 0x0:_0x1180e2[_0x39ec88(0x1e3)](!![]),(_0x5b38d3=this[_0x39ec88(0x19c)][_0x39ec88(0x1dd)]())===null||_0x5b38d3===void 0x0?void 0x0:_0x5b38d3[_0x39ec88(0x1e3)](!![]),_0x265030;}['abortDrawing'](){const _0x4cc4ad=a47_0x17043a,_0x588f42=this[_0x4cc4ad(0x192)]();_0x588f42&&this['dispatchEvent'](new DrawEvent(DrawEventType['DRAWABORT'],_0x588f42,this['_drawingCoordinates']));}['buildDrawingFeature'](_0x501ca7){const _0x394dda=a47_0x17043a;this['_sketchFeature']=new a47_0x24e73a();let _0xa58a5d=createPlot(this[_0x394dda(0x1a6)],_0x501ca7);if(!_0xa58a5d)return;this[_0x394dda(0x1c2)][_0x394dda(0x1ce)](_0xa58a5d);let _0x2b5ae6=[a47_0x1e0e32[_0x394dda(0x1d9)],a47_0x1e0e32[_0x394dda(0x1c9)],a47_0x1e0e32[_0x394dda(0x1b6)]];if(_0x2b5ae6[_0x394dda(0x183)](this[_0x394dda(0x1a6)])>-0x1&&this[_0x394dda(0x1d3)]){}const _0x3317ed=this[_0x394dda(0x19f)]();this[_0x394dda(0x1c2)]['setStyle'](getStyle(this['_type'],this[_0x394dda(0x1d3)],this['getMap']())),this[_0x394dda(0x18f)]();}['updateSketchFeatures_'](){const _0x1cc019=a47_0x17043a,_0x364e5a=this[_0x1cc019(0x1c3)][_0x1cc019(0x1dd)]();_0x364e5a&&this[_0x1cc019(0x1c2)]&&(_0x364e5a[_0x1cc019(0x1e3)](!![]),_0x364e5a[_0x1cc019(0x1c7)](this[_0x1cc019(0x1c2)]));}[a47_0x17043a(0x189)](){const _0x39c2ad=a47_0x17043a;if(this[_0x39c2ad(0x195)]){if(this[_0x39c2ad(0x198)]&&this[_0x39c2ad(0x198)][_0x39c2ad(0x1ab)]>0x0){const _0x3c6f43=this[_0x39c2ad(0x1c3)][_0x39c2ad(0x1dd)]();_0x3c6f43===null||_0x3c6f43===void 0x0?void 0x0:_0x3c6f43[_0x39c2ad(0x1e3)](!![]),this[_0x39c2ad(0x198)][_0x39c2ad(0x1d6)](),this['_drawingCoordinates']['length']>=this[_0x39c2ad(0x1a4)]&&this[_0x39c2ad(0x186)](this[_0x39c2ad(0x198)]),this['_drawingCoordinates'][_0x39c2ad(0x1ab)]===0x0&&(this[_0x39c2ad(0x195)]=![]);}}}[a47_0x17043a(0x190)](_0x31dfb1,_0x3525b7){const _0x41c3d6=a47_0x17043a;var _0x1bd607,_0x584a5b,_0x38577e,_0x561f21;if(!this[_0x41c3d6(0x1e9)])return;const _0x39074e=this[_0x41c3d6(0x19c)][_0x41c3d6(0x1dd)]();_0x39074e===null||_0x39074e===void 0x0?void 0x0:_0x39074e[_0x41c3d6(0x1e3)](!![]),(_0x1bd607=this[_0x41c3d6(0x18e)])===null||_0x1bd607===void 0x0?void 0x0:_0x1bd607[_0x41c3d6(0x1ce)](new Point(_0x31dfb1)),(_0x38577e=(_0x584a5b=this[_0x41c3d6(0x1d1)])===null||_0x584a5b===void 0x0?void 0x0:_0x584a5b[_0x41c3d6(0x1b5)]())===null||_0x38577e===void 0x0?void 0x0:_0x38577e[_0x41c3d6(0x1b1)](_0x3525b7),(_0x561f21=this[_0x41c3d6(0x18e)])===null||_0x561f21===void 0x0?void 0x0:_0x561f21['setStyle'](this[_0x41c3d6(0x1d1)]),this['_tipFeature']&&(_0x39074e===null||_0x39074e===void 0x0?void 0x0:_0x39074e[_0x41c3d6(0x1c7)](this[_0x41c3d6(0x18e)]));}}function getDefaultStyleFunction(){const _0x26f5b6=createEditingStyle();return function(_0x4a3f02,_0x485f0c){const _0x27d2d8=a47_0x2324,_0x299f4e=_0x26f5b6[_0x4a3f02[_0x27d2d8(0x1a7)]()[_0x27d2d8(0x1a3)]()];if(_0x299f4e&&_0x27d2d8(0x1ae)==_0x4a3f02[_0x27d2d8(0x1a7)]()['getType']()){}};}
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 +1 @@
1
- const a48_0x46b34a=a48_0x426c;(function(_0x4669df,_0x19412d){const _0x236aff=a48_0x426c,_0x276029=_0x4669df();while(!![]){try{const _0x5c05a1=-parseInt(_0x236aff(0xdf))/0x1*(-parseInt(_0x236aff(0xdd))/0x2)+parseInt(_0x236aff(0xcb))/0x3+parseInt(_0x236aff(0xd4))/0x4*(parseInt(_0x236aff(0xd5))/0x5)+-parseInt(_0x236aff(0xd2))/0x6+parseInt(_0x236aff(0xe1))/0x7*(-parseInt(_0x236aff(0xd7))/0x8)+parseInt(_0x236aff(0xda))/0x9*(parseInt(_0x236aff(0xd0))/0xa)+-parseInt(_0x236aff(0xd3))/0xb;if(_0x5c05a1===_0x19412d)break;else _0x276029['push'](_0x276029['shift']());}catch(_0x3041ce){_0x276029['push'](_0x276029['shift']());}}}(a48_0x4e98,0x35122));export default class InteractionManager{constructor(_0x13a54f){const _0x1bf9c0=a48_0x426c;this[_0x1bf9c0(0xce)]=_0x13a54f,this[_0x1bf9c0(0xde)]=new Map();}[a48_0x46b34a(0xdc)](_0xa08ffc,_0xd2a32f){const _0x4e9be7=a48_0x46b34a;this[_0x4e9be7(0xde)][_0x4e9be7(0xd9)](_0xa08ffc)&&this[_0x4e9be7(0xcf)](_0xa08ffc),_0xd2a32f[_0x4e9be7(0xd6)](_0x4e9be7(0xe0),_0xa08ffc),this['interactions'][_0x4e9be7(0xd6)](_0xa08ffc,_0xd2a32f),this[_0x4e9be7(0xce)][_0x4e9be7(0xdc)](_0xd2a32f);}[a48_0x46b34a(0xcf)](_0x3a9316){const _0xb48706=a48_0x46b34a,_0x305201=this['interactions'][_0xb48706(0xcc)](_0x3a9316);_0x305201&&(this[_0xb48706(0xce)][_0xb48706(0xcf)](_0x305201),this[_0xb48706(0xde)][_0xb48706(0xdb)](_0x3a9316));}[a48_0x46b34a(0xd1)](){const _0x549480=a48_0x46b34a;this['interactions'][_0x549480(0xcd)](_0x5c4133=>{const _0x5348db=_0x549480;this[_0x5348db(0xce)][_0x5348db(0xcf)](_0x5c4133);}),this['interactions'][_0x549480(0xd8)]();}['getInteraction'](_0x39fe36){const _0x338b2b=a48_0x46b34a;return this['interactions'][_0x338b2b(0xcc)](_0x39fe36);}}function a48_0x426c(_0x1ce29d,_0x250717){const _0x4e989d=a48_0x4e98();return a48_0x426c=function(_0x426c3f,_0x5ab444){_0x426c3f=_0x426c3f-0xcb;let _0x3d7bc5=_0x4e989d[_0x426c3f];return _0x3d7bc5;},a48_0x426c(_0x1ce29d,_0x250717);}function a48_0x4e98(){const _0x1fd0d0=['233qqSjbE','name','916013TnDKbX','845502tCFtjk','get','forEach','map','removeInteraction','90pxuGBO','removeAllInteractions','1168308YbLRXe','4627348gfnDFk','127508ymSUsT','65GNNpoO','set','8OwsQWn','clear','has','109647WZhKQI','delete','addInteraction','1354YpbulT','interactions'];a48_0x4e98=function(){return _0x1fd0d0;};return a48_0x4e98();}
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 +1 @@
1
- var a49_0x144f3d=a49_0x24ce;function a49_0x24ce(_0x5e3289,_0x49cda0){var _0x16f022=a49_0x16f0();return a49_0x24ce=function(_0x24cead,_0x2ba0e4){_0x24cead=_0x24cead-0x143;var _0x1c14b5=_0x16f022[_0x24cead];return _0x1c14b5;},a49_0x24ce(_0x5e3289,_0x49cda0);}(function(_0x38ccc4,_0x5c989e){var _0x25f9c1=a49_0x24ce,_0x460c42=_0x38ccc4();while(!![]){try{var _0x2d4961=-parseInt(_0x25f9c1(0x163))/0x1*(-parseInt(_0x25f9c1(0x166))/0x2)+-parseInt(_0x25f9c1(0x14f))/0x3+parseInt(_0x25f9c1(0x157))/0x4+-parseInt(_0x25f9c1(0x152))/0x5+parseInt(_0x25f9c1(0x164))/0x6*(parseInt(_0x25f9c1(0x159))/0x7)+-parseInt(_0x25f9c1(0x151))/0x8+parseInt(_0x25f9c1(0x14b))/0x9;if(_0x2d4961===_0x5c989e)break;else _0x460c42['push'](_0x460c42['shift']());}catch(_0x48e33c){_0x460c42['push'](_0x460c42['shift']());}}}(a49_0x16f0,0xa03e1));import{Modify as a49_0x48b1e8,Select,Translate as a49_0x210374}from'ol/interaction';import a49_0x2ea9b3 from'ol/geom/GeometryCollection';import{MultiPoint}from'ol/geom';function a49_0x16f0(){var _0x2a0a73=['MultiPolygon','sourceFeatures','rgba(255,255,255,0.6)','modifyInteraction','rgba(0,255,255,0.6)','LineString','getType','7519797tXMXOj','translate','getFeatures','getId','2794833aBsyxY','removeInteraction','2813264fOeZVo','1125645cQjtUq','getMap','some','setMap','addInteraction','1266748BpqNXT','remove','3248140wzNBeB','rgba(25,25,125,0.8)','getGeometry','rgba(0,255,255,0.2)','push','add','map','isSelected','editFeatures','getCoordinates','84491MyiArH','12jJYPbM','forEach','2ROqdgp','Polygon'];a49_0x16f0=function(){return _0x2a0a73;};return a49_0x16f0();}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':a49_0x144f3d(0x15a)}),'stroke':new Stroke({'color':a49_0x144f3d(0x146),'width':0x2})}),'stroke':new Stroke({'color':a49_0x144f3d(0x148),'width':0x2}),'fill':new Fill({'color':a49_0x144f3d(0x15c)}),'geometry':_0xede1be=>{var _0x147d55=a49_0x144f3d,_0x246f79,_0x32de61,_0x1ae3fe,_0x10f0f2,_0x163788;let _0x1aa135=[];if(((_0x246f79=_0xede1be[_0x147d55(0x15b)]())===null||_0x246f79===void 0x0?void 0x0:_0x246f79[_0x147d55(0x14a)]())===_0x147d55(0x143))(_0x32de61=_0xede1be[_0x147d55(0x15b)]())===null||_0x32de61===void 0x0?void 0x0:_0x32de61[_0x147d55(0x162)]()[0x0][_0x147d55(0x165)](_0x5be653=>{var _0x35c56a=_0x147d55;_0x1aa135[_0x35c56a(0x15d)](_0x5be653);});else{if(((_0x1ae3fe=_0xede1be['getGeometry']())===null||_0x1ae3fe===void 0x0?void 0x0:_0x1ae3fe[_0x147d55(0x14a)]())===_0x147d55(0x144))_0xede1be[_0x147d55(0x15b)]()[_0x147d55(0x162)]()[0x0][_0x147d55(0x165)](_0x374d87=>{var _0x26bcb8=_0x147d55;_0x374d87[_0x26bcb8(0x165)](_0xf092a0=>{var _0x152608=_0x26bcb8;_0x1aa135[_0x152608(0x15d)](_0xf092a0);}),_0x1aa135[_0x26bcb8(0x15d)](_0x374d87);});else((_0x10f0f2=_0xede1be[_0x147d55(0x15b)]())===null||_0x10f0f2===void 0x0?void 0x0:_0x10f0f2[_0x147d55(0x14a)]())===_0x147d55(0x149)?_0x1aa135=_0xede1be[_0x147d55(0x15b)]()['getCoordinates']():_0x1aa135=[(_0x163788=_0xede1be[_0x147d55(0x15b)]())===null||_0x163788===void 0x0?void 0x0:_0x163788[_0x147d55(0x162)]()];}return new a49_0x2ea9b3([_0xede1be['getGeometry'](),new MultiPoint(_0x1aa135)]);}});export default class Modify extends Select{constructor(_0x3392e4){var _0x58127e=a49_0x144f3d;_0x3392e4=_0x3392e4||{};const _0x47fb21=Object['assign']({},_0x3392e4);_0x47fb21['style']=selectModifyStyle,_0x47fb21['filter']=_0x18158c=>{var _0x1e2914=a49_0x24ce;if(!_0x18158c[_0x1e2914(0x160)])return![];if(this[_0x1e2914(0x145)]==undefined||this[_0x1e2914(0x145)]['length']==0x0)return![];return this['sourceFeatures'][_0x1e2914(0x154)](_0x37c253=>_0x37c253[_0x1e2914(0x14e)]()===_0x18158c[_0x1e2914(0x14e)]());},super(_0x47fb21),this[_0x58127e(0x15f)]=null,this['sourceFeatures']=_0x3392e4[_0x58127e(0x161)],this['modifyInteraction']=new a49_0x48b1e8({'features':this[_0x58127e(0x14d)]()}),this['translate']=new a49_0x210374({'features':this[_0x58127e(0x14d)](),'condition':platformModifierKeyOnly}),this['getFeatures']()['on'](_0x58127e(0x15e),_0x29623f=>{var _0x62d62b=_0x58127e,_0x14efef,_0x20659c;this[_0x62d62b(0x15f)]=this[_0x62d62b(0x153)](),(_0x14efef=this[_0x62d62b(0x153)]())===null||_0x14efef===void 0x0?void 0x0:_0x14efef[_0x62d62b(0x156)](this['modifyInteraction']),(_0x20659c=this[_0x62d62b(0x153)]())===null||_0x20659c===void 0x0?void 0x0:_0x20659c[_0x62d62b(0x156)](this['translate']);}),this[_0x58127e(0x14d)]()['on'](_0x58127e(0x158),_0x41599d=>{var _0x4e5fde=_0x58127e,_0x5e51f9,_0x36b0a4;(_0x5e51f9=this['getMap']())===null||_0x5e51f9===void 0x0?void 0x0:_0x5e51f9['removeInteraction'](this[_0x4e5fde(0x147)]),(_0x36b0a4=this['getMap']())===null||_0x36b0a4===void 0x0?void 0x0:_0x36b0a4['removeInteraction'](this['translate']),this[_0x4e5fde(0x153)]()['refresh']();});}[a49_0x144f3d(0x155)](_0x5c7430){var _0x4f8ea3=a49_0x144f3d;super[_0x4f8ea3(0x155)](_0x5c7430),!_0x5c7430&&this[_0x4f8ea3(0x15f)]&&(this[_0x4f8ea3(0x15f)][_0x4f8ea3(0x150)](this[_0x4f8ea3(0x147)]),this[_0x4f8ea3(0x15f)][_0x4f8ea3(0x150)](this[_0x4f8ea3(0x14c)]));}}
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 +1 @@
1
- const a50_0x160ad1=a50_0x43bf;(function(_0x3471f3,_0x15470f){const _0x5a41e7=a50_0x43bf,_0x3131b1=_0x3471f3();while(!![]){try{const _0xffea9a=parseInt(_0x5a41e7(0x12d))/0x1+parseInt(_0x5a41e7(0x131))/0x2*(parseInt(_0x5a41e7(0x136))/0x3)+-parseInt(_0x5a41e7(0x115))/0x4+parseInt(_0x5a41e7(0x138))/0x5+parseInt(_0x5a41e7(0x11e))/0x6+parseInt(_0x5a41e7(0xfc))/0x7*(-parseInt(_0x5a41e7(0x10d))/0x8)+-parseInt(_0x5a41e7(0x116))/0x9*(-parseInt(_0x5a41e7(0x123))/0xa);if(_0xffea9a===_0x15470f)break;else _0x3131b1['push'](_0x3131b1['shift']());}catch(_0x16412f){_0x3131b1['push'](_0x3131b1['shift']());}}}(a50_0x136c,0xe2425));import a50_0x5a0997 from'./Draw';import a50_0x7e6ba9 from'ol/events/Event';import{bufferPixel,intersects}from'../utils/GeometryUtil';import{Point}from'ol/geom';import a50_0x62bca1 from'../feature/FeatureManager';import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';function a50_0x136c(){const _0xa64c99=['selectedLineFeatures','139968fxdBxP','coordinates','dispatchEvent','feature','getArray','getSelectedFeatures','selectStart','selectedPointFeatures','2117156LZmoGB','361467uvVbEQ','selectLayer','tipText','tempLayer','selectLayers','currentLayers','polygonStyle','MultiPolygon','2423406daKQXF','MultiPoint','allSelectedFeatures','canceLineStyle','layerId','250IngtlN','pixelDistance','ctrlKey','getVisible','getProjection','addTempLayer','addEventListener','lineStyle','includes','SELECTED','262699rDsUIr','pointFeatures','selectTempLayer','selectIndex','2vkYZwg','pointStyle','LineString','getGeometry','cancePointStyle','235533SPnDTc','SELECTSTART','458860FwCVpp','layerInfo','selected','layerType','drawEnd','message','forEach','getLineTempLayer','selectedPolygonFeatures','addFeatures','cancePolygonStyle','cut','map','getResolution','getPolygonTempLayer','Point','onInternal','url','未获取到几何','getView','fromType','getLayerById','getSource','154zaaJfD','MultiLineString','length','getMap','setSelectLayers','lineFeatures','allFeatures','setStyle','Polygon','loadFilter','push','seletctEditeFeature','polygonFeatures','getType','holdCtrl','copy'];a50_0x136c=function(){return _0xa64c99;};return a50_0x136c();}import{selectFeaturesByGeo}from'../utils/tasks';const SelectEventType={'SELECTSTART':a50_0x160ad1(0x113),'SELECTED':a50_0x160ad1(0x13a)};function a50_0x43bf(_0x338e04,_0x5586f8){const _0x136c02=a50_0x136c();return a50_0x43bf=function(_0x43bf8c,_0x301368){_0x43bf8c=_0x43bf8c-0xf6;let _0x40280c=_0x136c02[_0x43bf8c];return _0x40280c;},a50_0x43bf(_0x338e04,_0x5586f8);}export class SelectEvent extends a50_0x7e6ba9{constructor(_0x27f307,_0x141d77,_0x1ed74a,_0xcd841a,_0x2cc54a,_0x138550,_0x4b61c4,_0x133426,_0x4f1630){const _0x16ee2e=a50_0x160ad1;super(_0x27f307),this['selectGeom']=_0x1ed74a,this['coordinates']=_0xcd841a,this[_0x16ee2e(0x12e)]=_0x2cc54a,this[_0x16ee2e(0x101)]=_0x138550,this[_0x16ee2e(0x108)]=_0x4b61c4,this[_0x16ee2e(0x102)]=_0x133426,this['error']=_0x4f1630,this[_0x16ee2e(0x10a)]=_0x141d77;}}export default class Select extends a50_0x5a0997{constructor(_0x57d06b,_0x33a6ad){const _0xdec763=a50_0x160ad1;super(_0x57d06b,{'tipText':_0x33a6ad===null||_0x33a6ad===void 0x0?void 0x0:_0x33a6ad[_0xdec763(0x118)]}),this[_0xdec763(0x114)]=[],this[_0xdec763(0x10c)]=[],this[_0xdec763(0x140)]=[],this['allSelectedFeatures']=[];const _0x49d9c4=_0x33a6ad||{};this['addTempLayer']=_0x49d9c4[_0xdec763(0x128)]||![],this[_0xdec763(0x11b)]=_0x49d9c4[_0xdec763(0x11a)],this[_0xdec763(0x12f)]=_0x49d9c4['selectTempLayer']===undefined?!![]:_0x49d9c4[_0xdec763(0x12f)],this[_0xdec763(0x124)]=_0x49d9c4['pixelDistance']===undefined?0x5:_0x49d9c4[_0xdec763(0x124)],this[_0xdec763(0x132)]=_0x49d9c4[_0xdec763(0x132)]?getStyle(_0x49d9c4['pointStyle']):getSelectPointStyle(),this[_0xdec763(0x135)]=_0x49d9c4['cancePointStyle']?getStyle(_0x49d9c4[_0xdec763(0x135)]):getSelectCancePointStyle(),this[_0xdec763(0x12a)]=_0x49d9c4[_0xdec763(0x12a)]?getStyle(_0x49d9c4[_0xdec763(0x12a)]):getSelectLineStyle(),this[_0xdec763(0x121)]=_0x49d9c4[_0xdec763(0x121)]?getStyle(_0x49d9c4[_0xdec763(0x121)]):getSelectCancelLineStyle(),this['polygonStyle']=_0x49d9c4[_0xdec763(0x11c)]?getStyle(_0x49d9c4['polygonStyle']):getSelectPolygonStyle(),this['cancePolygonStyle']=_0x49d9c4[_0xdec763(0x142)]?getStyle(_0x49d9c4[_0xdec763(0x142)]):getSelectCancelPolygonStyle(),this[_0xdec763(0x10a)]=![];let _0x4ac1ff;this['on']=this[_0xdec763(0x148)],this['on'](_0xdec763(0x13c),async _0x51e1a2=>{const _0x4331c1=_0xdec763,_0x535d7a=this[_0x4331c1(0x10a)],_0x2eb9a4=this['getMap']();if(!_0x2eb9a4)return;try{let _0x1bdbcf=undefined;if(!_0x51e1a2['feature']&&_0x51e1a2['coordinates']&&_0x51e1a2[_0x4331c1(0x10e)][_0x4331c1(0xfe)]==0x1)_0x1bdbcf=bufferPixel(new Point(_0x51e1a2[_0x4331c1(0x10e)][0x0]),this[_0x4331c1(0x124)],_0x2eb9a4);else _0x51e1a2[_0x4331c1(0x110)]&&(_0x1bdbcf=_0x51e1a2[_0x4331c1(0x110)]['getGeometry']());if(!_0x1bdbcf)throw new Error(_0x4331c1(0xf7));this['dispatchEvent'](new SelectEvent(SelectEventType[_0x4331c1(0x137)],_0x535d7a,_0x1bdbcf)),this['selectedPointFeatures']=[],this[_0x4331c1(0x10c)]=[],this['selectedPolygonFeatures']=[],this[_0x4331c1(0x120)]=[],this['selectTempLayer']&&this['seletctEditeFeature'](_0x1bdbcf),_0x4ac1ff&&clearTimeout(_0x4ac1ff),_0x4ac1ff=setTimeout(async()=>{const _0x1f29b9=_0x4331c1;await this[_0x1f29b9(0x117)](_0x1bdbcf),this['dispatchEvent'](new SelectEvent(SelectEventType[_0x1f29b9(0x12c)],_0x535d7a,_0x1bdbcf,_0x51e1a2[_0x1f29b9(0x10e)],this[_0x1f29b9(0x114)],this[_0x1f29b9(0x10c)],this[_0x1f29b9(0x140)],this[_0x1f29b9(0x120)]));},0x46);}catch(_0x2aed1b){this[_0x4331c1(0x10f)](new SelectEvent(SelectEventType[_0x4331c1(0x12c)],_0x535d7a,undefined,_0x51e1a2[_0x4331c1(0x10e)],this[_0x4331c1(0x114)],this[_0x4331c1(0x10c)],this[_0x4331c1(0x140)],this[_0x4331c1(0x120)],_0x2aed1b[_0x4331c1(0x13d)]));}}),window[_0xdec763(0x129)]('keydown',_0x535d97=>{const _0x425f7d=_0xdec763;_0x535d97[_0x425f7d(0x125)]&&(this[_0x425f7d(0x10a)]=!![]);}),window[_0xdec763(0x129)]('keyup',_0x53658e=>{const _0xbfdf05=_0xdec763;this[_0xbfdf05(0x10a)]=![];});}[a50_0x160ad1(0x100)](_0x408c34){const _0x28fada=a50_0x160ad1;this[_0x28fada(0x11b)]=_0x408c34;}async[a50_0x160ad1(0x117)](_0x5f3806){const _0x20050e=a50_0x160ad1;var _0xa3acd7;const _0x1d78f0=this[_0x20050e(0xff)]();let _0x2f1f9e=[];if(this[_0x20050e(0x11b)]&&this[_0x20050e(0x11b)][_0x20050e(0xfe)]>0x0)_0x2f1f9e=this[_0x20050e(0x11b)];else{let _0x2858c3=_0x1d78f0['getLayers']()[_0x20050e(0x111)]();_0x2858c3=_0x2858c3['filter'](_0x283066=>{const _0x3a3b68=_0x20050e,_0x197113=_0x283066[_0x3a3b68(0x139)];if(!_0x197113)return![];return _0x283066[_0x3a3b68(0x126)]()==!![]&&_0x197113['selectIndex']!=undefined&&_0x197113[_0x3a3b68(0x130)]!='';}),_0x2f1f9e=_0x2858c3[_0x20050e(0x144)](_0x557a7a=>{const _0x44ffab=_0x20050e;return _0x557a7a[_0x44ffab(0x139)];});}if(!_0x2f1f9e||_0x2f1f9e[_0x20050e(0xfe)]==0x0)return;const _0x511fb8=_0x1d78f0[_0x20050e(0xf8)]()[_0x20050e(0x127)]()['getCode'](),_0x11b92f=_0x1d78f0['getView']()[_0x20050e(0x145)]();for(let _0x54ed85=0x0,_0x1ea757=_0x2f1f9e[_0x20050e(0xfe)];_0x54ed85<_0x1ea757;_0x54ed85++){const _0xbc50be=_0x2f1f9e[_0x54ed85],_0x1ed70d=_0x1d78f0[_0x20050e(0xfa)](_0xbc50be['id']);if(!_0x1ed70d||_0x1ed70d[_0x20050e(0x126)]()==![]||!_0xbc50be||!_0xbc50be['url']||!_0xbc50be['selectIndex'])continue;let _0x3d1694=await selectFeaturesByGeo(_0x5f3806,_0x511fb8,_0xbc50be[_0x20050e(0xf6)],_0xbc50be[_0x20050e(0x130)],_0xbc50be[_0x20050e(0x13b)],_0xbc50be[_0x20050e(0x105)],_0x11b92f);if(_0x3d1694[_0x20050e(0xfe)]>0x0){this[_0x20050e(0x120)][_0x20050e(0x106)](..._0x3d1694);let _0x404f05=_0x1d78f0[_0x20050e(0x146)](),_0x2349db=this[_0x20050e(0x11c)];switch((_0xa3acd7=_0x3d1694[0x0][_0x20050e(0x134)]())===null||_0xa3acd7===void 0x0?void 0x0:_0xa3acd7[_0x20050e(0x109)]()){case _0x20050e(0x147):case'MultiPoint':this['selectedPointFeatures'][_0x20050e(0x106)](..._0x3d1694),_0x404f05=_0x1d78f0['getPointTempLayer'](),_0x2349db=this[_0x20050e(0x132)];break;case _0x20050e(0x133):case _0x20050e(0xfd):this[_0x20050e(0x10c)][_0x20050e(0x106)](..._0x3d1694),_0x404f05=_0x1d78f0[_0x20050e(0x13f)](),_0x2349db=this[_0x20050e(0x12a)];break;case _0x20050e(0x104):case _0x20050e(0x11d):this[_0x20050e(0x140)][_0x20050e(0x106)](..._0x3d1694),_0x404f05=_0x1d78f0[_0x20050e(0x146)](),_0x2349db=this['polygonStyle'];break;default:break;}const _0x389eeb=_0x404f05[_0x20050e(0xfb)]();_0x389eeb&&(_0x3d1694[_0x20050e(0x13e)](_0xa651d=>{const _0x509224=_0x20050e;_0xa651d[_0x509224(0x122)]=_0xbc50be['id'],_0xa651d[_0x509224(0x119)]=_0x404f05,_0xa651d[_0x509224(0x103)](_0x2349db);}),this[_0x20050e(0x128)]&&_0x389eeb[_0x20050e(0x141)](_0x3d1694));}}}[a50_0x160ad1(0x107)](_0x6a64e9){const _0x1decb7=a50_0x160ad1,_0x59a449=new a50_0x62bca1(this['getMap']()),_0xf0a438=_0x59a449[_0x1decb7(0x112)]();if(!_0xf0a438||_0xf0a438[_0x1decb7(0xfe)]===0x0)return[];const _0x31465b=[_0x1decb7(0x10b),_0x1decb7(0x143),'draw','import','union'],_0x532648=[];for(const _0x2e410a of _0xf0a438){if(!_0x2e410a||!_0x2e410a['fromType']||!_0x31465b[_0x1decb7(0x12b)](_0x2e410a[_0x1decb7(0xf9)]))continue;const _0x393bb5=_0x2e410a['getGeometry']();if(!_0x393bb5)continue;if(!intersects(_0x393bb5,_0x6a64e9))continue;let _0x7edf14=this['polygonStyle'];this[_0x1decb7(0x120)][_0x1decb7(0x106)](_0x2e410a);switch(_0x393bb5['getType']()){case _0x1decb7(0x147):case _0x1decb7(0x11f):this[_0x1decb7(0x114)][_0x1decb7(0x106)](_0x2e410a),_0x7edf14=this[_0x1decb7(0x132)];break;case _0x1decb7(0x133):case'MultiLineString':this[_0x1decb7(0x10c)][_0x1decb7(0x106)](_0x2e410a),_0x7edf14=this['lineStyle'];break;case _0x1decb7(0x104):case _0x1decb7(0x11d):this[_0x1decb7(0x140)][_0x1decb7(0x106)](_0x2e410a),_0x7edf14=this['polygonStyle'];break;default:break;}_0x2e410a['setStyle'](_0x7edf14);}return _0x532648;}}
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 +1 @@
1
- const a51_0xfabc93=a51_0xecc1;function a51_0xecc1(_0x45b4e1,_0x28d40d){const _0x1a2641=a51_0x1a26();return a51_0xecc1=function(_0xecc119,_0x3949be){_0xecc119=_0xecc119-0x133;let _0x4abdb2=_0x1a2641[_0xecc119];return _0x4abdb2;},a51_0xecc1(_0x45b4e1,_0x28d40d);}(function(_0x54a89c,_0x2d33b9){const _0x10923c=a51_0xecc1,_0x40cfa6=_0x54a89c();while(!![]){try{const _0x11359b=-parseInt(_0x10923c(0x150))/0x1*(-parseInt(_0x10923c(0x145))/0x2)+parseInt(_0x10923c(0x152))/0x3+-parseInt(_0x10923c(0x13b))/0x4*(-parseInt(_0x10923c(0x14d))/0x5)+-parseInt(_0x10923c(0x149))/0x6+parseInt(_0x10923c(0x13a))/0x7+parseInt(_0x10923c(0x143))/0x8+-parseInt(_0x10923c(0x155))/0x9;if(_0x11359b===_0x2d33b9)break;else _0x40cfa6['push'](_0x40cfa6['shift']());}catch(_0x2a1040){_0x40cfa6['push'](_0x40cfa6['shift']());}}}(a51_0x1a26,0xc33f7));import a51_0x3fe464 from'./Draw';import a51_0x583b27 from'ol/events/Event';import{LineString,Polygon,MultiPolygon,MultiLineString}from'ol/geom';function a51_0x1a26(){const _0x5ed111=['SPLITSTART','clone','790015BaHRFU','getGeometry','features','8929CVEsTO','dispatchEvent','4239144UqEema','splitFeatures','sourceFeatures','27197847IYhJbX','length','addTempLayer','fromType','rgba(255,\x200,\x200,\x201)','未获取到分割要素','feature','cut','addFeature','未获取到绘制的分割线','6994197QHoldr','8MmRyZa','onInternal','splitStart','SPLITED','setGeometry','tipText','setFeatures','getSource','9117248VwUspl','polyline','114TbIWox','push','drawEnd','getMap','3330696BrqHDc','tempLayer'];a51_0x1a26=function(){return _0x5ed111;};return a51_0x1a26();}import{jstlSplit,splitLineByLine}from'../utils/GeometryUtil';const SplitEventType={'SPLITSTART':a51_0xfabc93(0x13d),'SPLITED':'splited'};export class SplitEvent extends a51_0x583b27{constructor(_0x17c8e9,_0x3aaf7f,_0x3f761e,_0x10ad3d){const _0x5eacef=a51_0xfabc93;super(_0x17c8e9),this['splitLine']=_0x3aaf7f,this[_0x5eacef(0x14f)]=_0x3f761e,this['error']=_0x10ad3d;}}export default class Split extends a51_0x3fe464{constructor(_0x331a49,_0xc1881b){const _0x2e0a1a=a51_0xfabc93,_0x32f53a=(_0xc1881b===null||_0xc1881b===void 0x0?void 0x0:_0xc1881b['splitLineStyle'])||{'outlineColor':_0x2e0a1a(0x134),'outlineWidth':0x2};super(_0x2e0a1a(0x144),{'tipText':_0xc1881b===null||_0xc1881b===void 0x0?void 0x0:_0xc1881b[_0x2e0a1a(0x140)],'style':_0x32f53a}),this[_0x2e0a1a(0x154)]=_0x331a49;const _0x2b217e=_0xc1881b||{};this[_0x2e0a1a(0x157)]=_0x2b217e[_0x2e0a1a(0x157)]||![],this['on']=this[_0x2e0a1a(0x13c)],this['on'](_0x2e0a1a(0x147),async _0x273dd4=>{const _0x15c230=_0x2e0a1a;var _0x35d315;const _0x51e1d2=this[_0x15c230(0x148)]();let _0x219bf5=(_0x35d315=_0x273dd4[_0x15c230(0x136)])===null||_0x35d315===void 0x0?void 0x0:_0x35d315[_0x15c230(0x14e)]();!_0x219bf5&&this['dispatchEvent'](new SplitEvent(SplitEventType['SPLITED'],undefined,undefined,_0x15c230(0x139)));let _0x28f25d=_0x219bf5;!_0x51e1d2&&this[_0x15c230(0x151)](new SplitEvent(SplitEventType[_0x15c230(0x13e)],_0x28f25d,undefined,'未获取到地图对象'));(!this[_0x15c230(0x154)]||this[_0x15c230(0x154)][_0x15c230(0x156)]===0x0)&&this[_0x15c230(0x151)](new SplitEvent(SplitEventType[_0x15c230(0x13e)],_0x28f25d,undefined,_0x15c230(0x135)));try{this['dispatchEvent'](new SplitEvent(SplitEventType[_0x15c230(0x14b)],_0x28f25d));const _0x5dcd7=this[_0x15c230(0x153)](_0x28f25d);this[_0x15c230(0x151)](new SplitEvent(SplitEventType['SPLITED'],_0x28f25d,_0x5dcd7));}catch(_0x537124){this[_0x15c230(0x151)](new SplitEvent(SplitEventType[_0x15c230(0x13e)],_0x28f25d,undefined,_0x537124['message']));}});}[a51_0xfabc93(0x153)](_0x254aa2){const _0x2ba784=a51_0xfabc93;var _0xfec755;const _0x2b64e4=[],_0x1dc874=(_0xfec755=this[_0x2ba784(0x154)][0x0]['tempLayer'])===null||_0xfec755===void 0x0?void 0x0:_0xfec755[_0x2ba784(0x142)]();for(let _0x3f147e=0x0;_0x3f147e<this[_0x2ba784(0x154)]['length'];_0x3f147e++){const _0x14c1b3=this['sourceFeatures'][_0x3f147e],_0x1ba9be=_0x14c1b3[_0x2ba784(0x14e)]();let _0x61449c=[];if(_0x1ba9be instanceof Polygon||_0x1ba9be instanceof MultiPolygon)_0x61449c=jstlSplit(_0x1ba9be,_0x254aa2);else(_0x1ba9be instanceof LineString||_0x1ba9be instanceof MultiLineString)&&(_0x61449c=splitLineByLine(_0x1ba9be,_0x254aa2));if(_0x61449c[_0x2ba784(0x156)]>0x1){_0x14c1b3[_0x2ba784(0x13f)](_0x61449c[0x0]),_0x2b64e4[_0x2ba784(0x146)](_0x14c1b3);for(let _0x13c073=0x1;_0x13c073<_0x61449c[_0x2ba784(0x156)];_0x13c073++){const _0x5a6ea1=_0x14c1b3[_0x2ba784(0x14c)]();_0x5a6ea1['layerId']=undefined,_0x5a6ea1[_0x2ba784(0x133)]=_0x2ba784(0x137),_0x5a6ea1[_0x2ba784(0x14a)]=_0x14c1b3['tempLayer'],_0x5a6ea1[_0x2ba784(0x13f)](_0x61449c[_0x13c073]),this[_0x2ba784(0x157)]&&(_0x1dc874===null||_0x1dc874===void 0x0?void 0x0:_0x1dc874[_0x2ba784(0x138)](_0x5a6ea1)),_0x2b64e4[_0x2ba784(0x146)](_0x5a6ea1);}}}return _0x2b64e4;}[a51_0xfabc93(0x141)](_0x193510){const _0x3016e5=a51_0xfabc93;this[_0x3016e5(0x154)]=_0x193510;}}
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 +1 @@
1
- function a52_0x1c86(){const _0x42414b=['url','76370zPbJAT','EPSG:','projection','spatialReference','723600UeIalC','mapIndex','show:','xmin','stringify','loadFilter','anonymous','400770SmPWaG','251695cNEdhN','wkid','layerDefs','1715796VkRpdW','fullExtent','119917aGpewi','layerInfo','selectIndex','ymin','setFilter','ymax','xmax','434938BlAgOG','136vpMVJJ','opacity','initialExtent'];a52_0x1c86=function(){return _0x42414b;};return a52_0x1c86();}const a52_0x247d28=a52_0x1711;(function(_0x4029fc,_0x12df3f){const _0x2a03ad=a52_0x1711,_0x10e497=_0x4029fc();while(!![]){try{const _0x4f9ca5=-parseInt(_0x2a03ad(0x1fc))/0x1+parseInt(_0x2a03ad(0x1f7))/0x2+-parseInt(_0x2a03ad(0x1ea))/0x3+parseInt(_0x2a03ad(0x200))/0x4+-parseInt(_0x2a03ad(0x1eb))/0x5+-parseInt(_0x2a03ad(0x1ee))/0x6+-parseInt(_0x2a03ad(0x1f0))/0x7*(-parseInt(_0x2a03ad(0x1f8))/0x8);if(_0x4f9ca5===_0x12df3f)break;else _0x10e497['push'](_0x10e497['shift']());}catch(_0x3d5e52){_0x10e497['push'](_0x10e497['shift']());}}}(a52_0x1c86,0x22fe3));function a52_0x1711(_0x510574,_0x3b67f9){const _0x1c86d2=a52_0x1c86();return a52_0x1711=function(_0x17110c,_0x4a9922){_0x17110c=_0x17110c-0x1e7;let _0x30eef5=_0x1c86d2[_0x17110c];return _0x30eef5;},a52_0x1711(_0x510574,_0x3b67f9);}import a52_0x549786 from'ol/source/ImageArcGISRest';import{Image as a52_0x57795f}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';export default class ArcgisDynamicLayer extends a52_0x57795f{constructor(_0x13acf8,_0x482340){const _0x41683e=a52_0x1711;var _0x53637d;let _0x1304c9={'LAYERS':_0x41683e(0x202)+((_0x53637d=_0x13acf8['sublayers'])===null||_0x53637d===void 0x0?void 0x0:_0x53637d['join'](','))};if(_0x13acf8[_0x41683e(0x1e8)]&&_0x13acf8[_0x41683e(0x1f2)]){const _0x18fde5={};_0x18fde5[_0x13acf8[_0x41683e(0x1f2)]]=_0x13acf8[_0x41683e(0x1e8)],_0x1304c9[_0x41683e(0x1ed)]=JSON['stringify'](_0x18fde5);}const _0xee66d3=[_0x482340[_0x41683e(0x1fa)][_0x41683e(0x203)],_0x482340[_0x41683e(0x1fa)][_0x41683e(0x1f3)],_0x482340[_0x41683e(0x1fa)][_0x41683e(0x1f6)],_0x482340[_0x41683e(0x1fa)][_0x41683e(0x1f5)]],_0x50e42a=[_0x482340[_0x41683e(0x1ef)][_0x41683e(0x203)],_0x482340[_0x41683e(0x1ef)][_0x41683e(0x1f3)],_0x482340[_0x41683e(0x1ef)][_0x41683e(0x1f6)],_0x482340[_0x41683e(0x1ef)][_0x41683e(0x1f5)]];let _0x499248;_0x482340[_0x41683e(0x1ff)]['wkid']?_0x499248=registerProj(_0x41683e(0x1fd)+_0x482340[_0x41683e(0x1ff)][_0x41683e(0x1ec)],_0x50e42a):_0x499248=registerProj(_0x482340[_0x41683e(0x1ff)]['wkt'],_0x50e42a),super({'opacity':_0x13acf8[_0x41683e(0x1f9)],'zIndex':_0x13acf8[_0x41683e(0x201)],'source':new a52_0x549786({'crossOrigin':_0x41683e(0x1e9),'projection':_0x499248,'ratio':0x1,'url':_0x13acf8[_0x41683e(0x1fb)],'params':_0x1304c9})}),this['id']=_0x13acf8['id'],this[_0x41683e(0x1fa)]=_0xee66d3,this[_0x41683e(0x1fe)]=_0x499248,this[_0x41683e(0x1f1)]=_0x13acf8;}[a52_0x247d28(0x1f4)](_0x46ee89){const _0x4c4d3d=a52_0x247d28;var _0x533076;const _0x52a99a={};this[_0x4c4d3d(0x1f1)][_0x4c4d3d(0x1f2)]&&(_0x52a99a[this[_0x4c4d3d(0x1f1)][_0x4c4d3d(0x1f2)]]=_0x46ee89),(_0x533076=this['getSource']())===null||_0x533076===void 0x0?void 0x0:_0x533076['updateParams']({'layerDefs':JSON[_0x4c4d3d(0x1e7)](_0x46ee89)});}}
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 +1 @@
1
- const a53_0x23eaac=a53_0x4d57;(function(_0x5134db,_0x37f34c){const _0x5d9fe7=a53_0x4d57,_0x160905=_0x5134db();while(!![]){try{const _0x554255=-parseInt(_0x5d9fe7(0x20f))/0x1*(parseInt(_0x5d9fe7(0x1d7))/0x2)+parseInt(_0x5d9fe7(0x1f6))/0x3+-parseInt(_0x5d9fe7(0x208))/0x4*(-parseInt(_0x5d9fe7(0x200))/0x5)+parseInt(_0x5d9fe7(0x1e2))/0x6*(-parseInt(_0x5d9fe7(0x204))/0x7)+-parseInt(_0x5d9fe7(0x209))/0x8+parseInt(_0x5d9fe7(0x203))/0x9+-parseInt(_0x5d9fe7(0x1eb))/0xa*(-parseInt(_0x5d9fe7(0x1f0))/0xb);if(_0x554255===_0x37f34c)break;else _0x160905['push'](_0x160905['shift']());}catch(_0x127860){_0x160905['push'](_0x160905['shift']());}}}(a53_0x156a,0x8393d));function a53_0x4d57(_0x5b03fa,_0x427ca7){const _0x156a3c=a53_0x156a();return a53_0x4d57=function(_0x4d573e,_0xced61b){_0x4d573e=_0x4d573e-0x1d4;let _0x5e329d=_0x156a3c[_0x4d573e];return _0x5e329d;},a53_0x4d57(_0x5b03fa,_0x427ca7);}import a53_0x521b56 from'ol/format/EsriJSON';function a53_0x156a(){const _0x58de2d=[',\x22ymin\x22:',',\x22spatialReference\x22:{\x22wkid\x22:','renderer','wkt','simple','then','loadFilter','3867025LvWYug',',\x22ymax\x22:','setFilter','8292384UZlcng','371Otvoxl','where=','mapIndex','wkid','4dTxLkW','6496640QfCXSt','drawingInfo','length','setLayers','&outSR=','readFeatures','1tkuXob','returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry=','find','uniqueValue','1829298IfoxUl','log','push','{\x22xmin\x22:','createArcGISFeatureLayer','error','1=1','xmin','addFeatures','ymin','f\x20=\x20json\x20&\x20','47238sRBqmL','initialExtent','value','xmax','showIndex','uniqueValueInfos','EPSG:','fullExtent','field1','10FICcVo','forEach','split','setStyle','projection','10744547SMezFE','ymax','get','stringify','type','spatialReference','34143TKsaaF','layerInfo','symbol'];a53_0x156a=function(){return _0x58de2d;};return a53_0x156a();}import a53_0x416bce from'ol/source/Vector';import{Vector as a53_0x26cef7}from'ol/layer';import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';import{tile as a53_0x1f3edf}from'ol/loadingstrategy';import a53_0x2ccec9 from'ol/layer/Group';import{registerProj}from'../utils/RegisterProjUtil';import{transformedEsriStyle}from'../utils/StyleUtil';import a53_0xcb738d from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';export default class ArcgisFeatureLayer extends a53_0x2ccec9{constructor(_0x16055a,_0x265381,_0x93db5e){const _0x26b11e=a53_0x4d57,_0x1a75d3=[_0x265381[_0x26b11e(0x1e3)]['xmin'],_0x265381[_0x26b11e(0x1e3)][_0x26b11e(0x1e0)],_0x265381[_0x26b11e(0x1e3)][_0x26b11e(0x1e5)],_0x265381[_0x26b11e(0x1e3)][_0x26b11e(0x1f1)]],_0x153345=[_0x265381['fullExtent'][_0x26b11e(0x1de)],_0x265381['fullExtent'][_0x26b11e(0x1e0)],_0x265381[_0x26b11e(0x1e9)][_0x26b11e(0x1e5)],_0x265381[_0x26b11e(0x1e9)][_0x26b11e(0x1f1)]];let _0x434e8f;_0x265381[_0x26b11e(0x1f5)][_0x26b11e(0x207)]?_0x434e8f=registerProj(_0x26b11e(0x1e8)+_0x265381[_0x26b11e(0x1f5)][_0x26b11e(0x207)],_0x153345):_0x434e8f=registerProj(_0x265381[_0x26b11e(0x1f5)][_0x26b11e(0x1fc)],_0x153345);let _0x1b1cd2=[];super({'zIndex':_0x16055a[_0x26b11e(0x206)]});for(let _0x50d15a of _0x93db5e){let _0x4c2ca7=this[_0x26b11e(0x1db)](_0x16055a,_0x50d15a);_0x1b1cd2[_0x26b11e(0x1d9)](_0x4c2ca7);}this[_0x26b11e(0x20c)](new a53_0xcb738d(_0x1b1cd2)),this['id']=_0x16055a['id'],this[_0x26b11e(0x1e3)]=_0x1a75d3,this[_0x26b11e(0x1ef)]=_0x434e8f,this[_0x26b11e(0x1f7)]=_0x16055a;}['createArcGISFeatureLayer'](_0x4462a4,_0x4e3122){const _0x35e991=a53_0x4d57;var _0x199c10=new a53_0x521b56();let _0x1a45f9=new a53_0x416bce({'loader':function(_0x1fe86f,_0x555130,_0x5a719b){const _0x3b2faf=a53_0x4d57;let _0x69600c=_0x3b2faf(0x1dd);_0x4462a4[_0x3b2faf(0x1ff)]&&(_0x69600c=typeof _0x4462a4[_0x3b2faf(0x1ff)]==='string'?_0x4462a4[_0x3b2faf(0x1ff)]:JSON[_0x3b2faf(0x1f3)](_0x4462a4[_0x3b2faf(0x1ff)]));let _0x5bb6ae=_0x5a719b['getCode'](),_0x3c81bd=_0x5bb6ae[_0x3b2faf(0x1ed)](':')[0x1];var _0x18eaa2=appendPath(_0x4e3122['url'],'/query');_0x18eaa2=appendParam(_0x18eaa2,_0x3b2faf(0x1e1)+_0x3b2faf(0x205)+encodeURIComponent(_0x69600c)+_0x3b2faf(0x1d4)+encodeURIComponent(_0x3b2faf(0x1da)+_0x1fe86f[0x0]+_0x3b2faf(0x1f9)+_0x1fe86f[0x1]+',\x22xmax\x22:'+_0x1fe86f[0x2]+_0x3b2faf(0x201)+_0x1fe86f[0x3]+_0x3b2faf(0x1fa)+_0x3c81bd+'}}')+'&geometryType=esriGeometryEnvelope&inSR='+_0x3c81bd+'&outFields=*'+_0x3b2faf(0x20d)+_0x3c81bd),jsonp(_0x18eaa2)[_0x3b2faf(0x1fe)](_0x5b06e9=>{const _0xe73f71=_0x3b2faf;if(_0x5b06e9[_0xe73f71(0x1dc)])console[_0xe73f71(0x1d8)](_0x5b06e9);else{var _0x14ae4f=_0x199c10[_0xe73f71(0x20e)](_0x5b06e9,{'featureProjection':_0x5a719b});_0x14ae4f[_0xe73f71(0x20b)]>0x0&&(_0x4e3122['drawingInfo'][_0xe73f71(0x1fb)]['type']==_0xe73f71(0x1d6)&&_0x14ae4f[_0xe73f71(0x1ec)](function(_0x2e2bb4){const _0x12018a=_0xe73f71;var _0x486644=_0x2e2bb4[_0x12018a(0x1f2)](_0x4e3122[_0x12018a(0x20a)][_0x12018a(0x1fb)][_0x12018a(0x1ea)]);const _0x36ea2e=_0x4e3122[_0x12018a(0x20a)]['renderer'][_0x12018a(0x1e7)][_0x12018a(0x1d5)](_0x2a0604=>_0x2a0604[_0x12018a(0x1e4)]==_0x486644);let _0x4e9045;_0x36ea2e?_0x4e9045=transformedEsriStyle(_0x36ea2e[_0x12018a(0x1f8)]):_0x4e9045=transformedEsriStyle(_0x4e3122[_0x12018a(0x20a)][_0x12018a(0x1fb)]['defaultSymbol']),_0x2e2bb4['setStyle'](_0x4e9045);}),_0x1a45f9[_0xe73f71(0x1df)](_0x14ae4f));}});},'strategy':a53_0x1f3edf(createXYZ({'tileSize':0x200}))}),_0x10e933=new a53_0x26cef7({'source':_0x1a45f9,'zIndex':_0x4462a4[_0x35e991(0x1e6)]});if(_0x4e3122[_0x35e991(0x20a)]['renderer'][_0x35e991(0x1f4)]==_0x35e991(0x1fd)&&_0x4e3122[_0x35e991(0x20a)][_0x35e991(0x1fb)][_0x35e991(0x1f8)]){let _0x2ab213=transformedEsriStyle(_0x4e3122[_0x35e991(0x20a)][_0x35e991(0x1fb)]['symbol']);_0x10e933[_0x35e991(0x1ee)](_0x2ab213);}return _0x10e933;}[a53_0x23eaac(0x202)](_0x530049){const _0x358193=a53_0x23eaac;this[_0x358193(0x1f7)]['loadFilter']=_0x530049;}}
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 +1 @@
1
- (function(_0x58509,_0x2582bd){const _0x5a76d3=a54_0x5421,_0x17fc58=_0x58509();while(!![]){try{const _0x1def67=-parseInt(_0x5a76d3(0x186))/0x1+-parseInt(_0x5a76d3(0x199))/0x2+-parseInt(_0x5a76d3(0x182))/0x3+-parseInt(_0x5a76d3(0x19a))/0x4+parseInt(_0x5a76d3(0x189))/0x5+-parseInt(_0x5a76d3(0x187))/0x6*(-parseInt(_0x5a76d3(0x194))/0x7)+parseInt(_0x5a76d3(0x18d))/0x8*(parseInt(_0x5a76d3(0x19c))/0x9);if(_0x1def67===_0x2582bd)break;else _0x17fc58['push'](_0x17fc58['shift']());}catch(_0x585881){_0x17fc58['push'](_0x17fc58['shift']());}}}(a54_0x2870,0xa9ab2));import a54_0x1aeb0b from'ol/layer/Tile';import a54_0xe1fa4a from'ol/source/XYZ';import a54_0x9507fa from'ol/tilegrid/TileGrid';function a54_0x5421(_0x32e6c4,_0x13fdae){const _0x2870a9=a54_0x2870();return a54_0x5421=function(_0x5421b8,_0x5e1fd8){_0x5421b8=_0x5421b8-0x180;let _0x5a1171=_0x2870a9[_0x5421b8];return _0x5a1171;},a54_0x5421(_0x32e6c4,_0x13fdae);}import{registerProj}from'../utils/RegisterProjUtil';import{appendPath}from'../utils/UrlUtil';export default class ArcgisTileLayer extends a54_0x1aeb0b{constructor(_0x551ecd,_0x19fe4c){const _0x6f43d0=a54_0x5421,_0x2324a8=_0x551ecd['url']?_0x551ecd[_0x6f43d0(0x185)]:'',_0x29e8a0=appendPath(_0x2324a8,'/tile/{z}/{y}/{x}'),_0x23c218=[_0x19fe4c[_0x6f43d0(0x196)][_0x6f43d0(0x192)],_0x19fe4c['initialExtent'][_0x6f43d0(0x190)],_0x19fe4c['initialExtent'][_0x6f43d0(0x19b)],_0x19fe4c[_0x6f43d0(0x196)][_0x6f43d0(0x198)]],_0x37b96c=[_0x19fe4c[_0x6f43d0(0x18e)][_0x6f43d0(0x192)],_0x19fe4c[_0x6f43d0(0x18e)]['ymin'],_0x19fe4c[_0x6f43d0(0x18e)][_0x6f43d0(0x19b)],_0x19fe4c['fullExtent']['ymax']];let _0x411456;_0x19fe4c[_0x6f43d0(0x180)][_0x6f43d0(0x18b)]?_0x411456=registerProj(_0x6f43d0(0x188)+_0x19fe4c[_0x6f43d0(0x180)]['wkid'],_0x37b96c):_0x411456=registerProj(_0x19fe4c[_0x6f43d0(0x180)][_0x6f43d0(0x191)],_0x37b96c);let _0x309881=[];for(let _0x4390d3=0x0,_0x2507ec=_0x19fe4c[_0x6f43d0(0x183)][_0x6f43d0(0x181)]['length'];_0x4390d3<_0x2507ec;_0x4390d3++){_0x309881[_0x6f43d0(0x18f)](_0x19fe4c['tileInfo'][_0x6f43d0(0x181)][_0x4390d3]['resolution']);}super({'opacity':_0x551ecd[_0x6f43d0(0x184)],'zIndex':_0x551ecd[_0x6f43d0(0x197)],'maxResolution':_0x309881[0x0]*0x2,'source':new a54_0xe1fa4a({'url':_0x29e8a0,'projection':_0x411456,'crossOrigin':_0x6f43d0(0x19d),'tileGrid':new a54_0x9507fa({'extent':_0x37b96c,'origin':[_0x19fe4c[_0x6f43d0(0x183)]['origin']['x'],_0x19fe4c[_0x6f43d0(0x183)][_0x6f43d0(0x18a)]['y']],'resolutions':_0x309881,'tileSize':[_0x19fe4c['tileInfo'][_0x6f43d0(0x18c)],_0x19fe4c['tileInfo']['cols']]})})}),this['id']=_0x551ecd['id'],this[_0x6f43d0(0x196)]=_0x23c218,this[_0x6f43d0(0x195)]=_0x411456,this[_0x6f43d0(0x193)]=_0x551ecd;}}function a54_0x2870(){const _0x2308f8=['url','676583VyYhXa','1392978uLIQoL','EPSG:','5859215cqRDGZ','origin','wkid','rows','4776nQnzSQ','fullExtent','push','ymin','wkt','xmin','layerInfo','21mzgNxR','projection','initialExtent','mapIndex','ymax','1099502kyCfwp','347228oRdwhn','xmax','6777OpouVo','anonymous','spatialReference','lods','929310TwjabI','tileInfo','opacity'];a54_0x2870=function(){return _0x2308f8;};return a54_0x2870();}
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;}}