I am loading the google maps API asynchronously which allows you to define a callback to execute when the API loads. Is there any way I can pass arguments to the callback?
How about wrapping your function into some dummy function that passes necessary arguments like:
function wrapper() { myCallback(arg1, arg2); }
and pass wrapper() as a google maps callback
wrapper()