Colloquially known as Pew Pew map, this chart tracks live attacks going from one location to another over a world map, depicted as arrows whose colors and widths are defined by the values in the specified fields.
Methods
# setCustomStyle(val)
Set use of custom style-
Parameters:
Name | Type | Description |
---|---|---|
val |
boolean
|
Custom style. |
# setDataOperation(operation)
Apply an operation to the data.
The following values are supported:
- none
- arctag
- log
Parameters:
Name | Type | Description |
---|---|---|
operation |
string
|
Operation name. |
# setDefaultColor(color)
Set default color.
Parameters:
Name | Type | Description |
---|---|---|
color |
string
|
Default color |
# setElementsLimit(limit)
Set the limit of elements.
Parameters:
Name | Type | Description |
---|---|---|
limit |
number
|
Limit number. |
# setFitToBounds(val)
Set wether to fit map zoom when rendered.
Parameters:
Name | Type | Description |
---|---|---|
val |
boolean
|
Fit to bounds. |
# setGradient(gradient)
Set gradient color number.
Parameters:
Name | Type | Description |
---|---|---|
gradient |
number
|
Gradient number. |
# setGradients(gradients)
Set an array of colors used for gradients.
Parameters:
Name | Type | Description |
---|---|---|
gradients |
Array.<string>
|
Array of arrays of colors |
# setKeys(coordinates)
Set the origin and destination coordinates.
Parameters:
Name | Type | Description |
---|---|---|
coordinates |
Object
|
|
from |
Object
|
|
from.lat |
string
|
Latitude origin. |
from.lon |
string
|
Longitude origin. |
to |
Object
|
|
to.lat |
string
|
Destination latitude. |
to.lon |
string
|
Deestination longitude. |
# setLabelsKeys(labels)
Set the labels text.
Parameters:
Name | Type | Description |
---|---|---|
labels |
Object
|
|
from |
string
|
Text label. |
to |
string
|
Text label. |
# setPlay(val)
Set arrows animation.
Parameters:
Name | Type | Description |
---|---|---|
val |
boolean
|
Animation of arrows. |
# setSkipLimit(val)
Do not apply the data.
Parameters:
Name | Type | Description |
---|---|---|
val |
boolean
|
Skip limit data. |
# setSortDescending(val)
Set descending sorting.
Parameters:
Name | Type | Description |
---|---|---|
val |
boolean
|
Sort descending. |
# setType(val)
Apply a style layer to the map.
The following values are supported:
- hybrid
- roadmap
- satellite
- terrain
Parameters:
Name | Type | Description |
---|---|---|
val |
string
|
Layer name. |
# setUseGradient(val)
Wether to use gradient.
Parameters:
Name | Type | Description |
---|---|---|
val |
boolean
|
Use gradient. |
# setValue(val)
Set the column value to show.
Parameters:
Name | Type | Description |
---|---|---|
val |
string
|
Column name. |
# setVisible(val)
Set visibility of arrows.
Parameters:
Name | Type | Description |
---|---|---|
val |
boolean
|
Visibility of arrows. |