Hi All - I see that it is possible to access x,y,z, & m values for a custom pop-up using Arcade. The code below appears to be working in ArcGIS Pro 2.5.0 per my route layer:
var line = Geometry($feature)
var paths = line.paths;
var startingpoint = paths[0][0];
return text(startingpoint)
However, I'm not yet understanding how to return the m-value for any point along the route that was clicked, rather than the centroid or endpoints. The m-value I'm looking for appears in the pop-up panel at lower right in ArcGIS Pro 2.5.0 (see pic below).
Any assistance appreciated!
Solved! Go to Solution.
Hi All,
Working on the same sort of workflow. I guess what would be handy is a "$clickedlocation" profile variabele. We could create the geometry object for that location and hopefully extract M and Z-values from "$feature"..
I try to create a popup for route segments exposing some route statistics. Id also would like to show the progress (M) and elevation (Z) of the clicked location. Only way I can think of to achieve this, is to convert vertices to points and do the popup on that layer.
this final code work fine for me.
i pre calculate the "M" value.
Now that the m value is exposed in arcade the code is a bit more easy 🙂
the video show how to dynamically get a distance relative to a landmark.
Updating this old thread for tracking and community documentation. Get route m-value at point-clicked is out of the box Pro function and doesn't require any custom code.
At ArcGIS Pro 2.4, the Navigation > Explore tool included this enhancement. You can view m-values in a pop-up for a feature that contains measured values (m-values) in their geometries. The coordinate display at the bottom of the pop-up includes the m-value closest to the clicked location in the map or scene. For linear geometries, the value is calculated by interpolating between the nearest vertices.
Related thread Link with Screenshots.
There is also LRS Identify widget in Experience Builder for web apps.
FYI @KatyLewis