Im trying to load the google maps api\'s dynamically. I\'m using the following code:
var head= document.getElementsByTagName(\'head\')[0]; var script= docume
Make sure that you aren't instantiating the map before the Javascript has finished loading.
Also, If you want to use the AJAX API loader, you need to do it like this:
Otherwise, just use the regular Maps API script source: