In Arcgis Javascript api 4.2 ,I want to attach "mouse-over" event to graphiclayer, but it not work
layer.on("mouse-move", function(){ });
Solved! Go to Solution.
Weiwei,
The Layers and Graphics currently do not have mouse events so you have to use the views mouse events and a hitTest to see if you are dealing with any graphics.
FAQs | ArcGIS API for JavaScript 4.2
Access features with click events | ArcGIS API for JavaScript 4.2
Weiwei,
The Layers and Graphics currently do not have mouse events so you have to use the views mouse events and a hitTest to see if you are dealing with any graphics.
FAQs | ArcGIS API for JavaScript 4.2
Access features with click events | ArcGIS API for JavaScript 4.2
i get it ,thank you!