From 19ab8d55509f5cd759e0d477ba0ba4434393bef7 Mon Sep 17 00:00:00 2001 From: Brad Leege Date: Thu, 17 Dec 2015 14:26:41 -0600 Subject: [PATCH] [android] #3244 - Logging bearing / direction data from animateCamera --- .../src/main/java/com/mapbox/mapboxsdk/views/MapView.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java b/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java index d6789bb41fa..61c6c6a1d3d 100644 --- a/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java +++ b/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java @@ -1205,6 +1205,7 @@ public void setTilt(Double pitch, @Nullable Long duration) { @FloatRange(from = 0, to = 360) public double getDirection() { double direction = -mNativeMapView.getBearing(); + Log.i(TAG, "direction = " + direction); while (direction > 360) { direction -= 360; @@ -1213,6 +1214,8 @@ public double getDirection() { direction += 360; } + Log.i(TAG, "final direction = " + direction); + return direction; } @@ -1524,6 +1527,7 @@ public final void animateCamera (CameraUpdate update, int durationMs, MapView.Ca if (update.getBearing() >= 0) { angle = (-update.getBearing()) * MathConstants.DEG2RAD; } + Log.i(TAG, "CameraOptions.getBearing() == " + update.getBearing() + "; angle = " + angle); double pitch = -1; if (update.getTilt() >= 0) { double dp = MathUtils.clamp(update.getTilt(), MINIMUM_TILT, MAXIMUM_TILT);