On Sep 6, 11:21 am, Marc <[email protected]> wrote:
> Hi,
>
> Is there a way to zoom in directly on a country with the google maps
> api?

You need to know the the bounds of the country.  If you use the
geocoder, it returns a LatLonBox as extended data that can be used.

Mike Williams's example:
http://econym.org.uk/gmap/example_geo3.htm

Or you could calculate and store the zoom and center for each country
in your database (or xml file).

  -- Larry

>
> For example when I go tohttp://maps.google.com/and search for Spain,
> I'll see a nice full view of Spain. Is there a way to do something
> like this in the google maps api as well?
>
> Thanks for answering!
>
> Best regards,
>
> Marc
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to