You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
While panning, location indicator wiggles significantly more on android compared to iOS (Android). #1676
Filing this issue for tracking purposes.
While panning, location indicator wiggles a lot more on Android compared to iOS. Maybe whatever changes were done for the following needs to be migrated for Android as well.
@1ec5 there is currently no filtering of the compass data. It is updating the screen as frequently as we get sensor data. We need to implement some sort of rate limit or other data filtering.
The compass and GPS locations are separate data sources. Android already limits location to once a second so we need to do something similar with the compass.
@ljbade i created a pull request now #2065 regarding compass filtering. but after i had added the filtering like in a previous pull request, i saw that the FAB does not toggle into Follow mode. I guess @bleege is in the middle of some refactoring here, but would be nice if the filtering could be included if you test that it is ok. Thanks.
Per #1125, renderSync draws the current GL frame, then nudgeTransitions updates the Transform, which affects any subsequent geo/screen conversions. If the user dot placement happens not between those two, it is using a Transform for the placement conversion that is not in sync with the GL draw.
When we clean this up to be driven by frame updates (building on #2255), we should be sure to clean this stuff up:
I think the idea with updateMap() on Java side was related to triggering the UI to fetch updated GPS coordinates and update the location of the GPS marker dot (it made sense at the time to use same code for map pan/zoom updates).
Activity
1ec5 commentedon Jun 2, 2015
#1439 was duped to #1125, which is still open. #1582 will get us to parity with MapKit by using Core Animation. Does Android have anything similar?
ljbade commentedon Jun 4, 2015
@1ec5 there is currently no filtering of the compass data. It is updating the screen as frequently as we get sensor data. We need to implement some sort of rate limit or other data filtering.
1ec5 commentedon Jun 4, 2015
Would it be necessary to throttle the user location updates if the user dot animated to each location instead of blitting there?
ljbade commentedon Jun 4, 2015
The compass and GPS locations are separate data sources. Android already limits location to once a second so we need to do something similar with the compass.
ljbade commentedon Aug 13, 2015
This is still a problem even after @bleege recent changes.
@incanus How did you speed up the map/location marker sync?
erf commentedon Aug 13, 2015
@ljbade i created a pull request now #2065 regarding compass filtering. but after i had added the filtering like in a previous pull request, i saw that the FAB does not toggle into Follow mode. I guess @bleege is in the middle of some refactoring here, but would be nice if the filtering could be included if you test that it is ok. Thanks.
incanus commentedon Aug 19, 2015
We need to insert the routine which updates the user dot's location on screen between these two lines:
mapbox-gl-native/android/cpp/native_map_view.cpp
Lines 710 to 711 in fa18f1a
Per #1125,
renderSyncdraws the current GL frame, thennudgeTransitionsupdates theTransform, which affects any subsequent geo/screen conversions. If the user dot placement happens not between those two, it is using aTransformfor the placement conversion that is not in sync with the GL draw.ljbade commentedon Aug 20, 2015
@incanus Aha! Thanks for that pointer! I'm going to figure this one out
bleege commentedon Aug 31, 2015
Bumping to
0.2.0.@ljbade Any progress on this?
ljbade commentedon Sep 1, 2015
@bleege not yet, will pick this up after
0.1.0incanus commentedon Sep 4, 2015
When we clean this up to be driven by frame updates (building on #2255), we should be sure to clean this stuff up:
Refactor Android render loop to limit frame rate to 60 FPS
Refactor Android render loop to limit frame rate to 60 FPS