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 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;
        }
示例#4
0
 public MapFile(MapFilesHandler mapFileHandler, string filename)
 {
     _mapFileHandler = mapFileHandler;
     _filename       = filename;
     try
     {
         FileStream fs = File.OpenRead(_filename);
         _fileStream = fs;
         buffer      = new byte[30];
     }
     catch
     {
     }
 }
示例#5
0
 public MapFile(MapFilesHandler mapFileHandler, string filename)
 {
     _mapFileHandler = mapFileHandler;
     _filename = filename;
     try
     {
         FileStream fs = File.OpenRead(_filename);
         _fileStream = fs;
         buffer = new byte[30];
     }
     catch
     {
     }
 }
示例#6
0
 public BitmapStoreOSMOffline(OSMBinMap.MapFilesHandler mapsHandler)
 {
     _mapsHandler = mapsHandler;
 }
 public BitmapStoreOSMOffline(OSMBinMap.MapFilesHandler mapsHandler)
 {
     _mapsHandler = mapsHandler;
 }
 public void Dispose()
 {
     if (_mapFilesHandler!=null)
     {
         _mapFilesHandler.Dispose();
         _mapFilesHandler = null;
     }
 }