Hi,
I am trying to put infowindow at Circle `marker' and it doesnt work
with google.maps.Circle tho it works prefectly with
google.maps.Marker.
I dunno what I am doing wrong with it. I can see alert("CKICK"); after
clicking Circle, for some reason content of infowindow shows for
milisecond in topleft corner which I can spot only in DW LiveView
inbuilt browser.
here is the site:
http://www.salag.com/maps
Thanks in advance for help.
BRGRDS
L.
<cut>
if (!marker) {
marker = new google.maps.Circle({
map: map,
strokeOpacity: 0,
fillColor: "#FF0000",
clickable: true
});
}
//marker.setPosition(results[0].geometry.location);
marker.setCenter(results[0].geometry.location);
marker.setRadius(10000);
</cut>
<cut>
google.maps.event.addListener(marker, "click", function () {
infowindow.setContent(content);
infowindow.open(map,marker);
alert("CKICK");
});
</cut>