leaflet-div-heatmap

WebJar for leaflet-div-heatmap

License

License

MIT
Categories

Categories

Github Development Tools Version Controls Leaf Data Databases
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

github-com-danielepiccone-leaflet-div-heatmap
Last Version

Last Version

0.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

leaflet-div-heatmap
WebJar for leaflet-div-heatmap
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/danielepiccone/leaflet-div-heatmap

Download github-com-danielepiccone-leaflet-div-heatmap

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/github-com-danielepiccone-leaflet-div-heatmap/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>github-com-danielepiccone-leaflet-div-heatmap</artifactId>
    <version>0.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-danielepiccone-leaflet-div-heatmap/
implementation 'org.webjars.npm:github-com-danielepiccone-leaflet-div-heatmap:0.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-danielepiccone-leaflet-div-heatmap/
implementation ("org.webjars.npm:github-com-danielepiccone-leaflet-div-heatmap:0.0.0")
'org.webjars.npm:github-com-danielepiccone-leaflet-div-heatmap:jar:0.0.0'
<dependency org="org.webjars.npm" name="github-com-danielepiccone-leaflet-div-heatmap" rev="0.0.0">
  <artifact name="github-com-danielepiccone-leaflet-div-heatmap" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='github-com-danielepiccone-leaflet-div-heatmap', version='0.0.0')
)
libraryDependencies += "org.webjars.npm" % "github-com-danielepiccone-leaflet-div-heatmap" % "0.0.0"
[org.webjars.npm/github-com-danielepiccone-leaflet-div-heatmap "0.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Leaflet divHeatmap Layer

Lightweight implementation of an heatmap layer for leaflet using CSS3 and divIcon

Use

var divHeatmapLayer = new L.DivHeatmapLayer();

Options

{
    clickable: true or false, // divHeatmapLayer.on('click',function() {...});
    radius: 100,
    gradient: true or false, // Make solid blobs
    color: '255,0,0' or '#FF0000'
}

Methods:

.setData(data)

Loads an array of data points:

var data = [
{
    lat:10,
    lon:12,
    value:1
},
{
...
}
];

.getData()

Returns the dataset in the heatmap.

.clearData()

Clears all the data.

.morphData(data)

Load a new dataset performing a fadeOut on the old data and a fadeIn on the new data.

.fadeInData(data)

Loads an array of data points fading.

.fadeOutData()

Removes the current data making it fade out.

To Do

  • Callbacks for animations
  • Support for CSS animations

Versions

Version
0.0.0