I can have several overlays, maybe up to 5 or 6 even, with anywhere from 1 to a couple 100 layers in them. I have the overlays configured for file caching which has worked okay up until now. I've been asked to make it possible to add/remove layers from a given overlay. For now I am just trying to remove layers (I'm sure add will have the same problem) but I can't make the map reflect the change without actually deleting the whole cache which seems like overkill. How do I make this removal work despite the caching?
Tile Caching
Hi Matthew,
Seems like there isn’t any efficent way to reflect the layer changes if current overlay tiles caching exist. One optional but silly way is giving different CacheId for different change, but it will cause you have lots of cache on the disk, it’s not efficent way. Another option is clearing the overlay’s cache before you add/remove the layers in overlay, as once we detect there is a tile in this extent, we would take this tile to fill this area rather than render it on the fly.But I’m not sure if it helps for you senario. The reason why there is the tile caching is because it is static and we can use it directly in the future to improve the performance.
If any misunderstandings, please correct me.
thanks,
Johnny