I created a working google map that I am now trying to have auto zoom out so all the points fit.
When I added:
var bounds = new google.maps.LatLngBo
I've just run into the same exception, it turned out to be that the longitude passed into "new google.maps.LatLng" was undefined.