Skip to content

Commit

Permalink
Merge pull request #91 from sayingpotato/bugfix/CICD-error-catching(#85)
Browse files Browse the repository at this point in the history
feat : update files
  • Loading branch information
JungYeonHwi authored Nov 2, 2023
2 parents 4e40002 + 6a69a99 commit 74adc72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pages/map/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,17 @@ const KaKaoMap = () => {
// 현 위치 (최초 useEffect 함수 또는 새로고침 버튼)
// const [currentCenter, setCurrentCenter] = useState({ lat: 0, lng: 0 })
const [currentCenter, setCurrentCenter] = useState({ lat: 36.62517, lng: 127.455409 })

// 지도의 중심 값 (최초에는 현 위치를 기준 -> 지도를 움직일 때마다 변경 또는 마커를 클릭할 때 변경)
// const [center, setCenter] = useState({ lat: 0, lng: 0 })
const [center, setCenter] = useState({ lat: 36.62517, lng: 127.455409 })
// 라우터 중심값
const [routerCenter, setRouterCenter] = useState({ lat: goBackrouterValue[0], lng: goBackrouterValue[1] })

console.log("현 위치 (최초 useEffect 함수 또는 새로고침 버튼)", currentCenter.lat, currentCenter.lng);
console.log("지도의 중심 값 (최초에는 현 위치를 기준 -> 지도를 움직일 때마다 변경 또는 마커를 클릭할 때 변경)", center.lat, center.lng);
console.log("라우터 중심값", routerCenter.lat, routerCenter.lng);

const [markerInfo, setMarkerInfo] = useState({
id : '',
name: '',
Expand Down
1 change: 1 addition & 0 deletions pages/storelist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const StoreList = () => {
const router = useRouter();
const [latitude, longtitude] = [router['query']['lat'], router['query']['lng']];
const getMapStoreList = useGetSurroundStoreList(latitude, longtitude);
console.log("내 주변 가게 중심 값", latitude, longtitude)

useEffect(() => {
if (latitude !== undefined && longtitude !== undefined) {
Expand Down

0 comments on commit 74adc72

Please sign in to comment.