Hi Drew,

What are you using to display the KML? If you're using Google's own
GGeoXml object, you can call its gotoDefaultViewport() function to
center and zoom the map on the complete dataset. If you're using one
of the third-party KML parsers (like EGeoXml or GeoXml), such
functionality usually happens automatically, but we'll need more
details (and ideally a link to your map) to help you further.

String

On Feb 5, 7:51 am, Drew <[email protected]> wrote:
> Hello,
> I'm trying to figure out a way for google maps to auto-center
> depending on inputs from a kml file.  For example, if I have a
> geotagged photo in california and another in nevada, google maps
> should auto-center so that it shows two states.  If I have a geotagged
> photo in california and another in florida, it should auto-center so
> that it shows the entire United States.  The problem here is that the
> API GLatLng parameters only allow for a preset location - it doesn't
> auto-center according to what the kml file has.   Picasa albums seems
> to do it.  Here's a link to the auto-centered map depending on the
> locations of my pictures:
>
> http://picasaweb.google.com/themoviecritic/AirMe/photo#map
>
> How should I go about solving this problem?
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
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