leaflet-heat-es
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

leaflet-heat-es

A modular heatmap plugin for Leaflet. Modified from leaflet.heat

Quick Start

import { heatLayer } from 'leaflet-heat-es';
 
const map = #leaflet map instance#;
 
const points = [
  [50.5, 30.5, 0.2], // lat, lng, intensity
  [50.6, 30.4, 0.5],
  ...
];
 
const heat = heatLayer(points);
heat.addTo(map);

Demo

Readme

Keywords

none

Package Sidebar

Install

npm i leaflet-heat-es

Weekly Downloads

10

Version

0.2.1

License

MIT

Unpacked Size

114 kB

Total Files

18

Last publish

Collaborators

  • liyuanqiu