This is my code:
[code]
var latitudes = [];
var longitudes = [];
var zipfiles = [];
var dataobj = [];
var bounds = new GLatLngBounds();
var i = 0;
while(i<document.getElementById('mapcount').value)
{
latitudes[i] = document.getElementById('latitude'+i).value;
longitudes[i] = document.getElementById('longitude'+i).value;
zipfiles[i] = document.getElementById('zipfile'+i).value;
i++;
}
var map1 = new GMap2(document.getElementById("map_tracksall"));
map1.setUIToDefault();
var j = 0;
while(j<i)
{
var point = new GLatLng(latitudes[j], longitudes[j]);
dataobj[j] = new GGeoXml(zipfiles[j]);
map1.addOverlay(dataobj[j]);
bounds.extend(point);
j++;
}
map1.setCenter(bounds.getCenter(), map1.getBoundsZoomLevel
(bounds)-1, G_PHYSICAL_MAP);
[/code]
This is the error that occurs when I try to run it:
[code]
Error: a.c.Hb is undefined
Source file: http://maps.gstatic.com/intl/en_us/mapfiles/159e/maps2.api/main.js
Line: 174
[/code]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---