Having a div section and 2 buttons inside an AJAX UpdatePanel, I would
like show some information when user clicks on one of the buttons and
show the map when the user clicks the other one.. The google map shows
fine on initial display and disappears when the user clicks on the
other button. However when the user clicks back to the show map button
no map is redrawn.

Currently the java code looks like this:

-------------------
var map; //keep map global
function initialize() {
        if(map===undefined)
        {
                map = new GMap2(document.getElementById(""map""));
        }
        else
        {
                map.redraw(true);
        }
}
initialize();
window.onunload=GUnload;
-------------------

This is set as a startup script and the show map button onclick is set
to the initialize() function. As per the debugging code the code gets
correctly to the map.redraw(true); part when the button is pressed but
nothing is displayed.

Please help,
Thank you

--~--~---------~--~----~------------~-------~--~----~
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