Replace "setCenter" with "panTo".