|
|
@ -77,9 +77,10 @@ export default function OpenStreetMap({ |
|
|
|
// });
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
if (markersList && mapRef && notEmpy(markersList)) { |
|
|
|
if (markersList && mapRef) { |
|
|
|
deleteAllMarkers(mapRef); |
|
|
|
|
|
|
|
notEmpy(markersList) && |
|
|
|
markersList.forEach((val, k) => { |
|
|
|
insertMarker(mapRef, val[1].ID, val[1].coordinate, val[1].image); |
|
|
|
}); |
|
|
@ -111,7 +112,7 @@ export default function OpenStreetMap({ |
|
|
|
<MapModal |
|
|
|
showModal={markerListener} |
|
|
|
setShowModal={setMarkerListener} |
|
|
|
markers={markers.markers} |
|
|
|
markers={markersList} |
|
|
|
/> |
|
|
|
|
|
|
|
<MapDataMenu |
|
|
|