How can you create an listener to a marker and get its latitude and longitude. When I create an listener to each marker of a click event, I can do stuff like alert on the click, but how can I get the coords of the marker i.e click -> this.getLat/getLng
, etc. when clicked on?
Get latitude and longitude of marker (onclick)
eventsgoogle-maps-api-3
Best Solution
Try this: