5

I’m changing my app by migrating iOS maps to google maps using Google Maps SDK for iOS V1.1.0 and I’m trying to animate the markers while adding/removing but I didn’t find any suggestions in the documentation related to this, Please suggest me how to perform the animations on GMSMarkers

Antony Raphel
  • 2,036
  • 2
  • 25
  • 45
smily
  • 357
  • 1
  • 7
  • 18
  • Can you tell me which kind of animations you like to add? I think than I will be able to answer you how to do it. – Robert Weindl Mar 09 '13 at 00:46
  • To drop pins from top, to increase and decrease frame size of pin by giving animation durations, i did these types of animations on MKMapView – smily Mar 11 '13 at 10:47
  • 1
    this [earlier post](http://stackoverflow.com/questions/14414780/do-marker-animations-exist-on-googlemaps-sdk-for-ios) discusses the same question. – tony m Jul 27 '13 at 11:49
  • @smily : hi buddy same task is for me and still no soulution found for drop pin from top. if you have any idea then plz share with me.thx – Bandish Dave Oct 11 '14 at 12:06
  • http://stackoverflow.com/questions/40543095/bounce-animation-on-google-map-marker-in-ios-objective-c/41764821#41764821 The continouse scale aniamtion on Google Marker – Dhiru Jan 23 '17 at 06:09

1 Answers1

8

In the GMSMarker Class Reference, it says, for the appearAnimation property:

Controls the animation used when this marker is placed on a GMSMapView (default kGMSMarkerAnimationNone, no animation).

Using the Google Maps SDK for iOS, a marker can be made like this:

GMSMarker *startMarker = [GMSMarker markerWithPosition:@"NYC"];
startMarker.appearAnimation = kGMSMarkerAnimationPop;
startMarker.title = @"Start";
startMarker.snippet = @"My address";
startMarker.map = mapView;
Pang
  • 9,564
  • 146
  • 81
  • 122
Amozoss
  • 1,445
  • 1
  • 11
  • 12