com.mapitz.gwt.googleMaps.client
Interface GMarkerEventListener


public interface GMarkerEventListener

Defines the interface for all standard GMarker event listeners

Author:
aglaforge

Method Summary
 void onClick(GMarker marker)
          click none This event is fired when the marker icon was clicked.
 void onDblClick(GMarker marker)
          dblclick none This event is fired when the marker icon was double-clicked.
 void onInfoWindowClose(GMarker marker)
          infowindowclose none This event is fired when the info window of the map that was opened through this marker is closed again.
 void onInfoWindowOpen(GMarker marker)
          infowindowopen none This event is fired when the info window of the map was opened through this marker.
 void onMouseDown(GMarker marker)
          mousedown none This event is fired when the DOM mousedown event is fired on the marker icon.
 void onMouseOut(GMarker marker)
          mouseout none This event is fired when the mouse leaves the area of the marker icon.
 void onMouseOver(GMarker marker)
          mouseover none This event is fired when the mouse enters the area of the marker icon.
 void onMouseUp(GMarker marker)
          mouseup none This event is fired for the DOM mouseup on the marker.
 void onRemove(GMarker marker)
          remove none This event is fired when the marker is removed from the map, using GMap2.removeOverlay() or GMap2.clearOverlays().
 

Method Detail

onClick

void onClick(GMarker marker)
click none This event is fired when the marker icon was clicked. Notice that this event will also fire for the map, with the marker passed as the first argument to the event handler there.


onDblClick

void onDblClick(GMarker marker)
dblclick none This event is fired when the marker icon was double-clicked. Notice that this event will not fire for the map, because the map centers on double-click as a hardwired behavior.


onMouseDown

void onMouseDown(GMarker marker)
mousedown none This event is fired when the DOM mousedown event is fired on the marker icon. Notice that the marker will stop the mousedown DOM event, so that it doesn't cause the map to start dragging.


onMouseUp

void onMouseUp(GMarker marker)
mouseup none This event is fired for the DOM mouseup on the marker. Notice that the marker will not stop the mousedown DOM event, because it will not confuse the drag handler of the map.


onMouseOver

void onMouseOver(GMarker marker)
mouseover none This event is fired when the mouse enters the area of the marker icon.


onMouseOut

void onMouseOut(GMarker marker)
mouseout none This event is fired when the mouse leaves the area of the marker icon.


onInfoWindowOpen

void onInfoWindowOpen(GMarker marker)
infowindowopen none This event is fired when the info window of the map was opened through this marker.


onInfoWindowClose

void onInfoWindowClose(GMarker marker)
infowindowclose none This event is fired when the info window of the map that was opened through this marker is closed again. This happens when either the info window was closed, or when it was opened on another marker, or on the map.


onRemove

void onRemove(GMarker marker)
remove none This event is fired when the marker is removed from the map, using GMap2.removeOverlay() or GMap2.clearOverlays().