Revision: 13826
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 7, 2009 08:14 by sveggiani
Initial Code
function createMarker(point, id, name, address, rooms_sale, rooms_rent ) { var marker = new GMarker(point); marker.value = id; GEvent.addListener(marker, "click", function() { console.log('You clicked on ID ' + id); }); GEvent.addListener(marker, "mouseover", function() { var pointInfo = '<h2 style="margin: 0 0 .5em 0;">' + name + '</h2><p><strong>' + address + '</strong><br />' + rooms_sale + ' habitaciones de venta<br />' + rooms_rent + ' habitaciones de alquiler.</p>'; marker.openInfoWindowHtml(pointInfo); }); return marker; }
Initial URL
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/fd9c388fb2af590f/bf715966427ad869?lnk=gst&q=mouseover+click+event+problem#bf715966427ad869
Initial Description
Initial Title
simultaneous 'click' and 'mouseover' events on Google Maps marker
Initial Tags
Initial Language
JavaScript