mam taki kod opisujący mapę:
Kod
mapa = new GMap2(document.getElementById("mapa"));
mapa.addControl(new GSmallZoomControl());
mapa.setCenter(new GLatLng(52.173931692568, 18.8525390625), 6);
var marker = new GMarker(new GLatLng(52.173931692568, 18.8525390625));
mapa.addOverlay(marker);
GEvent.addListener(mapa, "click", alert('d'));
mapa.addControl(new GSmallZoomControl());
mapa.setCenter(new GLatLng(52.173931692568, 18.8525390625), 6);
var marker = new GMarker(new GLatLng(52.173931692568, 18.8525390625));
mapa.addOverlay(marker);
GEvent.addListener(mapa, "click", alert('d'));
Chciałbym, żeby po kliknięciu gdzieś na mapie pokazywał się alert.
Obecnie pojawia się on tylko po odświeżeniu strony

Proszę o rady