We are working on an experience builder solution with custom widgets.
We have some route layers generated from a custom algotrithm and shared via Portal as Route Layer items.
We are not able to add this layer to an existing webmap widget, if I use the following code
guidItem ="GUID_OF_ROUTE_ITEM on arcgis portal"
const featureLayer = new FeatureLayer({
portalItem:{
id : guidItem
}
})
//this.state.jimuMapView.view.map.add(featureLayer)
I can only see the first layer of the route feature collection added to the map.
We would like to do quite the same action available in arcgis Portal when you can add a route layer to an existing webmap.
How can this could be done in experience builder ?