Skip to content

Commit

Permalink
fix possible null clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhenn committed Jul 4, 2017
1 parent 28c0bcb commit 1f9ffa3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,9 @@ ClusterLayer.registerRenderer('canvas', class extends maptalks.renderer.VectorLa
}

_drawClusters(clusters, ratio, matrix) {
if (!clusters) {
return;
}
matrix = matrix ? matrix['container'] : null;
this._clusterMaskExtent = this.prepareCanvas();
const map = this.getMap(),
Expand Down

0 comments on commit 1f9ffa3

Please sign in to comment.