diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2018-11-23 16:25:24 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2018-11-27 21:38:36 +0200 |
commit | 20ca1a041868955524b3f2475ebc83760398ca82 (patch) | |
tree | 2745a77cbd0483d739af0eb0c5654fadfabf20a5 /include/mbgl/map | |
parent | e8f7866e9e3328bb4d40da172fb5a549315fd486 (diff) | |
download | qtlocation-mapboxgl-20ca1a041868955524b3f2475ebc83760398ca82.tar.gz |
[core] Cleanup Transform, use {jump,ease}To() instead
Diffstat (limited to 'include/mbgl/map')
-rw-r--r-- | include/mbgl/map/camera.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mbgl/map/camera.hpp b/include/mbgl/map/camera.hpp index d5563b5ccf..69d699a4e4 100644 --- a/include/mbgl/map/camera.hpp +++ b/include/mbgl/map/camera.hpp @@ -15,6 +15,13 @@ namespace mbgl { center point when both are set. */ struct CameraOptions { + CameraOptions& withCenter(const optional<LatLng>& o) { center = o; return *this; } + 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& withPitch(const optional<double>& o) { pitch = o; return *this; } + /** Coordinate at the center of the map. */ optional<LatLng> center; |