-2

我有一个一直在使用谷歌地图的应用,我想添加百度地图。我添加了百度地图,可以显示地图并以用户当前位置为中心,但我无法显示蓝色位置点。

有人知道怎么做这个吗?

带有谷歌地图的应用程序:

带有谷歌地图的应用程序

百度地图APP:

百度地图APP

4

1 回答 1

0

百度文档说

/ / The following mapView for the BMKMapView object / / display positioning layer 
mapView.showsUserLocation = true; / / set the positioning status to the normal positioning mode 
mapView.userTrackingMode = BMKUserTrackingModeFollowWithHeading;

你试过这些吗?可以通过gogle翻译获取:http ://lbsyun.baidu.com/index.php?title=iossdk/guide/create-map/location

并阅读:http ://lbsyun.baidu.com/index.php?title=ios-locsdk 需要申请key才能使用定位

于 2018-09-10T08:21:19.630 回答