summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2018-11-23 16:25:24 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2018-11-27 21:38:36 +0200
commit20ca1a041868955524b3f2475ebc83760398ca82 (patch)
tree2745a77cbd0483d739af0eb0c5654fadfabf20a5 /include
parente8f7866e9e3328bb4d40da172fb5a549315fd486 (diff)
downloadqtlocation-mapboxgl-20ca1a041868955524b3f2475ebc83760398ca82.tar.gz
[core] Cleanup Transform, use {jump,ease}To() instead
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/map/camera.hpp7
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;