Search Results for

    Show / Hide Table of Contents

    Interface IFeature

    Interface for a feature which could be displayed on the map.

    Inherited Members
    ICloneable.Clone()
    Namespace: Mapsui
    Assembly: Mapsui.dll
    Syntax
    public interface IFeature : ICloneable

    Properties

    | Edit this page View Source

    Data

    Object to store additional data.

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

    Extent

    Extent of the feature.

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

    Fields

    Keys used to store information for feature.

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

    Id

    Unique Id for feature.

    Declaration
    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
    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
    ICollection<IStyle> Styles { get; }
    Property Value
    Type Description
    ICollection<IStyle>

    Methods

    | Edit this page View Source

    ClearRenderedGeometry()

    Function to call if the rendered feature is invalid.

    Declaration
    void ClearRenderedGeometry()
    | Edit this page View Source

    CoordinateVisitor(Action<double, double, CoordinateSetter>)

    Implementation of visitor pattern for coordinates

    Declaration
    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
    void Modified()

    Extension Methods

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