doc: add setMapCenter and setMapZoom

This commit is contained in:
Leon Xu committed 2022-05-03 15:21:45 -07:00
1 parent 2388422057
commit 8e01b373b7
1 file changed
+2
+2
View File
@@ -62,6 +62,8 @@ function App() {
.then((data) => {
setCountry(countryCode);
setCountryInfo(data);
setMapCenter([data.countryInfo.lat, data.countryInfo.long]);
setMapZoom(4);
});
};