[core] - allow moveBy to use AnimationOptions

[android] - update jni bindings for moveBy with an interpolator
This commit is contained in:
Tobrun
2017-02-17 12:09:30 +01:00
committed by John Firebaugh
parent 55804f8273
commit a0992f0550
5 changed files with 15 additions and 7 deletions

View File

@@ -322,7 +322,7 @@ void Transform::flyTo(const CameraOptions &camera, const AnimationOptions &anima
#pragma mark - Position
void Transform::moveBy(const ScreenCoordinate& offset, const Duration& duration) {
void Transform::moveBy(const ScreenCoordinate& offset, const AnimationOptions& animation) {
ScreenCoordinate centerOffset = {
offset.x,
-offset.y,
@@ -331,7 +331,7 @@ void Transform::moveBy(const ScreenCoordinate& offset, const Duration& duration)
CameraOptions camera;
camera.center = state.screenCoordinateToLatLng(centerPoint);
easeTo(camera, duration);
easeTo(camera, animation);
}
void Transform::setLatLng(const LatLng& latLng, const Duration& duration) {