Class TileFetchPlanner
Inheritance
TileFetchPlanner
Assembly: Mapsui.Tiling.dll
Syntax
public class TileFetchPlanner : INotifyPropertyChanged, IFetchableSource
Constructors
|
Edit this page
View Source
TileFetchPlanner(ITileCache<IFeature?>, ITileSchema, Func<TileInfo, Task<IFeature?>>, IDataFetchStrategy, ILayer)
Declaration
public TileFetchPlanner(ITileCache<IFeature?> tileCache, ITileSchema tileSchema, Func<TileInfo, Task<IFeature?>> fetchTileAsFeature, IDataFetchStrategy dataFetchStrategy, ILayer layer)
Parameters
Properties
|
Edit this page
View Source
Busy
Declaration
public bool Busy { get; }
Property Value
|
Edit this page
View Source
DefaultNumberOfSimultaneousFetches
Declaration
public static int DefaultNumberOfSimultaneousFetches { get; set; }
Property Value
|
Edit this page
View Source
Id
Declaration
Property Value
|
Edit this page
View Source
NumberTilesNeeded
Declaration
public int NumberTilesNeeded { get; }
Property Value
Methods
|
Edit this page
View Source
ClearCache()
Clears the cache of this layer. Call this if source data has was invalidated or the layer is
removed.
Declaration
|
Edit this page
View Source
GetFetchJobs(int, int)
Gets the fetch requests for this layer. The requests are based on the viewport stored within the layer.
Declaration
public FetchJob[] GetFetchJobs(int activeFetches, int availableFetchSlots)
Parameters
| Type |
Name |
Description |
| int |
activeFetches |
|
| int |
availableFetchSlots |
Number of available fetch slots in the caller. It is the maximum number
of fetch jobs the method should return.
|
Returns
|
Edit this page
View Source
ViewportChanged(FetchInfo)
Informs the layer that the viewport has changed and it should update its data accordingly.
Declaration
public void ViewportChanged(FetchInfo fetchInfo)
Parameters
Events
|
Edit this page
View Source
DataChanged
Declaration
public event EventHandler<Exception?>? DataChanged
Event Type
|
Edit this page
View Source
FetchRequested
Indicates to the listener that it should fetch data again. This event is raised when there was
a change in source data, so only relevant for dynamic data. The fetches triggered by viewport
changes do not depend on it.
Declaration
public event EventHandler<FetchRequestedEventArgs>? FetchRequested
Event Type
|
Edit this page
View Source
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler? PropertyChanged
Event Type
Implements
Extension Methods