Thanks for the help.  I have a lot of kml files that I wanted to add
to the map.  They were all network links and so they didn't have
coordinate information in the root kml.  I changed one of the kml
files to not use a network link.  So this one has coordinate
information.  When I used geoXml.gotoDefaultViewport(map) on that kml
file, I was centered properly.

So the lesson learned here, is that none of those gotoDefault methods
work with a network link.

Ron


On Nov 15, 7:00 pm, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:
> On Nov 15, 10:52 am, Ron White <ron.wh...@detect-inc.com> wrote:
>
> > Rossko,
> > Thanks for the reply.  I was thinking along the same lines.  The root
> > kml file loads and Google doesn't know anything about its location
> > because there are no coordinates in it, so it defaults to 0,0.  So I
> > need some coordinate information in the root kml.  Now I have to
> > figure out how to do that.  But it feels like I am making some
> > progress and making some sense out of this problem.
>
> One thought might be to look at GeoXml, Lance Dyas' third party v2 KML
> parser.  It might let you control the behavior.
>
>   Larry
>
>
>
>
>
>
>
>
>
> > Thanks.
>
> > On Nov 15, 6:39 pm, Rossko <ros...@culzean.clara.co.uk> wrote:
>
> > > > 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.
>
> > > I suspect the problem is that your root KML is not in America, it has
> > > no physical bounds.  The further KML it network-links to does have
> > > physical information - but it seems that doesn't get taken into
> > > account at the time you attempt it.
>
> > > This unresolved thread seems 
> > > relevanthttp://groups.google.com/group/google-maps-api/browse_thread/thread/3...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to