-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Direction not updated on screen rotation #262
Comments
Can you provide some more details?
|
Yes, I can confirm that this is a bug. Can you help fix it? |
I am not a developer and have limited knowledge however will give it a try |
Hmm, somehow I cannot get the direction indicator to work right now. It looks like what we need to do is to correct the heading when the device orientation changes to landscape. |
Does https://labs.easyblog.it/maps/leaflet-compass/examples/simple.html works correctly for you? |
No this above is not working on my phone |
Not sure if this has something to do with this, but looks like since iOS 13 Apple now requires using their permissions API: |
As I saw the picture above, How can I decrease the radius on current location and How can I implement that angle on circle. Here is my code.
|
The arrow appears automatically when there is a compass location. |
Can you give to me a code examples? That answer doesnt help to much |
Issue doesn't appears when on windows chrome dev tool, the heading is displayed properly. Tried to fix it on ios but could not really so far, not sure if issue is ios only or android as well this seems to solve it in my particular case:
|
I believe this is an issue on both Android and iOS as I'm observing it on the demo Leaflet site with the following devices:
I'm more than happy to help debug, but am not accustomed to working with javascript on these mobile browsers so will need a little guidance on how to collect and provide more useful data. |
Hi,
Seems when rotating screen on ios the direction still follow the top of the phone. When the screen rotate I would expect the direction arrow to change accordingly.
The text was updated successfully, but these errors were encountered: