From beb8eb80a778d87ab0f45597bdf65095c93c105f Mon Sep 17 00:00:00 2001 From: mmc <1556375442@qq.com> Date: Sat, 7 Mar 2026 21:30:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=B0=E5=9B=BE=E6=89=93?= =?UTF-8?q?=E7=82=B9=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/presentation/widgets/map/testmap_pages.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/features/home/presentation/widgets/map/testmap_pages.dart b/lib/features/home/presentation/widgets/map/testmap_pages.dart index 4f22ae25..74a08139 100644 --- a/lib/features/home/presentation/widgets/map/testmap_pages.dart +++ b/lib/features/home/presentation/widgets/map/testmap_pages.dart @@ -1259,7 +1259,7 @@ class _MapPageEnterpriseState extends State { Polyline(points: [_markedPoints[i], _markedPoints[i + 1]], color: Colors.orange.withOpacity(0.5), strokeWidth: 1.5), ], ), - if (_markedPoints.isNotEmpty && !_isWorkAreaCompleted) + if (_markedPoints.isNotEmpty && !_isWorkAreaCompleted && _currentRobotMode == RobotMode.point) PolylineLayer( polylines: [ Polyline(points: [_mapCenter, _markedPoints.last], color: Colors.blue.withOpacity(0.5), strokeWidth: 1.5), @@ -1281,7 +1281,7 @@ class _MapPageEnterpriseState extends State { ), ], ), - if (_currentWorkMode == WorkMode.bow && _markedPoints.isNotEmpty && !_isWorkAreaCompleted) + if (_currentWorkMode == WorkMode.bow && _markedPoints.isNotEmpty && !_isWorkAreaCompleted && _currentRobotMode == RobotMode.point) PolygonLayer( polygons: [ Polygon( @@ -1308,7 +1308,7 @@ class _MapPageEnterpriseState extends State { //开始作业之后 // 2. 正在绘制的障碍物打点连线(红色虚线) - if (_isObstacleEditing && _currentObstaclePoints.isNotEmpty) + if (_isObstacleEditing && _currentObstaclePoints.isNotEmpty && _currentRobotMode == RobotMode.point) PolylineLayer( polylines: [ // 已绘制的障碍物点连线