Here's the code I'm using to create the Windows
function createMarker(point, index, BU, FirstName, LastName)
{
// Create a lettered icon for this point using our icon class from above
var letter = String.fromCharCode("A".charCodeAt(0) + index);
var icon = new GIcon(baseIcon);
icon.image = "http://www.google.com/mapfiles/marker" + letter + ".png";
var marker = new GMarker(point, icon);
// Show this marker's index in the info window when it is clicked.
var html = "<b>" + BU + "</b> <br>" + FirstName + " " + LastName;
GEvent.addListener(marker, 'click', function()
{
marker.openInfoWindowHtml(html);
});
return marker;
}
Page Information
|
Wiki Information
|
Recent PBwiki Blog Posts |