Search Results for

    Show / Hide Table of Contents

    Interface IFetchableSource

    Namespace: Mapsui.Fetcher
    Assembly: Mapsui.dll
    Syntax
    public interface IFetchableSource

    Properties

    | Edit this page View Source

    Id

    The layer identifier.

    Declaration
    int Id { 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
    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
    FetchJob[] GetFetchJobs(int activeFetchCount, int availableFetchSlots)
    Parameters
    Type Name Description
    int activeFetchCount

    Number of active fetches for this layer. It is relevant if the layer itself has a maximum on the number of active fetches for itself.

    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
    void ViewportChanged(FetchInfo fetchInfo)
    Parameters
    Type Name Description
    FetchInfo fetchInfo

    Events

    | 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
    event EventHandler<FetchRequestedEventArgs>? FetchRequested
    Event Type
    Type Description
    EventHandler<FetchRequestedEventArgs>

    Extension Methods

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