Execute custom code when marker click

38 views
Skip to first unread message

pufAmuf

unread,
Jul 6, 2011, 11:33:57 AM7/6/11
to google-map...@googlegroups.com
Hey, is it possible to execute custom code when you click a marker? I want to replace the default infowindows with my own Jquery ones that would popup with a normal <A href execution. Can I do that with the markers too?

Thanks

Webewitch

unread,
Jul 6, 2011, 11:23:56 PM7/6/11
to google-map...@googlegroups.com
I've been doing something along these lines.
See if this can help:

google.maps.event.addListener(marker, "click", function () {
            Your function(parameter);
            });

pufAmuf

unread,
Jul 7, 2011, 2:50:06 PM7/7/11
to google-map...@googlegroups.com
Hi,
Thank you very much!
Reply all
Reply to author
Forward
0 new messages