So, in summary you could say...if you want to remove a no longer needed marker from the map, always call the GEvent.clearInstanceListeners(marker); function.
Thank you Andrew On 6 Sep., 12:12, Andrew Leach <[email protected]> wrote: > On Sep 4, 3:20 pm, Humppakäräjät <[email protected]> wrote: > > > Or is it, after the marker has been removed from the map, still in the > > memory and waiting for an event which will never be fired? > > Removing the overlay from the map doesn't make it null, and a > registered event can still be triggered in code (even if the marker is > not visible to be clicked itself). It's possible for a removed marker > to have an infoWindow opened on it. > > Assigning a marker as null means there is nothing for the event to be > triggered on, although the handler still exists -- this can be > verified by reassigning that marker reference as a valid marker. > > Event handlers are not cleared up by garbage collection. -- 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.
