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';});  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -