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
2
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
1.0.0
to
1.0.1
+3
-0
CHANGELOG.md

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

# 1.0.1 Release
- Fix bug in componentWillUnmount->safeRemoveLayer where getPanes doesn't return anything so .contains is called on undefined.
# 1.0.0 Release

@@ -2,0 +5,0 @@ - Leaflet 1.0.0 support

+1
-1

@@ -71,3 +71,3 @@ 'use strict';

if (overlayPane.contains(el)) {
if (overlayPane && overlayPane.contains(el)) {
overlayPane.removeChild(el);

@@ -74,0 +74,0 @@ }

{
"name": "react-leaflet-heatmap-layer",
"version": "1.0.0",
"version": "1.0.1",
"description": "A custom layer for heatmaps in react-leaflet",

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

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

const { overlayPane } = leafletMap.getPanes();
if (overlayPane.contains(el)) {
if (overlayPane && overlayPane.contains(el)) {
overlayPane.removeChild(el);

@@ -70,0 +70,0 @@ }