Google Map API doesn't clearly states what will be if:
a) create marker for the map;
b) attach event listener to the marker
c) setMap(null) - so delete marker from map;
d) remove reference to the marker from internal array.
Will it be memory leak here because event listener was connected to
the marker?
Should we preserve listener during add, and remove it as well to
ensure memory is really cleared or setMap(null) does this as well?
--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
That should not be necessary. If you have set the map property to null, the marker dom nodes will have been removed, so you are protected from causing leaks in Internet Explorer due to DOM-JS cycles.
--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript AP...
--