The following example shows how to catch an event Google Maps Api js components loaded: // callback function function loadGoogleMaps() { google.load("maps", "2",{"other_params":"sensor=true"}); window.onunload = GUnload; return; } function loadGmaps() { var oNewScript = document.createElement("script"); oNewScript.src = ‘http://www.google.com/jsapi?key=google_maps_api_key_here&callback=loadGoogleMaps’; oNewScript.type = ‘text/javascript’; document.getElementsByTagName("head")[0].appendChild(oNewScript); return; }
If you enjoy our post, feel free to subscribes to our rss feeds