Build a style for a tileset already detected as this schema.
ReadonlyidWhich schema this builds. For the built-in schemas it is the name guessSchema reports
('shortbread', 'openmaptiles', 'protomaps'), which is how guessStyle finds the builder for a
detected tileset. Any other id marks a caller's own schema, recognised by sourceLayers alone.
ReadonlysourceSource-layer ids this schema's tileset carries, for detection.
What
guessStyleneeds from a schema in order to recognise its tileset and build a style for it.Each schema function carries one as a static, so the schema owns both halves: which source-layers identify its tiles, and how its own
urlsoption names the vector source.guessStylenever learns either — it just asks.Deliberately its own module rather than living in
guessStyle.ts:osmmust carry a descriptor andguessStylemust readosm's, so declaring the type in either file makes the two mutually dependent. TypeScript resolves such a cycle by widening the inferred statics toany, silently — it cost a whole file's type-checking before this module existed.