ArcGIS Runtime SDK for Android WebTiledLayer refreshInterval

424
1
06-24-2019 02:20 PM
WilliamAshmall
New Contributor

I am working with the ArcGIS Runtime SDK for Android and I am using a WebTiledLayer that refreshes the data in NRT. The data consists of five consecutive layers that make an animation.  Layer 0 is the current layer, followed by layer 1, Layer 2, etc...  When the data is updated by the WebTileService Layer 0 gets new data, Layer 1 gets the data from 0, and so on down the line.  I use five WebTiledLayers and animate showing one at a time, this part works great, however when the service updates the data the SDK doesn't refresh so it becomes stale.  I previously built this application as a web application using the ArcGIS API for Javascript which handles the WebTiledLayer refresh simply by calling the .refresh() function as needed (every 60 seconds.)  The ArcGIS Runtime SDK for Android seems to be missing this functionality.  So I am currently being forced to remove the layers and add them back which causes a flashing as they reload even if the tiles are not updated (I check every 60 seconds for new data, exactly like I do in the js application.)  The refresh in the javascript API works seamlessly and you never notice the refresh is happening except the new data shows up when it is available.  I'm guessing if there was a refresh function for the Android SDK it would work seamlessly as well, can you please help me with this?

0 Kudos
1 Reply
GuntherHeppner
Esri Contributor

Hi William,

Unfortunately we don't support refresh of WebTiledLayer in the ArcGISRuntime yet, but it is something we want to support in the future. Until it is supported I don't see any better workaround than what you are doing by re-adding the layers.

Gunther

0 Kudos