We want to show the popup/tooltip on hover of the marker symbol.
But we are facing challenge on hovering the marker, when we are clicking on marker the popup coming as expected but when hovering popup not displaying.
Below the sample code.
var pointGraphic = new Graphic({
geometry: point,
attributes: lineAtt,
symbol: markerSymbol,
popupTemplate: {
title: "{Name}"
}
});
do we have any method or approach to show the popup on marker symbol when hovering?
Thanks in advance.
You can use the views pointer-move event and the hitTest to open the popup, similar to this sample.
https://developers.arcgis.com/javascript/latest/sample-code/view-hittest/
And you can use the popup open method to open the popup for the result
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#open
https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=popup-docking-position