Ground defines the main surface of the web scene, based on elevation layers..

See https://developers.arcgis.com/web-scene-specification/objects/ground/.

interface GroundJson {
    layers?: ElevationLayerJson[];
    navigationConstraint?: {
        type: "none" | "stayAbove";
    };
    surfaceColor?: ColorJson;
    transparency?: number;
}

Hierarchy (view full)

Properties

An array of elevationLayer objects defining the elevation of the ground in the web scene.

navigationConstraint?: {
    type: "none" | "stayAbove";
}

Determines whether the camera is constrained to navigate only above, or also under the ground surface.

Type declaration

  • type: "none" | "stayAbove"

    The type of constraint.

surfaceColor?: ColorJson

Defines the color of the ground surface, displayed underneath the basemap. If no color, the default grid is shown.

transparency?: number

The transparency of the ground surface. It is used for seeing through the ground, therefore this property also changes the transparency of the basemap. Draped operational layers are not affected by this property. The value has to lie between 100 (full transparency) and 0 (full opacity).