Replace layers option from ol.interaction.SelectOptions

Replace the 'layers' function with a 'filter' function to be able
to filter the features that will be added to the selection.

work in progress