Search code examples
google-maps-sdk-ios

How to get CGPoint of location with google maps sdk for iOS?


How to get CGPoint of location with google maps sdk for iOS ? I need add pinview on user location.


Solution

  • It's basically the opposite of this question, for example:

    GMSMapView* mapView = ...;
    CLLocationCoordinate2D coordinate = ...;
    ...
    CGPoint point = [mapView.projection pointForCoordinate: coordinate];