[core] Consolidated zoom and angle anchor logic

Made anchor a CameraOption for easeTo().
This commit is contained in:
Minh Nguyễn
2016-01-13 00:47:50 -08:00
committed by Minh Nguyễn
parent a3d4aeefec
commit 8bad15bf87
6 changed files with 90 additions and 35 deletions

View File

@@ -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;