ArcGIS API 3.X can use mouse-move events get the coordinates, how does API 4.X get the coordinates?
// API 3.X map.on('mouse-move', (evt) => { let evtMapPoint = evt.mapPoint; let lastPosition.X = evt.pageX; let lastPosition.Y = evt.pageY; }
Thank you so much!
This is how in 4.x
view.on('pointer-move', (event)=>{ let point = view.toMap({x: event.x, y: event.y}); }
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.