AnsweredAssumed Answered

Display Popup Coordinates

Question asked by DOS_GIS on Nov 28, 2017

Can I use a custom Attribute Expression to display the map coordinates of a popup?

 

function myClickHandler(event) {
  alert
("User clicked at " +
   
event.screenPoint.x + ", " + event.screenPoint.y +
   
" on the screen. The map coordinate at this point is " +
   
event.mapPoint.x + ", " + event.mapPoint.y
 
);
}

Outcomes