googlemaps / js-markerclusterer

Create and manage clusters for large amounts of markers
https://googlemaps.github.io/js-markerclusterer/
Apache License 2.0
225 stars 84 forks source link

Mousemove rerenders not working #545

Open NikitaKolpinskiy opened 1 year ago

NikitaKolpinskiy commented 1 year ago

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

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);

} }

wangela commented 1 year ago

@NikitaKolpinskiy Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.

vicb commented 1 year ago

@NikitaKolpinskiy would you be able to add a repro?