How to get CGPoint of location with google maps sdk for iOS ? I need add pinview on user location.
The Maps SDK for iOS uses a pay-as-you-go pricing model.
Get an API key Create a project, and navigate to 'Credentials'. Then, click 'Generate Credentials' and pick API Key. You will need to provide your projects bundle id. The key is generated by the unique bundle id, so if it's changed, the Google Maps services won't work!
It's basically the opposite of this question, for example:
GMSMapView* mapView = ...;
CLLocationCoordinate2D coordinate = ...;
...
CGPoint point = [mapView.projection pointForCoordinate: coordinate];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With