minhld / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

FollowLocation vs mapView.isAnimating #391

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

While I have enabled 'follow my location' I notice a strange effect.
If I'am moving constantly (with a car or with emulated gps changes) and I play 
with the zoom controls also fast constantly then it seems that there is a 
conflict between the 'follow my location' animateTo and the map view zoom 
animation.
The strange result is that the map pans by its own at distant locations outside 
the screen and corrects itself at next location update (provided I stop playing 
rapidly with the zoom controls).

A temporary solution that I use is to check at onLocationChanged if 
mapView.isAnimating() and skip mapController.animateTo if map view animation is 
in progress.

Thanks.

Original issue reported on code.google.com by devemu...@gmail.com on 4 Jan 2013 at 8:41

GoogleCodeExporter commented 8 years ago
Lets merge this with issue 448.

Original comment by kurtzm...@gmail.com on 10 Jul 2013 at 9:53