Wasn't it Tamer Hatoum who wrote:
>hi;
>thank you man ,acctually when I write that code I was just guessing if 
>it will work like that but I am gettng a bit confused what is the 
>different between the GMarker.prototype.id=id; and mymarker.id ?

GMarker.prototype.id="foo" applies the Parameter to all subsequent 
markers that you create. It's usually used for Methods, so that the same 
function code gets executed for every GMarker that you create.

mymarker.id = "foo" applies the Parameter only to the individual marker, 
thus allowing you to give different .id values to your different 
markers.

[Note, however, that the API already applies a .id Property to all the 
GMarkers. If you use that name for your property, expect there to be 
some side effects. Steer clear of names that have less than three 
characters and names that start with lower case letters.]

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