Search Results for

    Show / Hide Table of Contents

    Interface ILayer

    Interface for map layers

    Inherited Members
    IAnimatable.UpdateAnimations()
    INotifyPropertyChanged.PropertyChanged
    IDisposable.Dispose()
    Namespace: Mapsui.Layers
    Assembly: Mapsui.dll
    Syntax
    public interface ILayer : IAnimatable, INotifyPropertyChanged, IDisposable

    Properties

    | Edit this page View Source

    Attribution

    Attribution for layer

    Declaration
    Hyperlink Attribution { get; }
    Property Value
    Type Description
    Hyperlink
    | Edit this page View Source

    Busy

    Flag, if layer is busy

    Declaration
    bool Busy { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Enabled

    Specifies whether this layer should be rendered or not

    Declaration
    bool Enabled { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Extent

    Gets the MRect of the entire layer. Can be null if there are no features in the layer.

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

    Id

    Numerical Id of layer

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

    IsMapInfoLayer

    Indicates if the layer should be taken into account for the GetMapInfo request

    Declaration
    bool IsMapInfoLayer { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    MaxVisible

    Minimum visible zoom level

    Declaration
    double MaxVisible { get; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    MinVisible

    Minimum visible zoom level

    Declaration
    double MinVisible { get; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    Name

    Name of layer

    Declaration
    string Name { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Opacity

    Opacity of layer

    Declaration
    double Opacity { get; set; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    Resolutions

    List of native resolutions

    Declaration
    IReadOnlyList<double> Resolutions { get; }
    Property Value
    Type Description
    IReadOnlyList<double>
    | Edit this page View Source

    Style

    Gets or sets rendering style of layer

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

    Tag

    Gets or sets an arbitrary object value that can be used to store custom information about this element

    Declaration
    object? Tag { get; set; }
    Property Value
    Type Description
    object

    Methods

    | Edit this page View Source

    DataHasChanged()

    To indicate the data withing the layer has changed. This triggers a DataChanged event. This is necessary for situations where the layer can not know about changes to it's data as in the case of editing of a geometry.

    Declaration
    void DataHasChanged()
    | Edit this page View Source

    GetFeatures(MRect, double)

    Get all features in a given MRect for a given resolution

    Declaration
    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>

    Events

    | Edit this page View Source

    DataChanged

    Event called when the data within the layer has changed allowing listeners to react to this.

    Declaration
    event DataChangedEventHandler DataChanged
    Event Type
    Type Description
    DataChangedEventHandler

    Extension Methods

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