I cannot get info windows to open when I click on a marker. Here is
the javascript I am using. What is the problem?
var point0 = new GLatLng(41.941316183408,-87.639680372618);
map.addOverlay(new GMarker(point0));
GEvent.addListener(point0, "click", function()
{point0.openInfoWindowHtml('<b>3240 N Lake Shore Dr Bldg</b><br />3240
N Lake Shore Dr');});
var point1 = new GLatLng(41.893973,-87.63446);
map.addOverlay(new GMarker(point1));
GEvent.addListener(point1, "click", function()
{point1.openInfoWindowHtml('<b>Flair Tower</b><br />222 West Erie
Street');});
var point2 = new GLatLng(41.883205,-87.6346);
map.addOverlay(new GMarker(point2));
GEvent.addListener(point2, "click", function()
{point2.openInfoWindowHtml('<b>215 West</b><br />215 West
Washington');});
var point3 = new GLatLng(41.8859195,-87.6435675);
map.addOverlay(new GMarker(point3));
GEvent.addListener(point3, "click", function()
{point3.openInfoWindowHtml('<b>180 North Jefferson</b><br />180 N.
Jefferson Street');});
var point4 = new GLatLng(41.913944200309,-87.633362447636);
map.addOverlay(new GMarker(point4));
GEvent.addListener(point4, "click", function()
{point4.openInfoWindowHtml('<b>Eugenie Terrace on the Park</b><br /
>1730 North Clark');});
var point5 = new GLatLng(41.892623,-87.618831);
map.addOverlay(new GMarker(point5));
GEvent.addListener(point5, "click", function()
{point5.openInfoWindowHtml('<b>Streeter Place</b><br />355 East Ohio
Street');});
map.setCenter(new GLatLng(41.892623, -87.618831), 11);
map.setUIToDefault();
var point6 = new GLatLng(41.89796838784,-87.631545617317);
map.addOverlay(new GMarker(point6));
GEvent.addListener(point6, "click", function()
{point6.openInfoWindowHtml('<b>Chestnut Tower</b><br />121 West
Chestnut Street');});
var point7 = new GLatLng(41.923776257619,-87.636490674276);
map.addOverlay(new GMarker(point7));
GEvent.addListener(point7, "click", function()
{point7.openInfoWindowHtml('<b>Belden Stratford Apartments</b><br /
>2300 Lincoln Park West');});
var point8 = new GLatLng(41.896021783927,-87.625521390469);
map.addOverlay(new GMarker(point8));
GEvent.addListener(point8, "click", function()
{point8.openInfoWindowHtml('<b>The Chicagoan</b><br />750 N. Rush
Street');});
var point9 = new GLatLng(41.898371369001,-87.621942371344);
map.addOverlay(new GMarker(point9));
GEvent.addListener(point9, "click", function()
{point9.openInfoWindowHtml('<b>The Seneca</b><br />200 East
Chestnut');});
--
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.