I'm currently working on an app displaying data from a WMS. The data of the source is frequently updated, and therefore the layer needs to be updated as well. However, the viewport only issues new requests when the map is either zoomed or panned.
What is the best way to force the viewport to re-request and redraw the WMS layer?
meanwhile the pull requests has been merged and a new version is released. I tried to implement it, but I do not really understand how it is supposed to work.
I have no time line, no time interval. I simply want the layer to reload the images say every 10 seconds, as long as the page is open.
Okay, I'm not one step further: the layer now reloads the data every few seconds. But the layer issues several requests for different resolutions. And even worse: The different resolutions are displayed. So on every update, the image is first replaced with some scaled, blurred image of an overview scale, aber soon afterwards the correct image appears.
Is it possible to stop this and only request the most appropriate resolution depending of the zoom level?
You should be in control of that if you’re implementing your own custom imagery provider. I can’t tell why it’s happening without seeing your implementation.
I still think it might be easier to use WMS-T that’s already implemented. Have you taken a look at this Sandcastle example to see how it works?
I checked it, and this example behaves in the same way: When a reload is triggered, every zoom level from the top most level 0 up to the current zoom level is downloaded. As a result, the remote server is flooded with image requests, even if most of them will soon be thrown away by the client.