When running the Utility network trace widget, the results will be added as graphics.
How to get the graphics results data in the console ?
I tried to trigger the events which is documented in the api documentation add-result-area. But the event is not working.
Here my code is below
const utilityNetworkTrace = new UtilityNetworkTrace({
view: view,
resultAreaProperties: {
show: true
}
});
utilityNetworkTrace.on('add-result-area', getResult)
function getResult() {}
Reference URL