Fernando Azarías
Fernando Azarías

Reputation: 23

react-simple-maps shos small and not centered map

I'm using react-simple-maps to show a SVG map of Argentina, but the issue is that react-simple-maps shows with a small size the map and is not centered. I tried some things to fix it but I don't understand how to fix it.

It's the codesandbox where there's my code:- https://codesandbox.io/s/basic-map-forked-9x1bl

Upvotes: 2

Views: 1177

Answers (1)

Pratik Agrawal
Pratik Agrawal

Reputation: 368

If you are facing issue with the zoom then you can try using the ZoomableGroup at ZoomableGroup

you can use it by importing import { ZoomableGroup } from "react-simple-maps"

Upvotes: 1

Related Questions