How can I select multiple markers with the on_click event?

How can I select multiple markers via on_click like done in the click-events example? I’ve always just a single point in the point_inds list.