안녕하세요...
위의 부분을 참조 해서 구현해보려고 합니다..
한번에 많은 데이터를 뿌려주다보니 느린감이 없지않네요..
혹시 보여주는 화면에서만 위치값을 뿌려준다고 해야할 경우..
위의 스크립트를 어떻게 수정해야 할까요? 조언 부탁드립니다.
var markerList = $.parseJSON(json); var listLen = markerList.length; for(var i=0; i<listLen; i++){ var marker = new google.maps.Marker({ position: new google.maps.LatLng(markerList[i].lat,markerList[i].lng), map: map, draggable: false, icon: markerList[i].icon, animation: google.maps.Animation.DROP, html: markerList[i].cont }); markers.push(marker);
var infowindow = new google.maps.InfoWindow()
google.maps.event.addListener(marker, "click", function () { infowindow.setContent(this.html); infowindow.open(map, this); }); }
어떻게 이벤트 처리를 해야 하는지....감이 안오네요..
새 창으로
선택한 기호
안녕하세요...
위의 부분을 참조 해서 구현해보려고 합니다..
한번에 많은 데이터를 뿌려주다보니 느린감이 없지않네요..
혹시 보여주는 화면에서만 위치값을 뿌려준다고 해야할 경우..
위의 스크립트를 어떻게 수정해야 할까요? 조언 부탁드립니다.
var markerList = $.parseJSON(json);
var listLen = markerList.length;
for(var i=0; i<listLen; i++){
var marker = new google.maps.Marker({
position: new google.maps.LatLng(markerList[i].lat,markerList[i].lng),
map: map,
draggable: false,
icon: markerList[i].icon,
animation: google.maps.Animation.DROP,
html: markerList[i].cont
});
markers.push(marker);
var infowindow = new google.maps.InfoWindow()
google.maps.event.addListener(marker, "click", function () {
infowindow.setContent(this.html);
infowindow.open(map, this);
});
}
어떻게 이벤트 처리를 해야 하는지....감이 안오네요..