The compass arrow should appear on all smartphones
publié le , mis à jourThis is not the case in Cartes.
By @hayriokcu.
Yes it should ! We even have a compass page that is the best hit on Google search. https://cartes.app/boussole
It's designed to work for iPhones, but it may be bugged now. Hence this issue. I don't have an iPhone at hand right now.
hayriokcu
I confirm that the addition to Cartes.app the compass in the https://cartes.app/boussole page does not work. iPhone 11 Safari , and Vivaldi browsers.
laem
You're right ! Just checked too. Some websites seem to work through a user permission.
laem
Got it : on iOS, user permission must be requested after a user click.
https://caniuse.com/?search=DeviceOrientationEvent
hayriokcu
Perfect, that's it!
laem
Partially fixed by 1927 : @hayriokcu can you check that cartes.app/boussole works (in 5 minutes of deployment) ?
Then we need to fix :
- make the compass work through a user permission dialog triggered by MapCompassArrow.tsx that will be displayed on the map once (we hope it is remembered...)
It could clash with the indoor map dialog. Make first the user answers this question first. Could need some code migration, not trivial.
hayriokcu
The issue solved on https://cartes.app/boussole. Now after accepting request it precisely responds to the rotation.
However in the Cartes.app IOS mobile still do not have request so the issue persists.
laem
You mean the PWA ? Or the main map expérience ?