I am trying to display a Loading message and also get access to the map object by implementing the OnMapCreated. However I have a problem where the method is not called consistently.
var currentMap = null;
function OnMapCreated(map) {
currentMap = map;
}
What am I doing wrong. Do I need to do anything other than just have a function with that name?
Thanks