summaryrefslogtreecommitdiff
path: root/include/mbgl/map
diff options
context:
space:
mode:
authorTobrun <tobrun.van.nuland@gmail.com>2017-02-17 12:09:30 +0100
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-02-20 16:52:18 -0800
commita0992f05504ae093b5f770a5e5324307a12fc002 (patch)
treebd883e0b8c48ec592390f063b6195e162af5d064 /include/mbgl/map
parent55804f827316804a84eb10df1235f0a05501f1c3 (diff)
downloadqtlocation-mapboxgl-a0992f05504ae093b5f770a5e5324307a12fc002.tar.gz
[core] - allow moveBy to use AnimationOptions
[android] - update jni bindings for moveBy with an interpolator
Diffstat (limited to 'include/mbgl/map')
-rw-r--r--include/mbgl/map/map.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index c51d7e9ffd..3939ab1881 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -9,6 +9,7 @@
#include <mbgl/util/size.hpp>
#include <mbgl/annotation/annotation.hpp>
#include <mbgl/style/transition_options.hpp>
+#include <mbgl/map/camera.hpp>
#include <cstdint>
#include <string>
@@ -86,7 +87,7 @@ public:
void flyTo(const CameraOptions&, const AnimationOptions&);
// Position
- void moveBy(const ScreenCoordinate&, const Duration& = Duration::zero());
+ void moveBy(const ScreenCoordinate&, const AnimationOptions& = {});
void setLatLng(const LatLng&, optional<ScreenCoordinate>, const Duration& = Duration::zero());
void setLatLng(const LatLng&, optional<EdgeInsets>, const Duration& = Duration::zero());
void setLatLng(const LatLng&, const Duration& = Duration::zero());