Skip to content

Commit

Permalink
Update open-location.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wanganxp committed Oct 23, 2019
1 parent fa3e32b commit c50a653
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/api/location/open-location.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ uni.getLocation({
**Tips**

- 本API是一个非原子的封装界面,开发者如有定制需求,可自己做页面实现类似功能。
- H5 端获取定位信息,需要部署在 **https** 服务上,本地预览(localhost)仍然可以使用 http 协议。
- 无 GPS 模块的 PC 设备使用 Chrome 浏览器的时候,位置信息是连接谷歌服务器获取的,国内用户可能获取位置信息失败。
- 若定位不准,参考[uni.getLocation文档的注意事项](https://uniapp.dcloud.io/api/location/location)
- 纯nvue项目(manifest中renderer为native),App端暂不支持此API。可自行基于map组件封装。
- ``<map>`` 组件默认为国测局坐标,调用 ``uni.getLocation`` 返回结果传递给 ``<map>`` 组件时,需指定 type 为 gcj02。
- App 端使用地图组件需要向高德或百度等三方服务商申请SDK资质,获取AppKey,打包时需要在manifest的SDK配置中填写Appkey。在manifest可视化界面有详细申请指南。
Expand Down

0 comments on commit c50a653

Please sign in to comment.