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.
MyLocation view position is wrong after disable my location a while #6167
Open activity with MapView, call mapboxMap.setMyLocationEnabled(true); to show current user's loation
disable mylocation with mapboxMap.setMyLocationEnabled(false); for a while (10 minutes or more).
Move to another location (still open app) then enable MyLocation mapboxMap.setMyLocationEnabled(true);.
--> At this moment, the my location "icon" will slowly move to the current position. Sometimes, it only move to a place which near my current location which is different from LocationServices.getLocationServices(getContext()).getLastLocation().
Expected behavior
MyLocation should move faster when it's re-enabled or should visible immediately (or is there any wait to do so?).
**notes: you can re-create this bug easily with Lockito mock location in any android Device.
@kingfisherphuoc With #7892 we have reworked the way we handle location updates with the introduction of a LocationSource object. This code will be available in the next nightly SNAPSHOT.
Are you still experiencing this issue? if so, could you share with us the Lockito test? Thanks for your help troubleshooting this issue.
The underlying issue was the used LOST location provider. #8710 allows to set a custom location source so you can switch to another or roll your own. Closing.
Activity
zugaldia commentedon Feb 3, 2017
@kingfisherphuoc With #7892 we have reworked the way we handle location updates with the introduction of a
LocationSourceobject. This code will be available in the next nightly SNAPSHOT.Are you still experiencing this issue? if so, could you share with us the
Lockitotest? Thanks for your help troubleshooting this issue.tobrun commentedon Apr 19, 2017
The underlying issue was the used LOST location provider. #8710 allows to set a custom location source so you can switch to another or roll your own. Closing.