I have read a lot about this subject and tried a lot of different options 
and I still can't get my embedded Google Map to zoom to my kml file.  Now I 
am using GGeoXml to add my kml file to my GMap2.  The kml file loads just 
fine, but it still won't center on my kml.  It centers somewhwhere off the 
west coast of Africa no matter where my kml file is.  I am using this 
sample web page to start with: 
http://gmaps-samples.googlecode.com/svn/trunk/ggeoxml/ggeoxml_loader2.html.  


This web page pretty much does everything I want to do.  So I copied it and 
changed the kml files to my kml files.  Here is my test web page: 
http://www.usahas.com/test.html.  

It has some annoying alerts in it, so I can track what it is doing.  I 
noticed that the sample code never actually uses the zoomToGeoXML function 
so I added it into the toggleGeoXML code(because the code wasn't zooming 
the way it was).  Then I added in some alerts to tell my what the value of 
the default center of my kml file.  It is (0, 0).  But my kml is in North 
America.

So I have a couple of questions, hopefully someone can answer.  Where does 
.getDefaultCenter get its values?  And How can I center my map on my 
KML!?!??

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-api/-/oTCSs7PgW8kJ.
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