var sw = autoBounds.getSouthWest();
var ne = autoBounds.getNorthEast();
center = new GLatLng(
( sw.lat() + ne.lat() ) / 2,
( sw.lng() + ne.lng() ) / 2 );Should use getCenter instead of averaging the lat and lng values.