Hi there,
I'm attempting to create different markers depending from different
data origin:
I'd need a function like this:
function createMarker(point, label)
{
var marker = new GMarker(point, icon);
GEvent.addListener(marker, "click", function()
{
marker.openInfoWindowHtml(label);
});
return marker;
}
-----------------------------------
and another one like this:
function createMarker(point,name, address)
{
var marker = new GMarker(point, icon2);
GEvent.addListener(marker, 'mouseover', function()
{
marker.openInfoWindowHtml(name);
});
return marker;
}
how can I use them together?
thank you
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---