Replaced setCenter with panTo