update map position animation at beginning of each frame
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user