You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
It's 1.5x larger, if MapKit is using the raw heading accuracy. I opted to exaggerate the heading indicator because 1. I thought it looked better and 2. how accurate is the heading accuracy number, anyway. 😉
Looking at these images, it would be good to revisit this and make the accuracy indicator look better:
Clip the heading indicator's wide end to the accuracy circle.
Are you running in a simulator? Simulator.app's implementation of Core Location doesn't support heading or course, even when simulating models that do support heading and course in real life.
My previous test was on an iPhone with sdk 3.2.3.
I only have an iPad with me right now but I have created an empty project using sdk v3.3.0-beta.2 to quickly test it again. The only code in the project is an MGLMapView and the two lines above to set showUserLocation and userTrackingMode.
The user location is correctly displayed but the heading indicator isn't there and the map doesn't rotate when the heading changes. (Just for peace of mind I checked heading is showed correctly on Plan & Google Map).
Unless you’re using a cellular-capable iPad, it also doesn’t support heading updates. But I’m unsure why it isn’t working on an iPhone. Is it possible that something else (like a gesture) is causing the map view to automatically exit user tracking mode? Also, enabling user tracking mode automatically sets showsUserLocation, so that first line should be unnecessary.
If you still have problems getting the heading indicator to show up, would you mind opening a separate issue to track that? It’s definitely unrelated to the issue I originally reported above.
So does that mean MapBox doesn't rely solely on the compass to display the heading?
I tried again with an iPhone and like you said setting the userTrackingMode alone is enough to display the user location but still, no heading indicator is visible.
I walked a bit outside just to be sure, the user dot follows me correctly but the map doesn't rotate with heading changes and no indicator is visible.
I guess I am still missing something but just to be sure could you make a quick test from an empty project using sdk 3.2.3? You can try with this repo if you want, just add a MapBoxAccessToken.
Alright I played a bit with userTrackingMode on my empty project and it seems that something automatically exit tracking mode (like you said).. but I don't know what and why yet.
EDIT: Scrolling the map seems to exit tracking mode.
I would like to have the indicator displayed without all the behavior of the tracking (map that rotates and center on user location).
Do you know if it is possible to display the heading indicator without having to set userTrackingMode to MGLUserTrackingModeFollowWithHeading?
@Bluezen, Let’s keep this ticket focused on the width of the existing heading accuracy indicator. I’ve filed #5523 to track the feature you’re requesting.
Activity
friedbunny commentedon Jan 28, 2016
It's 1.5x larger, if MapKit is using the raw heading accuracy. I opted to exaggerate the heading indicator because 1. I thought it looked better and 2. how accurate is the heading accuracy number, anyway. 😉
Looking at these images, it would be good to revisit this and make the accuracy indicator look better:
Bluezen commentedon Jun 29, 2016
Hi! A quick question a bit off topic but how did you manage to show the heading indicator?
Setting the following properties display the user location but not it's heading:
Can you tell me what I am missing? Thank you in advance.
1ec5 commentedon Jun 29, 2016
Are you running in a simulator? Simulator.app's implementation of Core Location doesn't support heading or course, even when simulating models that do support heading and course in real life.
Bluezen commentedon Jun 29, 2016
My previous test was on an iPhone with sdk 3.2.3.
I only have an iPad with me right now but I have created an empty project using sdk v3.3.0-beta.2 to quickly test it again. The only code in the project is an MGLMapView and the two lines above to set
showUserLocationanduserTrackingMode.The user location is correctly displayed but the heading indicator isn't there and the map doesn't rotate when the heading changes. (Just for peace of mind I checked heading is showed correctly on Plan & Google Map).
I wonder what I'm not doing to make it work.
1ec5 commentedon Jun 29, 2016
Unless you’re using a cellular-capable iPad, it also doesn’t support heading updates. But I’m unsure why it isn’t working on an iPhone. Is it possible that something else (like a gesture) is causing the map view to automatically exit user tracking mode? Also, enabling user tracking mode automatically sets
showsUserLocation, so that first line should be unnecessary.If you still have problems getting the heading indicator to show up, would you mind opening a separate issue to track that? It’s definitely unrelated to the issue I originally reported above.
Bluezen commentedon Jun 30, 2016
So does that mean MapBox doesn't rely solely on the compass to display the heading?
I tried again with an iPhone and like you said setting the
userTrackingModealone is enough to display the user location but still, no heading indicator is visible.I walked a bit outside just to be sure, the user dot follows me correctly but the map doesn't rotate with heading changes and no indicator is visible.
I guess I am still missing something but just to be sure could you make a quick test from an empty project using sdk 3.2.3? You can try with this repo if you want, just add a MapBoxAccessToken.
Bluezen commentedon Jun 30, 2016
Alright I played a bit with
userTrackingModeon my empty project and it seems that something automatically exit tracking mode (like you said).. but I don't know what and why yet.EDIT: Scrolling the map seems to exit tracking mode.
Bluezen commentedon Jun 30, 2016
I would like to have the indicator displayed without all the behavior of the tracking (map that rotates and center on user location).
Do you know if it is possible to display the heading indicator without having to set
userTrackingModetoMGLUserTrackingModeFollowWithHeading?1ec5 commentedon Jun 30, 2016
@Bluezen, Let’s keep this ticket focused on the width of the existing heading accuracy indicator. I’ve filed #5523 to track the feature you’re requesting.