I was using since months the click event of a marker for displaying a
custom overlay.
This was easy since the click event passes the native mouse event
which includes the "target" element.
Therefore, something like this was possible:
google.maps.event.addListener(marker, 'click', function (e, info) {
console.log(e.target);
});
This conforms to the documentation, which says the click event gets
passed the "Event".
Suddenly I recognized, that this is not working anymore, but the
documentation still says "Event".
Now, it gets passed the Google Maps "MouseEvent", which just passes
the x and y coordinates of the location of the link.
What is happening?
The rolled back to my code version where I implemented that stuff and
where I'm 100% sure that it worked.
Another project of mine is affected as well, and I haven't changed the
code since the last time I saw it working.
Anybody any ideas??
Thanks!!
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.