I have an Activity, where is a MapView on part of screen. Here I always center location to given point. Then I have another activity, where is MapView on whole screen and I center to users location. When I came back from whole screen MapView activity to activity with MapView on part of a screen, I call setCenter() on MapView again. But now MapView isn't centered on right location but few meters elsewhere. When I use animateTo(), everything works as expected. Is it any setCenter() bug or how should I explain this strange behaviour to myself?
Well, the working solution is to use this:
controller.setCenter(getPoint);
controller.animateTo(getPoint);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With