@vcmap/core
    Preparing search index...

    Class CameraLimiter

    Can limit a Cesium.Cameras position based on absolute height or distance to a given terrain

    Index

    Accessors

    • get terrainUrl(): string | undefined

      The url of the terrain to use. Required for mode DISTANCE

      Returns string | undefined

    • set terrainUrl(url: string | undefined): void

      Parameters

      • url: string | undefined

      Returns void

    Constructors

    Methods

    • Limits the given camera based on this limiters specs.

      Parameters

      • camera: Camera

      Returns Promise<void>

    Properties

    lastCheckedPosition: Cartographic = ...

    last checked camera position

    level: number | null

    The level to request terrain data at

    limit: number

    The minimum height/distance to the terrain the camera must maintain

    The mode to use. When using DISTANCE mode, be sure to have a terrainProvider set.

    terrainRequestHeaders?: Record<string, string>