react-simple-maps icon indicating copy to clipboard operation
react-simple-maps copied to clipboard

Constraint pan to container

Open krumpyzoid opened this issue 8 months ago • 1 comments

  • While using ZoomableGroup, if you zoom in then zoom out, there is a high probability that the graph wont be centered in the container.

Additionally, I would like to limit the panning so that at 0 zoom you cannot pan, and while zoomed in you can pan but not go "outside" and have empty space on the sides.

I haven't found a strategy to implement this, has anyone managed to do so ?

krumpyzoid avatar Mar 13 '25 16:03 krumpyzoid

Tried using disableZooming and disablePanning and neither of those seems to do anything on ZoomableGroup

krumpyzoid avatar Mar 14 '25 08:03 krumpyzoid