Skip to content

Commit

Permalink
Remove data when cleared
Browse files Browse the repository at this point in the history
this.heatmap.clear() just clears the visual data; this.data = [] will reset the data to await new data.
  • Loading branch information
bozdoz committed Mar 5, 2013
1 parent c85d1fc commit 943d266
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions heatcanvas-leaflet.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ L.TileLayer.HeatCanvas = L.Class.extend({

clear: function(){
this.heatmap.clear();
this.data = [];
},

redraw: function(){
Expand Down

0 comments on commit 943d266

Please sign in to comment.