Hello,
I need to combine data from two featuresets that are 1) hosted by someone else 2) of different geometries.
They contain project information. Projects in one layer are lines, the other layer is points. Each has an attribute representing total project cost. I can access each featureset, but cannot figure out how to essentially merge together the attribute data for display in say an indicator or some other widget. I do not need the geometry.
I created a data expression as the data source as shown below.
It seems like I could use FeatureSet(defintiion) where the definition is JSON, but I am not finding good examples of the format needed or how to go from one to the other.
Any pointers to documentation, examples or suggestions appreciated.
Thanks
==================
var featureDataPoint = FeatureSetByPortalItem(Portal('https://gccountymi.maps.arcgis.com'), 'd600a66fe6ac48a098cb94a36d97a48b', 3);
var featureDataLine = FeatureSetByPortalItem(Portal('https://gccountymi.maps.arcgis.com'), 'd600a66fe6ac48a098cb94a36d97a48b', 4);
//TOT_PRJ_COST
// need to create a featureSet with TOT_PRJ_COST from two featuresets and put in 'featureData'
return featureData