It's about scope. Unnest your functions and make your var map global:
http://econym.org.uk/gmap/scope.htm

--
Marcelo - http://maps.forum.nu
--



On Feb 13, 10:38 pm, Grapefruit <[email protected]> wrote:
> Yes, I know, but I can't find these things in tutorials (only simple
> things with alert () )
> I don't know how to refer to the google.maps. A simple link to a
> tutorial is enough, I want to do it myself :)
>
> My link ishttp://www.andorvb.nl/test2.html
> If you click on the polygon, it disappears, just like it has to. When
> you click on the other one, it appears again. But I want to do that
> with the Remove!-link :)
>
> On 13 feb, 22:32, Marcelo <[email protected]> wrote:
>
>
>
> > On Feb 13, 10:08 pm, Grapefruit <[email protected]> wrote:
>
> > > but then nothing is happening...
> > > Yes, i'm a JS noob :)
>
> > 1. This is not a forum for basic javascript.
>
> > 2. Please read and follow the group's posting 
> > guidelines:http://groups.google.com/group/google-maps-js-api-v3/browse_thread/th......
>
> > --
> > Marcelo -http://maps.forum.nu
> > --

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to