So I'm trying to add a select interaction into my maps when I hover over any feature it's clearly highlighted.
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);
The condition field is throwing an error of -
Type 'typeof events' is not assignable to type 'EventsConditionType'.
Type 'typeof events' provides no match for the signature '(event: MapBrowserEvent): boolean'.
Without a condition it works fine on a mouse click.
Should mention this in an Angular 6 project using the "@types/ol": "^4.6.2", if that's of any relevance.
import {pointerMove} from 'ol/events/condition';
– Compurgation.js
aftercondition
=>import pointerMove from 'ol/events/condition'
– Legislate