Hello all,
I have encountered an error while using Arcade custom pop-ups in Field Maps. It works perfectly if I test it using Classic Map Viewer or downloaded offline maps from Field Maps, but it does not work while I am using Field Maps in online environment.
An Arcade expression was applied to road structure line features, and it returns ‘yes’ if the selected feature is near critical routes (within 500m).
var bufferDist = 500;
var nearCR = Intersects(FeatureSetByName($map,"Critical Routes"), Buffer($feature, bufferDist, "meters"));
var cnt = Count(nearCR)
if (cnt>0){ return "yes"}
else {return "no"}
The same expression was used for the point layer and it works well as expected in both Map and Field Maps (online/ offline). It looks like the expression is correct so I am not sure where to look into to solve this problem. Any tips?
Thanks.
K