com.google.gwt.maps.client.weatherlib
Class WeatherLayer

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

public class WeatherLayer
extends MVCObject<WeatherLayer>

A layer showing current weather conditions. This class extends MVCObject.

See WeatherLayer API Doc


Constructor Summary
protected WeatherLayer()
          use newInstance();
 
Method Summary
 HandlerRegistration addClickHandler(WeatherMouseMapHandler handler)
          This event is fired when a feature in the layer is clicked.
 MapWidget getMap()
          Returns the map on which this layer is displayed.
static WeatherLayer newInstance(WeatherLayerOptions options)
          A layer that displays graphics showing current weather conditions.
 void setMap(MapWidget mapWidget)
          Renders the layer on the specified map.
 void setOptions(WeatherLayerOptions options)
          Sets the WeatherLayer's options.
 
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

WeatherLayer

protected WeatherLayer()
use newInstance();

Method Detail

newInstance

public static final WeatherLayer newInstance(WeatherLayerOptions options)
A layer that displays graphics showing current weather conditions.

Parameters:
options - WeatherLayerOptions configuration for layer (units, style, behaviors)
Returns:
WeatherLayer object

setMap

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

Parameters:
mapWidget -

setOptions

public final void setOptions(WeatherLayerOptions options)
Sets the WeatherLayer's options.


getMap

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

Returns:
NULL if not on any map

addClickHandler

public final HandlerRegistration addClickHandler(WeatherMouseMapHandler handler)
This event is fired when a feature in the layer is clicked.

Parameters:
handler -


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