I've put a marker on my google map like the follow..
var point = new GLatLng(-37.00756, 174.78184);
map.addOverlay(new GMarker(point));
Now I'm trying to add a click event like the follow two options.. neither work... why??
GEvent.addListener(point, "click", function() {
alert("You clicked the map.");
});
GEvent.addListener(point, "click", function() {
var myHtml = "<b># </b><br/>";
map.openInfoWindowHtml(point, myHtml);
});