> GEvent.addListener(map, "zoomend", function(oldLevel, newLevel) {
>             if (newLevel <= 9) {
>                   map.clearOverlays();
>             }

Your map object isn't global, it's declared with a var map= ... inside
your initialize() function, so it ceases to exist when that function
terminates and map.clearOverlays() has no effect.

cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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