How can i capture the click event when a default marker/place is clicked on googlemaps?

后端 未结 4 1377
清酒与你
清酒与你 2020-12-20 17:08

I am working with Google Maps API V3. The googlemaps displays markers for some places/location by default, I need to capture the click event when one of them is clicked..

4条回答
  •  攒了一身酷
    2020-12-20 17:46

    Here's a clean solution straight from Google: https://developers.google.com/maps/documentation/javascript/examples/event-poi

    You can easily customize the default infowindow for POI's. Just ignore the route-making feature of the tutorial.

提交回复
热议问题