Skip to content

Commit

Permalink
Merge pull request #5236 from trevan/heatmap-intensity
Browse files Browse the repository at this point in the history
Leaflet.heat intensity is between 0.0 and 1.0
  • Loading branch information
w33ble committed Mar 1, 2016
2 parents 0f07dac + 8d120c8 commit 92ef948
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ describe('Marker Tests', function () {
var arr = markerLayer._dataToHeatArray(max);
var index = _.random(mapData.features.length - 1);
var feature = mapData.features[index];
var featureValue = parseInt(feature.properties.value / max * 100);
var featureValue = feature.properties.value / max;
var featureArr = feature.geometry.coordinates.slice(0).concat(featureValue);
expect(arr[index]).to.eql(featureArr);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export default function HeatmapMarkerFactory(Private) {
heatIntensity = feature.properties.value;
} else {
// show bucket value normalized to max value
heatIntensity = parseInt(feature.properties.value / max * 100);
heatIntensity = feature.properties.value / max;
}

return [lat, lng, heatIntensity];
Expand Down

0 comments on commit 92ef948

Please sign in to comment.