Skip to content

wangzhijun233/Leaflet.heat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leaflet.heat

A tiny, simple and fast Leaflet heatmap plugin. Uses simpleheat under the hood, additionally clustering points into a grid for performance.

Demo (10,000 points) →

Basic Usage

L.heatLayer(latlngs, {radius: 25}).addTo(map);

To include the plugin, just use leaflet-heat.js from the dist folder:

<script src="leaflet-heat.js"></script>

Reference

L.heatLayer(latlngs, options);

Constructs a heatmap layer given an array of LatLng points and an object with the following options:

  • maxZoom - zoom level where the points reach maximum intensity (as intensity scales with zoom), equals maxZoom of the map by default
  • radius - radius of each "point" of the heatmap, 25 by default
  • blur - amount of blur, 15 by default

About

A tiny, simple and fast heatmap plugin for Leaflet.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 66.1%
  • HTML 33.9%