diff --git a/lib/features/home/presentation/widgets/map/testmap_pages.dart b/lib/features/home/presentation/widgets/map/testmap_pages.dart index 50b3fc3c..942e730b 100644 --- a/lib/features/home/presentation/widgets/map/testmap_pages.dart +++ b/lib/features/home/presentation/widgets/map/testmap_pages.dart @@ -214,7 +214,7 @@ class _MapPageEnterpriseState extends State { debugPrint('🔗 [MapPage] 开始监听路径规划指令应答 (CMD: 0x01)'); _pathPlanningSub = _dispatcher.onPathPlanningResponse().listen( - (packet) { + (packet) { debugPrint('✅ [MapPage] 收到路径规划应答,准备发送下一个点'); // 这里不需要做任何事情,因为 NetMessageDispatcher 内部已经处理了 // 它会自动从队列中移除已发送的点并触发下一个点 @@ -1172,9 +1172,7 @@ class _MapPageEnterpriseState extends State { } Widget _buildMap(double lat, double lng, bool obfFlag, int headingStatus, String controlMode) { - if (lat != 0 && lat != 0 && (lat != _currentLatLng?.latitude || lng != _currentLatLng?.longitude)) { - _onDeviceData(lng, lat, obfFlag, headingStatus, controlMode); - } + _onDeviceData(lng, lat, obfFlag, headingStatus, controlMode); final gcjPoint = wgs84ToGcj02(lat, lng); //final initCenter = bd09ToGcj02(