Skip to content

Commit

Permalink
Removed unnecessary code and updated example
Browse files Browse the repository at this point in the history
  • Loading branch information
aashish24 committed Apr 14, 2016
1 parent 678ff11 commit 5520e56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
4 changes: 2 additions & 2 deletions examples/heatmap/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ $(function () {
};
})
.maxIntensity(20)
.style('radius', 5)
.style('blurRadius', 15)
.style('radius', 15)
.style('blurRadius', 30)
.style('opacity', 1.0);
map.draw();
}
Expand Down
15 changes: 0 additions & 15 deletions src/canvas/heatmapFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,6 @@ var canvas_heatmapFeature = function (arg) {
s_init = this._init,
s_update = this._update;

////////////////////////////////////////////////////////////////////////////
/**
* Build
* @override
*/
////////////////////////////////////////////////////////////////////////////
this._build = function () {
s_update.call(m_this);
return m_this;
};

////////////////////////////////////////////////////////////////////////////
/**
* Meta functions for converting from geojs styles to canvas.
Expand Down Expand Up @@ -189,10 +178,6 @@ var canvas_heatmapFeature = function (arg) {
////////////////////////////////////////////////////////////////////////////
this._update = function () {
s_update.call(m_this);
if (m_this.buildTime().getMTime() <= m_this.dataTime().getMTime() ||
m_this.updateTime().getMTime() < m_this.getMTime()) {
m_this._build();
}
m_this.updateTime().modified();
return m_this;
};
Expand Down

0 comments on commit 5520e56

Please sign in to comment.