How to apply animations to GMSMarker
Asked Answered
L

1

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

Larner answered 8/3, 2013 at 7:27 Comment(5)
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.Pier
To drop pins from top, to increase and decrease frame size of pin by giving animation durations, i did these types of animations on MKMapViewLarner
this earlier post discusses the same question.Wilhite
@Larner : 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.thxAlbur
#40543595 The continouse scale aniamtion on Google MarkerRovner
D
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;
Deteriorate answered 24/11, 2013 at 18:48 Comment(1)
i cant see animation when google map show and marker appear suddenlySnatch

© 2022 - 2024 — McMap. All rights reserved.