예제 #1
0
 internal void CloseCache()
 {
     cache.Close();
     cache = null;
 }
예제 #2
0
 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");
     }
 }