On Jan 30, 3:42 pm, fearless_fool <[email protected]> wrote:
> I've got a perfectly lovely LatLngBounds object:
> [bnds.getSouthWest().lat(), bnds.getSouthWest().lng(),
> bnds.getNorthEast().lat(), bnds.getNorthEast().lng()]
> [32.98856751588048, -119.49260720804295, 34.78519808411952,
> -117.32831699195708]

Why do you say it is "lovely"?  That looks like an array of four
floats, doesn't look like a LatLngBounds object to me.

http://code.google.com/apis/maps/documentation/javascript/reference.html#LatLngBounds

  -- Larry


> but when I pass it to
> autocomplete.setBounds(bnds);
> I'm getting:
> Uncaught Error: Invalid value for property <bounds>: ((32.98856751588048,
> -119.49260720804295), (34.78519808411952, -117.32831699195708))
> Any idea why?  Or things I should look for?  (FWIW, when I don't call
> autocomplete.setBounds(), the autocomplete object is working just fine.)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to