> Thanks Rossko. But I have 10 markers on my map numbered from 0 thru 9. > And in the onclick function I want to know what the number of the > marker is.
You can set up 10 different click listeners that can do wildly different things. Or you can give your GMarker some simple property (say, marker.myid = 3;) when you create it, and then use a general-purpose click listener that discovers which marker has been clicked and does whatever you tell it to. 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 -~----------~----~----~----~------~----~------~--~---
