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.

MGLCompassDirectionFormatter should have granularity option #6872

Closed

Description

@1ec5

MGLCompassDirectionFormatter currently provides the full 32 points of the mariner’s compass, which is good for maritime use cases but overly technical for the most common use case, terrestrial navigation UI. There should be a property that controls the formatter’s granularity, with the following options (naming suggestions welcome):

  • MGLCompassStyleCardinal (4 points)
  • MGLCompassStyleMainWinds (8)
  • MGLCompassStyleHalfWinds (16)
  • MGLCompassStyleQuarterWinds (32)

The default would be MGLCompassStyleMainWinds, whereas it is currently effectively MGLCompassStyleQuarterWinds.

/cc @willwhite

Activity

  1. added
    iOS
    macOS
    navigation
    on Nov 1, 2016
  2. added
    archived
    on Nov 16, 2018
  3. stale commented on Nov 23, 2018

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

  4. 1ec5 commented on Apr 4, 2019

    @1ec5
    ContributorAuthor

    This would’ve been nice for mapbox/mapbox-navigation-ios#2077, but at least we have a workaround: round the degree measurement to increments that ensure the right granularity.

  5. reopened this on Apr 4, 2019
  6. removed
    archived
    on Apr 4, 2019
  7. added
    archived
    on Oct 1, 2019
  8. stale commented on Oct 1, 2019

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    archivediOSmacOSnavigation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions