title: How to limit the number of times a google maps marker bounces?
body: <p>I'm using animation in google maps to cause a marker to bounce.  </p>
  
  <p>How can I change the following code to make it bounce only twice?  </p>
  
  <pre><code>markersArray[i].setAnimation(google.maps.Animation.BOUNCE);
  </code></pre>
  
  <p>EDIT:<br>
  Here's how I did it but as Michal said - it's a crude solution:  </p>
  
  <pre><code>marker.setAnimation(google.maps.Animation.BOUNCE);
  setTimeout("marker.setAnimation(null)", 1520);
  </code></pre>