fix: 移除路线更新时的节流限制
移除基于 tripStatus 和节流时间的提前返回逻辑,确保路线绘制始终响应最新数据。
| | |
| | | const displayRoutePoints = isEraseMode ? routePoints : reducePoints(routePoints, isAndroid ? 120 : 200); |
| | | const lastRoutePoint = displayRoutePoints[displayRoutePoints.length - 1]; |
| | | const lastWalkingPoint = walkingPoints[walkingPoints.length - 1]; |
| | | const isTripMoving = [4, 5, 6].includes(tripStatus); |
| | | const now = Date.now(); |
| | | const throttle = isAndroid ? 1200 : 800; |
| | | if (shouldShowRoute && isTripMoving && displayRoutePoints.length > 0 && now - lastPolylineUpdateAtRef.current < throttle) { |
| | | return; |
| | | } |
| | | const nextKey = [ |
| | | shouldShowRoute ? 1 : 0, |
| | | statusRule.showWalking ? 1 : 0, |