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.
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-maps-js-api-v3/-/KEADNRMKmNUJ.
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-js-api-v3?hl=en.