You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like react-google-maps markerclusterer rerenders with every map event (pan, zoom, opening and close info windows). This doesn't seem like it matches the behavior of the normal markerclusterer library. Some possible ideas for fixes
Debug react-google-map's markerclusterer and figure out why it keeps rerendering after a map event. It really should only rerender if something has changed.
Use the normal markerclusterer library. This might work...but it means we're mixing React and non-react libraries.
Limit the amount of map events. Maybe set a timeout to the marker mouseovers...?
Not sure how to fix this. Maybe use shouldComponentUpdate and tell react not to update icon if the cluster is the same?
The text was updated successfully, but these errors were encountered: