diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-01-13 00:47:50 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-01-14 00:40:03 -0800 |
commit | 8bad15bf8785bf7d47eef9f1bf3ab86cfa393481 (patch) | |
tree | 9401b99d37cc447dbca519d569008209ea6cbde2 /include/mbgl/map/camera.hpp | |
parent | a3d4aeefecadc3717dc27a53ae170a4c0e878ce8 (diff) | |
download | qtlocation-mapboxgl-8bad15bf8785bf7d47eef9f1bf3ab86cfa393481.tar.gz |
[core] Consolidated zoom and angle anchor logic
Made anchor a CameraOption for easeTo().
Diffstat (limited to 'include/mbgl/map/camera.hpp')
-rw-r--r-- | include/mbgl/map/camera.hpp | 4 |
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; |