mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-07 00:03:52 -05:00
The old behaviour was always to just redraw the layer, without refreshing data. This was by design, as the feature was originally developed to allow animated layers which needed to be regular, quickly redrawn. But there's also a use case for automatically refetching layer data on a regular interval too. So now we expose a choice of mode for the automatic refresh for users to decided which is appropriate for their requirements. The options are: - "Reload Data": The layer will be completely refreshed. Any cached data will be discarded and refetched from the provider. This mode may result in slower map refreshes. - "Redraw Layer Only": This mode is useful for animation or when the layer's style will be updated at regular intervals. Canvas updates are deferred in order to avoid refreshing multiple times if more than one layer has an auto update interval set. The changes are all wrapped up in a new reusable widget, so that we can easily expose this setting for non vector/raster layers if we want to in future. Fixes https://github.com/qgis/QGIS/issues/39830