Deck.gl: How can I know when a layer has finished loading?

Created on 5 Nov 2019  路  1Comment  路  Source: visgl/deck.gl

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 :)

question

Most helpful comment

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.

>All comments

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.

Was this page helpful?
0 / 5 - 0 ratings