doc: add setMapCenter and setMapZoom
This commit is contained in:
1 parent
2388422057
commit
8e01b373b7
1 file changed
+2
@@ -62,6 +62,8 @@ function App() {
|
||||
.then((data) => {
|
||||
setCountry(countryCode);
|
||||
setCountryInfo(data);
|
||||
setMapCenter([data.countryInfo.lat, data.countryInfo.long]);
|
||||
setMapZoom(4);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user