GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Builds a MapLibre image source spec and raster layer spec from a basemap definition. Pure factory — does not call any map API.

      Parameters

      • definition: BasemapDefinition

        Basemap config with imageSource.url and imageSource.coordinates.

      • sourceId: string

        Source ID to use.

      • layerId: string

        Layer ID to use.

      Returns
          | {
              sourceSpec: Record<string, unknown>;
              layerSpec: Record<string, unknown>;
          }
          | null

      Source and layer specs, or null if the definition is invalid.