You can add the 'id' to the GMarker object as a property e.g.
'message':

var m = new GLatLng(lat, lng);
m = new GMarker(m);
m.message = mid;
map.addOverlay(m);
GEvent.addListener(m, 'click',function()
{this.openInfoWindowHtml('hello from ' + this.message);});

Actually there are GMarker.id and GMarker.icon_id properties that can
be set via marker options too. Maybe they are intended for this kind
of purpose or maybe they are reserved for something special.

Make sure that lat & lng are numbers (not strings);
--~--~---------~--~----~------------~-------~--~----~
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