28 lines
668 B
C++
28 lines
668 B
C++
#ifndef MBGL_MAP_CAMERA
|
|
#define MBGL_MAP_CAMERA
|
|
|
|
#include <mapbox/optional.hpp>
|
|
|
|
#include <mbgl/util/geo.hpp>
|
|
#include <mbgl/util/chrono.hpp>
|
|
#include <mbgl/util/unitbezier.hpp>
|
|
|
|
#include <functional>
|
|
|
|
namespace mbgl {
|
|
|
|
struct CameraOptions {
|
|
mapbox::util::optional<LatLng> center;
|
|
mapbox::util::optional<double> zoom;
|
|
mapbox::util::optional<double> angle;
|
|
mapbox::util::optional<double> pitch;
|
|
mapbox::util::optional<Duration> duration;
|
|
mapbox::util::optional<mbgl::util::UnitBezier> easing;
|
|
std::function<void(double)> transitionFrameFn;
|
|
std::function<void()> transitionFinishFn;
|
|
};
|
|
|
|
} // namespace mbgl
|
|
|
|
#endif /* MBGL_MAP_CAMERA */
|