Flip name and units and sign of rotation API

Angle -> Bearing
Radians -> Degrees
Clockwise -> Counterclockwise
This commit is contained in:
John Firebaugh
2014-07-21 11:19:47 -07:00
parent c76ef7700c
commit 86336ed838
9 changed files with 26 additions and 23 deletions

View File

@@ -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();