Hi Mike,

In looking at the source on your sidebar example in basic5.htm, I think I 
may understand a little more of what you're saying.  Do I need to start by 
using:
// global "map" variable
    var map;
to put the map in a global first?

Thanks,
Roger

----- Original Message ----- 
From: "Mike Williams" <[email protected]>
To: <[email protected]>
Sent: Monday, December 28, 2009 8:00 PM
Subject: Re: Need help with code to move map on click from links outside 
Gmap


> Javascript launched from HTML executes in global context and can only
> access global variables and functions.
>
> Your "map" variable is created as a local variable of your initialize()
> function, so it's not accessible in global context.
>
> For a fuller explanation
>
> See: http://econym.org.uk/gmap/basic5.htm
>
> And: http://econym.org.uk/gmap/scope.htm
>
> -- 
> 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.
>
> 

--

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