지도 API 503 Service Unavailable 오류 발생
[현재상태]
* https://dapi.kakao.com/v2/local/search/address.json?query= API 503 오류로 인한 지도에 마커 표시 되지
않는 현상.
* chrome(131.0.6778.205), whale(4.29.282.14), firefox(133.0.3) 같은 현상 발생 (시크릿 모드 동일)
[조치상황]
- 플랫폼 URL 등록여부 확인
- Clear browser cache 진행
카카오 지도 API 질문드립니다 - dan.jwp 님의 게시물 #22 참조
[소스코드]
const geocoder = new kakao.maps.services.Geocoder();
let marker = [x];
for(let index = 0; index < address.length - 1; index++) {
geocoder.addressSearch(addresss[index], function(result, status) {
locations = new kakao.maps.LatLng(result[0].y, result[0].x);
});
marker[index] = new kakao.maps.Marker({
map: map,
position: locations,
clickable: true
});
infowindow[index] = new kakao.maps.CustomOverlay({
content: content,
map: map,
xAnchor: 0.5,
yAnchor: 1,
zIndex: 3,
position: marker[index].getPosition()
});
content.addEventListener('click', function (s) {
const name = this.innerText.split(' ').slice(1).join('');
infowindow[index].setMap(null);
marker[index].setMap(null);
[...document.getElementsByTagName('tr')].forEach((x) => {
if (x.childNodes[15].innerText.replaceAll(' ', '') === name) {
isChk = false;
eval(x.getAttribute('onclick'));
}
});
});
marker[index].setMap(map);
}