Code Snippet: ESRI JS API 4.11 get Latittude Longitude on mouse hover
ESRI JS API 4.11 get Latittude Longitude on mouse hover //print point on mouse hover on map mapView . on ( "pointer-move" , function ( event ){ let mapPoint = mapView . toMap ({ x: event . x , y: event . y }); console . log ( mapPoint ); }); //print point on mouse click on map mapView . on ( "click" , function ( event ){ let mapPoint = event . mapPoint ; console . log ( mapPoint ) }); Both console statement will return the identical object as below which has latitude and longitude { __accessor__ : b } cache : (...) extent : (...) hasM : (...) hasZ : (...) latitude : (...) longitude : (...) m : (...) spatialReference : (...) type : (...) x : (...) y : (...) z : (...) constructed : (...) destroyed : (...) initialized : (...) __accessor__ : b { host : {…} , _origin : 6 , cursors : {…} ,...