Skip to content

update tiles frequently #55

@newten82

Description

@newten82

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions