On Jul 4, 12:44 pm, tazkiyah arrosyidah
<[email protected]> wrote:
>
> how i can delete listener  too  when mark in  array is delete?

If there is no marker, there is nothing for an event to be triggered
on, so any listener is redundant and won't actually do anything.

If you want to remove an event listener explicitly, the easy way is to
retain a reference to it:
   var myListener = GEvent.addListener(...);
   GEvent.removeListener(myListener);
but there are other methods available too:
http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GEvent.clearListeners

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