I am using Google Maps v3.
I'm currently using the autoload functionality and it's working great:
<script type="text/javascript" src='http://www.google.com/jsapi?autoload={modules:[{name:"maps",version:3,other_params:"sensor=false"}]}'></script>
Now I want to use the autoload to also include the callback
option to callback my function named myCallbackFunction()
.
How do I modify my working code above to include the callback
option?
I've tried a few different ways and none work. I receive an "Invalid Autoload" error.
UPDATE:
I've tried the below, as well as a ton of other variations and none work. I still cannot figure out the appropriate syntax to use the callback
method.
<script type="text/javascript" src='http://www.google.com/jsapi?autoload={modules:[{name:"maps",version:3,other_params:{"sensor=false","callback=myCallbackFunction"}]}'></script>