Show blue location dot in Baidu Maps on iOS

391 views Asked by At

I have an app that has been using Google maps and I want to add Baidu maps. I have added Baidu maps and can get the map to show up and centred on the user's current location but I can't get the blue location dot to show.

Does anybody know how to do this?

App with Google Maps:

App with Google Maps

App with Baidu Maps:

App with Baidu Maps

1

There are 1 answers

1
Lu_ On

Baidu documentation says

/ / 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;

Did you try any of these? you can get it with gogle translation: http://lbsyun.baidu.com/index.php?title=iossdk/guide/create-map/location

and read that: http://lbsyun.baidu.com/index.php?title=ios-locsdk You need to apply for a key to use positioning