daer Mike : thank you very much for your explanation... if i have any more questions I will ask.. regards..
Mike Williams <[email protected]> wrote: > > 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.] Tamer Hatoum; Web Developer and Programmer; Qatar Navigator Est; Tel: +974 6026267; [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
