summaryrefslogtreecommitdiff
path: root/common/settings_json.cpp
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 /common/settings_json.cpp
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 'common/settings_json.cpp')
-rw-r--r--common/settings_json.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/settings_json.cpp b/common/settings_json.cpp
index bceab50da6..f2f1248aa6 100644
--- a/common/settings_json.cpp
+++ b/common/settings_json.cpp
@@ -18,7 +18,7 @@ void Settings_JSON::load() {
longitude = document[rapidjson::SizeType(0)].GetDouble();
latitude = document[1].GetDouble();
zoom = document[2].GetDouble();
- angle = document[3].GetDouble();
+ bearing = document[3].GetDouble();
debug = document[4].GetBool();
}
}
@@ -32,7 +32,7 @@ void Settings_JSON::save() {
writer.Double(longitude);
writer.Double(latitude);
writer.Double(zoom);
- writer.Double(angle);
+ writer.Double(bearing);
writer.Bool(debug);
writer.EndArray();
}
@@ -41,6 +41,6 @@ void Settings_JSON::clear() {
longitude = 0;
latitude = 0;
zoom = 0;
- angle = 0;
+ bearing = 0;
debug = false;
}