1
Google지도 정보 풍선을 사용 중이며 정보 풍선 내부에 마커를 두 번째 클릭 한 후에 만 잘 동작하는 슬라이더를 보여줍니다.이 슬라이더는 domready에서 준 것처럼 작동하지 않습니다.Google Map 정보 거품 안의 슬라이더가 처음으로 작동하지 않습니까?
jQuery(document).ready(function() {
initialize();
google.maps.event.addListener(infoBubble, 'domready', function(){
// initiate slider here
jQuery('.map_slider').each(function(){
var slid_id = (this.id);alert('in'+slid_id);
jQuery("#"+slid_id).easySlider({nextId: ""+slid_id+"next",prevId: ""+slid_id+"prev",prevText:'<img src="images/prev.png" />',nextText:'<img src="images/next.png" />',tempstr:slid_id,continuous: true });
});
});
});
경고는 두 번째 클릭 이후에만 나타납니다. 이 호에서 벗어나도록 도와주세요.
을 스크립트 콘솔을 확인 했습니까? 그것은 무엇을 말하는가? –
@Cthulhu 예. 확인했지만 오류는 표시되지 않습니다. 이벤트가 처음으로 발생하지 않습니다. – jackyesind
jQuery (document) .ready()가 발생하면 infoWindow가 생성되지 않을 수 있습니다. 코드의 전체 섹션이나 라이브 데모 링크를 게시하십시오. – Marcelo