Hi Aaron-

We now supply the suggested viewport in the geocoding response. You
can see what it looks like here:
http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/GeocodingDetails/GeocodingDetails.html
It's in ExtendedData -> LatLonBox - > east/west/north/south

You can create a LatLngBounds out of that, and then center using
map.setCenter(bounds.getCenter(), map.getBoundsZoomLevel(bounds));

- pamela


On Fri, May 29, 2009 at 3:54 PM, Aaron Donohue <[email protected]> wrote:
>
> I am attempting to implement search capability on a google map similar
> to the GeocodeSimple example (
> http://gmaps-samples-flash.googlecode.com/svn/trunk/examples/GeocodingSimple.html
> ).  I would like to implement a smart way to zoom and am falling short
> on how to solve the problem.  My thought is that when the user enters
> "colorado" as the destination to search for...that it would zoom to a
> reasonable state zoom level (like 7), if I searched for "denver, co"
> it would zoom to a city zoom level (like 11), or if I searched for an
> address that it would zoom to a street zoom level (like 16, 17) much
> like how maps.google.com behaves.  My thought is that I am missing
> something that may already exist and I can't find, like a geocode
> method that returns bounds that I could zoom to or a geocode method
> that provides the appropriate zoom level for the user specified search
> criteria.  How can I achieve this?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" 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-api-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to