The load event does not setCenter() because it fires immediately after calling setCenter() , and at that time your event listener is not connected yet. You can see that the event is fired in the following example:
if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); GEvent.addListener(map, "load", function() { alert("Map Loaded"); }); map.setCenter(new GLatLng(37.4419, -122.1419), 13); }
Note that there is no need to listen to the load event to start adding markers to the map.
source share