Search Results for

    Show / Hide Table of Contents

    Interface IStyle

    Defines an interface for defining layer styles

    Namespace: Mapsui.Styles
    Assembly: Mapsui.dll
    Syntax
    public interface IStyle

    Properties

    | Edit this page View Source

    Enabled

    Gets or sets whether objects in this style is rendered or not

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

    GenerationId

    Gets the generation identifier for this style instance. This changes when Modified() is called to signal that cached drawables should be invalidated.

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

    MaxVisible

    Gets or sets the maximum zoom value where the style is applied

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

    MinVisible

    Gets or sets the minimum zoom value where the style is applied

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

    Opacity

    Gets or sets the objects overall opacity

    Declaration
    float Opacity { get; set; }
    Property Value
    Type Description
    float

    Methods

    | Edit this page View Source

    Modified()

    Signals that the style has been modified. This updates the GenerationId so that cached drawables using this style can be invalidated.

    Declaration
    void Modified()

    Extension Methods

    StyleExtensions.GetStylesToApply(IStyle?, IFeature, Viewport)
    StyleExtensions.GetStylesToApply(IStyle?, double)
    StyleExtensions.ShouldBeApplied(IStyle?, double)
    DisposableExtension.DisposeIfDisposable(object?)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX