How to get CGPoint locations using Google Maps sdk for iOS? I need to add pinview to user location.
This is basically the opposite of this question , for example:
GMSMapView* mapView = ...; CLLocationCoordinate2D coordinate = ...; ... CGPoint point = [mapView.projection pointForCoordinate: coordinate];
Ok, for your question, you want to convert userlocation to cgpoint, here's what .. try using this.
CGPoint newCenter = [self.map convertCoordinate:coord toPointToView:self.map];
Sincerely.