google-maps-styled

click event listener on styled map icons and labels

被刻印的时光 ゝ 提交于 2019-11-26 11:19:28
问题 Is it possible to add a listener for the click event on the icons and/or labels that appear for styled maps? I have a form that allows entry of Points of Interest. Since the poi styling shows icons and/or labels for many potential candidates, and clicking on one opens an infowindow with address info, etc, I would like to capture this address info to the fields on my form if the user clicks on one. 回答1: There is no API-based access to the POI's . But there is a possible workaround. When you