Hi Ott,
is this a vector layer coming from Spectrum? If yes, make sure you have set the caching time for the layer to 0 (zero). This will make sure, the browser does not cache the tiles and next time you pan the map, the map images of the layer gets refreshed.
I have written an extension for refreshing Spectrum layers on click. It is not automatic yet, but you might improve my extension.
It is attached. Extract the zip file to the folder customerconfigurations\analyst\theme\extensions.
It creates a folder app with a subfolder layerRefresh. Within the app folder you find a sample CustomAnalystModuleConfig.json file. Use the entry to add this to your existing file. It will add a Refresh icon to the banner and a Refresh item to the layers 3 dot menu.
Extensibility must be enabled in shared.properties.
Let me know if this works for you.
Regards
Andreas
------------------------------
Andreas Homa
PITNEY BOWES SOFTWARE, INC
Troy NY
------------------------------