ConstOptionaloptions: ProtomapsOptionsReadonlycolorKeys: readonly (keyof ColorsOptions)[]Readonlycolors: (palette: Palette) => ResolvedColorsReturn a palette's resolved colors.
Readonlylanguages: (tileJSON: TileJSONSpecification) => string[]The language codes available in a given TileJSON — both name_xx and name:xx.
ReadonlyminimizeOptions: (options?: ProtomapsOptions) => ProtomapsOptionsThe smallest options object that builds the same style: every value equal to its default is dropped, colours compared against the chosen palette. For storing a style in a URL or config.
Readonlypalettes: readonly Palette[]All available palette names — the palettes are schema-neutral, so these are osm's.
ReadonlyresolveOptions: (options?: ProtomapsOptions) => ResolvedProtomapsResolve raw ProtomapsOptions to a fully validated ResolvedProtomaps.
Readonlyslots: Readonly<Stable layer IDs for use as MapLibre beforeId.
Readonlytileset: {How guessStyle recognises an Protomaps tileset and builds a style for it — the injection
point: guessStyle(tileJSON, { schemas: [protomaps] }).
ReadonlyvalidateOptions: (options?: ProtomapsOptions) => ValidationResult<ResolvedProtomaps>Check options without throwing, reporting every problem at once as data rather than as a message
to parse — for a tool validating options someone else typed. resolveOptions stays the call for a
program that cannot proceed: it throws on the first problem.
Fully resolved defaults (theme: 'colorful').
Maps each LayerGroupOptions key to the layer IDs it controls, for this schema's layers.
Maps each topic of text (water.rivers, pois.transit, …) to the text layer IDs its label style
sets. Built from the same group tags as layerGroups.
A runnable snippet for these options. Emits the subpath import, so it runs as pasted.
There is no target: 'browser' form: the CDN bundle carries only osm() and satellite().
Optionaloptions: ProtomapsOptionsOptionalcodeOptions: CodeOptions
All color key names accepted by ColorsOptions. Some are inert under this schema.