Options for geometric terrain rendering.

interface TerrainOptions {
    enabled: boolean;
    segments: number;
    skirts: {
        depth: number;
        enabled: boolean;
    };
    stitching: boolean;
}

Properties

enabled: boolean

Enables terrain deformation. If true, the surface of the map will be deformed to match the elevation data. If false or unset, the surface of the map will be flat.

segments: number

The resolution of the grid for each tile. The higher the better. It must be power of two between 1 included and 256 included. Note: the number of vertices per tile side is segments + 1.

DEFAULT_MAP_SEGMENTS

skirts: {
    depth: number;
    enabled: boolean;
}

Draw vertical skirts on the sides of the map tiles.

Type declaration

  • depth: number

    The depth of the skirt, in CRS units.

  • enabled: boolean
stitching: boolean

Requires enabled to be true.

Enables terrain stitching. Stitching allows the map to be perfectly watertight at the seams between tiles, even when the neighbouring tile have different sizes.

Disabling stitching might improve performance.

MMNEPVFCICPMFPCPTTAAATR