You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a raster layer with a custom httpDataSource that pulls a small set of tiles. The tiles need to be updated about twice a second. I was able to get the layer to update the tiles by calling reloadTiles() on the data source. However this causes the screen to flicker as the old tile is removed then goes to empty background which then goes to the new tile. All of which takes enough time to see it flash.
is there a way to smoothly transition between new and old tiles. I tried layer.updateVisibleTiles() but that doesn't seem to do anything.
I've tried the following settings with no luck.
mapOptions.setRenderMode(GLSurfaceView.RENDERMODE_CONTINUOUSLY);
layer.setMemoryCaching(false);
layer.setPersistentCaching(false);
layer.setTileFading(true);
The text was updated successfully, but these errors were encountered:
I found a work around that appears to work. In my data source I maintain a list of tiles that I need to refresh. Then I added a timer in my raster layer to periodically call fetchTile for each in the list from the data source. This gives me the smooth update to the tile. I believe the flashing was caused by the textureMemoryCache clearing out prior to loading the new tile.
Whenever a tile fails to load some background thread continues to poll for it. If the tile is found it stops polling. What I was looking for was a way to keep polling the tiles on a regular interval even if they loaded. Still wonder if there is a better way to do this.
I have a raster layer with a custom httpDataSource that pulls a small set of tiles. The tiles need to be updated about twice a second. I was able to get the layer to update the tiles by calling reloadTiles() on the data source. However this causes the screen to flicker as the old tile is removed then goes to empty background which then goes to the new tile. All of which takes enough time to see it flash.
is there a way to smoothly transition between new and old tiles. I tried layer.updateVisibleTiles() but that doesn't seem to do anything.
I've tried the following settings with no luck.
mapOptions.setRenderMode(GLSurfaceView.RENDERMODE_CONTINUOUSLY);
layer.setMemoryCaching(false);
layer.setPersistentCaching(false);
layer.setTileFading(true);
The text was updated successfully, but these errors were encountered: