简体   繁体   中英

Map Marker icon animation (Google Maps API V2 for Android)

On a custom event, I need my Marker to update its drawable 6 times (basically, I want the Marker to grow and shrink 3 times with a delay of 0.5 s between each growth and each shrink) so it notifies the user of said event.

Is there any way to achieve this without actually having to remove the Marker and adding it again with a different Drawable ?

Marker has a new function added as of rev.7 of API v2. Marker.setIcon . Have fun animating.

I'm afraid there is no way to do it today without actually removing the marker and adding it again with another drawable. I have just done so myself in an attempt to create a progress bar. It works, but it is an awkward way of doing it.

Click here for a good explanation in another thread.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM