plouc / nivo

nivo provides a rich set of dataviz components, built on top of the awesome d3 and React libraries
https://nivo.rocks
MIT License
13.2k stars 1.03k forks source link

Expose fitExtent methods from projections on geo maps #927

Closed frontendwizard closed 4 years ago

frontendwizard commented 4 years ago

Is your feature request related to a problem? Please describe. One feature I constantly use when building geo maps with d3 is fitExtent to have the map focused on the content. That's not possible with the current version of @nivo/geo because it haven't been exposed.

Describe the solution you'd like I'd like to see a prop on the GeoMap that enable the usage of fitExtent.

Additional context I'll experiment on this and open a PR if y'all find it useful.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

stale[bot] commented 4 years ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!