Function buildWmsRasterSourceSpec

  • Build a MapLibre raster source spec for a WMS descriptor. The tiles template uses MapLibre's runtime substitution placeholders ({bbox-epsg3857}, {width}, {height}) so each tile request is a pre-baked KVP URL — consumers do not have to hand-assemble GetMap URLs themselves.

    Parameters

    • descriptor: SourceDescriptor
    • options: {
          format?: string;
          tileSize?: number;
          transparent?: boolean;
      } = {}
      • Optionalformat?: string
      • OptionaltileSize?: number
      • Optionaltransparent?: boolean

    Returns {
        attribution?: string;
        tiles: string[];
        tileSize: number;
        type: "raster";
    }

    • Optionalattribution?: string
    • tiles: string[]
    • tileSize: number
    • type: "raster"