Click on a Google Map API Bookmark and open a page

I'm making a site that will contain multiple bookmarks, but how do I make it so that when clicking on the bookmark, instead of opening the default window with bookmark information, it directs to another page or opens a modal window?

Author: brasofilo, 2016-02-17

1 answers

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

marker.addListener('click', function() {
  // coloque aqui o que você quer fazer quando clicar no marker
})}
 1
Author: Jan Cássio, 2016-02-20 12:39:59