title: Leaflet MovingMarker problem when passing array of points
body: <p>I am using Leaflet and the MovingMarker plugin. When I pass an array of hard-coded points, it works normally and the marker moves and loops. But when I pass the variable with an array it is not working. It cannot loop after moving the marker.</p>
  <pre><code>var array=[]
  for (var i = 0; i &lt; 3; i++) {
      array.push([49.8567 + i, 5.3508+i]);
  }
  var marker1 = L.Marker.movingMarker(array, [10000], { autostart: true, loop: true } ).addTo(map);
  </code></pre>