Search Results for

    Show / Hide Table of Contents

    Class Layer

    Inheritance
    object
    BaseLayer
    Layer
    Implements
    ILayer
    IAnimatable
    INotifyPropertyChanged
    IDisposable
    IAsyncDataFetcher
    ILayerDataSource<IProvider>
    Inherited Members
    BaseLayer.PropertyChanged
    BaseLayer.DataChanged
    BaseLayer.Id
    BaseLayer.Tag
    BaseLayer.MinVisible
    BaseLayer.MaxVisible
    BaseLayer.Enabled
    BaseLayer.Name
    BaseLayer.Opacity
    BaseLayer.Busy
    BaseLayer.Style
    BaseLayer.Attribution
    BaseLayer.Resolutions
    BaseLayer.IsMapInfoLayer
    BaseLayer.DataHasChanged()
    BaseLayer.ToString()
    BaseLayer.OnPropertyChanged(string)
    BaseLayer.OnDataChanged(DataChangedEventArgs)
    BaseLayer.Dispose(bool)
    BaseLayer.Dispose()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Mapsui.Layers
    Assembly: Mapsui.dll
    Syntax
    public class Layer : BaseLayer, ILayer, IAnimatable, INotifyPropertyChanged, IDisposable, IAsyncDataFetcher, ILayerDataSource<IProvider>

    Constructors

    | Edit this page View Source

    Layer()

    Create a new layer

    Declaration
    public Layer()
    | Edit this page View Source

    Layer(string)

    Create layer with name

    Declaration
    public Layer(string layerName)
    Parameters
    Type Name Description
    string layerName

    Name to use for layer

    Properties

    | Edit this page View Source

    Animations

    Declaration
    public List<Func<bool>> Animations { get; }
    Property Value
    Type Description
    List<Func<bool>>
    | Edit this page View Source

    DataSource

    Data source for this layer

    Declaration
    public IProvider? DataSource { get; set; }
    Property Value
    Type Description
    IProvider
    | Edit this page View Source

    Delayer

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

    Extent

    Returns the extent of the layer

    Declaration
    public override MRect? Extent { get; }
    Property Value
    Type Description
    MRect

    Bounding box corresponding to the extent of the features in the layer

    Overrides
    BaseLayer.Extent
    | Edit this page View Source

    FetchingPostponedInMilliseconds

    Time to wait before fetching data

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

    SymbolStyle

    Declaration
    public SymbolStyle? SymbolStyle { get; set; }
    Property Value
    Type Description
    SymbolStyle

    Methods

    | Edit this page View Source

    AbortFetch()

    Aborts the tile fetches that are in progress. If this method is not called the threads will terminate naturally. It will just take a little longer.

    Declaration
    public void AbortFetch()
    | Edit this page View Source

    ClearCache()

    Clear cache of layer

    Declaration
    public void ClearCache()
    | Edit this page View Source

    GetFeatures(MRect, double)

    Get all features in a given MRect for a given resolution

    Declaration
    public override IEnumerable<IFeature> GetFeatures(MRect extent, double resolution)
    Parameters
    Type Name Description
    MRect extent

    Bounding box

    double resolution

    Resolution of viewport

    Returns
    Type Description
    IEnumerable<IFeature>
    Overrides
    BaseLayer.GetFeatures(MRect, double)
    | Edit this page View Source

    RefreshData(FetchInfo)

    Indicates that there has been a change in the view of the map

    Declaration
    public void RefreshData(FetchInfo fetchInfo)
    Parameters
    Type Name Description
    FetchInfo fetchInfo

    FetchInfo

    | Edit this page View Source

    UpdateAnimations()

    Declaration
    public override bool UpdateAnimations()
    Returns
    Type Description
    bool

    Returns true if animations are running and a graphics update is needed.

    Overrides
    BaseLayer.UpdateAnimations()

    Implements

    ILayer
    IAnimatable
    INotifyPropertyChanged
    IDisposable
    IAsyncDataFetcher
    ILayerDataSource<T>

    Extension Methods

    LayerExtensions.WaitForLoadingAsync(ILayer)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX