Socket
Socket
Sign inDemoInstall

react-leaflet-heatmap-layer

Package Overview
Dependencies
76
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 0.2.1 Release
- Fix getMaxZoom returning props.radius instead of props.maxZoom, fix misnamed call to getMax instead of getMaxZoom in redraw()
# 0.2.0 Release

@@ -2,0 +6,0 @@

4

lib/HeatmapLayer.js

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

HeatmapLayer.prototype.getMaxZoom = function getMaxZoom(props) {
return props.radius || 18;
return props.maxZoom || 18;
};

@@ -240,3 +240,3 @@

var maxZoom = this.props.maxZoom === undefined ? this.props.map.getMaxZoom() : this.getMax(this.props);
var maxZoom = this.props.maxZoom === undefined ? this.props.map.getMaxZoom() : this.getMaxZoom(this.props);

@@ -243,0 +243,0 @@ var v = 1 / Math.pow(2, Math.max(0, Math.min(maxZoom - this.props.map.getZoom(), 12)));

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

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

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

getMaxZoom(props) {
return props.radius || 18;
return props.maxZoom || 18;
}

@@ -241,3 +241,3 @@

? this.props.map.getMaxZoom()
: this.getMax(this.props);
: this.getMaxZoom(this.props);

@@ -244,0 +244,0 @@ const v = 1 / Math.pow(

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc