I added two select interactions(on different layers) to the openlayers instance but only the last one seems to work/trigger.
I got it working by giving the condition "click" to the first one and "singleClick" to the second one. This certainly does only work for two interactions since there are only two interaction-conditions triggered by a simple mouse-click. It seems to me that you cannot have two interactions of the same condition on your map, or am i doing something wrong?
var selectDeployment = new ol.interaction.Select({
layers: [layers["deployments"]]
});
map.addInteraction(selectDeployment);
selectDeployment.on("select", onSelectDeployment);
var selectDevice = new ol.interaction.Select({
layers: Object.keys(layers).filter(k => k.split("_").length > 1).map((k) => layers[k])
});
map.addInteraction(selectDevice);
selectDevice.on("select", onSelectDevice);