I was hoping to find a way to know when a layer has been loaded. I'm working with large data sources which take 5-10 seconds to appear on the map. Is there a way, maybe a callback, to know when a layer has been finally added to the map?
Thanks :)
If you are using a url for the data prop, the layer calls its onDataLoad prop when the data is fully downloaded.
If you want to know when the layer is rendered to screen, you can listen to Deck鈥檚 onAfterRender.
Most helpful comment
If you are using a url for the
dataprop, the layer calls itsonDataLoadprop when the data is fully downloaded.If you want to know when the layer is rendered to screen, you can listen to Deck鈥檚
onAfterRender.