internal void CloseCache() { cache.Close(); cache = null; }
private void InitializeTileProvider(ITileImageProvider newTileProvider) { tileProvider = newTileProvider; if (cache != null) cache.Close(); if (tileProvider == null) return; cache = new MBTileCache(); if (!string.IsNullOrEmpty(TileProvider.MBTileFile)) { cache.InitFile(TileProvider.MBTileFile); } else { cache.Init(TileProvider.CacheFolder + ".mbtiles"); } }