react-map-interaction
react-map-interaction copied to clipboard
Change translation center points
Currently, the translation "roots" are located at the top left corner of the wrapper <div>, and the top left corner of the image.
I have SVG images that can be really long in one direction, so this means that they appear really tiny and take up only the upper portion of space.
It'd be nice if I could change the location of either root to be, i.e. in the center.
Possible duplicate? I gave a workaround here: https://github.com/strateos/react-map-interaction/issues/75