This chart displays information on a world map using latitude and longitude coordinates, representing data with different colors. Information can be clustered on the map by an optional additional value.
Methods
# setCenter(center)
Set the initial map center.
Parameters:
Name | Type | Description |
---|---|---|
center |
Object
|
|
lat |
number
|
Latitude value. |
lng |
number
|
Longitude value. |
# setDataOperation(operation)
Set the operation to apply to the data.
The following values are supported:
- none: No operation to apply.
- log: Logarithmic operation.
- arc: Arctangent operation.
Parameters:
Name | Type | Description |
---|---|---|
operation |
string
|
Operation name. |
# setDissipating(dissipating)
Specifies whether heatmaps dissipate on zoom.
Parameters:
Name | Type | Description |
---|---|---|
dissipating |
boolean
|
Enable or disable. |
# setGradient(gradient)
Set the color gradient of the heatmap.
One of the following numbers:
- 0: 'Default'.
- 1: 'Artic'.
- 2: 'Boreal'.
- 3 'Bruise'.
- 4 'Sunset'.
- 5 'Antartic'.
- 6 'Sky Burst'.
- 7 'Rioja Lightning'.
- 8 'Kamehameha'.
- 9 'Alien'.
- 10 'Rainbow'.
Parameters:
Name | Type | Description |
---|---|---|
gradient |
number
|
Number of gradient. |
# setInitGradient(gradient)
Set initial gradient color.
Parameters:
Name | Type | Description |
---|---|---|
gradient |
Object
|
# setKeys(arr)
Set the keys to show.
Parameters:
Name | Type | Description |
---|---|---|
arr |
Array.<Object>
|
Object with lat and lon values. |
# setMapTypeControl(bool)
Shows the MapType control in the map.
Parameters:
Name | Type | Description |
---|---|---|
bool |
boolean
|
Enable or disable. |
# setMapTypeControlOptions(options)
Set the default options for map controls.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object
|
Show Google documentation. |
# setMapTypeId(type)
Sets the Google maps type.
Parameters:
Name | Type | Description |
---|---|---|
type |
string
|
Type of map. |
# setOpacity(opacity)
Set the opacity of the heatmap.
Parameters:
Name | Type | Description |
---|---|---|
opacity |
number
|
Number between 0 and 1. |
# setPartKey(partKey)
Set partitioning key.
Parameters:
Name | Type | Description |
---|---|---|
partKey |
string
|
Partitioning key |
# setRadius(radius)
Set the radius of influence for each data point.
Parameters:
Name | Type | Description |
---|---|---|
radius |
number
|
Number in pixels. |
# setRotateControl(bool)
Displays a small circular icon which allows you to rotate maps.
Parameters:
Name | Type | Description |
---|---|---|
bool |
boolean
|
Enable or disable. |
# setScaleControl(bool)
Displays a map scale element.
Parameters:
Name | Type | Description |
---|---|---|
bool |
boolean
|
Enable or disable. |
# setScrollwheel(bool)
Set the zooming on the map using a mouse scroll wheel.
Parameters:
Name | Type | Description |
---|---|---|
bool |
boolean
|
Enable or disable. |
# setStreetViewControl(bool)
Displays a Pegman icon which can be dragged to the map to enable Street View.
Parameters:
Name | Type | Description |
---|---|---|
bool |
boolean
|
Enable or disable. |
# setStreetViewControlOptions(options)
Set the default options for the rendering of the Street View pegman control on the map.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object
|
Show Google documentation. |
# setStyles(styles)
Set custom styles.
Parameters:
Name | Type | Description |
---|---|---|
styles |
Array.<Object>
|
CSS styles properties. |
# setValue(value)
Set the column nae with the value.
Parameters:
Name | Type | Description |
---|---|---|
value |
string
|
Column name. |
# setZoom(zoom)
Set the default value for zoom.
Parameters:
Name | Type | Description |
---|---|---|
zoom |
number
|
Zoom value. |
# setZoomControl(bool)
Displays a slider or "+/-" buttons to control the zoom level of the map.
Parameters:
Name | Type | Description |
---|---|---|
bool |
boolean
|
Enable or disable. |
# setZoomControlOptions(options)
Set the display options for the zoom control.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object
|
Show Google documentation. |