1

Google Maps API Xamarin for iOS で 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);

しかし、1 つの PointF が戻ってきました。

CLLocationCoordinate2D のアイデアが必要ですか?

4

1 に答える 1

1

次のようなものを使用できます。

CLLocationCoordinate2D coordinate = mapView.Projection.CoordinateForPoint(location);

注: ポイントは、マップ ビューに対して相対的である必要があります。

于 2013-10-09T11:13:13.383 に答える