Yana94Ko / cuokkaMap

B-side 303TEN프로젝트 "커카맵"
1 stars 2 forks source link

[FE] DB, 필터DB 마커 mouseOver, click 이벤트 추가하기 #75

Closed github-actions[bot] closed 1 year ago

github-actions[bot] commented 1 year ago

https://api.github.com/Yana94Ko/cuokkaMap/blob/1a9eb84af4d23efc2688bcc9ad3bc33453dff09b/src/main/webapp/src/components/home/KakaoMap.tsx#L168


        setMapState(map);

        if (!isOpenedPostCafe) {
            // TODO(FE): DB, 필터DB 마커 mouseOver, click 이벤트 추가하기
            // assignees: hwanyb, SeongSilver

            // 디비에 저장되어있는 마커 띄우기
            for (let i = 0; i < positions.length; i++) {
                var marker = new window.kakao.maps.Marker({
                    map: map,
                    position: new window.kakao.maps.LatLng(positions[i].y, positions[i].x),
                    title: positions[i].place_name,
                    image: filterMarkerImg
                })
            }
        }
    }, [currentFilter, keyword, isOpenedPostCafe, positions.length])

    useEffect(() => {
        if (searchedPlaceInfoInNav.length > 0) {
            console.log(searchedPlaceInfoInNav)
            displayDBPlaces(searchedPlaceInfoInNav);
        }
    }, [searchedPlaceInfoInNav]);

    useEffect(() => {
        if (!isOpenedPostCafe) {
            setClickMarkerCafeInfo({})
        }
    }, [isOpenedPostCafe])
github-actions[bot] commented 1 year ago

Closed in f1aa5a55eaff03f19aa6fc25b1a6870a23077694