Search Results for

    Show / Hide Table of Contents

    Class VisibleFeatureIterator

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

    Methods

    | Edit this page View Source

    IterateLayers(Viewport, IEnumerable<ILayer>, long, Action<Viewport, ILayer, IStyle, IFeature, float, long>, Action<ILayer>?, MRect?)

    Iterates over all visible features in the given layers and calls callback for each feature/style combination that should be rendered. Layers that are disabled or outside their visible resolution range are skipped.

    Declaration
    public static void IterateLayers(Viewport viewport, IEnumerable<ILayer> layers, long iteration, Action<Viewport, ILayer, IStyle, IFeature, float, long> callback, Action<ILayer>? customLayerRendererCallback = null, MRect? queryExtent = null)
    Parameters
    Type Name Description
    Viewport viewport

    The current viewport.

    IEnumerable<ILayer> layers

    The layers to iterate.

    long iteration

    A monotonically increasing counter used to track render cycles.

    Action<Viewport, ILayer, IStyle, IFeature, float, long> callback

    Called for each (viewport, layer, style, feature, opacity, iteration) combination.

    Action<ILayer> customLayerRendererCallback

    Optional callback for layers that use a custom renderer (identified by ILayer.CustomLayerRendererName). When provided, such layers call this instead of the normal feature callback.

    MRect queryExtent

    World-coordinate extent to use when querying features from each layer. Defaults to the full viewport extent when null. Pass a smaller rect to limit feature queries during partial rendering.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX