com.google.gwt.maps.client.overlay
Class GroundOverlay
java.lang.Object
com.google.gwt.maps.client.overlay.Overlay
com.google.gwt.maps.client.overlay.Overlay.ConcreteOverlay
com.google.gwt.maps.client.overlay.GroundOverlay
public final class GroundOverlay
- extends Overlay.ConcreteOverlay
A rectangular image overlay whose boundaries are defined by a
LatLngBounds
.
Example:
MapWidget map; = ...;
Overlay overlay = new GroundOverlay(url, bounds);
map.addOverlay(overlay);
- See Also:
MapWidget.addOverlay(Overlay)
Fields inherited from class com.google.gwt.maps.client.overlay.Overlay |
jsoPeer |
Constructor Summary |
GroundOverlay(java.lang.String imageUrl,
LatLngBounds bounds)
Creates a new ground overlay from the given image with the specified size. |
Methods inherited from class com.google.gwt.maps.client.overlay.Overlay |
getZIndex |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroundOverlay
public GroundOverlay(java.lang.String imageUrl,
LatLngBounds bounds)
- Creates a new ground overlay from the given image with the specified size.
- Parameters:
imageUrl
- the URL of the overlay imagebounds
- the rectangle defining the bounds of the overlay
addGroundOverlayVisibilityChangedHandler
public void addGroundOverlayVisibilityChangedHandler(GroundOverlayVisibilityChangedHandler handler)
- This event is fired when the visibility of the ground overlay is changed (i.e. the
visibility is flipped from visible to hidden or vice-versa). The
visible
parameter refers to the state of the ground overlay after
the visibility change has happened.
- Parameters:
handler
- the handler to call when this event fires.
isVisible
public boolean isVisible()
- Returns
true
if the overlay is currently visible.
- Returns:
true
if the overlay is currently visible.
removeGroundOverlayVisibilityChangedHandler
public void removeGroundOverlayVisibilityChangedHandler(GroundOverlayVisibilityChangedHandler handler)
- Removes a single handler of this map previously added with
addGroundOverlayVisibilityChangedHandler(GroundOverlayVisibilityChangedHandler)
.
- Parameters:
handler
- the handler to remove
setVisible
public void setVisible(boolean enabled)
- Sets the overlay visible by passing
true
or hide it b passing false
.
- Parameters:
enabled
- sets the overlay visible by passing true
or hide it b passing false
.