I'm using the new Google Maps SDK for iOS
Can I get the true coordinate form GMSMapView.center? Now it returns a value of CGPoint, but it's not the true coordinate.
Thank and Regards.
Use the projection
method - (CLLocationCoordinate2D)coordinateForPoint:(CGPoint)point
of the mapview to convert a point in the map to the geological coordinates
CGPoint point = mapView.center; CLLocationCoordinate2D coor = [mapView.projection coordinateForPoint:point];
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