update map position animation at beginning of each frame

This commit is contained in:
Hannes Janetzek
2013-06-04 23:01:54 +02:00
parent 6cfc776911
commit 0a2bb1026e
2 changed files with 61 additions and 137 deletions

View File

@@ -253,13 +253,13 @@ public class GLRenderer implements GLSurfaceView.Renderer {
boolean changed = false;
// get current MapPosition, set mBoxCoords (mapping of screen to model
// coordinates)
MapPosition pos = mMapPosition;
synchronized (mMapViewPosition) {
// update MapPosition
mMapViewPosition.updateAnimation();
// get current MapPosition
changed = mMapViewPosition.getMapPosition(pos);
if (changed)