Skip to content

Commit

Permalink
Merge pull request Leaflet#20 from meceo/gh-pages
Browse files Browse the repository at this point in the history
fix point intensity
  • Loading branch information
mourner committed Nov 25, 2014
2 parents ef0a785 + 997ee85 commit 7f79ffe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/HeatLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ L.HeatLayer = (L.Layer ? L.Layer : L.Class).extend({
x = Math.floor((p.x - offsetX) / cellSize) + 2;
y = Math.floor((p.y - offsetY) / cellSize) + 2;

k = (this._latlngs[i].alt || 1) * v;
var alt = isNaN(this._latlngs[i].alt) ? (isNaN(this._latlngs[i][2]) ? 1 : this._latlngs[i][2]) : this._latlngs[i].alt
k = alt * v;

grid[y] = grid[y] || [];
cell = grid[y][x];
Expand Down

0 comments on commit 7f79ffe

Please sign in to comment.