Search code examples
google-mapsgoogle-maps-markersgoogle-maps-sdk-ios

How to add drop pin in Google Map iOS


How can I add "drop pin" and the dropping on above animation in Google Map iOS? I can only find marker in SDK, and the appearAnimation property only provides pop up animation.


Solution

  • Use MKAnnotationView from MapKit. From the documentation on Using the Standard Annotation Views:

    MKAnnotationView* aView = [[[MKAnnotationView alloc] initWithAnnotation:annotation
                                  reuseIdentifier:@"MyCustomAnnotation"] autorelease];