コード例 #1
0
 /**
  * This event is fired when the user has finished drawing a rectangle.
  *
  * @param handler
  */
 public final HandlerRegistration addRectangleCompleteHandler(
     RectangleCompleteMapHandler handler) {
   return MapHandlerRegistration.addHandlerDrawing(
       this, MapEventType.RECTANGLECOMPLETE, handler, new RectangleCompleteEventFormatter());
 }
コード例 #2
0
 /**
  * This event is fired when the user has finished drawing an overlay of any type.
  *
  * @param handler
  */
 public final HandlerRegistration addOverlayCompleteHandler(OverlayCompleteMapHandler handler) {
   return MapHandlerRegistration.addHandler(
       this, MapEventType.OVERLAYCOMPLETE, handler, new OverlayCompleteEventFormatter());
 }
コード例 #3
0
 /**
  * This event is fired when the user has finished drawing a polyline.
  *
  * @param handler
  */
 public final HandlerRegistration addPolylineCompleteHandler(PolylineCompleteMapHandler handler) {
   return MapHandlerRegistration.addHandlerDrawing(
       this, MapEventType.POLYLINECOMPLETE, handler, new PolylineCompleteEventFormatter());
 }
コード例 #4
0
 /**
  * This event is fired when the user has finished drawing a circle.
  *
  * @param handler
  */
 public final HandlerRegistration addCircleCompleteHandler(CircleCompleteMapHandler handler) {
   return MapHandlerRegistration.addHandlerDrawing(
       this, MapEventType.CIRCLECOMPLETE, handler, new CircleCompleteEventFormatter());
 }
コード例 #5
0
 /**
  * This event is fired when the user has finished drawing a marker.
  *
  * @param handler
  */
 public final HandlerRegistration addMarkerCompleteHandler(MarkerCompleteMapHandler handler) {
   return MapHandlerRegistration.addHandlerDrawing(
       this, MapEventType.MARKERCOMPLETE, handler, new MarkerCompleteEventFormatter());
 }
コード例 #6
0
 /**
  * This event is fired when the Polyline is right-clicked on.
  *
  * @param handler
  */
 public final HandlerRegistration addRightClickHandler(RightClickMapHandler handler) {
   return MapHandlerRegistration.addHandler(
       this, MapEventType.RIGHTCLICK, handler, new RightClickEventFormatter());
 }
コード例 #7
0
 /**
  * This event is fired when the rendered directions change, either when a new DirectionsResult is
  * set or when the user finishes dragging a change to the directions path.
  *
  * @param handler
  */
 public final HandlerRegistration addDirectionsChangeHandler(DirectionsChangeMapHandler handler) {
   return MapHandlerRegistration.addHandler(
       this, MapEventType.DIRECTIONS_CHANGED, handler, new DirectionsChangeEventFormatter());
 }
コード例 #8
0
 /**
  * This event is fired when the DOM mouseup event is fired on the Polyline.
  *
  * @param handler
  */
 public final HandlerRegistration addMouseUpHandler(MouseUpMapHandler handler) {
   return MapHandlerRegistration.addHandler(
       this, MapEventType.MOUSEUP, handler, new MouseUpEventFormatter());
 }
コード例 #9
0
 /**
  * This event is fired on Polyline mouseover.
  *
  * @param handler
  */
 public final HandlerRegistration addMouseOverHandler(MouseOverMapHandler handler) {
   return MapHandlerRegistration.addHandler(
       this, MapEventType.MOUSEOVER, handler, new MouseOverEventFormatter());
 }
コード例 #10
0
 /**
  * This event is fired on Polyline mouseout.
  *
  * @param handler
  */
 public final HandlerRegistration addMouseOutMoveHandler(MouseOutMapHandler handler) {
   return MapHandlerRegistration.addHandler(
       this, MapEventType.MOUSEOUT, handler, new MouseOutEventFormatter());
 }
コード例 #11
0
 /**
  * This event is fired when the DOM dblclick event is fired on the Polyline.
  *
  * @param handler
  */
 public final HandlerRegistration addDblClickHandler(DblClickMapHandler handler) {
   return MapHandlerRegistration.addHandler(
       this, MapEventType.DBLCLICK, handler, new DblClickEventFormatter());
 }
コード例 #12
0
 /**
  * This event is fired when a feature in the layer is clicked.
  *
  * @param handler
  */
 public final HandlerRegistration addClickHandler(PanoramioMouseMapHandler handler) {
   return MapHandlerRegistration.addHandler(
       this, MapEventType.CLICK, handler, new PanoramioMouseEventFormatter());
 }