Re: [Google Maps API v3] Re: yet another question on clearOverlays

2011-05-17 Thread Luke Mahé
We feel the developer should be able to handle this themselves - it is something that is relatively easy to do and it is good practice to manage your own objects anyway. It also gives them more control over the API rather than having helper functions everywhere which everyone is not going to use.

[Google Maps API v3] Re: yet another question on clearOverlays

2011-05-17 Thread bertaudmarc
Any idea why this method was not implemented in V3 ? On 17 mai, 17:54, "geocode...@gmail.com" wrote: > On May 17, 8:30 am, bertaudmarc wrote: > > > When, in the context of an application and for various reasons, the > > overlays cannot be recorded in arrays, how to simulate a > > map.clearOverla

[Google Maps API v3] Re: yet another question on clearOverlays

2011-05-17 Thread geocode...@gmail.com
On May 17, 8:30 am, bertaudmarc wrote: > When, in the context of an application and for various reasons, the > overlays cannot be recorded in arrays, how to simulate a > map.clearOverlays() ? > call setMap(null) in a loop obliges to maintain references for each > kind of overlays (marker,icon,poly