私はgoogledし、stackoverflowで深く検索しましたが、結果はありませんでした。
私は次のコードを持っています:
<script type="text/javascript">
function initialize() {
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 7,
center: new google.maps.LatLng(45.47554, 9.204712),
mapTypeId: google.maps.MapTypeId.ROADMAP,
disableDefaultUI: true,
zoomControl: true
});
}
google.maps.event.addDomListener(window, 'load', initialize);
google.maps.event.addListener(map, "click", function (event) {
alert("click");
});
</script>
マップをクリックしても、アラートは表示されません。どこが間違っていますか?ありがとうございました。