Improve
This commit is contained in:
parent
ea1e8a520d
commit
e34ba23f18
@ -15,7 +15,7 @@ import React, {
|
|||||||
useMap,
|
useMap,
|
||||||
} from "react-leaflet";
|
} from "react-leaflet";
|
||||||
|
|
||||||
import 'leaflet/dist/leaflet.css';
|
import "leaflet/dist/leaflet.css";
|
||||||
import "./map.css";
|
import "./map.css";
|
||||||
|
|
||||||
import { apiGet } from "../apiHelpers";
|
import { apiGet } from "../apiHelpers";
|
||||||
@ -128,7 +128,7 @@ import React, {
|
|||||||
setLat(map.current.getCenter().lat.toFixed(4));
|
setLat(map.current.getCenter().lat.toFixed(4));
|
||||||
setZoom(map.current.getZoom().toFixed(2));
|
setZoom(map.current.getZoom().toFixed(2));
|
||||||
});
|
});
|
||||||
});
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
@ -207,4 +207,3 @@ import React, {
|
|||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user