Javascript code launched from HTML forms executes in global context, and
can only access global variables.

You have two variables called "map". The one that's local to your
initialize() function is a GMAp2 object, but the one that's global is
null.

Try changing this
        var map = new GMap2(document.getElementById("map"));
to
            map = new GMap2(document.getElementById("map"));
so that initialize() will use the global "map" variable.

-- 
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=en.


Reply via email to