如何在目标C中使用该位置的经度和纬度查看谷歌地图中的当前位置 [英] How to view the current location in google map using longitude and latitude of that location in Objective C

查看:66
本文介绍了如何在目标C中使用该位置的经度和纬度查看谷歌地图中的当前位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经读过经度& obj-c中当前位置的纬度。现在,如何使用该位置的经度和纬度查看Google地图中的当前位置?

I have read the longitude & latitude of the current location in obj-c. Now, how can I view the current location in the Google map, using that locations's longitude and latitude?

任何人都可以给我一些示例代码来帮助我做到这一点吗?

Can anyone give me some example code which helps me to do this?

推荐答案

您不需要使用经度&显示用户位置的当前位置的纬度。
以下行会这样做。

You don't need to use longitude & latitude of the current location to show user location. The following line will do so.

mapView.showsUserLocation = YES;

这篇关于如何在目标C中使用该位置的经度和纬度查看谷歌地图中的当前位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆