如何在谷歌地图API iOS中获取点的坐标?

如何在谷歌地图API iOS中获取点的坐标?,ios,api,google-maps,xamarin.ios,xamarin,Ios,Api,Google Maps,Xamarin.ios,Xamarin,如何在Google maps API Xamarin for iOS中获取点F的坐标(CLLocationCoordinate2D) 以前使用的: PointF location = reticula.Center; CLLocationCoordinate2D coordinate = MapaApple.ConvertPoint (location, this.View); CLLocationCoordinate2D我确实返回了,但现在使用的是谷歌AP

如何在Google maps API Xamarin for iOS中获取点F的坐标(CLLocationCoordinate2D)

以前使用的:

PointF location = reticula.Center;                  
CLLocationCoordinate2D coordinate = MapaApple.ConvertPoint (location, this.View);
CLLocationCoordinate2D我确实返回了,但现在使用的是谷歌API

我用这样的方式:

PointF location = reticula.Center;
CLLocationCoordinate2D coordinate = new CLLocationCoordinate2D (MapaGoogle.ConvertPointFromView(CLLocation,this.View);
CLLocationCoordinate2D coordinate = mapView.Projection.CoordinateForPoint(location);
但有一点让我回过神来


我需要CLLOCATIONCoordinated2D有什么想法吗?

您可以使用以下内容:

PointF location = reticula.Center;
CLLocationCoordinate2D coordinate = new CLLocationCoordinate2D (MapaGoogle.ConvertPointFromView(CLLocation,this.View);
CLLocationCoordinate2D coordinate = mapView.Projection.CoordinateForPoint(location);

注意:该点应与地图视图相对。

您可以使用以下内容:

PointF location = reticula.Center;
CLLocationCoordinate2D coordinate = new CLLocationCoordinate2D (MapaGoogle.ConvertPointFromView(CLLocation,this.View);
CLLocationCoordinate2D coordinate = mapView.Projection.CoordinateForPoint(location);
注意:该点应相对于地图视图