fixed the panTo and zoom features, panTo doesn't center properly