Merge branch 'develop'

This commit is contained in:
Pieter Vander Vennet 2024-02-26 16:08:49 +01:00
commit 6026249862

View file

@ -23,7 +23,7 @@
bearing: number
}> = map.location.mapD(
({ lon, lat }) => {
const current = currentLocation.data
const current = currentLocation?.data
if (!current) {
return undefined
}
@ -41,6 +41,9 @@
let compass = Orientation.singleton.alpha
let relativeBearing: Store<{ distance: string; bearing: Translation }> = compass.mapD(
(compass) => {
if(!distanceToCurrentLocation.data){
return undefined
}
const bearing: Translation =
relativeDir[
GeoOperations.bearingToHumanRelative(distanceToCurrentLocation.data.bearing - compass)