GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Activates 3D terrain rendering for a given basemap config.

      • Adds a raster-dem source named terrain-dem (if not already present).
      • Calls map.setTerrain() with the configured source and exaggeration.
      • Applies the configured pitch and bearing via map.easeTo().

      Parameters

      • map: NativeMap | null

        The native maplibregl.Map instance.

      • config: TerrainConfig

        The terrain configuration from the basemap definition.

      • basemapKey: string

        The key of the basemap this terrain config belongs to.

      Returns void