Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -65,7 +65,7 @@ function getXY(hospitals, addNum) { | ... | @@ -65,7 +65,7 @@ function getXY(hospitals, addNum) { |
65 | .then(response => response.json()) | 65 | .then(response => response.json()) |
66 | .then(data => { | 66 | .then(data => { |
67 | for (let j = 0; j < data.length; j++) { | 67 | for (let j = 0; j < data.length; j++) { |
68 | - if (data.documents[j].category_name === "의료,건강 > 병원 > 종합병원") or (data.documents[j].category_name === "의료,건강 > 병원 > 대학병원") { | 68 | + if ((data.documents[j].category_name === "의료,건강 > 병원 > 종합병원") || (data.documents[j].category_name === "의료,건강 > 병원 > 대학병원")) { |
69 | hospitals_xy[i].name = data.documents[j].place_name; | 69 | hospitals_xy[i].name = data.documents[j].place_name; |
70 | hospitals_xy[i].x = data.documents[j].x; | 70 | hospitals_xy[i].x = data.documents[j].x; |
71 | hospitals_xy[i].y = data.documents[j].y; | 71 | hospitals_xy[i].y = data.documents[j].y; |
... | @@ -76,6 +76,7 @@ function getXY(hospitals, addNum) { | ... | @@ -76,6 +76,7 @@ function getXY(hospitals, addNum) { |
76 | }) | 76 | }) |
77 | 77 | ||
78 | } | 78 | } |
79 | + AddressList = null; | ||
79 | return hospitals_xy; | 80 | return hospitals_xy; |
80 | /* | 81 | /* |
81 | hospitals_xy: | 82 | hospitals_xy: | ... | ... |
-
Please register or login to post a comment