On Jul 9, 10:03 am, PeterB <[email protected]> wrote:
> Not sure what's going on here, since half the if else statement seems
> to work. The setMap(map); function seems to be the one that doesn't.
> Anyone have a clue what's happening here?
>
> http://www.climateatlas.org/chm/chm4.html

You declare a "map" variable in the global context, but the one you
initialize in your initialize function is local to that function.
Remove the "var" from in front of it.

  -- Larry

>
> Peter

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to