Open MarsVard opened 10 years ago
At the moment the animation is canceled in updateAnimation whenever the Viewports MapPosition was changed outside the animator, so just passing flags for which value to be animated would not help. Maybe it suffices to move the cancellation to Map.setMapPosition and add an animateTo with ANIM_* flags parameter. In general the Animator needs improvement, but I dont have time to look into this currently.
Thanks for the tip @hjanetzek I'll try to play around with it myself if I have time over the weekend...
I'm trying to have the compass update the map orientation while animating the maplocation to the user's gps location.
I'm setting the map orientation by doing Map.viewport().setRotation(...); and I try to use the Animator to fly to the user's location, but it seems like the 2 are in conflict because the animator implicitly tries to alter the rotation.
I think the animator class should definitely have some more options so we can se what should be animated and what not
by looking at the animateTo method I can see you're passing all flags to the animateStart method ANIM_MOVE | ANIM_SCALE | ANIM_ROTATE | ANIM_TILT, there should be an option to choose which flags are passed