|
@@ -1,7 +1,7 @@
|
|
|
import React, { useRef } from "react";
|
|
|
import styled from "styled-components";
|
|
|
import { useLastRound } from "../../../domain/gameStore";
|
|
|
-import useMapWithMarkers from "./useMapWithMarkers";
|
|
|
+import useMarkersFromGuesses from "./useMarkersFromGuesses";
|
|
|
import useMap from "../../../hooks/useMap";
|
|
|
import useClickMarker from "../../../hooks/useClickMarker";
|
|
|
import NextRoundButton from "./NextRoundButton";
|
|
@@ -36,7 +36,7 @@ export default () => {
|
|
|
const mapRef = useMap(mapDivRef, targetPoint.lat, targetPoint.lng, 4);
|
|
|
|
|
|
// add the player guess markers
|
|
|
- useMapWithMarkers(mapRef, roundNum, targetPoint);
|
|
|
+ useMarkersFromGuesses(mapRef, roundNum, targetPoint);
|
|
|
|
|
|
// let the current player click the map to add a new marker
|
|
|
useClickMarker(mapRef, ({ lat, lng }) => {
|