Javascript allows you to add your own Properties to any Object, so you
can write

  function startDrawing(poly, name, onUpdate, color) {
    poly.Name = name;
    ...
  }

Then you can use poly.Name to retrieve the information whenever you have
a reference to the poly.

Hint: the API always uses properties that begin with lower case letters,
so if you start your Property names with an upper case letter you should
be safe from any possible clashes with future API code.

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