Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhenn committed Jul 19, 2022
1 parent 801c37c commit b0177d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ ClusterLayer.registerRenderer('canvas', class extends maptalks.renderer.VectorLa
const pgx = Math.floor((center.x - min.x) / r),
pgy = Math.floor((center.y - min.y) / r);
const pkey = pgx + '_' + pgy;
const parent = this._clusterCache[z] ? this._clusterCache[z]['clusterMap'][pkey]: null;
const parent = this._clusterCache[z] ? this._clusterCache[z]['clusterMap'][pkey] : null;
if (parent) {
const pp = map._prjToContainerPoint(parent['center']);
pt = pp.add(pt.sub(pp)._multi(ratio));
Expand Down

0 comments on commit b0177d9

Please sign in to comment.