arcgis api4.3的move事件怎么解决?

在arcgis api4.3中缺少好多事件,使用起来变得很不方便,例如:click事件获取要素,可以用hitTest()方法代替,但是move-over、move-out事件能用什么代替呢?我想实现的是鼠标悬在要素上,从而来改变要素的样式,但是没有move-out事件,这就变得很难了,有谁知道怎么解决吗?
 
已邀请:

goldenlimit - Major in MIS and minor in GIS, graduated from University of Alabama. GIS is not a simply tool but a way of exploring the unknow

赞同来自: 西楼月光

你需要在view里面调用pointer-move event:
https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#event:pointer-move
 
详情参考这个小的demo:https://jsfiddle.net/218L7zap/
 
希望对你有所帮助

要回复问题请先登录注册