Read gps coords from worker #9

Closed
opened 2023-07-10 16:39:55 +02:00 by zbolo-wd · 2 comments
Owner
  • Read gps coords from worker
  • Update position in background
- [ ] Read gps coords from worker - [ ] Update position in background
zbolo-wd added this to the Sprint 3 milestone 2023-07-10 16:39:55 +02:00
ale was assigned by zbolo-wd 2023-07-10 16:39:55 +02:00
zbolo-wd added this to the Pianello project 2023-07-10 16:39:55 +02:00
Owner

Sadly, this is not possible because the Geolocalization object it's not inside web worker's navigator, but instead has a different navigator object.

Geolocalization is only watched from the main thread when viewing a map.

Sadly, this is not possible because the [Geolocalization](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API) object it's not inside web worker's [`navigator`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator), but instead has a different [`navigator` object](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/navigator). Geolocalization is only [watched](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/watchPosition) from the main thread when viewing a map.
Owner
  • Read gps coords from worker
  • Update position
> - [x] Read gps coords ~~from worker~~ > - [x] Update position
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: pianello/pianello-web-app#9
No description provided.