【问题标题】:How to get coordinates about a point in Google Maps API iOS?如何在 Google Maps API iOS 中获取某个点的坐标?
【发布时间】:2013-10-14 03:18:30
【问题描述】:

如何在适用于 iOS 的 Google 地图 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 有什么想法吗?

【问题讨论】:

    标签: ios api google-maps xamarin.ios xamarin


    【解决方案1】:

    你可以使用这样的东西:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-06-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多