When you send your markers to the map page, include a reference as well
as all the other details that you normally send. Associate that
reference to the marker either as a custom GMarker Property, or by
holding Function Closure on it.

E.g. if you're reading your marker data like this

  var lat = parseFloat(markers[i].getAttribute("lat"));
  var lng = parseFloat(markers[i].getAttribute("lng"));
  var html = markers[i].getAttribute("html");

you can read the passed reference in the same way

  var reference = markers[i].getAttribute("reference");

To use a custom Property, write
  marker.Reference = reference;

To use Function Closure, add it to your createMarker() call:
  var marker = createMarker(point,label,html,reference);
and add it to the parameter list of your createMarker() function
  function createMarker(point,name,html,reference) {


When the user wants to delete the marker, pass that reference to your
deletion server.

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

Reply via email to