How Do I Implement Falling Pins Animation For Markers In Android Map View
Solution 1:
Android has overlay markers (see ItemizedOverlay) that make it easy to add images to maps, BUT note that, in my experience at least, animated images do not work when added to overlays.
I found it necessary to add a View on top of the MapView, and add imagery to that, and I've successfully added animated drawable images to the map using that approach. For more details see here: Can I use AnimationDrawable in an overlay on a MapView?
But to be honest, you should remember that it's Android, and copying every little feature from iOS is unnecessary. Google Maps on Android doesn't use a pin marker, it uses a static blue spot - I'd say it's best to replicate that and remember your users are Android users, not iOS users - they want consistency across Android apps.
Solution 2:
You could have a look in this docmentation: https://developers.google.com/maps/documentation/javascript/overlays Here is an example map.
Just add this in your code:
marker.setAnimation(google.maps.Animation.DROP);
Post a Comment for "How Do I Implement Falling Pins Animation For Markers In Android Map View"