Click on a Google Map API marker and open a page

0

I'm making a website that will contain several bookmarks, but how do you do that by clicking on the bookmark, instead of opening the default window with marker information, does it point to another page or open a modal window?

    
asked by anonymous 18.02.2016 / 00:33

1 answer

1

What you need to do is listen for the click event of a Marker

marker.addListener('click', function() {
  // coloque aqui o que você quer fazer quando clicar no marker
})}
    
18.02.2016 / 03:15