I am currently experimenting with integrating a select interaction feature into my maps to highlight any features when hovered over.
import Select from 'ol/interaction/select';
import pointerMove from 'ol/events/condition.js'
this.selectPointerMove = new Select({
condition: pointerMove
});
this.coreMapComponent.map.addInteraction(this.selectPointerMove);
An issue arises with the condition field, displaying the following error -
Type 'typeof events' is not assignable to type 'EventsConditionType'.
Type 'typeof events' provides no match for the signature '(event: MapBrowserEvent): boolean'.
Interestingly, the functionality works flawlessly without a condition specified on mouse click.
It's worth noting that this project is built using Angular 6 and relies on "@types/ol": "^4.6.2".