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

Rotation based on heading going opposite of Google / Apple (iOS) #1780

Closed
parrots opened this issue Jun 23, 2015 · 1 comment
Closed

Rotation based on heading going opposite of Google / Apple (iOS) #1780

parrots opened this issue Jun 23, 2015 · 1 comment
Assignees
Labels
bug GL JS parity For feature parity with Mapbox GL JS iOS Mapbox Maps SDK for iOS
Milestone

Comments

@parrots
Copy link

parrots commented Jun 23, 2015

When setting the direction in MapBox GL to a specific heading it seems to rotate in a direction opposite Google Maps and Apple. Meaning at 0 and 180 the maps line up but at 90 MapBox is at an Apple equivalent to 270.

Probably just need to reverse the direction you start to rotate based on a heading.

Video here: http://f.cl.ly/items/0w3K2a3C0T1R2m1K1D0m/Rotation.mov

@friedbunny friedbunny added the GL JS parity For feature parity with Mapbox GL JS label Jun 24, 2015
@1ec5 1ec5 added bug iOS Mapbox Maps SDK for iOS GL JS parity For feature parity with Mapbox GL JS and removed GL JS parity For feature parity with Mapbox GL JS labels Jun 25, 2015
@1ec5
Copy link
Contributor

1ec5 commented Jun 25, 2015

As @friedbunny points out, we’re also inconsistent with mapbox/mapbox-gl-js. From the documentation for -[MKCamera heading]:

The value 0 means that the top edge of the map view corresponds to true north. The value 90 means the top of the map is pointing due east. The value 180 means the top of the map points due south, and so on.

@1ec5 1ec5 added this to the iOS Beta 3 milestone Jun 25, 2015
@1ec5 1ec5 self-assigned this Jun 25, 2015
1ec5 added a commit that referenced this issue Jun 25, 2015
For consistency with MapKit, the Google Maps SDK, and these methods’ own documentation.

Fixes #1780.
@1ec5 1ec5 removed the in progress label Jun 25, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug GL JS parity For feature parity with Mapbox GL JS iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests

3 participants