ESRI JS API 4.11 get Latittude Longitude on mouse hover
//print point on mouse hover on map
Both console statement will return the identical object as below which has latitude and longitude
//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