com.google.gwt.maps.client.overlays
Class GroundOverlay

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.mvc.MVCObject<GroundOverlay>
          extended by com.google.gwt.maps.client.overlays.GroundOverlay

public class GroundOverlay
extends MVCObject<GroundOverlay>

A groundoverlay overlay. This class extends MVCObject.

See GroundOverlay API Doc


Constructor Summary
protected GroundOverlay()
          use newInstance();
 
Method Summary
 HandlerRegistration addClickHandler(ClickMapHandler handler)
          This event is fired when the DOM click event is fired on the GroundOverlay.
 LatLngBounds getBounds()
          Returns the bounds of this groundoverlay.
 MapWidget getMap()
          Returns the map on which this groundoverlay is displayed.
 double getOpacity()
          Gets the opacity of this ground overlay.
 String getUrl()
          Gets the url of the projected image.
static GroundOverlay newInstance(String url, LatLngBounds bounds, GroundOverlayOptions options)
          Creates a ground overlay from the provided image URL and its LatLngBounds.
 void setMap(MapWidget mapWidget)
          Renders the groundoverlay on the specified map.
 void setOpacity(double opacityValue)
          Sets the opacity of this ground overlay.
 
Methods inherited from class com.google.gwt.maps.client.mvc.MVCObject
bindTo, bindTo, bindTo, changed, createInstanceOfMVCObject, get, notify, set, setValues, unbind, unbindAll
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroundOverlay

protected GroundOverlay()
use newInstance();

Method Detail

newInstance

public static final GroundOverlay newInstance(String url,
                                              LatLngBounds bounds,
                                              GroundOverlayOptions options)
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.

Parameters:
url -
bounds -
options -

getBounds

public final LatLngBounds getBounds()
Returns the bounds of this groundoverlay.


setMap

public final void setMap(MapWidget mapWidget)
Renders the groundoverlay on the specified map. If map is set to null, the groundoverlay will be removed.

Parameters:
mapWidget -

getMap

public final MapWidget getMap()
Returns the map on which this groundoverlay is displayed.


setOpacity

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


getOpacity

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


getUrl

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


addClickHandler

public final HandlerRegistration addClickHandler(ClickMapHandler handler)
This event is fired when the DOM click event is fired on the GroundOverlay.

Parameters:
handler -


Copyright © 2011-2013 GWT Maps API V3. All Rights Reserved.