Your createMarker function holds Function Closure on all its parameters
and local variables. So if you create your marker like
function createMarker(map, point, icon, html) {
var marker = new GMarker(...)
GEvent.addListener(marker, ...
then "marker" will be a reference to the marker that was clicked, and
the "map", "point", "icon" and "html" variables will also be available,
held by Function Closure.
If you want to know more about the clicked marker, such as some external
id, then you can pass that information to createMarker, and it will be
held in the same way.
--
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
-~----------~----~----~----~------~----~------~--~---