I have a webpage that displays a GeoTIFF served via GeoServer as an OpenLayers3
What I need is to (via a button) reload the OL3 layer after the underlying GeoTIFF changes.
I searched around, and tried
on the layer in question. But the map/image isn't updated.
I have tried
2) disabling caching for the raster layer in GeoServer.
layer.getSource().dispatchChangeEvent(); as suggested by @ahocevar's answer.
None solved the problem.
The only thing that works is to reload the whole webpage, in which case the map shows the new image but all states in the page is lost.
My question is
How can I reload the layer without having to reload the whole page?