openlayers icon indicating copy to clipboard operation
openlayers copied to clipboard

Reload individual tile

Open sunishkumar opened this issue 1 year ago • 7 comments

Currently, when working with the XYZ source, if there is a need to reload tiles due to expiry or updates, the entire layer is refreshed. However, in some scenarios, it would be highly beneficial to have the ability to reload individual tiles selectively.

Use Case: In my application, I receive real-time expiration notifications for specific tiles through Server-Sent Events (SSE). Rather than reloading the entire tile layer when such an event occurs, it would be more efficient and resource-friendly to reload only the affected tile.

Feature Request: I propose the addition of a method or functionality within OpenLayers that allows developers to reload individual tiles of an XYZ source. This could be achieved through a method like reloadTile(x, y, z) or a similar mechanism that enables the targeted refresh of a specific tile identified by its coordinates (x, y, z).

sunishkumar avatar Mar 02 '24 17:03 sunishkumar

duplicates https://github.com/openlayers/openlayers/discussions/15540

mprins avatar Mar 04 '24 08:03 mprins

in tile layer,the source of tile has many level files by deffrent strategy;e.g. image; so how to refresh it is the key point in the tile Server; it is a differnt thinking of refresh in source of openlayer and tile Server;

jacklinna avatar Apr 01 '24 06:04 jacklinna