/// <summary>
 /// Aborts the fetch of data that is currently in progress.
 /// With new ViewChanged calls the fetch will start again.
 /// Call this method to speed up garbage collection
 /// </summary>
 public void AbortFetch()
 {
     if (tileFetcher != null)
     {
         tileFetcher.AbortFetch();
     }
 }
示例#2
0
 /// <summary>
 /// Aborts the fetch of data that is currently in progress.
 /// With new ViewChanged calls the fetch will start again.
 /// Call this method to speed up garbage collection
 /// </summary>
 public override void AbortFetch()
 {
     if (tileFetcher != null)
     {
         tileFetcher.AbortFetch();
     }
 }
示例#3
0
        protected void SetTileSource(ITileSource source)
        {
            if (_tileSource != null)
            {
                _tileFetcher.AbortFetch();
                _tileFetcher.DataChanged     -= TileFetcherDataChanged;
                _tileFetcher.PropertyChanged -= TileFetcherOnPropertyChanged;
                _tileFetcher = null;
                _memoryCache.Clear();
            }
            _tileSource = source;

            if (source == null)
            {
                return;
            }
            _tileFetcher                  = new TileFetcher(source, _memoryCache, _maxRetries, _maxThreads, _fetchStrategy);
            _tileFetcher.DataChanged     += TileFetcherDataChanged;
            _tileFetcher.PropertyChanged += TileFetcherOnPropertyChanged;
            OnPropertyChanged("Envelope");
        }
示例#4
0
 /// <summary>
 /// Sets the tile source.
 /// </summary>
 /// <param name="source"></param>
 protected void SetTileSource(ITileSource source)
 {
     if (_tileFetcher != null)
     {
         _tileFetcher.AbortFetch();
         _tileFetcher.DataChanged     -= TileFetcherDataChanged;
         _tileFetcher.PropertyChanged -= TileFetcherOnPropertyChanged;
         _tileFetcher = null;
         _bitmaps.Clear();
     }
     _source = source;
     if (source == null)
     {
         return;
     }
     _tileFetcher                  = new TileFetcher(source, _bitmaps, _maxRetries, _maxThreads, _fetchStrategy, _fileCache);
     _tileFetcher.DataChanged     += TileFetcherDataChanged;
     _tileFetcher.PropertyChanged += TileFetcherOnPropertyChanged;
 }
示例#5
0
 public override void AbortFetch()
 {
     _tileFetcher.AbortFetch();
 }
示例#6
0
 /// <summary>
 /// Aborts the fetch of data that is currently in progress.
 /// With new ViewChanged calls the fetch will start again.
 /// Call this method to speed up garbage collection
 /// </summary>
 public void AbortFetch()
 {
     _tileFetcher?.AbortFetch();
 }