Closed kopach closed 3 years ago
Hi there. Is there any way I could restrict movement of the map? See example below. I could move the map out of visible range, and it's hard to get it back to the view.
Here is an example of how HighCharts map does this.
Any chance to have something similar with react-simple-maps?
react-simple-maps
Hi, have you tried passing translateExtent prop to the ZoomableGroup? Here is the example
translateExtent
ZoomableGroup
Thanks, that solves the issue. Wasn't aware of this property, sorry about that.
Hi there. Is there any way I could restrict movement of the map? See example below. I could move the map out of visible range, and it's hard to get it back to the view.
Here is an example of how HighCharts map does this.
Any chance to have something similar with
react-simple-maps
?