Module

PewPewMap

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.

Tutorials:
See:

View Source widgets/pewPewMap.js, line 7

Methods

# setColorKey(val)

Set color key.

Parameters:
Name Type Description
val string

Color.

View Source widgets/pewPewMap.js, line 59

# setCustomStyle(val)

Set use of custom style-

Parameters:
Name Type Description
val boolean

Custom style.

View Source widgets/pewPewMap.js, line 122

# setDataOperation(operation)

Apply an operation to the data.

The following values are supported:

  • none
  • arctag
  • log
Parameters:
Name Type Description
operation string

Operation name.

View Source widgets/pewPewMap.js, line 163

# setDefaultColor(color)

Set default color.

Parameters:
Name Type Description
color string

Default color

View Source widgets/pewPewMap.js, line 140

# setElementsLimit(limit)

Set the limit of elements.

Parameters:
Name Type Description
limit number

Limit number.

View Source widgets/pewPewMap.js, line 181

# setFitToBounds(val)

Set wether to fit map zoom when rendered.

Parameters:
Name Type Description
val boolean

Fit to bounds.

View Source widgets/pewPewMap.js, line 149

# setGradient(gradient)

Set gradient color number.

Parameters:
Name Type Description
gradient number

Gradient number.

View Source widgets/pewPewMap.js, line 77

# setGradients(gradients)

Set an array of colors used for gradients.

Parameters:
Name Type Description
gradients Array.<string>

Array of arrays of colors

View Source widgets/pewPewMap.js, line 86

# 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.

View Source widgets/pewPewMap.js, line 39

# setLabelsKeys(labels)

Set the labels text.

Parameters:
Name Type Description
labels Object
from string

Text label.

to string

Text label.

View Source widgets/pewPewMap.js, line 50

# setPlay(val)

Set arrows animation.

Parameters:
Name Type Description
val boolean

Animation of arrows.

View Source widgets/pewPewMap.js, line 113

# setSkipLimit(val)

Do not apply the data.

Parameters:
Name Type Description
val boolean

Skip limit data.

View Source widgets/pewPewMap.js, line 172

# setSortDescending(val)

Set descending sorting.

Parameters:
Name Type Description
val boolean

Sort descending.

View Source widgets/pewPewMap.js, line 131

# 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.

View Source widgets/pewPewMap.js, line 196

# setUseGradient(val)

Wether to use gradient.

Parameters:
Name Type Description
val boolean

Use gradient.

View Source widgets/pewPewMap.js, line 95

# setValue(val)

Set the column value to show.

Parameters:
Name Type Description
val string

Column name.

View Source widgets/pewPewMap.js, line 68

# setVisible(val)

Set visibility of arrows.

Parameters:
Name Type Description
val boolean

Visibility of arrows.

View Source widgets/pewPewMap.js, line 104