diff options
author | Tobrun <tobrun.van.nuland@gmail.com> | 2017-02-17 12:09:30 +0100 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-02-20 16:52:18 -0800 |
commit | a0992f05504ae093b5f770a5e5324307a12fc002 (patch) | |
tree | bd883e0b8c48ec592390f063b6195e162af5d064 /include | |
parent | 55804f827316804a84eb10df1235f0a05501f1c3 (diff) | |
download | qtlocation-mapboxgl-a0992f05504ae093b5f770a5e5324307a12fc002.tar.gz |
[core] - allow moveBy to use AnimationOptions
[android] - update jni bindings for moveBy with an interpolator
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/map/map.hpp | 3 |
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()); |