/// <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(); } }
/// <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(); } }
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"); }
/// <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; }
public override void AbortFetch() { _tileFetcher.AbortFetch(); }
/// <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(); }