Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Heading accuracy indicator is too wide #3718

Closed

Description

@1ec5

The user dot’s heading accuracy indicator appears to be twice as wide as it should be, assuming MapKit’s representation is correct:

mapbox mapkit

/cc @friedbunny

Activity

  1. added
    iOS
    on Jan 28, 2016
  2. friedbunny commented on Jan 28, 2016

    @friedbunny
    Contributor

    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.
    • Does size matter? Change the minimum constraint, but don't exaggerate.
  3. Bluezen commented on Jun 29, 2016

    @Bluezen

    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:

    [self.mapboxView setShowsUserLocation:YES];
    [self.mapboxView setUserTrackingMode:MGLUserTrackingModeFollowWithHeading];

    Can you tell me what I am missing? Thank you in advance.

  4. 1ec5 commented on Jun 29, 2016

    @1ec5
    ContributorAuthor

    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.

  5. Bluezen commented on Jun 29, 2016

    @Bluezen

    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).

    I wonder what I'm not doing to make it work.

  6. 1ec5 commented on Jun 29, 2016

    @1ec5
    ContributorAuthor

    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.

  7. Bluezen commented on Jun 30, 2016

    @Bluezen

    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.

  8. Bluezen commented on Jun 30, 2016

    @Bluezen

    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.

  9. Bluezen commented on Jun 30, 2016

    @Bluezen

    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?

  10. 1ec5 commented on Jun 30, 2016

    @1ec5
    ContributorAuthor

    @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.

  11. added this to the ios-v3.4.0 milestone on Aug 24, 2016
  12. self-assigned this
    on Aug 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugiOS

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions