In Arcgis Javascript api 4.2 ,I want to attach "mouse-over" event to graphiclayer, but it not work
layer.on("mouse-move", function(){ });
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
https://community.esri.com/thread/177327
i get it ,thank you!
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.