In ol2 I used to use:
map.on( "mouseover mouseout", function( evt ) {...});
How can I do this in ol3?
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);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With