When I load mashup the markers' info box show up as the page loads and then won't respond to clicks. I can make it work by changing the code to the bottom (but that doesn't use the spec for making the info box).
// TODO
var myLatLng = {lat: mylat, lng: mylng};
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
title: "Hello, world!"
});
// var infowindow = new google.maps.InfoWindow({
// content: "test"
// });
marker.addListener('click', showInfo(marker, "test"));
Here is the version that works for markers (but doesn't call the spec function of showInfo):
// TODO
var myLatLng = {lat: mylat, lng: mylng};
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
title: "Hello, world!"
});
var infowindow = new google.maps.InfoWindow({
content: "test"
});
marker.addListener('click', function() {infowindow.open(map, marker)});