salve ragazzi non riesco a capire perche' in questo script per mappa google quando passo la variabile html all'openinfowindow mi restituisce null....per comodità ho messo solo la parte di script interessata!!!!!!!
var name = markers[i].getAttribute("registro");
var point = new GLatLng(parseFloat(markers[i].getAttribute("lat")),
parseFloat(markers[i].getAttribute("lng")));
var marker = createMarker(point, name, address, type);
map.addOverlay(marker);
}
});
}
}
function createMarker(point, name, address, type) {
var marker = new GMarker(point, customIcons[type]);
var html = "("+name+")";
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(html); });
return marker;
}
//]]>