-
Notifications
You must be signed in to change notification settings - Fork 319
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
Update Maps SDK 7.x and events 4.x with new location APIs #1615
Conversation
@andrlee I'm cutting this a bit prematurely to get eyes on it as soon as possible. Please try to ignore the mess. |
Actually, this is blocked upstream until the Maps SDK |
Just wanted to flag mapbox/mapbox-events-android#312 as a potential issue that will need a workaround until fixed upstream. Workaround tracked for the Maps SDK in mapbox/mapbox-gl-native#13587. |
d85b27b
to
e5d0b1c
Compare
e5d0b1c
to
40b7d47
Compare
While testing this, I run into some issues.
|
c687ea0
to
a9e8c36
Compare
@Guardiola31337 I think I've fixed everything not related to I removed the I found this while testing As discussed, have a stab at the |
f430dbd
to
373b4b4
Compare
|
||
@SuppressLint("MissingPermission") | ||
private void requestInitialLocationUpdates(LocationEngine locationEngine, LocationEngineRequest request) { | ||
locationEngine.getLastLocation(callback); |
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.
What happens in the situation in which the last location is really far from where you actually are? Could this end up in a "undesired" flying effect? I'm wondering if we should / could remove it 🤔
b177645
to
588888e
Compare
Per discussion with @Guardiola31337, we have one remaining issue regarding allowing users to zoom in too closely to the map. He's going to pick that up and then bring this PR home 🎉 The rest of the issues we found while testing seem unrelated to the Maps update and we will ticket as necessary. |
588888e
to
78450a6
Compare
5f151db
to
28fc5db
Compare
This is now fixed 🎉 Noting that the zoom levels in the Now you should tune the the max / min zoom level of the map yourself with |
28fc5db
to
ea8aab4
Compare
ea8aab4
to
ab27aea
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.
Let's merge here 🎉
Great work @danesfeder
Closes #1121 Closes #928
This PR brings in the new
Location
APIs from events4.x
. This is a decent refactor as we use location services a lot and in almost every activity of the test app.TODO: