Google Maps API v3 - Geocoder results issue with bounds
Goal : I want to have 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