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.
User location tracking landed it #2758
We are now calling setCenterCoordinate(mMarkerCoordinate, true /*animated*/) to reposition.
Currently no animation is occuring and map jumps from one location to another.
Probably a clearTransitions is called somewhere down the event chain.
I’m not sure, but MapView cancels transitions when programmatically setting the map’s center coordinates (#2296), whereas MGLMapView does not (#2313). Could something else (a listener, perhaps) be setting the center coordinate, preempting the animation?
I'm starting to believe that this problem is bigger than the animation only. There is a huge difference in log ouput with BUILDTYPE=Debug make android when comparing a Map without the UserLocationView versus a Map with the UserLocationView. This is probably related to keeping the UserLocationView in sync with the map, a confirmation of this can be found in #3207
I whipped up the most simple example possible, a marker centered in the map and a location listener setting setCenterCoordinate(latLng, true /*animated*/). This results in following clip where you can see it is not animating.
Activity
tobrun commentedon Oct 26, 2015
Build project using
BUILDTYPE=Debug make androidAdded start and end logs to the method mentioned above.
This results in following output:
tobrun commentedon Oct 26, 2015
@ljbade indicated to add a log message to
cancelTransitionsintransform.cpp.I found out that you can add a logger by using this include:
and
tobrun commentedon Oct 26, 2015
With previous comment in place I'm seeing:
ljbade commentedon Oct 26, 2015
Hmm this is very perplexing.
@1ec5 Do you have any ideas why a pan animation is not working?
1ec5 commentedon Oct 27, 2015
I’m not sure, but
MapViewcancels transitions when programmatically setting the map’s center coordinates (#2296), whereasMGLMapViewdoes not (#2313). Could something else (a listener, perhaps) be setting the center coordinate, preempting the animation?tobrun commentedon Dec 11, 2015
I have been running at this issue this morning but feel that I have not much wiser at this point.
I have investigated following trajectories:
tobrun commentedon Dec 11, 2015
I'm starting to believe that this problem is bigger than the animation only. There is a huge difference in log ouput with
BUILDTYPE=Debug make androidwhen comparing a Map without theUserLocationViewversus a Map with theUserLocationView. This is probably related to keeping theUserLocationViewin sync with the map, a confirmation of this can be found in #3207tobrun commentedon Dec 11, 2015
I'm going to whip up a simple View and see if I'm able to animate that one instead
tobrun commentedon Dec 12, 2015
I whipped up the most simple example possible, a marker centered in the map and a location listener setting
setCenterCoordinate(latLng, true /*animated*/). This results in following clip where you can see it is not animating.tobrun commentedon Dec 23, 2015
The PR for #3283 animates the map correctly \o/
tobrun commentedon Dec 23, 2015
Now noticing another issue, jitter of the userdot on high zoom level.
Closing this issue in favor of #3283.
tobrun commentedon Dec 23, 2015
Linking the master issue #2049 for progress on the topic for UserLocationTracking