react-simple-maps
react-simple-maps copied to clipboard
Constraint pan to container
- 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 ?
Tried using disableZooming and disablePanning and neither of those seems to do anything on ZoomableGroup