Hello, how do I execute onclick on a marker of maps?
My code is this:
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
icon: andando,
shape: shape,
title: beach[0],
html: beach[5],
zIndex: beach[3]
});
In the onclick I need to open a popUp and pass a value to the popup, the value I am getting on the beach [5].