Of course its possible with a few slight changes of your function
function addIcon(latitude, longitude, letter, color, html) {
var marker = new GMarker(
new GLatLng(latitude, longitude),
{ icon: MapIconMaker.createLabeledMarkerIcon({addStar: false,
label:
letter, primaryColor: color}) }
)
GEvent.addListener(marker, "mouseover", function() {
marker.openInfoWindowHtml(html);
});
map.addOverlay(marker);
}
Then you can do this (if your map variable is global):
addIcon(28.239026,-82.185025, "A", "#ffff00", "Hello");
> Also I notice "click" Can that be change to "mouseover"?
Yes.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---