【问题标题】:how to implement code to displaying map point on the mapview after getting the location latitude and longiude?获取位置经纬度后如何实现代码在mapview上显示地图点?
【发布时间】:2012-01-04 08:51:23
【问题描述】:

大家好,如何在以字符串格式获取位置纬度和经度后在地图视图上显示位置点的代码帮助我解决iphone中的问题。

我的意思是我以字符串格式获取位置纬度和经度,但我的意图是我得到纬度和经度我必须在谷歌地图上显示位置点

我在 lattextfield.text=@"" 和 longtextfiels.text=@"" 中获取位置纬度和经度 从 -(void)getLoationdetails;方法,但我们如何分配给 mapview 以在 iphone 的 google mapview 上显示地图点

您能否提供将 lat 和 long 发送到 mapview 的总代码,以便在 iphone 的 mapview 上获取位置点

【问题讨论】:

  • 您能告诉我们您对此有何看法吗?

标签: iphone ios4


【解决方案1】:
self.mapView.centerCoordinate = userLocation.location.coordinate;
            mapView.showsUserLocation=YES;

这应该会有所帮助。

【讨论】:

    猜你喜欢
    • 2015-07-16
    • 2013-06-18
    • 2015-05-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-12-08
    相关资源
    最近更新 更多