On Jan 26, 1:30 am, Adam <[email protected]> wrote:
> I have the below code, it loads ok, but when i click on the map it
> doesn't place a marker.
> What should happen is that when you click on the map it should place a
> marker and when clicked on the map a second time that it should place
> a marker at the new location and remove the previous one so that there
> is only ever one marker on the map??
The browser seems to be throwing an error at the first line of the
mapclick function, 'if (marker) map.removeOverlay(marker);' , the
browser says that marker is undefined!??
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---