I have a Google Map that suddenly stopped working for no apparent reason (I hadn't touched the code for months, but the wrapper code from our CMS may have changed without Corporate telling me).
http://www.democratandchronicle.com/section/builder
(sorry about the nasty HTML outside the map, most of that comes from our corporate parent...)
I've narrowed it down to this part of my drawMarker
function:
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(html, { maxWidth: 500 });
});
Of note:
alert(html);
displays the correct HTML for the infowindow.- The HTML in the html variable is indeed valid.
- The click event is firing (confirmed by
alert('test');
within it) - Another map I host on the same site works fine, despite similar code.
- No JavaScript errors in Firebug or IE that I can see.
I've been bashing my head against this for a while. What am I missing?