Show / Hide Table of Contents

    Class Layer

    Inheritance
    System.Object
    BaseLayer
    Layer
    Implements
    ILayer
    System.ComponentModel.INotifyPropertyChanged
    IAsyncDataFetcher
    Inherited Members
    BaseLayer.Transformer
    BaseLayer.GetLayerStyles(ILayer)
    BaseLayer.PropertyChanged
    BaseLayer.DataChanged
    BaseLayer.Id
    BaseLayer.Tag
    BaseLayer.MinVisible
    BaseLayer.MaxVisible
    BaseLayer.Enabled
    BaseLayer.Name
    BaseLayer.CRS
    BaseLayer.Exclusive
    BaseLayer.Opacity
    BaseLayer.Busy
    BaseLayer.Style
    BaseLayer.Transformation
    BaseLayer.Attribution
    BaseLayer.Resolutions
    BaseLayer.IsMapInfoLayer
    BaseLayer.DataHasChanged()
    BaseLayer.ToString()
    BaseLayer.OnPropertyChanged(String)
    BaseLayer.OnDataChanged(DataChangedEventArgs)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Mapsui.Layers
    Assembly: Mapsui.dll
    Syntax
    public class Layer : BaseLayer, ILayer, INotifyPropertyChanged, IAsyncDataFetcher

    Constructors

    | Improve this Doc View Source

    Layer()

    Create a new layer

    Declaration
    public Layer()
    | Improve this Doc View Source

    Layer(String)

    Create layer with name

    Declaration
    public Layer(string layername)
    Parameters
    Type Name Description
    System.String layername

    Name to use for layer

    Properties

    | Improve this Doc View Source

    DataSource

    Data source for this layer

    Declaration
    public IProvider DataSource { get; set; }
    Property Value
    Type Description
    IProvider
    | Improve this Doc View Source

    Envelope

    Returns the extent of the layer

    Declaration
    public override BoundingBox Envelope { get; }
    Property Value
    Type Description
    BoundingBox

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

    Overrides
    BaseLayer.Envelope
    | Improve this Doc View Source

    FetchingPostponedInMilliseconds

    Time to wait before fetching data

    Declaration
    public int FetchingPostponedInMilliseconds { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc 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()
    | Improve this Doc View Source

    ClearCache()

    Clear cache of layer

    Declaration
    public void ClearCache()
    | Improve this Doc View Source

    GetFeaturesInView(BoundingBox, Double)

    Get all features in a given BoundingBox for a given resolution

    Declaration
    public override IEnumerable<IFeature> GetFeaturesInView(BoundingBox extent, double resolution)
    Parameters
    Type Name Description
    BoundingBox extent
    System.Double resolution

    Resolution of viewport

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IFeature>
    Overrides
    BaseLayer.GetFeaturesInView(BoundingBox, Double)
    | Improve this Doc View Source

    IsCrsSupported(String)

    Queries whether a layer supports projection to a certain CRS.

    Declaration
    public override bool? IsCrsSupported(string crs)
    Parameters
    Type Name Description
    System.String crs

    The crs to project to

    Returns
    Type Description
    System.Nullable<System.Boolean>

    True if is does, false if it does not, null if it is unknown

    Overrides
    BaseLayer.IsCrsSupported(String)
    | Improve this Doc View Source

    RefreshData(BoundingBox, Double, Boolean)

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

    Declaration
    public override void RefreshData(BoundingBox extent, double resolution, bool majorChange)
    Parameters
    Type Name Description
    BoundingBox extent

    The new extent of the visible map

    System.Double resolution

    The new resolution of the visible map

    System.Boolean majorChange

    If true an implementation should always refresh it's data. If false (minorChange) the implementation could ignore it. Example: During dragging a map a WMS layer would not want to fetch data, only on the drag end.

    Overrides
    BaseLayer.RefreshData(BoundingBox, Double, Boolean)

    Implements

    ILayer
    System.ComponentModel.INotifyPropertyChanged
    IAsyncDataFetcher
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX