summaryrefslogtreecommitdiff
path: root/include/mbgl/map
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-01-13 00:47:50 -0800
committerMinh Nguyễn <mxn@1ec5.org>2016-01-14 00:40:03 -0800
commit8bad15bf8785bf7d47eef9f1bf3ab86cfa393481 (patch)
tree9401b99d37cc447dbca519d569008209ea6cbde2 /include/mbgl/map
parenta3d4aeefecadc3717dc27a53ae170a4c0e878ce8 (diff)
downloadqtlocation-mapboxgl-8bad15bf8785bf7d47eef9f1bf3ab86cfa393481.tar.gz
[core] Consolidated zoom and angle anchor logic
Made anchor a CameraOption for easeTo().
Diffstat (limited to 'include/mbgl/map')
-rw-r--r--include/mbgl/map/camera.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mbgl/map/camera.hpp b/include/mbgl/map/camera.hpp
index 95be4e8178..80734b76fd 100644
--- a/include/mbgl/map/camera.hpp
+++ b/include/mbgl/map/camera.hpp
@@ -17,6 +17,10 @@ struct CameraOptions {
/** Coordinate at the center of the map. */
mapbox::util::optional<LatLng> center;
+ /** Point of reference for `zoom` and `angle`, assuming an origin at the
+ top-left corner of the view. */
+ mapbox::util::optional<PrecisionPoint> anchor;
+
/** Zero-based zoom level. Constrained to the minimum and maximum zoom
levels. */
mapbox::util::optional<double> zoom;