Hi - my route worked perfectly when I accessed it from your page. I then took your code (thank you for the sample!) and put it on my web page, substituting only my key. When I accessed my route from your page on my site, it failed in the same way - the zoom level is wrong somehow.
Is it possible there's a problem from my hosting site (goDaddy) or something like that? On Aug 31, 1:57 am, Grok Lobster <[email protected]> wrote: > It looks the same to me on Google Maps and the API. > Try this pagehttp://greg-koppel.site88.net/maps/kml_test.html > > On Aug 30, 7:02 pm, HappyBiker <[email protected]> wrote: > > > > > I have opened my kml files in GoogleEarth and the online Google Maps - > > in both cases they are pretty close to exactly correct. > > I'm trying to use the Google Maps API - > > map = new GMap2(document.getElementById("mapCanvas")); > > map.addControl(new GLargeMapControl()); > > map.addControl(new GMapTypeControl()); > > map.setMapType(G_HYBRID_MAP); > > map.setCenter(new GLatLng(42.71,-71.50)); > > geoXml = new GGeoXml("http://www.alicefrank.com/kmlfiles/ > > 2009_06_02.kml"); map.addOverlay(geoXml); > > geoXml.gotoDefaultViewport(map); > > > This shows a VERY inaccurate route - with the shape of the track > > relatively correct, but too small for the zoom of the background. > > i.e. the east-most point is 3 miles too far west, and the south-most > > point is about 1-1/2 miles too far north, the north-most point is > > about 1 mile too far south. i.e. if you stretched the track, it might > > fit. > > > Any idea what I am doing wrong, or how this can be fixed? > > thanks! > > Alice --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
