You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @alex3165 sorry for the long delay in responding, I finally had time to go back to my project on this and take a look. The issue was completely due to a bad implementation on my side, every time I fetched new data the redux state was being set to undefined and the layer wouldn't load until the data was there, I made a few tweaks and it works now, smooth updates! 👍
Hello,
I need some help updating the JSON data for layers without causing layers to flicker. My current setup for fetching and rendering data is:
The data is refreshed every 10s and this causes the whole layer to flicker every time there's an update. I found a series of issues on mapbox-gl-js repo and it seems that setData() should solve this issue (and 'Source' components seem to take care of it) but I had no luck:
Calling setData on geojson sources causes flickering
Is map.update() supposed to respond to changes in GeoJSON source data?
Modifying GeoJSON source
Any tips on how to update JSON data without causing layers to flicker? Thanks!
The text was updated successfully, but these errors were encountered: