feat(location): set bearing on map
Some checks failed
TrafficCue CI / check (push) Failing after 1m29s
TrafficCue CI / build (push) Successful in 9m32s
TrafficCue CI / build-android (push) Has started running

This commit is contained in:
2025-10-03 19:32:19 +02:00
parent d722364cf7
commit de06d09d1c

View File

@ -20,7 +20,7 @@ export const location = $state({
center: [location.lng, location.lat],
zoom: 16,
duration: 1000,
// bearing: location.heading !== null ? location.heading : undefined
bearing: location.heading != null ? location.heading : 0
},
{
reason: "location",
@ -53,7 +53,7 @@ export function watchLocation() {
center: [location.lng, location.lat],
zoom: 16,
duration: 1000,
// bearing: location.heading !== null ? location.heading : undefined
bearing: location.heading != null ? location.heading : 0
},
{
reason: "location",