Added transition frame and finish functions to CameraOptions. Added Objective-C equivalents to the three main entry points to easeTo() in MGLMapView. Fixes #1581.
28 lines
650 B
C++
28 lines
650 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;
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* MBGL_MAP_CAMERA */
|