cesium-spatial
    Preparing search index...

    Class LevelSelector

    Stateful wrapper around selectLevel that resists flapping.

    A camera nudged near the boundary between two levels would otherwise swap back and forth every frame, rebuilding the whole layer each time. The selector keeps its current level until that level is off target by more than deadband octaves.

    Index
    • get level(): number | undefined

      The level currently in effect, or undefined before the first update.

      Returns number | undefined

    • Forgets the current level so the next update snaps straight to the best match.

      Returns void

    • Returns the level to use for the given ground resolution.

      Parameters

      • metersPerPixel: number

      Returns number