1

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?

Charlie-Blake
  • 10,832
  • 13
  • 55
  • 90

2 Answers2

10

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

MaciejGórski
  • 22,187
  • 7
  • 70
  • 94
1

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.

Community
  • 1
  • 1
KlasE
  • 142
  • 11