0
내 마커에 바운스 애니메이션을 구현하려고 시도한 결과, 내 설명서의 마킹 애니메이션에 대해서만 설명했습니다. 내 마커의 위치를 이벤트 리스너에 전화를 걸려고했지만 작동하지 않는 것처럼 보입니다. 어떤 제안?Google지도 튀는 마커 애니메이션하기
for(var i = 0; i < locationArray().length; i++){
var locations = locationArray()[i].location;
var title = locationArray()[i].title;
var marker = new google.maps.Marker({
position: locations,
map: map,
title: title,
icon: defaultMarker,
animation: google.maps.Animation.DROP
});
google.maps.event.addListener(marker,'click', function(){
if (marker.getAnimation() !== null) {
marker.setAnimation(null);
} else {
marker.setAnimation(google.maps.Animation.BOUNCE);
}
console.log(marker);
});