SetCenter of map smoothly

728 views
Skip to first unread message

Hila

unread,
Jan 11, 2013, 2:46:01 PM1/11/13
to mapsfo...@googlegroups.com
Hi,

currently i'm using the method:

MapView.setCenter(geoPoint);

and the map updates immediatly to the center.
is there any way it would update as in "slow" and smooth animation?

i mean, that the map will smoothly go from its old center to the new one.

Thanks,
Hila
Message has been deleted

yogesh10446

unread,
Oct 13, 2016, 1:04:39 PM10/13/16
to mapsforge-dev
Seems to be little late for the answer, but for anybody else wondering the same and for those who have stumbled upon the same feature over here.

This can be achieved by using

//where latlong is the final resting coordinate of the mapview
mapView
.getModel().mapViewPosition.animateTo(latLong);




;)
Reply all
Reply to author
Forward
0 new messages