Fixed boat direction

This commit is contained in:
2026-09-04 08:57:13 -04:00
parent f3ca75decb
commit 9e1ef69b16
5 changed files with 27 additions and 16 deletions

View File

@@ -104,7 +104,7 @@ export class AISLayer {
image: new Icon({
src: buildBoatIcon(boat),
scale: 0.8,
rotation: (boat.heading ?? boat.course ?? 0) * (Math.PI / 180),
rotation: (boat.heading ?? boat.bearing ?? boat.cog ?? boat.course ?? 0) * (Math.PI / 180),
anchor: [0.5, 0.5],
}),
}))