Bounce Once functionality for marker animation

1,184 views
Skip to first unread message

dtipson

unread,
Jan 5, 2011, 1:47:54 PM1/5/11
to google-map...@googlegroups.com
I love the new drop and bounce animations on the markers, but I'm interested in figuring out an easy and clean way to have a marker bounce just once, instead of bounce non-stop until it's explicitly set to null.  First of all, it would be useful to know if this is something that will be added to the API in the future (an animation type BOUCNEONCE or a parameter to the BOUNCE animation).  But barring that, I'd like to brainstorm the cleanest means to make it happen. The only one I can think of off the top of my head is use a timeout (setting the animation property to null after a set amount of time), but this seems less than ideal as the animation could potentially be slower or faster, and thus get set to null midway through the bounce animation.  I'll try out a couple of methods and report back here (with code examples if they're useful). Happy to hear from anyone else that's played with these new features and their experience.

Just as background, the reason this is desirable is that when I'm adding a bunch of markers to a map and allowing the user to cycle through them (using nav elements separate from the map itself), I'd like them to bounce once just to make it clear to the user which marker is being highlighted (whether or not I open an infowindow on it).  This is especially appropriate when a bunch of markers are on top of each other right in the same location, because it shows the user that there is a separate marker back there (one that may be covered up by a "nearer" marker that's out in front).

Michæl

unread,
Mar 6, 2013, 1:25:44 AM3/6/13
to google-map...@googlegroups.com
I can't believe it's been over two years and this functionality hasn't been added...? BOUCNEONCE is a great idea!

geoco...@gmail.com

unread,
Mar 6, 2013, 9:58:30 AM3/6/13
to Google Maps JavaScript API v3
On Mar 5, 10:25 pm, Michæl <mvs...@gmail.com> wrote:
> I can't believe it's been over two years and this functionality hasn't been added...? BOUCNEONCE is a great idea!

Did someone create an enhancement request?

https://code.google.com/p/gmaps-api-issues/

-- Larry
Reply all
Reply to author
Forward
0 new messages