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.
Add multiple markers and rotations to AnimatedMarkerActivity #5299
As mentioned in #5242 we currently have an experimental AnimatedMarkerActivity in the TestApp that animates a marker position using a ValueAnimator. We want to expand this activity to reflect common scenarios (e.g. a car marker), and create a concrete example that can help us profile the performance of different marker animations approaches.
In particular, we want to add the following elements:
Several markers animating concurrently in the same visible region.
I've been trying some different combinations. Using both Markers and MarkerViews. All using ValueAnimators to move around the Markers. As expected, the results are not as smooth as we'd like. (This is all on a Nexus 5X)
Although not much needs to be done on the core side (mainly, calculating screen position from the new coordinates), it seems that a lot happens anyways.
Hello, I am very glad that I am a super rookie on the subject of Android, serious layers of telling me or explaining how you did to give movements to multiple markes if it is not much trouble. thank you very much
Hi @AlejandroP27, thanks for using our Maps SDK. However, this is not a support forum — if you have more implementation questions, please check out our excellent help docs or post your question on Stack Overflow. Thanks!
Activity
zugaldia commentedon Jun 9, 2016
Follow progress in https://github.com/mapbox/mapbox-gl-native/tree/5299-sample-cars-driving branched out from
release-android-v4.1.0.ivovandongen commentedon Jun 10, 2016
I've been trying some different combinations. Using both Markers and MarkerViews. All using ValueAnimators to move around the Markers. As expected, the results are not as smooth as we'd like. (This is all on a Nexus 5X)
First off the MarkerViews
One car:


Same thing, with gpu/cpu overlays
10 cars


10 cars, with gpu/cpu overlays
ivovandongen commentedon Jun 10, 2016
Next up: the markers (GL).
1 car


1 car, debug
10 cars


10 cars, debug
Results are very similar with to Android based View Markers.
ivovandongen commentedon Jun 10, 2016
Every step in the animation results in the following log statements btw:
Although not much needs to be done on the core side (mainly, calculating screen position from the new coordinates), it seems that a lot happens anyways.
[android] #5299 - Simplify animation code a bit. Make duration depend…
[android] #5299 - Added more cars to the animation example to see wha…
zugaldia commentedon Jun 10, 2016
Great job @ivovandongen , this is great progress.
Did you notice if any of the following had any lower/higher noticeable performance impact?
AccelerateDecelerateInterpolatorvsLinearInterpolator.tobrun commentedon Jun 13, 2016
I'm going to run with this branch and try out proposed solution for this from #5242.
tobrun commentedon Jun 17, 2016
Merged with #5300 on
release-android-v4.1.0AlejandroP27 commentedon Dec 26, 2019
Hello, I am very glad that I am a super rookie on the subject of Android, serious layers of telling me or explaining how you did to give movements to multiple markes if it is not much trouble. thank you very much
zugaldia commentedon Jan 2, 2020
Hi @AlejandroP27, thanks for using our Maps SDK. However, this is not a support forum — if you have more implementation questions, please check out our excellent help docs or post your question on Stack Overflow. Thanks!