code: function moveToMarks() {
      if (marks.length > marksIndex) {
          var m = marks[marksIndex];
          map.setView(m.getLatLng(), map.getZoom());
          m.openPopup();
          marksIndex++;
          setTimeout(moveToMarks, 2500);
      }
  }
docs: Jump to a markers position - centralise it on map