Make sure that "marker" is a global variable and that you remove
"marker" before you use that variable to create the new marker.

1) create a global variable named marker.
2) create a marker and have the global variable point to it
3) put the marker on the screen

To create another marker

1) Remove the marker currently on the screen
2) create a marker and have the global variable point to it
3) put the marker on the screen

The most common error is not saving a variable that points to the
original marker
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to