list_style_layers
List everything a MapMap style theme can style: the first-party named bases a style can start from (pass one as create_style's base, or as the static-map API's style=), the named palette slots with their light/dark default colours, the skeleton layer ids (paint order) that set_layer_paint accepts, the OpenMapTiles source-layers extra layers may reference, the insertion slots (bottom, middle, top) an extra layer may name, and the rules for a theme's own sources (your data by https URL). Attribution is enforced on every compiled style and cannot be themed away. Local lookup, no network; always works.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bases | Yes | The first-party named bases a style can start from, in display order: pass one to `create_style`'s `base`, or to the static-map API's `style=`. | |
| slots | No | The insertion slots an extra layer may name (`"slot"`), bottom of the stack first, with the layer each sits directly below. A layer without a slot goes in `middle`. | |
| sources | No | The rules for a theme's own `sources` (customer data by URL). | |
| layer_ids | Yes | The skeleton layer ids a theme's `layers` may override, in paint order (first = bottom). | |
| attribution | Yes | The attribution contract: enforced on every compiled style, not themable. | |
| palette_slots | Yes | The named palette slots a theme's `palette` may override, with their light/dark defaults, in presentation order. | |
| source_layers | Yes | The OpenMapTiles source-layers the tiles emit; an extra layer on the `territory` source must reference one of these. |