Skip to content

Commit

Permalink
Leaflet.heat intensity is between 0.0 and 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevan Richins committed Feb 8, 2016
1 parent c8e38a6 commit 8d120c8
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 8d120c8

Please sign in to comment.