On 4 August 2011 10:35, Syswatch <j...@syswatch.dk> wrote:
> Hmm...
> I would like to remove the Listener if zoomed out again, but this is
> not working:

Probably to do with variable scope (where your "var" keyword is within
your code), but with code snippets instead of a link it's not really
possible to say.

Why don't you test the zoom level inside the click handler function,
and only do something if it's within the acceptable range? That is,
get every click and then see whether something should happen.

It means you don't have to mess around with adding and removing
listeners -- the click listener is always there, which means it will
be available if you want to add more functionality later on.

-- 
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to