GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Parses a WMTS GetCapabilities XML string and returns a MapLibre-compatible XYZ tile URL template.

      Parameters

      • xml: string

        Raw XML string from a GetCapabilities response.

      • layerName: string | undefined

        Target WMTS layer identifier (uses first layer if omitted).

      • tileMatrixSet: string | undefined

        TileMatrixSet identifier (uses first available if omitted).

      • format: string

        Tile image format (e.g. "image/png").

      Returns string | null

      The resolved XYZ tile URL template, or null on failure.