Why not just assign a unique id to each XML marker?  Numeric is
probably simplest.

When adding a new one to XML, just search for the highest id and go
one higher.
Send the id to the map in the XML, and have it stored in association
with the marker, invisible to the user if you like - perhaps a custom
attribute of the GMarker object.
Upon click-to-delete, just retrieve and send the id to your server
script.
When deleting, just find and remove that row by id.  Who cares if
there's gaps in the numeric sequence.

cheers, Ross K

--~--~---------~--~----~------------~-------~--~----~
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