for(i=0; i < rdnb.length ; i++)
{
geocoder.addressSearch(rdnb[i], function(result, status) {
if (status === daum.maps.services.Status.OK) {
var coords = new daum.maps.LatLng(result[0].y, result[0].x);
var markers = [];
var marker = new daum.maps.Marker({
map: map,
position: coords,
image: markerImage
});
var infowindow = new daum.maps.InfoWindow({
content: '<div style="width:150px;text-align:center;padding:6px 0;"></div>'
});
daum.maps.event.addListener(marker, 'click', function() {
clickOffice();
infowindow.open(map, marker);
});
infowindow.open(map, marker);
map.setCenter(coords);
points[i]=new daum.maps.LatLng(result[0].y, result[0].x);;
}
});
}
rdnb는 주소를쓴 배열입니다! points는 위도경도를 담으려구 만든 배열이구요… 근데 points[i]=new daum.maps.LatLng(result[0].y, result[0].x);;이런게 넣으니까 points 에 값이 안들어오네요…ㅜㅜ 어떻게할까용