Hi guys. I'm trying to change the style of a DOM element when a marker
is clicked.
A listener is setup on a marker like this:
function change_row_style(marker) {
console.debug('marker = [' + marker + ']');
}
GEvent.addListener(marker37, 'click', change_row_style);
However, I don't know how change_row_style() can know/be told that
"marker37" was clicked. With that said, are either of these possible?:
1) In change_row_style() , determine the name of the marker that was
clicked (Eg: "marker37").
2) Pass an extra argument, such as the string "marker37", to
change_row_style() .
Thanks guys!
Nick
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---