Fix android map rotation. Rotate by degrees rather than radians. Fixes part of #553.

This commit is contained in:
Jordan Hollinger
2014-11-17 15:54:36 -08:00
parent 417a156b57
commit c02ea37ed6

View File

@@ -854,7 +854,7 @@ public class MapView extends SurfaceView {
// Rotate the map
double bearing = mNativeMapView.getBearing();
bearing += detector.getRotationDegreesDelta() * Math.PI / 180.0;
bearing += detector.getRotationDegreesDelta();
Log.d("rotate", "rotate to " + bearing);
mNativeMapView.setBearing(bearing, detector.getFocusX() / mScreenDensity,
detector.getFocusY() / mScreenDensity);