googlemaps / googlemaps/js-markerclusterer
Mousemove rerenders not working
- Dominant language
- TypeScript
- Stars
- 293
- Forks
- 104
- Avg merge
- 3m
- Merged PRs (30d)
- 18
Description
Environment details
OS type and version: does not matter
Library version: any version including latest 5.1.3
Steps to reproduce
Zoom in to some marker cluster, after it try to drag map, there is no rerender on markercluster.
Please check PR https://github.com/googlemaps/js-markerclusterer/pull/419
there was comment from my side and [davidpadych](https://github.com/davidpadych)
Code example
export default class BoundingSuperClusterAlgorithm extends SuperClusterAlgorithm {
cluster({ map }) {
const bounds: any = map.getBounds().toJSON();
const boundingBox: any = [
bounds.west,
bounds.south,
bounds.east,
bounds.north,
];
const transform = this.transformCluster.bind(this);
return this.superCluster
.getClusters(boundingBox, Math.round(map.getZoom()))
.map(transform);
}
}
Contributor guide
Assessment
This issue has not been assessed yet.