Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 397
Mecid Avatar asked Feb 25 '13 12:02

Mecid


People also ask

Is Google Maps iOS SDK free?

The Maps SDK for iOS uses a pay-as-you-go pricing model.

How to use Google Maps API in swift?

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!


1 Answers

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

GMSMapView* mapView = ...;
CLLocationCoordinate2D coordinate = ...;
...
CGPoint point = [mapView.projection pointForCoordinate: coordinate];
like image 150
Saxon Druce Avatar answered Sep 28 '22 19:09

Saxon Druce