Search Results for

    Show / Hide Table of Contents

    Class TileFetchPlanner

    Inheritance
    object
    TileFetchPlanner
    Implements
    INotifyPropertyChanged
    IFetchableSource
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.Tiling.Fetcher
    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
    Type Name Description
    ITileCache<IFeature> tileCache
    ITileSchema tileSchema
    Func<TileInfo, Task<IFeature>> fetchTileAsFeature
    IDataFetchStrategy dataFetchStrategy
    ILayer layer

    Properties

    | Edit this page View Source

    Busy

    Declaration
    public bool Busy { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    DefaultNumberOfSimultaneousFetches

    Declaration
    public static int DefaultNumberOfSimultaneousFetches { get; set; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    Id

    The layer identifier.

    Declaration
    public int Id { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    NumberTilesNeeded

    Declaration
    public int NumberTilesNeeded { get; }
    Property Value
    Type Description
    int

    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
    public void ClearCache()
    | 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
    Type Description
    FetchJob[]
    | 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
    Type Name Description
    FetchInfo fetchInfo

    Events

    | Edit this page View Source

    DataChanged

    Declaration
    public event EventHandler<Exception?>? DataChanged
    Event Type
    Type Description
    EventHandler<Exception>
    | 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
    Type Description
    EventHandler<FetchRequestedEventArgs>
    | Edit this page View Source

    PropertyChanged

    Occurs when a property value changes.

    Declaration
    public event PropertyChangedEventHandler? PropertyChanged
    Event Type
    Type Description
    PropertyChangedEventHandler

    Implements

    INotifyPropertyChanged
    IFetchableSource

    Extension Methods

    DisposableExtension.DisposeIfDisposable(object?)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX