per the documentation in the javascript api 4.2
Method to call when extending MapImageLayer.
more details
does anyone have an example of how to do this? I've been trying but every time I add the layer the map stops working, no errors
thanks,
Andrea