GeoLeaf Core API - v3.19.0
    Preparing search index...

    Function applyActiveFilterToSources

    • Applies an already-expanded active filter to every loaded GeoJSON layer, in ONE pass. Geometry-agnostic; the per-layer layers scope is honoured via featurePasses.

      Returns what the kernel counted — features judged (total) and kept (visible) over every layer holding features in memory — or null when the kernel seam is absent or returns no counts.

      One pass, not one per geometry: the three passes this replaced (polygon, line, point) reached only the layers whose kind folded into one of them, so a layer created empty and filled later (unknown) was never filtered — while the predicate never looked at the geometry. A vector-tile layer keeps no feature in memory and is not filtered by the panel.

      Parameters

      Returns FilterMatchStats | null