You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to render the map of a specific country using the available GeoJSON file and wrapped it within a ZoomableGroup
The zoom and pan works fine, however the panning of the map cannot be restricted beyond a specific boundary. If the user accidentally moves the map outside the view area, then there is no way to restrict it.
I have tried the translateExtent prop and set a boundary but it does not seem to work. It works fine for the entire world map, but not for the country's map that I am trying to render
Is there anyway to calculate the bounds that are specific to a GeoJSON file and use that to set panning constraints ?
The text was updated successfully, but these errors were encountered:
Hey @zimrick I'm a dataviz developer and am interested in contributing to this library. I can try to tackle this issue, if no one else is already working this?
I am trying to render the map of a specific country using the available GeoJSON file and wrapped it within a
ZoomableGroup
The zoom and pan works fine, however the panning of the map cannot be restricted beyond a specific boundary. If the user accidentally moves the map outside the view area, then there is no way to restrict it.
I have tried the
translateExtent
prop and set a boundary but it does not seem to work. It works fine for the entire world map, but not for the country's map that I am trying to renderIs there anyway to calculate the bounds that are specific to a GeoJSON file and use that to set panning constraints ?
The text was updated successfully, but these errors were encountered: