react-leaflet-heatmap-layer
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -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 @@ |
@@ -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( |
428307