You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

react-leaflet-heatmap-layer

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-leaflet-heatmap-layer - npm Package Compare versions

Comparing version
0.2.1
to
0.2.2
+3
-0
CHANGELOG.md

@@ -0,1 +1,4 @@

# 0.2.2 Release
- Change `getHeatmapProps` signature to take a `props` argument to support passing `nextProps` from `componentWillReceiveProps` and `this.props` from `componentDidMount`
# 0.2.1 Release

@@ -2,0 +5,0 @@

+1
-1
{
"name": "react-leaflet-heatmap-layer",
"version": "0.2.1",
"version": "0.2.2",
"description": "A custom layer for heatmaps in react-leaflet",

@@ -5,0 +5,0 @@ "main": "lib/HeatmapLayer.js",

@@ -100,3 +100,3 @@ import React from 'react';

this.attachEvents();
this.updateHeatmapProps(this.getHeatmapProps());
this.updateHeatmapProps(this.getHeatmapProps(this.props));
this.reset();

@@ -125,10 +125,10 @@ }

getHeatmapProps() {
getHeatmapProps(props) {
return {
minOpacity: this.getMinOpacity(this.props),
maxZoom: this.getMaxZoom(this.props),
radius: this.getRadius(this.props),
blur: this.getBlur(this.props),
max: this.getMax(this.props),
gradient: this.props.gradient
minOpacity: this.getMinOpacity(props),
maxZoom: this.getMaxZoom(props),
radius: this.getRadius(props),
blur: this.getBlur(props),
max: this.getMax(props),
gradient: props.gradient
};

@@ -135,0 +135,0 @@ }