I need to create large number (hundreds) of custom ImageTiledLayer layers which use locally stored tiles. It works fine on desktop (Linux) and Android, but crashes on iOS. It turned out, that the cause of the crash is that the app has too many open file handles, as on iOS the limit is typically fairly low (e.g., 256). The app crashes when opening around 190 layers.
I have a couple of questions:
- Can anyone confirm this is really the case? Is the ImageTiledLayer keeping open file handlers?
- If so, can we somehow determine how many? Is it one per tile, or one per layer?
- Also is there any way how to force the layer to close the file handlers after loading the tiles?