From 9b62661b07e86fc1d64e308fde3e15527c1cd8c8 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 19 Jan 2016 14:47:58 -0800 Subject: [core] Use experimental optional instead of mapbox::util::optional --- include/mbgl/map/camera.hpp | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'include/mbgl/map/camera.hpp') diff --git a/include/mbgl/map/camera.hpp b/include/mbgl/map/camera.hpp index 32ad8f019f..a1b9bfe691 100644 --- a/include/mbgl/map/camera.hpp +++ b/include/mbgl/map/camera.hpp @@ -1,11 +1,10 @@ #ifndef MBGL_MAP_CAMERA #define MBGL_MAP_CAMERA -#include - #include #include #include +#include #include @@ -15,27 +14,27 @@ namespace mbgl { optional. */ struct CameraOptions { /** Coordinate at the center of the map. */ - mapbox::util::optional center; + optional center; /** Padding around the interior of the view that affects the frame of reference for `center`. */ - mapbox::util::optional padding; + optional padding; /** Point of reference for `zoom` and `angle`, assuming an origin at the top-left corner of the view. */ - mapbox::util::optional anchor; + optional anchor; /** Zero-based zoom level. Constrained to the minimum and maximum zoom levels. */ - mapbox::util::optional zoom; + optional zoom; /** Bearing, measured in radians counterclockwise from true north. Wrapped to [−π rad, π rad). */ - mapbox::util::optional angle; + optional angle; /** Pitch toward the horizon measured in radians, with 0 rad resulting in a two-dimensional map. */ - mapbox::util::optional pitch; + optional pitch; }; /** Various options for describing a transition between viewpoints with @@ -43,21 +42,21 @@ struct CameraOptions { struct is used. */ struct AnimationOptions { /** Time to animate to the viewpoint defined herein. */ - mapbox::util::optional duration; + optional duration; /** Average velocity of a flyTo() transition, measured in screenfuls per second, assuming a linear timing curve. A screenful is the visible span in pixels. It does not correspond to a fixed physical distance but rather varies by zoom level. */ - mapbox::util::optional velocity; + optional velocity; /** Zero-based zoom level at the peak of the flyTo() transition’s flight path. */ - mapbox::util::optional minZoom; + optional minZoom; /** The easing timing curve of the transition. */ - mapbox::util::optional easing; + optional easing; /** A function that is called on each frame of the transition, just before a screen update, except on the last frame. The first parameter indicates -- cgit v1.2.1