[android] #2805 - Integrating gesture with new get / set Tilt API refactoring

This commit is contained in:
Brad Leege
2015-12-03 14:34:39 -06:00
parent d40d8e0c59
commit cdfdd86de1

View File

@@ -2934,11 +2934,11 @@ public final class MapView extends FrameLayout {
mNativeMapView.cancelTransitions();
// Get rotate value
double pitch = mNativeMapView.getPitch();
double pitch = getTilt();
pitch += detector.getShovePixelsDelta();
// Tilt the map
mNativeMapView.setPitch(pitch);
setTilt(pitch, null);
return true;
}