Regarding your first problem:
The normal way to use MarkerManager is to have *one* MarkerManager
instance to which you add lots of markers. If you do it that way, then
you can write
function clearMarkers() {
mgr.clearMarkers();
}
What your code does is create lots of MarkerManager instances, each of
which handle one marker. Your "mgr" variable is a reference to the last
MarkerManager that you created, so you can only make calls that affect
the marker that that MarkerManager manages.
--
http://econym.googlepages.com/index.htm
The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---