How to display the tooltip when the mouse is over the object

871
1
06-13-2017 06:14 PM
YuriGvozdev
New Contributor II
When the mouse pointer over the object of the graveyard is displayed, it is necessary to display a pop-up window with information on a specific object. How to do it? What event is triggered when the mouse is over the object, and how to handle it?
0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor

There are no event like this. You could use mouse-move events to detect movement, and once the movement stops for a certain amount of time, use the MapView.IdentifyLayersAsync method to perform an identify on the layer(s) you're interested in. If you hit something, then display a popup for the top-most feature returned.

Note: Don't do this on each mouse-move, since this is an expensive operation, so make sure you wait till the mouse has stopped moving (500-1000ms is probably a good number).