Hi there,
I'm trying to integrate Flowmap with @deck.gl/google-maps Layer, it works well but with clustering auto the flows "flickers" when we drag the map.
I created a stackblitz to reproduce the issue.
I digged into the code and I found that in FlowmapSelectors._getClusterZoom() in MapLibre the mapZoom is always the same (3, 4, etc) but with Google Maps there is a rounding issue and the value can be 4, 4.000000000000003, 3.999999999999998, etc so the clusterZoom differs which causes this effect.
Rounding mapZoom to 5 decimals fixes this problem but I may not be aware of side effects which is why I don't send a PR, but it shouldn't be much more than this.
You could add this Google Maps feature as an example in your docs.
Hi there,
I'm trying to integrate Flowmap with @deck.gl/google-maps Layer, it works well but with clustering auto the flows "flickers" when we drag the map.
I created a stackblitz to reproduce the issue.
I digged into the code and I found that in FlowmapSelectors._getClusterZoom() in MapLibre the
mapZoomis always the same (3, 4, etc) but with Google Maps there is a rounding issue and the value can be 4, 4.000000000000003, 3.999999999999998, etc so theclusterZoomdiffers which causes this effect.Rounding
mapZoomto 5 decimals fixes this problem but I may not be aware of side effects which is why I don't send a PR, but it shouldn't be much more than this.You could add this Google Maps feature as an example in your docs.