ym-gis-2d 1.0.41 → 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 (75) hide show
  1. package/capabilities/index.js +1 -1
  2. package/controls/ControlManager.js +1 -1
  3. package/controls/LegendControl.js +1 -1
  4. package/controls/MousePositionControl.js +1 -1
  5. package/controls/SwipeLayerControl.js +1 -1
  6. package/conver/kml/geoJSONToKml.js +1 -1
  7. package/conver/kml/index.js +1 -1
  8. package/conver/kml/kmlToGeoJSON.js +1 -1
  9. package/entity/Feature.js +1 -1
  10. package/entity/GeometryType.js +1 -1
  11. package/entity/measure/AreaMeasureUnits.js +1 -1
  12. package/feature/FeatureManager.js +1 -1
  13. package/index.js +1 -1
  14. package/interaction/AreaMeasure.js +1 -1
  15. package/interaction/Difference.js +1 -1
  16. package/interaction/Draw.js +1 -1
  17. package/interaction/InteractionManager.js +1 -1
  18. package/interaction/Modify.js +1 -1
  19. package/interaction/Select.js +1 -1
  20. package/interaction/Split.js +1 -1
  21. package/layers/ArcgisDynamicLayer.js +1 -1
  22. package/layers/ArcgisFeatureLayer.js +1 -1
  23. package/layers/ArcgisTileLayer.js +1 -1
  24. package/layers/ArcgisWMSLayer.js +1 -1
  25. package/layers/ArcgisWMTSLayer.js +1 -1
  26. package/layers/GeoserverVectorTile.js +1 -1
  27. package/layers/GeoserverWFSLayer.js +1 -1
  28. package/layers/GeoserverWMSLayer.js +1 -1
  29. package/layers/GeoserverWMTSLayer.js +1 -1
  30. package/layers/LayerManager.js +1 -1
  31. package/layers/MapTileLayer.js +1 -1
  32. package/layers/TDTLayer.js +1 -1
  33. package/mapView/Map.d.ts.map +1 -1
  34. package/mapView/Map.js +1 -1
  35. package/mapView/Map.js.map +1 -1
  36. package/mapView/View.js +1 -1
  37. package/package.json +1 -1
  38. package/plot/Plot.js +1 -1
  39. package/plot/geometry/point/Point.js +1 -1
  40. package/plot/geometry/polygon/BasePolygon.js +1 -1
  41. package/plot/geometry/polygon/Circle.js +1 -1
  42. package/plot/geometry/polygon/Polygon.js +1 -1
  43. package/plot/geometry/polygon/RectAngle.js +1 -1
  44. package/plot/geometry/polyline/BaseLine.js +1 -1
  45. package/plot/geometry/polyline/Polyline.js +1 -1
  46. package/style/PointStyleFormat.js +1 -1
  47. package/style/PointStyleFormat.js.map +1 -1
  48. package/style/PolygonStyleFormat.js +1 -1
  49. package/style/PolylineStyleFormat.js +1 -1
  50. package/style/StyleManager.js +1 -1
  51. package/style/common.js +1 -1
  52. package/utils/ArrayUtil.js +1 -1
  53. package/utils/AxiosUtil.js +1 -1
  54. package/utils/EsriUtil.js +1 -1
  55. package/utils/GeometryUtil.js +1 -1
  56. package/utils/LayerUtil.js +1 -1
  57. package/utils/RegisterProjUtil.js +1 -1
  58. package/utils/ResolutionUtil.js +1 -1
  59. package/utils/StringUtil.js +1 -1
  60. package/utils/StyleUtil.js +1 -1
  61. package/utils/UrlUtil.js +1 -1
  62. package/utils/XmlUtil.js +1 -1
  63. package/utils/format/CQL.js +1 -1
  64. package/utils/format/IsMatchCql.js +1 -1
  65. package/utils/plug/canvas/ImageCache.js +1 -1
  66. package/utils/plug/canvas/PinBuilder.js +1 -1
  67. package/utils/plug/canvas/PinIcon.js +1 -1
  68. package/utils/plug/canvas/writeTextToCanvas.js +1 -1
  69. package/utils/tasks/esri/Identify.js +1 -1
  70. package/utils/tasks/esri/Query.js +1 -1
  71. package/utils/tasks/esri/Task.js +1 -1
  72. package/utils/tasks/geoserver/QueryTask.js +1 -1
  73. package/utils/tasks/index.js +1 -1
  74. package/ym-gis-2d.es.js +1 -1
  75. package/ym-gis-2d.umd.js +1 -1
@@ -1 +1 @@
1
- const a43_0x3d6b7a=a43_0x2a66;(function(_0x227295,_0x109edb){const _0x19687e=a43_0x2a66,_0x499722=_0x227295();while(!![]){try{const _0x391f11=parseInt(_0x19687e(0xdc))/0x1+parseInt(_0x19687e(0xd9))/0x2+-parseInt(_0x19687e(0xcc))/0x3*(parseInt(_0x19687e(0xbc))/0x4)+parseInt(_0x19687e(0xc5))/0x5*(parseInt(_0x19687e(0xbb))/0x6)+-parseInt(_0x19687e(0xe3))/0x7*(parseInt(_0x19687e(0xe6))/0x8)+parseInt(_0x19687e(0xc2))/0x9+-parseInt(_0x19687e(0xce))/0xa;if(_0x391f11===_0x109edb)break;else _0x499722['push'](_0x499722['shift']());}catch(_0x5025c5){_0x499722['push'](_0x499722['shift']());}}}(a43_0x45b9,0x38aef));function a43_0x2a66(_0x32f281,_0x41a3f1){const _0x45b99c=a43_0x45b9();return a43_0x2a66=function(_0x2a66d8,_0x44b8b5){_0x2a66d8=_0x2a66d8-0xba;let _0x2984d8=_0x45b99c[_0x2a66d8];return _0x2984d8;},a43_0x2a66(_0x32f281,_0x41a3f1);}import a43_0x542818 from'../entity/Feature';import a43_0x13b513 from'ol/layer/Vector';import a43_0x16afe4 from'ol/source/Vector';import{toGeoJSON}from'../conver/kml/index';import a43_0x18f1c6 from'ol/format/GeoJSON';function a43_0x45b9(){const _0x43dd72=['addFeatures','setGeometry','235999QLjOUm','getTempEditFeatures','features','getSelectedFeatures','readFeature','getPolygonTempLayer','get','3199fQLmrb','tag','flash_layer','3344jVIvwl','getLineTempLayer','getTempSelectedFeatures','setStyle','currentEditLayer','1360674ijZoxr','4KNpZqs','isSelected','getFeatures','clearTempFeatures','flashGeometrys','forEach','1783953XXJvvf','removeLayer','getEditFeatures','5KJbWuR','layerId','geometryType','getVisible','layerInfo','indexOf','addLayer','915894BbdUpH','length','997130biMTkp','tempLayer','kmlImport','getType','getSource','removeFeature','map','getLayerById','setVisible','push','filter','334434Bxmioi'];a43_0x45b9=function(){return _0x43dd72;};return a43_0x45b9();}import{getSelectStyle}from'../style/StyleManager';export default class FeatureManager{constructor(_0x1b2993){const _0x55cfd7=a43_0x2a66;this[_0x55cfd7(0xd4)]=_0x1b2993;}[a43_0x3d6b7a(0xc4)](_0x480efb,_0x1fc6e5){const _0x444195=a43_0x3d6b7a;if(!this['map'][_0x444195(0xba)])return;let _0x773cb1;const _0xd05039=this[_0x444195(0xd4)][_0x444195(0xd5)](this['map']['currentEditLayer']['id']);if(!_0xd05039||!_0xd05039[_0x444195(0xc9)])return;switch(_0xd05039[_0x444195(0xc9)][_0x444195(0xc7)]){case 0x1:_0x773cb1=this[_0x444195(0xdd)](this[_0x444195(0xd4)]['getPointTempLayer'](),this['map'][_0x444195(0xba)]['id'],_0x480efb,_0x1fc6e5);break;case 0x2:_0x773cb1=this[_0x444195(0xdd)](this['map'][_0x444195(0xe7)](),this[_0x444195(0xd4)][_0x444195(0xba)]['id'],_0x480efb,_0x1fc6e5);break;case 0x3:_0x773cb1=this[_0x444195(0xdd)](this[_0x444195(0xd4)][_0x444195(0xe1)](),this[_0x444195(0xd4)][_0x444195(0xba)]['id'],_0x480efb,_0x1fc6e5);break;default:break;}return _0x773cb1;}[a43_0x3d6b7a(0xdf)](_0x117710,_0x5c293f){const _0x5d06ec=a43_0x3d6b7a;if(_0x117710){const _0x5b2d9f=this[_0x5d06ec(0xd4)][_0x5d06ec(0xd5)](_0x117710);if(!_0x5b2d9f||!_0x5b2d9f[_0x5d06ec(0xc9)])return;let _0x47db14;switch(_0x5b2d9f[_0x5d06ec(0xc9)]['geometryType']){case 0x1:_0x47db14=this[_0x5d06ec(0xe8)](this[_0x5d06ec(0xd4)]['getPointTempLayer'](),_0x117710,_0x5c293f);break;case 0x2:_0x47db14=this['getTempSelectedFeatures'](this[_0x5d06ec(0xd4)]['getLineTempLayer'](),_0x117710,_0x5c293f);break;case 0x3:_0x47db14=this[_0x5d06ec(0xe8)](this[_0x5d06ec(0xd4)][_0x5d06ec(0xe1)](),_0x117710,_0x5c293f);break;default:break;}return _0x47db14;}else{const _0x1c106c=this[_0x5d06ec(0xe8)](this[_0x5d06ec(0xd4)]['getPointTempLayer'](),_0x117710,_0x5c293f),_0x4a28fc=this[_0x5d06ec(0xe8)](this[_0x5d06ec(0xd4)][_0x5d06ec(0xe7)](),_0x117710,_0x5c293f),_0x2406bb=this[_0x5d06ec(0xe8)](this['map'][_0x5d06ec(0xe1)](),_0x117710,_0x5c293f);let _0x2c7d0d=[];return _0x1c106c&&(_0x2c7d0d=[..._0x2c7d0d,..._0x1c106c]),_0x4a28fc&&(_0x2c7d0d=[..._0x2c7d0d,..._0x4a28fc]),_0x2406bb&&(_0x2c7d0d=[..._0x2c7d0d,..._0x2406bb]),_0x2c7d0d;}}[a43_0x3d6b7a(0xe8)](_0x5ce9ce,_0x7ed5d3,_0x4656d1){const _0x138b87=a43_0x3d6b7a;var _0x31db77;let _0x10beb3=(_0x31db77=_0x5ce9ce[_0x138b87(0xd2)]())===null||_0x31db77===void 0x0?void 0x0:_0x31db77[_0x138b87(0xbe)]();if(!_0x10beb3)return;_0x10beb3[_0x138b87(0xc1)]((_0x28d082,_0x3af9d6,_0x424060)=>{const _0x543d04=_0x138b87;_0x28d082[_0x543d04(0xcf)]=_0x5ce9ce;});_0x4656d1!=undefined&&(_0x10beb3=_0x10beb3[_0x138b87(0xd8)](_0x1c1c7e=>_0x1c1c7e[_0x138b87(0xbd)]==_0x4656d1));if(_0x7ed5d3)return _0x10beb3['filter'](_0x21fe4e=>_0x21fe4e[_0x138b87(0xc6)]==_0x7ed5d3);return _0x10beb3;}[a43_0x3d6b7a(0xdd)](_0x3dc53a,_0x23a5cf,_0x39a868,_0x1ba99d){const _0x1947c5=a43_0x3d6b7a;var _0x14db95;let _0x535d20=(_0x14db95=_0x3dc53a[_0x1947c5(0xd2)]())===null||_0x14db95===void 0x0?void 0x0:_0x14db95[_0x1947c5(0xbe)]();if(!_0x535d20)return;return _0x535d20[_0x1947c5(0xc1)]((_0x2b2710,_0x25736f,_0x13353f)=>{const _0x2716b4=_0x1947c5;_0x2b2710[_0x2716b4(0xcf)]=_0x3dc53a;}),_0x39a868&&_0x1ba99d&&_0x1ba99d['length']>0x0?_0x535d20=_0x535d20['filter'](_0x592033=>_0x592033[_0x1947c5(0xbd)]==!![]&&(_0x592033['layerId']==_0x23a5cf&&(_0x592033[_0x1947c5(0xe2)](_0x39a868)==undefined||_0x1ba99d[_0x1947c5(0xca)](_0x592033[_0x1947c5(0xe2)](_0x39a868))>-0x1)||_0x592033[_0x1947c5(0xc6)]==undefined)):_0x535d20=_0x535d20=_0x535d20[_0x1947c5(0xd8)](_0x3a3859=>_0x3a3859[_0x1947c5(0xbd)]==!![]&&(_0x3a3859['layerId']==_0x23a5cf||_0x3a3859[_0x1947c5(0xc6)]==undefined)),_0x535d20;}['flashFeatures'](_0x2b8fef,_0x3452c9=0x3){const _0x314ad7=a43_0x3d6b7a;var _0x3512ac;let _0x4e0afb=new a43_0x13b513({'zIndex':0x270f,'source':new a43_0x16afe4()});_0x4e0afb['id']=_0x314ad7(0xe5),this['map'][_0x314ad7(0xcb)](_0x4e0afb,![]),(_0x3512ac=_0x4e0afb[_0x314ad7(0xd2)]())===null||_0x3512ac===void 0x0?void 0x0:_0x3512ac[_0x314ad7(0xda)](_0x2b8fef);let _0x2400f1=0x0,_0x3d3425=setInterval(()=>{const _0x3ebb60=_0x314ad7;if(_0x2400f1===_0x3452c9){_0x3d3425&&clearInterval(_0x3d3425);const _0x5377ae=this[_0x3ebb60(0xd4)][_0x3ebb60(0xd5)](_0x4e0afb['id']);_0x5377ae&&this[_0x3ebb60(0xd4)][_0x3ebb60(0xc3)](_0x5377ae);return;}if(_0x4e0afb[_0x3ebb60(0xc8)]())_0x4e0afb[_0x3ebb60(0xd6)](![]);else _0x4e0afb[_0x3ebb60(0xd6)](!![]);_0x2400f1++;},0x190);}[a43_0x3d6b7a(0xc0)](_0x5e55d8,_0x476364=0x3){const _0x1eb73f=a43_0x3d6b7a;var _0x2dc575;let _0x33fb33=new a43_0x13b513({'zIndex':0x270f,'source':new a43_0x16afe4()});_0x33fb33['id']='flash_layer',this['map']['addLayer'](_0x33fb33,![]);let _0x2fa21b=[];_0x5e55d8[_0x1eb73f(0xc1)](_0x3326dd=>{const _0x47f9de=_0x1eb73f;let _0x1ccc80=new a43_0x542818();const _0x32a1f1=getSelectStyle(_0x3326dd[_0x47f9de(0xd1)]());_0x1ccc80[_0x47f9de(0xe9)](_0x32a1f1),_0x1ccc80[_0x47f9de(0xdb)](_0x3326dd),_0x2fa21b['push'](_0x1ccc80);}),(_0x2dc575=_0x33fb33['getSource']())===null||_0x2dc575===void 0x0?void 0x0:_0x2dc575[_0x1eb73f(0xda)](_0x2fa21b);let _0x1ea7a0=0x0,_0x7c745d=setInterval(()=>{const _0x5a1ca6=_0x1eb73f;if(_0x1ea7a0===_0x476364){_0x7c745d&&clearInterval(_0x7c745d);const _0x2d0b75=this['map']['getLayerById'](_0x33fb33['id']);_0x2d0b75&&this[_0x5a1ca6(0xd4)][_0x5a1ca6(0xc3)](_0x2d0b75);return;}if(_0x33fb33[_0x5a1ca6(0xc8)]())_0x33fb33['setVisible'](![]);else _0x33fb33[_0x5a1ca6(0xd6)](!![]);_0x1ea7a0++;},0x190);}async[a43_0x3d6b7a(0xd0)](_0x3f3638){const _0x18a05d=a43_0x3d6b7a;let _0xee3a4=await toGeoJSON(_0x3f3638,null);if(!_0xee3a4)return[];let _0x102a16=[];var _0x2ceab8=new a43_0x18f1c6();return _0xee3a4[_0x18a05d(0xde)]['forEach'](_0x2c8e69=>{const _0x3eeed0=_0x18a05d;_0x102a16[_0x3eeed0(0xd7)](_0x2ceab8[_0x3eeed0(0xe0)](_0x2c8e69,null));}),_0x102a16;}[a43_0x3d6b7a(0xbf)](_0x216a31){const _0x165fcd=a43_0x3d6b7a,_0x4e15f6=this[_0x165fcd(0xdf)]();if(_0x4e15f6&&_0x4e15f6[_0x165fcd(0xcd)]>0x0)for(const _0xebf0d0 of _0x4e15f6){if(_0xebf0d0&&_0xebf0d0[_0x165fcd(0xcf)]){const _0x3c84c4=_0xebf0d0[_0x165fcd(0xcf)]['getSource']();_0x3c84c4&&(_0x216a31!=undefined?_0xebf0d0[_0x165fcd(0xe4)]==_0x216a31&&_0x3c84c4[_0x165fcd(0xd3)](_0xebf0d0):_0x3c84c4[_0x165fcd(0xd3)](_0xebf0d0));}}}}
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(_0x5e5c63,_0xb8a26a){var _0x1de53c=a44_0x5665,_0x58e774=_0x5e5c63();while(!![]){try{var _0x124f1c=parseInt(_0x1de53c(0x113))/0x1*(parseInt(_0x1de53c(0x112))/0x2)+-parseInt(_0x1de53c(0x10f))/0x3*(-parseInt(_0x1de53c(0x111))/0x4)+-parseInt(_0x1de53c(0x114))/0x5+parseInt(_0x1de53c(0x116))/0x6+-parseInt(_0x1de53c(0x115))/0x7*(parseInt(_0x1de53c(0x10e))/0x8)+-parseInt(_0x1de53c(0x10c))/0x9+-parseInt(_0x1de53c(0x110))/0xa*(-parseInt(_0x1de53c(0x10d))/0xb);if(_0x124f1c===_0xb8a26a)break;else _0x58e774['push'](_0x58e774['shift']());}catch(_0x3726e3){_0x58e774['push'](_0x58e774['shift']());}}}(a44_0x3fd3,0x72a7b));function a44_0x5665(_0x125b71,_0x3aa3a1){var _0x3fd311=a44_0x3fd3();return a44_0x5665=function(_0x5665a6,_0x51e9dc){_0x5665a6=_0x5665a6-0x10c;var _0x1b15e8=_0x3fd311[_0x5665a6];return _0x1b15e8;},a44_0x5665(_0x125b71,_0x3aa3a1);}import a44_0x2b147a from'./mapView/Map';function a44_0x3fd3(){var _0xccfdb=['1768IQrkcT','298434TMTaJh','134720DPdAHO','4XckCkw','9600taaHEB','87iUeUXA','329080vQuXxs','21588UZcCyc','698352pMahhe','6994215REwIwi','1111FUhzYh'];a44_0x3fd3=function(){return _0xccfdb;};return a44_0x3fd3();}export{a44_0x2b147a 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_0x82e3dc=a45_0x51c4;function a45_0x1904(){const _0x577e99=['8lcYUit','_showLabel','drawMoving','polygon','_source','text','4NHUDCy','drawAddPoint','530AbVFAT','spheroid','label','toFixed','63363qREeJo','fromType','measure','getLength','clear','find','square-kilometers','entries','getView','563666vcJZnq','dispatchEvent','_features','setMap','_spheroid','getGeometry','28503GabmlS','clearMeasure','feature','_style','measureMoving','log','showLabel','57958527gSTHYO','setStyle','_precision','点击开始测量,双击结束测量','5206998wiPkWy','3270635jQWfjd','forEach','getSource','_unit','setFeatureAreaStyle','onInternal','square-meters','assign','unit','measureEnd','drawEnd','area','212bKActb','getMap','precision','7408681uTebhz','geom','getText','getProjection','#f03437'];a45_0x1904=function(){return _0x577e99;};return a45_0x1904();}(function(_0x387560,_0x8e9fdf){const _0x3175cb=a45_0x51c4,_0x18d2c2=_0x387560();while(!![]){try{const _0xc5ee51=parseInt(_0x3175cb(0x16f))/0x1*(-parseInt(_0x3175cb(0x17e))/0x2)+parseInt(_0x3175cb(0x175))/0x3*(-parseInt(_0x3175cb(0x161))/0x4)+-parseInt(_0x3175cb(0x190))/0x5+-parseInt(_0x3175cb(0x18f))/0x6+parseInt(_0x3175cb(0x164))/0x7*(-parseInt(_0x3175cb(0x169))/0x8)+parseInt(_0x3175cb(0x184))/0x9*(parseInt(_0x3175cb(0x171))/0xa)+parseInt(_0x3175cb(0x18b))/0xb;if(_0xc5ee51===_0x8e9fdf)break;else _0x18d2c2['push'](_0x18d2c2['shift']());}catch(_0x493e2d){_0x18d2c2['push'](_0x18d2c2['shift']());}}}(a45_0x1904,0x94db8));import a45_0x43df2a from'./Draw';import a45_0x55d508 from'ol/events/Event';function a45_0x51c4(_0x3a6469,_0x2f934d){const _0x1904d1=a45_0x1904();return a45_0x51c4=function(_0x51c44c,_0x513859){_0x51c44c=_0x51c44c-0x15e;let _0xefeaea=_0x1904d1[_0x51c44c];return _0xefeaea;},a45_0x51c4(_0x3a6469,_0x2f934d);}import{getArea}from'../utils/GeometryUtil';import{getStyle}from'../plot/Plot';import a45_0x577491 from'../entity/measure/AreaMeasureUnits';import a45_0xdfd1a from'ol/Collection';const defaultOptions={'color':a45_0x82e3dc(0x168),'fill':!![],'opacity':0.6,'outline':!![],'outlineColor':[0xff,0x0,0x0,0x0],'outlineOpacity':0.6,'outlineWidth':0x2,'font':{},'unit':a45_0x82e3dc(0x196),'precision':0x2,'showLabel':!![],'spheroid':![]},MeasureEventType={'measureMoving':a45_0x82e3dc(0x188),'measureEnd':a45_0x82e3dc(0x15e)};export class AreaMeasureEvent extends a45_0x55d508{constructor(_0x3950bb,_0x254df9,_0x13a7ea){const _0x581de6=a45_0x82e3dc;super(_0x3950bb),this[_0x581de6(0x160)]=_0x254df9,this[_0x581de6(0x165)]=_0x13a7ea;}}export default class AreaMeasure extends a45_0x43df2a{constructor(_0x17e1e9){const _0x478c54=a45_0x82e3dc;_0x17e1e9=_0x17e1e9||{},console[_0x478c54(0x189)](_0x17e1e9);const _0x57209a=Object[_0x478c54(0x197)](Object[_0x478c54(0x197)]({},defaultOptions),Object['fromEntries'](Object[_0x478c54(0x17c)](_0x17e1e9)['filter'](([_0x2f6e5f,_0x54e85e])=>_0x54e85e!=null)));super(_0x478c54(0x16c),{'tipText':_0x478c54(0x18e),'style':_0x57209a,'features':new a45_0xdfd1a()}),this[_0x478c54(0x187)]=_0x57209a,this[_0x478c54(0x193)]=_0x57209a[_0x478c54(0x198)],this[_0x478c54(0x18d)]=_0x57209a[_0x478c54(0x163)],this['_showLabel']=_0x57209a[_0x478c54(0x18a)],this[_0x478c54(0x182)]=_0x57209a[_0x478c54(0x172)],this['on']=this[_0x478c54(0x195)],this['on'](_0x478c54(0x15f),_0x4c7e8=>{const _0x213a38=_0x478c54,_0x4f55f4=this['getMap']();if(!_0x4f55f4)return;if(_0x4c7e8[_0x213a38(0x186)]){const _0x5753d6=this[_0x213a38(0x194)](_0x4c7e8[_0x213a38(0x186)],_0x57209a);this[_0x213a38(0x17f)](new AreaMeasureEvent(MeasureEventType[_0x213a38(0x15e)],_0x5753d6,_0x4c7e8[_0x213a38(0x186)][_0x213a38(0x183)]()));}this[_0x213a38(0x187)][_0x213a38(0x16e)]='';}),this['on'](_0x478c54(0x170),_0x2c12c4=>{const _0x49d361=_0x478c54,_0x25b815=this[_0x49d361(0x162)]();if(!_0x25b815)return;if(_0x2c12c4[_0x49d361(0x186)]){const _0x319f9e=this[_0x49d361(0x194)](_0x2c12c4[_0x49d361(0x186)],_0x57209a);this[_0x49d361(0x17f)](new AreaMeasureEvent(MeasureEventType[_0x49d361(0x188)],_0x319f9e,_0x2c12c4[_0x49d361(0x186)][_0x49d361(0x183)]()));}}),this['on'](_0x478c54(0x16b),_0x21c828=>{const _0x4a8e6a=_0x478c54,_0xe6152a=this[_0x4a8e6a(0x162)]();if(!_0xe6152a)return;if(!_0x21c828['coordinates']||_0x21c828['coordinates']['length']<0x2)return;if(_0x21c828[_0x4a8e6a(0x186)]){const _0x27ca60=this[_0x4a8e6a(0x194)](_0x21c828['feature'],_0x57209a);this['dispatchEvent'](new AreaMeasureEvent(MeasureEventType[_0x4a8e6a(0x188)],_0x27ca60,_0x21c828[_0x4a8e6a(0x186)]['getGeometry']()));}});}['setMap'](_0x43c938){const _0x26eaf9=a45_0x82e3dc;super[_0x26eaf9(0x181)](_0x43c938);if(_0x43c938){const _0x2232d9=_0x43c938['getPolygonTempLayer'](),_0x4a5b09=_0x2232d9===null||_0x2232d9===void 0x0?void 0x0:_0x2232d9[_0x26eaf9(0x192)]();_0x4a5b09&&(this[_0x26eaf9(0x16d)]=_0x4a5b09);}}[a45_0x82e3dc(0x166)](_0x101163){const _0x4a2dce=a45_0x82e3dc,_0xbc75e5=a45_0x577491[_0x4a2dce(0x17a)](_0x23a047=>_0x23a047['type']===this['_unit']);switch(_0xbc75e5===null||_0xbc75e5===void 0x0?void 0x0:_0xbc75e5['type']){case _0x4a2dce(0x196):return''+(_0x101163['toFixed'](this[_0x4a2dce(0x18d)])+_0xbc75e5['label']);case _0x4a2dce(0x17b):return''+((_0x101163*0.000001)[_0x4a2dce(0x174)](this[_0x4a2dce(0x18d)])+_0xbc75e5[_0x4a2dce(0x173)]);case'mu':return''+((_0x101163*0.0015)[_0x4a2dce(0x174)](this[_0x4a2dce(0x18d)])+_0xbc75e5[_0x4a2dce(0x173)]);case'hectare':return''+((_0x101163*0.0001)[_0x4a2dce(0x174)](this[_0x4a2dce(0x18d)])+_0xbc75e5['label']);default:return _0x101163[_0x4a2dce(0x174)](this[_0x4a2dce(0x18d)])+'平方米';}}[a45_0x82e3dc(0x194)](_0x76f2be,_0x50b23c){const _0x5ecafc=a45_0x82e3dc,_0x2edbc4=this['getMap']();if(!_0x2edbc4)return 0x0;const _0x43d72b=_0x76f2be[_0x5ecafc(0x183)](),_0xa824bc=getArea(_0x43d72b,_0x2edbc4[_0x5ecafc(0x17d)]()[_0x5ecafc(0x167)](),this[_0x5ecafc(0x182)]);return _0x76f2be[_0x5ecafc(0x176)]=_0x5ecafc(0x177),this[_0x5ecafc(0x16a)]&&(_0x50b23c[_0x5ecafc(0x16e)]=this[_0x5ecafc(0x166)](_0xa824bc),_0x76f2be[_0x5ecafc(0x18c)](getStyle(_0x5ecafc(0x16c),_0x50b23c,_0x2edbc4))),_0xa824bc;}['setUnit'](_0x2d58f3){const _0x1b30c0=a45_0x82e3dc;this['_unit']=_0x2d58f3,this['_features']&&this[_0x1b30c0(0x180)][_0x1b30c0(0x178)]()>0x0&&this['_features'][_0x1b30c0(0x191)](_0x1c05c3=>{const _0x5e9943=_0x1b30c0;this[_0x5e9943(0x194)](_0x1c05c3,this[_0x5e9943(0x187)]);});}[a45_0x82e3dc(0x185)](){const _0x5134ec=a45_0x82e3dc,_0x5e9f1d=this[_0x5134ec(0x162)]();if(!_0x5e9f1d)return;const _0x2d2bc2=_0x5e9f1d['getPolygonTempLayer'](),_0x19dfdd=_0x2d2bc2===null||_0x2d2bc2===void 0x0?void 0x0:_0x2d2bc2[_0x5134ec(0x192)]();_0x19dfdd&&this[_0x5134ec(0x180)]&&this[_0x5134ec(0x180)][_0x5134ec(0x178)]()>0x0&&(this[_0x5134ec(0x180)][_0x5134ec(0x191)](_0x5c53d1=>{_0x19dfdd['removeFeature'](_0x5c53d1);}),this[_0x5134ec(0x180)][_0x5134ec(0x179)]());}}
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
- function a46_0x20cb(_0x322b03,_0x114798){const _0x1aba97=a46_0x1aba();return a46_0x20cb=function(_0x20cbd2,_0x5d99d6){_0x20cbd2=_0x20cbd2-0x15b;let _0x36e49f=_0x1aba97[_0x20cbd2];return _0x36e49f;},a46_0x20cb(_0x322b03,_0x114798);}const a46_0x31f7f8=a46_0x20cb;(function(_0x5c59e4,_0x4e64e3){const _0x4232bd=a46_0x20cb,_0x358485=_0x5c59e4();while(!![]){try{const _0x7606e=-parseInt(_0x4232bd(0x15c))/0x1*(parseInt(_0x4232bd(0x17b))/0x2)+parseInt(_0x4232bd(0x161))/0x3+-parseInt(_0x4232bd(0x162))/0x4*(-parseInt(_0x4232bd(0x165))/0x5)+parseInt(_0x4232bd(0x168))/0x6+parseInt(_0x4232bd(0x178))/0x7*(parseInt(_0x4232bd(0x164))/0x8)+-parseInt(_0x4232bd(0x166))/0x9+parseInt(_0x4232bd(0x176))/0xa*(-parseInt(_0x4232bd(0x16e))/0xb);if(_0x7606e===_0x4e64e3)break;else _0x358485['push'](_0x358485['shift']());}catch(_0x34b450){_0x358485['push'](_0x358485['shift']());}}}(a46_0x1aba,0xb2a2e));import a46_0x43b23a from'./Draw';import a46_0x152d40 from'ol/events/Event';import{difference}from'../utils/GeometryUtil';const HoleEventType={'HOLESTART':a46_0x31f7f8(0x17d),'HOLED':a46_0x31f7f8(0x17c)};export class HoleEvent extends a46_0x152d40{constructor(_0x5a40d4,_0x27832d,_0x41f49c,_0x3adba8){const _0x3d48c9=a46_0x31f7f8;super(_0x5a40d4),this[_0x3d48c9(0x174)]=_0x27832d,this[_0x3d48c9(0x167)]=_0x41f49c,this[_0x3d48c9(0x175)]=_0x3adba8;}}export default class Difference extends a46_0x43b23a{constructor(_0x17c62c,_0x13a899){const _0x10f67d=a46_0x31f7f8,_0x382273=(_0x13a899===null||_0x13a899===void 0x0?void 0x0:_0x13a899[_0x10f67d(0x163)])||{'outlineColor':_0x10f67d(0x15f),'outlineWidth':0x2,'opacity':0.2,'color':_0x10f67d(0x15f)};super(_0x10f67d(0x15d),{'tipText':_0x13a899===null||_0x13a899===void 0x0?void 0x0:_0x13a899[_0x10f67d(0x179)],'style':_0x382273}),this[_0x10f67d(0x167)]=_0x17c62c;const _0x753825=_0x13a899||{};this[_0x10f67d(0x16d)]=_0x753825[_0x10f67d(0x16d)]||![],this['on']=this[_0x10f67d(0x16a)],this['on'](_0x10f67d(0x160),async _0x10d017=>{const _0x5445e3=_0x10f67d;var _0x20822a;const _0xc2bb06=this[_0x5445e3(0x17e)]();let _0x30bf00=(_0x20822a=_0x10d017[_0x5445e3(0x171)])===null||_0x20822a===void 0x0?void 0x0:_0x20822a[_0x5445e3(0x172)]();!_0x30bf00&&this[_0x5445e3(0x169)](new HoleEvent(HoleEventType[_0x5445e3(0x170)],undefined,undefined,_0x5445e3(0x177)));let _0x1e4602=_0x30bf00;!_0xc2bb06&&this['dispatchEvent'](new HoleEvent(HoleEventType[_0x5445e3(0x170)],_0x1e4602,undefined,_0x5445e3(0x16f)));(!this[_0x5445e3(0x167)]||this['features'][_0x5445e3(0x173)]===0x0)&&this['dispatchEvent'](new HoleEvent(HoleEventType['HOLED'],_0x1e4602,undefined,'未获取到擦除要素'));try{this[_0x5445e3(0x169)](new HoleEvent(HoleEventType[_0x5445e3(0x15b)],_0x1e4602));const _0x2cbbfc=this[_0x5445e3(0x16b)](_0x1e4602);this['dispatchEvent'](new HoleEvent(HoleEventType['HOLED'],_0x1e4602,_0x2cbbfc));}catch(_0xb34cf8){this['dispatchEvent'](new HoleEvent(HoleEventType[_0x5445e3(0x170)],_0x1e4602,undefined,_0xb34cf8['message']));}});}[a46_0x31f7f8(0x16b)](_0x2df27f){const _0xb8e9dc=a46_0x31f7f8,_0x4fe252=[];for(let _0x543886=0x0;_0x543886<this[_0xb8e9dc(0x167)][_0xb8e9dc(0x173)];_0x543886++){const _0x4f6e86=this['features'][_0x543886],_0x133b74=_0x4f6e86[_0xb8e9dc(0x172)]();if(!_0x133b74)continue;const _0x3a9f7a=difference(_0x133b74,_0x2df27f);_0x4f6e86[_0xb8e9dc(0x17a)](_0x3a9f7a),_0x4fe252[_0xb8e9dc(0x16c)](_0x4f6e86);}return _0x4fe252;}[a46_0x31f7f8(0x15e)](_0x503dbd){this['features']=_0x503dbd;}}function a46_0x1aba(){const _0x3118a5=['8490672OFWoVv','features','3295296ufXblE','dispatchEvent','onInternal','holeFeatures','push','addTempLayer','39017hsApDg','未获取到地图对象','HOLED','feature','getGeometry','length','holePolygon','error','2770lJVWCf','未获取到挖除的面','4725BngFku','tipText','setGeometry','330702zHiSNP','splited','splitStart','getMap','HOLESTART','1oTFWAk','polygon','setFeatures','rgba(255,\x200,\x200,\x201)','drawEnd','4157166TPVDvh','3268636oLwJcJ','holeStyle','840dIWxRm','5OPVmwy'];a46_0x1aba=function(){return _0x3118a5;};return a46_0x1aba();}
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_0x2cfb12=a47_0x1ed1;(function(_0x28510e,_0x532191){const _0x52b951=a47_0x1ed1,_0xfde828=_0x28510e();while(!![]){try{const _0x2281a9=parseInt(_0x52b951(0x201))/0x1+parseInt(_0x52b951(0x1fd))/0x2+parseInt(_0x52b951(0x1de))/0x3*(parseInt(_0x52b951(0x1d0))/0x4)+parseInt(_0x52b951(0x1f4))/0x5+parseInt(_0x52b951(0x1fb))/0x6*(parseInt(_0x52b951(0x1df))/0x7)+parseInt(_0x52b951(0x1f9))/0x8*(-parseInt(_0x52b951(0x208))/0x9)+-parseInt(_0x52b951(0x1e4))/0xa*(parseInt(_0x52b951(0x214))/0xb);if(_0x2281a9===_0x532191)break;else _0xfde828['push'](_0xfde828['shift']());}catch(_0x1c5c56){_0xfde828['push'](_0xfde828['shift']());}}}(a47_0x4482,0x73b0d));import a47_0x28554a from'ol/events/Event';import a47_0x438db5 from'ol/interaction/Pointer';import{MultiPoint,Point}from'ol/geom';import a47_0x1b9494 from'ol/Feature';import a47_0x3e4c86,{createEditingStyle}from'ol/style/Style';import a47_0x373ad1 from'ol/source/Vector';import{getPlotCount,createPlot,getStyle}from'../plot/Plot';import a47_0x51a380 from'ol/style/Text';import a47_0x28ee5c from'ol/style/Fill';import a47_0x27ede0 from'ol/interaction/Property';import a47_0x4af810 from'ol/layer/Vector';function a47_0x4482(){const _0x933fb8=['Rectangle','_sketchFeature','projection','pop','finishDrawing','Ellipsoid','setStyle','590788fDdyZg','_tipStyle','单击增加点,右击删除点双击完成绘制','Ellipse','wrapX','getProjection','push','drawMoving','getMap','type','style','handleUpEvent','snapTolerance','drawEnd','buildDrawingFeature','onceInternal','setMap','_drawingCoordinates','pointermove','getCode','getPixelFromCoordinate','abortDrawing_','MAX_VALUE','DRAWMOVING','originalEvent','rgba(0,\x200,\x200,\x200.4)','drawStart','source','_type','_tipOverlay','stopDown','DRAWABORT','handleMoveEvent','_style','_minPoints','setGeometry','rgba(255,\x20255,\x20255,\x201)','Circle','单击拖动绘制','addPoint','_fixPoint','1028452cMKRCZ','atFinish_','getView','_tipFeature','updateSketchFeatures_','getActive','_isStayDraw','coordinates','revert','sqrt','DRAWEND','单击开始绘制','tipText','coordinate','3bQjXzw','1071833FgpJIh','once','getType','length','preventDefault','260vyyXFG','dispatchEvent','slice','addFeature','_features','clear','showTip','单击增加点,右击删除点','handleDragEvent','feature','updateState_','setText','getSource','updateTip_','_showTip','_source','1418950HHsViF','fixPoint','DRAWSTART','_snapTolerance','indexOf','8DHeJrl','_overlay','36xFSwlc','单击结束绘制,右击删除点','1273402frfYoM','startDrawing_','DRAWADDPOINT','button','205660KgvLPb','onInternal','features','point','getOverlay','minPoint','getGeometry','3885309XlgUQn','createMultiPointFeature','abortDrawing','rectangle','ACTIVE'];a47_0x4482=function(){return _0x933fb8;};return a47_0x4482();}import a47_0x17b3cc from'../entity/GeometryType';const DrawEventType={'DRAWSTART':a47_0x2cfb12(0x1c1),'DRAWEND':a47_0x2cfb12(0x221),'DRAWABORT':'drawAbort','DRAWADDPOINT':'drawAddPoint','DRAWMOVING':a47_0x2cfb12(0x21b)};export class DrawEvent extends a47_0x28554a{constructor(_0x5187b8,_0x28618f,_0x2a2c49){const _0x4debcc=a47_0x2cfb12;super(_0x5187b8),this[_0x4debcc(0x1ed)]=_0x28618f,this[_0x4debcc(0x1d7)]=_0x2a2c49;}}function a47_0x1ed1(_0x30b5a2,_0x388801){const _0x44828d=a47_0x4482();return a47_0x1ed1=function(_0x1ed16f,_0x30a7c1){_0x1ed16f=_0x1ed16f-0x1b6;let _0x86412b=_0x44828d[_0x1ed16f];return _0x86412b;},a47_0x1ed1(_0x30b5a2,_0x388801);}export class ShEvent extends a47_0x28554a{constructor(_0x19a3d9,_0x2366cc,_0x5e5018,_0x2a9669,_0x404152){const _0x4a8c3f=a47_0x2cfb12;super(_0x19a3d9),this[_0x4a8c3f(0x20f)]=_0x404152,this[_0x4a8c3f(0x21d)]=_0x2366cc,this[_0x4a8c3f(0x1dd)]=_0x5e5018,this[_0x4a8c3f(0x1d7)]=_0x2a9669;}}export default class Draw extends a47_0x438db5{constructor(_0x34809e,_0x1d08c3){const _0x588a4a=a47_0x2cfb12,_0x3b8278=_0x1d08c3?_0x1d08c3:{};!_0x3b8278['stopDown']&&(_0x3b8278[_0x588a4a(0x1c5)]=![]);super(_0x1d08c3),this['on']=this[_0x588a4a(0x202)],this[_0x588a4a(0x1e0)]=this[_0x588a4a(0x1b6)],this['un']=this['unInternal'],this['_isStayDraw']=![],this[_0x588a4a(0x1c3)]=_0x34809e,this[_0x588a4a(0x1c8)]=_0x1d08c3===null||_0x1d08c3===void 0x0?void 0x0:_0x1d08c3[_0x588a4a(0x21e)],this[_0x588a4a(0x1f3)]=_0x1d08c3===null||_0x1d08c3===void 0x0?void 0x0:_0x1d08c3[_0x588a4a(0x1c2)],this[_0x588a4a(0x1e8)]=_0x1d08c3===null||_0x1d08c3===void 0x0?void 0x0:_0x1d08c3[_0x588a4a(0x203)];const _0x289d66=getPlotCount(this[_0x588a4a(0x1c3)]);this[_0x588a4a(0x1c9)]=_0x289d66[_0x588a4a(0x206)],this[_0x588a4a(0x1cf)]=_0x289d66[_0x588a4a(0x1f5)],this['tipText']=_0x1d08c3===null||_0x1d08c3===void 0x0?void 0x0:_0x1d08c3[_0x588a4a(0x1dc)],this[_0x588a4a(0x1f2)]=(_0x1d08c3===null||_0x1d08c3===void 0x0?void 0x0:_0x1d08c3[_0x588a4a(0x1ea)])==![]?![]:!![],this[_0x588a4a(0x1f7)]=_0x3b8278['snapTolerance']?_0x3b8278[_0x588a4a(0x220)]:0x6,this[_0x588a4a(0x1d3)]=new a47_0x1b9494(),this[_0x588a4a(0x215)]=new a47_0x3e4c86({'text':new a47_0x51a380({'font':'12px\x20Calibre,sans-serif','fill':new a47_0x28ee5c({'color':_0x588a4a(0x1cb)}),'backgroundFill':new a47_0x28ee5c({'color':_0x588a4a(0x1c0)}),'padding':[0x2,0x2,0x2,0x2],'textAlign':'left','offsetX':0xf})}),this[_0x588a4a(0x1b8)]=[],this['_tipOverlay']=new a47_0x4af810({'source':new a47_0x373ad1({'useSpatialIndex':![],'wrapX':(_0x1d08c3===null||_0x1d08c3===void 0x0?void 0x0:_0x1d08c3['wrapX'])?_0x1d08c3[_0x588a4a(0x218)]:![]})}),this[_0x588a4a(0x1fa)]=new a47_0x4af810({'source':new a47_0x373ad1({'useSpatialIndex':![],'wrapX':(_0x1d08c3===null||_0x1d08c3===void 0x0?void 0x0:_0x1d08c3['wrapX'])?_0x1d08c3[_0x588a4a(0x218)]:![]}),'updateWhileInteracting':!![]}),this['addChangeListener'](a47_0x27ede0[_0x588a4a(0x20c)],this[_0x588a4a(0x1ee)]);}['updateState_'](){const _0xec4fdd=a47_0x2cfb12,_0x8bbff5=this[_0xec4fdd(0x21c)](),_0x960f3a=this[_0xec4fdd(0x1d5)]();(!_0x8bbff5||!_0x960f3a)&&this[_0xec4fdd(0x20a)](),this[_0xec4fdd(0x1fa)][_0xec4fdd(0x1b7)](_0x960f3a?_0x8bbff5:null),this[_0xec4fdd(0x1c4)][_0xec4fdd(0x1b7)](_0x960f3a?_0x8bbff5:null);}[a47_0x2cfb12(0x1b7)](_0x98f002){super['setMap'](_0x98f002),this['updateState_']();}[a47_0x2cfb12(0x213)](_0x97c492){const _0x51acb9=a47_0x2cfb12;this[_0x51acb9(0x1c8)]=_0x97c492?_0x97c492:{};}[a47_0x2cfb12(0x205)](){return this['_overlay'];}['handleDownEvent'](_0x5da0dc){const _0x57d5dd=a47_0x2cfb12;if(_0x5da0dc[_0x57d5dd(0x1bf)][_0x57d5dd(0x200)]===0x2)return _0x5da0dc[_0x57d5dd(0x1bf)][_0x57d5dd(0x1e3)](),this[_0x57d5dd(0x1d8)](),this[_0x57d5dd(0x1c7)](_0x5da0dc),![];return!![];}[a47_0x2cfb12(0x21f)](_0x1297b9){const _0x2f018d=a47_0x2cfb12;var _0x4e8f9d,_0x33b95a;if(this[_0x2f018d(0x1c3)]==_0x2f018d(0x20b)&&this['_drawingCoordinates'][_0x2f018d(0x1e2)]<0x1)return this[_0x2f018d(0x1e5)](new DrawEvent(DrawEventType[_0x2f018d(0x1da)],undefined,[_0x1297b9[_0x2f018d(0x1dd)]])),![];if(!this[_0x2f018d(0x1d6)])this[_0x2f018d(0x1fe)](_0x1297b9[_0x2f018d(0x1dd)]),this[_0x2f018d(0x1e5)](new ShEvent(DrawEventType[_0x2f018d(0x1ff)],this[_0x2f018d(0x1c3)],_0x1297b9['coordinate'],this['_drawingCoordinates'],(_0x4e8f9d=this[_0x2f018d(0x21c)]())===null||_0x4e8f9d===void 0x0?void 0x0:_0x4e8f9d['getView']()[_0x2f018d(0x219)]()[_0x2f018d(0x1ba)]())),this['_type']==_0x2f018d(0x204)&&this['finishDrawing']();else{if(this[_0x2f018d(0x1b8)]&&this[_0x2f018d(0x1b8)]['length']>0x0){if(this['atFinish_'](_0x1297b9['pixel']))return this[_0x2f018d(0x211)](),_0x1297b9[_0x2f018d(0x1e3)](),![];let _0x578fce=this[_0x2f018d(0x1b8)][_0x2f018d(0x1e2)]+0x1;_0x578fce<=this[_0x2f018d(0x1cf)]&&this[_0x2f018d(0x1ce)](_0x1297b9['coordinate']),this[_0x2f018d(0x1e5)](new ShEvent(DrawEventType[_0x2f018d(0x1ff)],this[_0x2f018d(0x1c3)],_0x1297b9[_0x2f018d(0x1dd)],this[_0x2f018d(0x1b8)],(_0x33b95a=this['getMap']())===null||_0x33b95a===void 0x0?void 0x0:_0x33b95a[_0x2f018d(0x1d2)]()['getProjection']()[_0x2f018d(0x1ba)]())),_0x578fce>=this[_0x2f018d(0x1c9)]&&this[_0x2f018d(0x222)](this[_0x2f018d(0x1b8)]),_0x578fce===this['_fixPoint']&&this[_0x2f018d(0x211)]();}}return _0x1297b9['preventDefault'](),![];}[a47_0x2cfb12(0x1ec)](_0x3a4bad){const _0x149a98=a47_0x2cfb12;var _0x1322b9;if(this[_0x149a98(0x1c3)]=='rectangle'&&_0x3a4bad[_0x149a98(0x1bf)][_0x149a98(0x21d)]=='pointermove'){if(!this[_0x149a98(0x1d6)]){this[_0x149a98(0x1fe)](_0x3a4bad[_0x149a98(0x1dd)]),this[_0x149a98(0x1e5)](new ShEvent(DrawEventType[_0x149a98(0x1ff)],this[_0x149a98(0x1c3)],_0x3a4bad[_0x149a98(0x1dd)],this[_0x149a98(0x1b8)],(_0x1322b9=this[_0x149a98(0x21c)]())===null||_0x1322b9===void 0x0?void 0x0:_0x1322b9[_0x149a98(0x1d2)]()[_0x149a98(0x219)]()[_0x149a98(0x1ba)]()));return;}let _0x22e4a1=[...this[_0x149a98(0x1b8)],_0x3a4bad['coordinate']];this['buildDrawingFeature'](_0x22e4a1),this['dispatchEvent'](new DrawEvent(DrawEventType[_0x149a98(0x1be)],this[_0x149a98(0x20e)],this['_drawingCoordinates']));}}[a47_0x2cfb12(0x1c7)](_0xb7c8bd){const _0x3b5902=a47_0x2cfb12;var _0x13f3b5,_0x5bc225,_0xb381d4;let _0x342702='';this[_0x3b5902(0x1c3)]==_0x3b5902(0x1b9)&&(this['startDrawing_'](_0xb7c8bd['coordinate']),this['dispatchEvent'](new ShEvent(DrawEventType[_0x3b5902(0x1ff)],this[_0x3b5902(0x1c3)],_0xb7c8bd[_0x3b5902(0x1dd)],this['_drawingCoordinates'],(_0x13f3b5=this['getMap']())===null||_0x13f3b5===void 0x0?void 0x0:_0x13f3b5['getView']()[_0x3b5902(0x219)]()[_0x3b5902(0x1ba)]())),this[_0x3b5902(0x211)]());!this[_0x3b5902(0x1d6)]?_0x342702=this[_0x3b5902(0x1c3)]==_0x3b5902(0x20b)?_0x3b5902(0x1cd):_0x3b5902(0x1db):(_0x342702=_0x3b5902(0x1eb),((_0x5bc225=this[_0x3b5902(0x1b8)])===null||_0x5bc225===void 0x0?void 0x0:_0x5bc225[_0x3b5902(0x1e2)])===this[_0x3b5902(0x1cf)]-0x1&&(_0x342702=_0x3b5902(0x1fc)),((_0xb381d4=this[_0x3b5902(0x1b8)])===null||_0xb381d4===void 0x0?void 0x0:_0xb381d4[_0x3b5902(0x1e2)])>=this[_0x3b5902(0x1c9)]&&this[_0x3b5902(0x1cf)]===Number[_0x3b5902(0x1bd)]&&(_0x342702=_0x3b5902(0x216)));this['tipText']!=undefined&&(_0x342702=this[_0x3b5902(0x1dc)]);this[_0x3b5902(0x1f1)](_0xb7c8bd[_0x3b5902(0x1dd)],_0x342702);if(this[_0x3b5902(0x1d6)]&&this['_type']!=_0x3b5902(0x20b)){let _0x11ee63=[...this['_drawingCoordinates'],_0xb7c8bd[_0x3b5902(0x1dd)]];this[_0x3b5902(0x222)](_0x11ee63);}this[_0x3b5902(0x1e5)](new DrawEvent(DrawEventType['DRAWMOVING'],this[_0x3b5902(0x20e)],this[_0x3b5902(0x1b8)]));}[a47_0x2cfb12(0x1d1)](_0x1db815){const _0x159e13=a47_0x2cfb12;var _0x5cd4a1;let _0x31a94c=![],_0x4fb0bd=this[_0x159e13(0x1b8)][_0x159e13(0x1e2)];if(_0x4fb0bd>this['_minPoints']&&this[_0x159e13(0x1cf)]===Number[_0x159e13(0x1bd)]){const _0x3fd553=this['_drawingCoordinates'][this[_0x159e13(0x1b8)][_0x159e13(0x1e2)]-0x1],_0x492674=(_0x5cd4a1=this[_0x159e13(0x21c)]())===null||_0x5cd4a1===void 0x0?void 0x0:_0x5cd4a1[_0x159e13(0x1bb)](_0x3fd553),_0x5efaf1=_0x1db815[0x0]-(_0x492674?_0x492674[0x0]:0x0),_0x184e86=_0x1db815[0x1]-(_0x492674?_0x492674[0x1]:0x0);_0x31a94c=Math[_0x159e13(0x1d9)](_0x5efaf1*_0x5efaf1+_0x184e86*_0x184e86)<=this[_0x159e13(0x1f7)];}return _0x31a94c;}[a47_0x2cfb12(0x1fe)](_0x5a6e45){const _0x497bb5=a47_0x2cfb12;this[_0x497bb5(0x1d6)]=!![],this[_0x497bb5(0x1b8)]=[_0x5a6e45[_0x497bb5(0x1e6)]()],this[_0x497bb5(0x20e)]=this[_0x497bb5(0x209)](),this[_0x497bb5(0x1d4)](),this[_0x497bb5(0x1e5)](new DrawEvent(DrawEventType[_0x497bb5(0x1f6)],this[_0x497bb5(0x20e)],this['_drawingCoordinates']));}[a47_0x2cfb12(0x211)](){const _0x43879f=a47_0x2cfb12;if(this[_0x43879f(0x1b8)][_0x43879f(0x1e2)]>this[_0x43879f(0x1c9)]){this['buildDrawingFeature'](this[_0x43879f(0x1b8)]);let _0x5e0468=this[_0x43879f(0x1b8)];const _0xc69d49=this['abortDrawing_']();if(!_0xc69d49)return;this[_0x43879f(0x1e5)](new DrawEvent(DrawEventType[_0x43879f(0x1da)],_0xc69d49,_0x5e0468)),this[_0x43879f(0x1e8)]&&this[_0x43879f(0x1e8)][_0x43879f(0x21a)](_0xc69d49),this[_0x43879f(0x1f3)]&&this[_0x43879f(0x1f3)][_0x43879f(0x1e7)](_0xc69d49);}}[a47_0x2cfb12(0x1ce)](_0xd428d7){const _0x4e2314=a47_0x2cfb12;this['_drawingCoordinates'][_0x4e2314(0x21a)](_0xd428d7),this[_0x4e2314(0x20e)]=this[_0x4e2314(0x209)](),this['updateSketchFeatures_']();}[a47_0x2cfb12(0x209)](){const _0x4975ee=a47_0x2cfb12,_0x31fc19=new MultiPoint(this[_0x4975ee(0x1b8)]);let _0x4ea2de=new a47_0x1b9494();return _0x4ea2de[_0x4975ee(0x1ca)](_0x31fc19),_0x4ea2de;}[a47_0x2cfb12(0x1bc)](){const _0x5078be=a47_0x2cfb12;var _0x467ace,_0x4777e7;this['_isStayDraw']=![];const _0x3fab04=this[_0x5078be(0x20e)];return this['_sketchFeature']=undefined,this[_0x5078be(0x1b8)]=[],(_0x467ace=this['_overlay']['getSource']())===null||_0x467ace===void 0x0?void 0x0:_0x467ace[_0x5078be(0x1e9)](!![]),(_0x4777e7=this[_0x5078be(0x1c4)][_0x5078be(0x1f0)]())===null||_0x4777e7===void 0x0?void 0x0:_0x4777e7['clear'](!![]),_0x3fab04;}[a47_0x2cfb12(0x20a)](){const _0x468c6a=a47_0x2cfb12,_0x1a4691=this['abortDrawing_']();_0x1a4691&&this['dispatchEvent'](new DrawEvent(DrawEventType[_0x468c6a(0x1c6)],_0x1a4691,this['_drawingCoordinates']));}[a47_0x2cfb12(0x222)](_0x162c83){const _0x397bb3=a47_0x2cfb12;this['_sketchFeature']=new a47_0x1b9494();let _0x2d89f2=createPlot(this[_0x397bb3(0x1c3)],_0x162c83);if(!_0x2d89f2)return;this['_sketchFeature'][_0x397bb3(0x1ca)](_0x2d89f2);let _0x128d78=[a47_0x17b3cc[_0x397bb3(0x1cc)],a47_0x17b3cc[_0x397bb3(0x212)],a47_0x17b3cc[_0x397bb3(0x217)]];if(_0x128d78[_0x397bb3(0x1f8)](this[_0x397bb3(0x1c3)])>-0x1&&this[_0x397bb3(0x1c8)]){}const _0x2fadbc=this[_0x397bb3(0x21c)]();this[_0x397bb3(0x20e)][_0x397bb3(0x213)](getStyle(this[_0x397bb3(0x1c3)],this[_0x397bb3(0x1c8)],this[_0x397bb3(0x21c)]())),this['updateSketchFeatures_']();}[a47_0x2cfb12(0x1d4)](){const _0x5716cb=a47_0x2cfb12,_0x1d63fa=this[_0x5716cb(0x1fa)][_0x5716cb(0x1f0)]();_0x1d63fa&&this[_0x5716cb(0x20e)]&&(_0x1d63fa['clear'](!![]),_0x1d63fa[_0x5716cb(0x1e7)](this[_0x5716cb(0x20e)]));}[a47_0x2cfb12(0x1d8)](){const _0x4d3064=a47_0x2cfb12;if(this[_0x4d3064(0x1d6)]){if(this[_0x4d3064(0x1b8)]&&this[_0x4d3064(0x1b8)][_0x4d3064(0x1e2)]>0x0){const _0x332d2a=this[_0x4d3064(0x1fa)]['getSource']();_0x332d2a===null||_0x332d2a===void 0x0?void 0x0:_0x332d2a[_0x4d3064(0x1e9)](!![]),this['_drawingCoordinates'][_0x4d3064(0x210)](),this[_0x4d3064(0x1b8)][_0x4d3064(0x1e2)]>=this[_0x4d3064(0x1c9)]&&this[_0x4d3064(0x222)](this['_drawingCoordinates']),this[_0x4d3064(0x1b8)][_0x4d3064(0x1e2)]===0x0&&(this[_0x4d3064(0x1d6)]=![]);}}}[a47_0x2cfb12(0x1f1)](_0x6e2620,_0x912c93){const _0x196933=a47_0x2cfb12;var _0x37de39,_0x2a31d3,_0x56d496,_0x48864b;if(!this['_showTip'])return;const _0x4f8c7c=this['_tipOverlay'][_0x196933(0x1f0)]();_0x4f8c7c===null||_0x4f8c7c===void 0x0?void 0x0:_0x4f8c7c['clear'](!![]),(_0x37de39=this[_0x196933(0x1d3)])===null||_0x37de39===void 0x0?void 0x0:_0x37de39[_0x196933(0x1ca)](new Point(_0x6e2620)),(_0x56d496=(_0x2a31d3=this[_0x196933(0x215)])===null||_0x2a31d3===void 0x0?void 0x0:_0x2a31d3['getText']())===null||_0x56d496===void 0x0?void 0x0:_0x56d496[_0x196933(0x1ef)](_0x912c93),(_0x48864b=this[_0x196933(0x1d3)])===null||_0x48864b===void 0x0?void 0x0:_0x48864b[_0x196933(0x213)](this['_tipStyle']),this[_0x196933(0x1d3)]&&(_0x4f8c7c===null||_0x4f8c7c===void 0x0?void 0x0:_0x4f8c7c[_0x196933(0x1e7)](this[_0x196933(0x1d3)]));}}function getDefaultStyleFunction(){const _0x50643f=createEditingStyle();return function(_0x46687a,_0x4e1a41){const _0x27a81d=a47_0x1ed1,_0x5116eb=_0x50643f[_0x46687a[_0x27a81d(0x207)]()[_0x27a81d(0x1e1)]()];if(_0x5116eb&&_0x27a81d(0x20d)==_0x46687a[_0x27a81d(0x207)]()[_0x27a81d(0x1e1)]()){}};}
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
- function a48_0x4ce6(_0x4928f9,_0x534e01){const _0xe9d3d=a48_0xe9d3();return a48_0x4ce6=function(_0x4ce60f,_0x229d28){_0x4ce60f=_0x4ce60f-0x125;let _0x289bde=_0xe9d3d[_0x4ce60f];return _0x289bde;},a48_0x4ce6(_0x4928f9,_0x534e01);}const a48_0x3d3e4a=a48_0x4ce6;function a48_0xe9d3(){const _0xb73c57=['has','name','removeInteraction','get','addInteraction','clear','map','641376yWfJmK','3330840kEtidg','863608hczEhv','1679478IEAolF','1193436PDoNDG','249017qTmeRw','7dCRIfx','interactions','3007095pTuLNV','removeAllInteractions','40kgBggP','delete','6pQEsjy','set'];a48_0xe9d3=function(){return _0xb73c57;};return a48_0xe9d3();}(function(_0x55aeb4,_0x3a4027){const _0x1d6b92=a48_0x4ce6,_0x56d0dc=_0x55aeb4();while(!![]){try{const _0x22b5d5=-parseInt(_0x1d6b92(0x12f))/0x1*(-parseInt(_0x1d6b92(0x136))/0x2)+parseInt(_0x1d6b92(0x12d))/0x3+-parseInt(_0x1d6b92(0x12b))/0x4+parseInt(_0x1d6b92(0x132))/0x5+parseInt(_0x1d6b92(0x12a))/0x6+parseInt(_0x1d6b92(0x130))/0x7*(-parseInt(_0x1d6b92(0x12c))/0x8)+parseInt(_0x1d6b92(0x12e))/0x9*(-parseInt(_0x1d6b92(0x134))/0xa);if(_0x22b5d5===_0x3a4027)break;else _0x56d0dc['push'](_0x56d0dc['shift']());}catch(_0x5bb819){_0x56d0dc['push'](_0x56d0dc['shift']());}}}(a48_0xe9d3,0x84d73));export default class InteractionManager{constructor(_0xd1ea5c){const _0x4ec868=a48_0x4ce6;this[_0x4ec868(0x129)]=_0xd1ea5c,this[_0x4ec868(0x131)]=new Map();}[a48_0x3d3e4a(0x127)](_0x33b7c5,_0x32f6fe){const _0x51bc3a=a48_0x3d3e4a;this[_0x51bc3a(0x131)][_0x51bc3a(0x138)](_0x33b7c5)&&this['removeInteraction'](_0x33b7c5),_0x32f6fe[_0x51bc3a(0x137)](_0x51bc3a(0x139),_0x33b7c5),this[_0x51bc3a(0x131)][_0x51bc3a(0x137)](_0x33b7c5,_0x32f6fe),this[_0x51bc3a(0x129)]['addInteraction'](_0x32f6fe);}[a48_0x3d3e4a(0x125)](_0x35d9ba){const _0x22acf5=a48_0x3d3e4a,_0x41f3d7=this[_0x22acf5(0x131)][_0x22acf5(0x126)](_0x35d9ba);_0x41f3d7&&(this[_0x22acf5(0x129)][_0x22acf5(0x125)](_0x41f3d7),this[_0x22acf5(0x131)][_0x22acf5(0x135)](_0x35d9ba));}[a48_0x3d3e4a(0x133)](){const _0x28b166=a48_0x3d3e4a;this[_0x28b166(0x131)]['forEach'](_0x33ab13=>{const _0x3fce22=_0x28b166;this[_0x3fce22(0x129)][_0x3fce22(0x125)](_0x33ab13);}),this[_0x28b166(0x131)][_0x28b166(0x128)]();}['getInteraction'](_0x31d832){const _0x54eb98=a48_0x3d3e4a;return this['interactions'][_0x54eb98(0x126)](_0x31d832);}}
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_0x29e26c=a49_0x26a0;(function(_0x5cf41f,_0x70f8d6){var _0x362c3b=a49_0x26a0,_0x51c498=_0x5cf41f();while(!![]){try{var _0x31fd61=-parseInt(_0x362c3b(0x189))/0x1+parseInt(_0x362c3b(0x190))/0x2*(-parseInt(_0x362c3b(0x19a))/0x3)+-parseInt(_0x362c3b(0x183))/0x4*(-parseInt(_0x362c3b(0x19b))/0x5)+-parseInt(_0x362c3b(0x196))/0x6+parseInt(_0x362c3b(0x199))/0x7+-parseInt(_0x362c3b(0x18d))/0x8+parseInt(_0x362c3b(0x180))/0x9*(parseInt(_0x362c3b(0x185))/0xa);if(_0x31fd61===_0x70f8d6)break;else _0x51c498['push'](_0x51c498['shift']());}catch(_0x59058a){_0x51c498['push'](_0x51c498['shift']());}}}(a49_0x4562,0x1b24d));import{Modify as a49_0x4036a,Select,Translate as a49_0x1a9879}from'ol/interaction';import a49_0x7be173 from'ol/geom/GeometryCollection';import{MultiPoint}from'ol/geom';function a49_0x26a0(_0x1fbb61,_0x2849bc){var _0x456267=a49_0x4562();return a49_0x26a0=function(_0x26a0f2,_0xc820fc){_0x26a0f2=_0x26a0f2-0x17a;var _0x57b855=_0x456267[_0x26a0f2];return _0x57b855;},a49_0x26a0(_0x1fbb61,_0x2849bc);}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_0x29e26c(0x187)}),'stroke':new Stroke({'color':a49_0x29e26c(0x195),'width':0x2})}),'stroke':new Stroke({'color':'rgba(0,255,255,0.6)','width':0x2}),'fill':new Fill({'color':'rgba(0,255,255,0.2)'}),'geometry':_0x52a00f=>{var _0x535c53=a49_0x29e26c,_0x72c1a1,_0x443fc0,_0x3c4797,_0x4d95f3,_0x321c73;let _0x2e0df9=[];if(((_0x72c1a1=_0x52a00f[_0x535c53(0x186)]())===null||_0x72c1a1===void 0x0?void 0x0:_0x72c1a1[_0x535c53(0x17c)]())===_0x535c53(0x194))(_0x443fc0=_0x52a00f[_0x535c53(0x186)]())===null||_0x443fc0===void 0x0?void 0x0:_0x443fc0[_0x535c53(0x198)]()[0x0]['forEach'](_0x3f3a02=>{var _0xaa321d=_0x535c53;_0x2e0df9[_0xaa321d(0x17b)](_0x3f3a02);});else{if(((_0x3c4797=_0x52a00f[_0x535c53(0x186)]())===null||_0x3c4797===void 0x0?void 0x0:_0x3c4797[_0x535c53(0x17c)]())===_0x535c53(0x18f))_0x52a00f[_0x535c53(0x186)]()['getCoordinates']()[0x0][_0x535c53(0x19d)](_0x29e77a=>{var _0x4cdf0b=_0x535c53;_0x29e77a['forEach'](_0x3508f4=>{var _0x498e47=a49_0x26a0;_0x2e0df9[_0x498e47(0x17b)](_0x3508f4);}),_0x2e0df9[_0x4cdf0b(0x17b)](_0x29e77a);});else((_0x4d95f3=_0x52a00f[_0x535c53(0x186)]())===null||_0x4d95f3===void 0x0?void 0x0:_0x4d95f3[_0x535c53(0x17c)]())===_0x535c53(0x193)?_0x2e0df9=_0x52a00f['getGeometry']()[_0x535c53(0x198)]():_0x2e0df9=[(_0x321c73=_0x52a00f['getGeometry']())===null||_0x321c73===void 0x0?void 0x0:_0x321c73['getCoordinates']()];}return new a49_0x7be173([_0x52a00f[_0x535c53(0x186)](),new MultiPoint(_0x2e0df9)]);}});function a49_0x4562(){var _0x25faa2=['map','push','getType','some','isSelected','translate','9JvjqmK','filter','modifyInteraction','1376tQqJyF','assign','6356920iezYOK','getGeometry','rgba(25,25,125,0.8)','getMap','112712GgpPIC','addInteraction','length','setMap','1503808CFJInk','removeInteraction','MultiPolygon','2XIWsdo','getFeatures','refresh','LineString','Polygon','rgba(255,255,255,0.6)','730560oVKrkw','remove','getCoordinates','150416YoRThP','633813JgzCnY','1275hbBTrA','getId','forEach'];a49_0x4562=function(){return _0x25faa2;};return a49_0x4562();}export default class Modify extends Select{constructor(_0x1a385d){var _0x3f8839=a49_0x29e26c;_0x1a385d=_0x1a385d||{};const _0xbd4d1d=Object[_0x3f8839(0x184)]({},_0x1a385d);_0xbd4d1d['style']=selectModifyStyle,_0xbd4d1d[_0x3f8839(0x181)]=_0x1866eb=>{var _0x4f8c46=_0x3f8839;if(!_0x1866eb[_0x4f8c46(0x17e)])return![];if(this['sourceFeatures']==undefined||this['sourceFeatures'][_0x4f8c46(0x18b)]==0x0)return![];return this['sourceFeatures'][_0x4f8c46(0x17d)](_0x43e8fc=>_0x43e8fc[_0x4f8c46(0x19c)]()===_0x1866eb[_0x4f8c46(0x19c)]());},super(_0xbd4d1d),this['map']=null,this['sourceFeatures']=_0x1a385d['editFeatures'],this[_0x3f8839(0x182)]=new a49_0x4036a({'features':this[_0x3f8839(0x191)]()}),this['translate']=new a49_0x1a9879({'features':this[_0x3f8839(0x191)](),'condition':platformModifierKeyOnly}),this[_0x3f8839(0x191)]()['on']('add',_0x8a9f00=>{var _0x444fc7=_0x3f8839,_0x5eba0c,_0x14106b;this[_0x444fc7(0x17a)]=this[_0x444fc7(0x188)](),(_0x5eba0c=this['getMap']())===null||_0x5eba0c===void 0x0?void 0x0:_0x5eba0c[_0x444fc7(0x18a)](this[_0x444fc7(0x182)]),(_0x14106b=this[_0x444fc7(0x188)]())===null||_0x14106b===void 0x0?void 0x0:_0x14106b['addInteraction'](this['translate']);}),this[_0x3f8839(0x191)]()['on'](_0x3f8839(0x197),_0x47807c=>{var _0x3d4576=_0x3f8839,_0x15ad7e,_0x469dac;(_0x15ad7e=this[_0x3d4576(0x188)]())===null||_0x15ad7e===void 0x0?void 0x0:_0x15ad7e['removeInteraction'](this[_0x3d4576(0x182)]),(_0x469dac=this[_0x3d4576(0x188)]())===null||_0x469dac===void 0x0?void 0x0:_0x469dac[_0x3d4576(0x18e)](this[_0x3d4576(0x17f)]),this[_0x3d4576(0x188)]()[_0x3d4576(0x192)]();});}['setMap'](_0x4fc2c8){var _0x50f4b5=a49_0x29e26c;super[_0x50f4b5(0x18c)](_0x4fc2c8),!_0x4fc2c8&&this[_0x50f4b5(0x17a)]&&(this['map']['removeInteraction'](this[_0x50f4b5(0x182)]),this[_0x50f4b5(0x17a)][_0x50f4b5(0x18e)](this[_0x50f4b5(0x17f)]));}}
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_0x1dda2c=a50_0x524f;(function(_0x115b7f,_0x7d9ff0){const _0x294cc6=a50_0x524f,_0x588c3b=_0x115b7f();while(!![]){try{const _0x4b13ae=parseInt(_0x294cc6(0xd4))/0x1+-parseInt(_0x294cc6(0xf6))/0x2*(parseInt(_0x294cc6(0xe3))/0x3)+parseInt(_0x294cc6(0x114))/0x4+parseInt(_0x294cc6(0x106))/0x5*(parseInt(_0x294cc6(0xf2))/0x6)+parseInt(_0x294cc6(0x107))/0x7+parseInt(_0x294cc6(0x109))/0x8+-parseInt(_0x294cc6(0x10e))/0x9;if(_0x4b13ae===_0x7d9ff0)break;else _0x588c3b['push'](_0x588c3b['shift']());}catch(_0x1e1c24){_0x588c3b['push'](_0x588c3b['shift']());}}}(a50_0x21a8,0xc441a));import a50_0x43335e from'./Draw';import a50_0x2353e2 from'ol/events/Event';function a50_0x21a8(){const _0x1596fc=['getType','602755tMpQgp','8491623sLelFB','selectedPointFeatures','5459808dOpxPL','Point','MultiPolygon','getMap','selectLayer','17651196DKIUbg','holdCtrl','map','pixelDistance','onInternal','MultiLineString','6084456GXqohU','import','selectedPolygonFeatures','seletctEditeFeature','keydown','cancePointStyle','pointFeatures','pointStyle','allFeatures','getSource','selectedLineFeatures','currentLayers','layerType','draw','allSelectedFeatures','getLineTempLayer','selectLayers','getResolution','selectIndex','59018nBHmtp','addTempLayer','length','url','lineStyle','selectGeom','SELECTED','SELECTSTART','layerInfo','Polygon','getArray','setSelectLayers','coordinates','includes','push','12372xWnBRa','LineString','addEventListener','getLayers','setStyle','dispatchEvent','selected','addFeatures','getPolygonTempLayer','getLayerById','forEach','union','canceLineStyle','polygonStyle','cut','18tqWDXM','getProjection','getGeometry','ctrlKey','520NWBWPc','message','cancePolygonStyle','未获取到几何','lineFeatures','getView','getVisible','getSelectedFeatures','fromType','keyup','polygonFeatures','error','selectStart','feature','selectTempLayer'];a50_0x21a8=function(){return _0x1596fc;};return a50_0x21a8();}import{bufferPixel,intersects}from'../utils/GeometryUtil';import{Point}from'ol/geom';import a50_0x13e76d from'../feature/FeatureManager';import{getSelectCancelLineStyle,getSelectCancelPolygonStyle,getSelectCancePointStyle,getSelectLineStyle,getSelectPointStyle,getSelectPolygonStyle,getStyle}from'../style/StyleManager';import{selectFeaturesByGeo}from'../utils/tasks';function a50_0x524f(_0x15c4a6,_0x21a58e){const _0x21a8e5=a50_0x21a8();return a50_0x524f=function(_0x524ff9,_0x10be8d){_0x524ff9=_0x524ff9-0xc4;let _0x37d2be=_0x21a8e5[_0x524ff9];return _0x37d2be;},a50_0x524f(_0x15c4a6,_0x21a58e);}const SelectEventType={'SELECTSTART':a50_0x1dda2c(0x102),'SELECTED':a50_0x1dda2c(0xe9)};export class SelectEvent extends a50_0x2353e2{constructor(_0x522f2f,_0x174fbf,_0x28384b,_0x1e7bfe,_0x138b29,_0x5977dd,_0x4d0c29,_0x262b6e,_0x726d96){const _0x5c35cb=a50_0x1dda2c;super(_0x522f2f),this[_0x5c35cb(0xd9)]=_0x28384b,this['coordinates']=_0x1e7bfe,this[_0x5c35cb(0xc7)]=_0x138b29,this[_0x5c35cb(0xfa)]=_0x5977dd,this[_0x5c35cb(0x100)]=_0x4d0c29,this[_0x5c35cb(0xc9)]=_0x262b6e,this[_0x5c35cb(0x101)]=_0x726d96,this[_0x5c35cb(0x10f)]=_0x174fbf;}}export default class Select extends a50_0x43335e{constructor(_0x32ba15,_0x402865){const _0x1a1b9f=a50_0x1dda2c;super(_0x32ba15,{'tipText':_0x402865===null||_0x402865===void 0x0?void 0x0:_0x402865['tipText']}),this['selectedPointFeatures']=[],this[_0x1a1b9f(0xcb)]=[],this[_0x1a1b9f(0x116)]=[],this['allSelectedFeatures']=[];const _0x2847a7=_0x402865||{};this[_0x1a1b9f(0xd5)]=_0x2847a7[_0x1a1b9f(0xd5)]||![],this[_0x1a1b9f(0xcc)]=_0x2847a7[_0x1a1b9f(0xd1)],this[_0x1a1b9f(0x104)]=_0x2847a7[_0x1a1b9f(0x104)]===undefined?!![]:_0x2847a7[_0x1a1b9f(0x104)],this[_0x1a1b9f(0x111)]=_0x2847a7[_0x1a1b9f(0x111)]===undefined?0x5:_0x2847a7['pixelDistance'],this[_0x1a1b9f(0xc8)]=_0x2847a7['pointStyle']?getStyle(_0x2847a7['pointStyle']):getSelectPointStyle(),this[_0x1a1b9f(0xc6)]=_0x2847a7[_0x1a1b9f(0xc6)]?getStyle(_0x2847a7['cancePointStyle']):getSelectCancePointStyle(),this['lineStyle']=_0x2847a7['lineStyle']?getStyle(_0x2847a7[_0x1a1b9f(0xd8)]):getSelectLineStyle(),this['canceLineStyle']=_0x2847a7[_0x1a1b9f(0xef)]?getStyle(_0x2847a7[_0x1a1b9f(0xef)]):getSelectCancelLineStyle(),this[_0x1a1b9f(0xf0)]=_0x2847a7['polygonStyle']?getStyle(_0x2847a7[_0x1a1b9f(0xf0)]):getSelectPolygonStyle(),this[_0x1a1b9f(0xf8)]=_0x2847a7['cancePolygonStyle']?getStyle(_0x2847a7[_0x1a1b9f(0xf8)]):getSelectCancelPolygonStyle(),this['holdCtrl']=![];let _0x57beb5;this['on']=this[_0x1a1b9f(0x112)],this['on']('drawEnd',async _0x15e374=>{const _0x5ec7ed=_0x1a1b9f,_0x1e7fcf=this[_0x5ec7ed(0x10f)],_0x53af32=this[_0x5ec7ed(0x10c)]();if(!_0x53af32)return;try{let _0x26df9d=undefined;if(!_0x15e374[_0x5ec7ed(0x103)]&&_0x15e374['coordinates']&&_0x15e374['coordinates'][_0x5ec7ed(0xd6)]==0x1)_0x26df9d=bufferPixel(new Point(_0x15e374[_0x5ec7ed(0xe0)][0x0]),this[_0x5ec7ed(0x111)],_0x53af32);else _0x15e374[_0x5ec7ed(0x103)]&&(_0x26df9d=_0x15e374[_0x5ec7ed(0x103)][_0x5ec7ed(0xf4)]());if(!_0x26df9d)throw new Error(_0x5ec7ed(0xf9));this['dispatchEvent'](new SelectEvent(SelectEventType[_0x5ec7ed(0xdb)],_0x1e7fcf,_0x26df9d)),this[_0x5ec7ed(0x108)]=[],this[_0x5ec7ed(0xcb)]=[],this['selectedPolygonFeatures']=[],this[_0x5ec7ed(0xcf)]=[],this[_0x5ec7ed(0x104)]&&this[_0x5ec7ed(0xc4)](_0x26df9d),_0x57beb5&&clearTimeout(_0x57beb5),_0x57beb5=setTimeout(async()=>{const _0x1612d1=_0x5ec7ed;await this[_0x1612d1(0x10d)](_0x26df9d),this[_0x1612d1(0xe8)](new SelectEvent(SelectEventType['SELECTED'],_0x1e7fcf,_0x26df9d,_0x15e374[_0x1612d1(0xe0)],this['selectedPointFeatures'],this[_0x1612d1(0xcb)],this[_0x1612d1(0x116)],this[_0x1612d1(0xcf)]));},0x46);}catch(_0x4fa07a){this[_0x5ec7ed(0xe8)](new SelectEvent(SelectEventType[_0x5ec7ed(0xda)],_0x1e7fcf,undefined,_0x15e374[_0x5ec7ed(0xe0)],this[_0x5ec7ed(0x108)],this[_0x5ec7ed(0xcb)],this[_0x5ec7ed(0x116)],this[_0x5ec7ed(0xcf)],_0x4fa07a[_0x5ec7ed(0xf7)]));}}),window[_0x1a1b9f(0xe5)](_0x1a1b9f(0xc5),_0x1ef363=>{const _0x2dbba5=_0x1a1b9f;_0x1ef363[_0x2dbba5(0xf5)]&&(this[_0x2dbba5(0x10f)]=!![]);}),window[_0x1a1b9f(0xe5)](_0x1a1b9f(0xff),_0x338fb6=>{const _0x13ac46=_0x1a1b9f;this[_0x13ac46(0x10f)]=![];});}[a50_0x1dda2c(0xdf)](_0x36c021){const _0x322548=a50_0x1dda2c;this[_0x322548(0xcc)]=_0x36c021;}async[a50_0x1dda2c(0x10d)](_0x3d86d7){const _0x1afec8=a50_0x1dda2c;var _0x503dda;const _0x3fe7d0=this['getMap']();let _0x57a959=[];if(this[_0x1afec8(0xcc)]&&this[_0x1afec8(0xcc)][_0x1afec8(0xd6)]>0x0)_0x57a959=this[_0x1afec8(0xcc)];else{let _0x41bf47=_0x3fe7d0[_0x1afec8(0xe6)]()[_0x1afec8(0xde)]();_0x41bf47=_0x41bf47['filter'](_0x2f11b7=>{const _0x1a3f7a=_0x1afec8,_0x546738=_0x2f11b7[_0x1a3f7a(0xdc)];if(!_0x546738)return![];return _0x2f11b7['getVisible']()==!![]&&_0x546738['selectIndex']!=undefined&&_0x546738['selectIndex']!='';}),_0x57a959=_0x41bf47[_0x1afec8(0x110)](_0x568c5b=>{const _0x4496c0=_0x1afec8;return _0x568c5b[_0x4496c0(0xdc)];});}if(!_0x57a959||_0x57a959[_0x1afec8(0xd6)]==0x0)return;const _0x46a7e7=_0x3fe7d0[_0x1afec8(0xfb)]()[_0x1afec8(0xf3)]()['getCode'](),_0x53d2de=_0x3fe7d0[_0x1afec8(0xfb)]()[_0x1afec8(0xd2)]();for(let _0x51d163=0x0,_0xae179e=_0x57a959[_0x1afec8(0xd6)];_0x51d163<_0xae179e;_0x51d163++){const _0x2cc9a5=_0x57a959[_0x51d163],_0x24b803=_0x3fe7d0[_0x1afec8(0xec)](_0x2cc9a5['id']);if(!_0x24b803||_0x24b803[_0x1afec8(0xfc)]()==![]||!_0x2cc9a5||!_0x2cc9a5['url']||!_0x2cc9a5['selectIndex'])continue;let _0x1bdc3a=await selectFeaturesByGeo(_0x3d86d7,_0x46a7e7,_0x2cc9a5[_0x1afec8(0xd7)],_0x2cc9a5[_0x1afec8(0xd3)],_0x2cc9a5[_0x1afec8(0xcd)],_0x2cc9a5['loadFilter'],_0x53d2de);if(_0x1bdc3a['length']>0x0){this[_0x1afec8(0xcf)][_0x1afec8(0xe2)](..._0x1bdc3a);let _0x4a4e9a=_0x3fe7d0[_0x1afec8(0xeb)](),_0x3743be=this[_0x1afec8(0xf0)];switch((_0x503dda=_0x1bdc3a[0x0]['getGeometry']())===null||_0x503dda===void 0x0?void 0x0:_0x503dda[_0x1afec8(0x105)]()){case _0x1afec8(0x10a):case'MultiPoint':this[_0x1afec8(0x108)]['push'](..._0x1bdc3a),_0x4a4e9a=_0x3fe7d0['getPointTempLayer'](),_0x3743be=this[_0x1afec8(0xc8)];break;case'LineString':case _0x1afec8(0x113):this[_0x1afec8(0xcb)][_0x1afec8(0xe2)](..._0x1bdc3a),_0x4a4e9a=_0x3fe7d0[_0x1afec8(0xd0)](),_0x3743be=this[_0x1afec8(0xd8)];break;case _0x1afec8(0xdd):case _0x1afec8(0x10b):this['selectedPolygonFeatures'][_0x1afec8(0xe2)](..._0x1bdc3a),_0x4a4e9a=_0x3fe7d0[_0x1afec8(0xeb)](),_0x3743be=this['polygonStyle'];break;default:break;}const _0x43301b=_0x4a4e9a[_0x1afec8(0xca)]();_0x43301b&&(_0x1bdc3a[_0x1afec8(0xed)](_0x13ff0b=>{const _0x351881=_0x1afec8;_0x13ff0b['layerId']=_0x2cc9a5['id'],_0x13ff0b['tempLayer']=_0x4a4e9a,_0x13ff0b[_0x351881(0xe7)](_0x3743be);}),this[_0x1afec8(0xd5)]&&_0x43301b[_0x1afec8(0xea)](_0x1bdc3a));}}}[a50_0x1dda2c(0xc4)](_0x5cf34f){const _0x5abf3f=a50_0x1dda2c,_0x1abf18=new a50_0x13e76d(this[_0x5abf3f(0x10c)]()),_0x8d1ec7=_0x1abf18[_0x5abf3f(0xfd)]();if(!_0x8d1ec7||_0x8d1ec7['length']===0x0)return[];const _0x57493b=['copy',_0x5abf3f(0xf1),_0x5abf3f(0xce),_0x5abf3f(0x115),_0x5abf3f(0xee)],_0xd1b8ac=[];for(const _0x235829 of _0x8d1ec7){if(!_0x235829||!_0x235829['fromType']||!_0x57493b[_0x5abf3f(0xe1)](_0x235829[_0x5abf3f(0xfe)]))continue;const _0x31aebf=_0x235829[_0x5abf3f(0xf4)]();if(!_0x31aebf)continue;if(!intersects(_0x31aebf,_0x5cf34f))continue;let _0x2b2577=this[_0x5abf3f(0xf0)];this[_0x5abf3f(0xcf)]['push'](_0x235829);switch(_0x31aebf['getType']()){case _0x5abf3f(0x10a):case'MultiPoint':this[_0x5abf3f(0x108)][_0x5abf3f(0xe2)](_0x235829),_0x2b2577=this[_0x5abf3f(0xc8)];break;case _0x5abf3f(0xe4):case'MultiLineString':this['selectedLineFeatures']['push'](_0x235829),_0x2b2577=this[_0x5abf3f(0xd8)];break;case _0x5abf3f(0xdd):case _0x5abf3f(0x10b):this[_0x5abf3f(0x116)][_0x5abf3f(0xe2)](_0x235829),_0x2b2577=this['polygonStyle'];break;default:break;}_0x235829['setStyle'](_0x2b2577);}return _0xd1b8ac;}}
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_0x9b35a5=a51_0xa8c7;function a51_0x1d47(){const _0x534c92=['message','9ppsRGC','features','40kTkFHR','push','length','295768halraD','tempLayer','SPLITED','2353576nxGmZY','7chCsUq','error','sourceFeatures','未获取到地图对象','clone','9kUXFzH','splitStart','SPLITSTART','67230CJAgWy','feature','layerId','dispatchEvent','polyline','onInternal','未获取到绘制的分割线','未获取到分割要素','3293358VWtiKe','setGeometry','splitLine','addTempLayer','78990NXKYCG','485336jYgqzB','tipText','drawEnd','315776ZwyEbO','cut','splited','setFeatures','getGeometry'];a51_0x1d47=function(){return _0x534c92;};return a51_0x1d47();}(function(_0x514ff0,_0x193b9b){const _0x1a4950=a51_0xa8c7,_0x5c3094=_0x514ff0();while(!![]){try{const _0x4714e4=parseInt(_0x1a4950(0x80))/0x1+parseInt(_0x1a4950(0x7c))/0x2*(-parseInt(_0x1a4950(0x94))/0x3)+-parseInt(_0x1a4950(0x7d))/0x4+parseInt(_0x1a4950(0x70))/0x5+-parseInt(_0x1a4950(0x78))/0x6*(-parseInt(_0x1a4950(0x8f))/0x7)+parseInt(_0x1a4950(0x8e))/0x8*(-parseInt(_0x1a4950(0x86))/0x9)+-parseInt(_0x1a4950(0x88))/0xa*(-parseInt(_0x1a4950(0x8b))/0xb);if(_0x4714e4===_0x193b9b)break;else _0x5c3094['push'](_0x5c3094['shift']());}catch(_0x5364d1){_0x5c3094['push'](_0x5c3094['shift']());}}}(a51_0x1d47,0x6e443));import a51_0x12e108 from'./Draw';import a51_0x1e95c4 from'ol/events/Event';function a51_0xa8c7(_0x3eb48d,_0x5aaff0){const _0x1d4787=a51_0x1d47();return a51_0xa8c7=function(_0xa8c730,_0x58f3eb){_0xa8c730=_0xa8c730-0x6e;let _0x3dd23=_0x1d4787[_0xa8c730];return _0x3dd23;},a51_0xa8c7(_0x3eb48d,_0x5aaff0);}import{LineString,Polygon,MultiPolygon,MultiLineString}from'ol/geom';import{jstlSplit,splitLineByLine}from'../utils/GeometryUtil';const SplitEventType={'SPLITSTART':a51_0x9b35a5(0x6e),'SPLITED':a51_0x9b35a5(0x82)};export class SplitEvent extends a51_0x1e95c4{constructor(_0x521e79,_0x13000c,_0x4eaa,_0x9a3b76){const _0x56b4f3=a51_0x9b35a5;super(_0x521e79),this[_0x56b4f3(0x7a)]=_0x13000c,this[_0x56b4f3(0x87)]=_0x4eaa,this[_0x56b4f3(0x90)]=_0x9a3b76;}}export default class Split extends a51_0x12e108{constructor(_0x4cb654,_0x10b0e3){const _0xb1ffb5=a51_0x9b35a5,_0x42d75e=(_0x10b0e3===null||_0x10b0e3===void 0x0?void 0x0:_0x10b0e3['splitLineStyle'])||{'outlineColor':'rgba(255,\x200,\x200,\x201)','outlineWidth':0x2};super(_0xb1ffb5(0x74),{'tipText':_0x10b0e3===null||_0x10b0e3===void 0x0?void 0x0:_0x10b0e3[_0xb1ffb5(0x7e)],'style':_0x42d75e}),this[_0xb1ffb5(0x91)]=_0x4cb654;const _0x5814c6=_0x10b0e3||{};this[_0xb1ffb5(0x7b)]=_0x5814c6[_0xb1ffb5(0x7b)]||![],this['on']=this[_0xb1ffb5(0x75)],this['on'](_0xb1ffb5(0x7f),async _0x208ade=>{const _0x39de2c=_0xb1ffb5;var _0x305328;const _0x1e3744=this['getMap']();let _0x302cfe=(_0x305328=_0x208ade[_0x39de2c(0x71)])===null||_0x305328===void 0x0?void 0x0:_0x305328[_0x39de2c(0x84)]();!_0x302cfe&&this[_0x39de2c(0x73)](new SplitEvent(SplitEventType[_0x39de2c(0x8d)],undefined,undefined,_0x39de2c(0x76)));let _0x4d9d71=_0x302cfe;!_0x1e3744&&this[_0x39de2c(0x73)](new SplitEvent(SplitEventType[_0x39de2c(0x8d)],_0x4d9d71,undefined,_0x39de2c(0x92)));(!this[_0x39de2c(0x91)]||this[_0x39de2c(0x91)][_0x39de2c(0x8a)]===0x0)&&this[_0x39de2c(0x73)](new SplitEvent(SplitEventType[_0x39de2c(0x8d)],_0x4d9d71,undefined,_0x39de2c(0x77)));try{this[_0x39de2c(0x73)](new SplitEvent(SplitEventType[_0x39de2c(0x6f)],_0x4d9d71));const _0xd77b33=this['splitFeatures'](_0x4d9d71);this[_0x39de2c(0x73)](new SplitEvent(SplitEventType[_0x39de2c(0x8d)],_0x4d9d71,_0xd77b33));}catch(_0xe7d801){this[_0x39de2c(0x73)](new SplitEvent(SplitEventType[_0x39de2c(0x8d)],_0x4d9d71,undefined,_0xe7d801[_0x39de2c(0x85)]));}});}['splitFeatures'](_0xa8d246){const _0x1fa937=a51_0x9b35a5;var _0x1c7da6;const _0xe5c52e=[],_0x39e065=(_0x1c7da6=this[_0x1fa937(0x91)][0x0][_0x1fa937(0x8c)])===null||_0x1c7da6===void 0x0?void 0x0:_0x1c7da6['getSource']();for(let _0x36fb9f=0x0;_0x36fb9f<this['sourceFeatures']['length'];_0x36fb9f++){const _0x470d9b=this['sourceFeatures'][_0x36fb9f],_0x59b0e2=_0x470d9b[_0x1fa937(0x84)]();let _0x189572=[];if(_0x59b0e2 instanceof Polygon||_0x59b0e2 instanceof MultiPolygon)_0x189572=jstlSplit(_0x59b0e2,_0xa8d246);else(_0x59b0e2 instanceof LineString||_0x59b0e2 instanceof MultiLineString)&&(_0x189572=splitLineByLine(_0x59b0e2,_0xa8d246));if(_0x189572[_0x1fa937(0x8a)]>0x1){_0x470d9b[_0x1fa937(0x79)](_0x189572[0x0]),_0xe5c52e[_0x1fa937(0x89)](_0x470d9b);for(let _0x22be89=0x1;_0x22be89<_0x189572[_0x1fa937(0x8a)];_0x22be89++){const _0x55ee85=_0x470d9b[_0x1fa937(0x93)]();_0x55ee85[_0x1fa937(0x72)]=undefined,_0x55ee85['fromType']=_0x1fa937(0x81),_0x55ee85[_0x1fa937(0x8c)]=_0x470d9b['tempLayer'],_0x55ee85[_0x1fa937(0x79)](_0x189572[_0x22be89]),this[_0x1fa937(0x7b)]&&(_0x39e065===null||_0x39e065===void 0x0?void 0x0:_0x39e065['addFeature'](_0x55ee85)),_0xe5c52e['push'](_0x55ee85);}}}return _0xe5c52e;}[a51_0x9b35a5(0x83)](_0x1e3b4a){const _0xbadd36=a51_0x9b35a5;this[_0xbadd36(0x91)]=_0x1e3b4a;}}
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(_0x563574,_0x5e0e59){const _0x2fe3cc=a52_0x8fd2,_0x210968=_0x563574();while(!![]){try{const _0x44abdd=parseInt(_0x2fe3cc(0xaa))/0x1+parseInt(_0x2fe3cc(0xa9))/0x2+-parseInt(_0x2fe3cc(0x97))/0x3+parseInt(_0x2fe3cc(0x9e))/0x4+parseInt(_0x2fe3cc(0x9d))/0x5*(-parseInt(_0x2fe3cc(0x8d))/0x6)+-parseInt(_0x2fe3cc(0x93))/0x7*(parseInt(_0x2fe3cc(0x94))/0x8)+parseInt(_0x2fe3cc(0x95))/0x9;if(_0x44abdd===_0x5e0e59)break;else _0x210968['push'](_0x210968['shift']());}catch(_0x4f7e7e){_0x210968['push'](_0x210968['shift']());}}}(a52_0x7d6f,0x2cbea));function a52_0x8fd2(_0x6de312,_0x49cb5e){const _0x7d6fb3=a52_0x7d6f();return a52_0x8fd2=function(_0x8fd253,_0x197661){_0x8fd253=_0x8fd253-0x8d;let _0x330e49=_0x7d6fb3[_0x8fd253];return _0x330e49;},a52_0x8fd2(_0x6de312,_0x49cb5e);}import a52_0x1b9475 from'ol/source/ImageArcGISRest';import{Image as a52_0x221edc}from'ol/layer';import{registerProj}from'../utils/RegisterProjUtil';function a52_0x7d6f(){const _0x3f5fc1=['ymin','sublayers','stringify','mapIndex','layerDefs','url','opacity','EPSG:','loadFilter','initialExtent','57730siLpOC','139856zQwKtn','wkid','1767834clBaAg','layerInfo','xmax','projection','ymax','join','26271VknXcU','304hWWoqv','6331410fkfejB','updateParams','972990EYRnQG','selectIndex','spatialReference','xmin','show:','fullExtent','5yOtXsW','290584uOIcdZ'];a52_0x7d6f=function(){return _0x3f5fc1;};return a52_0x7d6f();}export default class ArcgisDynamicLayer extends a52_0x221edc{constructor(_0x210779,_0x2c6801){const _0x3b3cbe=a52_0x8fd2;var _0x31a2ac;let _0x4e6f69={'LAYERS':_0x3b3cbe(0x9b)+((_0x31a2ac=_0x210779[_0x3b3cbe(0xa0)])===null||_0x31a2ac===void 0x0?void 0x0:_0x31a2ac[_0x3b3cbe(0x92)](','))};if(_0x210779['loadFilter']&&_0x210779[_0x3b3cbe(0x98)]){const _0x57bfc0={};_0x57bfc0[_0x210779[_0x3b3cbe(0x98)]]=_0x210779[_0x3b3cbe(0xa7)],_0x4e6f69[_0x3b3cbe(0xa3)]=JSON[_0x3b3cbe(0xa1)](_0x57bfc0);}const _0x54dc74=[_0x2c6801[_0x3b3cbe(0xa8)][_0x3b3cbe(0x9a)],_0x2c6801[_0x3b3cbe(0xa8)][_0x3b3cbe(0x9f)],_0x2c6801['initialExtent'][_0x3b3cbe(0x8f)],_0x2c6801['initialExtent'][_0x3b3cbe(0x91)]],_0x573bfb=[_0x2c6801[_0x3b3cbe(0x9c)][_0x3b3cbe(0x9a)],_0x2c6801[_0x3b3cbe(0x9c)]['ymin'],_0x2c6801[_0x3b3cbe(0x9c)]['xmax'],_0x2c6801[_0x3b3cbe(0x9c)][_0x3b3cbe(0x91)]];let _0x4693b9;_0x2c6801[_0x3b3cbe(0x99)][_0x3b3cbe(0xab)]?_0x4693b9=registerProj(_0x3b3cbe(0xa6)+_0x2c6801[_0x3b3cbe(0x99)][_0x3b3cbe(0xab)],_0x573bfb):_0x4693b9=registerProj(_0x2c6801['spatialReference']['wkt'],_0x573bfb),super({'opacity':_0x210779[_0x3b3cbe(0xa5)],'zIndex':_0x210779[_0x3b3cbe(0xa2)],'source':new a52_0x1b9475({'crossOrigin':'anonymous','projection':_0x4693b9,'ratio':0x1,'url':_0x210779[_0x3b3cbe(0xa4)],'params':_0x4e6f69})}),this['id']=_0x210779['id'],this[_0x3b3cbe(0xa8)]=_0x54dc74,this[_0x3b3cbe(0x90)]=_0x4693b9,this[_0x3b3cbe(0x8e)]=_0x210779;}['setFilter'](_0x3d5260){const _0x3900c7=a52_0x8fd2;var _0x753085;const _0x3ae984={};this[_0x3900c7(0x8e)][_0x3900c7(0x98)]&&(_0x3ae984[this[_0x3900c7(0x8e)][_0x3900c7(0x98)]]=_0x3d5260),(_0x753085=this['getSource']())===null||_0x753085===void 0x0?void 0x0:_0x753085[_0x3900c7(0x96)]({'layerDefs':JSON[_0x3900c7(0xa1)](_0x3d5260)});}}
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
- function a53_0xf88b(_0x15867e,_0x430c75){const _0x2922e8=a53_0x2922();return a53_0xf88b=function(_0xf88b28,_0x357895){_0xf88b28=_0xf88b28-0x18e;let _0x4a16ee=_0x2922e8[_0xf88b28];return _0x4a16ee;},a53_0xf88b(_0x15867e,_0x430c75);}function a53_0x2922(){const _0x55d1f1=['uniqueValueInfos','returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry=','EPSG:',',\x22ymax\x22:','get','xmax','989757cxrACa','symbol','8JsuppU','f\x20=\x20json\x20&\x20','then',',\x22xmax\x22:','projection','type','drawingInfo','loadFilter','fullExtent','defaultSymbol','wkt','simple','56FNSuNE','ymin',',\x22ymin\x22:','where=','295620fxAiTw','10CaZyhv','setStyle','xmin','value','&geometryType=esriGeometryEnvelope&inSR=','length','showIndex','forEach',',\x22spatialReference\x22:{\x22wkid\x22:','readFeatures','wkid','push','mapIndex','98441LryOxa','uniqueValue','initialExtent','1=1','renderer','spatialReference','stringify','error','{\x22xmin\x22:','ymax','addFeatures','657724pxKLPn','616632LYYOyZ','5HWGFLc','find','split','setFilter','&outSR=','1685yBJZSK','createArcGISFeatureLayer','log','layerInfo','3171729SSWAsZ'];a53_0x2922=function(){return _0x55d1f1;};return a53_0x2922();}const a53_0x519609=a53_0xf88b;(function(_0x197e5e,_0x5d1806){const _0x54bfbd=a53_0xf88b,_0x333a03=_0x197e5e();while(!![]){try{const _0x3a0370=parseInt(_0x54bfbd(0x1c0))/0x1*(-parseInt(_0x54bfbd(0x19c))/0x2)+-parseInt(_0x54bfbd(0x1ba))/0x3+-parseInt(_0x54bfbd(0x1b9))/0x4*(-parseInt(_0x54bfbd(0x1bb))/0x5)+parseInt(_0x54bfbd(0x1a0))/0x6+parseInt(_0x54bfbd(0x1ae))/0x7*(-parseInt(_0x54bfbd(0x190))/0x8)+parseInt(_0x54bfbd(0x18e))/0x9*(-parseInt(_0x54bfbd(0x1a1))/0xa)+parseInt(_0x54bfbd(0x1c4))/0xb;if(_0x3a0370===_0x5d1806)break;else _0x333a03['push'](_0x333a03['shift']());}catch(_0x30c82d){_0x333a03['push'](_0x333a03['shift']());}}}(a53_0x2922,0x1e960));import a53_0x44c7c5 from'ol/format/EsriJSON';import a53_0x5a9ac3 from'ol/source/Vector';import{Vector as a53_0xc6f2ae}from'ol/layer';import{jsonp}from'../utils/AxiosUtil';import{createXYZ}from'ol/tilegrid';import{tile as a53_0x9e2bea}from'ol/loadingstrategy';import a53_0x3b0f4d from'ol/layer/Group';import{registerProj}from'../utils/RegisterProjUtil';import{transformedEsriStyle}from'../utils/StyleUtil';import a53_0x383e17 from'ol/Collection';import{appendParam,appendPath}from'../utils/UrlUtil';export default class ArcgisFeatureLayer extends a53_0x3b0f4d{constructor(_0x3b3008,_0x108a5b,_0xf7e23d){const _0x5e1fa4=a53_0xf88b,_0x4bcaf9=[_0x108a5b[_0x5e1fa4(0x1b0)][_0x5e1fa4(0x1a3)],_0x108a5b[_0x5e1fa4(0x1b0)][_0x5e1fa4(0x19d)],_0x108a5b[_0x5e1fa4(0x1b0)][_0x5e1fa4(0x1ca)],_0x108a5b[_0x5e1fa4(0x1b0)][_0x5e1fa4(0x1b7)]],_0x1c6092=[_0x108a5b[_0x5e1fa4(0x198)][_0x5e1fa4(0x1a3)],_0x108a5b['fullExtent']['ymin'],_0x108a5b[_0x5e1fa4(0x198)][_0x5e1fa4(0x1ca)],_0x108a5b[_0x5e1fa4(0x198)][_0x5e1fa4(0x1b7)]];let _0x4ef485;_0x108a5b[_0x5e1fa4(0x1b3)][_0x5e1fa4(0x1ab)]?_0x4ef485=registerProj(_0x5e1fa4(0x1c7)+_0x108a5b[_0x5e1fa4(0x1b3)][_0x5e1fa4(0x1ab)],_0x1c6092):_0x4ef485=registerProj(_0x108a5b['spatialReference'][_0x5e1fa4(0x19a)],_0x1c6092);let _0x34e83b=[];super({'zIndex':_0x3b3008[_0x5e1fa4(0x1ad)]});for(let _0x17647b of _0xf7e23d){let _0x9ab3f0=this[_0x5e1fa4(0x1c1)](_0x3b3008,_0x17647b);_0x34e83b[_0x5e1fa4(0x1ac)](_0x9ab3f0);}this['setLayers'](new a53_0x383e17(_0x34e83b)),this['id']=_0x3b3008['id'],this[_0x5e1fa4(0x1b0)]=_0x4bcaf9,this[_0x5e1fa4(0x194)]=_0x4ef485,this[_0x5e1fa4(0x1c3)]=_0x3b3008;}[a53_0x519609(0x1c1)](_0x4d9065,_0x316aba){const _0x1553a2=a53_0x519609;var _0x22dc1b=new a53_0x44c7c5();let _0x91aa39=new a53_0x5a9ac3({'loader':function(_0x26dbe5,_0x5072dd,_0x57990f){const _0xa57ba0=a53_0xf88b;let _0x215fcd=_0xa57ba0(0x1b1);_0x4d9065[_0xa57ba0(0x197)]&&(_0x215fcd=typeof _0x4d9065[_0xa57ba0(0x197)]==='string'?_0x4d9065['loadFilter']:JSON[_0xa57ba0(0x1b4)](_0x4d9065['loadFilter']));let _0x3368f9=_0x57990f['getCode'](),_0x3ec96b=_0x3368f9[_0xa57ba0(0x1bd)](':')[0x1];var _0xa07252=appendPath(_0x316aba['url'],'/query');_0xa07252=appendParam(_0xa07252,_0xa57ba0(0x191)+_0xa57ba0(0x19f)+encodeURIComponent(_0x215fcd)+_0xa57ba0(0x1c6)+encodeURIComponent(_0xa57ba0(0x1b6)+_0x26dbe5[0x0]+_0xa57ba0(0x19e)+_0x26dbe5[0x1]+_0xa57ba0(0x193)+_0x26dbe5[0x2]+_0xa57ba0(0x1c8)+_0x26dbe5[0x3]+_0xa57ba0(0x1a9)+_0x3ec96b+'}}')+_0xa57ba0(0x1a5)+_0x3ec96b+'&outFields=*'+_0xa57ba0(0x1bf)+_0x3ec96b),jsonp(_0xa07252)[_0xa57ba0(0x192)](_0x39a92d=>{const _0x519766=_0xa57ba0;if(_0x39a92d[_0x519766(0x1b5)])console[_0x519766(0x1c2)](_0x39a92d);else{var _0x46ae16=_0x22dc1b[_0x519766(0x1aa)](_0x39a92d,{'featureProjection':_0x57990f});_0x46ae16[_0x519766(0x1a6)]>0x0&&(_0x316aba[_0x519766(0x196)]['renderer'][_0x519766(0x195)]==_0x519766(0x1af)&&_0x46ae16[_0x519766(0x1a8)](function(_0x38b70b){const _0x37e09f=_0x519766;var _0x25f2f2=_0x38b70b[_0x37e09f(0x1c9)](_0x316aba[_0x37e09f(0x196)]['renderer']['field1']);const _0x922dc6=_0x316aba[_0x37e09f(0x196)][_0x37e09f(0x1b2)][_0x37e09f(0x1c5)][_0x37e09f(0x1bc)](_0x1e9f99=>_0x1e9f99[_0x37e09f(0x1a4)]==_0x25f2f2);let _0x17c7f6;_0x922dc6?_0x17c7f6=transformedEsriStyle(_0x922dc6['symbol']):_0x17c7f6=transformedEsriStyle(_0x316aba[_0x37e09f(0x196)][_0x37e09f(0x1b2)][_0x37e09f(0x199)]),_0x38b70b[_0x37e09f(0x1a2)](_0x17c7f6);}),_0x91aa39[_0x519766(0x1b8)](_0x46ae16));}});},'strategy':a53_0x9e2bea(createXYZ({'tileSize':0x200}))}),_0x423cae=new a53_0xc6f2ae({'source':_0x91aa39,'zIndex':_0x4d9065[_0x1553a2(0x1a7)]});if(_0x316aba['drawingInfo'][_0x1553a2(0x1b2)][_0x1553a2(0x195)]==_0x1553a2(0x19b)&&_0x316aba[_0x1553a2(0x196)]['renderer'][_0x1553a2(0x18f)]){let _0x6b7471=transformedEsriStyle(_0x316aba[_0x1553a2(0x196)]['renderer']['symbol']);_0x423cae['setStyle'](_0x6b7471);}return _0x423cae;}[a53_0x519609(0x1be)](_0x4374ad){const _0x312f9f=a53_0x519609;this[_0x312f9f(0x1c3)][_0x312f9f(0x197)]=_0x4374ad;}}
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(_0x2aa793,_0x271134){const _0x45cb42=a54_0x3f3d,_0x580495=_0x2aa793();while(!![]){try{const _0xdebf61=-parseInt(_0x45cb42(0x165))/0x1*(-parseInt(_0x45cb42(0x163))/0x2)+parseInt(_0x45cb42(0x152))/0x3+-parseInt(_0x45cb42(0x153))/0x4+-parseInt(_0x45cb42(0x150))/0x5+-parseInt(_0x45cb42(0x15d))/0x6*(-parseInt(_0x45cb42(0x166))/0x7)+parseInt(_0x45cb42(0x14e))/0x8*(-parseInt(_0x45cb42(0x14f))/0x9)+-parseInt(_0x45cb42(0x14a))/0xa*(parseInt(_0x45cb42(0x15b))/0xb);if(_0xdebf61===_0x271134)break;else _0x580495['push'](_0x580495['shift']());}catch(_0xdb6423){_0x580495['push'](_0x580495['shift']());}}}(a54_0xecbb,0x79bb2));import a54_0x4325b6 from'ol/layer/Tile';import a54_0x56b6db from'ol/source/XYZ';function a54_0x3f3d(_0x473bed,_0x3d67e9){const _0xecbb81=a54_0xecbb();return a54_0x3f3d=function(_0x3f3d8b,_0xc7ffa0){_0x3f3d8b=_0x3f3d8b-0x148;let _0x441d8c=_0xecbb81[_0x3f3d8b];return _0x441d8c;},a54_0x3f3d(_0x473bed,_0x3d67e9);}import a54_0x59f958 from'ol/tilegrid/TileGrid';import{registerProj}from'../utils/RegisterProjUtil';function a54_0xecbb(){const _0x3ba079=['ymax','ymin','763898BGVjDb','rows','1hJsBMh','1197MzZGWX','tileInfo','wkid','push','layerInfo','80DuAOAE','EPSG:','initialExtent','mapIndex','917912CVsPuV','9EqshSF','700860zogTQV','url','763074HxDWlw','714588yqOZav','resolution','xmin','/tile/{z}/{y}/{x}','spatialReference','wkt','fullExtent','opacity','463859wSkPZi','origin','22218LtgzyB','lods','xmax','length'];a54_0xecbb=function(){return _0x3ba079;};return a54_0xecbb();}import{appendPath}from'../utils/UrlUtil';export default class ArcgisTileLayer extends a54_0x4325b6{constructor(_0x1d7cee,_0xfd5590){const _0x52f69c=a54_0x3f3d,_0x1b562d=_0x1d7cee[_0x52f69c(0x151)]?_0x1d7cee[_0x52f69c(0x151)]:'',_0x4e676f=appendPath(_0x1b562d,_0x52f69c(0x156)),_0x26d418=[_0xfd5590['initialExtent']['xmin'],_0xfd5590[_0x52f69c(0x14c)]['ymin'],_0xfd5590[_0x52f69c(0x14c)][_0x52f69c(0x15f)],_0xfd5590['initialExtent'][_0x52f69c(0x161)]],_0x165c86=[_0xfd5590[_0x52f69c(0x159)][_0x52f69c(0x155)],_0xfd5590[_0x52f69c(0x159)][_0x52f69c(0x162)],_0xfd5590[_0x52f69c(0x159)][_0x52f69c(0x15f)],_0xfd5590[_0x52f69c(0x159)][_0x52f69c(0x161)]];let _0x1011e4;_0xfd5590[_0x52f69c(0x157)][_0x52f69c(0x168)]?_0x1011e4=registerProj(_0x52f69c(0x14b)+_0xfd5590[_0x52f69c(0x157)][_0x52f69c(0x168)],_0x165c86):_0x1011e4=registerProj(_0xfd5590['spatialReference'][_0x52f69c(0x158)],_0x165c86);let _0x46bdea=[];for(let _0x58aaa2=0x0,_0xd2d0e0=_0xfd5590[_0x52f69c(0x167)][_0x52f69c(0x15e)][_0x52f69c(0x160)];_0x58aaa2<_0xd2d0e0;_0x58aaa2++){_0x46bdea[_0x52f69c(0x148)](_0xfd5590['tileInfo'][_0x52f69c(0x15e)][_0x58aaa2][_0x52f69c(0x154)]);}super({'opacity':_0x1d7cee[_0x52f69c(0x15a)],'zIndex':_0x1d7cee[_0x52f69c(0x14d)],'maxResolution':_0x46bdea[0x0]*0x2,'source':new a54_0x56b6db({'url':_0x4e676f,'projection':_0x1011e4,'crossOrigin':'anonymous','tileGrid':new a54_0x59f958({'extent':_0x165c86,'origin':[_0xfd5590['tileInfo'][_0x52f69c(0x15c)]['x'],_0xfd5590['tileInfo'][_0x52f69c(0x15c)]['y']],'resolutions':_0x46bdea,'tileSize':[_0xfd5590[_0x52f69c(0x167)][_0x52f69c(0x164)],_0xfd5590[_0x52f69c(0x167)]['cols']]})})}),this['id']=_0x1d7cee['id'],this[_0x52f69c(0x14c)]=_0x26d418,this['projection']=_0x1011e4,this[_0x52f69c(0x149)]=_0x1d7cee;}}
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;}}