Flip name and units and sign of rotation API
Angle -> Bearing Radians -> Degrees Clockwise -> Counterclockwise
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user