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:
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.
Readings — what the style draws for every probe (readProbe).
Kind — a raster layer that the vector fills do not cover makes it a satellite style.
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.
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.
deriveOptions— the options forosm()orsatellite()that rebuild a foreign style as closely as the option surface allows.The pipeline, each step in its own function below:
guessSchema), from its TileJSON when the caller has one, or else from the source-layers the style's own layers read.readProbe).Synchronous and free of I/O like
osm():guessOptionsis the half that downloads.