With Experience Builder Developer edition v1.15, after add a feature layer to map, is there any event knows that the data source has been updated?
In following code, the dsObservations is undefined.
const fullObservationsLayer: __esri.FeatureLayer = new FeatureLayer({
url: props.config.fullObservationsUrl
})
currentJimuMapView.view.map.add(fullObservationsLayer)
currentJimuMapView.view.whenLayerView(fullObservationsLayer)
.then(async function (layerView) {
const dsManager = DataSourceManager.getInstance()
const dsMain = dsManager.getDataSource(currentJimuMapView.dataSourceId)
await dsMain.childDataSourcesReady()
const dsObservations: FeatureLayerDataSource = dsManager.getDataSource(`${dsMain.id}-${layerView.layer.id}`) as FeatureLayerDataSource
})
.catch(function (error) {
console.log(error.message)
})
Thanks for any idea!
Or this following link is the only way to add data source to map for Experience Builder Developer edition?