-
Notifications
You must be signed in to change notification settings - Fork 264
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
Compass indicator not showing on iOS Safari #267
Comments
#262 shows that it worked. I wonder what changed. Can you help debug? |
Hi, I had the same issue for a moment. I tried my own website and the demo on my iPhone Xs on Firefox 25.1, Chrome 81.0.4044.124, and Safari on iOS 13.4.1. For some combinations it did work, and for some, it didn't. Also when I switched to a private tab, I would work. I noticed that when it did work it not only asked permission for location, but also for direction. The solution that worked for me: After that, both sites worked on all 3 browsers for me. Probably something was cashed wrong locally. |
i have the same problem on pc and mobile, did you solve this problem? |
Rebooting my phone worked for me |
Hello, this issue seems related to: #285 (comment) |
I just realized the above linked issue is marked closed, so I'll comment here. In searching for an answer to this issue, I found this thread located here: https://developer.apple.com/forums/thread/128376.
This requests permission from the user to accept access to the user's device orientation data. Once it loads it gives correct heading on the geolocation icon. Using iPhone 11 Pro Max ios 15.1. Regards, Jesse @ northdakotarigsmap dot com |
fixes stefanocudini/leaflet-compass#15 cf. domoritz/leaflet-locatecontrol#267 note: the request for permission may only be asked as response to a user gesture (either click or touchend event), and via https; not localhost/file via: https://developer.apple.com/forums/thread/128376 https://stackoverflow.com/a/60239824/2171120 indicates that exiting (swiping away) then restarting Safari will clear the “asked?” status and this seems to wfm
fixes stefanocudini#15 cf. domoritz/leaflet-locatecontrol#267 note: the request for permission may only be asked as response to a user gesture (either click or touchend event), and via https; not localhost/file via: https://developer.apple.com/forums/thread/128376 https://stackoverflow.com/a/60239824/2171120 indicates that exiting (swiping away) then restarting Safari will clear the “asked?” status and this seems to wfm
Hi, I am using the option showCompass when initializing the locatecontrol plugin and it is working fine on Chrome and Firefox on iOS but it does not show the compass heading indicator when using Safari.
This is my configuration:
`var lc = L.control.locate({
showPopup: false,
drawCircle : true,
position: 'topright',
showCompass: true,
keepCurrentZoomLevel: true,
flyTo: false,
clickBehavior: {
inView: 'setView', outOfView: 'setView', inViewNotFollowing: 'inView'
},
locateOptions:{
enableHighAccuracy: true,
maxZoom: 15
}
}).addTo(map);
lc.start();`
Is anyone else having the same problem?
Thanks
The text was updated successfully, but these errors were encountered: