com.google.gwt.maps.client.overlay
Class TrafficOverlayOptions

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.overlay.TrafficOverlayOptions

public class TrafficOverlayOptions
extends com.google.gwt.core.client.JavaScriptObject

Used as an argument to the constructor for TrafficOverlay.


Constructor Summary
protected TrafficOverlayOptions()
           
 
Method Summary
static TrafficOverlayOptions newInstance()
          Returns a new instance of the TrafficOverlayOptions object.
static TrafficOverlayOptions newInstance(boolean incidents)
          Construct a new TrafficOverlayOptions instance.
 void setIncidents(boolean incidents)
          When set to true, indicates that the TrafficOverlay should display traffic incidents on the map, where applicable.
 
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

TrafficOverlayOptions

protected TrafficOverlayOptions()
Method Detail

newInstance

public static TrafficOverlayOptions newInstance(boolean incidents)
Construct a new TrafficOverlayOptions instance.

Parameters:
incidents - pass true to make this traffic overlay show incidents.
Returns:
a new TrafficOverlayOptions instance.

newInstance

public static TrafficOverlayOptions newInstance()
Returns a new instance of the TrafficOverlayOptions object.

Returns:
a new instance of the TrafficOverlayOptions object.

setIncidents

public final void setIncidents(boolean incidents)
When set to true, indicates that the TrafficOverlay should display traffic incidents on the map, where applicable.

Parameters:
incidents - true to make this traffic overlay show incidents.