@versatiles/style
    Preparing search index...

    Type Alias OptionsGuess

    OptionsGuess:
        | { kind: "osm"; options: OsmOptions; report: GuessReport }
        | { kind: "satellite"; options: SatelliteOptions; report: GuessReport }
        | { kind: "unknown"; report: GuessReport }

    deriveOptions — the options for osm() or satellite() that rebuild a foreign style as closely as the option surface allows.

    The pipeline, each step in its own function below:

    1. Sources — which schema each vector source carries (guessSchema), from its TileJSON when the caller has one, or else from the source-layers the style's own layers read.
    2. Readings — what the style draws for every probe (readProbe).
    3. Kind — a raster layer that the vector fills do not cover makes it a satellite style.
    4. Colours — a least-squares inversion of the target builder's own calibrated colour model, then the nearest palette, with overrides only where the style clearly departs from it.
    5. Everything else — hidden layer groups, label language and size, 3D buildings, terrain, hillshade, light, sky, projection.

    Synchronous and free of I/O like osm(): guessOptions is the half that downloads.