Thank you for the advice. I believe I have it defined:
function createMarker(googlemap_ltgooglemap_ln, street) {
var marker = new google.maps.Marker({
map: map,
position: googlemap_ltgooglemap_ln
});
google.maps.event.addListener(marker, 'click', function() {
infoWindow.setContent(bubble);
infoWindow.open(map, marker);
});
if (city){
var html = "<a href='javascript:myclick(" + (markers.length-0) +
")'><span style='font-weight:bold'>" + street +
"<\/a></span> </p>"; // info window contents
var bubble = "<span style='font-weight:bold'>" + street + "</span></p>"; // info window contents
} else {
var html = street;
var bubble = "";
}
sidebarInfo += html;
// add this line after the html var declaration:
document.getElementById("sidebar").innerHTML=sidebarInfo;
markers.push(marker);
}
I have an if statement for additional fields that I don't want displayed when there are no properties. I just don't have those fields listed in this example.