Hi all,
I have the following function which loads however the second map
doesnt load in the correct lon and lat. If I delete the first map and
just have the second then it works fine but if i have both maps it
loads wrong.
What am i doing wrong?
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(52.63775093122002,
1.3150978088378906),
13);
var marker = new GMarker(new GLatLng(52.63014563400263,
1.3118362426757812));
map.addOverlay(marker);
var map2 = new GMap2(document.getElementById("map2"));
map2.addControl(new GLargeMapControl());
map2.addControl(new GMapTypeControl());
map2.setCenter(new GLatLng(52.748952, 0.404512), 13);
var marker2 = new GMarker(new GLatLng(52.748952, 0.404512));
map2.addOverlay(marker2);
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---