I want a Continuos Bounce animation on Google Map Marker in iOS.
[animation like below link , Click on Marker -->] ,
https://developers.google.com/maps/documentation/javascript/examples/marker-animations
can we implement this bounce animation in iPhone?
i am Creating Marker with animated appear but i want to animate marker with Bounce Effect Continuously.
GMSMarker *marker = [GMSMarker markerWithPosition:position];
marker.title = @"Delhi";
marker.zIndex=1;
marker.icon=[UIImage imageNamed:@"marker_user.png"];
// This is Only AppearAniamtion
marker.appearAnimation = kGMSMarkerAnimationPop;
marker.infoWindowAnchor = CGPointMake(0.44f, 0.30f);
marker.map = mapView_;
I wanted to add marker on Google map which will animate to indicated the current user. I was not able to get exact bounce animation like the link above i mentioned , for alternate way to highlight marker i did with using scale animation.
like this ...
To get animation like this . do like this
Add Marker on Map
Start Timer when marker is added on map, and change the icon of marker with different size .
at every 0.1 seconds tragetMethod will be fired , here you can scale the icon image and reassign to marker icon
and here is the method that will scale your
UIImage
This may solve problem of guys looking for such animation.