Is there an event that fires when a FeatureLayer is completely drawn and visible on the map?
Through my documentation search, I have not found one, but I imagine this is a pretty basic functionality that would exist.
let layer = new FeatureLayer({...})
dsManager.current.createDataSource(dataSourceOptions).then((source) => {
map.current.view.map.add(layer)
map.current.createJimuLayerView(layer, map.current.id, layer.id, source, true)
})
layer.on('layerview-create', () => {...})Currently, the closest thing I have found is this, however, this event fires far before the layer has finished drawing and displaying to the user. It would also be helpful to find a similar event for a MapImageLayer.
Thank you!
Similar to this, but for the 4.x API / Experience Builder:
https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/fire-event-when-featurelayer-graphic-finishes/m-p/57021#M5000