Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] #3244 - Removing logging for bearing / direction data from …
Browse files Browse the repository at this point in the history
…animateCamera
  • Loading branch information
bleege committed Dec 17, 2015
1 parent 19ab8d5 commit d030bfc
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
import com.mapbox.mapboxsdk.geometry.LatLngZoom;
import com.mapbox.mapboxsdk.utils.ApiAccess;
import com.mapbox.mapboxsdk.utils.MathUtils;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.nio.ByteBuffer;
Expand Down Expand Up @@ -1205,7 +1204,6 @@ 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;
Expand All @@ -1214,8 +1212,6 @@ public double getDirection() {
direction += 360;
}

Log.i(TAG, "final direction = " + direction);

return direction;
}

Expand Down Expand Up @@ -1527,7 +1523,6 @@ 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);
Expand Down

0 comments on commit d030bfc

Please sign in to comment.