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
-~----------~----~----~----~------~----~------~--~---