【发布时间】:2015-08-13 14:06:39
【问题描述】:
在ol2中我曾经使用过:
map.on( "mouseover mouseout", function( evt ) {...});
如何在 ol3 中做到这一点?
【问题讨论】:
在ol2中我曾经使用过:
map.on( "mouseover mouseout", function( evt ) {...});
如何在 ol3 中做到这一点?
【问题讨论】:
看看这个plunker,还有很多其他的可能性:
你问的已经完成了:
map.on('pointermove', function(event) {
});
鼠标移出:
map.getViewport().addEventListener('mouseout', function(evt){
console.info('out');
}, false);
【讨论】: