Mercurial > hg > batmud > gmap2
changeset 176:d68111417b8e gmap2
Fix opening of infowindow.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 11 Mar 2014 22:34:26 +0200 |
parents | a1a725a9541d |
children | 876e9bb593d5 |
files | markers.js |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/markers.js Tue Mar 11 22:33:29 2014 +0200 +++ b/markers.js Tue Mar 11 22:34:26 2014 +0200 @@ -44,7 +44,8 @@ google.maps.event.addListener(marker, "click", function() { - marker.openInfoWindowHtml("<div class=\"infowin\">"+html+"</div>"); + pmapInfoWindow.setContent("<div class=\"infowin\">"+html+"</div>"); + pmapInfoWindow.open(pmap, this); }); if (mclass == "builtin")