SDK JS
    Preparing search index...

    Interface SurfaceSampleable

    Structural interface of a layer that can sample the height of its topmost rendered surface at given map positions. Implemented by the mesh, point-cloud and splat layers; see each layer's sampleSurfaceHeights for its sampling characteristics.

    interface SurfaceSampleable {
        sampleSurfaceHeights(
            points: readonly { lat: number; lng: number }[],
            opts?: SurfaceSampleOptions,
        ): (number | null)[];
    }

    Implemented by

    Index

    Methods

    • Sample the height of the topmost rendered surface at each position.

      Parameters

      Returns (number | null)[]

      Height in metres above the rendered ground datum per point, or null where the layer has no surface (or the tile isn't resident).