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

MGLCompassDirectionFormatter should have granularity option #6872

Closed
1ec5 opened this issue Nov 1, 2016 · 3 comments
Closed

MGLCompassDirectionFormatter should have granularity option #6872

1ec5 opened this issue Nov 1, 2016 · 3 comments
Labels
archived Archived because of inactivity iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS navigation For the Mapbox Navigation SDK for Android or iOS or navigation use cases in general

Comments

@1ec5
Copy link
Contributor

1ec5 commented Nov 1, 2016

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

@1ec5 1ec5 added iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS navigation For the Mapbox Navigation SDK for Android or iOS or navigation use cases in general labels Nov 1, 2016
@stale stale bot added the archived Archived because of inactivity label Nov 16, 2018
@stale
Copy link

stale bot commented Nov 23, 2018

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

@stale stale bot closed this as completed Nov 23, 2018
@1ec5
Copy link
Contributor Author

1ec5 commented Apr 4, 2019

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.

@1ec5 1ec5 reopened this Apr 4, 2019
@stale stale bot removed the archived Archived because of inactivity label Apr 4, 2019
@stale stale bot added the archived Archived because of inactivity label Oct 1, 2019
@stale
Copy link

stale bot commented Oct 1, 2019

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

@stale stale bot closed this as completed Oct 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived Archived because of inactivity iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS navigation For the Mapbox Navigation SDK for Android or iOS or navigation use cases in general
Projects
None yet
Development

No branches or pull requests

1 participant