After following the Mapbox First Steps guide I haven't been able to figure out how to get a user's location to display in the app. Has anyone successfully gotten the user location marker to show up in iOS9 using the latest MapboxGL build? My assumption is the user location marker is similar to the marker in the non-GL Mapbox library (a pulsating marker).
Steps taken:
- Per the First Steps guide, Info.plist was updated with the
NSLocationAlwaysUsageDescription
property. - Map is initialised with a call to
mapView.showsUserLocation = true
. - I implemented the MGLMapViewDelegate
didUpdateUserLocation
function to simply log all method invocations. I found that the coordinates contain invalid values (the latitude and longitude values seem to both be: 3.40282346638529e+38).
Currently testing this on Xcode7 Beta 3 / Swift 2.0 / MapboxGL 0.5.2.