Skip to content

Package

esri-leaflet-heatmap

Current version: 2.0.1

This plugin supports rendering a heatmap layer using point data from a feature layer.

Install

Below are instructions to install Esri Leaflet Heatmap and its dependencies. You can install it via NPM for use in CommonJS environments or include it directly in your HTML using CDN links.

NPM

You can install the plugin as a Common JS module via NPM:

Use dark colors for code blocksCopy
1
2
3
npm install leaflet --save
npm install esri-leaflet --save
npm install esri-leaflet-heatmap --save

CDN

You can also include esri-leaflet-heatmap using script tags in your HTML.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
<!-- Leaflet -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"/>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>

<!-- Esri Leaflet -->
<script src="https://unpkg.com/esri-leaflet@3.0.19/dist/esri-leaflet.js"></script>

<!-- Esri Leaflet Heatmap -->
<script src="https://unpkg.com/esri-leaflet-heatmap@2.0.1/dist/esri-leaflet-heatmap.js"></script>

Classes

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.