react-mapbox-gl icon indicating copy to clipboard operation
react-mapbox-gl copied to clipboard

No way of controlling cluster click animation

Open JClackett opened this issue 4 years ago • 0 comments

There doesn't seem to be a way to control the "click on cluster" animation, its always animating into the cluster and its not respecting any of the animation options passed into the Map component.

I've tried patching the fitBounds method in the cluster.tsx file and that also doesn't seem to do anything?

I've tried a few combinations of all these props:

  fitBoundsOptions={{ duration: 0, linear: false }}
  movingMethod="flyTo"
  animationOptions={{ duration: 0, animate: false }}
  flyToOptions={{ speed: 0, screenSpeed: 0 }}

It seems these props have no effect on the cluster animation at all, any ideas?

Thanks!

JClackett avatar Jul 16 '21 09:07 JClackett