Our app contained the following code snippet when configured to use 4.11:
popup.on('trigger-action', (event) => {
const featureLocation = this.mapView.toMap(event.target.screenLocation);
}
We are now moving to 4.23 and the only event attribute is 'action', not 'target'. I can't quite figure out how to do it the new way. It looks like I might be able to do:
event.action.get(<something>)
but I don't know what the equivalent to 'screenLocation' would be.
Can somebody help with this and either point me to where I might find the event.action object or paste the equivalent statement?
TIA.
Tim