Animated Map Markers V2

I checked many questions but no one answered this.

I want to add a google map with animated markers. This means that the sprite renders 3-4 frames and is fixed in place and during movement.

I thought about using AnimationDrawable but it didn't work. The other 2 solutions I have in mind:

1-Use marker.setPosition and marker.setIcon in "loopy handler". Inclined to use this, but for some reason I feel like this is more than murder, especially that I might have 100 markers

2-Add SurfaceView on map and draw bitmaps using Map LocationToPixels function. But it can be cumbersome with gesture movements.

Do you recommend any of the above or even a new solution? Please explain why this is not an opposed answer.

thank

+3


source to share





All Articles