center was a map coordinate before and now it's a pixel coordinate. Are you sure center has the good value?