Make sure you do not instantiate the map before Javascript finishes loading.
In addition, if you want to use the AJAX API loader, you need to do this as follows:
<script src="http://www.google.com/jsapi?key=ABCDEFG" type="text/javascript"></script> <script type="text/javascript"> google.load("maps", "2.x"); </script>
Otherwise, just use the regular Maps API script:
<script src="http://maps.google.com/maps?file=api&v=2&key=abcdefg&sensor=true_or_false" type="text/javascript"></script>
Chris b
source share