Skip to content

Commit

Permalink
Merge pull request apache#13901 from apache/fix/heatmap
Browse files Browse the repository at this point in the history
fix(heatmap): heatmap cannot be rendered in geo coordinate system with a large data.
  • Loading branch information
pissang authored Jan 4, 2021
2 parents 0fc80c7 + b4121f9 commit ba71158
Show file tree
Hide file tree
Showing 2 changed files with 121 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/chart/heatmap/HeatmapView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,13 @@ class HeatmapView extends ChartView {
) {
const coordSys = seriesModel.coordinateSystem;
if (coordSys) {
this._renderOnCartesianAndCalendar(seriesModel, api, params.start, params.end, true);
// geo does not support incremental rendering?
if (isGeoCoordSys(coordSys)) {
this.render(seriesModel, ecModel, api);
}
else {
this._renderOnCartesianAndCalendar(seriesModel, api, params.start, params.end, true);
}
}
}

Expand Down Expand Up @@ -379,4 +385,4 @@ class HeatmapView extends ChartView {
}
}

export default HeatmapView;
export default HeatmapView;
113 changes: 113 additions & 0 deletions test/heatmap-geo.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ba71158

Please sign in to comment.