我如何在适用于 iOS 的 Google map API Xamarin 中获取 PointF 的坐标 (CLLocationCoordinate2D)
以前使用过:
PointF location = reticula.Center;
CLLocationCoordinate2D coordinate = MapaApple.ConvertPoint (location, this.View);
CLLocationCoordinate2D 我确实返回了,但现在使用了 google API
我用的是这样的:
PointF location = reticula.Center;
CLLocationCoordinate2D coordinate = new CLLocationCoordinate2D (MapaGoogle.ConvertPointFromView(CLLocation,this.View);
但是有一点我回来了。
我需要 CLLocationCoordinate2D 有什么想法吗?
最佳答案
你可以使用这样的东西:
CLLocationCoordinate2D coordinate = mapView.Projection.CoordinateForPoint(location);
注意:该点应相对于 map View 。
关于ios - 如何获取 Google Maps API iOS 中某个点的坐标?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19226726/