codestates / codestates/aneun-dongne

[ Error handling ] 류준열 / 무작위적으로 카카오맵에 하얀지도가 뜨는현상

Open
#171 0 comments 0 reactions 0 assignees View on GitHub
Error Handling Log
Dominant language
JavaScript
Stars
6
Forks
7
PR merge metrics
No merged PRs in 30d

Description

> ### 어떤 에러인가요?
> 에러는 아니고 버그인데, 카카오맵이 '충북 제천, 대구 북구, 충북 청원'을 선택했을때 하얀지도가 뜸.
> 이유 : 항목에 좌표가 0,0인게 섞여있었다
스크린샷 2021-12-19 오전 2 08 30

> ### 에러 핸들링 방법
첨엔 아래와 같이 클라이언트에서 필터링했다.
후에 승이님이 DB에서 좌표 0인값을 다 지워주셨다. 어차피 좌표가 0이면 쓰지못할항목이기에
>
> ```js
> if (res.data.data.length === 0) return;
console.log(res.data.data);
const list = res.data.data
.filter((el) => el.post_mapy !== "0.00000000000000000000" && el.post_mapx !== "0.00000000000000000000")
.map((el) => {
> ```
>

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the client-side data handling shown in the issue, especially the response filtering before the map list is built. Reproduce the three reported selections and verify that entries with 0,0 coordinates cannot produce a white KakaoMap; done means the affected selections render normally without unusable coordinates.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.