Permalink
Browse files

Remove data when cleared

this.heatmap.clear() just clears the visual data; this.data = [] will reset the data to await new data.
  • Loading branch information...
1 parent c85d1fc commit 943d266b1b3e86b5f3cc2869f511bc3512c4397a @bozdoz bozdoz committed Mar 5, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 heatcanvas-leaflet.js
View
1 heatcanvas-leaflet.js
@@ -107,6 +107,7 @@ L.TileLayer.HeatCanvas = L.Class.extend({
clear: function(){
this.heatmap.clear();
+ this.data = [];
},
redraw: function(){

0 comments on commit 943d266

Please sign in to comment.