sábado, 9 de agosto de 2014

Eventos de ratón para un marcador en Google Maps

A continuación se enumerarán los distintos eventos que son disparados cuando se interactua con el ratón sobre un marcador de Google Maps.




google.maps.event.addListener(marker, "click", function (e) log("Click"); );
google.maps.event.addListener(marker, "dblclick", function (e) log("Double Click"); );
google.maps.event.addListener(marker, "mouseover", function (e) log("Mouse Over"); );
google.maps.event.addListener(marker, "mouseout", function (e) log("Mouse Out"); );
google.maps.event.addListener(marker, "mouseup", function (e) log("Mouse Up"); );
google.maps.event.addListener(marker, "mousedown", function (e) log("Mouse Down"); );
google.maps.event.addListener(marker, "dragstart", function (mEvent) log("Drag Start: " + mEvent.latLng.toString()); );
google.maps.event.addListener(marker, "drag", function (mEvent) log("Drag: " + mEvent.latLng.toString()); );
google.maps.event.addListener(marker, "dragend", function (mEvent) log("Drag End: " + mEvent.latLng.toString()); );



Eventos de ratón para un marcador en Google Maps

No hay comentarios:

Publicar un comentario