Expand description
JSON style-spec parsing and resolution for the style runtime.
This module adds a declarative style-document layer closer to MapLibre’s
style/style.ts: JSON source and layer definitions are parsed into a
lightweight spec and then resolved through a host-provided runtime source
registry into an executable StyleDocument.
Structs§
- Style
Source Registry - Runtime source registry used while resolving JSON specs.
- Style
Spec Document - Declarative JSON style document.
- Style
Spec Layer - Declarative layer entry.
- Style
Spec Projection - Top-level projection entry in a JSON style spec.
- Style
Spec Source - Declarative source entry.
- Style
Spec Terrain - Top-level terrain entry in a JSON style spec.
Enums§
- Style
Spec Error - Errors produced while parsing or resolving a JSON style specification.
- Style
Spec Layer Type - Layer kinds accepted by the JSON style spec.
- Style
Spec Projection Type - Projection kinds accepted by the current JSON style spec.
- Style
Spec Source Type - Source kinds accepted by the JSON style spec.
Functions§
- parse_
style_ json - Parse a JSON style string.