javascript - Markers within Google Api -
I have a problem, I can not make the marker clickable for my project, I tried it with google.com but Nothing works, can anybody help me? var map = new google.maps.Map (document.getElementById ("googleMap"), map options); & Lt ;! - Add markers to use previously specified locations - & gt; Var marker = new google.maps.marker ({status: myLatlng, url: 'http: //www.google.com', title: 'Tobermiri distillery', map: map,}); thanks You can click markers like this Force: google.maps.event.addListener (marker, 'click', function () {location.href = 'http://www.google.com';});