{
//var map = MapView.Active.Map;
//Note: Must be on the QueuedTask.Run()
//Get the current location unit
var loc_unit = map.GetLocationUnitFormat();
var line = $"{loc_unit.DisplayName}, {loc_unit.UnitCode}";
System.Diagnostics.Debug.WriteLine(line);
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)