Select to view content in your preferred language

Coordinate notation in layer popup (default to MGRS)

332
1
04-24-2023 09:41 AM
Labels (1)
CarterKelly
New Contributor

I am building popup messages for the Last Known Locations point feature class generated from Track Viewer layer, and am having trouble adjusting the coordinate notation for the point's location. 

 

As it stands, I can get the coordinates in the default coordinate notation (basemap, 102100) through the following arcade code:

var xCoordiante = Text(Round(Geometry($feature).X, 4))
var yCoordiante = Text(Round(Geometry($feature).Y, 4))

return {
  //text : 'Easting, Northing',
  xCoordiante,
  //text : 'Northing:',
  yCoordiante
}
 
and I can get cursor coordinates in MGRS through Map tools - Location - MGRS notation, but I cannot figure out the code to get the MGRS coordinates to display in the popup. 
 
Has anyone run through a similar workflow and is able to lend a hand?
1 Reply
JeffTimm
Occasional Contributor

Did you ever find a solution?

0 Kudos