On Sep 15, 8:34 pm, KirAsh4 <[email protected]> wrote: > Still trying to figure out if there's a way to do this. I need to be > able to remove the listener at a later time, when all the polylines > get cleared from the map so others can be put down.
OK, you waited twelve hours, but that could still be optimistic. I've been out all day for example. GEvent.addListener returns a reference to the listener. You can do this: var myListener = GEvent.addListener(...) which then allows you to do GEvent.removeListener(myListener) So you could store the reference to the listener as a property of the line itself: allRoutes[rtname].route.listener = GEvent.addListener(...); and then you have the relevant listener when you need it. Does that help? Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
