AnsweredAssumed Answered

ImageTiledLayer in QML - report NoData tiles

Question asked by stolba on Dec 17, 2019
Latest reply on Dec 18, 2019 by stolba



I am using ImageTiledLayer to display raster tiles stored in local filesystem. All works fine. Now sometimes I need to download only some tiles (still fine) and for the tiles which are not in the filesystem show some "No Data" tile.


I tired the following approaches:

1. Set noDataTileBehavior : Enums.NoDataTileBehaviorShow This has no effect at all. I suspect I need to provide a special NoData tile but I don't know how to get it and how to tell the layer about it. When the provided file is simply no there, the tile is empty.


2. Check file existence and if the file does not exist provide my own special No Data tile. This would be good as I could customize the tile. But! The tileCallback function does not pass beyond the file existence check! No error, no logging afterwards. I have tried both pure JS way and Qt way. No success.


Is there any working way to achieve what I am trying to do? Thanks in advance for any help!