I can't believe it's been over two years and this functionality hasn't been added...? BOUCNEONCE is a great idea!
On Wednesday, January 5, 2011 1:47:54 PM UTC-5, dtipson wrote: > > 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). > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-maps-js-api-v3+unsubscr...@googlegroups.com. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. Visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en. For more options, visit https://groups.google.com/groups/opt_out.