On Nov 12, 11:39 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> 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:
java has nothing to do with the Google Maps API, this is javascript.
>
> -------------------
> 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,
How? You haven't followed the posting guidelines and provided a link
to your map that shows the problem...
http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines
I don't know how you think you have provided enough information to
allow us to help you.
-- Larry
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---