make Viewport.MAX_TILT public

This commit is contained in:
Hannes Janetzek 2014-02-15 00:52:28 +01:00
parent c6b27aadf0
commit 106b45f0c4
2 changed files with 2 additions and 1 deletions

View File

@ -142,6 +142,7 @@ public class MapAnimator {
mDeltaPos.angle += 360;
mDeltaPos.tilt = mapPosition.tilt - mStartPos.tilt;
mDeltaPos.tilt = clamp(mDeltaPos.tilt, 0, Viewport.MAX_TILT);
mState = ANIM_MOVE | ANIM_SCALE | ANIM_ROTATE | ANIM_TILT;

View File

@ -42,7 +42,7 @@ public class Viewport {
public final static double MAX_SCALE = (1 << MAX_ZOOMLEVEL);
public final static double MIN_SCALE = (1 << MIN_ZOOMLEVEL);
private final static float MAX_TILT = 65;
public final static float MAX_TILT = 65;
private final MapPosition mPos = new MapPosition();