com.google.gwt.maps.client.visualizationlib
Class HeatMapLayer

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

public class HeatMapLayer
extends MVCObject<HeatMapLayer>

A layer showing a heatmap of the provided points. Extends the MVCObject.

See HeatMapLayer API Doc


Constructor Summary
protected HeatMapLayer()
          use newInstance();
 
Method Summary
 MVCArray<LatLng> getData()
          Returns the data points currently displayed by this heatmap.
 MVCArray<WeightedLocation> getDataWeighted()
          Returns the data points currently displayed by this heatmap.
 MapWidget getMap()
          Gets map layer is rendered to, or NULL if not associated with map.
static HeatMapLayer newInstance(HeatMapLayerOptions options)
          A layer that provides a client-side rendered heatmap, depicting the intensity of data at geographical points.
 void setData(JsArray<LatLng> dataPoints)
          Sets the data points to be displayed by this heatmap.
NOTE: To clear the map points, set equal to an empty array.
 void setData(MVCArray<LatLng> dataPoints)
          Sets the data points to be displayed by this heatmap.
NOTE: To clear the map points, set equal to an empty array.
 void setDataWeighted(JsArray<WeightedLocation> dataPoints)
          Sets the data points to be displayed by this heatmap.
NOTE: To clear the map points, set equal to an empty array.
 void setDataWeighted(MVCArray<WeightedLocation> dataPoints)
          Sets the data points to be displayed by this heatmap.
NOTE: To clear the map points, set equal to an empty array.
 void setMap(MapWidget mapWidget)
          Renders the heatmap on the specified map.
 
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

HeatMapLayer

protected HeatMapLayer()
use newInstance();

Method Detail

newInstance

public static final HeatMapLayer newInstance(HeatMapLayerOptions options)
A layer that provides a client-side rendered heatmap, depicting the intensity of data at geographical points.

Parameters:
options - HeatMapLayerOptions configuration for layer (data, rendering options)
Returns:
new WeatherLayer instance

setMap

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

Parameters:
mapWidget -

getMap

public final MapWidget getMap()
Gets map layer is rendered to, or NULL if not associated with map.

Returns:
NULL if no associated map

setDataWeighted

public final void setDataWeighted(JsArray<WeightedLocation> dataPoints)
Sets the data points to be displayed by this heatmap.
NOTE: To clear the map points, set equal to an empty array.

Parameters:
dataPoints -

setDataWeighted

public final void setDataWeighted(MVCArray<WeightedLocation> dataPoints)
Sets the data points to be displayed by this heatmap.
NOTE: To clear the map points, set equal to an empty array.

Parameters:
dataPoints -

setData

public final void setData(JsArray<LatLng> dataPoints)
Sets the data points to be displayed by this heatmap.
NOTE: To clear the map points, set equal to an empty array.

Parameters:
dataPoints -

setData

public final void setData(MVCArray<LatLng> dataPoints)
Sets the data points to be displayed by this heatmap.
NOTE: To clear the map points, set equal to an empty array.

Parameters:
dataPoints -

getData

public final MVCArray<LatLng> getData()
Returns the data points currently displayed by this heatmap.

Returns:
data points as MVCArray

getDataWeighted

public final MVCArray<WeightedLocation> getDataWeighted()
Returns the data points currently displayed by this heatmap.

Returns:
data points as MVCArray


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