I used the hitTest on pointer-move to query a map layer using a mouse over event, with the output being in an info div on the MapView. As the user moves the cursor around, the attributes are displayed in the info div.
However our users want the old hover tool tip functionality like this version 3 sample
https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=fl_hover
Is there a way to do this in version 4 where the Tooltip Dialog follows the cursor around?
Or is there a reason not to use a Tooltip?
Is a Tooltip Dialog not accessible, or as usable, or compatible on different devices?
Fiona,
The ToolTip dialog is a dojo dijit and is not something that is API version specific so you can use the same code in 4.x will just a little modification.
Thanks. You're right I can call dojo, but am wondering why ESRI has moved away from calling this?
I am really wondering if ESRI is no longer using Tooltips as they are not accessible?
https://dojotoolkit.org/reference-guide/1.10/dijit/Tooltip.html#examples
Tooltips are displayed when the associated item receives focus or a mouseover event. Be careful when assigning tooltips to arbitrary elements such as spans of text which may not receive keyboard focus because users of assistive technology or keyboard only users will not benefit from the tooltip
I used the hitTest similar to this sample.
Access features with pointer events | ArcGIS API for JavaScript 4.13