diff --git a/vtm/src/org/oscim/map/Animator.java b/vtm/src/org/oscim/map/Animator.java index 476d6999..797b22a3 100644 --- a/vtm/src/org/oscim/map/Animator.java +++ b/vtm/src/org/oscim/map/Animator.java @@ -1,5 +1,6 @@ /* * Copyright 2013 Hannes Janetzek + * Copyright 2016 Stephan Leuschner * * This file is part of the OpenScienceMap project (http://www.opensciencemap.org). * @@ -193,6 +194,8 @@ public class Animator { } private void animStart(float duration, int state) { + if (!isActive()) + mMap.events.fire(Map.ANIM_START, mMap.mMapPosition); mCurPos.copy(mStartPos); mState = state; mDuration = duration; diff --git a/vtm/src/org/oscim/map/Map.java b/vtm/src/org/oscim/map/Map.java index 43341196..618f80c0 100644 --- a/vtm/src/org/oscim/map/Map.java +++ b/vtm/src/org/oscim/map/Map.java @@ -1,6 +1,7 @@ /* * Copyright 2013 Hannes Janetzek * Copyright 2016 Andrey Novikov + * Copyright 2016 Stephan Leuschner * * This file is part of the OpenScienceMap project (http://www.opensciencemap.org). * @@ -92,6 +93,8 @@ public abstract class Map implements TaskQueue { public static final Event ANIM_END = new Event(); + public static final Event ANIM_START = new Event(); + public final EventDispatcher input; public final EventDispatcher events;