Wasn't it markpirvine who wrote:
>Can anyone offer a reason why this works and google.setOnLoadCallback
>(BuildMap()) doesn't?
That syntax calls BuildMap() immediately (at which time google.maps.Map2
isn't a constructor) and uses the value that BuildMap() returns (if it
hadn't crashed) as the reference to the function to be executed on
callback.
google.setOnLoadCallback(BuildMap)
is the equivalent of
google.load("maps", "2", { "callback": BuildMap});
--
Mike Williams
http://econym.org.uk/gmap
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=.