This is a heatmap extension for vue2-leaflet package.
Download the Vue2LeafletHeatmap.vue
file and put it in your component dir.
The lat-lng
prop needs to be an array of LatLng
points (a polyline) with an additional third element (intensity) in each point.
You can use the following props to style the hotline:
- min-opacity - the minimum opacity the heat will start at
- max-zoom - zoom level where the points reach maximum intensity (as intensity scales with zoom), equals
maxZoom
of the map by default - max - maximum point intensity,
1.0
by default - radius - radius of each "point" of the heatmap,
25
by default - blur - amount of blur,
15
by default - gradient - color gradient config, e.g.
{0.4: 'blue', 0.65: 'lime', 1: 'red'}
Jurian Baas, Nicolò Maria Mezzopera
Nicolò Maria Mezzopera was nice enough to turn this into a proper npm module, thanks! >> Removed this, because it keeps giving issues.
This is just a wrapper, all credit to the people who made Leaflet and Leaflet.heat, to Korigan, who made Vue2Leaflet, and to @jperelli and @ikmolbo for creating the Vue2Leaflet markercluster and Vue2Leaflet hotline plugins.
MIT