Wasn't it [email protected] who wrote: > On Dec 26, 7:19 pm, nou <[email protected]> wrote: >> hello >> >> I would like to know if there is actually a way of destroying a marker >> rather than just hiding it (with myMarker.hide()). > >GMap2.removeOverlay(myMarker) >then destroy any reference to it.
It might also be worth calling GEvent.clearInstanceListeners(myMarker) just before your destroy the myMarker reference. Alternatively, after removeOverlay()ing it, store the reference in a pool of unused markers. The next time you want to create a marker that has the same general shape, take an available marker from the pool and use .setLatLng() and .setImage(). -- http://econym.org.uk/gmap The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
