How to get a specific ol.control or ol.interaction from ol.Map? I have several dynamically added maps on one page, and I want to have access to ol.interaction.Select.
map.getInteractions().forEach(function (interaction) { if(interaction instanceof ol.interaction.Select) { ... } });
The same goes for controls.