Search Results for

    Show / Hide Table of Contents

    Class StyleExtensions

    Inheritance
    object
    StyleExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.Extensions
    Assembly: Mapsui.dll
    Syntax
    public static class StyleExtensions

    Methods

    | Edit this page View Source

    GetStylesToApply(IStyle?, IFeature, Viewport)

    Recursively resolves and flattens a style hierarchy into concrete renderable styles for a specific feature and viewport. Theme styles are evaluated (if visible) and their result is further flattened. Style collections are traversed depth-first preserving declaration order. Cycles lead to an InvalidOperationException.

    Declaration
    public static IEnumerable<IStyle> GetStylesToApply(this IStyle? style, IFeature feature, Viewport viewport)
    Parameters
    Type Name Description
    IStyle style
    IFeature feature
    Viewport viewport
    Returns
    Type Description
    IEnumerable<IStyle>
    | Edit this page View Source

    GetStylesToApply(IStyle?, double)

    Declaration
    public static IEnumerable<IStyle> GetStylesToApply(this IStyle? style, double resolution)
    Parameters
    Type Name Description
    IStyle style
    double resolution
    Returns
    Type Description
    IEnumerable<IStyle>
    | Edit this page View Source

    ShouldBeApplied(IStyle?, double)

    Declaration
    public static bool ShouldBeApplied(this IStyle? style, double resolution)
    Parameters
    Type Name Description
    IStyle style
    double resolution
    Returns
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX