TomTom Maps for JavaScript
    Preparing search index...

    Type Alias HillshadeModuleConfig

    HillshadeModuleConfig: MapModuleCommonConfig & { visible?: boolean }

    Configuration options for the HillshadeModule.

    Controls the appearance and visibility of terrain shading on the map.

    Type Declaration

    • Optionalvisible?: boolean

      Controls the visibility of the hillshade layers.

      false
      

    The HillshadeModule uses vector tile elevation data to create shadow/highlight effects that enhance the 3D perception of terrain features like mountains and valleys.

    Configuration Options:

    • visible: Whether the hillshade layer is shown or hidden

    Visual Effect:

    • Creates realistic terrain depth perception
    • Lightweight performance impact
    • Works alongside other map layers
    // Show hillshade
    const config: HillshadeModuleConfig = {
    visible: true
    };

    // Hide hillshade initially
    const hiddenConfig: HillshadeModuleConfig = {
    visible: false
    };