Issue
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?
Solution
Well, the working solution is to use this:
controller.setCenter(getPoint);
controller.animateTo(getPoint);
Answered By - sealskej
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.