Hi, so I'm working on creating a custom widget that will export the data of a layer into a CSV file. But I'm stuck on the part where I have to retrieve the layer ID of the layer I want to export. This is how I'm trying to do it.
const featureLayer = jimuMapView.view.map.findLayerById('layerid') as esri.FeatureLayer;
layerid is where the retrieved ID would go. Thx in advance.