Hi I am having problem with the following code - the load event is not
firing, but the click event works fine.
I do not know what is wrong, any ideas?
div = document.getElementById("mapDiv");
map = new GMap2(div);
map.enableDoubleClickZoom();
map.enableScrollWheelZoom();
map.addControl(new GMapTypeControl());
map.addControl(new GSmallMapControl());
map.setCenter(new GLatLng(-43.531811, 172.636585),
13);
GEvent.addListener(map, "load", function() {
alert("Load");
});
GEvent.addListener(map, "click", function(overlay,
latlng, overlaylatlng) {
alert("click");
});
Chris
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---