diff options
Diffstat (limited to 'include')
-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; |