Enumerations #
This class exposes no enumerations.
Constants #
This class exposes no constants.
Events #
Definition |
Parameters |
Return Type |
Description |
This class exposes no events.
Methods #
Definition |
Parameters |
Return Type |
Description |
Constructor |
points() as WeightedPoint |
None |
Creates a new instance of the class. |
Properties #
Name |
Type |
Default Value |
Description |
Dissipating |
Boolean |
False |
Specifies whether heatmaps dissipate on zoom. By default, the radius of influence of a data point is specified by the radius option only. When dissipating is disabled, the radius option is interpreted as a radius at zoom level 0. |
GradientColors |
Color() |
Nil |
The color gradient of the heatmap, specified as an array of colors with alpha channel. |
MaximumIntensity |
Double |
-1 |
The maximum intensity of the heatmap. By default, heatmap colors are dynamically scaled according to the greatest concentration of points at any particular pixel on the map. This property allows you to specify a fixed maximum. Value of -1 disables this property. |
Opacity |
Double |
0.6 |
Opacity of the heatmap with a value range of 0 to 1 with 0 being transparent and 1 being opaque. |
Points |
GraffitiMap.WeightedPoint() |
Nil |
Data points to use when visualizing the heatmap. |
Radius |
Integer |
-1 |
The radius of influence for each data point, in pixels. -1 to disable this property. |
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 ) )
me.AddHeatMap( sanFranciscoHeatMap )
Notes #
This class currently has no notes.