Lightweight implementation of an heatmap layer for leaflet using CSS3 and divIcon
var divHeatmapLayer = new L.DivHeatmapLayer();
{
clickable: true or false, // divHeatmapLayer.on('click',function() {...});
radius: 100,
gradient: true or false, // Make solid blobs
color: '255,0,0' or '#FF0000'
}
Loads an array of data points:
var data = [
{
lat:10,
lon:12,
value:1
},
{
...
}
];
Returns the dataset in the heatmap.
Clears all the data.
Load a new dataset performing a fadeOut on the old data and a fadeIn on the new data.
Loads an array of data points fading.
Removes the current data making it fade out.
- Callbacks for animations
- Support for CSS animations