This commit is contained in:
Alireza Adli 2023-11-16 13:41:32 -05:00
parent ea1e8a520d
commit e34ba23f18

View File

@ -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;
} }