GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Applies a hillshade basemap to the map.

      • Reuses terrain-dem source if it already covers the same DEM URL.
      • Otherwise adds a new raster-dem source using HILLSHADE_SOURCE_ID.
      • Inserts the hillshade layer below all existing layers.

      Parameters

      • map: NativeMap

        Native maplibregl.Map instance.

      • definition: BasemapDefinition

        Basemap config with hillshade settings.

      • layerId: string = BASEMAP_LAYER_ID

        Layer ID. Defaults to "__geoleaf_basemap_layer__".

      Returns string

      The source ID actually used ("terrain-dem" or "__geoleaf_basemap__").