diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2014-07-21 11:19:47 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2014-07-21 11:30:51 -0700 |
commit | 86336ed8383f408d8faf92b88267c8d7435394ce (patch) | |
tree | 9993191ddd0496a5f45bc09be0da2565e950d5ec /linux | |
parent | c76ef7700c5ef859e270562203cc1d9af2aea00c (diff) | |
download | qtlocation-mapboxgl-86336ed8383f408d8faf92b88267c8d7435394ce.tar.gz |
Flip name and units and sign of rotation API
Angle -> Bearing
Radians -> Degrees
Clockwise -> Counterclockwise
Diffstat (limited to 'linux')
-rw-r--r-- | linux/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/main.cpp b/linux/main.cpp index e603be55e4..d51d2c8846 100644 --- a/linux/main.cpp +++ b/linux/main.cpp @@ -60,7 +60,7 @@ int main(int argc, char *argv[]) { // Load settings mbgl::Settings_JSON 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 @@ -78,7 +78,7 @@ int main(int argc, char *argv[]) { // Save settings map.getLonLatZoom(settings.longitude, settings.latitude, settings.zoom); - settings.angle = map.getAngle(); + settings.bearing = map.getBearing(); settings.debug = map.getDebug(); settings.save(); |