Search Results for

    Show / Hide Table of Contents

    Class BaseFeature

    Inheritance
    object
    BaseFeature
    PointFeature
    RasterFeature
    GeometryFeature
    Implements
    IFeature
    ICloneable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.Layers
    Assembly: Mapsui.dll
    Syntax
    public abstract class BaseFeature : IFeature, ICloneable

    Constructors

    | Edit this page View Source

    BaseFeature()

    Declaration
    protected BaseFeature()
    | Edit this page View Source

    BaseFeature(BaseFeature)

    Declaration
    protected BaseFeature(BaseFeature baseFeature)
    Parameters
    Type Name Description
    BaseFeature baseFeature
    | Edit this page View Source

    BaseFeature(BaseFeature, long)

    Declaration
    protected BaseFeature(BaseFeature baseFeature, long id)
    Parameters
    Type Name Description
    BaseFeature baseFeature
    long id
    | Edit this page View Source

    BaseFeature(long)

    Declaration
    protected BaseFeature(long id)
    Parameters
    Type Name Description
    long id

    Properties

    | Edit this page View Source

    Data

    Object to store additional data.

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

    Extent

    Extent of the feature.

    Declaration
    public abstract MRect? Extent { get; }
    Property Value
    Type Description
    MRect
    | Edit this page View Source

    Fields

    Keys used to store information for feature.

    Declaration
    public IEnumerable<string> Fields { get; }
    Property Value
    Type Description
    IEnumerable<string>
    | Edit this page View Source

    GenerationId

    Gets the generation identifier for this feature instance. This changes when Modified() is called to signal that cached drawables should be invalidated. By default, returns the same value as Id.

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

    Id

    Unique Id for feature.

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

    this[string]

    Additional data that can be stored under specific keys.

    Declaration
    public virtual object? this[string key] { get; set; }
    Parameters
    Type Name Description
    string key

    Key used to store or retrieve specific data fields.

    Property Value
    Type Description
    object
    | Edit this page View Source

    Styles

    Styles used for this feature

    Declaration
    public ICollection<IStyle> Styles { get; set; }
    Property Value
    Type Description
    ICollection<IStyle>

    Methods

    | Edit this page View Source

    Clone()

    Creates a new object that is a copy of the current instance.

    Declaration
    public abstract object Clone()
    Returns
    Type Description
    object

    A new object that is a copy of this instance.

    | Edit this page View Source

    CoordinateVisitor(Action<double, double, CoordinateSetter>)

    Implementation of visitor pattern for coordinates

    Declaration
    public abstract void CoordinateVisitor(Action<double, double, CoordinateSetter> visit)
    Parameters
    Type Name Description
    Action<double, double, CoordinateSetter> visit

    Function for visiting each coordinate X or Y value

    | Edit this page View Source

    Modified()

    Function to call whenever something changes in settings of feature.

    Declaration
    public virtual void Modified()

    Implements

    IFeature
    ICloneable

    Extension Methods

    FeatureExtensions.ToDisplayText(IFeature)
    FeatureExtensions.ToStringOfKeyValuePairs(IFeature)
    FeatureExtensions.Copy<T>(T)
    DisposableExtension.DisposeIfDisposable(object?)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX