public void Dispose() { if (_mapFilesHandler != null) { _mapFilesHandler.Dispose(); _mapFilesHandler = null; } }
public MapControlFactoryOSMOffline() : base() { _mapFilesHandler = new OSMBinMap.MapFilesHandler(this); _bitmapStore = new BitmapStoreOSMOffline(_mapFilesHandler); _searchProvider = new SearchProviderOSM(); _tileGenerator = new TileGeneratorOSM(this); _tilePanel = new TilePanel(this); OSMBinFilesVisibility = Visibility.Visible; }
public MapFile(MapFilesHandler mapFileHandler, string filename) { _mapFileHandler = mapFileHandler; _filename = filename; try { FileStream fs = File.OpenRead(_filename); _fileStream = fs; buffer = new byte[30]; } catch { } }
public BitmapStoreOSMOffline(OSMBinMap.MapFilesHandler mapsHandler) { _mapsHandler = mapsHandler; }
public void Dispose() { if (_mapFilesHandler!=null) { _mapFilesHandler.Dispose(); _mapFilesHandler = null; } }