Loading document parsing libraries...
# Heatmap
Class
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Close | (None) | (None) | |
| Constructor | points() as GraffitiMap.WeightedPoint | (None) | Creates a new instance of the class. |
| Attributes | Hidden | toJavaScript | |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| Attributes | ID | String | |
| Attributes | mParent | GraffitiUpdateInterface | |
| Dissipating | Boolean | Nil | |
| GradientColors() | Color | Nil | Colors used for drawing heatmap weights. |
| MaximumIntensity | Double | -1 | Maximum weighted value. |
| Opacity | Double | 0.6 | Opacity of heatmap to increase or reduce visibility of the map. |
| Points() | GraffitiMap.WeightedPoint | Nil | Global weighted coordinates. |
| Radius | Integer | -1 | Point radius. |
| Tag | Variant | Nil | Developer storage. |
## Examples
### Dots Over San Francisco
```
var sanFranPoints() as GraffitiMap.WeightedPoint
sanFranPoints.Add( new GraffitiMap.WeightedPoint( new GraffitiMap.Point( 37.782, -122.447 ), 0.5 ) )
sanFranPoints.Add( new GraffitiMap.WeightedPoint( new GraffitiMap.Point( 37.782, -122.445 ), 0 ) )
sanFranPoints.Add( new GraffitiMap.WeightedPoint( new GraffitiMap.Point( 37.782, -122.443 ), 2 ) )
sanFranPoints.Add( new GraffitiMap.WeightedPoint( new GraffitiMap.Point( 37.782, -122.441 ), 3 ) )
sanFranPoints.Add( new GraffitiMap.WeightedPoint( new GraffitiMap.Point( 37.782, -122.439 ), 2 ) )
sanFranPoints.Add( new GraffitiMap.WeightedPoint( new GraffitiMap.Point( 37.782, -122.437 ), 0 ) )
sanFranPoints.Add( new GraffitiMap.WeightedPoint( new GraffitiMap.Point( 37.782, -122.435 ), 0.5 ) )
sanFranPoints.Add( new GraffitiMap.WeightedPoint( new GraffitiMap.Point( 37.785, -122.447 ), 3 ) )
sanFranPoints.Add( new GraffitiMap.WeightedPoint( new GraffitiMap.Point( 37.785, -122.445 ), 2 ) )
sanFranPoints.Add( new GraffitiMap.WeightedPoint( new GraffitiMap.Point( 37.785, -122.443 ), 0 ) )
sanFranPoints.Add( new GraffitiMap.WeightedPoint( new GraffitiMap.Point( 37.785, -122.441 ), 0.5 ) )
sanFranPoints.Add( new GraffitiMap.WeightedPoint( new GraffitiMap.Point( 37.785, -122.439 ), 0 ) )
sanFranPoints.Add( new GraffitiMap.WeightedPoint( new GraffitiMap.Point( 37.785, -122.437 ), 2 ) )
sanFranPoints.Add( new GraffitiMap.WeightedPoint( new GraffitiMap.Point( 37.785, -122.435 ), 3 ) )
var sanFranciscoHeatMap as new GraffitiMap.Overlays.Heatmap( sanFranPoints )
sanFranciscoHeatMap.GradientColors.Add( Color.RGB( 0, 255, 255, 255 ) )
sanFranciscoHeatMap.GradientColors.Add( Color.RGB( 0, 255, 255, 0 ) )
sanFranciscoHeatMap.GradientColors.Add( Color.RGB( 0, 191, 255, 0 ) )
sanFranciscoHeatMap.GradientColors.Add( Color.RGB( 0, 127, 255, 0 ) )
sanFranciscoHeatMap.GradientColors.Add( Color.RGB( 0, 63, 255, 0 ) )
sanFranciscoHeatMap.GradientColors.Add( Color.RGB( 0, 0, 255, 0 ) )
sanFranciscoHeatMap.GradientColors.Add( Color.RGB( 0, 0, 223, 0 ) )
sanFranciscoHeatMap.GradientColors.Add( Color.RGB( 0, 0, 191, 0 ) )
sanFranciscoHeatMap.GradientColors.Add( Color.RGB( 0, 0, 159, 0 ) )
sanFranciscoHeatMap.GradientColors.Add( Color.RGB( 0, 0, 127, 0 ) )
sanFranciscoHeatMap.GradientColors.Add( Color.RGB( 63, 0, 91, 0 ) )
sanFranciscoHeatMap.GradientColors.Add( Color.RGB( 127, 0, 63, 0 ) )
sanFranciscoHeatMap.GradientColors.Add( Color.RGB( 191, 0, 31, 0 ) )
sanFranciscoHeatMap.GradientColors.Add( Color.RGB( 255, 0, 0, 0 ) )
```