Chris, Neat bindTo trick! No need to set up an event listener... Saved me several lines of code.
Gary On May 25, 2:59 am, Chris Broadfoot <[email protected]> wrote: > On Thu, May 19, 2011 at 7:07 AM, Johannes Schill > <[email protected]>wrote: > > > are being included in the result. Maybe my default bounds are bad in > > my javascript[3]? > > Yeah, your default bounds are basically the whole world. You may as well > omit them! > > You really want something like this: > var autocomplete = new google.maps.places.Autocomplete(input); > autocomplete.bindTo('bounds', map); > > This will ensure the Autocomplete box always gives you completions based on > the current viewport of your map. > > Chris > > --http://twitter.com/broady -- 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.
