Reputation: 3083
In ol2 I used to use:
map.on( "mouseover mouseout", function( evt ) {...});
How can I do this in ol3?
Upvotes: 4
Views: 2726
Reputation: 14150
Take a look at this plunker, there's a lot of other possibilities:
What you ask is done with:
map.on('pointermove', function(event) {
});
Mouseout:
map.getViewport().addEventListener('mouseout', function(evt){
console.info('out');
}, false);
Upvotes: 10