-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Navigation mode to tilt and orientate map to users perspective #1896
Conversation
We would only tilt the map on the geolocation trigger or should we also add other functionalities(needs discussion) if the geolocation is on? |
The long tern goal is to have a navigation mode I think. User clicks a button to navigate to a building. The map tilts / pitches and orientation rotation starts. We face the map in the direction the user is facing. Then the next step is to work out adding routing as a polyline to follow. Do you think the first part is achievable now (without routing?) |
I'll have a look at that. |
@charliemcgrady do you know how we could achieve a smooth map rotation experience in MapLibre when the device orientation changes? We want to have a UX similar to most other mapping apps, with geolocation point and oritentation displayed with a blue arc in the normal view (we have this working). But then we want a navigation mode where the map pitches to 30o (we also have this working), and the map rotates to look in the direction the user is oriented (the lagging problem Nishit described). Eventually we want routing too, but that's another problem to solve! |
@NSUWAL123 I think the spec of this has changed slightly taking into account #1909 Ideally we want:
I'm basically describing Google maps navigation or similar! |
026e4bb
to
b78e2aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment π
Sure, I'll be looking at routing today. |
Routing is complex! I don't this we should address the routing quite yet, but just allow for navigation mode that tilts the view and causes map rotation with the device π |
I think these points should be enough requirements for now π |
I mean, this is incredible if it works! I assume routing is based on OSM and this would be great for many scenarios. Obviously not perfectly in all, but it's a really nice addition regardless! Great work π |
|
What type of PR is this? (check all applicable)
Related Issue
Describe this PR
Screenshots