I'll update the next version to automatically close info windows.
To update your current code you would have to change the include file wagmp_map_1.php
update the function:
function openWindowByAddressFunc(value,attname) {
var point = this.getPointByAddress(value,attname);
point.infowindow.open(this.obj,point.marker);
}
to:
function openWindowByAddressFunc(value,attname) {
var point = this.getPointByAddress(value,attname);
for (var x=0; x < this.infowindows.length; x++) {
this.infowindows[x].close();
}
point.infowindow.open(this.obj,point.marker);
}
and then you would have to update in the addMarker function:
google.maps.event.addListener(marker, 'click', function() {
infowindow.open(map1,marker);
to:
google.maps.event.addListener(marker, 'click', function() {
for (var x=0; x < wagmp_map_1_obj.infowindows.length; x++) {
wagmp_map_1_obj.infowindows[x].close();
}
infowindow.open(map1,marker);
Custom markers from the database isn't directly supported, but can be done by hand coding. Just update the code where the info window images are specified to be dynamic. There is no way to do that through the ui directly currently.