diff --git a/src/App.js b/src/App.js index 89c2fd0..5e29590 100644 --- a/src/App.js +++ b/src/App.js @@ -62,6 +62,8 @@ function App() { .then((data) => { setCountry(countryCode); setCountryInfo(data); + setMapCenter([data.countryInfo.lat, data.countryInfo.long]); + setMapZoom(4); }); };