|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.maps.client.overlay.Overlay
com.google.gwt.maps.client.overlay.Overlay.ConcreteOverlay
com.google.gwt.maps.client.overlay.TrafficOverlay
public final class TrafficOverlay
A traffic overlay object displays road traffic information. The traffic overlay will only display traffic information for supported cities. To add a traffic overlay to the map:
TrafficOverlay traffic = new TrafficOverlay(); map.addOverlay(traffic);
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.maps.client.overlay.Overlay |
---|
Overlay.ConcreteOverlay |
Field Summary |
---|
Fields inherited from class com.google.gwt.maps.client.overlay.Overlay |
---|
jsoPeer |
Constructor Summary | |
---|---|
|
TrafficOverlay()
Creates a new traffic overlay. |
protected |
TrafficOverlay(com.google.gwt.core.client.JavaScriptObject jsoPeer)
Create this overlay from an existing JavaScriptObject instance. |
|
TrafficOverlay(TrafficOverlayOptions options)
Construct a new traffic overlay with options. |
Method Summary | |
---|---|
void |
addTrafficOverlayChangedHandler(TrafficOverlayChangedHandler handler)
This event is fired when the state of traffic data changes within the current viewport. |
void |
removeTrafficOverlayHandler(TrafficOverlayChangedHandler handler)
Removes a single handler of this map previously added with addTrafficOverlayChangedHandler(TrafficOverlayChangedHandler)
. |
void |
setVisible(boolean visible)
Shows or hides this overlay. |
Methods inherited from class com.google.gwt.maps.client.overlay.Overlay.ConcreteOverlay |
---|
copy, initialize, redraw, remove |
Methods inherited from class com.google.gwt.maps.client.overlay.Overlay |
---|
createPeer, getZIndex |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrafficOverlay()
MapWidget.addOverlay(Overlay)
to add
this overlay to the map.
public TrafficOverlay(TrafficOverlayOptions options)
TrafficOverlayOptions
protected TrafficOverlay(com.google.gwt.core.client.JavaScriptObject jsoPeer)
jsoPeer
- an existing JavaScriptObject instance.Method Detail |
---|
public void addTrafficOverlayChangedHandler(TrafficOverlayChangedHandler handler)
TrafficOverlay
to the map results in traffic data appearing within
the current viewport.
handler
- the handler to call when this event fires.public void removeTrafficOverlayHandler(TrafficOverlayChangedHandler handler)
addTrafficOverlayChangedHandler(TrafficOverlayChangedHandler)
.
handler
- the handler to removepublic void setVisible(boolean visible)
visible
- true
to show the overlay, false to hide.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |