On Apr 2, 8:57 am, Ghost <[email protected]> wrote: > Hello, > > I would like to be able to add a single marker to my google maps, I > have looked at the this site: > > http://conversationswithmyself.com/googleMapDemo.html > > its a good example, but as you can see in that example u can add an > unlimited number of markers, I want to limit the number of markers to > one marker, when I click again, the old marker should disappear. > > I know it is a programming thing I have been trying to add > this.removeOverlay(marker); > but its not working and I can't get it to delete the previous put > maker > Example: http://geocodezip.com/GenericMapBrowser.asp?filename=nomarkers.xml
click on the map, it will add a marker. Click somewhere else to delete the original and get a new one. -- Larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
