-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Changing interface orientation stops GeolocateControl location follow me #7053
Comments
Thanks for reporting this @dieterdreist. I can confirm this is a bug. This happens because when Lines 475 to 499 in 97a78c3
However that then fires
We use
I suppose the solution here to to listen on other events:
But care must be taken to ensure we cover all the interaction scenarios, and even then I'm not sure how we'll detect when someone calls flyTo or other camera methods in the API, as naturally we should stop tracking in those circumstances also. |
Hi @andrewharvey 👋 I took a different approach to fixing it, #8736 , please review 🙏 . |
This primarily fixes the use-case described in #7053
mapbox-gl-js version:
v0.47.0 and previous
browser:
mobile safari (ios), latest stable
Steps to Trigger Behavior
Link to Demonstration
any map
e.g.
https://jsbin.com/libehaziqo/edit?html,output
Expected Behavior
keeps following
Actual Behavior
stops following as if the used had panned the map.
The text was updated successfully, but these errors were encountered: