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.
Hello Nick,
Hello everybody. I am trying to do the same dynamically in Argis Online.(my point geometry change, my m value change in the map context windows)
I want to use the cut function to get the left length of an intersecting (or nearest) line with M value in a field.
I will write more after testing all that.
i have got to 90° rotate the result of a clip between the buffer of my point and the line.
not easy...
it quite works...
/*
récupérer le cumul par intersection du point avec l'arc.
*/
var CurDep = $feature.ROUTE
var CurBuffGeom =Extent(Buffer($feature, 2, 'meters'))
var CurArcGeom = Back(Filter(FeatureSetById($map, /* tests_arcade - Test li */ "17f27378b8d-layer-3"),'route=@CurDep'))
var CUTTER = rotate(Clip(CurArcGeom,CurBuffGeom),90)
return LengthGeodetic(first(Cut(CurArcGeom, CUTTER)))
note : replaced first with back (when i flip the cutter, 90° the left part is the end part of the line.)
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