summaryrefslogtreecommitdiff
path: root/macosx
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2014-07-21 11:19:47 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2014-07-21 11:30:51 -0700
commit86336ed8383f408d8faf92b88267c8d7435394ce (patch)
tree9993191ddd0496a5f45bc09be0da2565e950d5ec /macosx
parentc76ef7700c5ef859e270562203cc1d9af2aea00c (diff)
downloadqtlocation-mapboxgl-86336ed8383f408d8faf92b88267c8d7435394ce.tar.gz
Flip name and units and sign of rotation API
Angle -> Bearing Radians -> Degrees Clockwise -> Counterclockwise
Diffstat (limited to 'macosx')
-rw-r--r--macosx/main.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/main.mm b/macosx/main.mm
index da78f089c5..3df85a782a 100644
--- a/macosx/main.mm
+++ b/macosx/main.mm
@@ -13,7 +13,7 @@ int main() {
// Load settings
mbgl::Settings_NSUserDefaults settings;
map.setLonLatZoom(settings.longitude, settings.latitude, settings.zoom);
- map.setAngle(settings.angle);
+ map.setBearing(settings.bearing);
map.setDebug(settings.debug);
// Set access token if present
@@ -32,7 +32,7 @@ int main() {
// Save settings
map.getLonLatZoom(settings.longitude, settings.latitude, settings.zoom);
- settings.angle = map.getAngle();
+ settings.bearing = map.getBearing();
settings.debug = map.getDebug();
settings.save();