diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-03-01 09:58:58 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-03-04 14:45:32 +0200 |
commit | ba7427b4acf116aca7451ad3a6067dc234d3fa70 (patch) | |
tree | 106462886345e60f47bdeeaaf46580c67987b064 /include | |
parent | 73ac3c784fe755650dc631e2e722a47890981248 (diff) | |
download | qtlocation-mapboxgl-ba7427b4acf116aca7451ad3a6067dc234d3fa70.tar.gz |
[core] Transform{State}: s/angle/bearing/
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/map/camera.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/mbgl/map/camera.hpp b/include/mbgl/map/camera.hpp index 69d699a4e4..e3d6677c0a 100644 --- a/include/mbgl/map/camera.hpp +++ b/include/mbgl/map/camera.hpp @@ -19,7 +19,7 @@ struct CameraOptions { CameraOptions& withPadding(const EdgeInsets& p) { padding = p; return *this; } CameraOptions& withAnchor(const optional<ScreenCoordinate>& o) { anchor = o; return *this; } CameraOptions& withZoom(const optional<double>& o) { zoom = o; return *this; } - CameraOptions& withAngle(const optional<double>& o) { angle = o; return *this; } + CameraOptions& withBearing(const optional<double>& o) { bearing = o; return *this; } CameraOptions& withPitch(const optional<double>& o) { pitch = o; return *this; } /** Coordinate at the center of the map. */ @@ -38,7 +38,7 @@ struct CameraOptions { optional<double> zoom; /** Bearing, measured in degrees from true north. Wrapped to [0, 360). */ - optional<double> angle; + optional<double> bearing; /** Pitch toward the horizon measured in degrees , with 0 deg resulting in a two-dimensional map. */ @@ -50,7 +50,7 @@ constexpr bool operator==(const CameraOptions& a, const CameraOptions& b) { && a.padding == b.padding && a.anchor == b.anchor && a.zoom == b.zoom - && a.angle == b.angle + && a.bearing == b.bearing && a.pitch == b.pitch; } |