Skip to content

Commit

Permalink
Mission-planner: Modify vehicle traveled path color
Browse files Browse the repository at this point in the history
Signed-off-by: Arturo Manzoli <[email protected]>
  • Loading branch information
ArturoManzoli authored and rafaellehmkuhl committed Oct 31, 2024
1 parent 05eefe7 commit 6cc07ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/widgets/Map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ watch(vehiclePositionHistory, (newPoints) => {
if (map.value === undefined || newPoints === undefined) return
if (vehicleHistoryPolyline.value === undefined) {
vehicleHistoryPolyline.value = L.polyline([], { color: '#358AC3' }).addTo(map.value)
vehicleHistoryPolyline.value = L.polyline([], { color: '#ffff00' }).addTo(map.value)
}
const latLongHistory = newPoints.filter((posHis) => posHis.snapshot !== undefined).map((posHis) => posHis.snapshot)
Expand Down
2 changes: 1 addition & 1 deletion src/views/MissionPlanningView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ const generateWaypointsFromSurvey = (): void => {
// Helper function to connect two waypoints with a polyline
const addWaypointConnection = (fromWaypoint: Waypoint, toWaypoint: Waypoint): void => {
const polyline = L.polyline([fromWaypoint.coordinates, toWaypoint.coordinates], {
color: '#2563EB',
color: '#3B82F6',
weight: 3,
opacity: 0.8,
className: 'waypoint-connection',
Expand Down

0 comments on commit 6cc07ed

Please sign in to comment.