프로그램 사용/네이버 맵 API
네이버 지도 API 마커 애니메이션
구차니
2018. 12. 27. 14:56
setAnimation에 인자를 주지 않으면 애니메이션이 사라진다.
DROP은 1회에 한해서 한번 뚕~ 하고 끝
BOUNCE는 계속 뛰고 있으니 얘가 무난할 듯?
naver.maps.Event.addListener(urlMarker, 'click', function() { if (urlMarker.getAnimation() !== null) { urlMarker.setAnimation(null); } else { urlMarker.setAnimation(naver.maps.Animation.BOUNCE); } }); |
[링크 : https://navermaps.github.io/maps.js/docs/tutorial-marker-animation.example.html]