Class: Heatmap

MobileAge.Layer.Heatmap(The, options)

Map-Heatmap-Component

Constructor

new Heatmap(The, options)

Class representing Heatmap layer for a existing map.
Parameters:
Name Type Description
The Object map to add this layer to
options Object
Properties
Name Type Attributes Default Description
minOpacity Number <optional>
0.05 The minimum opacity the heat will start at
maxZoom Number <optional>
20 Zoom level where the points reach maximum intensity (as intensity scales with zoom), equals maxZoom of the map by default
max Number <optional>
1.0 Maximum point intensity
radius Number <optional>
25 Radius of each "point" of the heatmap
blur Number <optional>
15 Amount of blur
gradient String <optional>
"{0.4: 'blue', 0.65: 'lime', 1: 'red'}" Color gradient config
Source:

Extends

Methods

(static) draw(data)

Draws a heatmap of given data to the map
Parameters:
Name Type Description
data object requested data
Source:

(static) geoJson2heat(geojson, intensity)

Converts standard geoJSON to heatmap applicable data
Parameters:
Name Type Description
geojson object input data
intensity number intensity to be assigned to the points
Source:

(static) remove(data)

Removes this heatmap
Parameters:
Name Type Description
data object requested data
Source: