diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-02-28 12:27:12 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-03-04 14:45:32 +0200 |
commit | 73ac3c784fe755650dc631e2e722a47890981248 (patch) | |
tree | a31ef2c1473964af7641a5fc341b65fd840bf6a8 /src/mbgl | |
parent | 21a39306da56c5d2c88447ba5ea053a7f989480a (diff) | |
download | qtlocation-mapboxgl-73ac3c784fe755650dc631e2e722a47890981248.tar.gz |
[core] Remove map bearing setters/getters
Diffstat (limited to 'src/mbgl')
-rw-r--r-- | src/mbgl/map/map.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp index c3e5edc688..d7a1020262 100644 --- a/src/mbgl/map/map.cpp +++ b/src/mbgl/map/map.cpp @@ -369,26 +369,6 @@ void Map::rotateBy(const ScreenCoordinate& first, const ScreenCoordinate& second impl->onUpdate(); } -void Map::setBearing(double degrees, const AnimationOptions& animation) { - easeTo(CameraOptions().withAngle(degrees), animation); -} - -void Map::setBearing(double degrees, optional<ScreenCoordinate> anchor, const AnimationOptions& animation) { - return easeTo(CameraOptions().withAngle(degrees).withAnchor(anchor), animation); -} - -void Map::setBearing(double degrees, const EdgeInsets& padding, const AnimationOptions& animation) { - easeTo(CameraOptions().withAngle(degrees).withPadding(padding), animation); -} - -double Map::getBearing() const { - return -impl->transform.getAngle() * util::RAD2DEG; -} - -void Map::resetNorth(const AnimationOptions& animation) { - easeTo(CameraOptions().withAngle(0.0), animation); -} - #pragma mark - North Orientation void Map::setNorthOrientation(NorthOrientation orientation) { |