Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps API: Change marker animation speed

Google Maps API v3 currently supports two types of animation for markers: DROP and BOUNCE

Is there a way I can speed up the BOUNCE or slow down the DROP animation?

like image 740
Axel Fontaine Avatar asked Jun 12 '11 12:06

Axel Fontaine


People also ask

How do I move a marker smoothly on Google Maps?

initialize() function creates a google Map with location Marker. transition() & moveMarker() are used to move location marker smoothly on Google Map.

How do I move a marker along a polyline on Google Maps?

The correct way to create the Location objects is as follows: Location location = new Location(LocationManager. GPS_PROVIDER); location.


1 Answers

Google Maps API doesn't support animation properties or customization, just the ability to select "drop" or "bounce" as you said.

It should be possible to apply custom animations to marker elements through jQuery or other framework. Alternatively you could supply an animated GIF as a marker.

like image 105
Tak Avatar answered Oct 23 '22 11:10

Tak