TomTom Maps for JavaScript
    Preparing search index...

    Type Alias HillshadeLightConfig

    The light the TerrainModule hillshade shades the relief with.

    type HillshadeLightConfig = {
        alignment?: HillshadeLightAlignment;
        altitude?: number;
        direction?: number;
    }
    Index

    What direction is measured from: the top of the screen, so the light turns with the camera, or north, so it stays on the same slopes as the map rotates.

    The style's own, viewport.

    altitude?: number

    Height of the light above the horizon, in degrees: 0 at sunset, 90 at noon. A low light casts longer shadows. Used by the basic, combined and multidirectional methods.

    The style's own, 45.
    
    direction?: number

    Direction the light comes from, in degrees clockwise from the top of the screen, or from north with alignment: 'map'. With the multidirectional method, the centre of its four lights.

    The style's own, 335.