Hi there,

I hope someone can help!

Goal: implement a custom search (geocode) function and be able to list and 
click 
each result and display it on the map.

Wanted: Adjust map bounds / zoom level accordingly, i.e. searching for "MA, 
USA" should zoom the map to let me see the whole Massachusetts state, while 
searching for "Boston, MA, USA" should zoom 
on the Boston area. When listing multiple results, the same should apply when 
clicking on a result.

Issue: I can use 
the geometry.bounds object with fitBounds - but - some results you get using 
the geocoder do not have that geometry.
bounds object.

A quick example: searching for "Boston" returns

Boston, MA, USA
Boston, IN, USA
Boston, KY, USA

Boston, GA 31626, USA
Boston, Salem, VA 22713, USA
Boston, NY 14025, USA

Both "Boston, KY" and "Boston NY 14025" do 
not have bounds.

Question: Is there a reliable way to display any geocoder result on a map at 
the appropriate zoom 
level? 
I know I can use setCenter with geometry.location, but that won't cover the 
zoom issue...

Any help will be 
appreciated!
Thanks

-- 
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to