function toggleBounce(marker) {
  if (marker.getAnimation() !== null) {
    marker.setAnimation(null);
  } else {
    marker.setAnimation(google.maps.Animation.BOUNCE);
    setTimeout(function() {
        marker.setAnimation(null);
    }, 2000);
  }
}
//  Makes the marker bounce for 2 seconds
Makes the marker bounce for 2 seconds
Makes the marker bounce for 2 seconds
function toggleBounce(marker) {
  if (marker.getAnimation() !== null) {
    marker.setAnimation(null);
  } else {
    marker.setAnimation(google.maps.Animation.BOUNCE);
    setTimeout(function() {
        marker.setAnimation(null);
    }, 2000);
  }
}
function toggleBounce ( marker ) { if ( marker . getAnimation ( ) !== null ) { marker . setAnimation ( null ) ; } else { marker . setAnimation ( google . maps . Animation . BOUNCE ) ; setTimeout ( function ( ) { marker . setAnimation ( null ) ; } , 2000 ) ; } }
Makes the marker bounce for 2 seconds
Makes the marker bounce for 2 seconds