AnsweredAssumed Answered

View pointer-move event has no mapPoint property for getting X,Y coordinates

Question asked by tubakumbara on Mar 27, 2018
Latest reply on Mar 27, 2018 by tubakumbara

Hello. I'm using JS 4.6.

I'm able to get x,y coordinates with view's click event. But i want to get xy coordinates with mouse move. For this i tried to get x,y below code. But i'm seeiny mouse X and Mouse Y, Not mappointX and Mappoint.Y

 

Below code has no problem (click event).

 

appConfig.activeView.on("click", function(evt){

     alert(evt.mapPoint.x);

     alert(evt.mapPoint.Y);

})

 

 

below code has problem (no mappoint property for evt)

appConfig.activeView.on("pointer-move", function(evt){

     alert(evt.mapPoint.x);

     alert(evt.mapPoint.Y);

})

 

Thanks inadvance

Outcomes