How can I disable map click event? My idea is to disable it when I am positioned with mouse over my popup container. After I move mouse out of it, I want that event to be enabled again. Something like this:
container=document.getElementById('popup')
container.addEventListener('mouseover',function(){
//disable map click event
}
container.addEventListener('mouseout,function(){
//enable it again
}
Is this possible?
getInteractions()
on your map, find out theclick
event and thensetActive(boolean)
that interaction.