On Sun, Mar 20, 2011 at 3:10 PM, Olga Buchel <[email protected]> wrote:

> That is what I meant.
> How should I define gmarkers in the global function? Sorry if it is a
> simple question.
>
> Sent from my iPhone


At the outermost level, write:

var gmarkers;

And then where you initialize it inside a function, remove the 'var'.

Now it will be a global variable instead of local to the function where the
'var' was located.

-Mike

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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