com.google.maps.gwt.client
Class GroundOverlay

java.lang.Object
  extended by JavaScriptObject
      extended by com.google.maps.gwt.client.MVCObject
          extended by com.google.maps.gwt.client.GroundOverlay

public class GroundOverlay
extends MVCObject

A rectangular image overlay on the map. THIS SOURCE CODE IS GENERATED, DO NOT MODIFY


Nested Class Summary
static interface GroundOverlay.ClickHandler
          This event is fired when the DOM click event is fired on the GroundOverlay .
static interface GroundOverlay.DblClickHandler
          This event is fired when the DOM dblclick event is fired on the GroundOverlay .
 
Constructor Summary
protected GroundOverlay()
          Protected constructor avoids default public constructor.
 
Method Summary
 void addClickListener(GroundOverlay.ClickHandler handler)
          Adds the given listener function to the given event name for the given object instance.
 void addClickListenerOnce(GroundOverlay.ClickHandler handler)
          Like addListener, but the handler removes itself after handling the first event.
 void addDblClickListener(GroundOverlay.DblClickHandler handler)
          Adds the given listener function to the given event name for the given object instance.
 void addDblClickListenerOnce(GroundOverlay.DblClickHandler handler)
          Like addListener, but the handler removes itself after handling the first event.
 void clearClickListeners()
          Removes all listeners for the given event for the given instance.
 void clearDblClickListeners()
          Removes all listeners for the given event for the given instance.
 void clearInstanceListeners()
          Removes all listeners for all events for the given instance.
static GroundOverlay create(java.lang.String url, LatLngBounds bounds)
          Creates a ground overlay from the provided image URL and its LatLngBounds .
static GroundOverlay create(java.lang.String url, LatLngBounds bounds, GroundOverlayOptions opts)
          Creates a ground overlay from the provided image URL and its LatLngBounds .
 LatLngBounds getBounds()
          Gets the LatLngBounds of this overlay.
 GoogleMap getMap()
          Returns the map on which this ground overlay is displayed.
 double getOpacity()
          Returns the opacity of this ground overlay.
 java.lang.String getUrl()
          Gets the url of the projected image.
 void setMap(GoogleMap map)
          Renders the ground overlay on the specified map.
 void setOpacity(double opacity)
          Sets the opacity of this ground overlay.
 void triggerClick(JavaScriptObject... varargs)
          Triggers the given event.
 void triggerDblClick(JavaScriptObject... varargs)
          Triggers the given event.
 
Methods inherited from class com.google.maps.gwt.client.MVCObject
bindTo, bindTo, bindTo, bindTo, changed, create, get, notify, set, setValues, setValues, unbind, unbindAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroundOverlay

protected GroundOverlay()
Protected constructor avoids default public constructor.

Method Detail

create

public static GroundOverlay create(java.lang.String url,
                                   LatLngBounds bounds,
                                   GroundOverlayOptions opts)
Creates a ground overlay from the provided image URL and its LatLngBounds . The image is scaled to fit the current bounds, and projected using the current map projection.


create

public static GroundOverlay create(java.lang.String url,
                                   LatLngBounds bounds)
Creates a ground overlay from the provided image URL and its LatLngBounds . The image is scaled to fit the current bounds, and projected using the current map projection.


addClickListener

public final void addClickListener(GroundOverlay.ClickHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addClickListenerOnce

public final void addClickListenerOnce(GroundOverlay.ClickHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addDblClickListener

public final void addDblClickListener(GroundOverlay.DblClickHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addDblClickListenerOnce

public final void addDblClickListenerOnce(GroundOverlay.DblClickHandler handler)
Like addListener, but the handler removes itself after handling the first event.


clearClickListeners

public final void clearClickListeners()
Removes all listeners for the given event for the given instance.


clearDblClickListeners

public final void clearDblClickListeners()
Removes all listeners for the given event for the given instance.


clearInstanceListeners

public final void clearInstanceListeners()
Removes all listeners for all events for the given instance.


getBounds

public final LatLngBounds getBounds()
Gets the LatLngBounds of this overlay.


getMap

public final GoogleMap getMap()
Returns the map on which this ground overlay is displayed.


getOpacity

public final double getOpacity()
Returns the opacity of this ground overlay.


getUrl

public final java.lang.String getUrl()
Gets the url of the projected image.


setMap

public final void setMap(GoogleMap map)
Renders the ground overlay on the specified map. If map is set to null, the overlay is removed.


setOpacity

public final void setOpacity(double opacity)
Sets the opacity of this ground overlay.


triggerClick

public final void triggerClick(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerDblClick

public final void triggerDblClick(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.