Hi,

I was not able to find anything about this in the reference.
If an event of an overlay has been registered, will then the event
automatically be unregistered when the overlay is removed from the
map?
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?

e.g.

//create marker object
var marker = new GMarker(new GLatLng(0.0,0.0));
//define event handler
marker.onClick = function(point){
   alert('humppa!');
};

//register event handler
GEvent.addListener(marker , "click",marker.onClick);

//add the marker to the map
map.addOverlay(marker);

//remove the marker from the map
map.removeOverlay(marker);

marker = null; //we don't need it any longer


thanks in advance
Humppakäräjät

-- 
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