Skip to content

Commit

Permalink
upgrade the ClusterLayer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cavencj authored Aug 5, 2024
1 parent da844a6 commit c583a92
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/layer/type/ClusterLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ class ClusterLayer extends Layer {
this._billboards.removeAll()
this._labels.removeAll()
let rectangle = this._viewer.camera.computeViewRectangle()
if (!rectangle) {
rectangle = this._viewer.viewBounds
}
if (this._allCount) {
let result = this._cluster.getClusters(
[
Expand Down

0 comments on commit c583a92

Please sign in to comment.