Search Results for

    Show / Hide Table of Contents

    Class WritableLayer

    Inheritance
    object
    BaseLayer
    WritableLayer
    Implements
    ILayer
    IAnimatable
    INotifyPropertyChanged
    IDisposable
    IModifyFeatureLayer
    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()
    BaseLayer.UpdateAnimations()
    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 WritableLayer : BaseLayer, ILayer, IAnimatable, INotifyPropertyChanged, IDisposable, IModifyFeatureLayer

    Properties

    | Edit this page View Source

    Extent

    Returns the envelope of all available data in the layer

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

    Methods

    | Edit this page View Source

    Add(IFeature)

    Declaration
    public void Add(IFeature feature)
    Parameters
    Type Name Description
    IFeature feature
    | Edit this page View Source

    AddRange(IEnumerable<IFeature>)

    Declaration
    public void AddRange(IEnumerable<IFeature> features)
    Parameters
    Type Name Description
    IEnumerable<IFeature> features
    | Edit this page View Source

    Clear()

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

    Find(IFeature)

    Declaration
    public IFeature? Find(IFeature feature)
    Parameters
    Type Name Description
    IFeature feature
    Returns
    Type Description
    IFeature
    | Edit this page View Source

    GetFeatures()

    Declaration
    public IEnumerable<IFeature> GetFeatures()
    Returns
    Type Description
    IEnumerable<IFeature>
    | 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? box, double resolution)
    Parameters
    Type Name Description
    MRect box
    double resolution

    Resolution of viewport

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

    TryRemove(IFeature, Func<IFeature, IFeature, bool>?)

    Tries to remove a feature.

    Declaration
    public bool TryRemove(IFeature feature, Func<IFeature, IFeature, bool>? compare = null)
    Parameters
    Type Name Description
    IFeature feature

    Feature to remove

    Func<IFeature, IFeature, bool> compare

    Optional method to compare the feature with any of the other features in the list. If omitted a reference compare is done.

    Returns
    Type Description
    bool

    Implements

    ILayer
    IAnimatable
    INotifyPropertyChanged
    IDisposable
    IModifyFeatureLayer

    Extension Methods

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