Hi,
I am trying to use the JSAPI v4.20 to create a loading graphic when the browser is updating the map. I tried using the "after-add" event and realize that the "after-add" event is triggered when the layer is added to the mapView object but it could still take a while until the browser actually renders the layer.
Is there an event that can be listened to on when the browser completes the rerender?
Thanks!
Solved! Go to Solution.
Found this event which was what I needed.
view.on("layerview-create", function (event) {
console.log("layerView added");
});
Found this event which was what I needed.
view.on("layerview-create", function (event) {
console.log("layerView added");
});